@charset "UTF-8";
/* ============================================================
   株式会社大成工業 — トップページ意匠 (2026-07-28)
   ------------------------------------------------------------
   ・配色はロゴ原本から採寸した実際の色。紋章 #9F8124(真鍮金) /
     ワードマーク #080404。以前の試作にあった橙はブランド色では
     ないので使わない。
   ・見出しは明朝。ロゴの「株式会社大成工業」が明朝なので、
     そこから字面を連続させる。数字と英字だけ Oswald。
   ・使える実写は時津工場の3点だけ。写真で語れない分を
     タイポグラフィと線(＝配管)の動きで持たせる構成。
   ・比率は tools/taisei_build_images.py が焼いた値と対で持つ。
     どちらか片方だけ変えると必ず見切れる。
   ============================================================ */

:root {
    --ink: #0b0b0c;
    --ink-2: #121214;
    --ink-3: #17171a;
    --paper: #f5f2ea;
    --paper-2: #e9e4d8;
    --gold: #9f8124;
    --gold-hi: #d2ae44;
    --gold-dim: rgba(159, 129, 36, .32);
    --text: #e8e6e1;
    --muted: #9d9a93;
    --line: rgba(255, 255, 255, .12);
    --line-ink: rgba(11, 11, 12, .14);
    --gutter: clamp(20px, 5vw, 72px);
    --wrap: 1200px;
    --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
    --sans: "Noto Sans JP", system-ui, sans-serif;
    --num: "Oswald", "Noto Sans JP", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

/* UA既定の figure{margin:1em 40px} は position を付けた瞬間に
   左右40pxの余白として現れる（スマホのヒーローで実際に出た）。先に落とす */
figure, h1, h2, h3, p, dl, dd, ul, li { margin: 0; }
ul { padding: 0; list-style: none; }

html {
    scroll-behavior: smooth;
    /* hidden はスクロールコンテナを作ってしまい、
       固定ヘッダーの下に死んだ帯ができる。clip を使う */
    overflow-x: clip;
}

body {
    margin: 0;
    overflow-x: clip;
    background: var(--ink);
    color: var(--text);
    font-family: var(--sans);
    font-size: clamp(14px, 1.05vw, 16px);
    line-height: 1.9;
    letter-spacing: .04em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 800;
    line-height: 1.34;
    letter-spacing: .02em;
    text-wrap: balance;
}

.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.visually-hidden:focus {
    position: fixed; top: 12px; left: 12px; width: auto; height: auto;
    clip-path: none; padding: 10px 16px; background: var(--gold); color: #0b0b0c; z-index: 999;
}

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- 画面装飾 ---------- */

.progress {
    position: fixed; inset: 0 0 auto; height: 2px; z-index: 90;
    background: linear-gradient(90deg, var(--gold), var(--gold-hi));
    transform: scaleX(var(--p, 0)); transform-origin: 0 50%;
    pointer-events: none;
}

/* 方眼＝工作図。うっすら敷いて「図面の上で読んでいる」感を出す */
.deco-grid {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .35;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 96px 96px;
    mask-image: radial-gradient(120% 80% at 50% 0%, #000 10%, transparent 72%);
}

/* ---------- ヘッダー ---------- */

.head {
    position: fixed; inset: 0 0 auto; z-index: 80;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 18px var(--gutter);
    transition: background-color .35s, padding .35s, backdrop-filter .35s, border-color .35s;
    border-bottom: 1px solid transparent;
}
.head.is-stuck {
    padding-block: 11px;
    background: rgba(11, 11, 12, .82);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
}
.head__logo { display: flex; align-items: center; gap: 12px; }
.head__logo img { width: clamp(148px, 15vw, 210px); }
.head__nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.head__nav a {
    position: relative; font-size: 12px; letter-spacing: .16em; color: var(--muted);
    display: inline-flex; align-items: baseline; gap: 7px; padding-block: 6px;
    transition: color .25s;
}
.head__nav a b { font-family: var(--num); font-weight: 500; font-size: 11px; color: var(--gold); }
.head__nav a::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
    background: var(--gold); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .35s;
}
.head__nav a:hover { color: #fff; }
.head__nav a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

/* ---------- ヒーロー ---------- */

.hero {
    position: relative; z-index: 1;
    min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 128px var(--gutter) clamp(56px, 8vh, 104px);
    overflow: hidden;
    isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
    width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%;
    /* 実写は昼の工場で明るすぎる。沈めて金が効くコントラストにする */
    filter: grayscale(.72) contrast(1.12) brightness(.42);
    transform: translate3d(0, var(--hero-shift, 0px), 0) scale(1.06);
    will-change: transform;
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(11,11,12,.92) 0%, rgba(11,11,12,.42) 34%, rgba(11,11,12,.86) 78%, var(--ink) 100%),
        radial-gradient(90% 60% at 50% 12%, rgba(159,129,36,.20), transparent 62%);
}

/* 天井の桁に沿って金の光が舐めていく（＝検査灯のイメージ） */
.hero__scan {
    position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.hero__scan i {
    position: absolute; top: -20%; left: -30%; width: 34%; height: 140%;
    background: linear-gradient(90deg, transparent, rgba(210,174,68,.16), transparent);
    transform: skewX(-14deg);
    animation: scan 9s cubic-bezier(.5, 0, .3, 1) infinite;
}
@keyframes scan {
    0%, 62% { left: -34%; opacity: 0; }
    66% { opacity: 1; }
    100% { left: 104%; opacity: 0; }
}

.hero__ghost {
    position: absolute; left: 50%; top: 34%; z-index: -1;
    transform: translate(calc(-50% + var(--ghost-x, 0px)), -50%);
    font-family: var(--num); font-weight: 200; font-size: clamp(72px, 15vw, 232px);
    line-height: .92; letter-spacing: .04em; white-space: nowrap;
    color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .09);
    pointer-events: none; user-select: none;
}

/* 図面の隅描き。座標と許可番号を四隅に置いて「実在の会社」を担保する */
.hero__frame {
    position: absolute; inset: clamp(88px, 11vh, 120px) var(--gutter) clamp(22px, 3vh, 36px);
    z-index: -1; pointer-events: none;
    border: 1px solid rgba(255, 255, 255, .10);
}
.hero__frame span {
    position: absolute; font-family: var(--num); font-size: 10px; letter-spacing: .22em;
    color: rgba(255, 255, 255, .42); white-space: nowrap; background: var(--ink); padding: 0 8px;
}
.hero__frame .hf--tl { top: -7px; left: 18px; }
.hero__frame .hf--br { bottom: -7px; right: 18px; }

.hero__inner { position: relative; width: min(var(--wrap), 100%); margin-inline: auto; }
.hero__eyebrow {
    font-family: var(--num); font-size: clamp(10px, 1vw, 12px); letter-spacing: .3em;
    color: var(--gold-hi); margin-bottom: clamp(14px, 2vh, 24px);
}
.hero__eyebrow span { color: rgba(255, 255, 255, .55); font-family: var(--sans); letter-spacing: .14em; }
.hero__eyebrow i { font-style: normal; margin: 0 10px; color: rgba(255, 255, 255, .28); }

.hero h1 {
    font-size: clamp(38px, 8.2vw, 116px);
    line-height: 1.12; letter-spacing: .01em; margin: 0;
}
.hl { display: block; overflow: hidden; }
/* .ch は inline-block なので、テンプレートの改行がそのまま単語間スペースになり
   1文字ごとに約0.25emの隙間が空く。flex にすると空白テキストノードごと落ちる */
.hl > span { display: flex; flex-wrap: wrap; }
.ch {
    display: inline-block;
    transform: translateY(112%) rotate(3deg); opacity: 0;
    transition: transform .95s cubic-bezier(.16, 1, .3, 1), opacity .7s;
    transition-delay: calc(var(--i) * 52ms);
}
.rise-chars.on .ch { transform: none; opacity: 1; }
.ch.is-gold { color: var(--gold-hi); }

.hero__lead {
    max-width: 46em; margin-top: clamp(18px, 2.6vh, 30px);
    color: rgba(232, 230, 225, .78); font-size: clamp(13px, 1.15vw, 16px);
}
.hero__meta {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(20px, 3vh, 34px);
}
.hero__meta span {
    font-size: 11px; letter-spacing: .1em; color: rgba(255, 255, 255, .62);
    border: 1px solid var(--line); padding: 6px 13px;
}
.hero__scroll {
    position: absolute; right: var(--gutter); bottom: clamp(56px, 8vh, 104px);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    font-family: var(--num); font-size: 10px; letter-spacing: .24em; color: rgba(255, 255, 255, .45);
}
.hero__scroll i { display: block; width: 1px; height: 56px; background: var(--line); overflow: hidden; }
.hero__scroll i::after {
    content: ""; display: block; width: 1px; height: 40%; background: var(--gold-hi);
    animation: drip 2.2s cubic-bezier(.7, 0, .3, 1) infinite;
}
@keyframes drip { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }

/* ---------- 客先マーキー ---------- */

.mq {
    position: relative; z-index: 2;
    background: var(--ink-2); border-block: 1px solid var(--line);
    padding-block: 14px; overflow: hidden;
}
.mq + .mq { border-top: 0; }
.marquee { display: flex; width: max-content; }
.marquee__track {
    display: flex; align-items: center; gap: clamp(20px, 3vw, 46px);
    padding-right: clamp(20px, 3vw, 46px); white-space: nowrap;
    animation: mq-left var(--dur, 46s) linear infinite;
}
.mq--rev .marquee__track { animation-name: mq-right; }
@keyframes mq-left { to { transform: translateX(-50%); } }
@keyframes mq-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.mq-name { font-size: clamp(12px, 1.15vw, 15px); color: rgba(255, 255, 255, .58); letter-spacing: .08em; }
.mq-dot { color: var(--gold); font-size: 8px; }
.mq:hover .marquee__track { animation-play-state: paused; }

/* ---------- セクション共通 ---------- */

.sec { position: relative; z-index: 1; padding-block: clamp(76px, 11vw, 168px); overflow: hidden; }
.sec--paper { background: var(--paper); color: #1b1a17; }
.sec--steel { background: var(--ink-2); }
.sec--tight { padding-block: clamp(48px, 6vw, 84px); }

.ghost {
    position: absolute; left: 50%; top: 6%;
    transform: translateX(calc(-50% + var(--gx, 0px)));
    font-family: var(--num); font-weight: 200; font-size: clamp(88px, 17vw, 260px);
    line-height: 1; letter-spacing: .06em; white-space: nowrap;
    color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .055);
    pointer-events: none; user-select: none; z-index: -1;
}
.sec--paper .ghost { -webkit-text-stroke-color: rgba(11, 11, 12, .07); }

.sec__head { margin-bottom: clamp(38px, 5vw, 74px); }
.kicker {
    font-family: var(--num); font-size: 11px; letter-spacing: .28em; color: var(--gold-hi);
    display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.kicker::after { content: ""; flex: 1; max-width: 92px; height: 1px; background: var(--gold-dim); }
.sec--paper .kicker { color: var(--gold); }
.sec--paper .kicker::after { background: rgba(159, 129, 36, .38); }
.sec__head h2 { font-size: clamp(24px, 4.2vw, 56px); }
.sec__lead {
    max-width: 40em; margin-top: clamp(16px, 2vw, 26px);
    color: var(--muted); font-size: clamp(13px, 1.05vw, 15px);
}
.sec--paper .sec__lead { color: #55524b; }
.em { color: var(--gold-hi); }
.sec--paper .em { color: var(--gold); }

/* ---------- 01 事業 ---------- */

.svc { border-top: 1px solid var(--line); }
.svc__row {
    display: grid; grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1.35fr) 40px;
    align-items: center; gap: clamp(14px, 2vw, 32px);
    padding-block: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line);
    position: relative;
}
.svc__row::before {
    content: ""; position: absolute; inset: 0 -14px; z-index: -1;
    background: linear-gradient(90deg, rgba(159, 129, 36, .12), transparent 60%);
    opacity: 0; transition: opacity .4s;
}
.svc__row:hover::before { opacity: 1; }
.svc__no { font-family: var(--num); font-weight: 300; font-size: clamp(28px, 3.4vw, 46px); color: var(--gold); line-height: 1; }
.svc__en { font-family: var(--num); font-size: 10px; letter-spacing: .24em; color: var(--muted); margin-bottom: 4px; }
.svc__main h3 { font-size: clamp(18px, 2.1vw, 28px); }
.svc__desc { color: var(--muted); font-size: clamp(12.5px, 1vw, 14.5px); }
.svc__arrow { color: var(--gold); font-size: 18px; transition: transform .4s; }
.svc__row:hover .svc__arrow { transform: translateX(8px); }

/* ---------- 配管バンド ---------- */

.band { position: relative; z-index: 1; background: var(--ink); border-block: 1px solid var(--line); overflow: hidden; }
.band__media { position: absolute; inset: 0; }
.band__media img {
    width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
    filter: grayscale(1) brightness(.26) contrast(1.1);
}
.band__pipe { position: relative; display: block; width: 100%; height: clamp(150px, 21vw, 250px); }
.band__tag {
    position: absolute; top: 14px; left: var(--gutter);
    font-family: var(--num); font-size: 10px; letter-spacing: .2em; color: var(--gold-hi);
}
/* キャプションは絶対配置にしない。スマホで2行に折り返した瞬間、
   canvas の中に食い込んで管の上に重なる */
.band__cap {
    position: relative; padding: 0 var(--gutter) 16px;
    font-size: 11px; letter-spacing: .08em; color: rgba(255, 255, 255, .55);
}

/* ---------- 銘板・数値 ---------- */

.plate { border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.plate__head {
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 11px 18px; border-bottom: 1px solid var(--line);
    font-family: var(--num); font-size: 10px; letter-spacing: .2em; color: var(--muted);
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(22px, 3vw, 38px) clamp(14px, 2vw, 26px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b {
    display: block; font-family: var(--num); font-weight: 400;
    font-size: clamp(30px, 4.4vw, 60px); line-height: 1; color: #fff;
}
.stat b i { font-style: normal; font-size: .42em; color: var(--gold-hi); margin-left: 3px; letter-spacing: .04em; }
/* 数字と同じ字送りだと和文の方が図体が大きく見えるので、明朝で一段落とす */
.stat b em { font-style: normal; font-family: var(--serif); font-size: .74em; letter-spacing: .04em; }
.stat > span { display: block; margin-top: 10px; font-size: 10.5px; letter-spacing: .14em; color: var(--muted); }

/* ---------- 02 工程（縦のライン＝配管ルート） ---------- */

.proc { position: relative; padding-left: clamp(34px, 5vw, 62px); }
.proc__line {
    position: absolute; left: clamp(9px, 1.4vw, 17px); top: 8px; bottom: 8px; width: 2px;
    background: var(--line);
}
.proc__fill {
    position: absolute; inset: 0; background: linear-gradient(180deg, var(--gold-hi), var(--gold));
    transform: scaleY(0); transform-origin: 50% 0;
}
.proc__row { position: relative; padding-block: clamp(18px, 2.4vw, 30px); }
.proc__row::before {
    content: ""; position: absolute; left: calc(clamp(34px, 5vw, 62px) * -1 + clamp(9px, 1.4vw, 17px) - 4px);
    top: calc(clamp(18px, 2.4vw, 30px) + 12px); width: 10px; height: 10px;
    background: var(--ink-2); border: 2px solid var(--line); border-radius: 50%;
    transition: border-color .4s, box-shadow .4s, background-color .4s;
}
.proc__row.on::before { border-color: var(--gold-hi); background: var(--gold-hi); box-shadow: 0 0 0 5px rgba(210, 174, 68, .14); }
.proc__no { font-family: var(--num); font-size: 11px; letter-spacing: .22em; color: var(--gold); margin-bottom: 6px; }
.proc__row h3 { font-size: clamp(17px, 1.9vw, 25px); }
.proc__row p { color: var(--muted); font-size: clamp(12.5px, 1vw, 14.5px); margin-top: 8px; max-width: 42em; }

.proc-figure { position: relative; }
.proc-figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: grayscale(.5) contrast(1.06) brightness(.82); }
.proc-figure figcaption {
    position: absolute; left: 0; bottom: 0; right: 0; padding: 26px 18px 14px;
    background: linear-gradient(transparent, rgba(11, 11, 12, .9));
    font-size: 11px; letter-spacing: .1em; color: rgba(255, 255, 255, .78);
}
.proc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .62fr); gap: clamp(28px, 4vw, 64px); align-items: start; }

/* ---------- 03 実績 ---------- */

.rec { display: grid; gap: clamp(30px, 4vw, 54px); }
.rec__group { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: clamp(14px, 2.4vw, 40px); align-items: start; }
.rec__year {
    position: sticky; top: 96px;
    font-family: var(--num); font-weight: 300; font-size: clamp(34px, 4.6vw, 62px);
    line-height: 1; color: var(--gold);
}
.rec__year small { display: block; font-size: 10px; letter-spacing: .2em; color: var(--muted); margin-top: 8px; font-family: var(--sans); }
.rec__list li {
    position: relative; padding: 12px 0 12px 26px; border-bottom: 1px dashed var(--line-ink);
    font-size: clamp(12.5px, 1.05vw, 15px); color: #33312c;
}
.rec__list li::before {
    content: ""; position: absolute; left: 2px; top: 21px; width: 12px; height: 1px; background: var(--gold);
}
.rec__note { margin-top: 22px; font-size: 11.5px; color: #6c6862; letter-spacing: .06em; }

/* ---------- 04 拠点 ---------- */

.base { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); }
.base__item { padding: clamp(22px, 3vw, 36px); border-left: 1px solid var(--line); }
.base__item:first-child { border-left: 0; }
.base__no { font-family: var(--num); font-size: 10px; letter-spacing: .22em; color: var(--gold); }
.base__item h3 { font-size: clamp(17px, 1.8vw, 23px); margin-top: 10px; }
.base__item p { color: var(--muted); font-size: 12px; margin-top: 12px; letter-spacing: .06em; }
.base__item a {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 4px;
    font-size: 12.5px; color: var(--text); border-bottom: 1px solid var(--gold-dim); padding-bottom: 2px;
    transition: color .25s, border-color .25s;
}
.base__item a:hover { color: var(--gold-hi); border-color: var(--gold-hi); }

.base-figure { margin-top: clamp(28px, 4vw, 52px); position: relative; }
/* 昼撮りの外観だけ他より明るく浮くので、周囲の墨に寄せる */
.base-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: grayscale(.55) contrast(1.06) brightness(.78); }
.base-figure figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 14px;
    background: linear-gradient(transparent, rgba(11, 11, 12, .88));
    font-size: 11px; letter-spacing: .1em; color: rgba(255, 255, 255, .78);
}

