/* =========================================================
   S Portfolio — style.css
   構成: Lenis → トークン → テーマ → ベース → 部品 → ヘッダー/レール
        → 各セクション → 詳細ページ → モーション初期状態 → レスポンシブ → reduced-motion

   配色の考え方（2026-09-23 改訂）:
   サイト全体のベースは爽やかな薄いブルー〜ブルーグレー。濃紺は「締め色」として
   Hero・図解パネル・一部の実績カード・Contact / フッターにだけ使う。
   テック感は濃い背景ではなく、線・グリッド・ノード・ティールのアクセント・タイポグラフィで出す。
   ========================================================= */

/* ---------- Lenis（lenis@1.3.26/dist/lenis.css） ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent], .lenis [data-lenis-prevent-wheel], .lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical], .lenis [data-lenis-prevent-horizontal] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis.lenis-autoToggle { transition-property: overflow; transition-duration: 1ms; transition-behavior: allow-discrete; }

/* ---------- トークン ---------- */
:root {
  /* 明るい面（ベース） */
  --bg-base: #F3F8FA;
  --bg-sub: #EAF3F6;
  --bg-strong: #DDECEF;
  --bg-linen: #F5F0E8;
  --ink-head: #0B2740;
  --ink-body: #17324D;
  --ink-2: #3E586E;
  --ink-3: #516A7E;
  /* 締め色の紺 */
  --hero-bg: #04192F;
  --navy-950: #071A2B;
  --navy-900: #0B2740;
  --navy-850: #0F2E4A;
  --navy-800: #143655;
  /* 暗い面の文字 */
  --text: #EDF3F6;
  --text-2: #AFC2CF;
  --text-3: #8AA1B3;
  /* アクセント */
  --teal-300: #56E4DB;
  --teal-500: #2FC2C7;
  --teal-700: #038FA1;
  --teal-800: #03707F;
  --mint-200: #B6E5E2;
  --ice-200: #CFECF2;
  --amber-300: #FFCC79;
  --amber-500: #E3A54E;
  --amber-700: #935A18;

  /* 文字 */
  --font-jp: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --font-en: "Space Grotesk", var(--font-jp);
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* レイアウト */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(96px, 12vw, 168px);
  --sheet-r: clamp(22px, 3vw, 40px);
  --header-h: 72px;
  --radius: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --icon-ext: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 11.5 11.5 4.5M6 4.5h5.5V10' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- テーマ（既定は明るい面） ---------- */
:root, .theme-base, .theme-sub, .theme-strong, .theme-linen {
  --bg: var(--bg-base);
  --fg-head: var(--ink-head);
  --fg: var(--ink-body);
  --fg-2: var(--ink-2);
  --fg-3: var(--ink-3);
  --line: rgba(11, 39, 64, .1);
  --line-strong: rgba(11, 39, 64, .17);
  --grid: rgba(11, 39, 64, .05);
  --card: #FFFFFF;
  --card-solid: #FFFFFF;
  --accent: var(--teal-800);
  --accent-fill: var(--teal-700);
  --accent-2: var(--amber-700);
  --c-machine: #4A6985;
  --c-ai: var(--teal-800);
  --c-human: #8A5A0E;
  --tick: rgba(3, 143, 161, .55);
  --shadow: 0 24px 48px -30px rgba(11, 39, 64, .28);
  --frame-bar: #EEF3F5;
  --frame-pill: #FFFFFF;
}
.theme-sub { --bg: var(--bg-sub); }
.theme-strong { --bg: var(--bg-strong); --line: rgba(11, 39, 64, .12); }
.theme-linen {
  --bg: var(--bg-linen);
  --accent: var(--amber-700);
  --line: rgba(92, 64, 30, .12);
  --line-strong: rgba(92, 64, 30, .2);
  --grid: rgba(92, 64, 30, .05);
  --shadow: 0 28px 56px -32px rgba(92, 64, 30, .32);
  --frame-bar: #EFE8DD;
}
.theme-dark {
  --bg: var(--navy-900);
  --fg-head: var(--text);
  --fg: var(--text);
  --fg-2: var(--text-2);
  --fg-3: var(--text-3);
  --line: rgba(207, 236, 242, .12);
  --line-strong: rgba(207, 236, 242, .22);
  --grid: rgba(207, 236, 242, .04);
  --card: rgba(24, 58, 88, .5);
  --card-solid: var(--navy-800);
  --accent: var(--teal-300);
  --accent-fill: var(--teal-300);
  --accent-2: var(--amber-300);
  --c-machine: var(--ice-200);
  --c-ai: var(--teal-300);
  --c-human: var(--amber-300);
  --tick: rgba(86, 228, 219, .5);
  --shadow: 0 30px 60px -32px rgba(0, 0, 0, .55);
  --frame-bar: #173A58;
  --frame-pill: rgba(7, 26, 43, .7);
}
.theme-base, .theme-sub, .theme-strong, .theme-linen, .theme-dark { background-color: var(--bg); color: var(--fg); }

/* 角丸のシートを重ねる */
.sheet { position: relative; z-index: 1; margin-top: calc(var(--sheet-r) * -1); border-radius: var(--sheet-r) var(--sheet-r) 0 0; }

/* 線・グリッド・ノードによる背景（明るい面のテック感） */
.deco-grid::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; z-index: 0;
  background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px), linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(60% 55% at var(--gx, 88%) var(--gy, 12%), #000, transparent 72%);
  mask-image: radial-gradient(60% 55% at var(--gx, 88%) var(--gy, 12%), #000, transparent 72%);
}
.deco-dots::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; z-index: 0;
  background-image: radial-gradient(rgba(11, 39, 64, .14) 1px, transparent 1.4px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(40% 40% at var(--gx, 92%) var(--gy, 8%), #000, transparent 70%);
  mask-image: radial-gradient(40% 40% at var(--gx, 92%) var(--gy, 8%), #000, transparent 70%);
}
.deco-grid > *, .deco-dots > * { position: relative; z-index: 1; }

/* カードの四隅の目印（モジュール感） */
.ticks {
  background-image:
    linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)),
    linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)),
    linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)),
    linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick));
  background-repeat: no-repeat;
  background-size: 14px 1.5px, 1.5px 14px, 14px 1.5px, 1.5px 14px, 14px 1.5px, 1.5px 14px, 14px 1.5px, 1.5px 14px;
  background-position: 10px 10px, 10px 10px, calc(100% - 10px) 10px, calc(100% - 10px) 10px, 10px calc(100% - 10px), 10px calc(100% - 10px), calc(100% - 10px) calc(100% - 10px), calc(100% - 10px) calc(100% - 10px);
}

/* ---------- ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg-base); }
@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg-base);
  color: var(--fg);
  font-family: var(--font-jp);
  font-size: clamp(.95rem, .9rem + .2vw, 1.05rem);
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: .04em;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; color: var(--fg-head); }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
strong, b { font-weight: 700; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: rgba(47, 194, 199, .28); color: inherit; }
:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: calc(var(--header-h) - 1px); }

/* ---------- ユーティリティ ---------- */
.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: .12em; }
.nowrap { white-space: nowrap; display: inline-block; }
@media (max-width: 600px) {
  /* 狭い画面では文節単位の改行（word-break: auto-phrase）に任せる */
  .nowrap { white-space: normal; display: inline; }
}
br.sp-only { display: none; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--teal-500); color: var(--navy-950); border-radius: 8px; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- ボタン・リンク ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .06em; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.btn--primary { background: var(--teal-500); color: #06202E; box-shadow: 0 10px 24px -14px rgba(3, 143, 161, .7); }
.btn--primary:hover { background: var(--teal-300); box-shadow: 0 14px 30px -12px rgba(3, 143, 161, .6); }
.btn--sm { height: 40px; padding: 0 18px; font-size: .82rem; }
.btn__arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.text-link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding-block: 4px;
  font-weight: 700; font-size: .95rem; color: var(--fg-head);
  background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 100% 1px;
  transition: background-size .35s var(--ease), color .2s;
}
.text-link:hover { background-size: 0 1px; background-position: right bottom; color: var(--accent); }
.text-link--ext::after, .work__more--ext::after {
  content: ""; width: .85em; height: .85em; flex: none; background: currentColor;
  -webkit-mask: var(--icon-ext) center / contain no-repeat; mask: var(--icon-ext) center / contain no-repeat;
}

