/* =========================================================
   株式会社サンプル工務店（架空）デモサンプル
   伝統ある工務店 × 建築ブランドサイト
   - 墨（杉の焼き色）と和紙の明暗で章を切り替える。背景色は section の data-bg を JS が読んで html に渡す
   - スクロール演出は js/main.js が各 [data-scene] に進み具合 --p（0〜1）を渡し、CSS の calc で動かす
   - 動きを減らす設定・JS なしでは、すべて静止した通常レイアウトで読める
   ========================================================= */
:root {
  --sumi: #1c201b;
  --sumi-2: #262b24;
  --washi: #ebe8e0;
  --washi-2: #e1ddd2;
  --koke: #3c4536;
  --sugi: #a77a4f;
  --ink: #24261f;
  --mute: #6b6a61;
  --line: rgba(36, 38, 31, .16);

  --bg: var(--washi);
  --fg: var(--ink);
  --fg-mute: var(--mute);
  --fg-line: var(--line);

  --ff-display: "Shippori Mincho B1", "Yu Mincho", serif;
  --ff-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --ff-en: "Cormorant Garamond", "Times New Roman", serif;
  --ff-script: "Mrs Saint Delafield", cursive;

  --gutter: clamp(20px, 4.4vw, 64px);
  --wide: 1360px;
  --ease: cubic-bezier(.22, .8, .22, 1);
  --ease-in-out: cubic-bezier(.7, 0, .2, 1);
  --bar-h: 0px;
}
html[data-tone="sumi"], html[data-tone="photo"] { --bg: var(--sumi); --fg: #ece8de; --fg-mute: #a9a597; --fg-line: rgba(236, 232, 222, .18); }
html[data-tone="koke"] { --bg: var(--koke); --fg: #eeeadf; --fg-mute: #c2c0b0; --fg-line: rgba(238, 234, 223, .2); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--ff-body); font-size: 15px; line-height: 2; letter-spacing: .04em;
  transition: background-color .9s var(--ease), color .9s var(--ease);
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--sugi); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 300; padding: 8px 16px; background: var(--sumi); color: #fff; }
.skip-link:focus { top: 8px; }

/* ---------- デモ表示 ---------- */
.demo-bar { position: relative; z-index: 120; background: #11140f; color: #c9c5b8; font-size: 12px; line-height: 1.6; letter-spacing: .03em; }
.demo-bar__inner { display: flex; flex-wrap: wrap; gap: 2px 16px; justify-content: space-between; align-items: center; padding: 6px var(--gutter); }
.demo-bar__link { color: #fff; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 共通の小部品 ---------- */
.en-label { font-family: var(--ff-en); font-style: italic; font-size: 20px; line-height: 1; letter-spacing: .02em; color: var(--sugi); }
.script-label { font-family: var(--ff-script); font-size: clamp(64px, 8vw, 120px); line-height: .8; color: var(--sugi); letter-spacing: 0; transform: rotate(-6deg); transform-origin: left bottom; }

/* 文字が下からせり上がるホバー（JS が中身を .roll__in で包み、同じ文字を下に重ねて入れ替える） */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: inherit; }
.roll__in { display: block; transition: transform .5s var(--ease); }
.roll__in::after { content: attr(data-text); position: absolute; left: 0; top: 100%; white-space: nowrap; }
a:hover .roll__in, button:hover .roll__in, a:focus-visible .roll__in, button:focus-visible .roll__in { transform: translateY(-100%); }

.text-link { display: inline-flex; align-items: center; gap: 16px; margin-top: 40px; font-weight: 500; line-height: 2; }
.text-link i, .work-more i { position: relative; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%; transition: background-color .4s, color .4s; }
.text-link i::before, .work-more i::before { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: currentColor; transform: translate(-60%, -50%); box-shadow: none; }
.text-link i::after, .work-more i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: translate(-10%, -50%) rotate(45deg); }
.text-link:hover i { background: var(--fg); color: var(--bg); }

.pill-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 32px;
  border: 1px solid currentColor; border-radius: 999px; font-weight: 500; line-height: 2; letter-spacing: .06em;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s;
}
.pill-btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pill-btn--light { color: #eeeadf; }
.pill-btn--light:hover { background: #eeeadf; color: var(--koke); }
.pill-btn--solid { background: #ece8de; color: var(--sumi); border-color: #ece8de; }
.pill-btn--solid:hover { background: var(--sugi); color: #fff; border-color: var(--sugi); }

/* 一行ずつせり上がる文字（.ln > span）。JS がある時だけ隠しておく */
.ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ln > span { display: inline-block; transition: transform 1.1s var(--ease), opacity 1.1s var(--ease); transition-delay: calc(var(--i, 0) * .09s + .05s); }
.js [data-reveal="lines"] .ln > span { transform: translateY(105%); opacity: 0; }
.js [data-reveal="lines"].is-in .ln > span { transform: none; opacity: 1; }
/* 左から墨を引くように現れる文字 */
.js [data-reveal="mask"] { clip-path: inset(-.2em 100% -.2em 0); transition: clip-path 1.3s var(--ease-in-out); }
.js [data-reveal="mask"].is-in { clip-path: inset(-.2em 0 -.2em 0); }

/* =========================================================
   B. ヘッダー：FV では透明な横並び → スクロールで中央の小さな浮き島に変形
   ========================================================= */
.hd {
  position: fixed; z-index: 100; top: calc(var(--bar-h) + 18px); left: 0; right: 0; margin-inline: auto;
  width: calc(100% - var(--gutter) * 2); height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0;
  color: #f3efe6; border-radius: 999px;
  transition: width .8s var(--ease), top .8s var(--ease), padding .8s var(--ease), height .8s var(--ease), background-color .6s, color .6s, box-shadow .6s;
}
.hd.is-float {
  top: 14px; width: min(460px, calc(100% - 24px)); height: 56px; padding: 0 8px 0 22px;
  background: rgba(28, 32, 27, .42); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .12);
}
html[data-tone="washi"] .hd.is-float { background: rgba(235, 232, 224, .62); color: var(--ink); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(36, 38, 31, .1); }
.hd.is-hidden { transform: translateY(-140%); }
.hd { transform: none; transition-property: width, top, padding, height, background-color, color, box-shadow, transform; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; }
.brand__mark { width: 34px; height: 34px; flex: none; transition: width .8s var(--ease), height .8s var(--ease); }
.brand__text { display: grid; line-height: 1.25; }
.brand__name { font-family: var(--ff-display); font-weight: 800; font-size: 21px; letter-spacing: .18em; white-space: nowrap; transition: font-size .8s var(--ease); }
.brand__sub { font-family: var(--ff-en); font-style: italic; font-size: 13px; letter-spacing: .04em; opacity: .8; white-space: nowrap; overflow: hidden; max-height: 20px; transition: max-height .6s var(--ease), opacity .6s; }
.hd.is-float .brand__mark { width: 26px; height: 26px; }
.hd.is-float .brand__name { font-size: 16px; }
.hd.is-float .brand__sub { max-height: 0; opacity: 0; }

.hd__tools { display: flex; align-items: center; gap: 4px; }
.sns-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; transition: background-color .3s; }
.sns-btn svg { width: 21px; height: 21px; transition: transform .4s var(--ease); }
.sns-btn:hover { background: rgba(255, 255, 255, .14); }
.sns-btn:hover svg { transform: scale(1.12) rotate(-6deg); }
.menu-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; margin-left: 6px; padding: 0 20px 0 16px; border-radius: 999px;
  background: #f3efe6; color: var(--ink); font-family: var(--ff-en); font-size: 17px; font-style: italic; letter-spacing: .04em;
  transition: background-color .4s, color .4s;
}
.menu-btn__lines { position: relative; width: 20px; height: 8px; }
.menu-btn__lines::before, .menu-btn__lines::after { content: ""; position: absolute; left: 0; height: 1px; background: currentColor; transition: width .4s var(--ease); }
.menu-btn__lines::before { top: 0; width: 100%; }
.menu-btn__lines::after { bottom: 0; width: 60%; }
.menu-btn:hover { background: var(--sugi); color: #fff; }
.menu-btn:hover .menu-btn__lines::after { width: 100%; }
html[data-tone="washi"] .hd.is-float .menu-btn { background: var(--ink); color: #f3efe6; }
html[data-tone="washi"] .hd.is-float .sns-btn:hover { background: rgba(36, 38, 31, .08); }

/* ---------- 全画面メニュー ---------- */
.menu {
  position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: 1fr auto;
  background: var(--sumi); color: #ece8de;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-in-out);
}
.menu[hidden] { display: none; }
.menu.is-open { clip-path: inset(0); }
.menu__photo { grid-row: 1 / 3; position: relative; overflow: hidden; }
.menu__photo img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transform: scale(1.06); transition: opacity .5s, transform 1.2s var(--ease); }
.menu__photo img.is-swap { opacity: 0; transform: scale(1.12); transition: none; }
.menu__nav { align-self: center; padding: 96px clamp(28px, 6vw, 96px) 24px; }
.menu__nav li + li { margin-top: clamp(6px, 1.4vh, 14px); }
.menu__nav a { display: inline-flex; align-items: baseline; gap: 20px; font-family: var(--ff-display); font-weight: 600; font-size: clamp(26px, 3.4vw, 46px); line-height: 1.35; letter-spacing: .1em; }
.menu__nav em { font-family: var(--ff-en); font-size: 18px; color: var(--sugi); letter-spacing: .04em; opacity: 0; transform: translateX(-10px); transition: opacity .4s, transform .5s var(--ease); }
.menu__nav a:hover em, .menu__nav a:focus-visible em, .menu__nav a[aria-current] em { opacity: 1; transform: none; }
.menu__nav li { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.menu.is-open .menu__nav li { opacity: 1; transform: none; transition-delay: calc(.3s + var(--i, 0) * .06s); }
.menu__foot { grid-column: 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; padding: 0 clamp(28px, 6vw, 96px) 40px; font-size: 13px; color: #b9b5a7; line-height: 1.9; }
.menu__sns { display: flex; gap: 24px; }
.menu__sns button, .ft__sns button { font-family: var(--ff-en); font-style: italic; font-size: 18px; color: #ece8de; border-bottom: 1px solid rgba(236, 232, 222, .4); line-height: 1.4; }
.menu__close { position: absolute; top: 22px; right: var(--gutter); display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 20px; border: 1px solid rgba(236, 232, 222, .4); border-radius: 999px; font-size: 14px; }
.menu__close span { position: relative; width: 16px; height: 16px; }
.menu__close span::before, .menu__close span::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: currentColor; transform: rotate(45deg); transition: transform .4s var(--ease); }
.menu__close span::after { transform: rotate(-45deg); }
.menu__close:hover span::before { transform: rotate(135deg); }
.menu__close:hover span::after { transform: rotate(45deg); }

/* =========================================================
   A. ファーストビュー（pin：高さ 190vh の間、画面に留まって額縁のように縮む）
   ========================================================= */
.fv { position: relative; height: 190vh; color: #f3efe6; }
.fv__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--washi); }
.fv__media {
  position: absolute; inset: 0; overflow: hidden; background: #0e110d;
  --k: min(1, var(--p, 0) * 1.6);
  clip-path: inset(calc(var(--k) * 11%) calc(var(--k) * 16%) calc(var(--k) * 11%) calc(var(--k) * 16%) round calc(var(--k) * 32px));
}
.fv__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 17, 13, .72), rgba(14, 17, 13, .28) 55%, rgba(14, 17, 13, .1)), linear-gradient(0deg, rgba(14, 17, 13, .55), transparent 40%); }
.fv__zoom { display: block; height: 100%; transform: scale(calc(1.05 - var(--k, 0) * .05)); }
.fv__zoom img { width: 100%; height: 100%; object-fit: cover; animation: fv-zoom 22s ease-out both; }
@keyframes fv-zoom { from { transform: scale(1.09); } to { transform: scale(1); } }

