@charset "UTF-8";
/* =========================================================
   まさうち工務店  style.css
   スマホ優先（モバイルファースト）で記述し、
   768px（タブレット）／1080px（PC）で段階的に拡張します。
   ========================================================= */

/* ---------- カラー・フォント ---------- */
:root {
  --c-main: #6B4A32;        /* 杉皮ブラウン（メイン） */
  --c-main-dark: #4E3523;
  --c-sub: #D9C3A0;         /* ヒノキベージュ */
  --c-accent: #A9592B;      /* 柿渋（CTA）：派手にならないよう彩度を抑えたもの */
  --c-accent-dark: #8C4720;
  --c-base: #F7F3EC;        /* 漆喰ホワイト */
  --c-base-2: #EFE8DC;
  --c-text: #2B2622;        /* 墨色 */
  --c-text-sub: #6E655D;
  --c-line: #DCD2C3;
  --c-white: #FFFFFF;

  --ff-serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --ff-sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --ff-en: "Cormorant Garamond", "Times New Roman", serif;

  --header-h: 64px;
  --gutter: 20px;
  --container: 1160px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- リセット・ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; } /* なめらかなスクロールは main.js で制御 */
body {
  margin: 0;
  background: var(--c-base);
  color: var(--c-text);
  font-family: var(--ff-sans);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .04em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 64px; /* スマホ固定CTAぶん */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, blockquote, figure { margin: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; } /* ページ内リンクの移動先に枠を出さない */

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.sp-only { display: inline; }
.nw { white-space: nowrap; } /* 改行させたくない語句 */
.pc-only { display: none; }
@media (min-width: 1080px) { .pc-only { display: inline; } }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: 88px 0; }

/* 英字フォント（Cormorant）の数字は高さを揃える */
.nav-tel-num, .header-tel-num, .cta-card-main, .reason-num, .news-list time, .flow-num { font-variant-numeric: lining-nums; }

/* 日本語の改行を文節単位にし、1〜2文字だけ次行に落ちる「泣き別れ」を防ぐ */
.hero-title, .hero-lead, .section-title, .section-lead, .cta-title, .cta-lead,
.reason-title, .service-title, .work-title, .flow-step h3, .news-title {
  word-break: auto-phrase;
  text-wrap: balance;
}
p { text-wrap: pretty; }

/* ---------- 見出し共通 ---------- */
.section-label {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 12px; letter-spacing: .16em; color: var(--c-main);
  margin-bottom: 18px;
}
.section-label .en {
  font-family: var(--ff-en); font-size: 15px; font-weight: 600;
  letter-spacing: .12em; position: relative; padding-right: 40px;
}
.section-label .en::after {
  content: ""; position: absolute; right: 0; top: 55%;
  width: 28px; height: 1px; background: currentColor; opacity: .5;
}
.section-label--light { color: var(--c-sub); }

.section-title {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: clamp(22px, 6vw, 40px);
  line-height: 1.6;
  letter-spacing: .08em;
  color: var(--c-text);
}
.section-title--sm { font-size: clamp(20px, 5vw, 26px); }
.section-head { margin-bottom: 48px; }
.section-head--row { display: flex; flex-direction: column; gap: 20px; }
.section-lead { margin-top: 16px; color: var(--c-text-sub); }

.text-link {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 14px; letter-spacing: .1em; color: var(--c-main);
  padding: 12px 0 4px; border-bottom: 1px solid currentColor; white-space: nowrap;
  transition: gap .3s var(--ease), color .3s;
}
.text-link::after { content: "→"; font-family: var(--ff-en); }
.text-link:hover { gap: 22px; color: var(--c-main-dark); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 60px; padding: 10px 28px; border-radius: 2px;
  text-align: center; line-height: 1.4;
  transition: background-color .3s var(--ease), color .3s, border-color .3s, transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-sub { font-size: 11px; letter-spacing: .12em; opacity: .9; }
.btn-main { font-size: 16px; font-weight: 700; letter-spacing: .08em; }
.btn-primary { background: var(--c-accent); color: var(--c-white); }
.btn-primary:hover { background: var(--c-accent-dark); }
.btn-ghost { border: 1px solid rgba(255,255,255,.75); color: var(--c-white); background: rgba(43,38,34,.2); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: var(--c-white); color: var(--c-main); }
.btn-wide { width: 100%; }

/* =========================================================
   ヘッダー
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: var(--c-white);
  transition: background-color .4s var(--ease), color .4s, box-shadow .4s;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(247, 243, 236, .96);
  color: var(--c-text);
  box-shadow: 0 1px 0 var(--c-line);
  backdrop-filter: blur(8px);
}
/* メニュー展開中はヘッダーの backdrop-filter を無効化。
   有効なままだと position: fixed のメニューがヘッダーの高さに閉じ込められ、画面全体を覆えない */
.site-header.is-open { backdrop-filter: none; background: var(--c-base); }
.header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter); max-width: 1400px; margin: 0 auto;
}

/* テキストロゴ */
.logo { display: inline-flex; align-items: center; gap: 12px; position: relative; z-index: 2; white-space: nowrap; flex-shrink: 0; }
.site-header:not(.is-scrolled):not(.is-open) .logo { text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.logo-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid currentColor;
  font-family: var(--ff-serif); font-weight: 700; font-size: 20px; line-height: 1;
  letter-spacing: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-ja { font-family: var(--ff-serif); font-weight: 700; font-size: 19px; letter-spacing: .24em; }
.logo-en { font-family: var(--ff-en); font-weight: 600; font-size: 11px; letter-spacing: .32em; opacity: .8; margin-top: 3px; }

/* ハンバーガー */
.menu-toggle {
  position: relative; z-index: 2;
  width: 44px; height: 44px; display: grid; place-content: center; gap: 6px;
}
/* 線2px・間隔6px＝合計18px。端数が出ないので3本とも同じ太さでくっきり表示される */
.menu-toggle-bar { display: block; width: 26px; height: 2px; background: currentColor; transition: transform .35s var(--ease); }
/* 3本線 → 開くと × に変化 */
.menu-toggle-bar { transition: transform .35s var(--ease), opacity .2s; }
.is-open .menu-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.is-open .menu-toggle-bar:nth-child(2) { opacity: 0; }
.is-open .menu-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* グローバルナビ（スマホ：全画面） */
.global-nav {
  position: fixed; inset: 0; z-index: 1;
  width: 100%; height: 100vh; height: 100dvh;
  background: var(--c-base); color: var(--c-text);
  padding: calc(var(--header-h) + 32px) 32px 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
  overflow-y: auto;
}
.is-open .global-nav { opacity: 1; visibility: visible; }
.global-nav ul li { border-bottom: 1px solid var(--c-line); }
.global-nav ul a {
  display: block; padding: 18px 0;
  font-family: var(--ff-serif); font-size: 18px; font-weight: 600; letter-spacing: .12em;
}
.global-nav .nav-contact a { color: var(--c-accent); }
.nav-tel-sp { margin-top: 32px; text-align: center; padding: 24px; background: var(--c-base-2); }
.nav-tel-label { font-size: 12px; color: var(--c-text-sub); }
.nav-tel-num { display: block; font-family: var(--ff-en); font-size: 32px; font-weight: 600; letter-spacing: .06em; color: var(--c-main); }
.nav-tel-note { font-size: 11px; color: var(--c-text-sub); }

.header-tel { display: none; }

/* =========================================================
   メインビジュアル
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 40px); /* 内容が多いときもヘッダーと重ならないように */
  display: flex; align-items: flex-end;
  color: var(--c-white);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
/* スライド：重ねて置き、is-active の1枚だけをフェードで表示 */
.hero-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%);
  opacity: 0;
  transition: opacity 1.8s cubic-bezier(.4, 0, .2, 1);
}
.hero-slide.is-active { opacity: 1; }
/* 表示中の写真はゆっくりズームアウト（フェードアウト中もズーム後の状態を保つ） */
.hero-slide.is-zoom { animation: heroZoom 8s cubic-bezier(.25, .1, .25, 1) both; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(30, 22, 16, .6) 0%, rgba(30, 22, 16, 0) 26%),
    linear-gradient(to top, rgba(30, 22, 16, .78) 0%, rgba(30, 22, 16, .35) 45%, rgba(30, 22, 16, .12) 100%);
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero-content {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--container); margin: 0 auto;
  padding: 0 var(--gutter) 116px; /* 下に「Scroll」を置くぶん空ける */
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: .3em;
  padding: 4px 12px; border: 1px solid rgba(255,255,255,.6);
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--ff-serif); font-weight: 600;
  font-size: clamp(26px, 8.2vw, 64px);
  line-height: 1.5; letter-spacing: .1em;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.hero-lead { margin-top: 20px; font-size: 14px; line-height: 2; letter-spacing: .08em; opacity: .95; }
.hero-cta { margin-top: 32px; display: grid; gap: 12px; }
.hero-cta .btn { width: 100%; }

