/* 2026-11 リニューアル：kaishukoji-mock/css/top.css から移植（WordPressテーマ用） */
/* ==========================================================
   改修工事.JP TOPページ専用スタイル（共通部品は common.css）
   コンセプト：「現場の痕跡を、デザインする。」
   - 12カラム＋左右の余白トラック（.grid）を基準に、セクションごとに比率を変える
   - 写真はカードに入れず、レイアウトそのものにする（角丸0・影なし）
   - 崩し：FVのコピー重ね／SPECIALの画面端／WHYの58を画面端／雨漏りLP写真の上はみ出し／COMPANYの矩形重ね
   ========================================================== */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
img { display: block; max-width: 100%; height: auto; }
main picture { display: contents; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, dl, dd, blockquote { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
address { font-style: normal; }
.container { width: 100%; max-width: calc(var(--container-width) + var(--container-pad) * 2); margin-inline: auto; padding-inline: var(--container-pad); }

:root {
  --ow: #f7f7f4;                   /* 少し温度のあるオフホワイト */
  --desk: #ecebe6;                 /* アンケートを置く机 */
  --rule: #d5dce5;                 /* 1pxの罫線 */
  --color-muted: #556070;          /* 補助文字（白・オフホワイト・机の上でもAA相当） */
  --on-dark: rgba(255, 255, 255, .86); /* 濃紺上の本文 */
  --gap: clamp(12px, 1.7vw, 24px);
  --g: max(var(--container-pad), calc((100vw - var(--container-width)) / 2));
  --side: max(0px, calc(var(--g) - var(--gap)));
}
body { background: #fff; }
main .ui-btn { border-radius: 4px; }
/* 日本語見出しは意味の区切りで折り返す（対応ブラウザのみ） */
main h1, main h2, main h3, main blockquote { word-break: auto-phrase; }
/* 行頭禁則（「ー」「。」などを行頭に置かない）／見出しは行の長さを揃え、本文は最終行の1〜2文字落ちを防ぐ（非対応ブラウザは通常の折り返し） */
main { line-break: strict; }
main h2, main h3 { text-wrap: balance; }
main p, main blockquote, main dd { text-wrap: pretty; }

/* 14トラック：[full-start] 余白 [content-start] 12カラム [content-end] 余白 [full-end]
   コンテンツの n 列目は「線 n+1」から始まる */
.grid { display: grid; grid-template-columns: [full-start] var(--side) [content-start] repeat(12, minmax(0, 1fr)) [content-end] var(--side) [full-end]; column-gap: var(--gap); }
@media (max-width: 900px) {
  .grid { grid-template-columns: [full-start] var(--side) [content-start] repeat(6, minmax(0, 1fr)) [content-end] var(--side) [full-end]; }
  main .grid > * { grid-column: content; }
}

/* 小さなインデックス（WORKS / 06 のような表記） */
.idx { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-num); font-size: 12px; font-weight: 600; letter-spacing: .24em; line-height: 1.6; color: var(--color-secondary); }
.idx span { letter-spacing: .12em; opacity: .75; }
/* 縦組みラベル */
.vlabel { writing-mode: vertical-rl; font-family: var(--font-num); font-size: 13px; font-weight: 600; letter-spacing: .32em; line-height: 1.7; color: var(--color-secondary); }

/* 写真：角丸なし。hoverはごく僅かに拡大 */
.sp-item__media, .wk-card__media, .wk-feature__media, .story__media, .pp__shot figure, .svc__media, .leak__media, .company__hero, .feat__media, .assure-item__photos figure { position: relative; overflow: hidden; background: var(--color-light); }
.sp-item__media img, .wk-card__media img, .wk-feature__media img, .story__media img, .pp__shot img, .svc__media img, .leak__media img, .company__hero img, .feat__media img, .assure-item__photos img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.sp-item button:hover img, .wk-card :is(button, a):hover img, .wk-feature :is(button, a):hover img, .feat__media:hover img { transform: scale(1.02); }

/* 画像マスクのreveal（site.js の .js-fade 監視を利用） */
.js .js-reveal { opacity: 1; translate: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); }
.js .js-reveal.is-visible { clip-path: inset(0); }
.js .js-reveal img { scale: 1.06; transition: scale 1.2s var(--ease), transform 1s var(--ease); }
.js .js-reveal.is-visible img { scale: 1; }
@media (prefers-reduced-motion: reduce) { .js .js-reveal { clip-path: none; } .js .js-reveal img { scale: 1; } }

/* ==========================================================
   02 FIRST VIEW：写真 約72%＋巨大コピーを写真に重ねる
   ========================================================== */
.hero { position: relative; margin-top: var(--header-h); grid-template-rows: auto 1fr auto; min-height: clamp(640px, calc(100svh - var(--header-h)), 900px); background: var(--ow); }
.hero__media { grid-column: 5 / full-end; grid-row: 1 / 4; position: relative; overflow: hidden; background: var(--color-light); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 35%; animation: hero-in 1.4s var(--ease) both; }
@keyframes hero-in { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
.hero__meta { grid-column: content-start / 5; grid-row: 1; padding-top: 22px; font-size: 13px; line-height: 1.8; letter-spacing: .1em; color: var(--color-muted); }
.hero__fields { padding-bottom: 10px; border-bottom: 1px solid var(--rule); color: var(--color-ink); font-weight: 500; }
/* TOPのヘッダー上部バーはリンクが少ないので注記を1200pxまで表示 */
@media (min-width: 1200px) { .site-header__util .area-note { display: inline; } }
/* 対応エリア：英字1行（狭い幅は「/」の後でのみ改行）→ 和文 → 注記（2026-10-24 4都県化） */
.hero__area { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; padding-top: 8px; line-height: 1.6; }
.hero__area span { flex-basis: 100%; font-family: var(--font-num); font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--color-secondary); }
.hero__area em { font-style: normal; word-break: keep-all; }
.hero__area small { font-size: 11px; letter-spacing: .06em; white-space: nowrap; }
.hero__title { grid-column: content-start / 12; grid-row: 2; align-self: center; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; padding-block: 20px; font-size: clamp(44px, 5.8vw, 84px); font-weight: 700; line-height: 1.12; letter-spacing: .02em; color: var(--color-primary); animation: hero-copy 1.1s .3s var(--ease) both; }
@keyframes hero-copy { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
/* 写真に重なる部分は、文字の背面にだけオフホワイトの帯を敷いて可読性を確保 */
.hero__line { padding: .04em .22em .06em 0; background: var(--ow); }
.hero__line:not(.hero__line--main) { font-size: .5em; font-weight: 600; line-height: 1.5; padding-block: .1em; }
.hero__line:first-child { margin-bottom: .32em; }
.hero__body { grid-column: 8 / full-end; grid-row: 3; align-self: end; z-index: 2; padding: 32px var(--g) 0 40px; background: var(--ow); }
.hero__lead { max-width: 30em; font-size: 16px; line-height: 1.9; color: var(--color-text); }
.hero__tagline { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 700; letter-spacing: .06em; color: var(--color-primary); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 24px; padding-bottom: 12px; }
.hero__caption { grid-column: 4 / 5; grid-row: 3; justify-self: end; align-self: end; display: flex; gap: 12px; margin-bottom: 8px; writing-mode: vertical-rl; font-size: 12px; letter-spacing: .2em; color: var(--color-muted); }
.hero__caption span { font-family: var(--font-num); font-weight: 600; color: var(--color-secondary); }
.hero__caption::after { content: ""; width: 1px; height: 56px; background: var(--color-secondary); }
@media (max-width: 1100px) {
  .hero__body { grid-column: 7 / full-end; }
}
@media (max-width: 900px) {
  .hero { grid-template-rows: none; min-height: 0; }
  .hero__meta { grid-row: 1; padding: 16px 0 12px; }
  main .hero__media { grid-column: full; grid-row: 2; aspect-ratio: 4 / 4.3; }
  .hero__media img { object-position: 55% 30%; }
  .hero__title { grid-row: 3; align-self: start; margin-top: -2.1em; padding-block: 0; font-size: clamp(40px, 11.4vw, 60px); }
  .hero__line { padding-left: 10px; margin-left: -10px; }
  .hero__body { grid-column: content; grid-row: 4; padding: 28px 0 56px; background: none; }
  .hero__actions .ui-btn { width: 100%; }
  .hero__caption { display: none; }
}

/* ==========================================================
   03 TRUST：横一本のインフォメーションバー
   ========================================================== */
.trust { background: #fff; border-bottom: 1px solid var(--rule); }
.trust__list { display: grid; grid-template-columns: 3fr 4fr 4fr; max-width: calc(var(--container-width) + var(--container-pad) * 2); margin-inline: auto; padding-inline: var(--container-pad); }
.trust__item { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-width: 0; padding: 44px clamp(24px, 3vw, 40px) 40px; border-left: 1px solid var(--rule); }
.trust__item:first-child { padding-left: 0; border-left: 0; }
.trust__fig { display: flex; align-items: flex-end; gap: 12px; min-height: 76px; font-family: var(--font-num); color: var(--color-primary); }
.trust__num { font-size: 92px; font-weight: 300; line-height: .8; letter-spacing: -.02em; }
.trust__en { font-size: 12px; font-weight: 600; letter-spacing: .28em; line-height: 1.2; }
.trust__en--lg { font-size: clamp(18px, 1.7vw, 24px); font-weight: 500; letter-spacing: .04em; line-height: 1.2; }
/* 1969年創業（SINCE 1969）：4桁になったため幅に合わせて縮小（2026-10-24） */
.trust__item:first-child .trust__num { font-size: clamp(64px, 6.4vw, 92px); }
.trust__text { font-size: 14px; line-height: 1.8; color: var(--color-muted); word-break: auto-phrase; }
.trust__text strong { display: block; font-size: 16px; color: var(--color-ink); }
@media (max-width: 900px) {
  .trust__list { grid-template-columns: 1fr; }
  .trust__item { display: grid; grid-template-columns: 42% 1fr; align-items: end; gap: 16px; padding: 24px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .trust__item:first-child { border-top: 0; }
  .trust__fig { min-height: 0; }
  .trust__num { font-size: 64px; }
  .trust__en--lg { font-size: 15px; }
}
@media (max-width: 600px) {
  .trust__item:first-child .trust__fig { flex-direction: column; align-items: flex-start; gap: 8px; }
  .trust__item:first-child .trust__num { font-size: 52px; }
}
@media (max-width: 430px) {
  .trust__item { grid-template-columns: 40% 1fr; }
  .trust__en--lg { font-size: 13px; letter-spacing: .02em; }
}

/* ==========================================================
   04 INTRODUCTION：静かなセクション（写真なし）
   ========================================================== */
.intro { padding-block: clamp(96px, 11vw, 170px); background: var(--ow); }
.intro__grid { align-items: start; }
.intro__label { grid-column: 7 / 11; grid-row: 1; display: flex; flex-direction: row; gap: 14px; padding-top: 8px; font-family: var(--font-num); font-size: 12px; font-weight: 600; letter-spacing: .26em; color: var(--color-secondary); }
.intro__label span { font-size: 13px; letter-spacing: .1em; color: var(--color-muted); }
.intro__title { grid-column: 7 / content-end; grid-row: 2; margin-top: 28px; font-size: clamp(30px, 3.3vw, 48px); font-weight: 700; line-height: 1.55; letter-spacing: .05em; color: var(--color-ink); }
.intro__rule { grid-column: 7 / full-end; grid-row: 3; height: 1px; margin-block: clamp(40px, 4vw, 56px); background: var(--rule); }
.intro__text { grid-column: 8 / content-end; grid-row: 4; max-width: 34em; font-size: 17px; line-height: 2; color: var(--color-text); }
.intro__text p + p { margin-top: 1em; }
/* 管理物件で起こりやすい不具合（罫線のリスト。カードにしない） */
.intro__issues { grid-column: 8 / content-end; grid-row: 5; max-width: 40em; margin-top: clamp(40px, 4vw, 56px); }
.intro__issues-label { margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--color-secondary); }
.issue-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 36px); border-top: 1px solid var(--rule); counter-reset: issue; }
.issue-list li { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 16px; font-weight: 600; line-height: 1.6; color: var(--color-ink); counter-increment: issue; word-break: auto-phrase; }
.issue-list li::before { content: counter(issue, decimal-leading-zero); flex: none; font-family: var(--font-num); font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--color-secondary); }
@media (max-width: 900px) {
  .intro__issues { grid-row: auto; order: 5; margin-top: 40px; }
  .issue-list li { gap: 10px; padding: 12px 0; font-size: 15px; }
}
@media (max-width: 900px) {
  .intro__label { grid-row: auto; order: 0; padding: 0 0 20px; }
  .intro__title, .intro__text { grid-row: auto; }
  .intro__title { order: 1; margin-top: 0; font-size: min(28px, 6.6vw); letter-spacing: .02em; }
  main .intro__media { grid-column: full; grid-row: auto; order: 2; margin-top: 36px; aspect-ratio: 4 / 3; }
  main .intro__rule { grid-row: auto; order: 3; grid-column: 3 / full-end; margin-block: 36px; }
  .intro__text { order: 4; font-size: 16px; line-height: 1.85; }
}

