/* 案c「煉瓦 × 炭」— FV 鹿熊組 / FV以下 株式会社獅子 / 下層 Momentia
   色と書体は palette.css、寸法は tokens.css の var() だけを使う */

/* ---------- 共通 ---------- */
body { background: var(--color-bg); }
.wrap { width: 100%; max-width: calc(var(--content-w) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sec { position: relative; padding-block: var(--sec-pad); overflow: hidden; isolation: isolate; }
.center { text-align: center; margin-top: var(--sp-6); }
.en, .tag, .step, .wc-no, .num b, .logo-en { font-family: var(--font-en); }
:target { scroll-margin-top: var(--header-h); }

/* タグ風の英字ラベル＋太い明朝 */
.tag { margin-bottom: var(--sp-2); line-height: 1; }
.tag span { display: inline-block; font-size: var(--fs-en); font-weight: 600; letter-spacing: .16em; padding: 7px 12px 6px;
  background: var(--color-accent); color: var(--color-sub); border-radius: var(--radius-s); }
.h2 { font-size: var(--fs-h2); font-weight: 800; line-height: var(--lh-head); color: var(--color-sub); }
.h2.on-dark { color: var(--color-surface); }
.sec-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: var(--sp-4) var(--sp-6); margin-bottom: var(--sp-6); }
.sec-head > * { min-width: 0; }
.sec-lead { max-width: 640px; }
.sec-head > .btn { grid-column: 3; justify-self: end; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: var(--btn-h); padding: 10px var(--btn-pad-x);
  border-radius: var(--btn-radius); font-size: var(--btn-fs); font-weight: var(--btn-fw); text-decoration: none; line-height: 1.4;
  white-space: nowrap; position: relative; overflow: hidden; isolation: isolate; transition: color .35s var(--ease-out); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-main { background: var(--color-main); color: var(--color-surface); }
.btn-main::before { background: var(--color-sub); }
.btn-sub { background: var(--color-sub); color: var(--color-surface); }
.btn-sub::before { background: var(--color-main); }
.btn-light { background: var(--color-surface); color: var(--color-sub); }
.btn-light::before { background: var(--color-accent); }
.arw { width: 22px; height: 1px; background: currentColor; position: relative; transition: transform .35s var(--ease-out); }
.arw::after { content: ""; position: absolute; right: 0; top: -4px; width: 9px; height: 9px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); transform-origin: 100% 0; }
.btn:hover .arw { transform: translateX(6px); }
.btns { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.pill { display: inline-block; font-family: var(--font-en); font-size: 13px; letter-spacing: .08em; padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--color-main); color: var(--color-surface); line-height: 1.4; }
.pill-line { background: transparent; color: var(--color-main); border: 1px solid var(--color-main); }

/* ---------- ヘッダー（鹿熊組の白い固定ヘッダー） ---------- */
.hd { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); background: var(--color-surface);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--color-sub) 10%, transparent); transition: transform .45s var(--ease-out), box-shadow .45s; }
.hd-in { height: 100%; display: flex; align-items: center; gap: var(--sp-4); padding-inline: var(--gutter); transition: transform .45s var(--ease-out); }
html.is-scrolled .hd { transform: translateY(-14px); box-shadow: 0 8px 24px color-mix(in srgb, var(--color-sub) 12%, transparent); }
html.is-scrolled .hd-in { transform: translateY(7px) scale(.96); }
.logo { display: flex; flex-direction: column; text-decoration: none; color: var(--color-sub); line-height: 1.1; margin-right: auto; flex-shrink: 0; }
.logo-ja { font-family: var(--font-heading); font-weight: 800; font-size: 26px; letter-spacing: .12em; }
.logo-en { font-size: 11px; letter-spacing: .3em; color: var(--color-main); margin-top: 6px; }
.gnav ul { display: flex; gap: clamp(16px, 1.6vw, 30px); }
.gnav a { font-size: var(--fs-nav); font-weight: 500; text-decoration: none; color: var(--color-sub); position: relative; padding-block: 6px; white-space: nowrap; }
.gnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--color-main); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
.gnav a:hover::after { transform: scaleX(1); transform-origin: left; }
.hd-tel { display: flex; flex-direction: column; text-decoration: none; color: var(--color-sub); font-family: var(--font-en); font-size: 22px; font-weight: 600; line-height: 1.1; letter-spacing: .04em; white-space: nowrap; }
.hd-tel small { font-size: 11px; letter-spacing: .2em; color: var(--color-main); }
.hd-cta { min-height: 52px; padding-inline: 26px; }
.menu-btn { display: none; width: 48px; height: 48px; position: relative; background: var(--color-sub); border-radius: var(--radius-s); flex-shrink: 0; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--color-surface); transition: transform .35s var(--ease-out), opacity .2s; }
.menu-btn span:nth-child(1) { top: 16px; } .menu-btn span:nth-child(2) { top: 23px; } .menu-btn span:nth-child(3) { top: 30px; }
html.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
html.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
html.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.drawer { position: fixed; inset: var(--header-h) 0 0; z-index: 49; background: var(--color-sub); color: var(--color-surface); padding: var(--sp-5) var(--gutter) var(--sp-8);
  overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-12px); transition: opacity .35s, transform .35s var(--ease-out), visibility 0s .35s; }