/* 「Scroll」：スマホはボタンの下・中央、タブレット以上は右下 */
.hero-scroll {
  position: absolute; left: 50%; bottom: 0; z-index: 1; transform: translateX(-50%);
  writing-mode: vertical-rl; font-family: var(--ff-en); font-size: 11px; letter-spacing: .3em; color: var(--c-white);
  padding: 0 16px 52px; /* 縦書きのため左右は物理方向で指定（タップしやすい幅を確保） */
  cursor: pointer; transition: opacity .3s;
}
.hero-scroll:hover { opacity: .7; }
.hero-scroll::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 44px;
  background: rgba(255, 255, 255, .7); animation: scrollLine 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* =========================================================
   私たちの想い
   ========================================================= */
.philosophy-inner { display: grid; gap: 48px; }
.philosophy-text p:not(.section-label) { margin-top: 20px; }
.philosophy-text .section-title { margin-bottom: 8px; }
.philosophy-text .text-link { margin-top: 32px; }
.philosophy-media { position: relative; }
.philosophy-media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.philosophy-media::before {
  content: ""; position: absolute; inset: 16px -12px -16px 12px;
  border: 1px solid var(--c-sub); z-index: -1;
}

/* =========================================================
   5つの約束
   ========================================================= */
.reasons { background: var(--c-white); }
.reason-list { display: grid; gap: 0; }
.reason { padding: 36px 0; border-top: 1px solid var(--c-line); }
.reason:last-child { border-bottom: 1px solid var(--c-line); }
.reason-num {
  font-family: var(--ff-en); font-weight: 500;
  font-size: 44px; line-height: 1; color: var(--c-sub);
  margin-bottom: 14px;
}
.reason-title {
  font-family: var(--ff-serif); font-weight: 600;
  font-size: 20px; line-height: 1.6; letter-spacing: .08em;
  margin-bottom: 14px; color: var(--c-main-dark);
}
.reason p:not(.reason-num) { font-size: 14px; color: var(--c-text); }

.reason--feature { border-top: 0; padding-top: 0; }
.reason-media img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; margin-bottom: 28px; }
.reason-voice {
  margin-top: 24px; padding: 20px 22px;
  background: var(--c-base); border-left: 3px solid var(--c-main);
}
.reason-voice p { font-family: var(--ff-serif); font-size: 15px !important; line-height: 1.8; }
.reason-voice cite { display: block; margin-top: 8px; font-size: 12px; font-style: normal; color: var(--c-text-sub); }
.reason-voice cite::before { content: "― "; }

/* =========================================================
   手がける仕事
   ========================================================= */
.service-grid { display: grid; gap: 40px; }
.service-card a { display: block; }
.service-media { overflow: hidden; }
.service-media img {
  aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
  transition: transform .8s var(--ease);
}
.service-card a:hover .service-media img { transform: scale(1.05); }
.service-body { padding-top: 22px; }
.service-en { font-family: var(--ff-en); font-size: 14px; font-weight: 600; letter-spacing: .14em; color: var(--c-main); }
.service-title { font-family: var(--ff-serif); font-weight: 600; font-size: 21px; letter-spacing: .1em; margin: 4px 0 10px; }
.service-body p:not(.service-en) { font-size: 14px; color: var(--c-text-sub); }
.service-more {
  display: inline-flex; gap: 10px; margin-top: 16px;
  font-size: 13px; color: var(--c-main); letter-spacing: .1em;
  transition: gap .3s var(--ease);
}
.service-more::after { content: "→"; font-family: var(--ff-en); }
.service-card a:hover .service-more { gap: 18px; }

/* =========================================================
   施工例
   ========================================================= */
.works { background: var(--c-base-2); }
.works-list { display: grid; gap: 36px; }
.work a { display: block; }
.work-media { overflow: hidden; margin-bottom: 16px; }
.work-media img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform .8s var(--ease); }
.work a:hover .work-media img { transform: scale(1.05); }
.work-cat {
  display: inline-block; font-size: 11px; letter-spacing: .14em;
  color: var(--c-main); border: 1px solid var(--c-main); padding: 1px 10px; margin-bottom: 8px;
}
.work-title { font-family: var(--ff-serif); font-weight: 600; font-size: 17px; letter-spacing: .06em; line-height: 1.7; }

/* =========================================================
   家づくりの流れ
   ========================================================= */
.flow-list { display: grid; gap: 0; counter-reset: flow; }
.flow-step {
  position: relative;
  padding: 0 0 32px 36px;
  border-left: 1px solid var(--c-sub);
  margin-left: 6px;
}
.flow-step:last-child { border-left-color: transparent; padding-bottom: 0; }
.flow-step::before {
  content: ""; position: absolute; left: -7px; top: 6px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--c-base); border: 1px solid var(--c-main);
}
.flow-num { font-family: var(--ff-en); font-weight: 600; font-size: 14px; letter-spacing: .14em; color: var(--c-main); }
.flow-step h3 { font-family: var(--ff-serif); font-weight: 600; font-size: 18px; letter-spacing: .1em; margin: 2px 0 6px; }
.flow-step p { font-size: 14px; color: var(--c-text-sub); }

/* =========================================================
   モデルハウス
   ========================================================= */
.modelhouse { display: grid; background: var(--c-main); color: var(--c-white); }
.modelhouse-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; height: 100%; }
.modelhouse-body { padding: 64px var(--gutter); }
.modelhouse .section-title { color: var(--c-white); margin-bottom: 20px; font-size: clamp(22px, 5.6vw, 32px); }
.modelhouse-body > p:not(.section-label) { font-size: 14px; opacity: .92; }
.info-list { margin: 28px 0 32px; border-top: 1px solid rgba(255,255,255,.2); }
.info-list > div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.2); font-size: 14px; }
.info-list dt { opacity: .7; }

/* =========================================================
   お知らせ
   ========================================================= */
.news-inner { display: grid; gap: 32px; }
.news-head .section-title { margin-bottom: 16px; }
.news-list { border-top: 1px solid var(--c-line); }
.news-list li { border-bottom: 1px solid var(--c-line); }
.news-list a {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center;
  padding: 20px 0; transition: color .3s;
}
.news-list a:hover { color: var(--c-main); }
.news-list time { font-family: var(--ff-en); font-size: 15px; font-weight: 600; letter-spacing: .08em; color: var(--c-text-sub); }
.news-cat { justify-self: start; font-size: 11px; letter-spacing: .1em; background: var(--c-base-2); padding: 1px 10px; }
.news-title { grid-column: 1 / -1; font-size: 14px; line-height: 1.7; }

/* =========================================================
   ページ末尾CTA
   ========================================================= */
.cta {
  position: relative; padding: 96px 0; color: var(--c-white);
  background:
    linear-gradient(rgba(43, 32, 23, .88), rgba(43, 32, 23, .88)),
    url("../img/tools-wall.jpg") center / cover no-repeat;
}
.cta-inner { text-align: left; }
.cta-title {
  font-family: var(--ff-serif); font-weight: 600;
  font-size: clamp(26px, 7vw, 44px); line-height: 1.6; letter-spacing: .1em;
}
.cta-lead { margin-top: 20px; font-size: 14px; opacity: .9; }
.cta-grid { margin-top: 40px; display: grid; gap: 14px; }
.cta-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 24px 24px 22px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.04);
  transition: background-color .3s, border-color .3s, transform .3s var(--ease);
}
.cta-card:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); transform: translateY(-2px); }
.cta-card-label { font-size: 12px; letter-spacing: .14em; color: var(--c-sub); }
.cta-card-main { white-space: nowrap; font-family: var(--ff-en); font-size: clamp(28px, 8vw, 34px); font-weight: 600; letter-spacing: .04em; line-height: 1.2; }
.cta-card-main--text { font-family: var(--ff-serif); font-size: 19px; letter-spacing: .1em; padding: 6px 0; }
.cta-card-main--text::after { content: " →"; font-family: var(--ff-en); }
.cta-card-note { font-size: 12px; line-height: 1.7; opacity: .8; }
.cta-card--tel { background: var(--c-accent); border-color: var(--c-accent); }
.cta-card--tel:hover { background: var(--c-accent-dark); border-color: var(--c-accent-dark); }
.cta-card--tel .cta-card-label { color: rgba(255,255,255,.85); }

/* =========================================================
   フッター
   ========================================================= */