.fv__copy {
  position: absolute; left: var(--gutter); bottom: clamp(96px, 16vh, 170px); max-width: 900px;
  opacity: calc(1 - var(--p, 0) * 2.4); transform: translateY(calc(var(--p, 0) * -90px));
}
.fv__title { font-family: var(--ff-display); font-weight: 800; font-size: clamp(42px, 7.4vw, 112px); line-height: 1.24; letter-spacing: .06em; }
.fv__title .ln > span, .fv__lead > span { transform: translateY(105%); opacity: 0; animation: rise 1.4s var(--ease) forwards; animation-delay: calc(.35s + var(--i) * .22s); }
.fv__lead { margin-top: 28px; display: grid; font-size: 15px; line-height: 2; letter-spacing: .08em; color: #e3dfd3; overflow: hidden; }
.fv__lead > span { display: block; }
@keyframes rise { to { transform: none; opacity: 1; } }

.fv__script {
  position: absolute; right: calc(var(--gutter) + 80px); top: 22%; font-family: var(--ff-script); font-size: clamp(54px, 7vw, 104px); line-height: 1; color: rgba(243, 239, 230, .86);
  transform: rotate(-8deg) translateY(calc(var(--p, 0) * 120px)); opacity: 0; animation: fade 2s 1.4s var(--ease) forwards;
}
.fv__side { position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%; writing-mode: vertical-rl; font-family: var(--ff-display); font-weight: 600; font-size: 17px; letter-spacing: .4em; opacity: 0; animation: fade 1.6s 1.7s forwards; }
.fv__since { position: absolute; right: var(--gutter); bottom: 32px; font-family: var(--ff-en); font-style: italic; font-size: 18px; letter-spacing: .06em; opacity: .85; }
@keyframes fade { to { opacity: 1; } }
.fv__scroll { position: absolute; left: var(--gutter); bottom: 26px; display: flex; align-items: center; gap: 14px; font-family: var(--ff-en); font-style: italic; font-size: 16px; opacity: calc(1 - var(--p, 0) * 4); }
.fv__scroll i { position: relative; width: 96px; height: 1px; background: rgba(243, 239, 230, .3); overflow: hidden; }
.fv__scroll i::after { content: ""; position: absolute; inset: 0; background: #f3efe6; transform: translateX(-100%); animation: scroll-line 2.4s var(--ease-in-out) infinite; }
@keyframes scroll-line { 0% { transform: translateX(-100%); } 55% { transform: none; } 100% { transform: translateX(100%); } }

/* =========================================================
   C. コンセプト：写真が中央から左右へ開く（引き戸）・背景の「継」は逆向きにゆっくり動く
   ========================================================= */
.concept { position: relative; padding: clamp(120px, 16vw, 220px) 0 clamp(120px, 14vw, 200px); overflow: clip; }
.concept__kanji { position: absolute; right: -4vw; top: 6%; font-family: var(--ff-display); font-weight: 800; font-size: clamp(320px, 46vw, 720px); line-height: 1; color: rgba(36, 38, 31, .045); pointer-events: none; translate: 0 var(--y, 0); }
.concept__inner { position: relative; width: min(var(--wide), 100% - var(--gutter) * 2); margin-inline: auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.concept__text { grid-column: 1 / 8; grid-row: 1; align-self: center; position: relative; z-index: 2; padding: 40px 0; }
.concept__title { margin-top: 28px; font-family: var(--ff-display); font-weight: 800; font-size: clamp(30px, 3.9vw, 58px); line-height: 1.42; letter-spacing: .06em; }
.concept__title .ln { white-space: nowrap; }
.concept__body { margin-top: 40px; font-size: 15.5px; line-height: 2.3; color: var(--fg-mute); }
.concept__main {
  grid-column: 7 / 12; grid-row: 1; position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  --m: clamp(0, (var(--p, 0) - .1) * 3.2, 1);
  clip-path: inset(0 calc(50% - var(--m) * 50%) 0 calc(50% - var(--m) * 50%));
}
.concept__main img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.3 - var(--m, 0) * .3)); }
.concept__sub { grid-column: 4 / 8; grid-row: 2; margin-top: -18%; position: relative; z-index: 1; aspect-ratio: 10 / 7; overflow: hidden; translate: 0 var(--y, 0); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .5); }
.concept__sub img, .concept__door img { width: 100%; height: 100%; object-fit: cover; }
.concept__door { grid-column: 11 / 13; grid-row: 2; margin-top: -40%; aspect-ratio: 6 / 7.6; overflow: hidden; translate: 0 var(--y, 0); }
.concept__vertical { grid-column: 12 / 13; grid-row: 1; justify-self: end; align-self: start; writing-mode: vertical-rl; font-family: var(--ff-display); font-weight: 600; font-size: 16px; letter-spacing: .42em; color: var(--fg-mute); margin-top: 20px; }

