/* 松井建設（ご提案デモ）— 共通スタイル
   栗色の木部 × 生成り × 柿色（CTA専用） */
:root {
  --wood-dark: #211a13;      /* 濃い栗色（ヘッダー・フッター） */
  --wood-deep: #17120c;
  --wood-text: #7c5c3c;      /* 飾り英字・見出し添え */
  --kinari: #f6f1e6;
  --kinari-2: #ece0c8;
  --shu: #a5451f;            /* CTA専用（柿色） */
  --ok: #4f6b3c;             /* 解決済みバッジ（杉の緑） */
  --before: #8a7a63;         /* 旧サイトの弱点（枯れ色） */
  --text: #2b2318;
  --text-muted: #7d6f5a;
  --border: #ddccac;
  --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px; --s12: 48px; --s16: 64px; --s24: 96px;
  --maxw: 1120px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 16px; line-height: 1.95; letter-spacing: .04em;
  color: var(--text); background: var(--kinari);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.sans { font-family: "Noto Sans JP", sans-serif; }

/* header */
.header { position: sticky; top: 0; z-index: 100; background: rgba(246,241,230,.96); backdrop-filter: blur(4px); border-bottom: 1px solid var(--border); }
.header-inner { max-width: var(--maxw); margin: 0 auto; padding: var(--s4); display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.brand { font-weight: 600; font-size: 1.3rem; text-decoration: none; color: var(--wood-dark); letter-spacing: .18em; }
.brand small { display: block; font-size: .56rem; font-weight: 400; color: var(--text-muted); letter-spacing: .24em; font-family: "Noto Sans JP", sans-serif; }
.header-actions { display: flex; align-items: center; gap: var(--s3); }
.tel-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--wood-dark); font-family: "Noto Sans JP", sans-serif; font-size: .82rem; font-weight: 700; letter-spacing: .02em; border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; min-height: 40px; }
.tel-link b { font-size: .98rem; }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; background: none; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; }
.nav-toggle span { height: 1px; background: var(--wood-dark); }
.gnav { display: none; }
.gnav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--kinari); border-bottom: 1px solid var(--border); padding: var(--s4); }
.gnav ul { list-style: none; display: grid; gap: 2px; }
.gnav a { text-decoration: none; font-size: .92rem; display: block; padding: var(--s3) var(--s4); letter-spacing: .1em; }
.gnav a:hover, .gnav a[aria-current="page"] { color: var(--shu); }
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .gnav { display: block; position: static; border: none; padding: 0; }
  .gnav ul { display: flex; gap: var(--s6); }
  .gnav a { padding: var(--s2) 0; font-size: .88rem; }
}

/* page hero */
.page-hero { padding: var(--s16) var(--s4) var(--s8); position: relative; overflow: hidden; }
.page-hero-inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 1; }
.page-hero .en { font-size: .7rem; letter-spacing: .38em; color: var(--wood-text); text-transform: uppercase; font-family: "Noto Sans JP", sans-serif; }
.page-hero h1 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 600; margin-top: var(--s3); letter-spacing: .14em; }
.page-hero p.lead { margin-top: var(--s4); color: var(--text-muted); max-width: 42em; font-size: .95rem; }
.page-hero.has-photo { color: var(--kinari); background: var(--wood-dark); }
.page-hero.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.page-hero.has-photo .en { color: #d9b787; }
.page-hero.has-photo p.lead { color: rgba(246,241,230,.85); }
.breadcrumb { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s4) var(--s3); font-size: .76rem; color: var(--text-muted); font-family: "Noto Sans JP", sans-serif; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); }
.breadcrumb li + li::before { content: "／"; margin-right: var(--s2); }
.breadcrumb a { color: var(--text-muted); }

/* sections */
section { padding: var(--s24) var(--s4); }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.sec-head { margin-bottom: var(--s12); }
.sec-head .en { display: block; font-size: .7rem; letter-spacing: .38em; color: var(--wood-text); text-transform: uppercase; font-family: "Noto Sans JP", sans-serif; }
.sec-head h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 600; letter-spacing: .14em; margin-top: var(--s3); }
.sec-lead { color: var(--text-muted); max-width: 38em; font-size: .95rem; margin-top: var(--s3); }
.alt-bg { background: var(--kinari-2); }

