/* =========================================================
   AIP合同会社 ホームページ B案（モーション重視・モノトーン＋紺）
   参考: prty.jp のレイアウトと動き
   色はここ（:root）だけで定義する
   ========================================================= */
:root {
  --paper: #f7f6f4;       /* 背景：生成りの白 */
  --ink: #1d2b45;         /* 紺：文字・反転セクション */
  --ink-deep: #121c30;
  --gold: #c9a24a;        /* 金：アクセント（ロゴの山と同じ） */
  --gold-light: #e9d49a;
  --sub: #6b7280;         /* 補足文字 */
  --line: rgba(29, 43, 69, 0.16);
  --font-en: "Jost", "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
  --font-ja: "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Sans", sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-ja); font-size: 15px; line-height: 1.9; letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.en { font-family: var(--font-en); font-weight: 500; letter-spacing: 0.01em; }
.label { font-family: var(--font-en); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.wrap { padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nw { display: inline-block; }

/* ---------- 読み込み画面（三角が縮んで消えていく。三角は js/main.js でcanvasに描く） ---------- */
.loader { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.loader canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader .loader-mark { position: fixed; left: 50%; top: 50%; width: 120px; transform: translate(-50%, -50%); transition: opacity 0.4s; }
.loader.done .loader-mark { opacity: 0; }
.loader.gone { display: none; }

/* ---------- ヘッダー ---------- */
.hd { position: fixed; top: 0; left: 0; right: 0; z-index: 90; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--gutter); pointer-events: none; color: var(--ink); border-bottom: 1px solid transparent; transition: color .4s, background-color .4s, border-color .4s, transform .5s var(--ease); }
.hd.on-dark { color: #fff; }
/* スクロール中：下に進むと隠れ、上に戻すと背景付きで出てくる（本文と重ならないように） */
.hd.solid { background: var(--paper); border-bottom-color: var(--line); }
.hd.solid.on-dark { background: var(--ink); border-bottom-color: transparent; }
.hd.hide { transform: translateY(-100%); }
body.menu-open .hd { color: var(--ink); background: transparent; border-bottom-color: transparent; transform: none; }
.hd > * { pointer-events: auto; }
.hd-logo { width: 74px; opacity: 0; transform: translateY(-8px); transition: opacity .5s, transform .5s var(--ease); }
.hd-logo svg { width: 100%; height: auto; fill: currentColor; }
.hd-logo .mt { fill: var(--gold); }
.hd.show-logo .hd-logo { opacity: 1; transform: none; }
.hd-right { display: flex; align-items: center; gap: 24px; }
.menu-btn { height: 44px; min-width: 44px; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: flex-end; gap: 24px; padding: 0 7px 0 0; color: inherit; }
.menu-txt { font-family: var(--font-en); font-size: 13px; letter-spacing: 0.1em; } /* 「MENU」の文字（開いている間は「CLOSE」） */
.menu-txt::after { content: " →"; }
/* メニューボタン：ロゴの「A」を4つの部品に分けたアイコン（開くと両脚が交差して×） */
.menu-icon { width: 30px; height: auto; overflow: visible; }
.menu-icon path { fill: currentColor; transform-box: fill-box; transform-origin: center; transition: transform .55s var(--ease), opacity .3s; }
.menu-icon .mi-mt { fill: var(--gold); }
.menu-btn:hover .mi-mt { transform: translateY(-2.5px); }
body.menu-open .menu-icon .mi-left { transform: translate(8.5px, -6px) scale(1, 1.6); }
body.menu-open .menu-icon .mi-right { transform: translate(-8.5px, -6px) scale(1, 1.6); }
body.menu-open .menu-icon .mi-top, body.menu-open .menu-icon .mi-mt { transform: scale(0); opacity: 0; }
body.menu-open .hd .hd-logo, body.menu-open .hd.show-logo .hd-logo { opacity: 0; pointer-events: none; }

/* ---------- 全画面メニュー ---------- */
.menu { position: fixed; inset: 0; z-index: 80; background: var(--paper); color: var(--ink); display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; padding: 110px var(--gutter) 28px; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); overflow-y: auto; }
body.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu-logo { position: absolute; left: var(--gutter); top: 22px; width: 96px; }
.menu-nav a { display: flex; align-items: baseline; gap: 14px; text-decoration: none; font-family: var(--font-en); font-weight: 500; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.25; letter-spacing: 0.01em; overflow: hidden; }
.menu-nav a small { font-family: var(--font-ja); font-size: 12px; color: var(--sub); letter-spacing: 0.1em; }
.menu-nav a span { display: inline-block; transform: translateY(105%); transition: transform .7s var(--ease); }
body.menu-open .menu-nav a span { transform: none; }
.menu-nav a:hover span { color: var(--gold); }
.menu-nav a[aria-current="page"] span::before { content: ""; display: inline-block; width: 12px; height: 10px; background: var(--gold); clip-path: polygon(50% 0, 100% 100%, 0 100%); margin-right: 12px; vertical-align: middle; }
.menu-nav .menu-cta { margin-top: 26px; }
.menu-nav .menu-cta span::after { content: " →"; }

/* Aの図（メニュー右側・トップと選ばれる理由のサービス入口）：部品と札が連動する */
.a-fig { position: relative; width: 100%; aspect-ratio: 1 / 1; border: 1px solid var(--line); }
/* PCのメニュー：図は左の文字（TOP〜CONTACT：8行＋余白）より少し大きくし、文字と図の中心の高さをそろえる */
.menu .a-fig { width: min(100%, calc((10 * clamp(28px, 3.6vw, 46px) + 26px) * 1.15), calc(100svh - 240px)); min-width: min(100%, 380px); margin-left: auto; container-type: inline-size; }
@media (min-width: 901px) {
  .menu { grid-template-rows: 1fr auto; }
  .menu-nav, .menu-side { align-self: center; }
  .menu .ma-lb { font-size: clamp(12px, 3cqi, 16px); }
}
.ma-svg, .ma-flow { position: absolute; left: 50%; top: 47%; width: 46%; transform: translate(-50%, -50%); overflow: visible; }
.ma-flow { pointer-events: none; }
.ma-flow path { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-dasharray: 4 6; opacity: 0; transition: opacity .5s .8s; }
.ma-flow .arr { fill: var(--gold); stroke: none; }
.a-fig.built .ma-flow path { opacity: .9; }
.ma-part { fill: var(--ink); cursor: pointer; transform-box: fill-box; transform-origin: center; transition: transform .9s var(--ease), opacity .4s; }
.ma-part.p-mt { fill: var(--gold); }
.a-fig .p-left { transition-delay: .05s; } .a-fig .p-right { transition-delay: .12s; } .a-fig .p-top { transition-delay: .2s; } .a-fig .p-mt { transition-delay: .4s; }
/* 組み上がる前の位置（メニューを開くたび・トップでは画面に入ったときに集まってAになる） */
.a-fig:not(.built) .p-top { transform: translateY(-30px) rotate(-18deg); opacity: 0; }
.a-fig:not(.built) .p-left { transform: translate(-40px, 24px) rotate(-10deg); opacity: 0; }
.a-fig:not(.built) .p-right { transform: translate(40px, 24px) rotate(10deg); opacity: 0; }
.a-fig:not(.built) .p-mt { transform: translateY(40px) scale(.4); opacity: 0; }
.a-fig.has-active .ma-part { opacity: .16; transition-delay: 0s; }
.a-fig.has-active .ma-part.active { opacity: 1; }
.a-fig .p-mt.active { transform: translateY(-7px); }
.ma-lb { position: absolute; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); padding: 10px 14px 11px; font-family: var(--font-en); font-weight: 500; font-size: clamp(13px, 1.25vw, 18px); line-height: 1.15; text-transform: uppercase; transition: background .35s, color .35s, opacity .35s, border-color .35s; }
.ma-lb small { display: block; font-family: var(--font-ja); font-size: 11px; letter-spacing: .12em; margin-top: 6px; text-transform: none; }
.ma-lb i { position: absolute; top: -5px; left: 14px; width: 10px; height: 9px; background: var(--ink); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.ma-lb.gold i { background: var(--gold); }
.ma-lb.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ma-lb.gold.active { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.a-fig.has-active .ma-lb:not(.active) { opacity: .5; }
.ma-lb:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.l-left { left: 5%; top: 70%; } .l-top { right: 5%; top: 9%; } .l-right { right: 5%; top: 70%; }
.l-mt { left: 50%; bottom: 6%; transform: translateX(-50%); text-align: center; }
.l-mt i { left: 50%; margin-left: -5px; }
.sec > .a-fig { max-width: 640px; margin: 0 auto; } /* 下層ページでは大きくなりすぎないよう中央に置く */

/* メニューの連絡先（PCでは文字と図のあいだの列、狭い画面では横一列の帯） */
.menu-info { align-self: center; font-size: 13px; color: var(--sub); opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease) .35s, transform .8s var(--ease) .35s; }
body.menu-open .menu-info { opacity: 1; transform: none; }
.menu-info .label { color: var(--ink); margin-bottom: 14px; }
.menu-info a { text-decoration: none; }
.mc-tel, .mc-mail { display: block; }
.mc-tel small, .mc-mail small { display: block; font-family: var(--font-en); font-size: 11px; letter-spacing: .12em; }
.mc-tel b { display: block; font-family: var(--font-en); font-weight: 500; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.3; letter-spacing: .02em; color: var(--ink); }
.mc-mail { margin-top: 18px; }
.mc-mail b { font-family: var(--font-en); font-weight: 500; font-size: 15px; color: var(--ink); }
.mc-tel:hover b, .mc-mail:hover b { color: var(--gold); }
.mc-cta { display: inline-block; white-space: nowrap; margin-top: 24px; padding: 12px 18px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 700; letter-spacing: .06em; transition: background .3s; }
.mc-cta::after { content: " →"; }
.mc-cta:hover { background: var(--ink-deep); }
.mc-note { margin-top: 12px; font-size: 12px; line-height: 1.8; }
/* 幅1200px以上：文字｜連絡先｜図 の3列（図が小さくなりすぎない分だけ、連絡先の列が広がる） */
@media (min-width: 1200px) {
  .menu { grid-template-columns: max-content minmax(220px, 1fr) minmax(0, calc((10 * clamp(28px, 3.6vw, 46px) + 26px) * 1.15)); column-gap: clamp(36px, 3.2vw, 64px); }
  .menu-info { justify-self: center; }
}
/* 1199px以下：連絡先は横一列の帯にする */
@media (max-width: 1199px) {
  .menu-info { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; border-top: 1px solid var(--line); padding-top: 18px; }
  .menu-info .label { margin: 0; }
  .mc-tel, .mc-mail { display: flex; align-items: baseline; gap: 10px; margin: 0; }
  .mc-tel b { font-size: 22px; }
  .mc-cta { margin: 0; }
  .mc-note { display: none; }
}
@media (min-width: 901px) and (max-width: 1199px) {
  .menu { grid-template-rows: 1fr auto auto; }
  .menu-side { grid-column: 2; grid-row: 1; }
  .menu-info { grid-column: 1 / -1; grid-row: 2; }
  .menu .a-fig { max-width: calc(100svh - 340px); } /* 連絡先の帯のぶん、図を画面の高さに収める */
}
.menu-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; font-size: 12px; color: var(--sub); border-top: 1px solid var(--line); padding-top: 16px; align-self: end; }
.menu-foot a { text-decoration: none; }


/* ---------- 共通の文字アニメーション（下からせり上がる） ---------- */
.rise { display: block; overflow: hidden; }
.rise > span { display: block; transform: translateY(110%); transition: transform 1s var(--ease); }
.inview .rise > span, .rise.inview > span { transform: none; }
.fade { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.fade.inview { opacity: 1; transform: none; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.hero canvas.particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-top { position: absolute; left: var(--gutter); right: var(--gutter); top: 96px; display: flex; justify-content: space-between; gap: 24px; }
.hero-lead { font-size: clamp(15px, 1.15vw, 17px); font-weight: 500; line-height: 2; max-width: 18.5em; } /* 文の切れ目（.nw）でだけ改行し、3行に収める */
.hero-mark { position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); }
.hero-mark svg { width: 100%; height: auto; overflow: visible; }
.hero-mark .ltr { transform-box: fill-box; transform-origin: 50% 100%; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.hero-mark .mt { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform 1s var(--ease) 0.9s; }
.ready .hero-mark .ltr { transform: none; }
.ready .hero-mark .ltr:nth-of-type(2) { transition-delay: .1s; }
.ready .hero-mark .ltr:nth-of-type(3) { transition-delay: .2s; }
.ready .hero-mark .mt { transform: none; }
.hero-mark .clip { clip-path: inset(-2% -2% 0 -2%); }
.scroll-cue { position: absolute; right: var(--gutter); top: 50%; writing-mode: vertical-rl; font-family: var(--font-en); font-size: 11px; letter-spacing: 0.2em; }
.scroll-cue::after { content: ""; display: inline-block; width: 1px; height: 56px; background: currentColor; margin-top: 12px; animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- ミッション（スクロールで横に流れる巨大文字） ---------- */
.mission { position: relative; height: 280vh; padding: 0 var(--gutter); }
.mission-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-bottom: 8vh; margin: 0 calc(var(--gutter) * -1); }
.mission-line { font-family: var(--font-en); font-weight: 500; font-size: clamp(56px, 13vw, 200px); line-height: 0.95; white-space: nowrap; text-transform: uppercase; will-change: transform; }
.mission-line span { display: inline-block; }
.mission-meta { position: absolute; left: var(--gutter); right: var(--gutter); top: 18%; display: flex; justify-content: space-between; }
.mission-text { position: absolute; left: 50%; bottom: 12%; transform: translateX(-36%); font-weight: 700; font-size: clamp(14px, 1.3vw, 17px); line-height: 2.1; }
.mission-text p { opacity: 0; transform: translateY(16px); transition: .9s var(--ease); }
.mission.show-text .mission-text p { opacity: 1; transform: none; }
.mission.show-text .mission-text p:nth-child(2) { transition-delay: .08s; }
.mission.show-text .mission-text p:nth-child(3) { transition-delay: .16s; }
.mission.show-text .mission-text p:nth-child(4) { transition-delay: .24s; }

/* ---------- サービスの入口（4分割） ---------- */
.overview { display: grid; grid-template-columns: 1fr minmax(320px, 46vw); gap: 6vw; padding: 140px var(--gutter); align-items: end; }
.overview-title { font-family: var(--font-en); font-weight: 500; font-size: clamp(40px, 6vw, 92px); line-height: 1; text-transform: uppercase; }
.overview-text { margin-top: 32px; max-width: 26em; }

/* ---------- サービス（Qセクション） ---------- */
.q { position: relative; padding: 140px var(--gutter) 60px; }
.q--dark { background: var(--ink); color: #fff; }
.q-head { display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; align-items: end; margin-bottom: 110px; }
.q-no { font-family: var(--font-en); font-size: 13px; letter-spacing: 0.12em; margin-bottom: 14px; }
.q-title { font-family: var(--font-en); font-weight: 500; font-size: clamp(48px, 8.4vw, 136px); line-height: 0.95; text-transform: uppercase; }
.q-ja { font-weight: 700; font-size: 20px; margin-bottom: 18px; }
.q-desc { max-width: 30em; }

/* 案件ブロック（prty.jp のプロジェクト表示） */
.item { position: relative; display: grid; grid-template-columns: 60px 1fr; gap: 0 2vw; margin: 0 auto 160px; max-width: 1180px; }
.item-side { writing-mode: vertical-rl; font-family: var(--font-en); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; padding-top: 12px; }
.item-body { position: relative; }
.item-title { position: relative; z-index: 2; font-family: var(--font-en); font-weight: 500; font-size: clamp(44px, 8vw, 128px); line-height: 0.92; text-transform: uppercase; margin-bottom: -0.32em; pointer-events: none; }
.item-media { position: relative; width: min(62%, 720px); margin-left: 4%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.item-media.sq { aspect-ratio: 1 / 1; width: min(52%, 600px); }
.item-media img, .item-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item-tags { position: absolute; left: calc(4% + min(62%, 720px) + 28px); top: 52%; z-index: 2; display: grid; gap: 12px; font-family: var(--font-en); font-weight: 500; font-size: clamp(14px, 1.5vw, 21px); line-height: 1.15; text-transform: uppercase; }
.item-tags span::before { content: ""; display: inline-block; width: 9px; height: 8px; background: var(--gold); clip-path: polygon(50% 0, 100% 100%, 0 100%); margin-right: 10px; vertical-align: middle; }
.item:has(.sq) .item-tags { left: calc(4% + min(52%, 600px) + 28px); }
.item-text { margin: 32px 0 0 calc(4% + min(62%, 720px) * 0.5); font-weight: 700; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.9; }
.item-text small { display: block; font-weight: 400; font-size: 14px; margin-top: 14px; color: var(--sub); }
.q--dark .item-text small { color: rgba(255,255,255,.65); }
.item:nth-child(even) .item-media { margin-left: auto; margin-right: 4%; }
.item:nth-child(even) .item-tags { left: auto; right: calc(4% + min(62%, 720px) + 28px); text-align: right; }
.item:nth-child(even):has(.sq) .item-tags { right: calc(4% + min(52%, 600px) + 28px); }
.item:nth-child(even) .item-text { margin-left: 8%; }

/* 施工前・施工後のスライダー（つまみを左右に動かして見比べる） */
.ba { --x: 50%; user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: ew-resize; }
.ba img { pointer-events: none; }
.ba .before { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.ba .tag { position: absolute; bottom: 14px; z-index: 2; font-family: var(--font-en); font-weight: 500; font-size: 11px; letter-spacing: .12em; padding: 4px 10px; pointer-events: none; transition: opacity .3s; }
.ba.hide-b .tag.b, .ba.hide-a .tag.a { opacity: 0; }
.ba .tag.b { left: 14px; background: var(--ink); color: var(--paper); }
.ba .tag.a { right: 14px; background: var(--gold); color: var(--ink); }
.ba .bar { position: absolute; top: 0; bottom: 0; left: var(--x); z-index: 3; width: 2px; margin-left: -1px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); pointer-events: none; }
.ba .knob { position: absolute; left: var(--x); top: 50%; z-index: 4; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 6px 20px var(--line); pointer-events: none; transition: transform .3s var(--ease); }
.ba .knob i { width: 9px; height: 12px; background: var(--gold); clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.ba .knob i + i { clip-path: polygon(0 0, 100% 50%, 0 100%); }
.ba:hover .knob, .ba.drag .knob { transform: scale(1.08); }
.ba input { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba input:focus-visible ~ .knob { outline: 3px solid var(--gold); outline-offset: 3px; }

/* チェックリスト */
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); max-width: 1180px; margin: 0 auto; }
.points li { padding: 22px 0 22px 34px; border-bottom: 1px solid var(--line); position: relative; }
.points li:nth-child(odd) { margin-right: 32px; }
.points li::before { content: ""; position: absolute; left: 0; top: 33px; width: 12px; height: 10px; background: var(--gold); clip-path: polygon(50% 0, 100% 100%, 0 100%); }

/* ---------- 選ばれる理由（紺） ---------- */
.reasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.2); }
.reasons li { padding: 36px 28px 40px 0; border-right: 1px solid rgba(255,255,255,.2); margin-right: 28px; }
.reasons li:last-child { border-right: 0; margin-right: 0; }
.reasons .num { font-family: var(--font-en); font-weight: 500; font-size: clamp(56px, 6vw, 96px); line-height: 1; color: var(--gold-light); }
.reasons .en-t { font-family: var(--font-en); font-size: 13px; letter-spacing: .12em; margin: 22px 0 6px; text-transform: uppercase; }
.reasons h3 { font-size: 19px; margin-bottom: 12px; }
.reasons p { font-size: 14px; color: rgba(255,255,255,.75); }

/* ---------- 流れ ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); --p: 0; }
/* スクロールに合わせて、01→05へ金の線が伸びる（線が届いた番号から表示） */
.steps::after { content: ""; position: absolute; left: 0; top: -1.5px; height: 2px; width: calc(var(--p) * 100%); background: var(--gold); }
.steps li { padding: 28px 20px 0 0; position: relative; }
.steps li::before { content: ""; position: absolute; left: 0; top: -7px; width: 13px; height: 11px; background: var(--ink); clip-path: polygon(50% 0, 100% 100%, 0 100%); transition: background-color .4s; }
.steps li.on::before { background: var(--gold); }
.steps .num { font-family: var(--font-en); font-weight: 500; font-size: 64px; line-height: 1; }
.steps h3 { font-size: 17px; margin: 14px 0 8px; }
.steps p { font-size: 13.5px; color: var(--sub); }

/* ---------- 大きな誘導（CTA） ---------- */
.cta { position: relative; display: block; padding: 64px 0; text-decoration: none; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-info { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 0 var(--gutter); }
.cta-info b { font-family: var(--font-en); font-weight: 500; font-size: clamp(22px, 2.4vw, 32px); }

/* ---------- フッター ---------- */
.ft { background: var(--ink); color: #fff; padding: 100px var(--gutter) 28px; }
.ft-big { font-family: var(--font-en); font-weight: 500; font-size: clamp(44px, 9vw, 150px); line-height: .95; text-transform: uppercase; }
.ft-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; margin-top: 90px; font-size: 13px; color: rgba(255,255,255,.75); }
.ft-row img { width: 150px; margin-bottom: 18px; }
.ft-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; align-content: start; }
.ft-nav a { text-decoration: none; font-family: var(--font-en); letter-spacing: .08em; }
.ft-nav a:hover { color: var(--gold-light); }
.ft-copy { margin-top: 64px; display: flex; justify-content: space-between; font-family: var(--font-en); font-size: 11px; letter-spacing: .14em; color: rgba(255,255,255,.55); }

/* ---------- 下層ページ ---------- */
.ph { position: relative; min-height: 76svh; padding: 150px var(--gutter) 60px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.ph canvas { position: absolute; right: 0; top: 0; width: 46%; height: 100%; -webkit-mask-image: linear-gradient(to bottom, transparent 70px, var(--ink) 190px); mask-image: linear-gradient(to bottom, transparent 70px, var(--ink) 190px); } /* 上はヘッダーと重ならないよう消す */
.ph .crumb { position: absolute; top: 96px; left: var(--gutter); font-family: var(--font-en); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--sub); }
.ph .crumb a { text-decoration: none; }
.ph-title { position: relative; font-family: var(--font-en); font-weight: 500; font-size: clamp(56px, 11vw, 180px); line-height: .92; text-transform: uppercase; }
.ph-ja { position: relative; margin-top: 22px; font-weight: 700; font-size: 18px; }
.sec { padding: 110px var(--gutter); }
.sec + .sec { padding-top: 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 56px; }
.sec-head .en { font-size: clamp(28px, 3.4vw, 44px); text-transform: uppercase; }
.sec-head h2 { font-size: 15px; }
.q--dark .sec-head, .sec.dark .sec-head { border-color: rgba(255,255,255,.2); }
.sec.dark { background: var(--ink); color: #fff; padding-top: 110px; }
.lead-big { font-weight: 700; font-size: clamp(18px, 2vw, 26px); line-height: 1.9; max-width: 34em; margin-bottom: 72px; }

/* サービス詳細 */
.detail { display: grid; grid-template-columns: 1fr 1.3fr; gap: 5vw; padding: 48px 0; border-top: 1px solid var(--line); }
.detail-head .num { font-family: var(--font-en); font-size: 13px; letter-spacing: .14em; }
.detail-head h3 { font-size: 24px; margin-top: 10px; }
.detail-head .en { display: block; font-size: 15px; color: var(--sub); text-transform: uppercase; margin-top: 4px; }
.detail .checks li { position: relative; padding: 8px 0 8px 26px; }
.detail .checks li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 8px; background: var(--gold); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.detail .point { margin-top: 22px; padding: 18px 22px; background: #fff; font-size: 14px; }
.detail .point b { display: block; font-family: var(--font-en); font-size: 11px; letter-spacing: .14em; margin-bottom: 4px; color: var(--gold); }

/* よくある質問 */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 56px 1fr 30px; align-items: center; padding: 26px 0; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--font-en); font-size: 26px; font-weight: 500; }
.faq summary::after { content: "+"; font-family: var(--font-en); font-size: 28px; font-weight: 400; transition: transform .4s var(--ease); justify-self: end; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 30px 28px 56px; color: #3c4658; }

/* エリア */
.area-big { font-weight: 700; font-size: clamp(26px, 4vw, 52px); line-height: 1.4; }
.area-sub { margin-top: 18px; color: var(--sub); }

/* 会社概要 */
.company { display: grid; grid-template-columns: 1fr 1.3fr; gap: 6vw; }
.mvv { background: var(--ink); color: #fff; padding: 48px 40px; }
.mvv img { width: 170px; margin-bottom: 36px; }
.mvv div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.18); }
.mvv dt { font-family: var(--font-en); font-weight: 500; color: var(--gold-light); letter-spacing: .06em; }
.profile div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.profile div:last-child { border-bottom: 1px solid var(--line); }
.profile dt { color: var(--sub); font-size: 13px; }
.profile a { color: var(--ink); }
/* 個人情報の取り扱い */
.policy { max-width: 760px; margin: 0 auto; font-size: 14px; line-height: 2; }
.policy-lead { margin-bottom: 48px; }
.policy section { border-top: 1px solid var(--line); padding: 28px 0 32px; }
.policy h2 { display: flex; align-items: baseline; gap: 16px; font-size: 16px; margin-bottom: 10px; }
.policy h2 .en { font-family: var(--font-en); font-weight: 500; font-size: 13px; color: var(--gold); letter-spacing: .1em; }
.policy ul { margin-top: 8px; padding: 0; list-style: none; }
.policy li { position: relative; padding-left: 20px; }
.policy li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 9px; height: 8px; background: var(--gold); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.policy a { color: var(--ink); }
.policy-contact { margin-top: 14px; }
.policy-contact div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.policy-contact dt { color: var(--sub); font-size: 13px; }
.policy-date { border-top: 1px solid var(--line); padding-top: 20px; text-align: right; font-size: 13px; color: var(--sub); }
.ft-copy a { color: inherit; text-decoration: none; }
.ft-copy a:hover { color: #fff; }

/* お問い合わせ */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); margin-bottom: 80px; }
.ways a { display: block; padding: 36px 32px 36px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.ways a + a { padding-left: 32px; border-left: 1px solid var(--line); }
.ways .label { color: var(--sub); }
.ways b { display: block; font-family: var(--font-en); font-weight: 500; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.2; margin: 8px 0; }
.ways a:hover b { color: var(--gold); }
.ways small { color: var(--sub); }
.form { max-width: 820px; }
.form-row { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); align-items: start; }
.form-row label, .form-row .lbl { font-weight: 700; font-size: 14px; padding-top: 12px; }
.req { font-family: var(--font-en); font-size: 10px; letter-spacing: .1em; color: var(--gold); margin-left: 8px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 12px 2px; border-radius: 0; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom: 2px solid var(--gold); }
.form [aria-invalid="true"] { border-bottom-color: #c0392b; }
.agree { display: flex; gap: 10px; align-items: center; padding: 26px 0; border-top: 1px solid var(--line); font-size: 14px; }
.agree input { width: 18px; height: 18px; accent-color: var(--ink); }
.form-error { color: #c0392b; font-size: 14px; margin-bottom: 12px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* 迷惑メール対策の見えない欄 */
.send:disabled { opacity: .6; cursor: wait; }
.form-done { max-width: 820px; border-top: 1px solid var(--line); padding: 40px 0; }
.form-done:focus { outline: none; }
.form-done .label { color: var(--gold); }
.form-done h3 { font-size: clamp(20px, 2vw, 26px); margin: 10px 0 18px; }
.form-done p { font-size: 14px; line-height: 2; }
.form-done p + p { margin-top: 14px; }
.send { display: inline-flex; align-items: center; gap: 16px; font-family: var(--font-en); font-weight: 500; font-size: 28px; background: var(--ink); color: #fff; border: 0; padding: 18px 40px; cursor: pointer; letter-spacing: .04em; transition: background .3s; }
.send::after { content: "→"; transition: transform .4s var(--ease); }
.send:hover { background: var(--ink-deep); }
.send:hover::after { transform: translateX(6px); }

/* 下層ページの「詳しく」リンク */
.more { display: inline-flex; gap: 12px; align-items: center; font-family: var(--font-en); font-weight: 500; font-size: 18px; letter-spacing: .06em; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 6px; margin-top: 40px; }
.more::after { content: "→"; transition: transform .4s var(--ease); }
.more:hover::after { transform: translateX(6px); }

/* ---------- カーソル（PCのみ） ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--font-en); font-size: 12px; letter-spacing: .1em; pointer-events: none; transform: scale(0); transition: transform .35s var(--ease); }
.cursor.on { transform: scale(1); }

/* ---------- 仮置きの目印（公開前に削除） ---------- */

/* ---------- タブレット・スマホ ---------- */
@media (max-width: 900px) {
  /* 画面が狭いときは、メニューの文字の下にAの図を並べる */
  .menu { grid-template-columns: 1fr; padding-top: 90px; }
  .menu .a-fig { width: 100%; max-width: 560px; margin: 8px auto 0; }
  .ma-lb { font-size: 13px; padding: 8px 10px 9px; }
  .ma-lb small { font-size: 10px; }
  .l-left { left: 3%; } .l-right, .l-top { right: 3%; }
}
@media (max-width: 520px) {
  /* スマホでは図を縦長にして、札どうしが重ならないようにする */
  .a-fig { aspect-ratio: 4 / 5; }
  .ma-svg, .ma-flow { width: 40%; top: 40%; }
  .ma-lb { font-size: 11px; padding: 6px 8px 7px; }
  .l-top { top: 4%; } .l-left, .l-right { top: 60%; } .l-mt { bottom: 4%; }
}
@media (max-width: 960px) {
  .overview { grid-template-columns: 1fr; }
  .q-head { grid-template-columns: 1fr; margin-bottom: 70px; }
  .reasons { grid-template-columns: 1fr 1fr; }
  .reasons li:nth-child(2) { border-right: 0; margin-right: 0; }
  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line); margin-left: 6px; }
  .steps::after { top: 0; left: -1.5px; width: 2px; height: calc(var(--p) * 100%); }
  .steps li { padding: 0 0 36px 30px; }
  .steps li::before { left: -7px; top: 6px; }
  .steps .num { font-size: 44px; }
  .company, .detail { grid-template-columns: 1fr; }
  .ft-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  body { font-size: 14.5px; }
  .hd { padding: 14px var(--gutter); }
  .menu-txt { display: none; }
  .hero-top { flex-direction: column; top: 84px; }
  .scroll-cue { display: none; }
  .mission { height: 220vh; }
  .mission-text { left: var(--gutter); right: var(--gutter); transform: none; bottom: 10%; }
  .mission-meta { top: 14%; }
  .item { grid-template-columns: 26px 1fr; margin-bottom: 110px; }
  .item-media, .item-media.sq, .item:nth-child(even) .item-media { width: 100%; margin: 0; }
  .item-tags { display: none; }
  .item-text, .item:nth-child(even) .item-text { margin: 22px 0 0; }
  .ba .knob { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
  .points { grid-template-columns: 1fr; }
  .points li:nth-child(odd) { margin-right: 0; }
  .reasons { grid-template-columns: 1fr; }
  .reasons li { border-right: 0 !important; margin-right: 0 !important; border-bottom: 1px solid rgba(255,255,255,.2); padding-right: 0; }
  .ways { grid-template-columns: 1fr; }
  .ways a + a { padding-left: 0; border-left: 0; }
  .form-row { grid-template-columns: 1fr; gap: 4px; }
  .form-row label, .form-row .lbl { padding-top: 0; }
  .ph canvas { width: 100%; opacity: .22; }
  .sec { padding: 80px var(--gutter); }
  .cursor { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise > span, .fade, .hero-mark .ltr, .hero-mark .mt, .mission-text p { transform: none !important; opacity: 1 !important; }
  .loader { display: none; }
}
.ph-title, .ph-ja { display: block; }
.ph h1 { position: relative; font-weight: inherit; }