.site-footer { background: #231D18; color: #D8CFC4; padding: 72px 0 24px; font-size: 13px; }
.footer-inner { display: grid; gap: 48px; }
.logo--footer { color: var(--c-white); margin-bottom: 20px; }
.footer-company { color: var(--c-white); font-weight: 500; margin-bottom: 8px; }
.footer-address { line-height: 2; }
.footer-address a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(216,207,196,.4); }
.footer-heading {
  font-family: var(--ff-serif); font-weight: 600; font-size: 14px; letter-spacing: .14em;
  color: var(--c-white); margin-bottom: 14px;
}
.info-list--footer { margin: 0; border-top-color: rgba(255,255,255,.12); }
.info-list--footer > div { border-bottom-color: rgba(255,255,255,.12); font-size: 13px; grid-template-columns: 7em 1fr; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-bottom: 36px; white-space: nowrap; }
.footer-nav a:hover, .sns-list a:hover { color: var(--c-white); }
.sns-list { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.sns-list a { display: inline-flex; align-items: center; gap: 8px; transition: color .3s; }
.sns-list svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.sns-list svg .fill { fill: currentColor; stroke: none; }
.copyright small { font-size: 12px; }
.copyright { text-align: center; margin-top: 56px; font-family: var(--ff-en); letter-spacing: .14em; opacity: .6; }

/* =========================================================
   スマホ固定CTA
   ========================================================= */
.sp-fixed-cta {
  position: fixed; inset: auto 0 0 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr;
  height: 64px;
  box-shadow: 0 -4px 16px rgba(43,38,34,.12);
  transform: translateY(100%); transition: transform .4s var(--ease);
}
.sp-fixed-cta.is-visible { transform: translateY(0); }
.sp-fixed-cta a { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14px; letter-spacing: .08em; }
.sp-fixed-tel { background: var(--c-white); color: var(--c-main); }
.sp-fixed-tel svg { width: 18px; height: 18px; fill: currentColor; }
.sp-fixed-form { background: var(--c-accent); color: var(--c-white); }

/* =========================================================
   ページトップボタン
   スマホ・タブレットでは下部の固定CTAバー（64px）の上に配置
   ========================================================= */
.page-top {
  position: fixed; z-index: 80;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(64px + 16px + env(safe-area-inset-bottom, 0px));
  width: 52px; height: 52px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: var(--c-main); color: var(--c-white);
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 2px;
  box-shadow: 0 6px 18px rgba(43, 38, 34, .22);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .4s var(--ease), visibility .4s, transform .4s var(--ease), background-color .3s;
}
.page-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.page-top:hover { background: var(--c-main-dark); }
.page-top svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .35s var(--ease);
}
.page-top:hover svg { transform: translateY(-3px); }
.page-top-label { font-family: var(--ff-en); font-weight: 600; font-size: 11px; letter-spacing: .16em; line-height: 1; padding-left: .16em; }
.is-open ~ .page-top { opacity: 0; visibility: hidden; } /* メニュー展開中は隠す */

/* =========================================================
   スクロール表示アニメーション
   （JSが無効な環境では最初から表示）
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-inview { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide.is-zoom { animation: none; }
  .hero-slide { transition: none; }
  .hero-scroll::after { animation: none; }
  .page-top, .page-top svg { transition: none; }
  .scroll-hint::after { animation: none; }
}

/* =========================================================
   タブレット（768px〜）
   ========================================================= */
@media (min-width: 768px) {
  :root { --gutter: 40px; --header-h: 76px; }
  body { font-size: 16px; }
  .section { padding: 120px 0; }
  .sp-only { display: none; }

  .hero-content { padding-bottom: 88px; }
  .hero-scroll { left: auto; right: 26px; transform: none; padding-bottom: 72px; }
  .hero-scroll::after { height: 60px; }
  .hero-lead { font-size: 15px; }
  .hero-cta { display: flex; gap: 16px; }
  .hero-cta .btn { width: auto; min-width: 260px; }

  .section-head--row { flex-direction: row; justify-content: space-between; align-items: flex-end; }

  .reason-list { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .reason--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-bottom: 56px; }
  .reason--feature .reason-media img { margin-bottom: 0; aspect-ratio: 4 / 3; }
  .reason:last-child { border-bottom: 0; }
  .reason-list > .reason:nth-last-child(2) { border-bottom: 1px solid var(--c-line); }
  .reason-list > .reason:last-child { border-bottom: 1px solid var(--c-line); }

  .service-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .service-media img { aspect-ratio: 3 / 4; }

  .works-list { grid-template-columns: repeat(3, 1fr); gap: 28px; }

  /* 家づくりの流れ：タブレットは縦のタイムラインのまま、説明文を横に並べて読みやすく */
  .flow-step { display: grid; grid-template-columns: 7em 12em 1fr; align-items: baseline; gap: 0 20px; padding-bottom: 36px; }
  .flow-step h3 { margin: 0; }

  /* モデルハウス：タブレットは写真を上、文章を下に */
  .modelhouse-media img { aspect-ratio: 16 / 9; }
  .modelhouse-body { padding: 80px var(--gutter); }
  .btn-wide { width: auto; }

  .service-title { font-size: 18px; }

  .cta { padding: 128px 0; }
  .cta-inner { text-align: center; }
  .cta .section-label { justify-content: center; }
  /* お問い合わせ：タブレットは電話を横長1枚＋その下に2枚 */
  .cta-grid { grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; }
  .cta-card--tel { grid-column: 1 / -1; }

  /* フッター：会社情報と営業案内を2列、メニューとSNSは下段に全幅で */
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-nav-wrap { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 0 48px; }
  .footer-nav-wrap .footer-heading:nth-of-type(2) { grid-column: 2; grid-row: 1; }
  .footer-nav { grid-template-columns: repeat(3, auto); justify-content: start; gap: 10px 32px; margin-bottom: 0; }
  .sns-list { grid-column: 2; grid-row: 2; align-content: start; }
}

/* =========================================================
   PC（1080px〜）
   ========================================================= */
@media (min-width: 1080px) {
  body { padding-bottom: 0; }
  .sp-fixed-cta { display: none; }
  .page-top { width: 60px; height: 60px; right: max(32px, env(safe-area-inset-right, 0px)); bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }

  /* ヘッダー：横並びナビ */
  .menu-toggle { display: none; }
  .global-nav {
    position: static; inset: auto; padding: 0; background: none; color: inherit;
    width: auto; height: auto;
    opacity: 1; visibility: visible; flex-direction: row; overflow: visible;
    margin-left: auto;
  }
  .global-nav ul { display: flex; align-items: center; gap: 18px; }
  .global-nav ul li { border: 0; }
  .global-nav ul a {
    padding: 8px 0; font-family: var(--ff-sans); font-size: 14px; font-weight: 500; letter-spacing: .08em; white-space: nowrap;
    position: relative;
  }
  .global-nav ul li:not(.nav-contact) a::after {
    content: ""; position: absolute; left: 0; bottom: 2px; width: 100%; height: 1px;
    background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
  }
  .global-nav ul li:not(.nav-contact) a:hover::after { transform: scaleX(1); transform-origin: left; }
  .global-nav .nav-contact a {
    color: var(--c-white); background: var(--c-accent); padding: 10px 20px; border-radius: 2px;
    transition: background-color .3s;
  }
  .global-nav .nav-contact a:hover { background: var(--c-accent-dark); }
  .nav-tel-sp { display: none; }

  .header-tel {
    display: none; flex-direction: column; align-items: flex-end; line-height: 1.2;
    margin-left: 32px; padding-left: 28px; border-left: 1px solid currentColor;
    border-left-color: color-mix(in srgb, currentColor 35%, transparent);
  }
  .header-tel-label { font-size: 11px; letter-spacing: .14em; opacity: .8; }
  .header-tel-num { font-family: var(--ff-en); font-size: 24px; font-weight: 600; letter-spacing: .06em; }

  /* メインビジュアル */
  .hero-content { padding-bottom: 120px; }
  .hero-scroll { right: 26px; font-size: 12px; padding-bottom: 96px; }
  .hero-scroll::after { height: 80px; }

  /* 家づくりの流れ：PCで横5列に */
  .flow-list { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .flow-step { display: block; border-left: 0; border-top: 1px solid var(--c-sub); padding: 28px 0 0; margin-left: 0; }
  .flow-step:last-child { border-top-color: var(--c-sub); }
  .flow-step::before { left: 0; top: -7px; }
  .flow-step h3 { margin: 2px 0 6px; }

  /* モデルハウス：PCで左右2分割 */
  .modelhouse { grid-template-columns: 1fr 1fr; }
  .modelhouse-media img { aspect-ratio: auto; min-height: 100%; }

  .service-title { font-size: 21px; }
  .cta-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .cta-card--tel { grid-column: auto; }

  .philosophy-inner { grid-template-columns: 5fr 6fr; gap: 96px; align-items: center; }
  .philosophy-media::before { inset: 28px -28px -28px 28px; }

  .reason-list { grid-template-columns: repeat(4, 1fr); column-gap: 40px; }
  .reason-list > .reason:not(.reason--feature) { border-bottom: 1px solid var(--c-line); }
  .reason--feature { grid-template-columns: 7fr 5fr; gap: 72px; }
  .reason--feature .reason-title { font-size: 26px; }
  .reason--feature .reason-num { font-size: 64px; }
  .reason-title { font-size: 19px; }

  .service-grid { gap: 40px; }

  .news-inner { grid-template-columns: 300px 1fr; gap: 80px; }
  .news-list a { grid-template-columns: 110px 90px 1fr; padding: 24px 8px; }
  .news-cat { justify-self: center; }
  .news-title { grid-column: auto; font-size: 15px; }

  .modelhouse-body { padding: 120px 80px; max-width: 640px; }

  .footer-inner { grid-template-columns: 1.1fr 1.3fr 1fr; gap: 64px; }
  .footer-nav-wrap { grid-column: auto; display: block; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-bottom: 36px; }
}

/* =========================================================
   ワイドPC（1360px〜）：ヘッダーに電話番号を表示
   1080〜1359px ではメニューと電話番号が並びきらないため非表示
   ========================================================= */
@media (min-width: 1360px) {
  .global-nav ul { gap: 22px; }
  .header-tel { display: flex; }
}
@media (min-width: 1440px) {
  .global-nav ul { gap: 30px; }
}

/* =========================================================
   高さの低い画面（スマホ横向きなど）
   ========================================================= */
@media (max-height: 540px) and (orientation: landscape) {
  .hero-title { font-size: clamp(26px, 5vw, 40px); }
  .hero-content { padding-bottom: 40px; }
  .hero-lead { margin-top: 12px; }
  .hero-cta { margin-top: 20px; }
  .hero-scroll { display: none; }
}

/* =========================================================
   =========================================================
   下層ページ共通
   =========================================================
   ========================================================= */

/* 現在のページをナビで示す */
.global-nav a[aria-current="page"] { color: var(--c-main); }

/* ---------- ページ見出し ---------- */
.page-hero {
  position: relative;
  min-height: clamp(300px, 52svh, 560px);
  padding-top: var(--header-h);
  display: flex; align-items: flex-end;
  color: var(--c-white); overflow: hidden;
}
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.page-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(30, 22, 16, .6) 0%, rgba(30, 22, 16, 0) 35%),
    linear-gradient(to top, rgba(30, 22, 16, .7) 0%, rgba(30, 22, 16, .25) 60%);
}
.page-hero-content {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--container); margin: 0 auto;
  padding: 0 var(--gutter) 40px;
}
.page-hero-en { font-family: var(--ff-en); font-weight: 600; font-size: 15px; letter-spacing: .2em; opacity: .9; }
.page-hero-title {
  font-family: var(--ff-serif); font-weight: 600;
  font-size: clamp(24px, 7vw, 52px); letter-spacing: .14em; line-height: 1.4; margin-top: 6px;
}