/* =========================================================
   F. 図面から家へ（pin 260vh）：線画の動画 → 中央の小窓が広がって完成写真が画面を覆う
   ========================================================= */
.craft { position: relative; height: 260vh; }
.craft__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #f4f3ef; color: var(--ink); }
.craft__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.craft__photo {
  position: absolute; inset: 0;
  --q: clamp(0, (var(--p, 0) - .22) / .5, 1);
  clip-path: inset(calc(24% - var(--q) * 24%) calc(7% - var(--q) * 7%) calc(30% - var(--q) * 30%) calc(50% - var(--q) * 50%));
}
.craft__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 17, 13, .6), rgba(14, 17, 13, .05) 60%); opacity: var(--q); }
.craft__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.25 - var(--q, 0) * .25)); }
.craft__title { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(80px, 14vh, 140px); font-family: var(--ff-display); font-weight: 800; font-size: clamp(36px, 6.2vw, 96px); line-height: 1.3; letter-spacing: .06em; }
.craft__a, .craft__b { display: block; }
.craft__a { text-shadow: 0 0 14px #f4f3ef, 0 0 28px #f4f3ef, 0 0 4px #f4f3ef; clip-path: inset(-.2em calc(100% - min(1, var(--p, 0) * 6) * 100%) -.2em 0); opacity: calc(1 - clamp(0, (var(--p, 0) - .55) * 5, 1)); }
.craft__b { position: absolute; left: 0; top: 0; color: #f3efe6; clip-path: inset(-.2em calc(100% - clamp(0, (var(--p, 0) - .62) * 4, 1) * 100%) -.2em 0); }
.craft__note { position: absolute; right: var(--gutter); top: clamp(110px, 18vh, 180px); max-width: 300px; font-size: 14px; line-height: 2.1; color: #f3efe6; opacity: clamp(0, (var(--p, 0) - .7) * 5, 1); transform: translateY(calc((1 - clamp(0, (var(--p, 0) - .7) * 5, 1)) * 20px)); }

/* =========================================================
   D. 施工事例（pin）：縦スクロールの量で写真列が横へ流れる。高さは JS が列の長さから決める
   ========================================================= */
.works { position: relative; height: 400vh; color: #ece8de; }
.works__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(300px, 30vw) minmax(0, 1fr); align-items: center; }
.works__head { position: relative; z-index: 2; align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 0 clamp(24px, 3vw, 48px) 0 var(--gutter); background: linear-gradient(90deg, var(--sumi) 82%, rgba(28, 32, 27, 0)); }
.works__head > * { flex: none; }
.works__head .script-label { margin-left: -6px; }
.works__title { margin-top: 18px; font-family: var(--ff-display); font-weight: 800; font-size: clamp(26px, 2.5vw, 40px); white-space: nowrap; line-height: 1.45; letter-spacing: .06em; }
.works__lead { margin-top: 22px; font-size: 14px; color: var(--fg-mute); }
.works__count { margin-top: 44px; display: flex; align-items: flex-end; gap: 10px; font-family: var(--ff-en); line-height: 1; }
.works__reel-win { display: block; height: 1em; overflow: hidden; font-size: 76px; font-weight: 400; }
.works__reel { display: grid; transition: transform .8s var(--ease); transform: translateY(calc(var(--n, 0) * -1em)); }
.works__reel span { display: block; height: 1em; line-height: 1; }
.works__total { font-size: 26px; font-style: italic; color: var(--fg-mute); padding-bottom: 8px; }
.works__bar { margin-top: 22px; width: 180px; height: 1px; background: var(--fg-line); }
.works__bar i { display: block; height: 100%; background: var(--sugi); transform-origin: left; transform: scaleX(var(--p, 0)); }
.works__track-wrap { min-width: 0; height: 100%; display: flex; align-items: center; overflow: visible; }
.works__track { display: flex; align-items: center; gap: clamp(28px, 3vw, 56px); padding-right: 12vw; transform: translate3d(var(--tx, 0px), 0, 0); will-change: transform; }
.work { flex: none; }
.work a { position: relative; display: block; color: #f3efe6; }
.work__img { display: block; overflow: hidden; }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .8s; }
.work a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 17, 13, .7), transparent 50%); pointer-events: none; transition: opacity .6s; }
.work a:hover .work__img img, .work a:focus-visible .work__img img { transform: scale(1.07); }
.work a:hover::after { opacity: .7; }
.work__cap { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; display: grid; gap: 8px; }
.work__name { font-family: var(--ff-display); font-weight: 600; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.5; letter-spacing: .08em; }
.work__meta { font-size: 12.5px; letter-spacing: .1em; color: #cfcabc; }
.work--tall .work__img { width: clamp(260px, 25vw, 400px); aspect-ratio: 4 / 5; }
.work--wide .work__img { width: clamp(340px, 36vw, 580px); aspect-ratio: 3 / 2; }
.work--low .work__img { width: clamp(280px, 28vw, 440px); aspect-ratio: 4 / 3; }
.work--wide, .work--low { margin-top: 18vh; }
.work--up { margin-top: -14vh; }
.work--down { margin-top: 24vh; }
.work-more { flex: none; }
.work-more a { display: inline-flex; align-items: center; gap: 20px; font-family: var(--ff-display); font-weight: 600; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: .08em; white-space: nowrap; }
.work-more i { width: 72px; height: 72px; }
.work-more a:hover i { background: #ece8de; color: var(--sumi); }

/* =========================================================
   E-1. Instagram：非対称のコラージュ。各写真は --dx/--dy の方向から入り、速度違いで流れる
   ========================================================= */
.ig { padding: clamp(120px, 14vw, 200px) 0 clamp(100px, 12vw, 180px); overflow: clip; }
.ig__inner { width: min(var(--wide), 100% - var(--gutter) * 2); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ig__collage { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(28px, 3.4vw, 50px); }
.ig__ph { overflow: hidden; translate: 0 var(--y, 0); }
.ig__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ig__ph:hover img { transform: scale(1.05); }
.ig__ph--1 { grid-column: 1 / 5; grid-row: 2 / 8; }
.ig__ph--2 { grid-column: 5 / 9; grid-row: 1 / 10; z-index: 1; }
.ig__ph--3 { grid-column: 8 / 13; grid-row: 4 / 9; }
.ig__ph--4 { grid-column: 2 / 6; grid-row: 9 / 14; z-index: 2; }
.ig__ph--5 { grid-column: 6 / 9; grid-row: 11 / 17; }
.ig__ph--6 { grid-column: 9 / 13; grid-row: 10 / 14; z-index: 1; }
.ig__ph--7 { grid-column: 10 / 13; grid-row: 15 / 19; }
.js .ig__ph { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.96); transition: opacity 1.1s var(--ease), transform 1.4s var(--ease); transition-delay: calc(var(--i) * .12s); }
.js .ig__collage.is-in .ig__ph { opacity: 1; transform: none; }
.ig__text .script-label { font-size: clamp(72px, 8vw, 128px); }
.ig__title { margin: 30px 0 24px; font-family: var(--ff-display); font-weight: 800; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.55; letter-spacing: .06em; }
.ig__text > p:not([class]) { color: var(--fg-mute); font-size: 14.5px; }
.ig__handle { margin: 22px 0 30px; font-family: var(--ff-en); font-style: italic; font-size: 22px; color: var(--fg); }

/* =========================================================
   E-2. YouTube：苔色の章。サムネイルがスクロールで広がる
   ========================================================= */
.yt { padding: clamp(110px, 12vw, 180px) 0; color: #eeeadf; overflow: clip; }
.yt__inner { width: min(var(--wide), 100% - var(--gutter) * 2); margin-inline: auto; display: grid; justify-items: center; }
.yt__head { justify-self: start; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 40px; margin-bottom: clamp(40px, 5vw, 64px); }
.yt__title { font-family: var(--ff-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 52px); line-height: 1.4; letter-spacing: .06em; }
.yt__player { width: 100%; }
.yt__screen {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000;
  --s: clamp(0, (var(--p, 0) - .08) / .36, 1);
  transform: scale(calc(.74 + var(--s) * .26)); border-radius: calc(28px - var(--s) * 28px); transform-origin: center top;
}
.yt__screen > img, .yt__screen > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s, transform 1.2s var(--ease); }
.yt__screen > img.is-swap { opacity: 0; transform: scale(1.05); transition: none; }
.yt__screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 12, 9, .7), transparent 45%); pointer-events: none; }
.yt__play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%; background: rgba(243, 239, 230, .94); color: var(--koke); display: grid; place-items: center; transition: transform .6s var(--ease), background-color .4s, color .4s; }
.yt__play svg { width: 34px; height: 34px; margin-left: 5px; transition: transform .5s var(--ease); }
.yt__play-ring { position: absolute; inset: -14px; border: 1px solid rgba(243, 239, 230, .7); border-radius: 50%; transform: scale(.86); opacity: 0; transition: transform .7s var(--ease), opacity .5s; }
.yt__play:hover, .yt__play:focus-visible { transform: scale(1.08); background: var(--sugi); color: #fff; }
.yt__play:hover svg { transform: scale(1.12); }
.yt__play:hover .yt__play-ring, .yt__play:focus-visible .yt__play-ring { transform: scale(1); opacity: 1; animation: ring 1.8s var(--ease) .3s infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.45); opacity: 0; } }
.yt.is-playing .yt__play, .yt.is-playing .yt__caption { opacity: 0; pointer-events: none; }
.yt__caption { position: absolute; left: clamp(20px, 3vw, 40px); right: clamp(20px, 3vw, 40px); bottom: clamp(18px, 2.6vw, 34px); z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; font-family: var(--ff-display); font-weight: 600; font-size: clamp(16px, 1.7vw, 24px); letter-spacing: .06em; line-height: 1.5; transition: opacity .4s; }
.yt__caption span:last-child { font-family: var(--ff-en); font-style: italic; font-weight: 400; font-size: 20px; }
.yt__notice { position: absolute; left: 50%; top: calc(50% + 80px); z-index: 2; translate: -50% 0; padding: 8px 18px; border-radius: 999px; background: rgba(10, 12, 9, .7); font-size: 13px; white-space: nowrap; opacity: 0; transition: opacity .4s; }
.yt__notice.is-show { opacity: 1; }
.yt__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); margin-top: clamp(24px, 3vw, 40px); }
.yt__item { position: relative; display: grid; grid-template-columns: minmax(0, 120px) 1fr; gap: 16px; align-items: center; padding: 10px 0; text-align: left; border-top: 1px solid rgba(238, 234, 223, .22); opacity: .62; transition: opacity .4s; }
.yt__item::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: #eeeadf; transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.yt__item img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.yt__item-t { font-size: 13.5px; line-height: 1.7; }
.yt__item:hover, .yt__item[aria-selected="true"] { opacity: 1; }
.yt__item[aria-selected="true"]::before { transform: none; }
.yt .pill-btn { margin-top: clamp(40px, 5vw, 64px); }