html.menu-open .drawer { visibility: visible; opacity: 1; transform: none; transition: opacity .35s, transform .35s var(--ease-out); }
.drawer li { border-bottom: 1px solid color-mix(in srgb, var(--color-surface) 18%, transparent); }
.drawer li a { display: block; padding: 16px 0; text-decoration: none; font-family: var(--font-heading); font-weight: 700; font-size: 20px; }
.drawer li .en { display: block; font-size: 12px; letter-spacing: .2em; color: var(--color-accent); }
.drawer-tel { display: block; margin: var(--sp-4) 0 var(--sp-2); font-family: var(--font-en); font-size: 24px; text-decoration: none; }
.drawer .btn { width: 100%; }

/* ---------- FV（鹿熊組の型：全幅写真＋斜めの煉瓦の面＋縦書き） ---------- */
.fv { position: relative; padding-top: var(--header-h); overflow: hidden; background: var(--color-bg); }
.fv-stage { position: relative; height: clamp(520px, calc(100svh - var(--header-h) - 170px), 820px); }
.fv-photo { position: absolute; inset: 0; overflow: hidden; }
.fv-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 35%; transform-origin: 30% 40%; }
.fv-panel { position: absolute; z-index: 2; top: clamp(40px, 7%, 72px); right: 0; bottom: -170px; width: 47%;
  background: var(--color-main); clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%); }
.fv-title { position: absolute; top: clamp(36px, 6vh, 64px); right: clamp(28px, 5vw, 96px); writing-mode: vertical-rl; display: flex; flex-direction: column; gap: .3em;
  font-family: var(--font-heading); font-weight: 800; font-size: var(--fs-hero); line-height: 1.12; letter-spacing: .08em; color: var(--color-surface); }
.fv-title .col { display: block; overflow: hidden; padding: .04em; }
.fv-title .ln { display: block; }
.fv-title .col:nth-child(2) { padding-top: 1.6em; }
.fv-work { position: absolute; left: 9%; bottom: calc(170px + 4%); width: clamp(180px, 15vw, 260px); margin: 0; }
.fv-work img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border: 6px solid var(--color-surface); box-shadow: 0 18px 40px color-mix(in srgb, var(--color-sub) 35%, transparent); }
.fv-work figcaption { color: var(--color-surface); font-size: var(--fs-small); margin-top: 10px; font-weight: 700; }
.fv-work figcaption .en { display: block; font-size: 12px; letter-spacing: .2em; color: var(--color-accent); font-weight: 500; }
.fv-en { position: absolute; right: clamp(20px, 2vw, 36px); bottom: 28px; font-family: var(--font-en); font-size: 12px; letter-spacing: .4em;
  color: color-mix(in srgb, var(--color-surface) 70%, transparent); writing-mode: vertical-rl; }
.fv-lead { position: relative; z-index: 1; min-height: 170px; display: flex; flex-direction: column; justify-content: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--gutter); max-width: 56%; }
.fv-lead-txt { font-family: var(--font-heading); font-weight: 700; font-size: clamp(20px, 1.7vw, 26px); color: var(--color-sub); line-height: 1.6; }

/* ---------- 斜めの色面（獅子の型） ---------- */
.plane { position: absolute; z-index: -1; left: -6%; right: -6%; top: 10%; bottom: 8%; --t: 120px;
  clip-path: polygon(0 var(--t), 100% 0, 100% calc(100% - var(--t)), 0 100%); }