/* ---------- チップ・タグ ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 5px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .82rem; line-height: 1.6; color: var(--fg-2); background: var(--card); }
.chips--sm li { font-size: .78rem; padding: 3px 12px; }
.hero .chips li { color: var(--text-2); background: rgba(4, 25, 47, .4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-color: rgba(207, 236, 242, .22); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li { display: inline-flex; align-items: center; gap: 8px; padding: 2px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .78rem; color: var(--fg-2); background: var(--card); }
.tags__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-500); animation: live 2.4s ease-out infinite; }
.tags__dev { border-color: color-mix(in srgb, var(--accent-2) 50%, transparent) !important; color: var(--accent-2) !important; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(47, 194, 199, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(47, 194, 199, 0); } }

/* レーンの色点（点は塗りなので、明るい面でも見やすい色を使う） */
.ld { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #7FA3BD; flex: none; }
.ld--ai { background: var(--teal-500); }
.ld--human { background: var(--amber-500); }
.theme-dark .ld { background: var(--ice-200); }
.theme-dark .ld--ai { background: var(--teal-300); }
.theme-dark .ld--human { background: var(--amber-300); }

/* ---------- セクション見出し ---------- */
.section { position: relative; padding-block: var(--section-y); }
.sheet.section, .sheet > .section:first-child { padding-top: calc(var(--section-y) + var(--sheet-r) * .4); }
.section-label {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: .74rem; text-transform: uppercase; color: var(--accent);
}
/* ノード＋線 */
.section-label::before {
  content: ""; width: 40px; height: 7px; flex: none;
  background: radial-gradient(circle at 3.5px 50%, currentColor 3px, transparent 3.6px), linear-gradient(currentColor, currentColor) 10px 50% / calc(100% - 10px) 1px no-repeat;
}
.section-label span { font-family: var(--font-jp); text-transform: none; letter-spacing: .1em; color: var(--fg-3); font-weight: 500; }
.section-label--center { justify-content: center; }
.section-head { max-width: 880px; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section-head--row .section-intro { max-width: 30em; margin-top: 0; }
.section-title { margin-top: 22px; font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.9rem); font-weight: 700; line-height: 1.45; letter-spacing: .03em; }
.section-intro { margin-top: 26px; max-width: 40em; color: var(--fg-2); }
.lane-text { font-style: normal; color: var(--c-machine); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .2em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.lane-text--ai { color: var(--c-ai); }
.lane-text--human { color: var(--c-human); }

/* =========================================================
   ヘッダー
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); color: var(--text);
  transition: transform .45s var(--ease), background-color .35s, border-color .35s, color .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(7, 26, 43, .7); border-bottom-color: rgba(207, 236, 242, .1); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-light { background: rgba(243, 248, 250, .82); border-bottom-color: rgba(11, 39, 64, .08); color: var(--ink-head); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.site-header__inner { height: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 28px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand__mark { width: 36px; height: 36px; border-radius: 50%; transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-24deg); }
.brand__name { font-family: var(--font-en); font-weight: 700; font-size: 1.35rem; letter-spacing: .02em; line-height: 1; }
.brand__role { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; color: var(--text-3); padding-left: 12px; border-left: 1px solid rgba(207, 236, 242, .2); line-height: 1.4; }
.site-header.is-light .brand__role { color: var(--ink-3); border-left-color: rgba(11, 39, 64, .16); }

.gnav { margin-left: auto; }
.gnav__list { display: flex; gap: 4px; }
.gnav__list a { display: block; padding: 8px 12px; font-size: .84rem; font-weight: 500; color: var(--text-2); border-radius: 8px; transition: color .2s, background-color .2s; }
.gnav__list a:hover { color: var(--text); background: rgba(207, 236, 242, .08); }
.site-header.is-light .gnav__list a { color: var(--ink-2); }
.site-header.is-light .gnav__list a:hover { color: var(--ink-head); background: rgba(11, 39, 64, .05); }
.site-header__cta { flex: none; }

.menu-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; align-items: center; justify-content: center; }
.menu-toggle__bars, .menu-toggle__bars::before { display: block; width: 22px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease); }
.menu-toggle__bars { position: relative; transform: translateY(-4px); }
.menu-toggle__bars::before { content: ""; position: absolute; left: 0; top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { transform: translateY(0) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(-8px) rotate(-90deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  background: rgba(243, 248, 250, .97); color: var(--ink-head); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  overflow-y: auto;
}
.site-header:has(+ .mobile-menu:not([hidden])) { color: var(--ink-head); background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.mobile-menu__list li { border-bottom: 1px solid rgba(11, 39, 64, .1); }
.mobile-menu__list a { display: flex; align-items: baseline; gap: 18px; padding: 18px 4px; font-size: 1.35rem; font-weight: 700; }
.mobile-menu__list .mono { flex: none; font-size: .72rem; color: var(--teal-800); }
.mobile-menu__list li:last-child a, .mobile-menu__list li:last-child .mono { color: var(--amber-700); }
.mobile-menu.is-open .mobile-menu__list li { animation: menu-in .5s var(--ease) both; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(2) { animation-delay: .03s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(3) { animation-delay: .06s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(4) { animation-delay: .09s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(5) { animation-delay: .12s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(6) { animation-delay: .15s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(7) { animation-delay: .18s; }
@keyframes menu-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- パイプライン・レール ---------- */
.rail { display: none; }
@media (min-width: 1400px) {
  .rail { display: block; position: fixed; left: 30px; top: 50%; z-index: 80; height: min(56vh, 520px); transform: translateY(-50%); width: 12px; }
  .rail__track { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(122, 146, 167, .4); transform: translateX(-50%); }
  .rail__fill { position: absolute; inset: 0; background: linear-gradient(180deg, #7FA3BD, var(--teal-500) 60%, var(--amber-500)); transform-origin: top; transform: scaleY(var(--rail-p, 0)); }
  .rail__nodes { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: center; }
  .rail__nodes a { position: relative; display: block; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid rgba(207, 236, 242, .35); background: var(--navy-900); transition: background-color .3s, border-color .3s, transform .3s var(--ease); }
  .rail__nodes a:hover, .rail__nodes a:focus-visible { transform: scale(1.3); border-color: var(--teal-300); }
  .rail__nodes a.is-passed { border-color: var(--teal-300); }
  .rail__nodes a.is-active { background: var(--teal-300); border-color: var(--teal-300); box-shadow: 0 0 0 4px rgba(86, 228, 219, .16); }
  .rail__end a.is-passed, .rail__end a.is-active { border-color: var(--amber-300); }
  .rail__end a.is-active { background: var(--amber-300); box-shadow: 0 0 0 4px rgba(255, 204, 121, .18); }
  /* 明るい面の上にあるノードだけ配色を変える（ノードごとに判定） */
  .rail__nodes a.on-light { background: var(--bg-base); border-color: rgba(11, 39, 64, .28); }
  .rail__nodes a.on-light.is-passed { border-color: var(--teal-700); }
  .rail__nodes a.on-light.is-active { background: var(--teal-700); border-color: var(--teal-700); box-shadow: 0 0 0 4px rgba(3, 143, 161, .16); }
  .rail__end a.on-light.is-active { background: var(--amber-500); border-color: var(--amber-500); }
  .rail__label { position: absolute; left: 22px; top: 50%; transform: translate(-6px, -50%); padding: 3px 10px; border-radius: 6px; background: var(--navy-900); font-size: .72rem; white-space: nowrap; color: var(--text); opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s var(--ease); }
  .rail__nodes a:hover .rail__label, .rail__nodes a:focus-visible .rail__label { opacity: 1; transform: translate(0, -50%); }
}

/* =========================================================
   HERO（ここだけ暗い）
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 56px) 0 calc(112px + var(--sheet-r));
  background: var(--hero-bg); color: var(--text); overflow: hidden; isolation: isolate;
}
.hero h1 { color: var(--text); }
.hero__media { position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 70% at 78% 52%, rgba(47, 194, 199, .14), transparent 62%), var(--hero-bg); }
.hero__picture { position: absolute; left: 0; right: 0; top: 0; height: min(100%, 100vh); height: min(100%, 100svh); -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent); mask-image: linear-gradient(to bottom, #000 82%, transparent); }
.hero__picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; filter: saturate(.84) brightness(1.1); }
/* 文字の下だけ少し暗くして、画像の主張を抑える */
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 25, 47, .6) 0%, rgba(4, 25, 47, .25) 40%, rgba(4, 25, 47, 0) 64%), linear-gradient(180deg, rgba(4, 25, 47, 0) 70%, rgba(4, 25, 47, .35) 100%); }
.hero__inner { position: relative; }
.hero__eyebrow { display: flex; align-items: center; gap: 12px; font-size: .78rem; color: var(--teal-300); letter-spacing: .14em; }
.hero__eyebrow-s { font-family: var(--font-en); font-size: 1.1rem; font-weight: 700; letter-spacing: 0; color: var(--text); }
.hero__title { margin-top: 28px; font-size: clamp(2.45rem, 1rem + 4.4vw, 4.6rem); font-weight: 700; line-height: 1.18; letter-spacing: .02em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .line > span { display: inline-block; will-change: transform; }
.hero__lead { margin-top: 32px; max-width: 32em; font-size: clamp(1rem, .95rem + .25vw, 1.12rem); color: #C6D6E0; line-height: 2; }
.hero__actions { margin-top: 40px; display: flex; align-items: center; flex-wrap: wrap; gap: 20px 32px; }
.hero .text-link { color: var(--text); }
.hero .text-link:hover { color: var(--teal-300); }
.hero__can { margin-top: 56px; max-width: 620px; }
.hero__can-label { font-size: .68rem; color: var(--text-3); margin-bottom: 12px; text-transform: uppercase; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: calc(36px + var(--sheet-r)); display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: .64rem; color: var(--text-3); text-transform: uppercase; writing-mode: vertical-rl; }
.hero__scroll i { position: relative; display: block; width: 1px; height: 56px; background: rgba(207, 236, 242, .2); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--teal-300); animation: scroll-cue 2.2s var(--ease) infinite; }
@keyframes scroll-cue { to { top: 110%; } }

/* =========================================================
   01 APPROACH（明るい面＋暗いコンソール）
   ========================================================= */
.section--approach::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(40% 45% at 92% 6%, rgba(47, 194, 199, .14), transparent 70%);
}

.router {
  position: relative; margin-top: clamp(48px, 6vw, 72px);
  padding: clamp(20px, 3vw, 40px);
  border-radius: 24px;
  background: radial-gradient(50% 80% at 43% 50%, rgba(47, 194, 199, .12), transparent 70%), linear-gradient(180deg, #123452, #0B2740);
  box-shadow: 0 40px 80px -44px rgba(11, 39, 64, .55), inset 0 0 0 1px rgba(207, 236, 242, .06);
  overflow: hidden;
}
.router::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(207, 236, 242, .04) 1px, transparent 1px), linear-gradient(to bottom, rgba(207, 236, 242, .04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.router__bar { position: relative; display: flex; align-items: center; gap: 6px; margin: -6px 0 14px; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; color: var(--text-3); text-transform: uppercase; }
.router__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(207, 236, 242, .22); }
.router__bar span { margin-left: 8px; }
.router__svg { position: relative; width: 100%; height: auto; overflow: visible; }
.router__svg--tall { display: none; max-width: 400px; margin-inline: auto; }
.router__labels text { fill: var(--text-3); font-size: 12px; letter-spacing: .12em; }
.router__line { fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 3 7; animation: dash-flow 1.2s linear infinite; transition: opacity .35s; }
.router__line--input { stroke: rgba(207, 236, 242, .38); }
.router__line--machine { stroke: rgba(207, 236, 242, .6); }
.router__line--ai { stroke: rgba(86, 228, 219, .7); }
.router__line--human { stroke: rgba(255, 204, 121, .7); }
@keyframes dash-flow { to { stroke-dashoffset: -20; } }
.router__routes path { fill: none; stroke: none; }
.token { transition: opacity .35s; }
.token rect { fill: #173A58; stroke: rgba(207, 236, 242, .32); stroke-width: 1; transition: stroke .3s, fill .3s; }
.token text { fill: var(--text-2); font-size: 14px; font-weight: 500; text-anchor: middle; letter-spacing: .04em; transition: fill .3s; }
.router__svg--tall .token text { font-size: 13px; }
.token.is-machine rect { stroke: var(--ice-200); fill: #1A3E5C; }
.token.is-machine text { fill: var(--ice-200); }
.token.is-ai rect { stroke: var(--teal-300); fill: #0F3D4E; }
.token.is-ai text { fill: var(--teal-300); }
.token.is-human rect { stroke: var(--amber-300); fill: #2E3740; }
.token.is-human text { fill: var(--amber-300); }
.router__hub-ring { fill: #0B2740; stroke: rgba(86, 228, 219, .55); stroke-width: 1.5; animation: hub 3s ease-in-out infinite; }
@keyframes hub { 0%, 100% { stroke-opacity: .45; } 50% { stroke-opacity: 1; } }
.router__end { transition: opacity .35s; }
.router__end circle { transform-box: fill-box; transform-origin: center; }
.router__end[data-lane-end="machine"] circle { fill: var(--ice-200); }
.router__end[data-lane-end="ai"] circle { fill: var(--teal-300); }
.router__end[data-lane-end="human"] circle { fill: var(--amber-300); }
.router__end text { fill: var(--text); font-size: 15px; font-weight: 700; }
.router__end text.mono { fill: var(--text-3); font-size: 11px; font-weight: 500; letter-spacing: .14em; }
.router__end.is-hit circle { animation: hit .7s var(--ease); }
@keyframes hit { 0% { transform: scale(1); } 35% { transform: scale(1.8); } 100% { transform: scale(1); } }
/* レーンカードのホバーで該当レーンを強調 */
.router[data-focus="machine"] [data-lane-line]:not([data-lane-line="machine"]),
.router[data-focus="machine"] .token:not(.is-machine),
.router[data-focus="machine"] [data-lane-end]:not([data-lane-end="machine"]),
.router[data-focus="ai"] [data-lane-line]:not([data-lane-line="ai"]),
.router[data-focus="ai"] .token:not(.is-ai),
.router[data-focus="ai"] [data-lane-end]:not([data-lane-end="ai"]),
.router[data-focus="human"] [data-lane-line]:not([data-lane-line="human"]),
.router[data-focus="human"] .token:not(.is-human),
.router[data-focus="human"] [data-lane-end]:not([data-lane-end="human"]) { opacity: .14; }

.lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.lane {
  --c: var(--c-machine); --c-fill: #7FA3BD;
  position: relative; padding: 28px 28px 32px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card);
  transition: border-color .3s, transform .45s var(--ease), box-shadow .45s var(--ease);
}
.lane--ai { --c: var(--c-ai); --c-fill: var(--teal-500); }
.lane--human { --c: var(--c-human); --c-fill: var(--amber-500); }
.theme-dark .lane { --c-fill: var(--c); }
.lane::before { content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 3px; background: var(--c-fill); border-radius: 0 0 3px 3px; }
.lane:hover { border-color: color-mix(in srgb, var(--c-fill) 55%, transparent); transform: translateY(-3px); box-shadow: var(--shadow); }
.lane__badge { display: flex; align-items: center; gap: 10px; font-size: .72rem; text-transform: uppercase; color: var(--c); }
.lane__badge i { width: 10px; height: 10px; border-radius: 50%; background: var(--c-fill); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-fill) 20%, transparent); }
.lane__badge span { font-family: var(--font-jp); letter-spacing: .08em; color: var(--fg-3); }
.lane__title { margin-top: 18px; font-size: 1.15rem; font-weight: 700; line-height: 1.6; }
.lane__text { margin-top: 10px; font-size: .92rem; color: var(--fg-2); line-height: 1.9; }

.strength {
  display: grid; grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px 48px; align-items: baseline;
  margin-top: clamp(64px, 8vw, 104px); padding: 36px clamp(24px, 3vw, 40px); border-radius: 20px; background-color: var(--bg-sub);
}
.strength__label { font-size: .72rem; color: var(--accent); text-transform: uppercase; }
.strength__title { font-size: clamp(1.25rem, 1rem + 1vw, 1.65rem); font-weight: 700; line-height: 1.6; color: var(--fg-head); }
.strength__text { color: var(--fg-2); font-size: .95rem; }

/* =========================================================
   02 CASE STUDY（リネン：琥珀時間の温度に寄せる）
   ========================================================= */
.section--case { overflow: hidden; }
.section--case::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(38% 46% at 78% 30%, rgba(255, 204, 121, .3), transparent 70%),
    radial-gradient(30% 40% at 12% 90%, rgba(86, 228, 219, .1), transparent 70%);
}
.case { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.case__title { margin-top: 22px; font-size: clamp(1.6rem, 1.1rem + 1.5vw, 2.25rem); font-weight: 700; line-height: 1.5; letter-spacing: .03em; }
.kohaku-word { color: #8E5A1C; }
.theme-dark .kohaku-word { color: var(--amber-300); }
.case__lead { margin-top: 22px; color: var(--fg-2); }
.facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: 32px; border-top: 1px solid var(--line); }
.facts__item { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); }
.facts__item:nth-child(odd) { border-right: 1px solid var(--line); }
.facts__item:nth-child(even) { padding-left: 20px; }
.facts dt { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; color: var(--fg-3); }
.facts dd { margin-top: 4px; font-size: .9rem; font-weight: 700; color: var(--fg-head); }
.facts__num { font-family: var(--font-en); font-size: clamp(1.7rem, 1.2rem + 1.3vw, 2.3rem); font-weight: 700; letter-spacing: 0; line-height: 1.2; margin-right: 2px; font-variant-numeric: tabular-nums; }
.facts dd small { display: block; font-size: .7rem; font-weight: 400; color: var(--fg-3); }
.facts__text { line-height: 1.6; padding-top: 6px; }
.case__actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }

.screens { position: relative; padding: 0 7% 12% 0; }
.browser { border-radius: 12px; overflow: hidden; background: var(--card-solid); box-shadow: var(--shadow), 0 0 0 1px var(--line-strong); }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--frame-bar); border-bottom: 1px solid var(--line); }
.browser__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.browser__bar span { margin-left: 10px; padding: 1px 12px; border-radius: 999px; background: var(--frame-pill); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .06em; color: var(--fg-3); }
.browser img { width: 100%; aspect-ratio: 1440 / 900; object-fit: cover; object-position: top; }
.phone { position: absolute; right: 0; bottom: 0; width: 25%; border-radius: 22px; overflow: hidden; border: 5px solid #22303D; background: #22303D; box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, .08); }
.phone img { width: 100%; aspect-ratio: 390 / 780; object-fit: cover; object-position: top; border-radius: 17px; }

.case__system { position: relative; margin-top: clamp(72px, 9vw, 112px); padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: 22px; background-color: var(--card); box-shadow: var(--shadow); }
.case__system--inset { margin-top: 32px; padding: clamp(20px, 3vw, 36px); }
.case__system.theme-dark { background: radial-gradient(50% 70% at 50% 50%, rgba(47, 194, 199, .1), transparent 70%), linear-gradient(180deg, #123452, #0B2740); border-color: transparent; }

/* ループ図 */
.loop { position: relative; aspect-ratio: 1080 / 380; max-width: 1080px; margin-inline: auto; }
.loop__track { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.loop__path { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.loop__path--flow { stroke: color-mix(in srgb, var(--teal-500) 65%, transparent); stroke-dasharray: 2 10; stroke-linecap: round; animation: dash-flow 1.4s linear infinite; }
.loop__pulse { fill: var(--teal-500); opacity: 0; filter: drop-shadow(0 0 6px rgba(47, 194, 199, .9)); }
.theme-dark .loop__pulse { fill: var(--teal-300); }
.loop.is-animated .loop__pulse { opacity: 1; }
.loop__center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; display: grid; gap: 4px; }
.loop__center .mono { font-size: .68rem; color: var(--c-ai); text-transform: uppercase; }
.loop__center span:last-child { font-size: clamp(1rem, .8rem + .7vw, 1.35rem); font-weight: 700; color: var(--fg-head); }
.loop__steps { position: absolute; inset: 0; }
.loop__step { position: absolute; left: calc(var(--x) / 1080 * 100%); top: calc(var(--y) / 380 * 100%); width: 0; height: 0; }
.loop__dot { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--card-solid); border: 2px solid var(--teal-500); box-shadow: 0 0 0 5px var(--card-solid); transition: background-color .3s, transform .3s var(--ease); }
.theme-dark .loop__dot { border-color: var(--teal-300); box-shadow: 0 0 0 5px #0F2E4A; background: #0F2E4A; }
.loop__step:hover .loop__dot { background: var(--teal-500); transform: scale(1.15); }
.loop__name { position: absolute; left: 0; bottom: 18px; transform: translateX(-50%); white-space: nowrap; font-size: clamp(.78rem, .7rem + .35vw, .98rem); font-weight: 700; color: var(--fg-head); }
.loop__lanes { position: absolute; left: 0; top: 18px; transform: translateX(-50%); display: flex; gap: 5px; }
.loop__step.is-bottom .loop__name { bottom: auto; top: 18px; }
.loop__step.is-bottom .loop__lanes { top: auto; bottom: 18px; }
.case__layers { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.legend { display: flex; gap: 20px; font-size: .74rem; color: var(--fg-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .08em; }
.layers { display: flex; flex-wrap: wrap; gap: 20px 48px; }
.layers div { display: flex; gap: 16px; align-items: baseline; }
.layers dt { font-size: .7rem; color: var(--c-ai); text-transform: uppercase; }
.layers dt small { margin-left: 8px; padding: 1px 8px; border: 1px solid color-mix(in srgb, var(--accent-2) 50%, transparent); border-radius: 999px; color: var(--accent-2); font-family: var(--font-jp); font-size: .66rem; letter-spacing: .06em; text-transform: none; }
.layers dd { font-size: .86rem; color: var(--fg-2); }
.layers dd strong { color: var(--fg-head); margin-right: 10px; }

/* =========================================================
   03 WORKS（明るい面・一部のカードだけ濃紺）
   ========================================================= */
.works-block { position: relative; margin-top: clamp(48px, 6vw, 80px); }
.works-block__head { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; align-items: baseline; margin-bottom: 24px; }
.works-block__kicker { font-size: .7rem; color: var(--accent); text-transform: uppercase; grid-row: span 2; padding-top: 6px; min-width: 128px; }
.works-block__kicker--warm { color: var(--accent-2); }
.works-block__title { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); font-weight: 700; line-height: 1.5; }
.works-block__note { font-size: .82rem; color: var(--fg-3); }

.ledger { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background-color: var(--card); box-shadow: var(--shadow); }
.ledger__row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 8px 32px; align-items: center; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.ledger__cat { font-weight: 700; color: var(--fg-head); }
.ledger__scope { font-size: .88rem; color: var(--fg-2); }
.ledger__count { font-size: .9rem; font-weight: 700; white-space: nowrap; color: var(--fg-head); }
.ledger__count b { font-family: var(--font-en); font-size: 1.9rem; line-height: 1; margin-right: 4px; font-variant-numeric: tabular-nums; }
.ledger__total { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 22px 28px; background: linear-gradient(90deg, rgba(255, 204, 121, .24), rgba(255, 204, 121, .06) 50%, rgba(255, 204, 121, 0)); }
.ledger__total > span:first-child { font-weight: 700; color: var(--fg-head); }
.ledger__total .ledger__count { color: var(--amber-700); }
.ledger__total .ledger__count b { font-size: 2.4rem; }
.ledger__total small { margin-left: auto; font-size: .76rem; color: var(--fg-3); }

.works-block--personal { margin-top: clamp(64px, 8vw, 104px); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.work { position: relative; border: 1px solid var(--line); border-radius: 20px; background: var(--card); overflow: hidden; transition: border-color .3s, transform .5s var(--ease), box-shadow .5s var(--ease); }
.work:hover, .work:focus-within { border-color: rgba(3, 143, 161, .35); }
.work:has(a):hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work--system { grid-column: span 7; grid-row: span 2; }
.work--articles { grid-column: span 5; }
.work--images { grid-column: span 5; }
.work--pins { grid-column: span 7; }
.work--brand { grid-column: span 5; }
.work--site { grid-column: 1 / -1; }
.work--system .work__body { flex: none; }
.work__link, .work__static { display: flex; flex-direction: column; height: 100%; }
.work__visual { position: relative; overflow: hidden; background: var(--bg-strong); }
.work__visual img { transition: transform .8s var(--ease); }
.work:hover .work__visual img { transform: scale(1.04); }
.work__body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 28px; flex: 1; }
.work__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.work__tags li { padding: 1px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .7rem; color: var(--fg-2); }
.work__tags li.is-ai { border-color: rgba(3, 143, 161, .45); color: var(--teal-800); background: rgba(47, 194, 199, .08); }
.work__title { font-size: 1.12rem; font-weight: 700; line-height: 1.55; }
.work__text { font-size: .88rem; color: var(--fg-2); line-height: 1.9; }
.work__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 700; color: var(--teal-800); }
.work__more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.work:hover .work__more svg { transform: translateX(4px); }

/* 運営自動化システムの図は濃紺のパネル（締め色） */
.work__visual--system { flex: 1; min-height: 340px; display: grid; place-items: center; background: radial-gradient(55% 60% at 50% 50%, rgba(47, 194, 199, .2), transparent 70%), linear-gradient(180deg, #123452, #0B2740); }
.work__visual--system::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(207, 236, 242, .045) 1px, transparent 1px), linear-gradient(to bottom, rgba(207, 236, 242, .045) 1px, transparent 1px); background-size: 32px 32px; }
.mini-loop { position: relative; width: min(64%, 280px); overflow: visible; }
.mini-loop__ring { fill: none; stroke: rgba(207, 236, 242, .22); stroke-width: 1.2; stroke-dasharray: 2 6; }
.mini-loop .n-machine { fill: var(--ice-200); }
.mini-loop .n-ai { fill: var(--teal-300); }
.mini-loop .n-human { fill: var(--amber-300); }
.mini-loop__nodes circle { stroke: #10304C; stroke-width: 4; paint-order: stroke; }
.mini-loop__spin { transform-origin: 120px 120px; animation: spin 9s linear infinite; }
.mini-loop__pulse { fill: #fff; filter: drop-shadow(0 0 5px rgba(86, 228, 219, 1)); }
@keyframes spin { to { transform: rotate(360deg); } }

.work__visual--stack { height: 260px; background: radial-gradient(60% 70% at 55% 45%, rgba(255, 204, 121, .22), transparent 70%), var(--bg-strong); }
.work__visual--stack img { position: absolute; width: 64%; border-radius: 8px; box-shadow: 0 16px 36px -16px rgba(11, 39, 64, .45); aspect-ratio: 16 / 8.6; object-fit: cover; }
.work__visual--stack img:nth-child(1) { left: 6%; top: 16%; transform: rotate(-5deg); }
.work__visual--stack img:nth-child(2) { left: 30%; top: 30%; transform: rotate(4deg); z-index: 1; }
.work__visual--stack img:nth-child(3) { left: 18%; top: 44%; transform: rotate(-1deg); z-index: 2; }
.work:hover .work__visual--stack img:nth-child(1) { transform: rotate(-8deg) translate(-8px, -6px); }
.work:hover .work__visual--stack img:nth-child(2) { transform: rotate(7deg) translate(10px, -4px); }
.work:hover .work__visual--stack img:nth-child(3) { transform: rotate(-1deg) translateY(6px); }

.work__visual--mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--card); }
.work__visual--mosaic img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 6px; }

.work__visual--pins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 22px 22px 0; background: radial-gradient(60% 80% at 50% 100%, rgba(255, 204, 121, .2), transparent 70%), linear-gradient(180deg, var(--bg-strong), var(--bg-sub)); }
.work__visual--pins img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px 8px 0 0; box-shadow: 0 10px 28px -14px rgba(11, 39, 64, .5); }
.work:hover .work__visual--pins img { transform: translateY(-8px); }
.work:hover .work__visual--pins img:nth-child(2) { transition-delay: .05s; }
.work:hover .work__visual--pins img:nth-child(3) { transition-delay: .1s; }
.work:hover .work__visual--pins img:nth-child(4) { transition-delay: .15s; }

.work__visual--brand { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.brand-tile { display: grid; place-items: center; min-width: 0; aspect-ratio: 1 / .78; padding: 10%; }
.brand-tile--light { background: #F3ECE1; }
.brand-tile--dark { background: radial-gradient(60% 60% at 50% 50%, #FFFFFF, var(--bg-strong)); }
.brand-tile img { width: min(100%, 170px); height: auto; }
.brand-tile--dark img { filter: drop-shadow(0 12px 18px rgba(11, 39, 64, .25)); }

.work--site .work__link { flex-direction: row; }
.work--site .work__visual { flex: 1.25; min-height: 280px; }
.work--site .work__body { flex: 1; justify-content: center; }
.work__visual--site { display: grid; place-items: center; padding: 28px; background: radial-gradient(70% 70% at 70% 40%, rgba(47, 194, 199, .16), transparent 70%), var(--bg-strong); }
.mini-browser { width: 100%; max-width: 420px; border-radius: 10px; overflow: hidden; box-shadow: 0 24px 48px -26px rgba(11, 39, 64, .55), 0 0 0 1px rgba(11, 39, 64, .08); transition: transform .8s var(--ease); }
.mini-browser .browser__bar { background: #FFFFFF; border-bottom-color: rgba(11, 39, 64, .08); }
.mini-browser .browser__bar i { background: rgba(11, 39, 64, .15); }
.mini-browser .browser__bar span { background: var(--bg-base); color: var(--ink-3); }
.work:hover .mini-browser { transform: translateY(-4px) scale(1.02); }
.mini-browser__screen { position: relative; display: grid; gap: 10px; padding: 26px 24px 30px; background: radial-gradient(60% 80% at 90% 50%, rgba(47, 194, 199, .26), transparent 70%), var(--hero-bg); }
.mini-browser__eyebrow { font-size: .5rem; color: var(--teal-300); letter-spacing: .12em; }
.mini-browser__title { font-size: 1.2rem; font-weight: 700; line-height: 1.3; color: var(--text); }
.mini-browser__nodes { position: absolute; right: 24px; top: 50%; display: grid; gap: 12px; transform: translateY(-50%); }
.mini-browser__nodes .ld { width: 10px; height: 10px; }
.mini-browser__nodes .ld--machine { background: var(--ice-200); }
.mini-browser__nodes .ld--ai { background: var(--teal-300); }
.mini-browser__nodes .ld--human { background: var(--amber-300); }

/* =========================================================
   04 SERVICES・05 PROCESS
   ========================================================= */
.svc-main {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 64px;
  margin-top: clamp(40px, 5vw, 64px); padding: clamp(28px, 4vw, 52px);
  background-color: var(--card); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.svc-main::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, #7FA3BD, var(--teal-500) 55%, var(--amber-500)); }
.svc-main__kicker { font-size: .7rem; color: var(--accent); text-transform: uppercase; }
.svc-main__title { margin-top: 10px; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 700; line-height: 1.4; }
.svc-main__lead { margin-top: 14px; color: var(--fg-2); }
.svc-main__callout { margin-top: 24px; padding: 14px 18px; border-left: 3px solid var(--amber-500); background: rgba(255, 204, 121, .18); border-radius: 0 10px 10px 0; font-size: .9rem; font-weight: 700; line-height: 1.8; color: var(--fg-head); }
.svc-main__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-content: start; }
.svc-main__list li { position: relative; padding: 16px 0 16px 22px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: .95rem; line-height: 1.6; color: var(--fg-head); }
.svc-main__list li::before { content: ""; position: absolute; left: 0; top: 24px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--teal-700); }
.svc-main__list small { display: block; font-weight: 400; font-size: .8rem; color: var(--fg-3); }

.svc-sub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.svc { display: flex; flex-direction: column; padding: 30px 28px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.svc__kicker { font-size: .66rem; color: var(--accent); text-transform: uppercase; }
.svc__title { margin-top: 8px; font-size: 1.2rem; font-weight: 700; }
.svc__list { margin-top: 14px; margin-bottom: 20px; }
.svc__list li { position: relative; padding: 7px 0 7px 18px; font-size: .9rem; line-height: 1.7; }
.svc__list li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 6px; height: 1.5px; background: var(--teal-700); }
.svc__plus { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line-strong); font-size: .8rem; color: var(--fg-2); line-height: 1.8; }
.svc__plus::before { content: "+ "; font-family: var(--font-en); font-weight: 700; color: var(--teal-700); }
.svc-note { margin-top: 28px; font-size: .84rem; color: var(--fg-3); text-align: center; }

.flow { position: relative; margin-top: clamp(48px, 6vw, 72px); }
.flow__line { position: absolute; left: 8px; right: 0; top: 7px; height: 2px; background: var(--line-strong); border-radius: 2px; }
.flow__fill { position: absolute; inset: 0; background: linear-gradient(90deg, #7FA3BD, var(--teal-500) 50%, var(--amber-500)); transform-origin: left; transform: scaleX(var(--flow-p, 1)); border-radius: 2px; }
.flow__phases { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.phase__node { display: block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--bg); transition: background-color .4s, border-color .4s, box-shadow .4s; }
.phase.is-lit .phase__node, .flow:not([data-flow-armed]) .phase__node { background: var(--teal-700); border-color: var(--teal-700); box-shadow: 0 0 0 5px rgba(3, 143, 161, .14); }
.phase:last-child.is-lit .phase__node, .flow:not([data-flow-armed]) .phase:last-child .phase__node { background: var(--amber-500); border-color: var(--amber-500); box-shadow: 0 0 0 5px rgba(227, 165, 78, .2); }
.phase__num { margin-top: 26px; font-size: .68rem; color: var(--accent); text-transform: uppercase; }
.phase__title { margin-top: 6px; font-size: 1.3rem; font-weight: 700; }
.phase__steps { margin-top: 16px; border-top: 1px solid var(--line); }
.phase__steps li { position: relative; display: flex; gap: 12px; padding: 12px 0 12px 12px; border-bottom: 1px solid var(--line); font-size: .9rem; line-height: 1.7; }
.phase__steps li::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--line-strong); }
.phase__steps li.is-machine::before { background: #7FA3BD; }
.phase__steps li.is-ai::before { background: var(--teal-500); }
.phase__steps li.is-human::before { background: var(--amber-500); }
.phase__steps .mono { flex: none; font-size: .7rem; color: var(--fg-3); padding-top: 3px; }
.phase__loop { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .7rem; color: var(--accent-2); letter-spacing: .08em; }
.phase__loop svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.principles { position: relative; margin-top: clamp(80px, 10vw, 128px); padding: clamp(28px, 4vw, 48px); background-color: var(--card); border: 1px solid var(--line); border-radius: 24px; }
.principles__title { font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem); font-weight: 700; }
.principles__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; margin-top: 12px; }
.principles__list li { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.principles__list li:nth-last-child(-n + 3) { border-bottom: 0; }
.principles__list .mono { flex: none; font-size: .72rem; color: var(--accent); padding-top: 4px; }
.principles__list p { font-weight: 700; line-height: 1.7; color: var(--fg-head); }
.principles__list small { display: block; margin-top: 4px; font-weight: 400; font-size: .84rem; color: var(--fg-2); }

/* =========================================================
   06 ABOUT（明るい面）
   ========================================================= */
.section--about { overflow: hidden; }
.section--about::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(36% 46% at 20% 40%, rgba(47, 194, 199, .16), transparent 72%), radial-gradient(26% 32% at 26% 62%, rgba(255, 204, 121, .16), transparent 70%); }
.about { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 104px); align-items: center; }
.orbit { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
.orbit__logo { width: 58%; border-radius: 50%; box-shadow: 0 30px 60px -24px rgba(11, 39, 64, .45); }
.orbit__ring { position: absolute; border-radius: 50%; border: 1px solid rgba(11, 39, 64, .16); animation: spin 26s linear infinite; }
.orbit__ring--1 { inset: 14%; animation-duration: 18s; }
.orbit__ring--2 { inset: 6%; animation-duration: 28s; animation-direction: reverse; border-style: dashed; border-color: rgba(3, 143, 161, .3); }
.orbit__ring--3 { inset: -2%; animation-duration: 40s; }
.orbit__ring .ld { position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; margin-left: -5px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .8); }
.orbit__ring--1 .ld { background: #7FA3BD; }
.orbit__ring--2 .ld { background: var(--teal-500); top: auto; bottom: -5px; }
.orbit__ring--3 .ld { background: var(--amber-500); }
.about__name { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; color: var(--fg-head); }
.about__s { font-family: var(--font-en); font-weight: 700; font-size: 2.2rem; line-height: 1; }
.about__name .mono { font-size: .66rem; color: var(--fg-3); }
.about__title { margin-top: 22px; font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.35rem); font-weight: 700; line-height: 1.55; }
.about__text { margin-top: 26px; display: grid; gap: 1.1em; color: var(--fg); }
.about__text p:first-child { font-weight: 500; color: var(--fg-head); }
.about__meta { margin-top: 36px; display: grid; gap: 18px; padding-top: 28px; border-top: 1px solid var(--line); }
.about__meta div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; }
.about__meta dt { font-size: .68rem; color: var(--accent); text-transform: uppercase; padding-top: 6px; }
.about__meta div:last-child dt { color: var(--accent-2); }

/* =========================================================
   07 CONTACT（締め色）
   ========================================================= */
.section--contact { overflow: hidden; isolation: isolate; }
.contact__glow { position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(40% 55% at 85% 30%, rgba(47, 194, 199, .2), transparent 70%), radial-gradient(34% 44% at 88% 80%, rgba(255, 204, 121, .14), transparent 70%); }
.section--contact::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; background-image: linear-gradient(to right, rgba(207, 236, 242, .04) 1px, transparent 1px), linear-gradient(to bottom, rgba(207, 236, 242, .04) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(55% 70% at 85% 30%, #000, transparent 75%); mask-image: radial-gradient(55% 70% at 85% 30%, #000, transparent 75%); }
.contact { position: relative; }
.contact__title { margin-top: 24px; font-size: clamp(2rem, 1.1rem + 4vw, 4.2rem); font-weight: 700; line-height: 1.3; letter-spacing: .02em; }
.contact__lead { margin-top: 28px; max-width: 38em; color: var(--fg-2); }
.channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; max-width: 920px; }
.channel { position: relative; display: grid; gap: 8px; padding: 30px 84px 32px 30px; border: 1px solid var(--line-strong); border-radius: 20px; background: rgba(24, 58, 88, .45); transition: border-color .3s, background-color .3s, transform .5s var(--ease); }
.channel:hover { border-color: var(--teal-300); background: rgba(24, 58, 88, .85); transform: translateY(-3px); }
.channel__kicker { font-size: .7rem; color: var(--accent); text-transform: uppercase; }
.channel__title { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); font-weight: 700; line-height: 1.5; color: var(--text); }
.channel__arrow { position: absolute; right: 26px; top: 50%; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); transition: background-color .3s, border-color .3s, transform .4s var(--ease); }
.channel__arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.channel:hover .channel__arrow { background: var(--teal-300); border-color: var(--teal-300); color: var(--navy-950); transform: scale(1.05); }
.contact__note { margin-top: 24px; font-size: .84rem; color: var(--fg-3); }
.contact__node { position: absolute; right: 8%; top: 10%; width: 16px; height: 16px; border-radius: 50%; background: var(--amber-300); box-shadow: 0 0 24px rgba(255, 204, 121, .7); }
.contact__node::before, .contact__node::after { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 1px solid rgba(255, 204, 121, .35); animation: ripple 3.2s ease-out infinite; }
.contact__node::after { animation-delay: 1.6s; }
@keyframes ripple { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

/* =========================================================
   フッター
   ========================================================= */
.site-footer { background: var(--navy-950); color: var(--text); border-top: 1px solid rgba(207, 236, 242, .08); padding: 56px 0 40px; font-size: .84rem; }
.site-footer__inner { display: grid; grid-template-columns: auto 1fr; gap: 32px 48px; align-items: start; }
.brand--footer .brand__mark { width: 32px; height: 32px; }
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; }
.site-footer__nav a { color: var(--text-2); transition: color .2s; }
.site-footer__nav a:hover { color: var(--text); }
.site-footer__notes { grid-column: 1 / -1; display: grid; gap: 2px; padding-top: 28px; border-top: 1px solid rgba(207, 236, 242, .08); font-size: .76rem; color: var(--text-3); }
.site-footer__copy { grid-column: 1 / -1; font-size: .7rem; color: var(--text-3); }