/* ---------- 05 会社概要 ---------- */

.docbar {
    display: flex; gap: 18px; flex-wrap: wrap; padding: 10px 16px;
    border: 1px solid var(--line); border-bottom: 0;
    font-family: var(--num); font-size: 10px; letter-spacing: .2em; color: var(--muted);
}
.info { border: 1px solid var(--line); }
.info__row { display: grid; grid-template-columns: 220px minmax(0, 1fr); border-top: 1px solid var(--line); }
.info__row:first-child { border-top: 0; }
.info__row dt {
    padding: 16px 20px; background: rgba(255, 255, 255, .02);
    font-size: 12.5px; letter-spacing: .1em; color: var(--text);
    display: flex; flex-direction: column; gap: 3px;
}
.info__row dt b { font-family: var(--num); font-weight: 400; font-size: 9.5px; letter-spacing: .2em; color: var(--gold); }
.info__row dd { padding: 16px 20px; color: var(--muted); font-size: 13.5px; }
.info__row dd a { border-bottom: 1px solid var(--gold-dim); }

/* ---------- CTA ---------- */

.cta { position: relative; z-index: 1; background: var(--gold); color: #14110a; overflow: hidden; }
.cta__inner {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
    gap: clamp(26px, 4vw, 60px); align-items: center;
    padding-block: clamp(56px, 8vw, 110px);
}
.cta h2 { font-size: clamp(23px, 3.6vw, 46px); color: #14110a; }
.cta p { margin-top: 16px; font-size: 13.5px; color: rgba(20, 17, 10, .78); max-width: 34em; }
.cta__actions { display: grid; gap: 12px; }
.cta__btn {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 17px 22px; border: 1px solid rgba(20, 17, 10, .3);
    font-size: 13.5px; letter-spacing: .08em;
    transition: background-color .3s, color .3s, transform .3s, border-color .3s;
}
.cta__btn span { display: flex; flex-direction: column; gap: 2px; }
.cta__btn small { font-family: var(--num); font-size: 9.5px; letter-spacing: .2em; opacity: .7; }
.cta__btn i { font-style: normal; transition: transform .3s; }
.cta__btn:hover { background: #14110a; color: var(--paper); border-color: #14110a; }
.cta__btn:hover i { transform: translateX(6px); }
.cta__btn--solid { background: #14110a; color: var(--paper); border-color: #14110a; }
.cta__btn--solid:hover { background: var(--paper); color: #14110a; border-color: #14110a; }
.cta__ghost {
    position: absolute; right: -2%; top: 50%; transform: translateY(-50%);
    font-family: var(--num); font-weight: 200; font-size: clamp(90px, 15vw, 210px);
    color: rgba(20, 17, 10, .09); line-height: 1; white-space: nowrap; pointer-events: none;
}

/* ---------- フッター ---------- */

.foot { position: relative; z-index: 1; background: var(--ink); padding: clamp(44px, 6vw, 80px) var(--gutter) 28px; }
.foot__mark {
    font-family: var(--num); font-weight: 200; font-size: clamp(34px, 8.4vw, 118px);
    line-height: 1; letter-spacing: .04em; color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .12); white-space: nowrap;
    margin-bottom: clamp(24px, 4vw, 48px);
}
.foot__nav { display: flex; flex-wrap: wrap; gap: 10px clamp(16px, 2.4vw, 30px); margin-bottom: 26px; }
.foot__nav a { font-size: 12.5px; color: var(--muted); transition: color .25s; }
.foot__nav a:hover { color: var(--gold-hi); }
.foot__row {
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
    padding-top: 20px; border-top: 1px solid var(--line);
    font-size: 11.5px; color: var(--muted); letter-spacing: .06em;
}
.foot__row a:hover { color: var(--gold-hi); }

/* ---------- 出現 ---------- */

.rise { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.16, 1, .3, 1); }
.rise.on { opacity: 1; transform: none; }
.rise:nth-child(2) { transition-delay: .07s; }
.rise:nth-child(3) { transition-delay: .14s; }
.rise:nth-child(4) { transition-delay: .21s; }

/* ---------- レスポンシブ ---------- */

@media (max-width: 1000px) {
    .svc__row { grid-template-columns: 62px minmax(0, 1fr) 28px; }
    .svc__desc { grid-column: 2 / -1; }
    .proc-grid { grid-template-columns: 1fr; }
    .cta__inner { grid-template-columns: 1fr; }
    .info__row { grid-template-columns: 168px minmax(0, 1fr); }
}

@media (max-width: 780px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
    .base { grid-template-columns: 1fr; }
    .base__item { border-left: 0; border-top: 1px solid var(--line); }
    .base__item:first-child { border-top: 0; }
    .rec__group { grid-template-columns: 1fr; }
    .rec__year { position: static; display: flex; align-items: baseline; gap: 12px; }
    .rec__year small { margin-top: 0; }
}

@media (max-width: 640px) {
    body { line-height: 1.85; }
    .head { padding: 13px var(--gutter); }
    .head__nav { gap: 14px; }
    .head__nav a { font-size: 10.5px; letter-spacing: .1em; }
    .head__nav a b { display: none; }

    /* スマホは画面いっぱいの写真だと文字が沈むので、写真を上の帯に切り、
       本文はその下の黒地に置く。全高ヒーローの拡大・見切れもこれで消える */
    .hero {
        /* 写真帯の高さは3箇所で使うので変数に持つ。ずらすと必ず継ぎ目が出る */
        --band: 34svh; --band-min: 212px; --band-top: 82px;
        min-height: 0; padding: var(--band-top) 0 clamp(34px, 6vh, 52px);
        display: block;
    }
    .hero__media {
        position: relative; inset: auto; z-index: 0;
        /* 見出しが折り返し2行になるので、写真帯はここまで。
           これ以上高いと1画面目にキャッチが収まらない */
        height: var(--band); min-height: var(--band-min); overflow: clip;
    }
    .hero__media img {
        position: absolute; inset: 0; transform: none; object-position: 50% 44%;
        filter: grayscale(.72) contrast(1.12) brightness(.5);
    }
    .hero::before { height: calc(var(--band) + var(--band-top)); min-height: calc(var(--band-min) + var(--band-top)); }
    /* 走査光はスマホでも残す。ここが動かないと第一画面が完全に静止画になる。
       写真が z-index:0 の通常フローになるので、負のz-indexのままだと裏に隠れる */
    .hero__scan {
        top: var(--band-top); bottom: auto; z-index: 1;
        height: var(--band); min-height: var(--band-min);
    }
    .hero__frame, .hero__scroll { display: none; }
    .hero__ghost { top: 20%; font-size: 62px; }
    .hero__inner { padding: clamp(20px, 4vh, 32px) var(--gutter) 0; }
    .hero h1 { font-size: clamp(30px, 10.2vw, 46px); }
    /* 英字＋和文を1行に流すと必ず折り返して見苦しいので、頭から2段に組む */
    .hero__eyebrow { font-size: 10px; letter-spacing: .24em; }
    .hero__eyebrow i { display: none; }
    .hero__eyebrow span { display: block; margin-top: 5px; font-size: 11px; }
    .hero__lead { font-size: 13px; }
    .hero__meta span { font-size: 10px; padding: 5px 10px; }

    .svc__row { grid-template-columns: 46px minmax(0, 1fr); gap: 10px 14px; }
    .svc__arrow { display: none; }
    .svc__desc { grid-column: 2 / -1; }
    .proc { padding-left: 30px; }
    .proc__line { left: 8px; }
    .proc__row::before { left: -26px; }
    .info__row { grid-template-columns: 1fr; }
    .info__row dt { padding-bottom: 6px; flex-direction: row; align-items: baseline; gap: 8px; }
    .info__row dd { padding-top: 0; }
    .band__pipe { height: 150px; }
    .band__cap { font-size: 10.5px; padding-bottom: 18px; }
    .cta__ghost { display: none; }
    .foot__mark { font-size: 30px; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ch { transform: none; opacity: 1; transition: none; }
    .rise { opacity: 1; transform: none; transition: none; }
    .marquee__track, .hero__scan i, .hero__scroll i::after { animation: none; }
    .hero__media img { transform: none; }
    .proc__fill { transform: scaleY(1); }
    .hero__scroll { display: none; }

    /* 流れないマーキーは、画面に入る2〜3社しか出ず客先名がほぼ消える。
       止めるだけでなく、全社名を折り返して並べる静的リストに組み替える */
    .marquee { width: 100%; }
    .marquee__track { flex-wrap: wrap; padding: 0 var(--gutter); gap: 8px clamp(14px, 2.4vw, 28px); white-space: normal; }
    .marquee__track [data-dup] { display: none; }
    .mq { padding-block: 16px; }
}
