/* ===== 基本 ===== */
.post-type-archive-kenkaku_product .site-content,
.tax-kenkaku_product_cat .site-content,
.single-kenkaku_product .site-content,
.post-type-archive-kenkaku_product .content-area,
.tax-kenkaku_product_cat .content-area,
.single-kenkaku_product .content-area,
.post-type-archive-kenkaku_product #primary,
.tax-kenkaku_product_cat #primary,
.single-kenkaku_product #primary {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
}

.post-type-archive-kenkaku_product #secondary,
.tax-kenkaku_product_cat #secondary,
.single-kenkaku_product #secondary,
.post-type-archive-kenkaku_product .widget-area,
.tax-kenkaku_product_cat .widget-area,
.single-kenkaku_product .widget-area {
  display: none !important;
}

.products_archive,
.product_single_wrap {
  background: transparent;
  padding: 48px 20px 70px;
}

.kenkaku-page-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.products_title {
  text-align: center;
  font-size: 32px;
  margin: 0 0 36px;
  color: #111;
  line-height: 1.4;
}

.products_term_header {
  margin: 0 auto 30px;
  text-align: center;
}

.products_term_label {
  margin: 0 0 6px;
  color: #777;
  font-size: 13px;
}

.products_term_desc {
  margin: 10px auto 0;
  max-width: 720px;
  color: #666;
}

.products_grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.product_card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  transition: 0.25s;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.product_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.product_link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.product_thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
  overflow: hidden;
}

.product_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product_body {
  padding: 16px 18px 20px;
}

.product_terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 3;
}

.product_term {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f3f3;
  color: #444;
  font-size: 12px;
  text-decoration: none;
  line-height: 1.2;
  pointer-events: auto;
}

.product_term:hover {
  background: #111;
  color: #fff;
}

.product_name {
  font-size: 22px;
  margin: 10px 0 14px;
  color: #111;
  line-height: 1.4;
}

.product_name a {
  color: inherit;
  text-decoration: none;
}

.product_name a:hover {
  text-decoration: underline;
}

.product_meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  color: #444;
}

.product_meta span {
  font-weight: 700;
  color: #111;
}

.product_price {
  margin: 14px 0 0;
  font-size: 24px;
  font-weight: 700;
  color: #111;
}

.products_empty,
.products_pagination {
  margin: 30px auto 0;
}

/* ===== 詳細 ===== */
.product_single_header {
  max-width: 960px;
  margin: 0 auto 24px;
}

.product_single_title {
  font-size: 34px;
  margin: 12px 0 0;
  color: #111;
  line-height: 1.35;
}

.product_single_visual_card,
.product_single_info_card {
  max-width: 960px;
  margin: 0 auto 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.product_single_image img {
  width: 100%;
  height: auto;
  display: block;
}

.product_single_info_card {
  padding: 28px;
}

.product_single_specs {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.product_single_specs p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ececec;
  margin: 0;
  color: #333;
}

.product_single_specs p span {
  font-weight: 700;
  color: #111;
}

.product_single_price_row strong {
  font-size: 28px;
  line-height: 1;
}

.product_single_description,
.product_single_description p,
.product_single_description li {
  line-height: 1.9;
  color: #333;
}

.product_single_cta_wrap {
  max-width: 960px;
  margin: 0 auto;
}

.product_single_cta {
  display: block;
  width: 100%;
  text-align: center;
  background: #ff6a00;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  padding: 20px 24px;
  border-radius: 10px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15);
  border: 0;
  cursor: pointer;
}

.product_single_cta:hover {
  opacity: .92;
  color: #fff;
}

/* ===== お知らせ ===== */
.kenkaku_notice {
  max-width: 960px;
  margin: 0 auto 22px;
  padding: 18px 22px 18px 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}

.kenkaku_notice::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: currentColor;
  opacity: .85;
}

.kenkaku_notice strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.kenkaku_notice p {
  margin: 0;
  line-height: 1.7;
}

.kenkaku_notice.success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.kenkaku_notice.error {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}

/* ===== モーダル ===== */
.kenkaku-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.kenkaku-modal.is-active {
  display: block;
}

.kenkaku-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.kenkaku-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 32px));
  margin: 6vh auto;
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  max-height: 88vh;
  overflow: auto;
}

.kenkaku-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.kenkaku-modal__title {
  margin: 0 32px 18px 0;
  font-size: 28px;
}

body.kenkaku-modal-open {
  overflow: hidden;
}

.kenkaku-estimate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.kenkaku-estimate-grid label {
  display: block;
}

.kenkaku-estimate-grid label.is-full {
  grid-column: 1 / -1;
}

.kenkaku-estimate-grid span {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.kenkaku-estimate-grid em {
  color: #e11d48;
  font-style: normal;
}

.kenkaku-estimate-grid input,
.kenkaku-estimate-grid textarea {
  width: 100%;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  padding: 12px 14px;
  box-sizing: border-box;
  font-size: 16px;
}

.kenkaku-estimate-grid input[readonly] {
  background: #f8f8f8;
}

.kenkaku-estimate-actions {
  margin-top: 18px;
}

.kenkaku-estimate-submit {
  display: inline-block;
  min-width: 220px;
  border: 0;
  border-radius: 10px;
  background: #ff6a00;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 15px 24px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .products_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .products_archive,
  .product_single_wrap {
    padding: 40px 15px 56px;
  }

  .products_title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .products_grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product_name {
    font-size: 18px;
  }

  .product_price {
    font-size: 22px;
  }

  .product_single_title {
    font-size: 28px;
  }

  .product_single_info_card {
    padding: 20px 16px;
  }

  .product_single_specs p {
    display: block;
  }

  .kenkaku-estimate-grid {
    grid-template-columns: 1fr;
  }

  .kenkaku-modal__dialog {
    padding: 22px 16px;
  }
}


.kenkaku_notice {
  max-width: 960px;
  margin: 0 auto 18px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
}
.kenkaku_notice strong { display:block; margin-bottom:4px; font-size:18px; }
.kenkaku_notice p { margin:0; line-height:1.7; }
.kenkaku_notice.success { background:#edf9f1; border-color:#b9e6c5; color:#1f5f35; }
.kenkaku_notice.error { background:#fff2f2; border-color:#f0bcbc; color:#8b1e1e; }