/* ---------- パンくずリスト ---------- */
.breadcrumb { border-bottom: 1px solid var(--c-line); font-size: 12px; color: var(--c-text-sub); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0; padding-block: 4px; }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin: 0 12px; opacity: .5; }
.breadcrumb a { display: inline-block; padding-block: 10px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--c-line); transition: color .3s; }
.breadcrumb a:hover { color: var(--c-main); }

/* =========================================================
   私たちについて（about.html）
   ========================================================= */

/* 想い */
.about-intro-inner { display: grid; gap: 40px; }
.about-intro-title {
  font-family: var(--ff-serif); font-weight: 600;
  font-size: clamp(26px, 7vw, 44px); line-height: 1.6; letter-spacing: .14em; color: var(--c-main-dark);
}
.about-intro-text { display: grid; gap: 20px; max-width: 36em; }
.about-intro-lead { font-family: var(--ff-serif); font-weight: 600; font-size: clamp(18px, 4.8vw, 22px); letter-spacing: .1em; color: var(--c-main); }

/* 約束 */
.about-promise { background: var(--c-white); }
.promise-list { border-top: 1px solid var(--c-line); }
.promise { padding: 32px 0; border-bottom: 1px solid var(--c-line); display: grid; gap: 12px; }
.promise-title { font-family: var(--ff-serif); font-weight: 600; font-size: 20px; line-height: 1.6; letter-spacing: .1em; color: var(--c-main-dark); word-break: auto-phrase; }
.promise p { font-size: 14px; }

/* 大工のこと */
.about-craft-inner { display: grid; gap: 48px; }
.about-craft-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.about-craft-media img { width: 100%; object-fit: cover; }
.about-craft-media img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.about-craft-media img:last-child { grid-column: 2; aspect-ratio: 4 / 3; margin-top: -48px; border: 6px solid var(--c-base); }
.about-craft-text { display: grid; gap: 18px; align-content: start; }
.about-craft-text .section-label { margin-bottom: 0; }
.craft-points { margin-top: 12px; border-top: 1px solid var(--c-line); }
.craft-points > div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--c-line); font-size: 14px; }
.craft-points dt { font-family: var(--ff-serif); font-weight: 600; color: var(--c-main); letter-spacing: .08em; }

/* 代表あいさつ */
.about-message { background: var(--c-base-2); }
.about-message-inner { display: grid; gap: 32px; }
.about-message-title {
  font-family: var(--ff-serif); font-weight: 600;
  font-size: clamp(21px, 5.6vw, 30px); line-height: 1.7; letter-spacing: .08em;
  word-break: auto-phrase; text-wrap: balance;
}
.about-message-head { display: grid; gap: 28px; justify-items: start; }
.about-message-head .section-label { margin-bottom: -10px; }
.about-message-photo { width: min(72%, 320px); justify-self: center; text-align: center; } /* スマホでは写真を中央に */
.about-message-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-message-photo figcaption { margin-top: 12px; font-size: 13px; letter-spacing: .1em; color: var(--c-text-sub); }
.photo-note { display: block; margin-top: 2px; font-size: 11px; letter-spacing: .06em; opacity: .8; }
.about-message-body { display: grid; gap: 20px; max-width: 36em; }
.about-message-sign { margin-top: 12px; text-align: right; font-size: 13px; color: var(--c-text-sub); line-height: 2; }
.sign-name { font-family: var(--ff-serif); font-weight: 600; font-size: 20px; letter-spacing: .2em; color: var(--c-text); }

/* あゆみ */
.history-list { border-top: 1px solid var(--c-line); }
.history-list li { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--c-line); }
.history-year { font-family: var(--ff-serif); font-weight: 600; color: var(--c-main); letter-spacing: .1em; }

/* 会社案内 */
.company-table { border-top: 1px solid var(--c-text); margin-bottom: 64px; }
.company-table > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--c-line); font-size: 14px; }
.company-table dt { font-weight: 500; color: var(--c-text-sub); }
.company-table dd { min-width: 0; overflow-wrap: anywhere; }

/* アクセス */
.access-grid { display: grid; gap: 24px; }
.access-card { background: var(--c-white); padding: 28px 22px 32px; display: grid; gap: 20px; align-content: start; }
.access-title { font-family: var(--ff-serif); font-weight: 600; font-size: 18px; letter-spacing: .08em; display: grid; gap: 2px; }
.access-title .en { font-family: var(--ff-en); font-size: 14px; letter-spacing: .14em; color: var(--c-main); }
.map-placeholder {
  aspect-ratio: 16 / 10; max-width: 100%;
  display: grid; place-items: center;
  background-color: var(--c-base-2);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(107, 74, 50, .08) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(107, 74, 50, .08) 39px 40px);
}
.map-placeholder span { font-family: var(--ff-en); font-weight: 600; font-size: 18px; letter-spacing: .3em; color: var(--c-main); opacity: .6; }
.access-info { border-top: 1px solid var(--c-line); }
.access-info > div { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--c-line); font-size: 14px; }
.access-info dt { color: var(--c-text-sub); }
.access-card .text-link { justify-self: start; }

/* ---------- 下層ページ：タブレット（768px〜） ---------- */
@media (min-width: 768px) {
  .page-hero-content { padding-bottom: 64px; }
  .breadcrumb ol { padding-block: 8px; }

  .promise { grid-template-columns: 16em 1fr; gap: 40px; padding: 40px 0; }
  .about-craft-media img:last-child { margin-top: -80px; border-width: 10px; }

  /* 代表あいさつ：見出しは上に全幅、その下で「写真｜あいさつ文」を横並び（文章は写真の縦中央） */
  .about-message-inner { grid-template-columns: minmax(220px, 280px) 1fr; column-gap: 48px; row-gap: 0; }
  .about-message-head { display: contents; }
  .about-message-head .section-label { grid-column: 1 / -1; margin-bottom: 18px; }
  .about-message-title { grid-column: 1 / -1; margin-bottom: 40px; }
  .about-message-photo { grid-column: 1; width: 100%; align-self: center; text-align: left; }
  .about-message-body { grid-column: 2; align-self: center; }

  .history-list li { grid-template-columns: 10em 1fr; gap: 24px; padding: 24px 0; }
  .company-table > div { grid-template-columns: 12em 1fr; gap: 24px; padding: 20px 8px; font-size: 15px; }
  .access-grid { grid-template-columns: 1fr 1fr; }
  .access-card { padding: 36px 32px 40px; }
}

/* ---------- 下層ページ：PC（1080px〜） ---------- */
@media (min-width: 1080px) {
  .global-nav ul li:not(.nav-contact) a[aria-current="page"] { color: inherit; } /* 下線はホバー時のみ（現在地でも常時表示しない） */

  .page-hero-content { padding-bottom: 80px; }

  /* 想い：キャッチコピーを縦書きに */
  .about-intro-inner { grid-template-columns: auto 1fr; gap: 120px; justify-content: center; align-items: start; }
  .about-intro-title { writing-mode: vertical-rl; font-size: 40px; line-height: 2; letter-spacing: .24em; order: 2; }
  .about-intro-text { order: 1; padding-top: 12px; }

  .promise-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; border-top: 0; }
  .promise { grid-template-columns: 1fr; gap: 16px; padding: 32px 0 0; border-bottom: 0; border-top: 1px solid var(--c-main); }

  .about-craft-inner { grid-template-columns: 6fr 5fr; gap: 80px; align-items: center; }

  .about-message-inner { grid-template-columns: 380px 1fr; column-gap: 80px; }
}

/* =========================================================
   家づくり・リフォーム（service.html）
   ========================================================= */