.plane-main { background: var(--color-main); }
.plane-sub { background: var(--color-sub); }
.plane-rev { clip-path: polygon(0 0, 100% var(--t), 100% 100%, 0 calc(100% - var(--t))); }
.wedge { position: absolute; z-index: -1; right: -4%; bottom: 0; width: 60%; height: 200px; background: var(--color-main); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.wedge-l { right: auto; left: -4%; background: var(--color-sub); clip-path: polygon(0 0, 100% 100%, 0 100%); }

/* 写真の拭き取り（斜めの色面が開く） */
.wipe { position: relative; overflow: hidden; margin: 0; }
.wipe .px, .px { overflow: hidden; }
.wipe img { width: 100%; height: 100%; object-fit: cover; }
.wipe-c { position: absolute; inset: 0; pointer-events: none; clip-path: polygon(-30% 0, 100% 0, 100% 100%, 0 100%); }
.wipe-c1 { background: var(--color-main); z-index: 2; }
.wipe-c2 { background: var(--color-sub); z-index: 1; }
html[data-shot] .wipe-c, .wipe-c.is-off { display: none; }

/* ---------- 2 設計の考え方 ---------- */
.concept { padding-block: calc(var(--sec-pad) * 1.3); }
.concept .plane { top: 4%; bottom: 14%; right: 26%; }
.concept-in { display: grid; grid-template-columns: 5fr 7fr; gap: var(--sp-7); align-items: center; }
.concept-in > * { min-width: 0; }
.concept-txt { color: var(--color-surface); }
.concept-txt .h2 { margin-bottom: var(--sp-5); }
.concept-txt p + p { margin-top: var(--sp-3); }
.concept-txt p:not(.tag) { font-size: clamp(var(--fs-body), 1.3vw, 20px); line-height: 2.1; }
.concept-photo { aspect-ratio: 4 / 3; margin-right: calc(var(--gutter) * -1); box-shadow: -24px 24px 0 var(--color-sub); }
.concept-photo .px { height: 100%; }

/* ---------- 3 数字で見る ---------- */
.data { padding-block: calc(var(--sec-pad) * 1.2); }
.data .plane { top: 4%; bottom: 4%; clip-path: polygon(0 0, 100% var(--t), 100% 100%, 0 calc(100% - var(--t))); }
.outline-en { position: absolute; z-index: -1; left: 0; right: 0; top: 16%; white-space: nowrap; font-family: var(--font-en); font-weight: 700;
  font-size: var(--fs-en-big); line-height: 1; letter-spacing: .02em; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--color-surface) 22%, transparent); text-align: center; }
.data-in { display: grid; grid-template-columns: 5fr 7fr; gap: var(--sp-6); align-items: center; }
.data-in > * { min-width: 0; }
.bubble { background: var(--color-surface); padding: var(--sp-7) var(--sp-6); border-radius: 46% 54% 40% 60% / 52% 38% 62% 48%; }
.bubble .h2 { margin-bottom: var(--sp-2); font-size: clamp(28px, 2.7vw, 42px); }
.note { font-size: var(--fs-small); }
.nums { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.num-card { background: var(--color-bg); border-radius: var(--radius-m); padding: var(--sp-4) var(--sp-4) var(--sp-3); border-left: 8px solid var(--color-main); }
.num-card:nth-child(2n) { transform: translateY(var(--sp-5)); }
.num-l { font-weight: 700; font-size: var(--fs-card); color: var(--color-sub); }
.num { display: flex; align-items: baseline; gap: 6px; color: var(--color-main); line-height: 1; margin-top: var(--sp-2); }
.num b { font-size: var(--fs-num); font-weight: 700; font-variant-numeric: tabular-nums; }
.num span { font-family: var(--font-heading); font-weight: 800; font-size: 28px; color: var(--color-sub); }

/* ---------- 4 作品・8 所員（等間隔カード） ---------- */
.works { padding-bottom: calc(var(--sec-pad) + 60px); }
.cards4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
.work-card { display: block; text-decoration: none; color: inherit; }
.wc-ph, .st-ph { position: relative; margin: 0 0 var(--sp-3); border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 3 / 4; background: var(--color-sub);
  border: 1px solid var(--color-sub); }
.wc-ph img, .st-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.work-card:hover .wc-ph img, .staff-card:hover .st-ph img { transform: scale(1.07); }
.wc-no { position: absolute; top: 14px; right: 14px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--color-surface); color: var(--color-sub); font-size: 17px; font-weight: 600; border: 1px solid var(--color-sub); }
.wc-ph .pill, .st-ph .pill { position: absolute; left: 14px; bottom: 14px; }
.wc-t { font-size: var(--fs-h-card); font-weight: 800; color: var(--color-sub); transition: color .3s; }
.work-card:hover .wc-t { color: var(--color-main); }
.wc-d { font-size: var(--fs-card); margin-top: 6px; }
.work-cards li:nth-child(2n) { margin-top: var(--sp-6); }

