@charset "UTF-8";

/* ============================================================
   工務店Navi - 下層ページ共通コンポーネント
   （style.css を継承。ここには下層で使う共通パーツのみ）
   ============================================================ */

/* ---------- ページタイトル帯 ---------- */
.page-hero { background: var(--cream); border-bottom: 1px solid var(--line); }
.page-hero__inner {
  min-height: 220px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 10px;
  padding: 56px 0;
}
.page-hero__en {
  font-family: var(--font-en); font-weight: 500; font-size: 13px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--brown);
}
.page-hero__title { position: relative; font-size: clamp(24px, 3.2vw, 38px); font-weight: 700; letter-spacing: .05em; color: var(--ink); padding-bottom: 20px; }
.page-hero__title::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 40px; height: 2px; background: var(--brown); }

/* ============================================================
   ページヒーロー（下層／レイアウトはページ別・トンマナは統一）
   ============================================================ */
.phero { position: relative; border-bottom: 1px solid var(--line); }
.phero__kicker { font-family: var(--font-en); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--brown); }
.phero__title { font-size: clamp(25px, 3.3vw, 42px); font-weight: 700; letter-spacing: .04em; line-height: 1.4; color: var(--ink); margin-top: 12px; }
.phero__lead { margin-top: 20px; font-size: 14px; line-height: 2; color: var(--ink-soft); max-width: 38em; }

/* --- split：テキスト左／写真右 --- */
.phero--split .phero__inner { display: grid; grid-template-columns: 1fr 1.05fr; align-items: stretch; min-height: clamp(230px, 23vw, 330px); }
.phero--split .phero__text { display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 4.5vw, 72px) clamp(28px, 4.5vw, 72px); }
.phero--split .phero__media { position: relative; overflow: hidden; background: var(--cream); }
.phero--split .phero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* --- overlay：全面写真＋ボックス（中央 / 左下）※写真は絶対配置で高さ固定 --- */
.phero--overlay { position: relative; overflow: hidden; height: clamp(260px, 25vw, 360px); display: flex; align-items: center; justify-content: center; padding: clamp(20px, 3vw, 44px) var(--pad); }
.phero--overlay .phero__media { position: absolute; inset: 0; z-index: 0; }
.phero--overlay .phero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phero--overlay .phero__box { position: relative; z-index: 1; text-align: center; background: rgba(255, 255, 255, .93); padding: clamp(26px, 3vw, 46px) clamp(40px, 6vw, 92px); max-width: min(92%, 720px); }
.phero--overlay.is-bl { align-items: flex-end; justify-content: flex-start; padding: 0; }
.phero--overlay.is-bl .phero__box { text-align: left; margin: 0 0 clamp(26px, 4vw, 56px) clamp(20px, 4vw, 60px); }

/* --- band：写真なしの洗練バンド（詳細・完了・ポリシー） --- */
.phero--band { background: var(--cream); }
.phero--band .phero__inner { padding-block: clamp(52px, 6.5vw, 96px) clamp(40px, 5vw, 64px); }
.phero--band .phero__title { position: relative; padding-bottom: 22px; }
.phero--band .phero__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 2px; background: var(--brown); }

@media (max-width: 768px) {
  .phero--split .phero__inner { grid-template-columns: 1fr; min-height: 0; }
  .phero--split .phero__media { min-height: 210px; order: -1; }
  .phero--split .phero__text { padding: 32px var(--pad) 36px; }
  .phero--overlay { height: clamp(190px, 46vw, 250px); }
  .phero--overlay .phero__box { padding: 20px 22px; max-width: calc(100% - 32px); }
  .phero--overlay.is-bl .phero__box { margin: 0 16px 18px; }
  .phero__lead { font-size: 13px; }
}