/* ページ内リンクで飛んだとき、固定ヘッダーに見出しが隠れないように */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ページ内メニュー */
.service-anchors { display: grid; gap: 10px; }
.service-anchors a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px;
  padding: 18px 20px; background: var(--c-white); border: 1px solid var(--c-line);
  transition: border-color .3s, background-color .3s;
}
.service-anchors a::after {
  content: "↓"; grid-column: 2; grid-row: 1 / span 2;
  font-family: var(--ff-en); font-size: 18px; color: var(--c-main);
  transition: transform .3s var(--ease);
}
.service-anchors a:hover { border-color: var(--c-main); }
.service-anchors a:hover::after { transform: translateY(3px); }
.service-anchor-en { font-family: var(--ff-en); font-weight: 600; font-size: 13px; letter-spacing: .14em; color: var(--c-main); }
.service-anchor-ja { font-family: var(--ff-serif); font-weight: 600; font-size: 17px; letter-spacing: .08em; }

/* 写真と文章のブロック */
.service-block { padding: 88px 0; }
.service-block:nth-of-type(even) { background: var(--c-white); }
.service-block--reverse { background: var(--c-white); }
.service-block-inner { display: grid; gap: 36px; }
.service-block-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-block-body { display: grid; gap: 18px; align-content: start; }
.service-block-body .section-label { margin-bottom: 0; }
.service-block-body .section-title { margin-bottom: 4px; }

/* チェックリスト */
.check-list { display: grid; gap: 10px; margin-top: 8px; padding: 22px 22px; background: var(--c-base-2); }
.service-block--reverse .check-list, .service-block:nth-of-type(even) .check-list { background: var(--c-base); }
.check-list li { position: relative; padding-left: 28px; font-size: 14px; font-weight: 500; }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: .55em;
  width: 12px; height: 7px;
  border-left: 1.5px solid var(--c-main); border-bottom: 1.5px solid var(--c-main);
  transform: rotate(-45deg);
}

/* リフォームのメニュー */
.reform-menu { display: grid; gap: 0; margin-top: 56px; }
.reform-item { padding: 24px 0; border-top: 1px solid var(--c-line); display: grid; gap: 8px; }
.reform-item:last-child { border-bottom: 1px solid var(--c-line); }
.reform-item h3 { font-family: var(--ff-serif); font-weight: 600; font-size: 18px; letter-spacing: .08em; color: var(--c-main-dark); }
.reform-item p { font-size: 14px; color: var(--c-text-sub); }

/* メンテナンスのポイント */
.maintenance-points { margin-top: 8px; border-top: 1px solid var(--c-line); }
.maintenance-points > div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--c-line); font-size: 14px; }
.maintenance-points dt { font-family: var(--ff-serif); font-weight: 600; color: var(--c-main); letter-spacing: .06em; }

/* 家づくりの流れ（詳細版） */
.flow--detail { background: var(--c-base-2); }
.flow--detail .flow-step::before { background: var(--c-base-2); }

/* 施工エリア */
.service-area-inner { display: grid; gap: 48px; align-items: center; }
.service-area-body { display: grid; gap: 18px; }
.service-area-body .section-label { margin-bottom: 0; }
.service-area-body .text-link { justify-self: start; }
.area-figure { display: grid; place-items: center; }
.area-ring {
  position: relative; width: min(100%, 340px); aspect-ratio: 1 / 1; border-radius: 50%;
  border: 1.5px dashed var(--c-main);
  background: radial-gradient(circle, rgba(217, 195, 160, .45) 0%, rgba(217, 195, 160, .15) 60%, transparent 72%);
  display: grid; place-items: center;
}
.area-ring::before {
  content: ""; position: absolute; inset: 24%; border-radius: 50%; border: 1px solid var(--c-sub);
}
.area-center {
  position: relative; z-index: 1;
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-main); color: var(--c-white);
  font-family: var(--ff-serif); font-weight: 600; font-size: 16px; letter-spacing: .12em;
}
.area-ring-label {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--c-base); padding: 2px 14px;
  font-family: var(--ff-serif); font-weight: 600; font-size: 15px; letter-spacing: .1em; color: var(--c-main);
  white-space: nowrap;
}

/* ---------- service：タブレット（768px〜） ---------- */
@media (min-width: 768px) {
  .service-anchors { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .service-anchors a { padding: 22px 22px; }
  .service-block { padding: 120px 0; }
  .check-list { grid-template-columns: 1fr 1fr; gap: 10px 24px; padding: 26px 28px; }
  .reform-menu { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .reform-item:nth-last-child(2) { border-bottom: 1px solid var(--c-line); }
  .service-area-inner { grid-template-columns: 5fr 6fr; gap: 56px; }
}

/* ---------- service：PC（1080px〜） ---------- */
@media (min-width: 1080px) {
  .service-block-inner { grid-template-columns: 6fr 5fr; gap: 80px; align-items: center; }
  .service-block--reverse .service-block-media { order: 2; }
  .service-block-media img { aspect-ratio: 5 / 4; }
  .service-block-body .section-title { font-size: 34px; }
  .check-list { grid-template-columns: 1fr; }
  .reform-menu { grid-template-columns: repeat(4, 1fr); column-gap: 32px; margin-top: 80px; }
  .reform-item { border-bottom: 1px solid var(--c-line); padding: 28px 0; }
  .service-area-inner { gap: 96px; }
}

/* =========================================================
   費用の目安（price.html）
   ========================================================= */

/* 考え方 */
.price-intro-inner { display: grid; gap: 28px; }
.price-intro-text { display: grid; gap: 20px; max-width: 38em; }

/* 見積書の比較 */
.estimate { background: var(--c-white); }
.estimate-compare { display: grid; gap: 24px; }
.estimate-card { min-width: 0; border: 1px solid var(--c-line); background: var(--c-base); }
.estimate-card--ours { border-color: var(--c-main); background: var(--c-white); box-shadow: 0 10px 30px rgba(107, 74, 50, .1); }
.estimate-caption { display: grid; gap: 4px; padding: 18px 20px; border-bottom: 1px solid var(--c-line); }
.estimate-card--ours .estimate-caption { background: var(--c-main); color: var(--c-white); border-bottom-color: var(--c-main); }
.estimate-tag { font-family: var(--ff-serif); font-weight: 600; font-size: 17px; letter-spacing: .08em; }
.estimate-note { font-size: 12px; opacity: .8; }
.estimate-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.estimate-scroll:focus-visible { outline-offset: -3px; }
.estimate-table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
.estimate-card--ours .estimate-table { min-width: 560px; }
.estimate-table th, .estimate-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--c-line); }
.estimate-table thead th { font-weight: 500; font-size: 12px; color: var(--c-text-sub); background: var(--c-base-2); }
.estimate-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.estimate-table thead th:nth-last-child(-n+3) { text-align: right; }
.estimate-card--plain .estimate-table thead th:not(:last-child) { text-align: left; }
.scroll-hint {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 8px 14px 0; font-size: 11px; color: var(--c-text-sub); letter-spacing: .06em;
}
.scroll-hint::after { content: "→"; font-family: var(--ff-en); font-size: 14px; animation: hintMove 1.6s var(--ease) infinite; }
@keyframes hintMove { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
.estimate-group th { background: var(--c-base); font-family: var(--ff-serif); font-weight: 600; color: var(--c-main); letter-spacing: .08em; }
.estimate-card--plain .estimate-table td { padding-block: 20px; color: var(--c-text-sub); }
.estimate-footnote { margin-top: 16px; font-size: 12px; color: var(--c-text-sub); }

/* 費用の目安 */
.price-groups { display: grid; gap: 20px; }
.price-group { background: var(--c-white); padding: 28px 22px 32px; display: grid; gap: 20px; align-content: start; }
.price-group-title { font-family: var(--ff-serif); font-weight: 600; font-size: 19px; letter-spacing: .08em; display: grid; gap: 2px; }
.price-group-title .en { font-family: var(--ff-en); font-size: 14px; letter-spacing: .14em; color: var(--c-main); }
.price-list { border-top: 1px solid var(--c-line); }
.price-list > div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.price-list dt { font-size: 14px; font-weight: 500; }
.price-list dd { display: grid; justify-items: end; text-align: right; }
.price-value { font-family: var(--ff-serif); font-weight: 600; font-size: 22px; letter-spacing: .04em; color: var(--c-main-dark); white-space: nowrap; }
.price-value small { font-size: 13px; margin-left: 2px; }
.price-value--text { font-size: 14px; white-space: normal; }
.price-sub { font-size: 11px; color: var(--c-text-sub); }
.price-group .text-link { justify-self: start; }

/* 費用の内訳 */
.cost-breakdown { background: var(--c-base-2); }
.breakdown-list { display: grid; gap: 12px; }
.breakdown-item { background: var(--c-white); padding: 24px 22px; border-top: 3px solid var(--c-sub); display: grid; gap: 8px; }
.breakdown-item--main { border-top-color: var(--c-main); }
.breakdown-item h3 { font-family: var(--ff-serif); font-weight: 600; font-size: 18px; letter-spacing: .1em; }
.breakdown-item p { font-size: 14px; color: var(--c-text-sub); }

/* よくあるご質問 */
.faq-inner { display: grid; gap: 40px; }
.faq-list { border-top: 1px solid var(--c-line); }
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 20px 4px; font-weight: 500; font-size: 15px; line-height: 1.7;
  transition: color .3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
/* 開閉ボタン：＋ → 開くと縦線が回転して － に */
.faq-icon { position: relative; width: 20px; height: 20px; margin-right: 4px; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 16px; height: 1.5px; background: var(--c-main);
  transform: translate(-50%, -50%);
  transition: transform .45s var(--ease);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open]:not(.is-closing) .faq-icon::after { transform: translate(-50%, -50%) rotate(180deg); }
.faq-item summary:hover { color: var(--c-main); }
.faq-q { font-family: var(--ff-en); font-weight: 600; font-size: 22px; line-height: 1; color: var(--c-main); }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 4px 24px 36px; font-size: 14px; color: var(--c-text-sub); }