/* =========================================================
   住まいのかたち：大きな文字の行。カーソルの位置に写真が浮かぶ（タッチ端末は行内に写真）
   ========================================================= */
.svc { position: relative; padding: clamp(120px, 14vw, 200px) 0 clamp(80px, 10vw, 140px); }
.svc__inner { width: min(var(--wide), 100% - var(--gutter) * 2); margin-inline: auto; }
.svc__head { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 80px); }
.svc__title { font-family: var(--ff-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 52px); line-height: 1.4; letter-spacing: .06em; }
.svc__list { border-top: 1px solid var(--fg-line); }
.svc__row { border-bottom: 1px solid var(--fg-line); }
.svc__row a { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 2fr) minmax(0, 4fr); align-items: center; gap: 24px; padding: clamp(28px, 3.4vw, 48px) 0; }
.svc__name { font-family: var(--ff-display); font-weight: 800; font-size: clamp(40px, 6.6vw, 104px); line-height: 1.15; letter-spacing: .05em; transition: transform .7s var(--ease), color .5s; }
.svc__row em { font-family: var(--ff-en); font-size: 20px; color: var(--sugi); }
.svc__desc { font-size: 14px; color: var(--fg-mute); line-height: 2; }
.svc__row a:hover .svc__name, .svc__row a:focus-visible .svc__name { transform: translateX(28px); color: var(--sugi); }
.svc__thumb { display: none; }
.svc__float { position: fixed; left: 0; top: 0; z-index: 50; width: 260px; aspect-ratio: 9 / 11; overflow: hidden; pointer-events: none; clip-path: inset(50% 50% 50% 50%); transition: clip-path .6s var(--ease-in-out); translate: var(--fx, -999px) var(--fy, -999px); }
.svc__float img { width: 100%; height: 100%; object-fit: cover; }
.svc__float.is-on { clip-path: inset(0); }