/* ---------- パンくず ---------- */
.breadcrumb { padding: 16px 0 0; }
.breadcrumb__list { display: flex; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--ink-soft); }
.breadcrumb__list li { display: inline-flex; align-items: center; }
.breadcrumb__list li:not(:last-child)::after { content: "／"; margin: 0 8px; color: #c9c2b8; }
.breadcrumb a:hover { color: var(--brown); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* ---------- 下層セクション共通 ---------- */
.sub { padding: var(--sec-y) 0; }
.sub--white { background: #fff; }
.sub__head { text-align: center; margin-bottom: clamp(32px, 3.8vw, 52px); }
.sub__en {
  display: block; font-family: var(--font-en); font-weight: 500; font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05; letter-spacing: .02em; color: var(--ink);
}
.sub__title { display: inline-block; position: relative; font-size: clamp(21px, 2.4vw, 30px); font-weight: 700; letter-spacing: .04em; color: var(--ink); padding-bottom: 18px; }
.sub__title::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 34px; height: 2px; background: var(--brown); }
.sub__jp { display: inline-block; position: relative; margin-top: 16px; padding-top: 16px; font-size: 13px; font-weight: 500; letter-spacing: .12em; color: var(--ink-soft); }
.sub__jp::before { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 30px; height: 2px; background: var(--brown); }
.sub-lead { max-width: 720px; margin: 0 auto; text-align: center; color: var(--ink-soft); font-size: 14px; line-height: 2; }

/* ---------- 汎用アーカイブカード（グリッド） ---------- */
.result-count { display: flex; align-items: baseline; gap: 10px; margin-bottom: 22px; font-size: 14px; color: var(--ink-soft); }
.result-count strong { font-family: var(--font-en); font-size: 22px; font-weight: 700; color: var(--ink); }

.card-grid { display: grid; gap: clamp(18px, 2vw, 28px); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.acard { display: flex; flex-direction: column; background: #fff; overflow: hidden; box-shadow: 0 10px 26px rgba(60,50,40,.06); transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.acard:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(60,50,40,.12); }
.acard__thumb { display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.acard__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease-out); }
.acard:hover .acard__thumb img { transform: scale(1.05); }
.acard__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 22px 24px 26px; }
.acard__cat { display: inline-block; align-self: flex-start; font-size: 11.5px; font-weight: 500; color: var(--ink-soft); letter-spacing: .04em; }
.acard__cat--tag { color: var(--brown); padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px; }
.acard__title { display: block; margin-top: 14px; font-size: 15.5px; font-weight: 700; line-height: 1.75; color: var(--ink); }
.acard__meta { margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft); }
.acard__meta svg { width: 15px; height: 15px; flex: none; color: var(--brown); }

/* ---------- スペック定義テーブル ---------- */
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.spec th { width: 120px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.spec td { color: var(--ink-soft); padding-left: 20px; }

/* ---------- 本文プロース（詳細・ポリシー等） ---------- */
.prose { font-size: 14.5px; line-height: 2; color: #4a453f; }
.prose h2 { font-size: clamp(19px, 2vw, 24px); font-weight: 700; color: var(--ink); margin: 40px 0 16px; padding-left: 14px; border-left: 3px solid var(--brown); line-height: 1.5; }
.prose h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 28px 0 12px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 1.4em; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--brown); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 汎用ボタン（アウトライン・中央寄せ） ---------- */
.btn-center { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 52px); }

/* ---------- フォーム（Contact Form 7 想定） ---------- */
.formwrap { max-width: 720px; margin: 0 auto; background: var(--cream); padding: clamp(28px, 4vw, 52px); }
.form-row { margin-bottom: 24px; }
.form-row:last-of-type { margin-bottom: 0; }
.form-label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.form-req { font-size: 11px; font-weight: 600; color: #fff; background: var(--brown); padding: 2px 8px; border-radius: 4px; letter-spacing: .04em; }
.form-any { font-size: 11px; font-weight: 500; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); padding: 2px 8px; border-radius: 4px; }
.form-input, .form-textarea, .form-select {
  width: 100%; font-family: inherit; font-size: 14px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 13px 16px;
  transition: border-color var(--dur) var(--ease-soft), box-shadow var(--dur) var(--ease-soft);
}
.form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 3px rgba(181,140,107,.14); }
.form-textarea { min-height: 140px; resize: vertical; }
.form-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; }
.form-check { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.form-check input { margin-top: 3px; accent-color: var(--brown); width: 16px; height: 16px; flex: none; }
.form-agree { display: flex; justify-content: center; align-items: center; gap: 9px; margin: 26px 0 22px; font-size: 13.5px; }
.form-note { font-size: 12.5px; color: var(--ink-soft); line-height: 1.9; text-align: center; }
.form-note a { color: var(--brown); text-decoration: underline; }
.form-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 18px 24px;
  font-size: 15px; font-weight: 600; letter-spacing: .04em;
  transition: background-color .3s var(--ease-soft), transform .3s var(--ease-out);
}
.form-submit:hover { background: #000; transform: translateY(-2px); }

/* ---------- エリア絞り込みポップアップ ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-bottom: 28px; }
.filter-toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px;
  background: var(--ink); color: #fff; border: 0; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  transition: background-color .3s var(--ease-soft), transform .3s var(--ease-out);
}
.filter-toggle:hover { background: var(--brown); transform: translateY(-2px); }
.filter-toggle svg { width: 16px; height: 16px; }

/* ---------- 下層レスポンシブ ---------- */
@media (max-width: 1024px) {
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .page-hero__inner { min-height: 150px; padding: 40px 0; }
  .card-grid--3, .card-grid--2 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .spec th { width: 96px; }
  .formwrap { padding: 22px 18px; }
  .form-checks { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .card-grid--3, .card-grid--2 { grid-template-columns: 1fr; }
}

/* ============================================================
   絞り込みモーダル（参考サイト準拠・TOPトンマナ）
   ============================================================ */
.filter-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; margin-bottom: clamp(28px, 3vw, 44px); }
.filter-note { font-size: 12.5px; color: var(--ink-soft); }
.filter-empty { text-align: center; padding: clamp(40px, 6vw, 76px) 20px; color: var(--ink-soft); font-size: 14px; line-height: 1.9; }
[hidden] { display: none !important; }

.modal-overlay {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(16px, 6vh, 72px) 16px; background: rgba(43, 39, 36, .48);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease-soft), visibility .3s; overflow-y: auto;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal {
  position: relative; width: min(760px, 100%); margin: auto; background: #fff; border-radius: 14px;
  box-shadow: 0 30px 80px rgba(43, 39, 36, .28); display: flex; flex-direction: column; max-height: 84vh;
  transform: translateY(18px); transition: transform .35s var(--ease-out);
}
.modal-overlay.is-open .modal { transform: none; }
.modal__close { position: absolute; top: -46px; right: -2px; width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: none; border: 0; }
.modal__close svg { width: 26px; height: 26px; }
.modal__tabs { display: flex; flex: none; padding: 4px clamp(18px, 3vw, 38px) 0; border-bottom: 1px solid var(--line); }
.modal__tab { flex: 1; padding: 16px 0; margin-bottom: -1px; background: none; border: 0; border-bottom: 2px solid transparent; font-size: 15px; font-weight: 600; color: var(--ink-soft); transition: color .25s var(--ease-soft), border-color .25s var(--ease-soft); }
.modal__tab.is-active { color: var(--brown); border-color: var(--brown); }
.modal__body { padding: clamp(20px, 2.6vw, 30px) clamp(18px, 3vw, 38px); overflow-y: auto; }
.modal__state { font-size: 13px; color: var(--ink-soft); margin-bottom: 20px; }
.modal__state strong { margin-left: 12px; color: var(--ink); font-weight: 600; }
.modal__panel { display: none; }
.modal__panel.is-active { display: block; }
.modal__group { margin-bottom: 26px; }
.modal__group:last-child { margin-bottom: 0; }
.modal__group-label { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 14px; letter-spacing: .02em; }

.taste-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.taste-chip { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; text-align: left; transition: border-color .25s var(--ease-soft), box-shadow .3s var(--ease-out), transform .3s var(--ease-out); }
.taste-chip:hover { border-color: var(--brown); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(181, 140, 107, .16); }
.taste-chip.is-active { border-color: var(--brown); background: #faf6f1; }
.taste-chip__img { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: none; }
.taste-chip__img img { width: 100%; height: 100%; object-fit: cover; }
.taste-chip__label { font-size: 13px; font-weight: 500; color: var(--ink); }

.chip-set { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-pill { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; line-height: 1.4; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; color: var(--ink); cursor: pointer; transition: border-color .25s var(--ease-soft), color .25s var(--ease-soft); }
.chip-pill:hover { border-color: var(--brown); color: var(--brown); }
.chip-pill.is-active { border-color: var(--brown); color: #fff; background: var(--brown); }

.modal__actions { display: flex; gap: 12px; flex: none; padding: 16px clamp(18px, 3vw, 38px); border-top: 1px solid var(--line); background: #fff; border-radius: 0 0 14px 14px; }
.modal__clear { flex: 1; display: inline-flex; align-items: center; justify-content: center; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; transition: border-color .25s var(--ease-soft), color .25s var(--ease-soft); }
.modal__clear:hover { border-color: var(--brown); color: var(--brown); }
.modal__apply { flex: 2; justify-content: center; border: 0; }
.modal .area__regions { width: 100%; }
.modal .area-row { grid-template-columns: 96px 1fr; }
body.modal-open { overflow: hidden; }

@media (max-width: 768px) {
  .modal__close { top: 10px; right: 10px; color: var(--ink); background: #fff; border-radius: 50%; box-shadow: 0 2px 12px rgba(43, 39, 36, .16); }
  .modal__close svg { width: 22px; height: 22px; }
  .taste-grid { grid-template-columns: 1fr 1fr; }
  .modal__actions { flex-direction: column; }
  .modal .area-row { grid-template-columns: 72px 1fr; }
  .modal .area-row__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .modal .area-row__list a { width: 100%; padding: 8px 4px; font-size: 11px; }
}
@media (max-width: 480px) {
  .taste-grid { grid-template-columns: 1fr; }
  .modal .area-row__list { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   ライトボックス（写真拡大表示）
   ============================================================ */
.gphoto, .js-zoom, [data-zoom] { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; background: rgba(22, 19, 17, .92); }
.lightbox.is-open { display: flex; }
.lightbox__stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 90vw; }
.lightbox__img { max-width: 90vw; max-height: 80vh; width: auto; height: auto; object-fit: contain; box-shadow: 0 24px 70px rgba(0, 0, 0, .5); background: #fff; }
.lightbox__cap { color: rgba(255, 255, 255, .85); font-size: 13px; text-align: center; max-width: 90vw; }
.lightbox__close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; display: grid; place-items: center; color: #fff; background: none; border: 0; }
.lightbox__close svg { width: 28px; height: 28px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; transition: background-color .25s var(--ease-soft); }
.lightbox__nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__prev { left: 22px; }
.lightbox__next { right: 22px; }
@media (max-width: 768px) {
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .lightbox__close { top: 8px; right: 10px; }
}

/* ---------- タブパネル ---------- */
[data-tab-panel][hidden] { display: none; }

/* ===== タクソノミーアーカイブ（taxonomy.php）汎用カード ===== */
.kn-tax-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 34px); }
.kn-tax-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line, #e1e1e1); }
.kn-tax-card__thumb { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--cream, #f5f1ec); }
.kn-tax-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.kn-tax-card:hover .kn-tax-card__thumb img { transform: scale(1.04); }
.kn-tax-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.kn-tax-card__type { font-size: 11.5px; font-weight: 600; color: var(--brown, #a8846a); letter-spacing: .06em; }
.kn-tax-card__title { font-size: 15px; font-weight: 600; line-height: 1.6; color: var(--ink, #2b2b2d); }
@media (max-width: 900px) { .kn-tax-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .kn-tax-grid { grid-template-columns: 1fr; } }