/* ---------- price：タブレット（768px〜） ---------- */
@media (min-width: 768px) {
  .price-intro-inner { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .estimate-caption { padding: 20px 24px; }
  .price-groups { grid-template-columns: 1fr 1fr; }
  .price-group { padding: 36px 32px 40px; }
  .price-groups .price-group:first-child { grid-column: 1 / -1; }
  .breakdown-list { grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
  .faq-item summary { padding: 24px 8px; font-size: 16px; }
  .faq-a p { padding: 0 8px 28px 44px; }
}

/* ---------- price：PC（1080px〜） ---------- */
@media (min-width: 1080px) {
  .estimate-compare { grid-template-columns: 4fr 7fr; gap: 40px; align-items: start; }
  .estimate-card--ours .estimate-table { min-width: 0; }
  .scroll-hint { display: none; }
  .price-groups { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .price-groups .price-group:first-child { grid-column: auto; }
  .faq-inner { grid-template-columns: 4fr 7fr; gap: 80px; align-items: start; }
}

/* =========================================================
   施工例（works.html）
   ========================================================= */

/* 絞り込みボタン */
.works-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } /* スマホは 2列×2段 */
.filter-btn {
  min-height: 44px; padding: 8px 20px;
  border: 1px solid var(--c-line); background: var(--c-white); border-radius: 2px;
  font-size: 14px; font-weight: 500; letter-spacing: .08em;
  transition: background-color .3s, color .3s, border-color .3s;
}
.filter-btn:hover { border-color: var(--c-main); color: var(--c-main); }
.filter-btn[aria-pressed="true"] { background: var(--c-main); border-color: var(--c-main); color: var(--c-white); }
.works-count { margin: 20px 0 28px; font-size: 13px; color: var(--c-text-sub); }
.works-count span { font-family: var(--ff-en); font-weight: 600; font-size: 20px; color: var(--c-main); margin-right: 2px; font-variant-numeric: lining-nums; }

/* カード */
.works-grid { display: grid; gap: 40px 24px; }
/* 絞り込み（施工例・お知らせ共通） */
[data-cat].is-hidden { display: none; }
[data-cat].is-showing { animation: workIn .6s var(--ease) both; }
@keyframes workIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.work-open { display: block; width: 100%; text-align: left; padding: 0; }
.work-open .work-media { display: block; overflow: hidden; margin-bottom: 14px; position: relative; }
.work-open .work-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .8s var(--ease); }
.work-open .work-media::after {
  content: "詳しく見る"; position: absolute; right: 0; bottom: 0;
  padding: 6px 14px; background: rgba(43, 38, 34, .72); color: var(--c-white);
  font-size: 12px; letter-spacing: .1em;
  opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.work-open:hover .work-media img { transform: scale(1.05); }
.work-open:hover .work-media::after, .work-open:focus-visible .work-media::after { opacity: 1; transform: none; }
.work-open .work-cat { margin-bottom: 8px; }
.work-open .work-title { display: block; font-family: var(--ff-serif); font-weight: 600; font-size: 17px; letter-spacing: .06em; line-height: 1.7; word-break: auto-phrase; }
.work-meta { display: block; margin-top: 4px; font-size: 12px; color: var(--c-text-sub); }

/* 詳細（モーダル） */
.work-dialog {
  width: min(100% - 32px, 1000px); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; background: var(--c-base); color: var(--c-text);
  overflow: auto; overscroll-behavior: contain;
}
.work-dialog::backdrop { background: rgba(30, 22, 16, .7); }
.work-dialog[open] { animation: dialogIn .45s var(--ease) both; }
.work-dialog[open]::backdrop { animation: fadeIn .45s var(--ease) both; }
.work-dialog.is-closing { animation: dialogOut .3s var(--ease) both; }
.work-dialog.is-closing::backdrop { animation: fadeOut .3s var(--ease) both; }
@keyframes dialogIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes dialogOut { to { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.work-dialog-inner { position: relative; display: grid; }
.work-dialog-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.work-dialog-body { padding: 24px 22px 32px; display: grid; gap: 14px; justify-items: start; }
.work-dialog-title { font-family: var(--ff-serif); font-weight: 600; font-size: clamp(20px, 5vw, 26px); line-height: 1.6; letter-spacing: .06em; word-break: auto-phrase; text-wrap: balance; }
.work-dialog-detail { display: grid; gap: 20px; width: 100%; font-size: 14px; }
.work-dialog-detail dl { border-top: 1px solid var(--c-line); }
.work-dialog-detail dl > div { display: grid; grid-template-columns: 6em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--c-line); }
.work-dialog-detail dt { color: var(--c-text-sub); }
.work-dialog-close {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(247, 243, 236, .92); box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.work-dialog-close::before, .work-dialog-close::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 1.5px; background: var(--c-text);
  transform: translate(-50%, -50%) rotate(45deg);
}
.work-dialog-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
body.is-dialog-open { overflow: hidden; }

/* お住まいの方の声 */
.voices { background: var(--c-white); }
.voice-list { display: grid; gap: 20px; }
.voice { background: var(--c-base); padding: 28px 24px; display: grid; gap: 16px; align-content: space-between; position: relative; }
.voice::before {
  content: "“"; position: absolute; top: 4px; left: 16px;
  font-family: var(--ff-en); font-size: 64px; line-height: 1; color: var(--c-sub);
}
.voice blockquote p { font-family: var(--ff-serif); font-weight: 500; font-size: 16px; line-height: 1.9; padding-top: 20px; }
.voice-name { font-size: 12px; color: var(--c-text-sub); text-align: right; }
.voice-name::before { content: "― "; }

/* 見学会のご案内 */
.works-visit { padding: 72px 0; background: var(--c-base-2); }
.works-visit-inner { display: grid; gap: 24px; }
.works-visit-body { display: grid; gap: 24px; }
.works-visit-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* ---------- works：タブレット（768px〜） ---------- */
@media (min-width: 768px) {
  .works-filter { display: flex; flex-wrap: wrap; }
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 28px; }
  .work-dialog-body { padding: 32px 36px 40px; }
  .voice-list { grid-template-columns: repeat(3, 1fr); }
  .voice { padding: 32px 26px; }
  .works-visit { padding: 96px 0; }
}

/* ---------- works：PC（1080px〜） ---------- */
@media (min-width: 1080px) {
  .works-grid { grid-template-columns: repeat(3, 1fr); gap: 56px 32px; }
  .work-dialog-inner { grid-template-columns: 3fr 2fr; }
  .work-dialog-media img { height: 100%; aspect-ratio: auto; min-height: 480px; }
  .work-dialog-body { padding: 56px 40px 40px; align-content: start; }
  .works-visit-inner { grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
}

/* =========================================================
   お知らせ（news.html）
   ========================================================= */

/* 次回の見学会 */
.next-event { padding-bottom: 0; }
.next-event-card { display: grid; background: var(--c-white); box-shadow: 0 10px 30px rgba(107, 74, 50, .08); }
.next-event-media { position: relative; }
.next-event-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; height: 100%; }
.next-event-badge {
  position: absolute; top: 16px; left: 0;
  background: var(--c-accent); color: var(--c-white);
  padding: 6px 16px; font-size: 13px; font-weight: 700; letter-spacing: .12em;
}
.next-event-body { padding: 28px 22px 32px; display: grid; gap: 18px; justify-items: start; }
.next-event-body .section-label { margin-bottom: 0; }
.next-event-title { font-family: var(--ff-serif); font-weight: 600; font-size: clamp(20px, 5.4vw, 28px); line-height: 1.6; letter-spacing: .08em; word-break: auto-phrase; text-wrap: balance; }
.next-event-info { width: 100%; border-top: 1px solid var(--c-line); }
.next-event-info > div { display: grid; grid-template-columns: 4em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--c-line); font-size: 14px; }
.next-event-info dt { color: var(--c-text-sub); }
.next-event-body .btn { justify-self: center; min-width: min(100%, 280px); margin-top: 8px; } /* 予約ボタンは中央に */

/* 種類ラベルの色分け（控えめに） */
.news-cat--openhouse { background: var(--c-main); color: var(--c-white); }
.news-cat--event { background: var(--c-sub); color: var(--c-main-dark); }
.news-cat--info { background: var(--c-base-2); color: var(--c-text); }

/* 一覧 */
.news-archive-list { border-top: 1px solid var(--c-line); }
.news-item { border-bottom: 1px solid var(--c-line); }
.news-acc summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 16px;
  padding: 20px 4px;
}
.news-acc summary::-webkit-details-marker { display: none; }
.news-meta { display: flex; align-items: center; gap: 12px; }
.news-meta time { font-family: var(--ff-en); font-weight: 600; font-size: 15px; letter-spacing: .08em; color: var(--c-text-sub); font-variant-numeric: lining-nums; }
.news-meta .news-cat { font-size: 11px; letter-spacing: .1em; padding: 1px 10px; }
.news-item-title { grid-column: 1; font-size: 15px; font-weight: 500; line-height: 1.7; transition: color .3s; }
.news-acc .faq-icon { grid-column: 2; grid-row: 1 / span 2; }
.news-acc summary:hover .news-item-title { color: var(--c-main); }
.news-acc[open]:not(.is-closing) .faq-icon::after { transform: translate(-50%, -50%) rotate(180deg); }
.news-body { overflow: hidden; }
.news-body p { padding: 0 4px 24px; font-size: 14px; color: var(--c-text-sub); max-width: 46em; }