/* ---------- お知らせ ---------- */
.news { padding: 0 0 clamp(120px, 14vw, 200px); }
.news__inner { width: min(var(--wide), 100% - var(--gutter) * 2); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; }
.news__title { display: grid; gap: 14px; align-content: start; font-family: var(--ff-display); font-weight: 800; font-size: clamp(24px, 2.4vw, 34px); letter-spacing: .1em; line-height: 1.4; }
.news__list li { display: grid; grid-template-columns: 8em 6em minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--fg-line); }
.news__list li:first-child { border-top: 1px solid var(--fg-line); }
.news__list time { font-family: var(--ff-en); font-size: 18px; letter-spacing: .06em; }
.news__cat { justify-self: start; padding: 0 12px; border: 1px solid var(--fg-line); border-radius: 999px; font-size: 12px; line-height: 2; }

/* =========================================================
   お問い合わせ：夕景を背景に、見出しが墨を引くように現れる
   ========================================================= */
.cta { position: relative; min-height: 100vh; display: grid; align-items: end; color: #f3efe6; overflow: hidden; }
.cta__bg { position: absolute; inset: -12% 0; translate: 0 var(--y, 0); }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 17, 13, .86), rgba(14, 17, 13, .35) 70%, rgba(14, 17, 13, .55)); }
.cta__inner { position: relative; width: min(var(--wide), 100% - var(--gutter) * 2); margin-inline: auto; padding: 160px 0 clamp(80px, 10vw, 130px); }
.cta__title { font-family: var(--ff-display); font-weight: 800; font-size: clamp(36px, 6vw, 92px); line-height: 1.32; letter-spacing: .06em; }
.cta__lead { margin-top: 28px; max-width: 34em; color: #ddd8cb; }
.cta__actions { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.cta__tel { display: grid; font-family: var(--ff-en); font-size: 30px; letter-spacing: .08em; line-height: 1.3; }
.cta__tel small { font-family: var(--ff-body); font-size: 12.5px; letter-spacing: .06em; color: #cfcabc; }

/* ---------- フッター ---------- */
.ft { background: var(--sumi); color: #ddd9cd; }
.ft__inner { width: min(var(--wide), 100% - var(--gutter) * 2); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) auto; gap: 40px; padding: 80px 0 56px; }
.brand--ft .brand__name { font-size: 18px; letter-spacing: .12em; }
.ft address { margin-top: 20px; font-style: normal; font-size: 13px; line-height: 2; color: #a9a597; }
.ft__nav ul { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 48px; font-size: 14px; }
.ft__nav a:hover { color: var(--sugi); }
.ft__sns { display: flex; gap: 24px; align-items: flex-start; }
.ft__demo { width: min(var(--wide), 100% - var(--gutter) * 2); margin-inline: auto; padding: 24px 0 32px; border-top: 1px solid rgba(236, 232, 222, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 12px; color: #9a968a; line-height: 1.8; }
.ft__demo a { color: #ddd9cd; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- トースト（SNS などリンク先のないデモ要素の案内） ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 250; translate: -50% 0; max-width: calc(100% - 32px); padding: 12px 22px; border-radius: 999px; background: rgba(28, 32, 27, .9); color: #f3efe6; font-size: 13.5px; line-height: 1.6; opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .5s var(--ease); pointer-events: none; }
.toast.is-show { opacity: 1; transform: none; }

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 999px) {
  .concept__text { grid-column: 1 / 13; padding: 0 0 48px; }
  .concept__main { grid-column: 3 / 12; grid-row: 2; }
  .concept__sub { grid-column: 1 / 8; grid-row: 3; margin-top: -26%; }
  .concept__door { grid-column: 9 / 13; grid-row: 3; margin-top: 10%; }
  .concept__vertical { grid-column: 12 / 13; grid-row: 2; margin-right: -8px; }
  .ig__inner { grid-template-columns: 1fr; }
  .ig__text { order: -1; }
  .svc__row a { grid-template-columns: minmax(0, 1fr) auto; }
  .svc__desc { grid-column: 1 / -1; }
  .ft__inner { grid-template-columns: 1fr; }
}
@media (max-width: 799px) {
  .works__stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; }
  .works__head { background: none; padding: calc(var(--bar-h) + 90px) var(--gutter) 0; display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: end; }
  .works__head .script-label { grid-column: 1 / -1; font-size: 64px; }
  .works__title { font-size: 26px; margin-top: 10px; }
  .works__lead { display: none; }
  .works__count { grid-column: 2; grid-row: 2; margin: 0; }
  .works__reel-win { font-size: 52px; }
  .works__bar { grid-column: 1 / -1; width: 100%; }
  .works__track-wrap { align-items: center; padding-left: var(--gutter); }
  .work--tall .work__img { width: 64vw; }
  .work--wide .work__img { width: 78vw; }
  .work--low .work__img { width: 70vw; }
  .work--wide, .work--low, .work--up, .work--down { margin-top: 0; }
  .work--up { margin-top: -10vh; }
  .work--down { margin-top: 10vh; }
  .svc__head, .news__inner { grid-template-columns: 1fr; }
  .svc__float { display: none; }
  .svc__row a { grid-template-columns: minmax(0, 1fr) 96px; grid-template-rows: auto auto auto; gap: 6px 16px; }
  .svc__name { grid-column: 1; }
  .svc__row em { grid-column: 1; grid-row: 2; font-size: 17px; }
  .svc__desc { grid-column: 1; grid-row: 3; }
  .svc__thumb { display: block; grid-column: 2; grid-row: 1 / 4; width: 96px; aspect-ratio: 9 / 11; object-fit: cover; }
  .news__list li { grid-template-columns: auto 1fr; gap: 4px 16px; }
  .news__list p { grid-column: 1 / -1; }
  .menu { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .menu__photo { display: none; }
  .menu__foot { grid-column: 1; }
  .yt__list { grid-template-columns: 1fr; gap: 0; }
  .yt__item { grid-template-columns: 112px 1fr; }
  .cta__tel { font-size: 24px; }
}
@media (max-width: 599px) {
  body { font-size: 14.5px; }
  .demo-bar { font-size: 11px; }
  .hd { top: calc(var(--bar-h) + 10px); height: 56px; }
  .brand__name { font-size: 17px; letter-spacing: .12em; }
  .brand__mark { width: 28px; height: 28px; }
  .hd .sns-btn { display: none; }
  .hd.is-float { width: calc(100% - 24px); padding-left: 16px; }
  .hd.is-float .sns-btn { display: grid; }
  .menu-btn { padding: 0 16px 0 14px; }
  .fv { height: 170vh; }
  .fv__copy { right: var(--gutter); bottom: 110px; }
  .fv__title { font-size: clamp(36px, 10.6vw, 52px); line-height: 1.32; }
  .fv__lead { font-size: 13px; margin-top: 20px; }
  .fv__script { top: auto; bottom: 48%; right: 12px; font-size: 52px; }
  .fv__side { top: 30%; font-size: 14px; }
  .fv__since { font-size: 15px; }
  .concept__title { font-size: clamp(28px, 8vw, 40px); }
  .concept__body { font-size: 14px; }
  .concept__body .ln { display: inline; overflow: visible; }
  .concept__body .ln > span { display: inline; }
  .js .concept__body[data-reveal="lines"] .ln > span { transform: none; }
  .craft__note { left: var(--gutter); right: var(--gutter); top: auto; bottom: calc(clamp(80px, 14vh, 140px) + 170px); max-width: none; }
  .craft__title { font-size: clamp(30px, 9vw, 44px); }
  .craft__photo { clip-path: inset(calc(16% - var(--q) * 16%) calc(8% - var(--q) * 8%) calc(46% - var(--q) * 46%) calc(8% - var(--q) * 8%)); }
  .yt__title, .svc__title { font-size: clamp(22px, 6.4vw, 30px); }
  .svc__name { font-size: clamp(26px, 7.8vw, 40px); }
  .works__track { padding-right: 24vw; }
  .cta__title { font-size: clamp(28px, 8.2vw, 40px); }
  .ig__collage { grid-auto-rows: 26px; }
  .script-label { font-size: 64px; }
  .ig__text .script-label { font-size: 76px; }
  .yt__play { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
  .yt__play svg { width: 26px; height: 26px; }
  .yt__caption { font-size: 14px; }
  .yt__caption span:last-child { font-size: 15px; }
  .yt__notice { top: auto; bottom: 12px; white-space: normal; width: max-content; max-width: 90%; text-align: center; }
  .cta { min-height: 88vh; }
  .ft__nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
}

/* =========================================================
   動きを減らす設定：演出を止め、pin を解いて通常の縦並びで読む
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  .fv { height: auto; }
  .fv__stage { position: relative; }
  .fv__media, .concept__main, .craft__photo { clip-path: none !important; }
  .fv__zoom, .fv__zoom img, .concept__main img, .craft__photo img { transform: none !important; }
  .fv__copy, .fv__scroll { opacity: 1 !important; transform: none !important; }
  [data-speed] { translate: none !important; }
  .craft { height: auto; }
  .craft__stage { position: relative; }
  .craft__video { display: none; }
  .craft__a { display: none; }
  .craft__b { position: static; clip-path: none !important; }
  .craft__note { opacity: 1 !important; transform: none !important; }
  .works { height: auto !important; }
  .works__stage { position: relative; height: auto; padding: 120px 0; grid-template-columns: 1fr; gap: 48px; }
  .works__count, .works__bar { display: none; }
  .works__track-wrap { overflow-x: auto; padding: 0 var(--gutter) 20px; }
  .works__track { transform: none !important; }
  .work, .work--up, .work--down, .work--wide, .work--low { margin-top: 0; }
  .yt__screen { transform: none !important; border-radius: 0 !important; }
  .js [data-reveal="mask"] { clip-path: none !important; }
  .js [data-reveal="lines"] .ln > span, .js .ig__ph { transform: none !important; opacity: 1 !important; }
}
/* JS が動かない環境：pin を解き、横の写真列は横スクロールで見る */
.no-js .fv, .no-js .craft, .no-js .works { height: auto; }
.no-js .fv__stage, .no-js .craft__stage, .no-js .works__stage { position: relative; }
.no-js .craft__a { display: none; }
.no-js .craft__b { position: static; clip-path: none; }
.no-js .craft__note { opacity: 1; transform: none; }
.no-js .works__track-wrap { overflow-x: auto; }
.no-js .works__stage { height: auto; padding: 120px 0; }

/* =========================================================
   下層ページ（トップの tokens と部品をそのまま使う）
   ========================================================= */
/* ---------- 見出し帯：写真が寄りながら、h1 が立ち上がる。スクロールで写真が沈む ---------- */
.ph { position: relative; min-height: 76vh; min-height: 76svh; display: grid; align-items: end; color: #f3efe6; overflow: hidden; background: #0e110d; }
.ph__media { position: absolute; inset: 0; }
.ph__media img { width: 100%; height: 100%; object-fit: cover; animation: fv-zoom 18s ease-out both; translate: 0 calc(var(--p, 0) * 18%); }
.ph__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 17, 13, .7), rgba(14, 17, 13, .2) 70%), linear-gradient(0deg, rgba(14, 17, 13, .5), transparent 50%); }
.ph__inner { position: relative; width: min(var(--wide), 100% - var(--gutter) * 2); margin-inline: auto; padding: 180px 0 clamp(56px, 8vw, 104px); }
.ph .script-label { color: #d9b48c; opacity: 0; animation: fade 1.6s .2s forwards; }
.ph__title { margin-top: 14px; font-family: var(--ff-display); font-weight: 800; font-size: clamp(36px, 5.6vw, 84px); line-height: 1.3; letter-spacing: .08em; }
.ph__title .ln > span, .ph__lead > span { display: inline-block; transform: translateY(105%); opacity: 0; animation: rise 1.3s var(--ease) forwards; animation-delay: calc(.3s + var(--i) * .2s); }
.ph__lead { margin-top: 18px; overflow: hidden; font-size: 15px; letter-spacing: .1em; color: #e3dfd3; }
.crumb ol { width: min(var(--wide), 100% - var(--gutter) * 2); margin-inline: auto; display: flex; flex-wrap: wrap; padding: 18px 0; font-size: 12.5px; color: var(--fg-mute); }
.crumb li + li::before { content: "／"; margin: 0 .7em; opacity: .6; }
.crumb a { text-decoration: underline; text-underline-offset: 3px; }
.cta--sub { min-height: 80vh; }

/* ---------- 私たちの想い：縦書きの宣言 ---------- */
.manifest { padding: clamp(96px, 12vw, 180px) 0; overflow: clip; }
.manifest__inner { width: min(1120px, 100% - var(--gutter) * 2); margin-inline: auto; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 220px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.manifest__title { writing-mode: vertical-rl; font-family: var(--ff-display); font-weight: 800; font-size: clamp(40px, 5.4vw, 80px); line-height: 1.5; letter-spacing: .14em; }
.manifest__title .ln { overflow: hidden; padding: 0 .08em; margin: 0; }
.js .manifest__title[data-reveal="lines"] .ln > span { transform: translateY(-105%); }
.manifest__body { padding-top: clamp(40px, 8vw, 120px); font-size: 16px; line-height: 2.5; }
.manifest__body .ln + .ln { margin-top: 1.2em; }
.manifest__ph { align-self: end; overflow: hidden; translate: 0 var(--y, 0); }
.manifest__ph img { width: 100%; aspect-ratio: 6 / 7.6; object-fit: cover; }

/* ---------- 大切にしていること：写真が下から幕を上げるように現れる。左右交互にずらす ---------- */
.values { padding: 0 0 clamp(120px, 14vw, 200px); }
.values__inner { width: min(var(--wide), 100% - var(--gutter) * 2); margin-inline: auto; }
.values__head { display: grid; gap: 20px; margin-bottom: clamp(56px, 8vw, 110px); }
.values__title, .profile__title, .access__title, .hist__title, .faq__title, .flow__title { font-family: var(--ff-display); font-weight: 800; font-size: clamp(26px, 3vw, 44px); line-height: 1.45; letter-spacing: .06em; }
.value { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center; }
.value + .value { margin-top: clamp(72px, 10vw, 150px); }
.value__ph { grid-column: 1 / 6; overflow: hidden; --m: clamp(0, (var(--p, 0) - .08) * 3, 1); clip-path: inset(calc(100% - var(--m) * 100%) 0 0 0); }
.value__ph img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transform: scale(calc(1.2 - var(--m, 0) * .2)); }
.value__ph--wide { grid-column: 1 / 8; }
.value__ph--wide img { aspect-ratio: 10 / 7; }
.value__text { grid-column: 7 / 12; position: relative; }
.value__ph--wide + .value__text { grid-column: 9 / 13; }
.value--rev .value__ph { grid-column: 6 / 13; order: 2; }
.value--rev .value__text { grid-column: 1 / 5; grid-row: 1; }
.value__en { position: absolute; left: -.05em; top: -.62em; z-index: -1; font-family: var(--ff-en); font-style: italic; font-size: clamp(90px, 12vw, 180px); line-height: 1; color: rgba(167, 122, 79, .16); }
.value__title { font-family: var(--ff-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 50px); letter-spacing: .14em; line-height: 1.3; margin-bottom: 24px; }
.value__text > p:not([class]) { color: var(--fg-mute); }

/* ---------- 施工事例：絞り込み＋写真の幕開け ---------- */
.cases { padding: clamp(56px, 7vw, 96px) 0 clamp(120px, 14vw, 200px); }
.cases__inner { width: min(var(--wide), 100% - var(--gutter) * 2); margin-inline: auto; }
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: clamp(56px, 8vw, 110px); }
.filter button { min-height: 44px; padding: 0 22px; border: 1px solid var(--fg-line); border-radius: 999px; font-size: 14px; line-height: 2; transition: background-color .4s, color .4s, border-color .4s; }
.filter button[aria-pressed="true"] { background: var(--ink); color: var(--washi); border-color: var(--ink); }
.filter__count { margin-left: auto; font-family: var(--ff-en); font-style: italic; font-size: 20px; color: var(--fg-mute); }
.case { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: end; scroll-margin-top: 80px; }
.case + .case { margin-top: clamp(80px, 11vw, 160px); }
.case[hidden] { display: none; }
.case__ph { grid-column: 1 / 8; overflow: hidden; --m: clamp(0, (var(--p, 0) - .05) * 3, 1); clip-path: inset(0 calc(100% - var(--m) * 100%) 0 0); }
.case__ph img { width: 100%; max-height: 82vh; object-fit: cover; transform: scale(calc(1.15 - var(--m, 0) * .15)); }
.case__text { grid-column: 9 / 13; padding-bottom: 12px; }
.case--rev .case__ph { grid-column: 6 / 13; order: 2; clip-path: inset(0 0 0 calc(100% - var(--m) * 100%)); }
.case--rev .case__text { grid-column: 1 / 5; grid-row: 1; }
.case__cat { display: inline-block; padding: 0 12px; border: 1px solid var(--fg-line); border-radius: 999px; font-size: 12px; line-height: 2; }
.case__title { margin: 18px 0 20px; font-family: var(--ff-display); font-weight: 800; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.5; letter-spacing: .06em; }
.case__text > p:not([class]) { color: var(--fg-mute); }
.spec { margin-top: 24px; border-top: 1px solid var(--fg-line); }
.spec div { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--fg-line); font-size: 13.5px; }
.spec dt { color: var(--fg-mute); }

/* ---------- 住まいのかたち：大きな名前に写真2枚が重なる ---------- */
.svc-index { padding: clamp(40px, 6vw, 80px) 0 0; }
.svc-index__list { width: min(var(--wide), 100% - var(--gutter) * 2); margin-inline: auto; display: flex; flex-wrap: wrap; gap: 12px 48px; border-bottom: 1px solid var(--fg-line); padding-bottom: 28px; }
.svc-index a { display: inline-flex; align-items: baseline; gap: 12px; font-family: var(--ff-display); font-weight: 600; font-size: clamp(18px, 1.8vw, 24px); letter-spacing: .1em; }
.svc-index em { font-family: var(--ff-en); font-size: 16px; color: var(--sugi); }
.svd { padding: clamp(96px, 12vw, 170px) 0; overflow: clip; scroll-margin-top: 40px; }
.svd__inner { position: relative; width: min(var(--wide), 100% - var(--gutter) * 2); margin-inline: auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.svd__en { grid-column: 1 / -1; grid-row: 1; font-family: var(--ff-en); font-style: italic; font-size: clamp(64px, 11vw, 170px); line-height: .9; color: rgba(167, 122, 79, .2); white-space: nowrap; translate: calc((var(--p, 0) - .5) * -12%) 0; }
.svd__title { grid-column: 1 / 8; grid-row: 2; margin-top: -.6em; position: relative; z-index: 2; font-family: var(--ff-display); font-weight: 800; font-size: clamp(40px, 6vw, 92px); line-height: 1.2; letter-spacing: .08em; }
.svd__ph { grid-column: 7 / 12; grid-row: 1 / 5; overflow: hidden; align-self: start; }
.svd__ph img { width: 100%; aspect-ratio: 9 / 11; object-fit: cover; }
.svd__sub { grid-column: 4 / 8; grid-row: 4; margin-top: 40px; overflow: hidden; translate: 0 var(--y, 0); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .5); position: relative; z-index: 1; }
.svd__sub img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svd__text { grid-column: 1 / 6; grid-row: 3; margin-top: 40px; }
.svd--rev .svd__en { text-align: right; }
.svd--rev .svd__title { grid-column: 6 / 13; text-align: right; }
.svd--rev .svd__ph { grid-column: 2 / 7; }
.svd--rev .svd__sub { grid-column: 6 / 10; }
.svd--rev .svd__text { grid-column: 8 / 13; }
.tick { margin-top: 24px; border-top: 1px solid var(--fg-line); }
.tick li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--fg-line); font-size: 14.5px; }
.tick li::before { content: ""; position: absolute; left: 2px; top: 1.3em; width: 14px; height: 1px; background: var(--sugi); }

/* 家づくりの流れ：順番がある工程なので番号付き。スクロールで線が伸びる */
.flow { padding: clamp(110px, 12vw, 180px) 0; }
.flow__inner { width: min(var(--wide), 100% - var(--gutter) * 2); margin-inline: auto; }
.flow__head { display: grid; gap: 20px; margin-bottom: 56px; }
.flow__line { height: 1px; background: var(--fg-line); }
.flow__line i { display: block; height: 100%; background: var(--sugi); transform-origin: left; transform: scaleX(clamp(0, (var(--p, 0) - .15) * 2.4, 1)); }
.flow__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; padding-top: 32px; }
.flow__no { font-family: var(--ff-en); font-size: 44px; line-height: 1; color: var(--sugi); }
.flow__list h3 { margin: 14px 0 10px; font-family: var(--ff-display); font-weight: 600; font-size: 18px; letter-spacing: .08em; line-height: 1.5; }
.flow__list p { font-size: 13.5px; color: var(--fg-mute); line-height: 1.9; }

.faq { padding: clamp(110px, 12vw, 180px) 0; }
.faq__inner, .profile__inner, .access__inner { width: min(var(--wide), 100% - var(--gutter) * 2); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; }
.faq__title, .profile__title, .access__title, .hist__title { display: grid; gap: 14px; align-content: start; }
.faq__item { border-bottom: 1px solid var(--fg-line); }
.faq__item:first-child { border-top: 1px solid var(--fg-line); }
.faq__item summary { position: relative; padding: 24px 48px 24px 0; cursor: pointer; list-style: none; font-family: var(--ff-display); font-weight: 600; font-size: 18px; letter-spacing: .06em; line-height: 1.6; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before, .faq__item summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1px; background: currentColor; transition: transform .4s var(--ease); }
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0); }
.faq__item p { padding: 0 0 26px; color: var(--fg-mute); }