/* ---------- 5 設計できるもの（鹿熊組の事業紹介） ---------- */
.service { padding-bottom: 0; }
.svc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.svc-card { display: flex; flex-direction: column; background: var(--color-sub); color: var(--color-surface); border-right: 1px solid color-mix(in srgb, var(--color-surface) 16%, transparent); }
.svc-ph { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.svc-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.svc-card:hover .svc-ph img { transform: scale(1.07); }
.svc-b { padding: var(--sp-5) clamp(20px, 2.4vw, 40px) var(--sp-6); flex: 1; }
.svc-b h3 { font-size: clamp(22px, 1.9vw, 28px); font-weight: 800; margin-bottom: var(--sp-3); }
.svc-b sup { font-family: var(--font-en); font-size: 14px; color: var(--color-accent); margin-right: 8px; vertical-align: top; position: relative; top: .2em; }
.svc-b p { font-size: var(--fs-card); }

/* ---------- 6 設計の流れ（鹿熊組の施工実績グリッド） ---------- */
.flow-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-3); counter-reset: f; }
.flow-card figure { margin: 0 0 var(--sp-2); aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-s); }
.flow-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.flow-card:hover img { transform: scale(1.07); }
.step { font-size: 14px; letter-spacing: .14em; color: var(--color-main); font-weight: 600; }
.flow-card h3 { font-size: clamp(18px, 1.35vw, 21px); font-weight: 800; color: var(--color-sub); margin-top: 4px; }
.flow-card { position: relative; padding-top: var(--sp-2); border-top: 3px solid var(--color-sub); }

/* ---------- 7 設計料の目安 ---------- */
.fee .plane { top: 8%; bottom: 8%; }
.fee-in { display: grid; grid-template-columns: 6fr 5fr; gap: var(--sp-7); align-items: center; }
.fee-in > * { min-width: 0; }
.fee-txt { color: var(--color-surface); }
.fee-txt .h2 { margin-bottom: var(--sp-4); }
.fee-box { background: var(--color-surface); border-radius: var(--radius-m); padding: var(--sp-5); box-shadow: 18px 18px 0 var(--color-sub); }
.tbl th, .tbl td { padding: 18px 16px; border-bottom: 1px solid color-mix(in srgb, var(--color-sub) 18%, transparent); text-align: left; vertical-align: middle; }
.tbl th { font-weight: 700; color: var(--color-sub); width: 46%; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
.tbl td b { font-family: var(--font-en); font-size: 40px; color: var(--color-main); margin-right: 4px; line-height: 1; }

/* ---------- 8 事務所について ---------- */
.about { padding-bottom: calc(var(--sec-pad) + 40px); }
.about-top { display: grid; grid-template-columns: 4fr 7fr; gap: var(--sp-7); align-items: center; margin-bottom: var(--sp-7); }
.about-top > * { min-width: 0; }
.about-txt .h2 { margin-bottom: var(--sp-4); }
.about-txt p:not(.tag) { margin-bottom: var(--sp-5); }
.about-photo { aspect-ratio: 16 / 9; margin-right: calc(var(--gutter) * -1); }
.about-photo .px { height: 100%; }
.staff-card:nth-child(2n) { margin-top: var(--sp-6); }
.st-ph img { object-position: var(--x) 50%; scale: 2; transform-origin: var(--x) 20%; }
.st-n { font-family: var(--font-heading); font-weight: 800; font-size: var(--fs-h-card); color: var(--color-sub); }

/* ---------- 9 お知らせ ---------- */
.news-in { display: grid; grid-template-columns: 4fr 8fr; gap: var(--sp-6); }
.news-in > * { min-width: 0; }
.news-head .h2 { margin-bottom: var(--sp-5); }
.news-list { border-top: 1px solid color-mix(in srgb, var(--color-sub) 20%, transparent); }
.news-list li { border-bottom: 1px solid color-mix(in srgb, var(--color-sub) 20%, transparent); }
.news-list a { display: grid; grid-template-columns: 140px 1fr 44px; gap: var(--sp-4); align-items: center; padding: var(--sp-3) var(--sp-2); text-decoration: none; transition: background-color .3s; }
.news-list a:hover { background: var(--color-surface); }
.news-list figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-s); }
.news-list figure img { width: 100%; height: 100%; object-fit: cover; }
.meta { display: flex; align-items: center; gap: var(--sp-2); font-family: var(--font-en); font-size: var(--fs-small); color: var(--color-main); }
.nt { font-weight: 700; margin-top: 4px; }
.arw-c { width: 44px; height: 44px; border-radius: 50%; background: var(--color-sub); position: relative; transition: background-color .3s, transform .35s var(--ease-out); }
.arw-c::after { content: ""; position: absolute; left: 15px; top: 17px; width: 9px; height: 9px; border-top: 2px solid var(--color-surface); border-right: 2px solid var(--color-surface); transform: rotate(45deg); }
.news-list a:hover .arw-c { background: var(--color-main); transform: translateX(4px); }