/* SNS */
.news-sns { background: var(--c-white); }
.sns-cards { display: grid; gap: 12px; }
.sns-cards > li { display: grid; } /* カードの高さをそろえる */
.sns-card {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 16px;
  padding: 20px 22px; background: var(--c-base); border: 1px solid transparent;
  transition: border-color .3s, transform .3s var(--ease);
}
.sns-card:hover { border-color: var(--c-main); transform: translateY(-2px); }
.sns-card svg { grid-row: 1 / span 2; width: 32px; height: 32px; fill: none; stroke: var(--c-main); stroke-width: 1.3; }
.sns-card svg .fill { fill: var(--c-main); stroke: none; }
.sns-card-name { font-family: var(--ff-en); font-weight: 600; font-size: 18px; letter-spacing: .06em; }
.sns-card-text { font-size: 12px; color: var(--c-text-sub); }

/* ---------- news：タブレット（768px〜） ---------- */
@media (min-width: 768px) {
  .next-event-body { padding: 40px 40px 44px; }
  .news-acc summary { grid-template-columns: 1fr auto; padding: 24px 8px; }
  .news-body p { padding: 0 8px 28px; }
  .sns-cards { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ---------- news：PC（1080px〜） ---------- */
@media (min-width: 1080px) {
  .next-event-card { grid-template-columns: 6fr 5fr; }
  .next-event-media img { aspect-ratio: auto; min-height: 100%; }
  .next-event-body { padding: 56px 56px; align-content: center; }
  .news-acc summary { grid-template-columns: 240px 1fr auto; padding: 26px 8px; }
  .news-item-title { grid-column: 2; }
  .news-acc .faq-icon { grid-column: 3; grid-row: 1; }
  .news-body p { padding: 0 8px 30px 248px; }
  .sns-cards { grid-template-columns: repeat(4, 1fr); }
  .sns-card { grid-template-columns: 1fr; gap: 10px; padding: 28px 24px; }
  .sns-card svg { grid-row: auto; }
}

/* =========================================================
   ご相談・見学予約（contact.html）
   ========================================================= */
:root { --c-error: #A63D2B; } /* 入力エラー（くすんだ赤。派手にしない） */

/* ご相談の方法 */
.ways-grid { display: grid; gap: 14px; }
.way-card {
  display: grid; gap: 6px; align-content: start;
  padding: 24px 22px; background: var(--c-white); border: 1px solid var(--c-line);
  transition: border-color .3s, transform .3s var(--ease);
}
a.way-card:hover { border-color: var(--c-main); transform: translateY(-2px); }
.way-card--tel { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-white); }
a.way-card--tel:hover { background: var(--c-accent-dark); border-color: var(--c-accent-dark); }
.way-label { font-size: 12px; letter-spacing: .12em; color: var(--c-main); }
.way-card--tel .way-label { color: rgba(255, 255, 255, .85); }
.way-tel { font-family: var(--ff-en); font-weight: 600; font-size: clamp(32px, 9vw, 40px); letter-spacing: .04em; line-height: 1.2; white-space: nowrap; font-variant-numeric: lining-nums; }
.way-title { font-family: var(--ff-serif); font-weight: 600; font-size: 20px; letter-spacing: .08em; }
.way-note { font-size: 13px; line-height: 1.8; color: var(--c-text-sub); }
.way-card--tel .way-note { color: rgba(255, 255, 255, .88); }

/* フォーム全体 */
.contact-form-section { background: var(--c-white); }
.contact-form-wrap { display: grid; gap: 40px; }
.contact-form-head { display: grid; gap: 16px; align-content: start; }
.contact-form-head .section-label { margin-bottom: 0; }
.contact-form-head p:not(.section-label) { font-size: 14px; }
.form-required-note { color: var(--c-text-sub); }

.req, .opt {
  display: inline-block; margin-left: 10px; padding: 1px 8px; vertical-align: 2px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; line-height: 1.6; border-radius: 2px;
}
.req { background: var(--c-accent); color: var(--c-white); }
.opt { background: var(--c-base-2); color: var(--c-text-sub); font-weight: 500; }
.form-required-note .req { margin-left: 0; margin-right: 4px; }

.contact-form { border-top: 1px solid var(--c-text); }
.form-row { display: grid; gap: 10px; padding: 22px 0; border-bottom: 1px solid var(--c-line); }
fieldset.form-row { margin: 0; min-width: 0; border: 0; border-bottom: 1px solid var(--c-line); padding: 22px 0; display: block; }
fieldset.form-row legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; }
fieldset.form-row > *:not(legend) { clear: both; }
.form-label { font-size: 15px; font-weight: 500; letter-spacing: .04em; }
.form-field { display: grid; gap: 8px; min-width: 0; }
.form-field--inline { grid-template-columns: 1fr; gap: 8px; }

.contact-form input[type="text"], .contact-form input[type="tel"], .contact-form input[type="email"],
.contact-form input[type="date"], .contact-form select, .contact-form textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: inherit; font-size: 16px; color: var(--c-text);
  background: var(--c-base); border: 1px solid var(--c-line); border-radius: 2px;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
  -webkit-appearance: none; appearance: none;
}
.contact-form select {
  padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--c-main) 50%), linear-gradient(135deg, var(--c-main) 50%, transparent 50%);
  background-position: right 20px center, right 14px center; background-size: 6px 6px; background-repeat: no-repeat;
}
.contact-form textarea { min-height: 168px; resize: vertical; line-height: 1.8; }
.contact-form ::placeholder { color: #A89D92; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--c-main); background: var(--c-white);
  box-shadow: 0 0 0 3px rgba(107, 74, 50, .15);
}
.contact-form [aria-invalid="true"] { border-color: var(--c-error); background: #FBF3F1; }
.form-error { font-size: 13px; color: var(--c-error); font-weight: 500; }
.form-error:empty { display: none; }
.form-help { font-size: 12px; color: var(--c-text-sub); }

/* 選択肢（枠ごと押せる） */
.choice-grid { display: grid; gap: 8px; }
.choice-grid--inline { grid-template-columns: repeat(2, minmax(0, 160px)); }
.choice {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 10px 16px; cursor: pointer;
  background: var(--c-base); border: 1px solid var(--c-line); border-radius: 2px;
  font-size: 15px; transition: border-color .25s, background-color .25s;
}
.choice:hover { border-color: var(--c-main); }
.choice input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--c-main); }
.choice:has(input:checked) { border-color: var(--c-main); background: var(--c-white); box-shadow: inset 0 0 0 1px var(--c-main); }
.choice:has(input:focus-visible) { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.choice-grid.is-invalid .choice { border-color: var(--c-error); }

/* 見学希望日（条件付き表示） */
.form-conditional { overflow: hidden; }

/* 同意・送信 */
.form-agree { padding: 24px 0 8px; display: grid; gap: 8px; justify-items: center; } /* 同意欄は中央に */
.form-agree .form-error { text-align: center; }
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14px; line-height: 1.8; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--c-main); }
.check input[aria-invalid="true"] { outline: 2px solid var(--c-error); outline-offset: 2px; }
.form-submit { padding-top: 24px; display: grid; justify-items: center; }
.btn-submit { width: min(100%, 360px); min-height: 64px; border: 0; cursor: pointer; }
.btn-submit .btn-main { font-size: 17px; }

.contact-access { background: var(--c-base); }

/* ---------- contact：小さめのスマホより大きい（480px〜） ---------- */
@media (min-width: 480px) {
  .form-field--inline { grid-template-columns: 1fr 1fr; }
}

/* ---------- contact：タブレット（768px〜） ---------- */
@media (min-width: 768px) {
  .ways-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .way-card--tel { grid-column: 1 / -1; }
  .way-card { padding: 28px 28px; }
  .form-row { grid-template-columns: 13em 1fr; gap: 24px; align-items: start; padding: 26px 0; }
  .form-row .form-label { padding-top: 14px; }
  fieldset.form-row { padding: 26px 0; }
  fieldset.form-row legend { width: 13em; margin-bottom: 0; padding-top: 14px; }
  fieldset.form-row > *:not(legend) { clear: none; margin-left: calc(13em + 24px); }
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .form-conditional .form-row:last-of-type { border-bottom: 0; }
  .form-conditional .form-help { margin: -12px 0 22px calc(13em + 24px); }
}

/* ---------- contact：PC（1080px〜） ---------- */
@media (min-width: 1080px) {
  .ways-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
  .way-card--tel { grid-column: auto; }
  /* フォーム：PCでも見出し → フォームの縦並び。入力しやすい幅で中央に */
  .contact-form-wrap { max-width: calc(880px + var(--gutter) * 2); gap: 48px; }
  .form-row { grid-template-columns: 12em 1fr; }
  fieldset.form-row legend { width: 12em; }
  fieldset.form-row > *:not(legend) { margin-left: calc(12em + 24px); }
  .form-conditional .form-help { margin-left: calc(12em + 24px); }
}