/* ---------- 会社情報 ---------- */
.message { padding: clamp(96px, 12vw, 180px) 0; overflow: clip; }
.message__inner { width: min(var(--wide), 100% - var(--gutter) * 2); margin-inline: auto; display: grid; grid-template-columns: auto minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.message__v { writing-mode: vertical-rl; font-family: var(--ff-display); font-weight: 800; font-size: clamp(28px, 3vw, 44px); letter-spacing: .3em; color: var(--sugi); }
.message__title { margin: 22px 0 32px; font-family: var(--ff-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 50px); line-height: 1.5; letter-spacing: .06em; }
.message__text > p:not([class]) + p:not([class]) { margin-top: 1.2em; }
.message__text > p:not([class]) { color: var(--fg-mute); }
.message__sign { margin-top: 32px; font-family: var(--ff-display); font-weight: 600; letter-spacing: .1em; }
.message__ph { margin-top: 120px; overflow: hidden; translate: 0 var(--y, 0); }
.message__ph img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.profile { padding: 0 0 clamp(110px, 12vw, 180px); }
.table { border-top: 1px solid var(--fg-line); }
.table div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid var(--fg-line); }
.table dt { color: var(--fg-mute); font-size: 14px; }
.hist { padding: clamp(110px, 12vw, 180px) 0; }
.hist__inner { width: min(var(--wide), 100% - var(--gutter) * 2); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; }
.hist__list { position: relative; padding-left: 40px; }
.hist__line { position: absolute; left: 0; top: 10px; bottom: 10px; width: 1px; background: var(--fg-line); }
.hist__line::after { content: ""; position: absolute; inset: 0; background: var(--sugi); transform-origin: top; transform: scaleY(clamp(0, (var(--p, 0) - .2) * 2.2, 1)); }
.hist__list li { position: relative; display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 18px 0; }
.hist__list li::before { content: ""; position: absolute; left: -44px; top: 34px; width: 9px; height: 9px; border-radius: 50%; background: var(--sumi); border: 1px solid var(--sugi); }
.hist__year { font-family: var(--ff-en); font-size: 34px; line-height: 1; color: var(--sugi); }
.access { padding: clamp(110px, 12vw, 180px) 0; }
.access__map { grid-column: 2; display: grid; place-items: center; aspect-ratio: 16 / 7; background: repeating-linear-gradient(0deg, transparent 0 39px, var(--fg-line) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, var(--fg-line) 39px 40px), var(--washi-2); text-align: center; font-family: var(--ff-display); color: var(--fg-mute); line-height: 1.8; }
.access__map small { font-family: var(--ff-body); font-size: 12px; }
.access__text { grid-column: 2; font-size: 14.5px; }
.access__name { font-family: var(--ff-display); font-weight: 600; font-size: 18px; letter-spacing: .08em; margin-bottom: 6px; }