/* ---------- 10 締め（鹿熊組の採用情報の構図） ---------- */
.contact { padding-block: 0 var(--sec-pad); }
.contact-box { position: relative; margin-inline: clamp(0px, 1vw, 16px); overflow: hidden; isolation: isolate; }
.contact-bg { position: absolute; inset: 0; z-index: -2; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; }
.contact-box::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, var(--color-main) 0 50%, color-mix(in srgb, var(--color-main) 35%, transparent) 50.1% 100%); }
.contact-in { display: grid; grid-template-columns: 6fr 5fr; gap: var(--sp-6); align-items: center; padding-block: var(--sp-8); }
.contact-in > * { min-width: 0; }
.contact-txt { color: var(--color-surface); }
.contact-txt .h2 { margin-bottom: var(--sp-4); }
.tel-box { display: grid; grid-template-columns: auto 1fr; gap: 6px var(--sp-3); margin: var(--sp-4) 0 var(--sp-5); align-items: baseline; }
.tel-box dt { font-weight: 700; font-size: var(--fs-small); }
.tel-box dd a { font-family: var(--font-en); font-size: clamp(32px, 3.2vw, 48px); text-decoration: none; letter-spacing: .04em; line-height: 1.1; }
.contact-face { justify-self: end; margin: 0; width: min(100%, 360px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 8px solid var(--color-surface); }
.contact-face img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }

/* ---------- フッター ---------- */
.ft { position: relative; background: var(--color-sub); color: var(--color-surface); padding: var(--sp-7) 0 var(--sp-4); overflow: hidden; isolation: isolate; }
.ft-in { display: grid; grid-template-columns: 4fr 4fr 4fr; gap: var(--sp-6); }
.ft-in > * { min-width: 0; }
.logo-ft { color: var(--color-surface); margin-bottom: var(--sp-3); }
.ft-co p { font-size: var(--fs-card); }
.ft-co a, .ft-nav a { text-decoration: none; }
.ft-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2) var(--sp-3); align-content: start; }
.ft-nav a { font-size: var(--fs-card); }
.ft-nav a:hover { color: var(--color-accent); }
.ft-map { aspect-ratio: 16 / 10; background: color-mix(in srgb, var(--color-surface) 12%, var(--color-sub)); display: grid; place-items: center; border-radius: var(--radius-s); }
.ft-map span { color: color-mix(in srgb, var(--color-surface) 70%, transparent); letter-spacing: .3em; }
.ft-big { display: flex; flex-wrap: wrap; gap: 0 .4em; padding: var(--sp-6) var(--gutter) var(--sp-2); font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(36px, 7vw, 120px); line-height: 1.15; color: color-mix(in srgb, var(--color-surface) 10%, transparent); }
.copy { padding-inline: var(--gutter); font-family: var(--font-en); font-size: 13px; letter-spacing: .14em; color: color-mix(in srgb, var(--color-surface) 60%, transparent); }
.sp-bar { display: none; }

