/* =============================================================
   ELASGRID FURNITURE  LP  CSS
   方向性：明朝で上質・職人感（参考：aito / 三次元 / berg-onishi の編集的レイアウト）
   - 見出し＝明朝（Shippori Mincho）／本文＝ゴシック（Noto Sans JP）
   - 配色＝コンクリート系の温かいニュートラル
   - レイアウト＝全幅写真・左右非対称・大きな見出し・スクロール出現
   色やフォントは下の :root を変えるだけで全体に反映されます。
   ============================================================= */

:root {
  --color-bg:      #fbfaf7;   /* 温かいオフホワイト */
  --color-bg-alt:  #f0ece4;   /* セクション交互のベージュグレー */
  --color-text:    #2a2622;   /* 温かいチャコール */
  --color-muted:   #9c958a;   /* ラベル・補助テキスト */
  --color-line:    #e1dbd0;   /* 罫線 */
  --color-accent:  #2a2622;   /* CTA等のアクセント */
  --container:     1120px;
  --container-narrow: 760px;
  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --font-sans:  "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* 文節の途中で折り返させないための汎用クラス／br-sp＝スマホのみ有効な改行 */
.nowrap { white-space: nowrap; }
/* 縦長写真の切り抜き位置を上寄りに（被写体の上端が見切れる写真に付与） */
.obj-top { object-position: center 12%; }
.br-sp { display: none; }
@media (max-width: 768px) { .br-sp { display: inline; } }

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.95;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container.narrow { max-width: var(--container-narrow); }

/* ---------- スクロール出現（JSオン時のみ。オフなら常に表示） ---------- */
body.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
body.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  padding: 15px 38px;
  font-size: 15px;
  letter-spacing: .08em;
  border: 1px solid var(--color-accent);
  transition: opacity .2s, background .2s, color .2s;
  cursor: pointer;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { opacity: .82; }
.btn-outline { background: transparent; color: var(--color-text); }
.btn-outline:hover { background: var(--color-text); color: #fff; }
.btn-lg { padding: 19px 52px; font-size: 16px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,250,247,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 46px; width: auto; display: block; }
.gnav { display: flex; align-items: center; gap: 26px; }
.gnav a { font-size: 13.5px; letter-spacing: .04em; color: var(--color-muted); }
.gnav a:hover { color: var(--color-text); }
.gnav-cta {
  color: var(--color-text) !important;
  border: 1px solid var(--color-accent);
  padding: 9px 18px;
}
.gnav-cta:hover { background: var(--color-accent); color: #fff !important; }

/* ハンバーガー（PCでは非表示） */
.nav-toggle { display: none; }
.nav-burger { display: none; }

/* ---------- セクション共通 ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-alt { background: var(--color-bg-alt); }
.sec-label {
  font-family: var(--font-sans);
  font-size: 12px; letter-spacing: .32em; color: var(--color-muted);
  text-transform: uppercase; font-weight: 500; margin-bottom: 14px;
}
.sec-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.4vw, 46px);
  font-weight: 700; letter-spacing: .06em; line-height: 1.45;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.sec-desc { color: var(--color-muted); margin: -28px 0 48px; font-size: 15px; }

/* ---------- ① FV ---------- */
.fv { position: relative; }
.fv-bg {
  position: relative; overflow: hidden;
  min-height: 88vh;
  display: flex; align-items: center;
  background: #2a2622;
}
.fv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.fv-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(rgba(0,0,0,.26), rgba(0,0,0,.26)),
    linear-gradient(to right, rgba(0,0,0,.58) 0%, rgba(0,0,0,.34) 45%, rgba(0,0,0,.16) 100%);
}
/* FV下端を次セクション(ABOUT)の背景色へ溶け込ませるフェード。
   ★スマホのみ有効（PCでは表示しない）。ルール本体は下部の @media (max-width:768px) 内にあります。
   ※中間の rgba は --color-bg (#fbfaf7 = 251,250,247) と揃えています。背景色を変えたらそちらも更新。 */
.fv-copy {
  position: relative; z-index: 2;
  max-width: var(--container);
  margin: 0 auto; padding: 0 32px; width: 100%;
  color: #fff;
  text-shadow: 0 1px 24px rgba(0,0,0,.4);
}
.fv-sub {
  font-family: var(--font-sans);
  font-size: 14px; letter-spacing: .22em; margin-bottom: 26px; color: #fff; font-weight: 400;
}
.fv-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 6.2vw, 72px);
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: .07em;
  color: #fff;
  margin-bottom: 28px;
}
.fv-lead {
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 2; color: #fff; font-weight: 300;
  margin-bottom: 40px;
}
.fv-btn { margin-top: 2px; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 3;
  font-size: 10px; letter-spacing: .26em; color: rgba(255,255,255,.85);
  writing-mode: vertical-rl;
  display: flex; align-items: center;
  text-shadow: 0 1px 10px rgba(0,0,0,.6);
}
.scroll-hint span { padding-bottom: 46px; }
.scroll-hint::after {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 1px; height: 40px; background: rgba(255,255,255,.6);
  animation: scrollLine 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine { 0% { transform: translateX(-50%) scaleY(0); } 50% { transform: translateX(-50%) scaleY(1); } 100% { transform: translateX(-50%) scaleY(0); } }

/* ---------- ② ELASGRID FURNITUREとは（横いっぱい：左テキスト＋右画像） ---------- */
.about-fw {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(88px, 11vw, 150px) 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(48px, 6vw, 100px);
}
.about-fw-text { flex: 0 1 520px; }
.about-fw-text p:not(.sec-label):not(.sec-title) + p { margin-top: 1.5em; }
.about-fw-img { flex: 0 1 auto; min-width: 0; }
.about-fw-img img {
  display: block; width: auto; height: auto;
  max-width: 100%;
  max-height: clamp(480px, 70vh, 760px);
  box-shadow: 0 24px 60px rgba(0,0,0,.12);
}

@media (max-width: 980px) {
  .about-fw {
    flex-direction: column; align-items: flex-start;
    gap: 40px; padding: clamp(72px, 9vw, 110px) 32px;
  }
  .about-fw-text { flex: 1 1 auto; max-width: 680px; }
  .about-fw-img { align-self: center; }
}

/* ---------- ③ こんな家具が叶う（左右交互の編集レイアウト） ---------- */
.ideas { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.idea {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 5.5vw, 88px);
  align-items: center;
}
.idea + .idea { margin-top: clamp(60px, 8vw, 116px); }
.idea-img { overflow: hidden; }
.idea-img img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  box-shadow: 0 20px 50px rgba(0,0,0,.1);
  transition: transform 1.2s ease;
}
.idea:hover .idea-img img { transform: scale(1.04); }
/* 偶数番目は画像を右側へ（交互） */
.idea:nth-child(even) .idea-img { order: 2; }
.idea-no {
  font-family: var(--font-serif);
  display: block; font-size: clamp(22px, 3vw, 34px); color: var(--color-muted);
  letter-spacing: .1em; margin-bottom: 16px;
}
.idea-title {
  font-family: var(--font-serif);
  font-size: clamp(21px, 2.6vw, 30px); font-weight: 700;
  letter-spacing: .05em; line-height: 1.6; margin-bottom: 20px;
}
.idea-desc { font-size: 15px; line-height: 2; color: #5b554d; }

/* ---------- ④ 選ばれる理由（番号付き編集リスト） ---------- */
.features { list-style: none; border-top: 1px solid var(--color-line); }
.feature {
  display: grid;
  grid-template-columns: clamp(56px, 8vw, 96px) 1fr;
  gap: clamp(16px, 3vw, 40px);
  align-items: baseline;
  padding: clamp(26px, 3.4vw, 40px) 0;
  border-bottom: 1px solid var(--color-line);
}
.feature-no {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 44px); font-weight: 600;
  color: var(--color-muted); letter-spacing: .04em; line-height: 1;
}
.feature-title {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.2vw, 24px); font-weight: 700;
  letter-spacing: .04em; line-height: 1.6; margin-bottom: 10px;
}
.feature-desc { font-size: 15px; line-height: 1.95; color: #5b554d; }

/* ---------- ⑤ 施工事例ギャラリー（キャプション付きエディトリアル型） ----------
   12カラムグリッドに大小の写真を千鳥配置。nth-childで列スパン・縦オフセット・縦横比を指定。
   枚数を増減したら 6n 周期で同じリズムが繰り返されます。 */
.works-gallery {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(20px, 3vw, 44px);
  row-gap: clamp(56px, 7vw, 104px);
  align-items: start;
}
.work { margin: 0; }
.work-img { overflow: hidden; }
.work-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  object-position: center 12%;
  aspect-ratio: 4 / 3;
  box-shadow: 0 18px 44px rgba(0,0,0,.09);
  transition: transform 1.2s ease;
}
.work:hover .work-img img { transform: scale(1.04); }
.work-cap {
  display: flex; align-items: baseline; gap: 12px;
  margin-top: 16px;
  font-size: 13px; letter-spacing: .08em; color: #5b554d;
}
.work-no {
  font-family: var(--font-serif);
  font-size: 16px; color: var(--color-muted); letter-spacing: .1em;
}
/* 千鳥配置（6枚1セットのリズム） */
.work:nth-child(6n+1) { grid-column: 1 / 8; }
.work:nth-child(6n+2) { grid-column: 9 / 13; margin-top: clamp(48px, 8vw, 120px); }
.work:nth-child(6n+2) .work-img img { aspect-ratio: 3 / 4; }
.work:nth-child(6n+3) { grid-column: 1 / 6; }
.work:nth-child(6n+3) .work-img img { aspect-ratio: 3 / 4; }
.work:nth-child(6n+4) { grid-column: 7 / 13; margin-top: clamp(40px, 6vw, 96px); }
/* 04ラウンドテーブル：天板が大きく写り上に余白が多い写真のため、切り抜きを下げて下端の見切れを防ぐ */
.work:nth-child(6n+4) .work-img img { object-position: center 38%; }
.work:nth-child(6n+5) { grid-column: 2 / 7; }
.work:nth-child(6n+5) .work-img img { aspect-ratio: 1 / 1; }
.work:nth-child(6n) { grid-column: 8 / 13; margin-top: clamp(48px, 8vw, 120px); }
.work:nth-child(6n) .work-img img { aspect-ratio: 3 / 4; }