/* ---------- お問い合わせ（フォームは送信しない） ---------- */
.contact { padding: clamp(80px, 10vw, 140px) 0 clamp(120px, 14vw, 200px); }
.contact__inner { width: min(1180px, 100% - var(--gutter) * 2); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__title { margin-bottom: 20px; font-family: var(--ff-display); font-weight: 800; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.5; letter-spacing: .06em; }
.contact__side > p:not([class]) { color: var(--fg-mute); font-size: 14.5px; }
.contact__tel { margin-top: 32px; font-family: var(--ff-en); font-size: 40px; letter-spacing: .06em; line-height: 1.2; }
.contact__hours { font-size: 13px; color: var(--fg-mute); }
.field { display: grid; gap: 8px; margin-bottom: 24px; }
.field label { font-size: 14px; font-weight: 500; }
.req { display: inline-block; margin-left: 10px; padding: 0 8px; border-radius: 999px; background: var(--sugi); color: #fff; font-size: 11px; line-height: 1.8; vertical-align: 1px; }
.field input:not([type="checkbox"]), .field select, .field textarea { width: 100%; padding: 14px 4px; border: 0; border-bottom: 1px solid rgba(36, 38, 31, .35); border-radius: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); transition: border-color .3s; }
.field textarea { resize: vertical; border: 1px solid rgba(36, 38, 31, .35); padding: 12px 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sugi); box-shadow: 0 1px 0 var(--sugi); }
.field [aria-invalid="true"] { border-color: #a3301f !important; }
.field--check { grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
.field--check input { width: 20px; height: 20px; accent-color: var(--ink); }
.form__error { margin-bottom: 24px; padding: 14px 18px; border-left: 2px solid #a3301f; background: #f3e6e1; color: #7f2416; font-size: 14px; }
.pill-btn--dark { background: var(--ink); color: var(--washi); border-color: var(--ink); width: 100%; min-height: 60px; }
.pill-btn--dark:hover { background: var(--sugi); border-color: var(--sugi); color: #fff; }
.form__demo { margin-top: 20px; padding: 14px 18px; border-left: 2px solid var(--sugi); background: var(--washi-2); font-size: 14px; }

@media (max-width: 999px) {
  .manifest__inner { grid-template-columns: auto minmax(0, 1fr); }
  .manifest__ph { grid-column: 2; width: 60%; justify-self: end; }
  .flow__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .message__inner { grid-template-columns: auto minmax(0, 1fr); }
  .message__ph { grid-column: 1 / -1; margin-top: 24px; }
}
@media (max-width: 799px) {
  .value, .case, .svd__inner { grid-template-columns: minmax(0, 1fr); }
  .value__ph, .value__ph--wide, .value--rev .value__ph, .value__text, .value__ph--wide + .value__text, .value--rev .value__text,
  .case__ph, .case--rev .case__ph, .case__text, .case--rev .case__text { grid-column: 1; grid-row: auto; order: 0; }
  .value__text, .case__text { margin-top: 32px; }
  .value__ph { width: 82%; }
  .value--rev .value__ph { justify-self: end; }
  .svd__en, .svd__title, .svd__ph, .svd__sub, .svd__text,
  .svd--rev .svd__title, .svd--rev .svd__ph, .svd--rev .svd__sub, .svd--rev .svd__text { grid-column: 1; grid-row: auto; text-align: left; }
  .svd--rev .svd__en { text-align: left; }
  .svd__title { margin-top: -.4em; font-size: clamp(30px, 9vw, 44px); }
  .svd__ph { width: 78%; margin-top: 24px; }
  .svd--rev .svd__ph { justify-self: end; }
  .svd__sub { width: 56%; margin-top: -60px; justify-self: end; }
  .svd--rev .svd__sub { justify-self: start; }
  .faq__inner, .profile__inner, .access__inner, .hist__inner, .contact__inner { grid-template-columns: minmax(0, 1fr); }
  .access__map, .access__text { grid-column: 1; }
  .flow__list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .flow__list li { display: grid; grid-template-columns: 64px 1fr; column-gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--fg-line); }
  .flow__list li > * { grid-column: 2; }
  .flow__list .flow__no { grid-column: 1; grid-row: 1 / 3; font-size: 34px; }
  .flow__list h3 { margin-top: 0; }
  .filter__count { width: 100%; margin: 6px 0 0; }
}
@media (max-width: 599px) {
  .ph { min-height: 64svh; }
  .ph__title { font-size: clamp(32px, 9.4vw, 44px); }
  .ph__lead { font-size: 13px; }
  .manifest__title { font-size: clamp(32px, 9vw, 44px); }
  .manifest__body { font-size: 14.5px; line-height: 2.2; padding-top: 12px; }
  .table div { grid-template-columns: 1fr; gap: 2px; }
  .hist__list { padding-left: 28px; }
  .hist__list li { grid-template-columns: 1fr; gap: 4px; }
  .hist__list li::before { left: -32px; top: 26px; }
  .message__inner { grid-template-columns: minmax(0, 1fr); }
  .message__v { writing-mode: horizontal-tb; font-size: 22px; letter-spacing: .2em; }
  .contact__tel { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .ph__media img { translate: none !important; }
  .value__ph, .case__ph, .case--rev .case__ph { clip-path: none !important; }
  .value__ph img, .case__ph img { transform: none !important; }
  .svd__en { translate: none !important; }
  .flow__line i, .hist__line::after { transform: none !important; }
}
.no-js .value__ph, .no-js .case__ph, .no-js .case--rev .case__ph { clip-path: none; }