/* ---------- 下層（Momentia の型） ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + var(--sp-7)) 0 var(--sp-7); overflow: hidden; isolation: isolate; }
.page-hero .plane { top: auto; bottom: 0; height: 52%; left: 54%; right: -6%; --t: 90px; }
.page-title { font-family: var(--font-en); font-size: var(--fs-en-big); font-weight: 700; line-height: .95; color: var(--color-sub); letter-spacing: .01em; }
.page-title small { display: block; font-family: var(--font-heading); font-size: clamp(20px, 2vw, 28px); font-weight: 800; color: var(--color-main); letter-spacing: .1em; margin-top: var(--sp-2); }
.crumb { display: flex; gap: 10px; font-size: var(--fs-small); margin-bottom: var(--sp-4); }
.crumb a { color: var(--color-main); }
.intro { display: grid; grid-template-columns: 6fr 6fr; gap: var(--sp-7); align-items: start; margin-top: var(--sp-7); }
.intro > * { min-width: 0; }
.intro .h2 { margin-bottom: var(--sp-4); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.stats div { background: var(--color-surface); padding: var(--sp-3); border-radius: var(--radius-m); border-left: 6px solid var(--color-main); }
.stats dt { font-size: var(--fs-card); font-weight: 700; color: var(--color-sub); }
.stats dd { color: var(--color-main); font-family: var(--font-en); font-size: clamp(40px, 3.6vw, 60px); font-weight: 700; line-height: 1.1; }
.stats dd span { font-family: var(--font-heading); font-size: 22px; color: var(--color-sub); margin-left: 4px; }
.stats-note { grid-column: 1 / -1; font-size: var(--fs-small); text-align: right; }

/* ジグザグ（番号＋写真2点＋見出し＋説明） */
.zz-list { padding-block: var(--sp-6) var(--sec-pad); }
.zz { position: relative; display: grid; grid-template-columns: 4fr 5fr 3fr; gap: var(--sp-3); align-items: start; padding-block: var(--sp-7); }
.zz > * { min-width: 0; }
.zz-txt { grid-column: 1; grid-row: 1; padding-right: var(--sp-4); padding-bottom: var(--sp-2); }
.zz-ph1 { grid-column: 2; grid-row: 1; }
.zz-ph2 { grid-column: 3; grid-row: 1; margin-top: var(--sp-8) !important; }
.zz-ph1 { position: sticky; top: calc(var(--header-h) + var(--sp-3)); }
.zz:nth-child(even) { grid-template-columns: 3fr 5fr 4fr; }
.zz:nth-child(even) .zz-txt { grid-column: 3; padding-right: 0; padding-left: var(--sp-4); }
.zz:nth-child(even) .zz-ph1 { grid-column: 2; }
.zz:nth-child(even) .zz-ph2 { grid-column: 1; }
.zz figure { margin: 0; overflow: hidden; border-radius: var(--radius-s); }
.zz-ph1 { aspect-ratio: 4 / 5; }
.zz-ph2 { aspect-ratio: 3 / 4; margin-bottom: 0; }
.zz figure img { width: 100%; height: 100%; object-fit: cover; }
.zz-ph2 img { scale: 2.1; transform-origin: var(--o, 70% 60%); }
.zz-steps .zz { align-items: center; }
.zz-steps .zz-txt { padding-bottom: var(--sp-7); }
.zz-steps .zz-ph2 { margin-top: 0 !important; align-self: end; }
h3.zz-h { font-size: clamp(26px, 2.2vw, 34px); }
.zz-no { position: absolute; bottom: var(--sp-7); left: 0; font-family: var(--font-en); font-size: clamp(40px, 4vw, 64px); font-weight: 700; color: var(--color-main); line-height: 1; }
.zz:nth-child(even) .zz-no { left: auto; right: 0; }
.zz-txt { padding-bottom: var(--sp-7); }
.zz-sub { font-family: var(--font-heading); font-weight: 700; color: var(--color-main); margin-bottom: var(--sp-1); font-size: var(--fs-card); }
.zz-h { font-size: clamp(28px, 2.6vw, 40px); font-weight: 800; color: var(--color-sub); margin-bottom: var(--sp-3); }
.zz-txt > p { font-size: var(--fs-card); }
.spec { margin-top: var(--sp-3); font-size: var(--fs-card); display: grid; grid-template-columns: auto 1fr; border-top: 1px solid color-mix(in srgb, var(--color-sub) 20%, transparent); }
.spec dt, .spec dd { padding: 7px 0; border-bottom: 1px solid color-mix(in srgb, var(--color-sub) 20%, transparent); }
.spec dt { font-weight: 700; color: var(--color-sub); padding-right: var(--sp-3); white-space: nowrap; }
.idea { margin-top: var(--sp-3); }
.idea h3 { font-size: 20px; font-weight: 800; color: var(--color-sub); display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.idea h3::before { content: ""; width: 18px; height: 3px; background: var(--color-main); }
.idea p { font-size: var(--fs-card); }
.voice { margin-top: var(--sp-3); padding: var(--sp-3); background: var(--color-sub); color: var(--color-surface); border-radius: var(--radius-s);
  font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-card); line-height: 1.9; position: relative; }
.voice::before { content: "“"; position: absolute; top: -18px; left: 14px; font-family: var(--font-en); font-size: 54px; color: var(--color-accent); line-height: 1; }
.zz-link { display: inline-flex; align-items: center; gap: 10px; margin-top: var(--sp-3); font-family: var(--font-en); letter-spacing: .1em; text-decoration: none; color: var(--color-sub); }