/* =========================================================
   詳細ページ（case-kohaku-jikan.html）
   ========================================================= */
.read-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 110; height: 2px; background: linear-gradient(90deg, #7FA3BD, var(--teal-500), var(--amber-500)); transform-origin: left; transform: scaleX(var(--read-p, 0)); pointer-events: none; }

.page-hero { position: relative; padding: calc(var(--header-h) + clamp(56px, 8vw, 104px)) 0 calc(clamp(56px, 7vw, 88px) + var(--sheet-r)); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px), linear-gradient(to bottom, var(--grid) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(70% 90% at 82% 18%, #000, transparent 75%); mask-image: radial-gradient(70% 90% at 82% 18%, #000, transparent 75%); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(42% 60% at 86% 22%, rgba(47, 194, 199, .18), transparent 70%), radial-gradient(28% 40% at 96% 88%, rgba(255, 204, 121, .2), transparent 70%); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .78rem; color: var(--fg-3); }
.crumbs a { color: var(--fg-2); transition: color .2s; }
.crumbs a:hover { color: var(--accent); }
.page-hero__title { margin-top: 26px; font-size: clamp(2rem, 1.2rem + 3.6vw, 3.9rem); font-weight: 700; line-height: 1.32; letter-spacing: .02em; }
.page-hero__title small { display: block; font-size: .78rem; color: var(--accent); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.page-hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.page-hero__title .line > span { display: inline-block; will-change: transform; }
.page-hero__lead { margin-top: 28px; max-width: 42em; color: var(--fg-2); }
.cs-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 48px; border-top: 1px solid var(--line); }
.cs-meta div { padding: 20px 24px 20px 0; border-bottom: 1px solid var(--line); }
.cs-meta div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.cs-meta dt { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; color: var(--fg-3); text-transform: uppercase; }
.cs-meta dd { margin-top: 6px; font-size: .92rem; font-weight: 700; line-height: 1.7; color: var(--fg-head); }
.page-hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }

.band { position: relative; }
.band--visual { padding-top: clamp(56px, 7vw, 88px); overflow: hidden; }
.band--visual::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(45% 55% at 70% 35%, rgba(255, 204, 121, .3), transparent 70%); }
.cs-visual .screens { max-width: 1040px; margin-inline: auto; }

.cs-section { padding-block: clamp(72px, 9vw, 128px); }
.cs-section + .cs-section { border-top: 1px solid var(--line); }
.band > .cs-section:first-child { padding-top: calc(clamp(72px, 9vw, 128px) + var(--sheet-r) * .4); }
.cs-grid { display: grid; grid-template-columns: minmax(0, 3.2fr) minmax(0, 8.8fr); gap: 32px clamp(32px, 5vw, 72px); }
.cs-side { position: relative; }
.cs-side__sticky { position: sticky; top: calc(var(--header-h) + 32px); }
.cs-num { font-family: var(--font-mono); font-size: .72rem; color: var(--accent); letter-spacing: .14em; }
.cs-heading { margin-top: 10px; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); font-weight: 700; line-height: 1.5; }
.cs-heading__en { display: block; margin-top: 4px; font-size: .5em; color: var(--fg-3); }
.cs-body > * + * { margin-top: 1.2em; }
.cs-body p { color: var(--fg-2); }
.cs-body strong { color: var(--fg-head); }
.cs-body .cs-statement { color: var(--fg-head); font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); font-weight: 700; line-height: 1.75; }
.cs-body .lanes { margin-top: 32px; }
.lane__examples { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; }
.lane__examples li { padding: 2px 10px; border-radius: 999px; font-size: .74rem; border: 1px solid color-mix(in srgb, var(--c-fill) 50%, transparent); color: var(--c); background: color-mix(in srgb, var(--c-fill) 7%, transparent); }