/* ---------- ④-2 COLOR（選べる4カラー） ---------- */
.color-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.color-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 20px 50px rgba(0,0,0,.1);
}
.color-names {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.color-names span {
  font-family: var(--font-serif);
  text-align: center;
  font-size: clamp(13px, 1.6vw, 16px);
  letter-spacing: .06em;
  color: #5b554d;
  padding: 12px 6px;
  border: 1px solid var(--color-line);
}

/* ---------- ⑦ CTA ---------- */
.cta { padding: clamp(56px, 7vw, 92px) 0; background: var(--color-bg-alt); text-align: center; }
.cta-product-frame {
  width: min(460px, 100%);
  margin: 0 auto clamp(40px, 5vw, 60px);
  aspect-ratio: 4 / 3; overflow: hidden;
  background: #fff; border: 1px solid var(--color-line);
  box-shadow: 0 18px 44px rgba(0,0,0,.1);
}
.cta-product-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.4vw, 36px); font-weight: 700;
  margin-bottom: 18px; letter-spacing: .06em; line-height: 1.5;
}
.cta-lead { color: #5b554d; margin-bottom: 36px; }

/* 追従CTA（.is-shown はJSが付与：FV通過後に表示、⑦CTA表示中は非表示） */
.cta-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  background: var(--color-accent); color: #fff;
  padding: 15px 32px; font-size: 14px; letter-spacing: .1em;
  box-shadow: 0 12px 32px rgba(0,0,0,.24);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .35s, transform .35s;
}
.cta-float.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.cta-float:hover { opacity: .85; }