/* 流れのジグザグ：期間 */
.term { display: inline-block; font-size: var(--fs-small); font-weight: 700; color: var(--color-surface); background: var(--color-main); padding: 2px 12px; border-radius: var(--radius-pill); margin-bottom: var(--sp-2); }

/* 下層の表組み */
.sec-block { padding-block: var(--sec-pad); position: relative; overflow: hidden; isolation: isolate; }
.sec-block.dark { color: var(--color-surface); }
.sec-block.dark .h2 { color: var(--color-surface); }
.sec-block .plane { top: 0; bottom: 0; }
.block-in { display: grid; grid-template-columns: 4fr 8fr; gap: var(--sp-7); align-items: start; }
.block-in > * { min-width: 0; }
.block-in .h2 { margin-bottom: var(--sp-3); }
.tbl-card { background: var(--color-surface); color: var(--color-text); border-radius: var(--radius-m); padding: var(--sp-4); }
.tbl-wide th, .tbl-wide td { padding: 16px; border-bottom: 1px solid color-mix(in srgb, var(--color-sub) 18%, transparent); text-align: left; font-size: var(--fs-card); vertical-align: top; }
.tbl-wide thead th { background: var(--color-sub); color: var(--color-surface); font-weight: 700; white-space: nowrap; }
.tbl-wide thead th.hl { background: var(--color-main); }
.tbl-wide tbody th { color: var(--color-sub); font-weight: 700; white-space: nowrap; }
.tbl-wide td.hl { background: color-mix(in srgb, var(--color-main) 7%, var(--color-surface)); font-weight: 700; }
.tbl-wide td.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl-note { margin-top: var(--sp-2); font-size: var(--fs-small); }
.after { margin-top: var(--sp-4); }
.example { margin-top: var(--sp-4); padding: var(--sp-4); border: 2px solid var(--color-main); border-radius: var(--radius-m); background: var(--color-surface); color: var(--color-text); }
.example h3 { font-size: 22px; color: var(--color-main); margin-bottom: var(--sp-1); }
.example p b { font-family: var(--font-en); font-size: 28px; color: var(--color-main); }
.cta-band { position: relative; overflow: hidden; isolation: isolate; padding-block: var(--sec-pad); color: var(--color-surface); }
.cta-band .plane { top: 6%; bottom: 6%; }
.cta-band-in { display: grid; grid-template-columns: 7fr 5fr; gap: var(--sp-6); align-items: center; }
.cta-band-in > * { min-width: 0; }
.cta-band .h2 { color: var(--color-surface); margin-bottom: var(--sp-3); }
.cta-band .btns { justify-content: flex-end; }
.cta-light { color: var(--color-text); }
.cta-light .h2 { color: var(--color-sub); }
.steps { padding-top: var(--sp-6); }

/* 作品カード → 作品紹介への切り替え */
.flip-ov { position: fixed; inset: 0; z-index: 200; overflow: hidden; background: var(--color-sub); pointer-events: none; }
.flip-ov img { width: 100%; height: 100%; object-fit: cover; }
html[data-shot] .zz-ph1 { position: relative; top: 0; }

/* 登場前（JS が付ける。撮影・動きを減らす設定では付かない） */
.pre { opacity: 0; transform: translateY(40px); }

/* ---------- タブレット ---------- */
@media (max-width: 1280px) {
  .gnav ul { gap: 14px; }
  .gnav a { font-size: 15px; }
  .hd-tel { font-size: 18px; }
}
@media (max-width: 1100px) {
  .gnav, .hd-tel { display: none; }
  .menu-btn { display: block; }
  .cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fv-panel { width: 54%; }
  .fv-lead { max-width: 48%; }
}