/* ==========================================================
   04-2 FOR OWNERS & PROPERTY MANAGERS：管理会社・オーナー向けの安心材料
   左に写真付きの01、右に02〜04を罫線で積む（カード・影は使わない）
   ========================================================== */
.assure { padding-block: clamp(110px, 12vw, 180px); background: var(--color-light); }
.assure .idx { color: var(--color-secondary); }
.assure__head { row-gap: 20px; margin-bottom: clamp(56px, 6vw, 96px); }
.assure__head .idx { grid-column: content-start / content-end; grid-row: 1; }
.assure__title { grid-column: content-start / 9; grid-row: 2; font-size: clamp(30px, 3.3vw, 48px); font-weight: 700; line-height: 1.5; letter-spacing: .04em; color: var(--color-ink); }
.assure__lead { grid-column: 9 / content-end; grid-row: 2; align-self: end; max-width: 30em; font-size: 16px; line-height: 1.9; color: var(--color-text); }
.assure__body { align-items: start; }
.assure-item { display: grid; grid-template-columns: clamp(64px, 6.4vw, 96px) minmax(0, 1fr); align-content: start; }
.assure-item > :not(.assure-item__no):not(.assure-item__photos) { grid-column: 2; }
.assure-item__no { grid-column: 1; grid-row: span 4; font-family: var(--font-num); font-size: clamp(44px, 4.2vw, 64px); font-weight: 300; line-height: .9; letter-spacing: -.02em; color: var(--color-primary); }
.assure-item__en { margin-bottom: 8px; font-family: var(--font-num); font-size: 11px; font-weight: 600; letter-spacing: .24em; color: var(--color-secondary); }
.assure-item__title { font-size: clamp(20px, 1.8vw, 24px); font-weight: 700; line-height: 1.5; letter-spacing: .03em; color: var(--color-ink); }
.assure-item__text { max-width: 30em; margin-top: 12px; font-size: 15px; line-height: 1.9; color: var(--color-text); }
.assure-item__note { margin-top: 14px; font-size: 12px; color: var(--color-muted); }
.assure-item--report { grid-column: content-start / 7; }
.assure-item__photos { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 32px; }
.assure-item__photos figure { aspect-ratio: 4 / 3; }
.assure-item__photos figcaption { position: absolute; left: 0; bottom: 0; padding: 5px 12px; background: var(--color-primary); color: #fff; font-family: var(--font-num); font-size: 11px; font-weight: 600; letter-spacing: .22em; }
.assure-list { grid-column: 8 / content-end; border-top: 1px solid var(--rule); }
.assure-list .assure-item { padding: 30px 0; border-bottom: 1px solid var(--rule); }
.assure-list .assure-item > div { grid-column: 2; }
.assure-list .assure-item__no { grid-row: auto; font-size: clamp(36px, 3.2vw, 48px); }
@media (max-width: 900px) {
  .assure__head .idx, .assure__title, .assure__lead { grid-column: content; grid-row: auto; }
  .assure__head .idx { flex-wrap: wrap; letter-spacing: .16em; }
  .assure__title { font-size: min(30px, 7.4vw); }
  .assure-item--report, .assure-list { grid-column: content; }
  .assure-list { margin-top: 48px; }
  .assure-item { grid-template-columns: 56px minmax(0, 1fr); }
  .assure-item__no { font-size: 40px; }
  .assure-list .assure-item__no { font-size: 32px; }
  .assure-list .assure-item { padding: 24px 0; }
}

/* ==========================================================
   05 SPECIAL WORKS：大小バラバラのエディトリアルグリッド
   ========================================================== */
.special { position: relative; padding-block: clamp(110px, 12vw, 190px) clamp(96px, 10vw, 150px); background: #fff; }
.special__head { row-gap: 28px; margin-bottom: clamp(56px, 7vw, 104px); }
.special__vlabel { grid-column: content-start / 3; grid-row: 1 / 3; display: flex; flex-direction: column; align-items: center; gap: 16px; justify-self: start; }
.special__vlabel::after { content: ""; width: 1px; height: 72px; background: currentColor; }
.special__title { grid-column: 3 / 9; grid-row: 1; font-size: clamp(30px, 3.6vw, 52px); font-weight: 700; line-height: 1.45; letter-spacing: .03em; color: var(--color-ink); }
.special__lead { grid-column: 9 / content-end; grid-row: 1; align-self: end; max-width: 26em; font-size: 16px; line-height: 1.9; color: var(--color-text); }

/* ---------- SPECIAL：ビル・マンション向けの専門対応（大きな写真＋文章。左右を交互に） ---------- */
.feat { align-items: center; }
.feat + .feat { margin-top: clamp(88px, 9vw, 140px); }
.feat__media { grid-row: 1; aspect-ratio: 16 / 9; }
.feat--rope .feat__media { grid-column: full-start / 9; }
.feat--rope .feat__body { grid-column: 9 / content-end; grid-row: 1; padding-left: clamp(0px, 1.6vw, 24px); }
.feat--tile .feat__media { grid-column: 6 / full-end; }
.feat--tile .feat__body { grid-column: content-start / 6; grid-row: 1; padding-right: clamp(0px, 1.6vw, 24px); }
.feat__no { display: flex; align-items: baseline; gap: 14px; font-family: var(--font-num); font-size: 12px; font-weight: 600; letter-spacing: .24em; color: var(--color-secondary); }
.feat__no span { font-size: 13px; letter-spacing: .1em; color: var(--color-muted); }
.feat__title { margin-top: 14px; font-size: clamp(28px, 2.7vw, 40px); font-weight: 700; line-height: 1.4; letter-spacing: .05em; color: var(--color-ink); }
.feat__text { margin-top: 20px; font-size: 16px; line-height: 1.9; color: var(--color-text); }
.feat__points { margin-top: 24px; border-top: 1px solid var(--rule); }
.feat__points li { position: relative; padding: 11px 0 11px 20px; border-bottom: 1px solid var(--rule); font-size: 15px; font-weight: 600; line-height: 1.6; color: var(--color-ink); }
.feat__points li::before { content: ""; position: absolute; left: 2px; top: 1.3em; width: 6px; height: 6px; background: var(--color-secondary); }
.feat__links { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 28px; }
.feat__case { font-size: 14px; font-weight: 500; line-height: 1.7; color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 5px; transition: color .3s, text-decoration-color .3s; }
.feat__case span { display: inline-block; margin-right: 10px; padding: 0 8px; border: 1px solid currentColor; font-size: 11px; font-weight: 600; line-height: 1.7; color: var(--color-secondary); text-decoration: none; }
.feat__case:hover { color: var(--color-secondary); text-decoration-color: currentColor; }
.feat-related { align-items: baseline; margin-top: clamp(64px, 7vw, 104px); padding-top: 24px; border-top: 1px solid var(--rule); }
.feat-related__label { grid-column: content-start / 5; font-size: 14px; color: var(--color-muted); }
.feat-related__list { grid-column: 5 / content-end; display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 15px; }
.feat-related__list li:not(:last-child)::after { content: "/"; margin-inline: 14px; color: var(--rule); }
.feat-related__list a { font-weight: 500; color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 6px; transition: color .3s, text-decoration-color .3s; }
.feat-related__list a:hover { color: var(--color-secondary); text-decoration-color: currentColor; }
/* 後段：既存の特殊な補修グリッドへの見出し */
.special__sub { row-gap: 20px; margin-block: clamp(110px, 11vw, 170px) clamp(48px, 5vw, 72px); }
.special__subtitle { grid-column: 3 / 9; font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; line-height: 1.5; letter-spacing: .03em; color: var(--color-ink); }
.special__sublead { grid-column: 9 / content-end; align-self: end; max-width: 26em; font-size: 15px; line-height: 1.9; color: var(--color-text); }
@media (min-width: 901px) and (max-width: 1100px) {
  .feat--rope .feat__media { grid-column: full-start / 8; }
  .feat--rope .feat__body { grid-column: 8 / content-end; }
  .feat--tile .feat__media { grid-column: 7 / full-end; }
  .feat--tile .feat__body { grid-column: content-start / 7; }
  .feat__media { aspect-ratio: 4 / 3; }
}
@media (max-width: 900px) {
  .feat { row-gap: 28px; }
  main .feat .feat__media { grid-column: full; aspect-ratio: 3 / 2; }
  .feat .feat__body { grid-column: content; grid-row: 2; padding: 0; }
  .feat__title { font-size: 28px; }
  .feat-related__label, .feat-related__list { grid-column: content; }
  .feat-related { row-gap: 10px; }
  .feat-related__list a { display: inline-block; padding-block: 8px; margin-block: -4px; }
  .special__sub { margin-top: 88px; }
  .special__subtitle, .special__sublead { grid-column: content; }
  .special__subtitle { font-size: min(24px, 6.2vw); }
}

.sp { position: relative; row-gap: clamp(40px, 5vw, 72px); }
.sp__rest { display: contents; }
.sp__hint { display: none; }
.sp-item { position: relative; z-index: 1; }
.sp-item button { display: block; width: 100%; }
.sp-item__media { display: block; }
.sp-item__cap { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: baseline; margin-top: 16px; padding-left: 14px; border-left: 1px solid var(--color-secondary); }
.sp-item__no { grid-row: 1 / 3; font-family: var(--font-num); font-size: 12px; font-weight: 600; color: var(--color-secondary); }
.sp-item__title { font-size: 17px; font-weight: 700; line-height: 1.5; color: var(--color-ink); transition: color .3s; }
.sp-item__cat { font-family: var(--font-num); font-size: 11px; font-weight: 600; letter-spacing: .18em; color: var(--color-muted); }
.sp-item button:hover .sp-item__title { color: var(--color-secondary); }
/* 1段目：左に縦長大型／右上に横長（画面端まで）／右下に小2枚 */
.sp-item--1 { grid-column: 2 / 8; grid-row: 1 / 3; }
.sp-item--1 .sp-item__media { aspect-ratio: 4 / 5; }
.sp-item--1 .sp-item__title { font-size: 22px; }
.sp-item--2 { grid-column: 9 / full-end; grid-row: 1; }
.sp-item--2 .sp-item__media { aspect-ratio: 16 / 9; }
.sp-item--3 { grid-column: 9 / 11; grid-row: 2; align-self: end; }
.sp-item--3 .sp-item__media { aspect-ratio: 3 / 4; }
.sp-item--4 { grid-column: 11 / 14; grid-row: 2; align-self: end; }
.sp-item--4 .sp-item__media { aspect-ratio: 1 / 1; }
/* 2段目：左右反転（左は画面端まで、右に大型）。写真は元の比率4:3のまま枠いっぱいに表示 */
.sp-item--5 { grid-column: full-start / 6; grid-row: 3; align-self: end; }
.sp-item--5 .sp-item__media { aspect-ratio: 4 / 3; }
.sp-item--5 .sp-item__cap { margin-left: var(--g); }
.sp-item--6 { grid-column: 7 / content-end; grid-row: 3; margin-top: clamp(40px, 5vw, 80px); }
.sp-item--6 .sp-item__media { aspect-ratio: 3 / 2; }

.special__more { align-items: baseline; margin-top: clamp(64px, 7vw, 104px); padding-top: 28px; border-top: 1px solid var(--rule); font-size: 15px; }
.special__more-label { grid-column: content-start / 3; font-size: 14px; color: var(--color-muted); }
.special__more-list { grid-column: 3 / 10; display: flex; flex-wrap: wrap; gap: 6px 0; }
.special__more-list li:not(:last-child)::after { content: "/"; margin-inline: 14px; color: var(--rule); }
.special__more-list button { font-weight: 500; color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 6px; transition: color .3s, text-decoration-color .3s; }
.special__more-list button:hover { color: var(--color-secondary); text-decoration-color: currentColor; }
.special__more-link { grid-column: 10 / content-end; justify-self: end; }
/* 中間幅：小さい2枚は番号をタイトルの上に置き、タイトルを分断しない */
@media (min-width: 901px) and (max-width: 1100px) {
  .sp-item--3 .sp-item__cap, .sp-item--4 .sp-item__cap { grid-template-columns: minmax(0, 1fr); }
  .sp-item--3 .sp-item__no, .sp-item--4 .sp-item__no { grid-row: auto; }
  .sp-item--3 .sp-item__title, .sp-item--4 .sp-item__title { font-size: 15px; }
  .sp-item--3 .sp-item__cat, .sp-item--4 .sp-item__cat { letter-spacing: .1em; }
}

@media (max-width: 900px) {
  .special__head { row-gap: 20px; }
  .special__vlabel { grid-row: auto; writing-mode: horizontal-tb; flex-direction: row; gap: 14px; }
  .special__vlabel br { display: none; }
  .special__vlabel::after { width: 40px; height: 1px; }
  .special__title, .special__lead { grid-row: auto; }
  .special__title { font-size: min(30px, 7.2vw); }
  .sp { row-gap: 32px; }
  /* スマホ：大型1枚（画面幅いっぱい）＋横スクロール */
  .sp .sp-item--1 { grid-column: full; grid-row: auto; }
  .sp-item--1 .sp-item__media { aspect-ratio: 4 / 3; }
  .sp-item--1 .sp-item__cap { margin-inline: var(--g); }
  .sp-item--5 .sp-item__cap { margin-left: 0; }
  main .sp__rest { grid-column: full; display: flex; align-items: flex-start; gap: 12px; padding: 0 var(--g) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--g); scrollbar-width: none; }
  .sp__rest::-webkit-scrollbar { display: none; }
  .sp__rest .sp-item { flex: none; width: 62vw; margin: 0; scroll-snap-align: start; }
  .sp__rest .sp-item--2, .sp__rest .sp-item--6 { width: 78vw; }
  .sp__rest .sp-item--3 { width: 50vw; }
  .sp__hint { display: flex; align-items: center; gap: 10px; justify-self: end; margin-top: -16px; font-family: var(--font-num); font-size: 10px; font-weight: 600; letter-spacing: .28em; color: var(--color-muted); }
  .sp__hint::after { content: ""; width: 40px; height: 1px; background: currentColor; }
  .special__more-label, .special__more-list, .special__more-link { grid-column: content; justify-self: start; }
  .special__more { row-gap: 12px; }
  .special__more-list button { padding-block: 8px; margin-block: -2px; }
  .special__more-link { margin-top: 12px; }
}

/* ==========================================================
   06 SERVICE：濃紺。左に番号付きの大きなリスト／右に選択中の写真
   ========================================================== */
.service { padding-block: clamp(110px, 12vw, 180px) clamp(96px, 10vw, 150px); background: var(--color-primary); color: #fff; }
.service .idx { color: #8fb7ef; }
.service__head { row-gap: 20px; margin-bottom: clamp(48px, 6vw, 88px); }
.service__head .idx { grid-column: content-start / 5; grid-row: 1; }
.service__title { grid-column: content-start / 7; grid-row: 2; font-size: clamp(36px, 3.9vw, 56px); font-weight: 700; line-height: 1.3; letter-spacing: .06em; }
.service__lead { grid-column: 8 / content-end; grid-row: 2; align-self: end; max-width: 30em; font-size: 16px; line-height: 1.9; color: var(--on-dark); }

.svc { grid-template-rows: repeat(7, auto) 1fr; }
.svc__item { display: contents; }
.svc__row { grid-column: content-start / 7; display: grid; grid-template-columns: 64px 1fr auto; align-items: baseline; gap: 12px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .66); transition: color .4s var(--ease), padding .4s var(--ease); }
.svc__item:last-child .svc__row { border-bottom: 1px solid rgba(255, 255, 255, .18); }
.svc__no { font-family: var(--font-num); font-size: 13px; font-weight: 600; letter-spacing: .1em; }
.svc__name { font-size: clamp(22px, 2.2vw, 32px); font-weight: 700; line-height: 1.4; letter-spacing: .04em; }
.svc__label { padding: 2px 8px; border: 1px solid currentColor; border-radius: 2px; font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.svc__item.is-active .svc__row, .svc__row:hover, .svc__row:focus-visible { color: #fff; }
.svc__item.is-active .svc__row { padding-left: 16px; }
.svc__item.is-active .svc__no { color: #8fb7ef; }
.svc__detail { grid-column: 8 / full-end; grid-row: 1 / 9; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.svc__item.is-active .svc__detail { opacity: 1; visibility: visible; }
.svc__media { display: block; aspect-ratio: 4 / 3; }
.svc__text { max-width: min(28em, calc(100% - var(--g))); margin-top: 20px; word-break: auto-phrase; font-size: 16px; line-height: 1.85; color: var(--on-dark); }
.svc__link { margin-top: 12px; color: #fff; }
.service__sub { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; margin-top: clamp(48px, 5vw, 72px); font-size: 14px; color: rgba(255, 255, 255, .8); }
.service__sub { padding-inline: var(--g); }
.service__sub span { margin-right: 12px; }
.service__sub a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 5px; white-space: nowrap; }
.service__sub a:hover { text-decoration-color: #fff; }
@media (max-width: 900px) {
  .service__head .idx, .service__title, .service__lead { grid-row: auto; }
  /* スマホ：番号付きリスト＋小さな写真 */
  .svc { grid-template-rows: none; }
  .svc__item { grid-column: content; display: grid; grid-template-columns: minmax(0, 1fr) 84px; column-gap: 24px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .18); }
  .svc__item:last-child { border-bottom: 1px solid rgba(255, 255, 255, .18); }
  .svc__row, .svc__item:last-child .svc__row { grid-column: 1; grid-template-columns: 36px 1fr; padding: 6px 0; margin-block: -6px; border: 0; color: #fff; }
  .svc__item.is-active .svc__row { padding-left: 0; }
  .svc__label { grid-column: 2; justify-self: start; margin-top: 6px; }
  .svc__name { font-size: 19px; }
  .svc__no { color: #8fb7ef; }
  .svc__detail { display: contents; opacity: 1; visibility: visible; }
  .svc__media { grid-column: 2; grid-row: 1 / 3; align-self: start; aspect-ratio: 1 / 1; }
  .svc__text { grid-column: 1; margin: 8px 0 0 48px; padding: 0; font-size: 15px; line-height: 1.8; }
  .svc__link { display: none; }
  .service__sub { display: flex; flex-wrap: wrap; gap: 8px 20px; }
  .service__sub span { width: 100%; }
  .service__sub a { padding-block: 9px; margin-block: -6px; }
}

/* ==========================================================
   07 WORKS：クライマックス。FEATURED WORK と STANDARD WORK の2部品のみ
   ========================================================== */
.works { padding-block: clamp(120px, 13vw, 200px) clamp(96px, 10vw, 160px); background: #fff; }
.works__head { align-items: end; row-gap: 28px; margin-bottom: clamp(56px, 6vw, 96px); }
.works__title { grid-column: content-start / 9; display: flex; flex-direction: column; gap: 18px; }
.works__en { margin-left: -.06em; font-family: var(--font-num); font-size: clamp(56px, 7.4vw, 108px); font-weight: 600; line-height: .82; letter-spacing: -.02em; color: #bccbdf; }
.works__ja { display: flex; align-items: center; gap: 16px; font-size: clamp(32px, 3.2vw, 46px); font-weight: 700; line-height: 1.3; letter-spacing: .08em; color: var(--color-ink); }
.works__ja::before { content: ""; width: 40px; height: 1px; background: var(--color-secondary); }
.works__lead { grid-column: 8 / content-end; max-width: 30em; font-size: 16px; line-height: 1.9; color: var(--color-text); }

/* FEATURED WORK：画面幅の約8割。画面端まで伸ばす */
.wk-feature > :is(button, a) { grid-column: full; display: grid; grid-template-columns: subgrid; align-items: end; text-align: left; }
.wk-feature__media { display: block; }
.wk-feature--left .wk-feature__media { grid-column: full-start / 12; grid-row: 1; aspect-ratio: 16 / 9; }
.wk-feature--left .wk-feature__info { grid-column: 12 / content-end; grid-row: 1; }
.wk-feature--right { margin-top: clamp(96px, 10vw, 160px); }
.wk-feature--right .wk-feature__media { grid-column: 5 / full-end; grid-row: 1; aspect-ratio: 2 / 1; }
.wk-feature--right .wk-feature__info { grid-column: content-start / 5; grid-row: 1; }
.wk-feature__info { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-bottom: 4px; }
.wk-feature__label { display: flex; flex-direction: column; margin-bottom: 20px; font-family: var(--font-num); font-size: 11px; font-weight: 600; letter-spacing: .26em; color: var(--color-secondary); }
.wk-feature__label b { font-size: 64px; font-weight: 300; line-height: 1; letter-spacing: -.02em; color: var(--color-primary); }
.wk-feature__title { font-size: clamp(20px, 1.9vw, 26px); font-weight: 700; line-height: 1.45; color: var(--color-ink); }
.wk-feature__cat { font-size: 14px; color: var(--color-muted); }
.wk-feature__more { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 13px; font-weight: 600; color: var(--color-primary); }
.wk-feature__more::after, .wk-card__go::after { content: ""; width: 18px; height: 9px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 9'%3E%3Cpath d='M0 4.5h17M13 .8l4 3.7-4 3.7' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 9'%3E%3Cpath d='M0 4.5h17M13 .8l4 3.7-4 3.7' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .4s var(--ease); }
.wk-feature :is(button, a):hover .wk-feature__more::after, .wk-card :is(button, a):hover .wk-card__go::after { transform: translateX(5px); }

/* カテゴリ切替：ピルではなく文字＋スラッシュ */
.works__bar { align-items: baseline; margin-block: clamp(80px, 9vw, 136px) clamp(40px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--rule); }
.works__bar .idx { grid-column: content-start / 4; white-space: nowrap; }
.works-filter { grid-column: 4 / content-end; display: flex; flex-wrap: wrap; gap: 8px 0; }
.works-filter__btn { position: relative; padding: 2px 0; font-size: 15px; font-weight: 500; color: var(--color-muted); transition: color .3s; }
.works-filter__btn:not(:last-child)::after { content: "/"; display: inline-block; margin-inline: 14px; color: var(--rule); font-weight: 400; }
.works-filter__btn:hover, .works-filter__btn.is-active { color: var(--color-ink); }
.works-filter__btn.is-active { font-weight: 700; text-decoration: underline; text-decoration-color: var(--color-secondary); text-decoration-thickness: 2px; text-underline-offset: 8px; }

/* STANDARD WORK：data-slot（top.js が表示順に付与）で 2列（7+5）→3列（3+6+3）のリズム */
.wk-list { row-gap: clamp(56px, 6vw, 88px); align-items: start; }
.wk-card[hidden] { display: none; }
.wk-card :is(button, a) { display: block; width: 100%; }
.wk-card__media { display: block; aspect-ratio: 4 / 3; }
.wk-card__more { position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 16px; padding: 10px 16px; background: var(--color-primary); color: #fff; font-family: var(--font-num); font-size: 12px; font-weight: 600; letter-spacing: .08em; opacity: 0; translate: 0 8px; transition: opacity .4s var(--ease), translate .4s var(--ease); }
.wk-card__go { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-base); letter-spacing: .04em; }
.wk-card :is(button, a):hover .wk-card__more, .wk-card :is(button, a):focus-visible .wk-card__more { opacity: 1; translate: none; }
.wk-card__cat { display: block; margin-top: 16px; font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--color-secondary); }
.wk-card__title { display: block; margin-top: 2px; font-size: 18px; font-weight: 700; line-height: 1.5; color: var(--color-ink); }
.wk-card[data-slot="1"] { grid-column: 2 / 9; }
.wk-card[data-slot="1"] .wk-card__media { aspect-ratio: 3 / 2; }
.wk-card[data-slot="2"] { grid-column: 10 / content-end; margin-top: clamp(64px, 8vw, 128px); }
.wk-card[data-slot="2"] .wk-card__media { aspect-ratio: 1 / 1; }
.wk-card[data-slot="3"] { grid-column: 2 / 5; }
.wk-card[data-slot="3"] .wk-card__media { aspect-ratio: 3 / 4; }
.wk-card[data-slot="4"] { grid-column: 5 / 11; }
.wk-card[data-slot="4"] .wk-card__media { aspect-ratio: 16 / 10; }
.wk-card[data-slot="5"] { grid-column: 11 / content-end; margin-top: clamp(80px, 10vw, 160px); }
.wk-card[data-slot="5"] .wk-card__media { aspect-ratio: 1 / 1; }

.works__foot { align-items: baseline; margin-top: clamp(56px, 6vw, 88px); }
.works-note { grid-column: content-start / 9; font-size: 13px; color: var(--color-muted); }
.works__more { grid-column: 9 / content-end; justify-self: end; font-size: 16px; }
/* 中間幅：PICK UP の情報欄を3列分に */
@media (min-width: 901px) and (max-width: 1100px) {
  .wk-feature--left .wk-feature__media { grid-column: full-start / 10; }
  .wk-feature--left .wk-feature__info { grid-column: 10 / content-end; }
  .works__bar .idx { grid-column: content-start / 5; }
  .works-filter { grid-column: 5 / content-end; }
}
@media (max-width: 900px) {
  .works__title, .works__lead { grid-column: content; }
  .wk-feature > :is(button, a) { row-gap: 20px; }
  .wk-feature .wk-feature__media { grid-column: full; grid-row: 1; aspect-ratio: 4 / 3; }
  .wk-feature .wk-feature__info { grid-column: content; grid-row: 2; }
  .wk-feature__label { flex-direction: row; align-items: baseline; gap: 12px; margin-bottom: 8px; }
  .wk-feature__label b { font-size: 40px; }
  .works__bar .idx, .works-filter { grid-column: content; }
  .works-filter { margin-top: 12px; }
  .works-filter__btn { padding-block: 6px; }
  .works-filter__btn:not(:last-child)::after { margin-inline: 10px; }
  .wk-list { row-gap: 44px; }
  .wk-card[data-slot] { grid-column: content; margin-top: 0; }
  .wk-card[data-slot] .wk-card__media { aspect-ratio: 4 / 3; }
  /* 時々、画面端まで広げる */
  .wk-card[data-slot="1"], .wk-card[data-slot="4"] { grid-column: full; }
  .wk-card[data-slot="1"] .wk-card__cat, .wk-card[data-slot="1"] .wk-card__title,
  .wk-card[data-slot="4"] .wk-card__cat, .wk-card[data-slot="4"] .wk-card__title { padding-inline: var(--g); }
  .wk-card[data-slot="3"] { grid-column: content-start / 6; }
  .wk-card[data-slot="5"] { grid-column: 3 / content-end; }
  .wk-card__more { opacity: 1; translate: none; padding: 6px 10px; font-size: 12px; }
  .wk-card__go { display: none; }
  .works-note, .works__more { grid-column: content; justify-self: start; }
  .works__more { margin-top: 20px; }
}

/* ==========================================================
   08 CUSTOMER VOICE：机に置いた紙のアンケート＋大きな引用
   ========================================================== */
.voice { padding-block: clamp(110px, 12vw, 180px); background: var(--desk); }
.voice__grid { align-items: start; }
.voice__desk { grid-column: content-start / 7; position: relative; aspect-ratio: 1 / 1.12; }
.paper { position: absolute; width: 56%; background: #fff; outline: 1px solid rgba(40, 40, 30, .08); box-shadow: 0 1px 2px rgba(30, 30, 20, .07), 0 8px 22px rgba(30, 30, 20, .06); transition: translate .5s var(--ease), box-shadow .5s var(--ease); }
.paper img { width: 100%; aspect-ratio: 452 / 640; object-fit: cover; }
.paper:hover { translate: 0 -6px; box-shadow: 0 1px 2px rgba(30, 30, 20, .08), 0 16px 36px rgba(30, 30, 20, .1); }
.paper--2 { left: 0; top: 2%; rotate: -2deg; z-index: 1; }
.paper--3 { left: 44%; top: 0; rotate: 1.4deg; z-index: 2; }
.paper--4 { left: 4%; top: 34%; rotate: .8deg; z-index: 3; width: 50%; }
.paper--1 { left: 26%; top: 16%; rotate: -.6deg; z-index: 4; width: 60%; }
.paper__zoom { position: absolute; right: 0; bottom: 0; padding: 6px 12px; background: var(--color-primary); color: #fff; font-size: 12px; font-weight: 600; }
.voice__desk-cap { position: absolute; left: 0; bottom: -32px; display: flex; gap: 12px; align-items: baseline; font-size: 12px; color: var(--color-muted); }
.voice__desk-cap span { font-family: var(--font-num); font-size: 10px; font-weight: 600; letter-spacing: .26em; color: var(--color-secondary); }
.voice__body { grid-column: 8 / content-end; padding-top: 8px; }
.voice__title { font-size: clamp(30px, 2.8vw, 40px); font-weight: 700; line-height: 1.4; letter-spacing: .06em; color: var(--color-ink); }
.voice__lead { margin-top: 12px; font-size: 16px; color: var(--color-text); }
.voice__feature { position: relative; margin-top: clamp(48px, 5vw, 72px); }
.voice__mark { display: block; height: .5em; font-family: Georgia, "Times New Roman", serif; font-size: 140px; line-height: 1; color: var(--color-secondary); }
.voice__quote { font-size: clamp(24px, 2.2vw, 32px); font-weight: 700; line-height: 1.6; letter-spacing: .03em; color: var(--color-primary); }
.voice__who { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 20px; font-size: 13px; color: var(--color-muted); }
.voice__who span { font-weight: 700; color: var(--color-ink); }
.voice__list { margin-top: clamp(48px, 5vw, 64px); }
.voice__item { display: grid; grid-template-columns: 1fr auto; column-gap: 24px; padding: 22px 0; border-top: 1px solid #cfcfc8; }
.voice__item:last-child { border-bottom: 1px solid #cfcfc8; }
.voice__item .voice__who { grid-column: 1 / -1; margin: 0 0 8px; }
.voice__item blockquote { font-size: 16px; line-height: 1.85; color: var(--color-text); }
.voice__open { align-self: end; font-size: 13px; font-weight: 600; color: var(--color-primary); text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.voice__open:hover { color: var(--color-secondary); }
.voice__note { margin: 20px 0 32px; font-size: 13px; color: var(--color-muted); }
@media (max-width: 900px) {
  .voice__desk { grid-column: content; aspect-ratio: 1 / 1.05; margin-bottom: 40px; }
  .paper--2, .paper--4 { display: none; }
  .paper--3 { left: 36%; top: 0; width: 60%; }
  .paper--1 { left: 2%; top: 7%; width: 66%; }
  .voice__desk-cap { bottom: -28px; }
  .voice__body { grid-column: content; }
  .voice__mark { font-size: 110px; }
  .voice__quote { font-size: 21px; line-height: 1.6; letter-spacing: .02em; }
  .voice__item { grid-template-columns: 1fr; }
  .voice__open { justify-self: start; margin-top: 0; padding-block: 10px; }
}

/* ==========================================================
   09 WHY US：3つのストーリー。数字・写真・文章をばらして配置
   ========================================================== */
.why { padding-block: clamp(110px, 12vw, 180px); background: #fff; overflow: hidden; }
.why__head { row-gap: 16px; }
.why__head .idx { grid-column: content-start / 5; }
.why__title { grid-column: content-start / 8; font-size: clamp(36px, 3.9vw, 56px); font-weight: 700; line-height: 1.3; letter-spacing: .06em; color: var(--color-ink); }
.story { align-items: start; margin-top: clamp(80px, 10vw, 150px); }
.story::before { content: ""; grid-column: content-start / content-end; grid-row: 1; height: 1px; margin-top: calc(-1 * clamp(40px, 5vw, 72px)); background: var(--rule); }
.story__no { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-family: var(--font-num); font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--color-secondary); }
.story__no::after { content: ""; width: 32px; height: 1px; background: currentColor; }
.story__title { font-size: clamp(24px, 2.3vw, 32px); font-weight: 700; line-height: 1.5; letter-spacing: .04em; color: var(--color-ink); }
.story__fact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 20px 0 16px; font-size: 14px; font-weight: 700; color: var(--color-primary); }
.story__fact b { font-family: var(--font-num); font-size: 30px; font-weight: 500; line-height: 1; }
.story__fact span { font-size: 13px; font-weight: 500; color: var(--color-muted); }
.story__body > p:not([class]) { max-width: 30em; font-size: 16px; line-height: 1.9; color: var(--color-text); }
.story__body .text-link { margin-top: 32px; }
.story__big { font-family: var(--font-num); color: var(--color-primary); }
/* 01：巨大な58を画面の左端へ */
.story--1 .story__big { grid-column: full-start / 8; grid-row: 1; display: flex; align-items: flex-end; gap: 16px; font-size: clamp(120px, 17vw, 250px); font-weight: 300; line-height: .78; letter-spacing: -.04em; }
.story--1 .story__big small { margin-bottom: .08em; margin-left: clamp(20px, 3vw, 48px); font-size: 14px; font-weight: 600; letter-spacing: .3em; }
.story--1 .story__media { grid-column: 8 / full-end; grid-row: 1 / 3; aspect-ratio: 16 / 9; }
.story--1 .story__body { grid-column: 3 / 7; grid-row: 2; margin-top: 56px; }
/* 02：縦長写真＋英字の積み上げ */
.story--2 .story__media { grid-column: content-start / 7; grid-row: 1 / 3; aspect-ratio: 4 / 3; }
.story--2 .story__big { grid-column: 8 / full-end; grid-row: 1; font-size: clamp(40px, 4.8vw, 72px); font-weight: 600; line-height: .98; letter-spacing: -.01em; color: #bccbdf; }
.story--2 .story__body { grid-column: 9 / content-end; grid-row: 2; align-self: end; margin-top: clamp(24px, 3vw, 40px); }
/* 03：文字が主役、正方形の写真は右に小さく */
.story--3 .story__big { grid-column: content-start / 8; grid-row: 1; font-size: clamp(40px, 4.8vw, 72px); font-weight: 600; line-height: .98; letter-spacing: -.01em; color: #bccbdf; }
.story--3 .story__body { grid-column: 3 / 8; grid-row: 2; margin-top: 40px; }
.story--3 .story__media { grid-column: 8 / full-end; grid-row: 1 / 3; aspect-ratio: 4 / 3; margin-top: 56px; }
.story__range-label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--color-muted); word-spacing: 0; }
.story__range { margin: 20px 0 16px; font-size: 16px; font-weight: 700; line-height: 1.9; letter-spacing: .04em; color: var(--color-primary); word-spacing: .2em; word-break: keep-all; }
@media (max-width: 900px) {
  .why__head .idx, .why__title { grid-column: content; }
  .story { row-gap: 24px; }
  .story > * { grid-row: auto !important; }
  .story::before { grid-row: 1 !important; }
  .story .story__big { grid-column: content; margin-top: 0; }
  .story--1 .story__big { grid-column: full; padding-left: 0; font-size: 34vw; }
  .story--2 .story__big, .story--3 .story__big { font-size: 12vw; order: -1; }
  .story--1 .story__media { grid-column: 3 / full-end; }
  .story--2 .story__media { grid-column: full-start / 6; }
  .story--3 .story__media { grid-column: 3 / content-end; margin-top: 0; }
  .story .story__body { grid-column: content; margin-top: 8px; }
}

/* ==========================================================
   10 PEOPLE & CRAFT：写真ドキュメンタリー（濃紺）
   ========================================================== */
.people { padding-block: clamp(110px, 12vw, 180px) clamp(140px, 14vw, 220px); background: var(--color-navy-deep); color: #fff; }
.people__head { align-items: end; row-gap: 24px; margin-bottom: clamp(56px, 6vw, 96px); }
.people__title { grid-column: content-start / 7; font-size: clamp(32px, 3.6vw, 52px); font-weight: 700; line-height: 1.45; letter-spacing: .05em; }
.people__lead { grid-column: 8 / content-end; max-width: 30em; font-size: 16px; line-height: 1.9; color: var(--on-dark); }
.pp { align-items: start; }
.pp__shot { position: relative; }
.pp__shot figure { aspect-ratio: 4 / 3; background: #1b2f55; }
/* 写真の左下に、背景色と同じ小さな矩形でキャプション */
.pp__cap { position: absolute; left: 0; bottom: 0; display: grid; grid-template-columns: auto auto auto; column-gap: 12px; align-items: baseline; padding: 16px 28px 0 0; background: var(--color-navy-deep); font-size: 15px; font-weight: 700; }
.pp__cap small { margin-left: 6px; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .8); }
.pp__en { grid-column: 1 / -1; font-family: var(--font-num); font-size: 12px; font-weight: 600; letter-spacing: .3em; color: #8fb7ef; }
.pp__no { font-family: var(--font-num); font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .78); }
.pp__shot--1 { grid-column: full; grid-row: 1; }
.pp__shot--1 figure { aspect-ratio: 21 / 9; max-height: 640px; width: 100%; }
.pp__shot--1 .pp__cap { padding-left: var(--g); }
.pp__shot--2 { grid-column: content-start / 9; grid-row: 2; margin-top: clamp(64px, 8vw, 120px); }
.pp__shot--3 { grid-column: 10 / content-end; grid-row: 2; margin-top: clamp(200px, 22vw, 320px); }
.pp__shot--3 figure { aspect-ratio: 3 / 4; }
.pp__shot--4 { grid-column: 4 / full-end; grid-row: 3; margin-top: clamp(64px, 8vw, 120px); }
.pp__shot--4 figure { aspect-ratio: 16 / 9; }
/* 04 写真報告：同じ建物の施工前・施工後を並べる */
.pp__report { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pp__report-img { position: relative; overflow: hidden; }
.pp__report-tag { position: absolute; top: 0; left: 0; padding: 5px 12px; background: #fff; color: var(--color-primary); font-family: var(--font-num); font-size: 11px; font-weight: 600; letter-spacing: .22em; }
.pp__shot--4 .pp__cap small { grid-column: 2 / -1; margin: 2px 0 0; }
.people__note { margin-top: 32px; font-size: 13px; color: rgba(255, 255, 255, .78); }
.people__note span { grid-column: 4 / content-end; }
@media (max-width: 900px) {
  .people__title, .people__lead { grid-column: content; }
  .pp { row-gap: 40px; }
  .pp__shot { grid-row: auto !important; margin-top: 0 !important; }
  main .pp__shot--1, main .pp__shot--4 { grid-column: full; }
  .pp__shot--1 figure { aspect-ratio: 4 / 3; }
  main .pp__shot--2 { grid-column: content-start / 7; }
  main .pp__shot--3 { grid-column: 3 / content-end; }
  .pp__shot--4 .pp__cap { padding-left: var(--g); }
  .people__note span { grid-column: content; }
}

/* ==========================================================
   11 雨漏りLP導線：ここだけ雨漏りLPのトーン（淡いブルー＋オレンジ）
   ========================================================== */
.leak { position: relative; z-index: 1; padding-bottom: clamp(96px, 10vw, 150px); background: var(--color-light); }
.leak__grid { align-items: center; }
/* 写真を上の濃紺セクションへはみ出させる */
.leak__media { grid-column: full-start / 8; grid-row: 1; aspect-ratio: 4 / 3; margin-top: calc(-1 * clamp(64px, 8vw, 120px)); }
.leak__body { grid-column: 8 / content-end; grid-row: 1; padding-top: clamp(40px, 5vw, 80px); }
.leak__label { display: inline-block; margin-bottom: 24px; padding: 4px 12px; background: var(--color-secondary); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.leak__title { font-size: clamp(28px, 2.9vw, 42px); font-weight: 700; line-height: 1.45; letter-spacing: .03em; color: var(--color-primary); }
.leak__text { max-width: 30em; margin: 28px 0 36px; font-size: 16px; line-height: 1.9; color: #1f2b40; }
@media (max-width: 900px) {
  main .leak__media { grid-column: full; margin-top: -40px; }
  .leak__body { grid-row: 2; padding-top: 40px; }
  .leak__title { font-size: min(28px, 7vw); letter-spacing: .01em; }
  .leak .ui-btn { width: 100%; }
}

/* ==========================================================
   12 FLOW：背景の大きな番号の上に工程名。階段状にずらす
   ========================================================== */
.flow { padding-block: clamp(110px, 12vw, 170px) clamp(80px, 9vw, 130px); background: #fff; overflow: hidden; }
.flow__grid { align-items: start; }
.flow__title { grid-column: content-start / 5; font-size: clamp(28px, 2.6vw, 36px); font-weight: 700; line-height: 1.5; letter-spacing: .06em; color: var(--color-ink); }
.flow__list { grid-column: 5 / content-end; grid-row: 1 / 4; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: flow; }
.flow__step { position: relative; min-height: 190px; padding: 0 12px; border-left: 1px solid var(--rule); }
.flow__step:nth-child(2) { margin-top: 32px; }
.flow__step:nth-child(3) { margin-top: 64px; }
.flow__step:nth-child(4) { margin-top: 96px; }
.flow__step:nth-child(5) { margin-top: 128px; }
.flow__no { position: absolute; left: 8px; top: -6px; font-family: var(--font-num); font-size: clamp(64px, 6.6vw, 112px); font-weight: 600; line-height: 1; letter-spacing: -.04em; color: #e9eef5; }
.flow__label { position: relative; display: block; padding-top: clamp(64px, 6.4vw, 104px); font-family: var(--font-num); font-size: 11px; font-weight: 600; letter-spacing: .2em; line-height: 1.6; color: var(--color-secondary); }
.flow__name { position: relative; display: block; margin-top: 4px; font-size: 17px; font-weight: 700; line-height: 1.5; color: var(--color-ink); word-break: keep-all; }
.flow__name::before { content: ""; position: absolute; left: -16px; top: .62em; width: 7px; height: 7px; background: var(--color-secondary); }
@media (max-width: 900px) {
  .flow__title, .flow__list { grid-column: content; }
  .flow__list { grid-template-columns: 1fr; margin-top: 40px; }
  .flow__step, .flow__step:nth-child(n) { min-height: 0; margin-top: 0; padding: 18px 0 18px 96px; border-left: 0; border-top: 1px solid var(--rule); }
  .flow__step:last-child { border-bottom: 1px solid var(--rule); }
  .flow__no { left: 0; top: 50%; translate: 0 -50%; font-size: 64px; }
  .flow__label { padding-top: 0; }
  .flow__name { margin-top: 0; font-size: 17px; }
  .flow__name::before { display: none; }
}

/* ==========================================================
   13 COMPANY：社屋写真を画面いっぱい＋濃紺の矩形を重ねる
   ========================================================== */
.company { padding-bottom: clamp(110px, 12vw, 170px); background: var(--ow); }
.company__visual { position: relative; }
.company__hero { aspect-ratio: 16 / 7; max-height: 720px; width: 100%; }
.company__plate { position: absolute; left: var(--g); bottom: calc(-1 * clamp(80px, 8vw, 128px)); width: min(520px, 44vw); padding: clamp(32px, 3.6vw, 52px) clamp(32px, 3.6vw, 56px); background: var(--color-primary); color: #fff; }
.company__en { margin-bottom: 16px; font-family: var(--font-num); font-size: 11px; font-weight: 600; letter-spacing: .3em; color: #8fb7ef; }
.company__title { font-size: clamp(28px, 2.9vw, 42px); font-weight: 700; line-height: 1.45; letter-spacing: .05em; }
.company__grid { align-items: start; margin-top: clamp(144px, 14vw, 220px); }
.company__text { grid-column: content-start / 6; font-size: 16px; line-height: 1.95; }
.company__text p + p { margin-top: 1em; }
.company__text .text-link { margin-top: 32px; }
.company__table { grid-column: 7 / content-end; border-top: 1px solid var(--color-ink); }
.company__table div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.company__table dt { font-size: 14px; font-weight: 500; color: var(--color-muted); }
.company__table dd { font-size: 16px; line-height: 1.8; color: var(--color-ink); }
@media (max-width: 900px) {
  .company__hero { aspect-ratio: 4 / 3; }
  .company__plate { position: relative; left: auto; bottom: auto; width: auto; margin: -48px var(--g) 0 0; padding: 32px var(--g); }
  .company__grid { margin-top: 48px; row-gap: 48px; }
  .company__text, .company__table { grid-column: content; }
  .company__table div { grid-template-columns: 6.5em 1fr; }
}

/* ==========================================================
   14 CONTACT（TOP版）：濃紺一色・左右非対称。共通の .contact を上書き
   ========================================================== */
.contact--top { padding-block: clamp(120px, 14vw, 210px); }
.contact--top .contact__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px clamp(48px, 7vw, 120px); align-items: start; }
.contact--top .contact__title { margin: 0; font-size: clamp(34px, 4.1vw, 60px); line-height: 1.4; letter-spacing: .03em; }
.contact--top .contact__box { gap: 24px; padding-top: 14px; }
.contact--top .contact__desc { font-size: 16px; line-height: 1.9; color: var(--on-dark); word-break: auto-phrase; }
.contact--top .contact__tel-label, .contact--top .contact__tel-time { font-size: 13px; color: rgba(255, 255, 255, .8); }
.contact--top .contact__sub a { font-size: 14px; color: var(--on-dark); }
.contact--top .ui-btn--cta { min-height: 72px; border-radius: 4px; font-size: 17px; }
@media (min-width: 901px) and (max-width: 1200px) { .contact--top .ui-btn--cta { padding-inline: 20px; font-size: 15px; white-space: nowrap; } }
.contact--top .contact__tel { display: block; padding-top: 28px; }
.contact--top .contact__tel-label { display: block; }
.contact--top .contact__tel-num { display: block; margin: 4px 0 2px; font-size: clamp(36px, 3.6vw, 52px); font-weight: 500; line-height: 1.15; letter-spacing: .02em; }
.contact--top .contact__tel-time { display: block; }
@media (max-width: 900px) {
  .contact--top .contact__inner { grid-template-columns: 1fr; }
  .contact--top .contact__title { font-size: 30px; }
  .contact--top .contact__desc { font-size: 15px; }
  .contact--top .contact__sub a { padding-block: 10px; }
}


/* ==========================================================
   写真ACのイメージ写真（人・相談・現地確認）。施工実績には使わない
   ========================================================== */
.flow__lead { grid-column: content-start / 5; grid-row: 2; max-width: 22em; margin-top: 24px; font-size: 15px; line-height: 1.9; color: var(--color-text); }
.hero__sub, .intro__media, .flow__media { position: relative; overflow: hidden; background: var(--color-light); }
.hero__sub img, .intro__media img, .flow__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__sub { grid-column: content-start / 4; grid-row: 3; align-self: end; z-index: 2; margin-bottom: 28px; aspect-ratio: 3 / 2; }
.intro__media { grid-column: full-start / 6; grid-row: 1 / 6; aspect-ratio: 4 / 5; }
.flow__title { grid-row: 1; }
.flow__media { grid-column: content-start / 5; grid-row: 3; margin-top: 32px; aspect-ratio: 4 / 3; }
@media (max-width: 900px) {
  .hero__sub { display: none; }
  .flow__lead { grid-column: content; grid-row: auto; max-width: none; margin-top: 16px; }
  .flow__media { grid-row: auto; margin-top: 28px; aspect-ratio: 3 / 2; }
  .flow__list { grid-row: auto; }
}

/* ==========================================================
   写真トーン：画像ごとに必要な補正だけを掛ける（一律のフィルターは掛けない）
   t-lift 暗い写真を少し明るく／t-calm 彩度が高すぎる写真を抑える／t-warm 黄みを抑える
   t-flat 灰色で眠い写真にわずかにコントラスト／t-paper アンケート用紙の白飛び抑制／t-stock 写真AC素材を施工写真に寄せる
   ========================================================== */
img[class*="t-"] { filter: var(--wb, brightness(1)) brightness(var(--b, 1)) contrast(var(--c, 1)) saturate(var(--s, 1)); }
.t-lift { --b: 1.08; --c: 1.03; }
.t-calm { --s: .88; --c: 1.02; }
.t-warm { --wb: url(#wb-cool); --s: .94; }
.t-flat { --c: 1.07; --b: 1.01; }
.t-paper { --b: .97; --c: 1.06; }
.t-stock { --s: .86; --c: .98; --b: .99; }

/* ==========================================================
   クロップ：画像ごとに object-position を指定。スマホは --op-sp で別位置
   ========================================================== */
main img { object-position: var(--op, 50% 50%); }
@media (max-width: 900px) { main img { object-position: var(--op-sp, var(--op, 50% 50%)); } }
/* SPECIAL WORKS */
img[src*="tekkotsu-kaidan-02"] { --op: 38% 50%; }
img[src*="tenjo-tekkin-02"] { --op: 50% 35%; }
img[src*="kaidan-hashira-03"] { --op: 40% 50%; }
img[src*="kanki-hood-03"] { --op: 42% 55%; }
img[src*="hisashi-03"] { --op: 50% 30%; }
/* WORKS */
img[src*="rikuyane-04"] { --op: 60% 50%; }
img[src*="apart-tenmado-04"] { --op: 40% 45%; }
img[src*="youheki-uki-03"] { --op: 60% 70%; }
img[src*="tenmado-amamori-04"] { --op: 40% 50%; }
img[src*="tenjo-kabi-02"] { --op: 60% 50%; }
/* SERVICE（スマホは正方形サムネイルなので施工箇所に寄せる） */
img[src*="setsuban-yane-07"] { --op: 50% 60%; }
img[src*="tenmado-amamori-03"] { --op-sp: 55% 50%; }
img[src*="youheki-uki-05"] { --op-sp: 65% 50%; }
img[src*="caulking-hibiware-04"] { --op-sp: 70% 50%; }
img[src*="tatedoi-02"] { --op-sp: 68% 50%; }
/* PEOPLE（人物だけでなく現場環境も残す） */
img[src*="colonial-yane-06"] { --op: 72% 50%; }
img[src*="sash-amamori-01"] { --op: 60% 30%; --op-sp: 62% 40%; }
/* COMPANY（建物と看板が両方見える位置） */
img[src*="company-03"] { --op: 50% 14%; --op-sp: 45% 30%; }
/* 社屋（調整済み・看板入り）：看板「ヤブ原産業」と建物の両方を残す。スマホは4:3だと両方入らないため3:2に */
img[src*="company-yabuhara-building"] { --op: 50% 80%; --op-sp: 22% 50%; }
@media (max-width: 900px) { .company__hero:has(img[src*="company-yabuhara-building"]) { aspect-ratio: 3 / 2; } }
/* 物件名・工事名は意味の区切りで折り返す */
.sp-item__title, .wk-card__title, .wk-feature__title, .feat__case { word-break: auto-phrase; }
/* INTRO：右側の文章量に合わせて写真を縦に伸ばす（PC） */
@media (min-width: 901px) { .intro__media { align-self: stretch; aspect-ratio: auto; min-height: 560px; } }
/* 管理会社・法人向け（2026-10-23）：施工実績・本番サイト掲載の施工写真 */
img[src*="fv-tenant-mansion"] { --op: 22% 45%; --op-sp: 45% 50%; }
img[src*="fv-survey-scaffold"] { --op: 50% 40%; }
img[src*="intro-office-building"] { --op: 48% 40%; }
img[src*="people-finish"] { --op: 60% 40%; }
img[src*="report-before"], img[src*="wk-tenant-mansion"] { --op: 40% 50%; }
img[src*="demado-amamori-04"] { --op-sp: 30% 50%; }
img[src*="svc-paint-mansion"] { --op: 50% 40%; }
/* 写真AC（差し替え後に要微調整） */
img[src*="stock-intro-inspection"] { --op: 85% 40%; --op-sp: 70% 40%; }
img[src*="stock-people-check"] { --op: 50% 35%; --op-sp: 45% 40%; }
img[src*="whyus-knowledge"] { --op: 35% 50%; }
img[src*="stock-flow-consultation"] { --op: 50% 45%; }

/* ---------- 拡大表示（施工写真ギャラリー／アンケート原本） ---------- */
.viewer { width: min(1100px, calc(100vw - 24px)); max-height: calc(100svh - 24px); padding: 0; border: 0; border-radius: 4px; background: #0b1a33; color: #fff; overflow: hidden; }
.viewer::backdrop { background: rgba(6, 16, 34, .82); }
.viewer[open] { display: flex; flex-direction: column; }
.viewer__head { display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 22px; }
.viewer__title { flex: 1; font-weight: 600; }
.viewer__count { font-family: var(--font-num); font-size: 14px; color: rgba(255, 255, 255, .7); }
.viewer__close { width: 44px; height: 44px; border-radius: 50%; font-size: 28px; line-height: 1; color: #fff; text-align: center; }
.viewer__close:hover { background: rgba(255, 255, 255, .12); }
.viewer__stage { position: relative; display: flex; align-items: center; justify-content: center; flex: 1; min-height: 0; background: #06101f; }
.viewer__img { max-width: 100%; max-height: calc(100svh - 150px); object-fit: contain; }
.viewer.is-doc .viewer__stage { overflow-y: auto; align-items: flex-start; background: #e9eef5; }
.viewer.is-doc .viewer__img { max-height: none; width: min(100%, 760px); }
.viewer__nav { position: absolute; top: 50%; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--color-primary); font-size: 30px; line-height: 1; text-align: center; transform: translateY(-50%); }
.viewer__nav:hover { background: #fff; }
.viewer__nav--prev { left: 12px; }
.viewer__nav--next { right: 12px; }
.viewer__nav[hidden] { display: none; }
.viewer__caption { padding: 10px 22px 14px; font-size: 12px; color: rgba(255, 255, 255, .7); }

/* ===== WordPress移植用の追記（2026-11） =====
   モックではギャラリー（works-data.js の固定データ）を開くボタンだった箇所を、
   本番では静的な写真＋見出しとして表示するためのスタイル */
.sp-item__fig { display: block; width: 100%; margin: 0; }
.special__more-list li > span { font-weight: 500; color: var(--color-ink); }