/* buttons */
.btn-buy { background: var(--shu); color: #fff; text-decoration: none; padding: var(--s4) var(--s12); min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; cursor: pointer; font-size: .96rem; font-family: "Shippori Mincho", serif; letter-spacing: .14em; }
.btn-buy:hover { opacity: .88; }
.btn-outline { border: 1px solid var(--wood-dark); color: var(--wood-dark); text-decoration: none; padding: var(--s4) var(--s12); min-height: 50px; display: inline-flex; align-items: center; justify-content: center; letter-spacing: .14em; font-size: .92rem; background: none; cursor: pointer; font-family: "Shippori Mincho", serif; }
.btn-outline:hover { background: var(--wood-dark); color: var(--kinari); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s8); }
.page-hero.has-photo .btn-outline { border-color: var(--kinari); color: var(--kinari); }
.page-hero.has-photo .btn-outline:hover { background: var(--kinari); color: var(--wood-dark); }

/* hero (top page) */
.home-hero { position: relative; overflow: hidden; background: var(--wood-dark); }
.home-hero img { width: 100%; height: min(80vh, 660px); object-fit: cover; opacity: .5; }
.home-hero-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: var(--s8) var(--s4); }
@media (min-width: 640px) { .home-hero-copy { padding: var(--s8) clamp(16px, 8vw, 100px); } }
.home-hero-copy .en { color: #d9b787; font-size: .72rem; letter-spacing: .4em; font-family: "Noto Sans JP", sans-serif; text-transform: uppercase; }
.home-hero-copy h1 { color: var(--kinari); font-size: clamp(1.7rem, 5vw, 2.9rem); font-weight: 600; letter-spacing: .08em; line-height: 1.6; margin-top: var(--s4); text-shadow: 0 1px 14px rgba(0,0,0,.5); max-width: 16em; }
.home-hero-copy .note { color: rgba(246,241,230,.82); font-size: .84rem; letter-spacing: .06em; margin-top: var(--s4); max-width: 34em; }
.home-hero-copy .btn-row { margin-top: var(--s8); }

/* trust strip */
.trust-strip { background: var(--wood); color: var(--kinari); padding: var(--s6) var(--s4); font-family: "Noto Sans JP", sans-serif; }
.trust-strip ul { list-style: none; max-width: var(--maxw); margin: 0 auto; display: grid; gap: var(--s4); grid-template-columns: 1fr; text-align: center; }
@media (min-width: 700px) { .trust-strip ul { grid-template-columns: repeat(3, 1fr); } }
.trust-strip .num { display: block; font-family: "Shippori Mincho", serif; font-size: 1.1rem; letter-spacing: .12em; color: #f0d3a4; }
.trust-strip .label { font-size: .76rem; letter-spacing: .1em; opacity: .88; }

/* before / after（旧サイトから、ここが変わりました） */
.ba-grid { display: grid; gap: var(--s6); margin-top: var(--s8); }
@media (min-width: 800px) { .ba-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s8); } }
.ba-card { background: #fff; border: 1px solid var(--border); padding: var(--s8); }
.ba-card .ba-title { display: flex; align-items: center; gap: var(--s3); font-size: 1rem; font-weight: 600; letter-spacing: .08em; }
.ba-card .ba-icon { font-size: 1.4rem; }
.ba-row { display: grid; grid-template-columns: 3.4em 1fr; gap: var(--s3); margin-top: var(--s4); font-size: .9rem; align-items: baseline; }
.ba-row .tag { font-family: "Noto Sans JP", sans-serif; font-size: .68rem; letter-spacing: .08em; font-weight: 700; padding: 3px 0; text-align: center; border-radius: 3px; }
.ba-row.before .tag { color: var(--before); }
.ba-row.before p { color: var(--text-muted); }
.ba-row.after .tag { color: var(--ok); }
.ba-row.after p { font-weight: 500; }

/* status chip（施工実績一覧のnoindex解除デモ） */
.status-chip { display: inline-flex; align-items: center; gap: 6px; font-family: "Noto Sans JP", sans-serif; font-size: .72rem; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px; background: #e9f0e3; color: var(--ok); border: 1px solid #c9dab9; }
.status-chip::before { content: "✓"; font-weight: 700; }

/* process timeline（家づくりの工程） */
.process-list { display: grid; gap: var(--s12); margin-top: var(--s12); }
.process-step { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 860px) { .process-step { grid-template-columns: 1fr 1fr; gap: var(--s16); } }
.process-step:nth-child(even) .process-photo { order: 2; }
.process-photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.process-num { font-family: "Noto Sans JP", sans-serif; color: var(--wood-text); font-size: .72rem; letter-spacing: .3em; }
.process-body h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: .1em; margin-top: var(--s2); }
.process-body p { margin-top: var(--s3); font-size: .92rem; color: var(--text-muted); }

/* 施工実績 グリッド */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s6); margin-top: var(--s8); }
@media (min-width: 860px) { .work-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s8); } }
.work-card { text-decoration: none; display: flex; flex-direction: column; gap: var(--s2); color: inherit; }
.work-card .img-wrap { overflow: hidden; position: relative; aspect-ratio: 4/3; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a.work-card:hover img { transform: scale(1.04); }
.work-card h3 { font-size: .96rem; font-weight: 600; letter-spacing: .06em; line-height: 1.6; margin-top: var(--s2); }
.work-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.work-tags span { font-family: "Noto Sans JP", sans-serif; font-size: .64rem; letter-spacing: .04em; color: var(--wood-text); border: 1px solid var(--border); border-radius: 3px; padding: 2px 7px; }
.work-card .sample-flag { font-family: "Noto Sans JP", sans-serif; font-size: .66rem; color: var(--before); margin-top: 2px; }
.work-card .real-flag { font-family: "Noto Sans JP", sans-serif; font-size: .66rem; color: var(--ok); margin-top: 2px; }

/* 比較表（大手ハウスメーカーとの違い） */
.compare-wrap { overflow-x: auto; margin-top: var(--s8); background: #fff; border: 1px solid var(--border); }
.compare-table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .88rem; }
.compare-table th, .compare-table td { padding: var(--s4); border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.compare-table thead th { font-family: "Noto Sans JP", sans-serif; font-size: .8rem; letter-spacing: .06em; background: var(--kinari-2); }
.compare-table th.col-us { color: var(--shu); }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: none; }
.compare-table td.col-us, .compare-table th.col-us { background: #fbf1e9; }

/* CTA band */
.cta-band { background: var(--wood-dark); color: var(--kinari); text-align: center; }
.cta-band .en { color: #d9b787; font-size: .7rem; letter-spacing: .38em; font-family: "Noto Sans JP", sans-serif; text-transform: uppercase; }
.cta-band h2 { font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 600; letter-spacing: .16em; margin-top: var(--s3); }
.cta-band p { margin-top: var(--s4); opacity: .88; font-size: .92rem; }
.cta-band .btn-buy { margin-top: var(--s8); }
.cta-band .btn-row { justify-content: center; }

/* 見学バンド（画像付き） */
.tour-band { position: relative; overflow: hidden; background: var(--wood-dark); }
.tour-band img { width: 100%; height: 420px; object-fit: cover; opacity: .38; }
.tour-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--kinari); padding: var(--s4); }
.tour-copy .en { color: #d9b787; font-size: .7rem; letter-spacing: .38em; font-family: "Noto Sans JP", sans-serif; text-transform: uppercase; }
.tour-copy h2 { font-size: clamp(1.15rem, 3vw, 1.45rem); letter-spacing: .16em; margin-top: var(--s3); }
.tour-copy p { margin-top: var(--s4); font-size: .92rem; opacity: .92; max-width: 34em; }

/* 会社概要テーブル */
.table-wrap { overflow-x: auto; margin-top: var(--s6); border: 1px solid var(--border); background: #fff; }
.data-table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.data-table th { text-align: left; padding: var(--s4); width: 10em; color: var(--text-muted); font-weight: 400; vertical-align: top; border-bottom: 1px solid var(--border); white-space: nowrap; font-family: "Noto Sans JP", sans-serif; font-size: .82rem; }
.data-table td { padding: var(--s4); border-bottom: 1px solid var(--border); }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: none; }

/* 施工実績詳細（サンプル注記・見積） */
.sample-note-box { background: #fbf1e9; border: 1px solid #e6c9ac; padding: var(--s4) var(--s6); font-size: .84rem; color: #6b4326; font-family: "Noto Sans JP", sans-serif; margin-top: var(--s6); }
.spec-flow { display: grid; gap: var(--s16); margin-top: var(--s12); }
.spec-block { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 860px) { .spec-block { grid-template-columns: 1fr 1fr; gap: var(--s12); } }
.spec-block.rev .spec-photo { order: 2; }
.spec-photo img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.spec-block .step-en { font-family: "Noto Sans JP", sans-serif; color: var(--wood-text); font-size: .7rem; letter-spacing: .3em; }
.spec-block h3 { font-size: 1.1rem; font-weight: 600; margin-top: var(--s2); letter-spacing: .08em; }
.spec-block p { margin-top: var(--s3); font-size: .92rem; color: var(--text-muted); }
blockquote.voice { border-left: 3px solid var(--shu); padding-left: var(--s4); margin-top: var(--s4); font-size: .94rem; }
blockquote.voice cite { display: block; margin-top: var(--s2); font-size: .74rem; color: var(--before); font-style: normal; font-family: "Noto Sans JP", sans-serif; }

/* フォーム */
.form-grid { display: grid; gap: var(--s6); margin-top: var(--s8); max-width: 640px; font-family: "Noto Sans JP", sans-serif; }
.form-grid label { display: grid; gap: var(--s2); font-size: .88rem; letter-spacing: .04em; }
.form-grid .req { color: var(--shu); font-size: .74rem; margin-left: 6px; }
.form-grid input, .form-grid select, .form-grid textarea {
  border: 1px solid var(--border); background: #fff; padding: 12px 14px; font-size: 1rem;
  font-family: inherit; min-height: 48px; color: var(--text);
}
.form-grid textarea { min-height: 140px; resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: 2px solid var(--wood-text); outline-offset: 1px; }
.form-grid fieldset { border: 1px solid var(--border); padding: var(--s4); }
.form-grid legend { font-size: .84rem; padding: 0 6px; }
.radio-row { display: flex; flex-wrap: wrap; gap: var(--s4); font-size: .9rem; font-weight: 400; }
.radio-row label { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; }

/* 会社概要：柱・道具ストーリー */
.story-grid { display: grid; gap: var(--s8); align-items: center; }
@media (min-width: 900px) { .story-grid { grid-template-columns: 1fr 1.1fr; gap: var(--s16); } }
.story-grid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.story-body p + p { margin-top: var(--s6); }
.story-body p { font-size: .95rem; }

/* footer */
footer { background: var(--wood-deep); color: #a99f8b; padding: var(--s12) var(--s4) var(--s8); font-size: .85rem; font-family: "Noto Sans JP", sans-serif; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; gap: var(--s8); }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-brand b { color: var(--kinari); font-size: 1rem; letter-spacing: .14em; font-family: "Shippori Mincho", serif; }
.footer-brand p { margin-top: var(--s3); font-size: .8rem; line-height: 1.9; }
.footer-nav h4 { color: var(--kinari); font-size: .8rem; margin-bottom: var(--s3); letter-spacing: .1em; }
.footer-nav ul { list-style: none; display: grid; gap: var(--s2); }
.footer-nav a { color: #a99f8b; text-decoration: none; padding: var(--s2) 0; display: inline-block; font-size: .82rem; }
.footer-nav a:hover { color: var(--kinari); }
.footer-bottom { max-width: var(--maxw); margin: var(--s8) auto 0; border-top: 1px solid #33291d; padding-top: var(--s6); display: grid; gap: var(--s2); }
.sample-note { font-size: .72rem; color: #7d735f; }

/* モバイル固定CTAバー */
.mobile-cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--wood-dark); border-top: 1px solid #3a2f21; }
.mobile-cta-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--kinari); text-decoration: none; font-family: "Noto Sans JP", sans-serif; font-size: .66rem; padding: 8px 4px; min-height: 56px; border-left: 1px solid #3a2f21; }
.mobile-cta-bar a:first-child { border-left: none; }
.mobile-cta-bar .ico { font-size: 1.15rem; }
.mobile-cta-bar a.primary { background: var(--shu); }
body { padding-bottom: 0; }
@media (max-width: 719px) { body { padding-bottom: 56px; } }
@media (min-width: 720px) { .mobile-cta-bar { display: none; } }