/* =========================================================
   送信完了（thanks.html）
   ========================================================= */
.page-hero--short { min-height: clamp(240px, 36svh, 380px); }

.thanks-inner { display: grid; gap: 24px; max-width: calc(880px + var(--gutter) * 2); }
.thanks-card {
  background: var(--c-white); border-top: 3px solid var(--c-main);
  padding: 40px 22px; text-align: center; display: grid; gap: 16px;
}
.thanks-en { font-family: var(--ff-en); font-weight: 600; font-size: 18px; letter-spacing: .24em; color: var(--c-main); }
.thanks-title { font-family: var(--ff-serif); font-weight: 600; font-size: clamp(22px, 6vw, 32px); line-height: 1.6; letter-spacing: .08em; word-break: auto-phrase; text-wrap: balance; }
.thanks-card p:not(.thanks-en) { font-size: 15px; }
.thanks-card strong { color: var(--c-main-dark); font-weight: 700; }
.thanks-demo { font-size: 12px !important; color: var(--c-text-sub); }

.thanks-steps, .thanks-notes { background: var(--c-white); padding: 28px 22px; }
.thanks-sub { font-family: var(--ff-serif); font-weight: 600; font-size: 18px; letter-spacing: .1em; margin-bottom: 18px; }
.thanks-step-list { display: grid; gap: 0; }
.thanks-step-list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--c-line); }
.thanks-step-num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-main); color: var(--c-white);
  font-family: var(--ff-en); font-weight: 600; font-size: 18px; font-variant-numeric: lining-nums;
}
.thanks-step-title { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.thanks-step-list p:not(.thanks-step-title) { font-size: 14px; color: var(--c-text-sub); }
.thanks-note-list { display: grid; gap: 10px; }
.thanks-note-list li { position: relative; padding-left: 1.2em; font-size: 14px; color: var(--c-text-sub); }
.thanks-note-list li::before { content: "・"; position: absolute; left: 0; }
.thanks-note-list a { color: var(--c-main); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; padding-block: 12px; } /* 文中のリンクも押しやすく */

.thanks-next { background: var(--c-white); }
.thanks-links { display: grid; gap: 28px; }
.thanks-link { display: grid; gap: 4px; }
.thanks-link-media { display: block; overflow: hidden; margin-bottom: 12px; }
.thanks-link-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .8s var(--ease); }
.thanks-link:hover .thanks-link-media img { transform: scale(1.05); }
.thanks-link-en { font-family: var(--ff-en); font-weight: 600; font-size: 14px; letter-spacing: .14em; color: var(--c-main); }
.thanks-link-title { font-family: var(--ff-serif); font-weight: 600; font-size: 19px; letter-spacing: .1em; }
.thanks-link-title::after { content: " →"; font-family: var(--ff-en); color: var(--c-main); transition: margin .3s var(--ease); }
.thanks-link-text { font-size: 13px; color: var(--c-text-sub); }
.thanks-back { margin-top: 56px; display: grid; justify-items: center; }
.btn-ghost-dark { min-width: min(100%, 300px); border: 1px solid var(--c-main); color: var(--c-main); background: transparent; }
.btn-ghost-dark:hover { background: var(--c-main); color: var(--c-white); }

@media (min-width: 768px) {
  .thanks-card { padding: 56px 48px; }
  .thanks-steps, .thanks-notes { padding: 36px 40px; }
  .thanks-links { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (min-width: 1080px) {
  .thanks-links { gap: 32px; }
}

/* =========================================================
   フッターのプライバシーポリシー・同意欄のリンク
   ========================================================= */
.footer-legal { text-align: center; margin-top: 48px; font-size: 13px; }
.footer-legal a { display: inline-block; padding: 12px 8px; color: #D8CFC4; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(216, 207, 196, .4); transition: color .3s; }
.footer-legal a:hover { color: var(--c-white); }
.footer-legal + .copyright { margin-top: 8px; }
.check a { color: var(--c-main); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.check a::after { content: "↗"; font-family: var(--ff-en); font-size: 13px; margin-left: 2px; }

/* =========================================================
   プライバシーポリシー（privacy.html）
   ========================================================= */
.legal { background: var(--c-white); }
.legal-inner { max-width: calc(820px + var(--gutter) * 2); display: grid; gap: 40px; }
.legal-lead { font-size: 15px; }
.legal-toc { background: var(--c-base); padding: 24px 22px; }
.legal-toc-title { font-family: var(--ff-serif); font-weight: 600; font-size: 16px; letter-spacing: .1em; margin-bottom: 10px; }
.legal-toc ol { list-style: decimal; padding-left: 1.6em; display: grid; gap: 2px; }
.legal-toc li::marker { color: var(--c-main); font-family: var(--ff-en); font-weight: 600; }
.legal-toc a { display: block; padding-block: 6px; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--c-line); transition: color .3s; }
.legal-toc a:hover { color: var(--c-main); }
.legal-list { display: grid; gap: 48px; }
.legal-list > li { display: grid; gap: 14px; }
.legal-title { display: flex; align-items: center; gap: 14px; font-family: var(--ff-serif); font-weight: 600; font-size: clamp(18px, 4.8vw, 22px); letter-spacing: .08em; padding-bottom: 12px; border-bottom: 1px solid var(--c-line); }
.legal-num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-main); color: var(--c-white); font-family: var(--ff-en); font-size: 16px; font-variant-numeric: lining-nums;
}
.legal-list p { font-size: 15px; }
.legal-bullets { display: grid; gap: 6px; padding: 18px 20px; background: var(--c-base); }
.legal-bullets li { position: relative; padding-left: 1.2em; font-size: 14px; }
.legal-bullets li::before { content: ""; position: absolute; left: 0; top: .8em; width: 6px; height: 6px; border-radius: 50%; background: var(--c-sub); }
.legal-contact { border-top: 1px solid var(--c-line); }
.legal-contact > div { display: grid; grid-template-columns: 6em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--c-line); font-size: 14px; }
.legal-contact dt { color: var(--c-text-sub); }
.legal-contact dd { min-width: 0; overflow-wrap: anywhere; }
.legal-date { text-align: right; font-size: 13px; color: var(--c-text-sub); line-height: 2; }

@media (min-width: 768px) {
  .legal-toc { padding: 28px 32px; }
  .legal-toc ol { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .legal-contact > div { grid-template-columns: 8em 1fr; padding: 14px 8px; }
}

/* =========================================================
   モーダル（プライバシーポリシー）
   見出し・ボタンは固定し、本文だけをスクロール
   ========================================================= */
.modal {
  width: min(100% - 24px, 820px); max-height: min(100dvh - 24px, 880px);
  padding: 0; border: 0; background: var(--c-white); color: var(--c-text);
  display: none; flex-direction: column; overflow: hidden;
  box-shadow: 0 20px 60px rgba(30, 22, 16, .35);
}
.modal[open] { display: flex; animation: dialogIn .45s var(--ease) both; }
.modal::backdrop { background: rgba(30, 22, 16, .7); }
.modal[open]::backdrop { animation: fadeIn .45s var(--ease) both; }
.modal.is-closing { animation: dialogOut .3s var(--ease) both; }
.modal.is-closing::backdrop { animation: fadeOut .3s var(--ease) both; }

.modal-head { position: relative; flex-shrink: 0; padding: 22px 64px 16px 22px; border-bottom: 1px solid var(--c-line); background: var(--c-white); }
.modal-en { font-family: var(--ff-en); font-weight: 600; font-size: 13px; letter-spacing: .16em; color: var(--c-main); }
.modal-title { font-family: var(--ff-serif); font-weight: 600; font-size: 20px; letter-spacing: .1em; }
.modal-close {
  position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; background: var(--c-base);
  transition: background-color .3s;
}
.modal-close:hover { background: var(--c-base-2); }
.modal-close::before, .modal-close::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 1.5px; background: var(--c-text);
  transform: translate(-50%, -50%) rotate(45deg);
}
.modal-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.modal-body { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 22px 32px; display: grid; gap: 32px; align-content: start; }
.modal-body:focus-visible { outline-offset: -3px; }
.modal-loading { color: var(--c-text-sub); font-size: 14px; text-align: center; padding: 40px 0; }
/* モーダル内では本文を少しだけ詰める */
.modal-body .legal-list { gap: 36px; }
.modal-body .legal-title { font-size: 18px; }

.modal-foot {
  flex-shrink: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  padding: 14px 22px; border-top: 1px solid var(--c-line); background: var(--c-base);
}
.modal-foot .btn { min-height: 52px; min-width: min(100%, 200px); border: 0; cursor: pointer; }
.modal-foot .btn-ghost-dark { border: 1px solid var(--c-main); background: var(--c-white); }
.modal-foot .btn-ghost-dark:hover { background: var(--c-main); color: var(--c-white); }

@media (min-width: 768px) {
  .modal-head { padding: 26px 72px 18px 36px; }
  .modal-title { font-size: 22px; }
  .modal-close { right: 20px; }
  .modal-body { padding: 32px 36px 40px; }
  .modal-foot { padding: 16px 36px; }
}