/* ---------- スマホ ---------- */
@media (max-width: 767px) {
  .hd-cta { display: none; }
  .logo-ja { font-size: 20px; }
  .logo-en { font-size: 9px; letter-spacing: .2em; margin-top: 4px; }
  .btn { white-space: normal; text-align: center; }
  .sec-head { grid-template-columns: 1fr; align-items: start; gap: var(--sp-2); margin-bottom: var(--sp-5); }
  .sec-head .btn, .sec-head > .btn { justify-self: start; grid-column: 1; }

  .fv-stage { height: 64svh; min-height: 440px; }
  .fv-photo img { object-position: 22% 40%; }
  .fv-panel { width: 56%; top: 22px; bottom: 0; clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
  .fv-title { font-size: clamp(34px, 10vw, 46px); right: 18px; top: 26px; }
  .fv-work { display: none; }
  .fv-en { bottom: 18px; right: 10px; font-size: 10px; }
  .fv-lead { max-width: none; min-height: 0; padding: var(--sp-3) var(--gutter) var(--sp-4); gap: var(--sp-2); }
  .fv-lead-txt { font-size: 17px; }
  .fv-lead .btns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-1); }
  .fv-lead .btn { padding-inline: 12px; font-size: 15px; }
  .fv-lead .arw { display: none; }

  .concept-in, .data-in, .fee-in, .about-top, .news-in, .contact-in, .intro, .block-in, .cta-band-in { grid-template-columns: 1fr; gap: var(--sp-5); }
  .concept .plane { right: -6%; top: 2%; bottom: 36%; }
  .plane { --t: 48px; }
  .wedge { height: 90px; }
  .concept-photo { margin-right: 0; box-shadow: -12px 12px 0 var(--color-sub); }
  .bubble { padding: var(--sp-5) var(--sp-4); border-radius: var(--radius-l) 80px var(--radius-l) 80px; }
  .nums { gap: var(--sp-2); }
  .num-card { padding: var(--sp-3) var(--sp-2) var(--sp-2) var(--sp-2); border-left-width: 5px; }
  .num-card:nth-child(2n) { transform: translateY(var(--sp-3)); }
  .num b { font-size: 48px; }
  .num span { font-size: 20px; }
  .cards4 { gap: var(--sp-3) var(--sp-2); }
  .work-cards li:nth-child(2n), .staff-card:nth-child(2n) { margin-top: var(--sp-4); }
  .wc-no { width: 40px; height: 40px; font-size: 14px; top: 8px; right: 8px; }
  .wc-ph .pill, .st-ph .pill { left: 8px; bottom: 8px; font-size: 11px; padding: 3px 8px; }
  .wc-t { font-size: 17px; }
  .wc-d { font-size: 14px; }
  .svc { grid-template-columns: 1fr; }
  .svc-b { padding: var(--sp-4) var(--gutter) var(--sp-5); }
  .flow-grid { grid-template-columns: 1fr 1fr; }
  .flow-card:last-child { grid-column: 1 / -1; }
  .fee-box { padding: var(--sp-3); box-shadow: 10px 10px 0 var(--color-sub); }
  .about-photo { margin-right: 0; }
  .news-list a { grid-template-columns: 96px 1fr; gap: var(--sp-2); padding-inline: 0; }
  .arw-c { display: none; }
  .contact-box { margin: 0; }
  .contact-box::before { background: linear-gradient(180deg, var(--color-main) 0 64%, color-mix(in srgb, var(--color-main) 35%, transparent) 64.1% 100%); }
  .contact-in { padding-block: var(--sp-7); }
  .contact-face { justify-self: center; width: 220px; }
  .ft { padding-bottom: calc(var(--sp-4) + 64px); }
  .ft-in { grid-template-columns: 1fr; }
  .sp-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: 60px;
    box-shadow: 0 -4px 16px color-mix(in srgb, var(--color-sub) 20%, transparent); }
  .sp-bar a { display: grid; place-items: center; text-decoration: none; font-weight: 700; color: var(--color-surface); }
  .sp-tel { background: var(--color-sub); }
  .sp-cta { background: var(--color-main); }

  .zz, .zz:nth-child(even) { grid-template-columns: 7fr 5fr; gap: var(--sp-2); padding-block: var(--sp-6); }
  .zz-txt, .zz:nth-child(even) .zz-txt, .zz-steps .zz-txt { grid-column: 1 / -1; grid-row: 2; padding: var(--sp-3) 0 0; }
  .zz-ph1 { position: relative; top: 0; }
  .zz-ph2, .zz-steps .zz-ph2 { margin-top: var(--sp-6) !important; }
  .zz-ph1, .zz:nth-child(even) .zz-ph1 { grid-column: 1; grid-row: 1; }
  .zz-ph2, .zz:nth-child(even) .zz-ph2 { grid-column: 2; grid-row: 1; }
  .zz:nth-child(even) .zz-ph1 { grid-column: 2; }
  .zz:nth-child(even) .zz-ph2 { grid-column: 1; }
  .zz:nth-child(even) { grid-template-columns: 5fr 7fr; }
  .zz-no, .zz:nth-child(even) .zz-no { position: static; grid-column: 1 / -1; grid-row: 3; display: none; }
  .tbl-card { padding: var(--sp-2); }
  .cta-band .btns { justify-content: flex-start; }
  .page-hero { padding-top: calc(var(--header-h) + var(--sp-5)); }
}