.cs-steps { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; border-top: 1px solid var(--line); }
.cs-steps li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.cs-steps h4 { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 700; }
.cs-steps h4 .mono { font-size: .68rem; color: var(--fg-3); }
.cs-steps p { margin-top: 6px; font-size: .86rem; color: var(--fg-2); line-height: 1.85; }
.cs-steps .loop__lanes { position: static; transform: none; margin-left: auto; }

.cs-points { display: grid; gap: 0; margin-top: 36px; border-top: 1px solid var(--line); }
.cs-points li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cs-points .mono { font-size: .7rem; color: var(--accent); padding-top: 4px; }
.cs-points strong { display: block; font-size: 1rem; color: var(--fg-head); }
.cs-points p span { display: block; margin-top: 2px; font-size: .88rem; color: var(--fg-2); }

.cs-role { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cs-role li { padding: 6px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .88rem; background: var(--card); color: var(--fg-head); }
.cs-tech { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cs-tech div { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background-color: var(--card); }
.cs-tech dt { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; color: var(--accent); text-transform: uppercase; }
.cs-tech dd { margin-top: 10px; }
.cs-tech ul { display: grid; gap: 4px; }
.cs-tech li { font-weight: 700; font-size: .95rem; color: var(--fg-head); }

.cs-outcome { padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(135deg, rgba(255, 204, 121, .24), #FFFFFF 55%); box-shadow: var(--shadow); }
.cs-outcome .facts { max-width: 520px; }
.cs-outcome__note { margin-top: 20px; font-size: .82rem; color: var(--fg-3) !important; }

.cs-apply { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.cs-apply li { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.cs-apply li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cs-apply h4 { font-size: 1.02rem; font-weight: 700; line-height: 1.6; }
.cs-apply p { margin-top: 8px; font-size: .86rem; color: var(--fg-2); }

.cs-cta { padding-block: clamp(80px, 10vw, 144px); text-align: center; overflow: hidden; }
.cs-cta::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(40% 60% at 50% 100%, rgba(47, 194, 199, .18), transparent 70%); }
.cs-cta__title { position: relative; font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.7rem); font-weight: 700; line-height: 1.45; }
.cs-cta__lead { position: relative; margin: 20px auto 0; max-width: 34em; color: var(--fg-2); }
.cs-cta__actions { position: relative; margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 32px; }
.cs-cta .text-link { color: var(--text); }

/* =========================================================
   モーション初期状態（JS が動くときだけ）
   ========================================================= */
.js-motion [data-reveal] { opacity: 0; transform: translateY(24px); }
.js-motion [data-hero-line] { transform: translateY(110%); }
.js-motion [data-hero-item] { opacity: 0; transform: translateY(16px); }
.js-motion .hero__picture { opacity: 0; }

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 1180px) {
  .brand__role { display: none; }
  .gnav__list a { padding-inline: 9px; }
}
@media (max-width: 1080px) {
  .case { grid-template-columns: 1fr; }
  .case__visual { max-width: 760px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work--system, .work--site { grid-column: 1 / -1; grid-row: auto; }
  .work--articles, .work--images, .work--pins, .work--brand { grid-column: span 1; }
  .work__visual--system { min-height: 300px; }
  .svc-main { grid-template-columns: 1fr; }
  .svc-sub { grid-template-columns: 1fr 1fr; }
  .svc-sub .svc:last-child { grid-column: 1 / -1; }
  .flow__phases { grid-template-columns: 1fr 1fr; gap: 48px 28px; }
  .flow__line { display: none; }
  .principles__list { grid-template-columns: 1fr 1fr; }
  .principles__list li:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .principles__list li:nth-last-child(-n + 2) { border-bottom: 0; }
  .about { grid-template-columns: 1fr; }
  .about__visual { max-width: 360px; margin-inline: auto; }
  .strength { grid-template-columns: 1fr; gap: 12px; }
  .cs-grid { grid-template-columns: 1fr; }
  .cs-side__sticky { position: static; }
  .cs-steps { grid-template-columns: 1fr 1fr; }
  .cs-meta { grid-template-columns: 1fr 1fr; }
  .cs-meta div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 900px) {
  .gnav, .site-header__cta { display: none; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .lanes { grid-template-columns: 1fr; }
  .router__svg--wide { display: none; }
  .router__svg--tall { display: block; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  br.sp-only { display: inline; }
  .site-header__cta { display: inline-flex; margin-left: auto; height: 36px; padding: 0 14px; font-size: .76rem; }
  .menu-toggle { margin-left: 4px; }

  .hero { align-items: flex-start; padding-top: calc(var(--header-h) + 44px); }
  .hero__picture { top: 20%; height: 100vh; height: 100svh; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%); }
  .hero__picture img { object-position: 72% 50%; opacity: .85; }
  .hero__shade { background: linear-gradient(180deg, rgba(4, 25, 47, .25) 0%, rgba(4, 25, 47, .1) 30%, rgba(4, 25, 47, .45) 62%, rgba(4, 25, 47, .7) 100%), linear-gradient(90deg, rgba(4, 25, 47, .55) 0%, rgba(4, 25, 47, 0) 75%); }
  .hero__title { margin-top: 20px; }
  .hero__lead { margin-top: 24px; }
  .hero__actions { margin-top: 30px; }
  .hero__can { margin-top: 40px; }
  .hero__scroll { display: none; }

  .router { padding: 20px 12px 16px; border-radius: 18px; }
  .router__bar { margin: -4px 4px 10px; }

  .facts__item { padding-right: 12px; }
  .facts__item:nth-child(even) { padding-left: 14px; }
  .screens { padding-right: 12%; }
  .phone { width: 30%; border-width: 4px; border-radius: 18px; }
  .phone img { border-radius: 14px; }

  .case__system { padding: 28px 20px; }
  .loop { aspect-ratio: auto; }
  .loop__track { display: none; }
  .loop__center { position: static; transform: none; text-align: left; margin-bottom: 20px; }
  .loop__steps { position: relative; display: grid; gap: 0; padding-left: 22px; }
  .loop__steps::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 36px; width: 2px; background: linear-gradient(180deg, var(--teal-500), rgba(47, 194, 199, .2)); border-radius: 2px; }
  .loop__steps::after { content: "↺ 最初へ戻って、また回す"; display: block; padding: 8px 0 0 10px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; color: var(--accent); }
  .loop__step { position: relative; left: auto; top: auto; width: auto; height: auto; display: flex; align-items: center; gap: 12px; padding: 9px 0 9px 10px; }
  .loop__dot { left: -22px; top: 50%; margin-top: -7px; width: 14px; height: 14px; }
  .loop__name, .loop__step.is-bottom .loop__name { position: static; transform: none; font-size: .95rem; }
  .loop__lanes, .loop__step.is-bottom .loop__lanes { position: static; transform: none; }
  .case__layers { flex-direction: column; align-items: flex-start; }
  .layers div { flex-direction: column; gap: 4px; }

  .works-block__head { grid-template-columns: 1fr; }
  .works-block__kicker { grid-row: auto; padding-top: 0; }
  .ledger__row { grid-template-columns: 1fr auto; padding: 18px 20px; }
  .ledger__scope { grid-column: 1; grid-row: 2; }
  .ledger__count { grid-column: 2; grid-row: 1 / span 2; }
  .ledger__total { padding: 18px 20px; }
  .ledger__total small { margin-left: 0; width: 100%; }
  .bento { grid-template-columns: 1fr; gap: 16px; }
  .work--articles, .work--images, .work--pins, .work--brand { grid-column: 1 / -1; }
  .work__visual--system { min-height: 260px; }
  .work--site .work__link { flex-direction: column; }
  .work__visual--stack { height: 220px; }
  .work__visual--pins { gap: 8px; padding: 16px 16px 0; }

  .svc-main__list { grid-template-columns: 1fr; }
  .svc-sub { grid-template-columns: 1fr; }
  .flow__phases { grid-template-columns: 1fr; gap: 40px; padding-left: 28px; }
  .flow__line { display: block; left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .flow__fill { transform-origin: top; transform: scaleY(var(--flow-p, 1)); background: linear-gradient(180deg, #7FA3BD, var(--teal-500) 50%, var(--amber-500)); }
  .phase { position: relative; }
  .phase__node { position: absolute; left: -28px; top: 4px; }
  .phase__num { margin-top: 0; }
  .principles__list { grid-template-columns: 1fr; }
  .principles__list li:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .principles__list li:last-child { border-bottom: 0; }

  .about__meta div { grid-template-columns: 1fr; gap: 8px; }
  .channels { grid-template-columns: 1fr; }
  .channel { padding: 24px 76px 26px 24px; }
  .contact__node { right: 10%; top: 6%; width: 12px; height: 12px; }

  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__nav { justify-content: flex-start; }

  .cs-meta { grid-template-columns: 1fr; }
  .cs-meta div, .cs-meta div + div { padding-left: 0; border-left: 0; }
  .cs-steps, .cs-tech, .cs-apply { grid-template-columns: 1fr; }
}

/* =========================================================
   reduced-motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .work:hover .work__visual img, .work:hover .mini-browser { transform: none; }
}