/* ---------- ⑥ よくある質問（FAQ・JSなしアコーディオン） ---------- */
.faq-list { border-top: 1px solid var(--color-line); }
.faq-item { border-bottom: 1px solid var(--color-line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  padding: 24px 4px; padding-right: 40px;
  font-family: var(--font-serif);
  font-size: 17px; font-weight: 600; letter-spacing: .03em;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q"; color: var(--color-muted); font-weight: 700; }
.faq-item summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 13px; height: 13px;
  background:
    linear-gradient(var(--color-text),var(--color-text)) center/13px 1.5px no-repeat,
    linear-gradient(var(--color-text),var(--color-text)) center/1.5px 13px no-repeat;
  transform: translateY(-50%); transition: transform .25s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { padding: 0 4px 24px 32px; }
.faq-a p { font-size: 15px; line-height: 1.95; color: #5b554d; }

/* ---------- ⑧ 会社情報 ---------- */
.company-table { width: 100%; border-collapse: collapse; margin-bottom: 36px; }
.company-table th, .company-table td {
  text-align: left; padding: 18px 8px; border-bottom: 1px solid var(--color-line);
  font-size: 15px; vertical-align: top;
}
.company-table th { width: 170px; font-weight: 700; color: #3a352f; }
.company-links { text-align: center; }

/* ---------- フッター ---------- */
.site-footer { background: #211e1a; color: #cfc9bf; padding: 56px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.footer-logo { font-size: 17px; letter-spacing: .2em; color: #fff; font-weight: 700; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: 13px; color: #cfc9bf; }
.footer-nav a:hover { color: #fff; }
.copyright { font-size: 12px; color: #8a847a; letter-spacing: .1em; }

/* =============================================================
   レスポンシブ（スマホ）
   ============================================================= */
@media (max-width: 768px) {
  /* --- ハンバーガーメニュー --- */
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 30px; height: 30px; cursor: pointer; z-index: 110;
  }
  .nav-burger span {
    display: block; height: 2px; width: 100%; background: var(--color-text);
    transition: transform .25s, opacity .25s;
  }
  .nav-toggle {
    display: block;
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .nav-toggle:focus-visible ~ .nav-burger { outline: 2px solid var(--color-text); outline-offset: 5px; }
  .gnav {
    position: fixed; top: 0; right: 0; height: 100vh; width: 74%; max-width: 320px;
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 4px; padding: 32px;
    background: var(--color-bg); border-left: 1px solid var(--color-line);
    transform: translateX(100%); transition: transform .3s ease, visibility .3s;
    visibility: hidden;
    box-shadow: -8px 0 24px rgba(0,0,0,.06);
  }
  .gnav a { font-size: 16px; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--color-line); }
  .gnav-cta { margin-top: 16px; border-bottom: none !important; text-align: center; width: 100%; box-sizing: border-box; padding: 14px 16px; }
  .nav-toggle:checked ~ .gnav { transform: translateX(0); visibility: visible; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* --- レイアウト調整 --- */
  .section { padding: 68px 0; }
  .container { padding: 0 24px; }
  .about-fw { gap: 32px; padding: 64px 24px; }
  .about-fw-img img { max-height: 56vh; }
  /* ③こんな家具が叶う：スマホは画像→文章の縦積み（交互は解除） */
  .ideas { padding: 0 24px; }
  .idea { grid-template-columns: 1fr; gap: 22px; }
  .idea:nth-child(even) .idea-img { order: 0; }
  .idea-title br { display: none; }
  /* ④選ばれる理由：番号を小さめに */
  .feature { grid-template-columns: 44px 1fr; gap: 14px; padding: 24px 0; }
  /* ⑤施工事例：スマホは全幅・4:3で統一した1カラム縦流し（千鳥・大小はPCのみ） */
  .works-gallery { grid-template-columns: 1fr; padding: 0 24px; row-gap: 40px; }
  .work { grid-column: auto !important; margin-top: 0 !important; }
  .work-img img { aspect-ratio: 4 / 3 !important; }
  .color-hero { padding: 0 24px; }
  .color-hero img { aspect-ratio: 4 / 3; }
  .color-names { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .company-table th { width: 110px; }
  .fv-bg { min-height: 78vh; }
  /* スマホ：FVは帯なしの全画面(cover)。動画はJSで縦長版(fv-mobile.mp4)に差し替え済み＝
     天板＋厚み＋のこ馬が入る“引き”構図がフルブリードで表示される。特別なobject-fit指定は不要。 */
  /* スマホのみ：FV下端をABOUT背景色へ自然に溶かす（多段グラデーションで帯ムラを解消） */
  .fv-bg::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: clamp(160px, 30vh, 260px);
    z-index: 2; pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgba(251,250,247,0)    0%,
      rgba(251,250,247,.015) 12%,
      rgba(251,250,247,.05)  24%,
      rgba(251,250,247,.11)  35%,
      rgba(251,250,247,.20)  46%,
      rgba(251,250,247,.31)  56%,
      rgba(251,250,247,.45)  66%,
      rgba(251,250,247,.60)  75%,
      rgba(251,250,247,.76)  84%,
      rgba(251,250,247,.90)  92%,
      var(--color-bg)       100%);
  }
  .fv-title { font-size: clamp(28px, 8vw, 40px); line-height: 1.5; letter-spacing: .04em; }
  .fv-sub { font-size: 12px; letter-spacing: .14em; }
  .fv-lead { font-size: 14px; }
  .btn-lg { padding: 17px 40px; }
  /* 追従CTA：スマホは下部いっぱいのバーに */
  .cta-float { left: 16px; right: 16px; bottom: 16px; text-align: center; padding: 16px; }

  /* ②スマホのみ：ブロックとブロックの色境目をグラデでなじませる（FV下端と同じ考え方）
     色が切り替わる境目＝ideas→features / features→color / works→faq の3か所。
     各セクション上端に「直前ブロックの色→透明」のオーバーレイを重ねて帯を溶かす。 */
  #features, #color, #faq { position: relative; }
  #features > .container,
  #color > .container,
  #faq > .container { position: relative; z-index: 1; }
  #features::before,
  #color::before,
  #faq::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0;
    height: 120px; z-index: 0; pointer-events: none;
  }
  /* 直前ブロックの色（上）→ このセクション自身の背景色に消える（下） */
  #features::before { background: linear-gradient(to bottom, var(--color-bg),     rgba(240,236,228,0)); }
  #color::before    { background: linear-gradient(to bottom, var(--color-bg-alt), rgba(251,250,247,0)); }
  #faq::before      { background: linear-gradient(to bottom, var(--color-bg),     rgba(240,236,228,0)); }
}
