/* AQU8 — 固定1画面・奥行き遷移サイト */

:root {
  --paper: #F1EEE5;
  --paper-2: #F8F6F1;
  --ink: #17191C;
  --ink-2: #45484D;
  --ink-3: #7A7C7F;
  --cobalt: #244BDD;
  --cobalt-deep: #1B3AB3;
  --alert: #B42318;
  --line: rgba(23, 25, 28, 0.16);
  --line-strong: rgba(23, 25, 28, 0.42);

  --s: 1; /* JS が min(幅/1440, 高さ/900) を入れる */
  --vh: 1vh; /* JS が実際の画面の高さの 1% を入れる（iOS の Safari の 1vh は見えている高さより大きい） */
  --vt: var(--vh); /* 縦長の画面の上部の構図の単位。背の低い画面では JS が詰めた値を入れる */
  --hdr: max(56px, calc(80px * var(--s)));
  --ftr: max(44px, calc(48px * var(--s)));
  --gut: max(20px, calc(44px * var(--s)));
  --cell: max(52px, calc(64px * var(--s))); /* 下の帯の升目（前後の移動）の幅 */

  --fs-xs: max(11px, calc(12px * var(--s)));
  --fs-sm: max(12px, calc(13.5px * var(--s)));
  --fs-body: max(14px, calc(16px * var(--s)));
  --fs-md: max(15px, calc(19px * var(--s)));
  --fs-lead: max(15px, calc(21px * var(--s)));
  --fs-h: max(24px, calc(50px * var(--s)));
  --fs-h-xl: max(28px, calc(62px * var(--s)));
  --fs-h-quiet: max(22px, calc(38px * var(--s)));

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif;
  --font-latin: "Archivo", "Noto Sans JP", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.75;
  letter-spacing: 0.02em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.js body { overflow: hidden; overscroll-behavior: none; touch-action: pinch-zoom; }
input, textarea, select { touch-action: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 1px; }
.on-dark :focus-visible { outline-color: var(--paper); }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100; padding: 10px 16px;
  background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none;
  transform: translateY(-160%); transition: transform 0.2s;
}
.skip:focus { transform: none; }

/* ------------------------------------------------------------------ 舞台 */

.stage {
  position: fixed; inset: 0; width: 100%; height: 100%; display: block;
  z-index: 0; transition: opacity 0.28s var(--ease-io);
}
.stage.is-dim { opacity: 0; }
.no-js .stage, .no-webgl .stage { display: none; }

.loader {
  position: fixed; inset: 0; z-index: 60; background: var(--paper);
  display: grid; place-items: center;
  transition: opacity 0.6s var(--ease-io), visibility 0s linear 0.6s;
}
.loader__line { width: min(220px, 40vw); height: 1px; background: var(--line); overflow: hidden; }
.loader__line i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--load, 0)); transition: transform 0.4s var(--ease-out); }
.is-ready .loader { opacity: 0; visibility: hidden; }
.no-js .loader { display: none; }

/* 遠い章へ移るときの短い切替 */
.wipe { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
.wipe i { position: absolute; top: 0; bottom: 0; width: 100%; background: var(--cobalt); transform: translateX(101%); }
.wipe i:nth-child(2) { background: var(--ink); }
.wipe.is-in i { transform: translateX(0); transition: transform 0.34s var(--ease-in); }
.wipe.is-in i:nth-child(2) { transition-delay: 0.05s; }
.wipe.is-out i { transform: translateX(-101%); transition: transform 0.52s var(--ease-out); }
.wipe.is-out i:nth-child(2) { transition-delay: 0s; }
.wipe.is-out i:nth-child(1) { transition-delay: 0.06s; }

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

.hdr {
  position: fixed; left: 0; right: 0; top: 0; z-index: 30; height: var(--hdr);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gut); pointer-events: none;
}
.hdr > * { pointer-events: auto; }
.hdr__logo { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.logo { display: block; height: max(18px, calc(25px * var(--s))); width: auto; fill: currentColor; overflow: visible; }
.logo .logo__reg { fill: var(--cobalt); transition: transform 0.5s var(--ease-out); }
.hdr__logo:hover .logo__reg, .hdr__logo:focus-visible .logo__reg { transform: translate(2.4px, -1.8px); }
.hdr .on-dark .logo__reg { fill: rgba(241, 238, 229, 0.35); }
.logo__text { font-weight: 900; font-size: 22px; letter-spacing: 0; }
.has-logo .logo__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.gnav__list { display: flex; align-items: center; gap: max(18px, calc(40px * var(--s))); font-weight: 700; font-size: max(13px, calc(15px * var(--s))); letter-spacing: 0.04em; }
.gnav__item { position: relative; }
.gnav__link {
  position: relative; display: inline-block; padding: 8px 0; text-decoration: none; line-height: 1.4;
  transition: color 0.35s var(--ease-io);
}
.hdr__logo, .menu-btn { transition: color 0.35s var(--ease-io); }
.hdr .on-dark { color: var(--paper); }
/* 縦長の画面（.is-tall）で、メニューのボタンの左に出る「相談する」。色は横長の画面の「相談する」（.gnav__link--cta）と同じコバルトで、青い地の上では .on-dark で生成りになる。
   09 の場面にいるあいだ（aria-current）と、メニューを開いているあいだは、場所を保ったまま見えなくする（色の判定が要素の位置を覚えているため、display では隠さない） */
.hdr__cta {
  display: none; align-items: center; height: 40px; margin-left: auto; margin-right: 18px; padding: 0 2px;
  color: var(--cobalt); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; line-height: 1.4; text-decoration: none; white-space: nowrap;
  transition: color 0.35s var(--ease-io), opacity 0.3s var(--ease-io), visibility 0.3s;
}
.is-tall .hdr__cta { display: inline-flex; }
.hdr__cta[aria-current="true"], .menu-open .hdr__cta { opacity: 0; visibility: hidden; pointer-events: none; }
.hdr__cta.on-dark:focus-visible { outline-color: var(--paper); }
.gnav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease-out);
}
.gnav__link:hover::after, .gnav__link[aria-current="true"]::after, .gnav__link[aria-expanded="true"]::after { transform: scaleX(1); transform-origin: left; }
.gnav__link--cta { color: var(--cobalt); }
.gnav__toggle::before {
  content: ""; position: absolute; right: -13px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
  border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); transition: transform 0.3s var(--ease-out);
}
.gnav__toggle[aria-expanded="true"]::before { transform: translateY(3px) rotate(-135deg); }
.gnav__sub {
  position: absolute; left: -22px; top: calc(100% + 10px); min-width: 250px; padding: 10px;
  background: var(--paper-2); border: 1px solid var(--line); box-shadow: 0 24px 60px -30px rgba(23, 25, 28, 0.45);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.25s, transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
}
.gnav__item--menu.is-open .gnav__sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.gnav__sub a {
  display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 6px;
  padding: 10px 12px; text-decoration: none; line-height: 1.35; transition: background 0.2s, color 0.2s;
}
.gnav__sub a:hover, .gnav__sub a:focus-visible { background: var(--cobalt); color: var(--paper); }
.gnav__num { grid-row: span 2; font-family: var(--font-latin); font-weight: 700; font-stretch: 112%; font-size: 11px; letter-spacing: 0.06em; padding-top: 3px; opacity: 0.7; }
.gnav__sub small { font-size: 11.5px; font-weight: 500; opacity: 0.7; }

.menu-btn { display: none; }
.mnav { display: none; }

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

/* 黒帯。左に操作の案内、中央に章の目盛り、右に前後の移動。ボタンは帯の高さいっぱいを押せる範囲にする */
.ftr {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: var(--ftr);
  display: grid; grid-template-columns: 1fr minmax(0, 360px) 1fr; grid-template-areas: "hint prog ctrl"; align-items: stretch; gap: max(16px, calc(36px * var(--s)));
  padding: 0 var(--gut); background: var(--ink); color: var(--paper);
  transition: opacity 0.4s var(--ease-io), transform 0.5s var(--ease-out);
}
.ftr :focus-visible { outline-color: var(--paper); outline-offset: -5px; }
.is-aux .ftr, .menu-open .ftr { opacity: 0; transform: translateY(10px); pointer-events: none; }
.is-aux .ftr > *, .menu-open .ftr > * { pointer-events: none; }
@keyframes label-in { from { opacity: 0; transform: translateY(60%); } }
.reader__title.is-swap { animation: label-in 0.9s var(--ease-out); }
.ftr__progress { grid-area: prog; align-self: center; position: relative; height: 1px; background: rgba(241, 238, 229, 0.22); width: 100%; container-type: inline-size; }
.chapters { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.chapters li { position: absolute; top: 50%; left: calc(var(--i) * 100% / 8); transform: translate(-50%, -50%); }
/* 目盛りの押せる範囲は帯の高さいっぱい。幅は隣と重ならない範囲で最大 36px */
.chapters button { position: relative; display: grid; place-items: center; width: min(36px, calc(100cqw / 8)); height: var(--ftr); color: inherit; }
.chapters button::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.4;
  transition: transform 0.45s var(--ease-out), opacity 0.3s;
}
.chapters button[aria-current="true"]::before { opacity: 1; transform: scale(1.7); }
.chapters button:hover::before, .chapters button:focus-visible::before { opacity: 1; transform: scale(2); }
.chapters__tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 6px); padding: 3px 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; color: var(--paper); background: var(--ink);
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.4s var(--ease-out);
}
.chapters button:hover .chapters__tip, .chapters button:focus-visible .chapters__tip { opacity: 1; transform: translate(-50%, -2px); }
.is-tall .chapters__tip { display: none; }
.ftr__progress i { position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: currentColor; transform-origin: left; transform: scaleX(var(--p, 0)); }
.ftr__hint { grid-area: hint; justify-self: start; font-size: max(11px, calc(12px * var(--s))); letter-spacing: 0.04em; white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.ftr__hint-text { opacity: 0.78; }
.ftr__hint::before {
  content: ""; width: 11px; height: 16px; border: 1.5px solid currentColor; border-radius: 6px;
  background: linear-gradient(currentColor, currentColor) 50% 4px / 1.5px 4px no-repeat;
  animation: wheel 1.8s var(--ease-io) infinite;
}
.is-locked .ftr__hint::before { animation: none; border-radius: 2px; background: linear-gradient(currentColor, currentColor) 50% 50% / 6px 1.5px no-repeat; }
.ftr__hint.is-hidden { opacity: 0; transition: opacity 0.4s; }
.ftr__hint.is-nudge .ftr__hint-text { animation: hint-nudge 1.1s var(--ease-out); }
/* 計器盤：進行度・カメラの奥行き・描いた三角形の数。数字は反転式の表示板（上半分が倒れ、下半分が起き上がる）。
   「スクロールで進む」が出ている間は、その場所を譲る */
.ftr__tele {
  grid-area: hint; justify-self: start; align-self: center; display: flex; align-items: center; gap: 5px; margin: 0;
  font-family: var(--font-latin); font-stretch: 112%; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; line-height: 1;
  color: rgba(241, 238, 229, 0.62); transition: opacity 0.4s var(--ease-io);
}
.ftr__hint:not(.is-hidden) ~ .ftr__tele { opacity: 0; }
.tele__k + .tele__v { margin-right: 12px; }
.tele__v { display: inline-flex; gap: 1px; }
.flap {
  position: relative; display: inline-block; width: 0.86em; height: 1.64em; color: var(--paper);
  background: rgba(241, 238, 229, 0.075); border-radius: 1.5px; perspective: 80px; font-variant-numeric: tabular-nums;
}
.flap i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; backface-visibility: hidden; }
.flap__a, .flap__c { clip-path: inset(0 0 50% 0); }
.flap__b, .flap__d { clip-path: inset(50% 0 0 0); }
.flap__b, .flap__c { visibility: hidden; }
.flap.is-flip .flap__b, .flap.is-flip .flap__c { visibility: visible; }
.flap.is-flip .flap__c { animation: flap-top 0.07s ease-in forwards; }
.flap.is-flip .flap__d { animation: flap-bot 0.07s 0.07s ease-out backwards; }
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -0.5px; background: rgba(0, 0, 0, 0.6); }
/* 左の区画に収まるよう、狭い画面では三角形の数を外し、さらに狭いと計器盤ごと出さない */
@media (max-width: 1180px) { .ftr__tele > span:nth-child(n + 5) { display: none; } }
@media (max-width: 900px) { .ftr__tele { display: none; } }
@keyframes flap-top { from { transform: rotateX(0); } to { transform: rotateX(-90deg); } }
@keyframes flap-bot { from { transform: rotateX(90deg); } to { transform: rotateX(0); } }
@keyframes hint-nudge { 0%, 100% { opacity: 0.78; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes wheel { 0%, 100% { background-position: 50% 4px; } 50% { background-position: 50% 9px; } }
/* 前後の移動は、帯の右端に接する升目。矢印だけを置き、細い罫で区切る */
.ftr__ctrl { grid-area: ctrl; justify-self: end; display: flex; align-items: stretch; margin-right: calc(var(--gut) * -1); border-left: 1px solid rgba(241, 238, 229, 0.14); }
.ftr__div { width: 1px; background: rgba(241, 238, 229, 0.14); }

/* 下の帯のボタン（主画面・詳細画面で共通）。
   重ねるとコバルトが矢印の向きへ満ち、矢印は向きへ抜けて反対側から戻る */
.ftr__btn, .reader__pager button, .reader__close {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; overflow: hidden; isolation: isolate;
  font-weight: 700; font-size: max(12px, calc(13px * var(--s))); letter-spacing: 0.06em; line-height: 1.4;
}
.ftr__btn, .reader__pager button { width: var(--cell); }
.ftr__btn::before, .reader__pager button::before, .reader__close::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cobalt);
  transform: scaleX(0); transform-origin: left center; transition: transform 0.55s var(--ease-out), background-color 0.2s;
}
.ftr__prev::before, .reader__prev::before { transform-origin: right center; }
.ftr__btn .arr, .reader__pager .arr { --arr-w: 26px; }
.ftr__btn[disabled], .reader__pager button:disabled { cursor: default; }
.ftr__btn[disabled] .arr, .reader__pager button:disabled .arr { opacity: 0.25; }
.ftr__btn:not([disabled]):active::before, .reader__pager button:not(:disabled):active::before, .reader__close:active::before {
  transform: scaleX(1); background: var(--cobalt-deep); transition-duration: 0.12s;
}
@media (hover: hover) {
  .ftr__btn:not([disabled]):hover::before, .reader__pager button:not(:disabled):hover::before, .reader__close:hover::before { transform: scaleX(1); }
  .ftr__btn:not([disabled]):hover .arr::before, .ftr__btn:not([disabled]):hover .arr::after,
  .reader__pager button:not(:disabled):hover .arr::before, .reader__pager button:not(:disabled):hover .arr::after { animation: arr-pass 0.72s; }
}

/* 検査の札：重ねた大きな字の右上に、字と頂点数・三角形数を出す（開発者ツールの要素検査にならう） */
.inspect {
  position: fixed; left: 0; top: 0; z-index: 25; margin: 0; padding: 4px 7px 3px; pointer-events: none;
  font-family: var(--font-latin); font-stretch: 112%; font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; line-height: 1.3; white-space: nowrap;
  color: var(--paper); background: var(--cobalt); opacity: 0; transition: opacity 0.2s;
}
.inspect.is-on { opacity: 1; }
.inspect b { font-family: var(--font); font-weight: 900; margin-right: 8px; }

/* ------------------------------------------------------------------ 共通の部品 */

/* 矢印：製図の寸法線の矢印にならい、細い軸と、切り込みの入った鋭い鏃。
   重ねると、自分の枠の中で向きへ抜けて反対側から戻る（枠の外へははみ出さない） */
.arr {
  --arr-w: 24px;
  position: relative; display: inline-block; width: var(--arr-w); height: 10px; flex: none; margin-left: 0.6em; overflow: hidden;
}
.arr::before { content: ""; position: absolute; left: 0; right: 5px; top: 50%; height: 1.25px; margin-top: -0.625px; background: currentColor; }
.arr::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%, 28% 50%);
}
.arr--l { transform: scaleX(-1); margin: 0 0.6em 0 0; }
@keyframes arr-pass {
  0% { translate: 0 0; animation-timing-function: cubic-bezier(0.55, 0, 0.85, 0.35); }
  42% { translate: calc(var(--arr-w) + 2px) 0; }
  42.01% { translate: calc(-1 * var(--arr-w) - 2px) 0; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  100% { translate: 0 0; }
}
.ftr__btn .arr, .reader__pager .arr, .pager .arr { margin: 0; }

.tlink {
  position: relative; display: inline-flex; align-items: center; padding: 4px 0 6px; font-weight: 700;
  font-size: max(14px, calc(18px * var(--s))); text-decoration: none; line-height: 1.4; color: inherit;
}
.tlink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.6px; background: currentColor;
  transform-origin: left; transition: transform 0.6s var(--ease-out);
}
.tlink:hover::after { animation: line-redraw 0.8s var(--ease-out); }
.tlink:hover .arr::before, .tlink:hover .arr::after { animation: arr-pass 0.72s; }
.tlink--accent { color: var(--cobalt); }
@keyframes line-redraw { 0% { transform: scaleX(1); transform-origin: right; } 45% { transform: scaleX(0); transform-origin: right; } 46% { transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; } }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  min-height: max(48px, calc(64px * var(--s))); padding: 0 max(22px, calc(32px * var(--s)));
  background: var(--cobalt); color: var(--paper); font-weight: 700; font-size: max(14px, calc(18px * var(--s)));
  letter-spacing: 0.06em; text-decoration: none; overflow: hidden; isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: translateX(-101%); transition: transform 0.55s var(--ease-out);
}
.btn:hover::before { transform: none; }
.btn:hover .arr::before, .btn:hover .arr::after { animation: arr-pass 0.72s; }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn--solid { min-height: auto; }
.btn--wide { min-width: min(100%, calc(360px * var(--s) + 40px)); }
.on-dark .btn { background: var(--paper); color: var(--cobalt); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: max(16px, calc(34px * var(--s))); margin-top: max(20px, calc(44px * var(--s))); }
.actions--stack { flex-direction: column; align-items: flex-start; gap: max(14px, calc(26px * var(--s))); }
.actions--end { justify-content: flex-end; }
.eyebrow { font-weight: 700; font-size: var(--fs-md); letter-spacing: 0.06em; display: flex; align-items: center; gap: 14px; }
.lead { font-size: var(--fs-lead); line-height: 1.7; margin-top: max(10px, calc(18px * var(--s))); }
.note { font-size: var(--fs-sm); color: var(--ink-2); margin-top: max(12px, calc(18px * var(--s))); }
.note a { color: var(--cobalt); font-weight: 700; margin-left: 0.4em; }
.note--small { margin-top: max(8px, calc(12px * var(--s))); }
.tbd { color: var(--cobalt); font-weight: 500; }

.idx {
  display: flex; align-items: center; gap: 10px; margin-bottom: max(10px, calc(22px * var(--s)));
  font-family: var(--font-latin); font-weight: 600; font-stretch: 112%; font-size: max(11px, calc(12.5px * var(--s)));
  letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.2;
}
.idx b { font-weight: 800; letter-spacing: 0.04em; color: var(--cobalt); }
.idx::after { content: ""; width: max(24px, calc(44px * var(--s))); height: 1px; background: currentColor; opacity: 0.45; }
.on-dark .idx b { color: var(--paper); }

.h-display { font-weight: 900; font-size: var(--fs-h); line-height: 1.3; letter-spacing: 0.01em; }
.h-display--xl { font-size: var(--fs-h-xl); line-height: 1.22; }
.h-quiet { font-weight: 400; font-size: var(--fs-h-quiet); line-height: 1.6; letter-spacing: 0.04em; }
.ln { display: block; }

/* ------------------------------------------------------------------ 場面 */

.scene, .aux {
  position: fixed; inset: 0; z-index: 10; visibility: hidden; pointer-events: none;
  transition: visibility 0s linear 0.35s;
}
.scene.is-active, .aux.is-open { visibility: visible; transition-delay: 0s; }
.scene.is-active .panel, .scene.is-active .side, .aux.is-open .panel, .aux.is-open .reader__side, .aux.is-open .reader__bar { pointer-events: auto; }
.scene__mark { display: none; }
.panel { position: absolute; }

/* 到着してから本文を出す。遷移の最初に静かに引く */
[data-r] {
  opacity: 0; transform: translate3d(0, 18px, 0);
  transition: opacity 0.22s var(--ease-io), transform 0.3s var(--ease-in);
}
/* 見出しは1文字ずつ、行の下から立ち上がる */
.ln[data-r] { opacity: 1; transform: none; overflow: hidden; padding: 0.06em 0.04em 0.12em; margin: -0.06em -0.04em -0.12em; transition: none; }
.ln .ch {
  display: inline-block; transform: translate3d(0, 110%, 0) rotate(6deg); transform-origin: 0 100%; opacity: 0;
  transition: transform 0.26s var(--ease-in), opacity 0.2s var(--ease-io);
}
.is-active .ln .ch, .is-open .ln .ch {
  transform: none; opacity: 1;
  transition: transform 0.95s var(--ease-out) calc(var(--d, 0ms) + var(--c) * 24ms), opacity 0.5s var(--ease-out) calc(var(--d, 0ms) + var(--c) * 24ms);
}
.is-active [data-r], .is-open [data-r] {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease-out) var(--d, 0ms), transform 1.05s var(--ease-out) var(--d, 0ms);
}
.is-active .ln[data-r], .is-open .ln[data-r] { opacity: 1; transform: none; }
.is-leaving [data-r], .is-leaving .ln .ch { transition-delay: 0ms !important; }
/* 章番号の横線は、到着してから引かれる */
.idx::after { transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-in); }
.is-active .idx::after, .is-open .idx::after { transform: none; transition: transform 1.1s var(--ease-out) calc(var(--d, 0ms) + 250ms); }

/* 01 入口 */
/* 帯の波の山にかからないよう、帯の上端（71%）より上で本文を終える */
.scene--entry .panel { left: calc(4.1vw); top: calc(var(--vh) * 45); width: 44vw; }
.entry__title { font-weight: 700; font-size: max(24px, calc(41px * var(--s))); line-height: 1.42; letter-spacing: 0.02em; }
/* 設立の一文を足しても「対応できることを見る」が青い面の波にかからないよう、まとまりの中の間隔を詰める */
.entry__name { margin-top: max(6px, calc(10px * var(--s))); font-size: var(--fs-md); font-weight: 500; }
.entry__since { margin-top: 2px; font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.6; }
.scene--entry .tlink { margin-top: max(10px, calc(14px * var(--s))); }
/* 2 つのリンクの間は .actions と同じ間隔。1 行に収まらないときは折り返す（各リンクの上の余白が行の間隔になる） */
.entry__links { display: flex; flex-wrap: wrap; align-items: center; column-gap: max(16px, calc(34px * var(--s))); }
/* 横長の画面では、本文の終わり（リンクの行）が青い帯の波の山から離れるよう、社名・設立の一文・リンクの行間と余白を詰める。縦長の画面は余りがあるので変えない */
:root:not(.is-tall) .entry__name { margin-top: max(4px, calc(6px * var(--s))); line-height: 1.5; }
:root:not(.is-tall) .entry__since { line-height: 1.5; }
:root:not(.is-tall) .scene--entry .tlink { margin-top: max(6px, calc(8px * var(--s))); }

/* 02 制作 */
.scene--build .panel { left: 66.3vw; top: calc(var(--vh) * 22); width: 31vw; }
.scene--build .lead { margin-top: max(12px, calc(26px * var(--s))); font-size: var(--fs-md); }
.plain-list { margin-top: max(18px, calc(52px * var(--s))); display: grid; gap: max(8px, calc(22px * var(--s))); font-size: max(15px, calc(20px * var(--s))); font-weight: 500; }
.scene--build .actions { flex-direction: column; align-items: flex-start; gap: max(16px, calc(34px * var(--s))); }

/* 03 改修 */
.scene--improve .panel { left: 8.5vw; top: calc(var(--vh) * 23); width: 34vw; }
.pairs { margin-top: max(18px, calc(36px * var(--s))); display: grid; gap: max(6px, calc(14px * var(--s))); font-size: max(14px, calc(17.5px * var(--s))); }
.pairs div { display: grid; grid-template-columns: max(96px, calc(150px * var(--s))) 1fr; }
.pairs dt { font-weight: 500; }
.pairs dd { color: var(--ink-2); }
.actions--text { gap: max(18px, calc(40px * var(--s))); margin-top: max(20px, calc(40px * var(--s))); }
.actions--text .tlink { font-size: max(14px, calc(17px * var(--s))); font-weight: 500; }

/* 04 保守（青地） */
.on-dark { color: var(--paper); }
.scene--maintain .panel { left: 3.8vw; right: 3.8vw; top: calc(var(--vh) * 45.5); bottom: calc(var(--ftr) + var(--vh) * 7.8); display: flex; flex-direction: column; }
.cols { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: max(16px, calc(46px * var(--s))); max-height: calc(200px * var(--s) + 20px); }
/* 青地の白は太く見えるため、04 の和文は他の場面より一段細く・小さく組む。KEEP IT. と見出しを主役にし、3 列は一覧として従える */
.scene--maintain .h-display { font-weight: 700; letter-spacing: 0.03em; }
.cols li { display: flex; flex-direction: column; justify-content: center; padding: 0 max(14px, calc(34px * var(--s))); border-left: 1px solid rgba(241, 238, 229, 0.5); }
.cols li:first-child { border-left: 0; padding-left: 0; }
.cols strong { font-weight: 700; font-size: max(19px, calc(30px * var(--s))); line-height: 1.3; letter-spacing: 0.04em; }
.cols span { font-size: max(13px, calc(17px * var(--s))); font-weight: 400; line-height: 1.6; margin-top: max(4px, calc(8px * var(--s))); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: auto; padding-top: max(12px, calc(26px * var(--s))); font-size: var(--fs-md); }
.foot-row .actions { margin-top: 0; }
/* 青地では、ボタンは生成りの地にコバルトの字。重ねると黒が満ちるので、字は生成りに変える。字の切り替えは、黒が満ちる動き（.btn::before）と同じ時間・同じ曲線にする */
.scene--maintain .btn { transition: color 0.55s var(--ease-out); }
.scene--maintain .btn:hover { color: var(--paper); }

/* 05 プロダクト：広告用の LP の雰囲気のバナーを円（輪）に並べ、輪ごと縦の軸のまわりに回し続ける（1 周およそ 32 秒。widgets.js の initShelf）。
   プロダクトはまだ 1 つなので、輪の残りの枠は空の札（半透明のグレー）。バナーの裏は紺一色。
   輪は最初、少し斜めに傾けて置き（.shelf__stage）、重ねる・フォーカスすると、実物のバナーを手前まで回してまっすぐに起こす（.is-straight）。
   手前のバナーほど明るく、奥へ回るほど陰る（--shade）。背景のコバルトは右の面（棚）で、輪は少し左に寄せ、右側を回るバナーが面の上を通る（layouts.js の product）。
   バナーの色と書体は LP（assets/lp/lp.css）に合わせ、サイトのコバルトとは分ける */
.scene--product .panel { left: 3.8vw; top: calc(var(--vh) * 38); } /* READY. の下（字の下端はおよそ 35vh） */

/* 棚：大きさのない点を輪の中心にして、そこから奥行きを付ける。--ring-gap は隣の枠とのすき間（枠の幅に対する割合。widgets.js が読む） */
.shelf { --bw: max(130px, calc(460px * var(--s))); --ring-gap: 0.22; position: absolute; left: 44vw; top: calc(var(--vh) * 62); width: 0; height: 0; perspective: 1300px; } /* --bw：バナーの幅 */
.scene.is-active .shelf { pointer-events: auto; }
/* ドラッグ・スワイプで回す（widgets.js の initShelf）。回している間は文字を選ばせない */
.shelf { -webkit-user-select: none; user-select: none; }
.scene.is-active .shelf__hit { cursor: grab; }
.shelf.is-dragging, .shelf.is-dragging * { cursor: grabbing !important; }
/* 重ねたことを拾う範囲（輪のまわり。大きさは widgets.js が輪に合わせる） */
.shelf__hit { position: absolute; left: 0; top: 0; translate: -50% -50%; }
.shelf__stage { position: absolute; left: 0; top: 0; transform-style: preserve-3d; transform: rotateX(-13deg) rotateZ(-5deg); transition: transform 0.9s var(--ease-out); }
.shelf.is-straight .shelf__stage { transform: none; }
.shelf__ring { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
/* 輪の軌道：輪の中心を通る点線の円を、バナーの足もとの高さに寝かせる（輪と一緒に回り、斜めのときは楕円に、まっすぐのときは線に見える）。
   線は生成りなので、見えるのは右の青い面の上だけ。実物のバナーが手前に来るたびに、一瞬明るくなる（.is-flash）。
   点線は円周を角度で刻む（repeating-conic-gradient）。線の太さは、円の縁だけを残すマスクで決める */
.shelf__orbit {
  position: absolute; border-radius: 50%; pointer-events: none; opacity: 0.62; transition: opacity 0.7s var(--ease-out);
  background: repeating-conic-gradient(from 0deg, var(--paper) 0deg 0.8deg, transparent 0.8deg 3.2deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2.8px), #000 calc(100% - 2.3px), #000 calc(100% - 0.3px), transparent 100%);
  mask: radial-gradient(closest-side, transparent calc(100% - 2.8px), #000 calc(100% - 2.3px), #000 calc(100% - 0.3px), transparent 100%);
}
.shelf__orbit--fine { background: repeating-conic-gradient(from 0deg, var(--paper) 0deg 0.3deg, transparent 0.3deg 1.5deg); }
.shelf.is-flash .shelf__orbit { opacity: 1; transition-duration: 0.12s; }
.banner {
  --navy: #0F2A5C; --blue: #0869DF;
  position: absolute; left: 0; top: 0; width: var(--bw); aspect-ratio: 3 / 2; translate: -50% -50%;
  transform-style: preserve-3d; color: var(--navy); text-decoration: none; container-type: inline-size;
  user-select: none; -webkit-user-select: none; -webkit-user-drag: none; letter-spacing: 0; font-feature-settings: "palt" 1;
}
.banner__face { position: absolute; inset: 0; overflow: hidden; border-radius: 4.4cqw; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.banner__front, .banner__back { box-shadow: 0 2.6cqw 6cqw rgba(8, 20, 60, 0.28); }
.banner__front::after { content: ""; position: absolute; inset: 0; background: #0F2A5C; opacity: var(--shade, 0); pointer-events: none; }
.banner__front {
  display: block; padding: 6cqw;
  background: url("/assets/lp/img/decorations/pattern-icons.svg") 0 0 / 40cqw 40cqw, linear-gradient(180deg, #E8F3FE 0%, #F3F9FF 64%, #FFFFFF 100%);
  transition: translate 0.4s var(--ease-out);
}
.banner:hover .banner__front, .banner:focus-visible .banner__front { translate: 0 -1.4cqw; }
.banner:focus-visible { outline: none; }
.banner:focus-visible .banner__front { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--blue), 0 2.6cqw 6cqw rgba(8, 20, 60, 0.28); }
.banner__back { transform: rotateY(180deg); background: var(--navy); }
/* 空の札：これから増やすプロダクトの枠。半透明のグレーで、表も裏も同じに見せる */
.banner--empty .banner__face { backface-visibility: visible; -webkit-backface-visibility: visible; background: rgba(96, 100, 108, 0.24); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.banner__tag { display: inline-block; padding: 0.9cqw 2.8cqw; border-radius: 99px; background: #fff; color: var(--blue); font-size: 3.5cqw; font-weight: 700; line-height: 1.55; box-shadow: 0 0.4cqw 1.6cqw rgba(15, 42, 92, 0.06); }
.banner__title { display: block; margin-top: 3.2cqw; font-weight: 900; font-size: 8cqw; line-height: 1.24; letter-spacing: -0.01em; white-space: nowrap; }
.banner__sub { display: block; margin-top: 2.4cqw; max-width: 52cqw; font-size: 3.7cqw; font-weight: 700; line-height: 1.5; word-break: auto-phrase; text-wrap: balance; }
.banner__sub em { font-style: normal; color: var(--blue); }
.banner__btn {
  position: absolute; left: 6cqw; bottom: 6cqw; z-index: 1; display: inline-flex; align-items: center; gap: 2.4cqw;
  padding: 1.8cqw 1.8cqw 1.8cqw 4.4cqw; border-radius: 99px; background: var(--blue); color: #fff; font-size: 3.6cqw; font-weight: 700; line-height: 1.4;
  box-shadow: 0 1.6cqw 3.6cqw rgba(8, 105, 223, 0.3);
}
.banner__btn i { position: relative; width: 5cqw; height: 5cqw; border-radius: 50%; background: #fff; }
.banner__btn i::after { content: ""; position: absolute; left: 1.45cqw; top: 1.7cqw; width: 1.4cqw; height: 1.4cqw; border-top: 0.5cqw solid var(--blue); border-right: 0.5cqw solid var(--blue); transform: rotate(45deg); }
.banner__ill { position: absolute; right: 3cqw; bottom: 4cqw; width: 46cqw; height: 26cqw; object-fit: contain; object-position: 100% 100%; pointer-events: none; }
/* 画面の絵（AI窓口の窓）は横長でないので、背を高くして見える大きさを人物の絵に近づける（題が 1 行のバナーだけで使う） */
.banner__ill--ui { height: 31cqw; }
/* 人物の絵は、人物と机のまわりだけを切り取った版（illustrations/*-banner.svg）を、背の高い枠に入れて大きく見せる。右下に寄せ、左の文字にかからない */
.banner__ill--person { right: 4cqw; bottom: 4cqw; width: 40cqw; height: 33cqw; }
/* サイトの静的化のバナー：LP と同じ薄い緑の配色（緑の模様と淡い緑のグラデーション、操作の色は緑） */
.banner--green { --blue: #1A7F55; }
.banner--green .banner__front { background: url("/assets/lp/img/green/pattern-icons.svg") 0 0 / 40cqw 40cqw, linear-gradient(180deg, #E4F4EA 0%, #F1FAF4 64%, #FFFFFF 100%); }
.banner--green .banner__btn { box-shadow: 0 1.6cqw 3.6cqw rgba(26, 127, 85, 0.3); }
/* WordPress の引っ越しのバナー：LP と同じ黄色の配色（黄色の模様と淡い黄色のグラデーション、操作の色は琥珀） */
.banner--yellow { --blue: #B45309; }
.banner--yellow .banner__front { background: url("/assets/lp/img/yellow/pattern-icons.svg") 0 0 / 40cqw 40cqw, linear-gradient(180deg, #FFF1BF 0%, #FFF9E6 64%, #FFFFFF 100%); }
.banner--yellow .banner__btn { box-shadow: 0 1.6cqw 3.6cqw rgba(180, 83, 9, 0.3); }

/* 06 協業 */
.scene--partners .panel { left: 2.8vw; top: calc(var(--hdr) + var(--vh) * 2.2); width: 44vw; }
.scene--partners .lead { margin-top: max(6px, calc(10px * var(--s))); font-size: max(15px, calc(23px * var(--s))); font-weight: 500; }
.phase { margin-top: max(20px, calc(56px * var(--s))); }
.phase__tabs { position: relative; display: flex; gap: max(22px, calc(56px * var(--s))); }
.phase__tabs button { padding: 4px 0 12px; font-weight: 700; font-size: max(16px, calc(25px * var(--s))); color: var(--ink-3); transition: color 0.3s; }
.phase__tabs button[aria-selected="true"] { color: var(--ink); }
.phase__tabs button:hover { color: var(--ink); }
.phase__bar { position: absolute; left: 0; bottom: 0; height: 4px; width: var(--w, 60px); background: var(--cobalt); transform: translateX(var(--x, 0)); transition: transform 0.55s var(--ease-out), width 0.55s var(--ease-out); }
.phase__panels { margin-top: max(12px, calc(26px * var(--s))); min-height: calc(3.6em); font-size: max(15px, calc(21px * var(--s))); line-height: 1.65; }
.phase__panels p { animation: phase-in 0.6s var(--ease-out); }
@keyframes phase-in { from { opacity: 0; transform: translateY(10px); } }
.scene--partners .actions { margin-top: max(18px, calc(34px * var(--s))); }

/* 07 制作例：最近の制作例をカードで見せる（カードの見た目は works.css の一覧と共通。すべては /works/）。
   お知らせ検索の部品（.finder）は、機能サンプルの詳細ページで使う */
.scene--sample .panel { left: 35.6vw; right: 2.6vw; top: calc(var(--hdr) + var(--vh) * 3); bottom: calc(var(--ftr) + var(--vh) * 1.5); display: flex; flex-direction: column; }
.scene--sample .h-display { margin-top: max(2px, calc(6px * var(--s))); }
.recent { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: max(20px, calc(44px * var(--s))); margin-top: max(18px, calc(36px * var(--s))); }
.scene--sample .wcard { animation: none; }
.wcard--mini .wcard__fig { margin: max(10px, calc(14px * var(--s))) 0 0 max(12px, calc(16px * var(--s))); }
.wcard--mini .wcard__title { margin-top: max(18px, calc(30px * var(--s))); font-size: max(15px, calc(21px * var(--s))); }
.wcard--mini .wcard__spec { margin-top: max(4px, calc(8px * var(--s))); }
.recent__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: auto; padding-top: max(12px, calc(20px * var(--s))); }
.recent__foot .note { margin: 0; font-size: var(--fs-xs); }
.finder { display: flex; gap: 6px; margin-top: max(12px, calc(26px * var(--s))); }
.finder__field { position: relative; flex: 1; display: flex; align-items: flex-end; background: var(--paper-2); border: 1.5px solid var(--line-strong); height: max(50px, calc(72px * var(--s))); transition: border-color 0.2s, box-shadow 0.2s; }
.finder__field:focus-within { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(36, 75, 221, 0.18); }
.finder__label { position: absolute; left: max(48px, calc(72px * var(--s))); top: max(5px, calc(10px * var(--s))); font-size: var(--fs-xs); color: var(--ink-2); }
.finder__icon { position: absolute; left: max(14px, calc(22px * var(--s))); top: 50%; width: max(20px, calc(30px * var(--s))); height: max(20px, calc(30px * var(--s))); transform: translateY(-50%); fill: none; stroke: var(--ink-2); stroke-width: 1.8; }
.finder input { flex: 1; min-width: 0; height: 100%; padding: max(16px, calc(26px * var(--s))) 14px max(4px, calc(8px * var(--s))) max(48px, calc(72px * var(--s))); border: 0; background: transparent; font: inherit; font-size: max(16px, calc(17px * var(--s))); color: var(--ink); outline: none; }
.finder input::placeholder { color: var(--ink-3); }
.finder .btn { min-height: 0; padding: 0 max(18px, calc(40px * var(--s))); white-space: nowrap; flex: none; }
.finder__cats { position: relative; display: flex; gap: max(16px, calc(40px * var(--s))); margin-top: max(10px, calc(24px * var(--s))); border-bottom: 1px solid var(--line); }
.finder__cats button { padding: 6px 2px max(8px, calc(14px * var(--s))); font-weight: 500; font-size: var(--fs-md); color: var(--ink-2); transition: color 0.25s; }
.finder__cats button[aria-checked="true"] { color: var(--cobalt); font-weight: 700; }
.finder__bar { position: absolute; left: 0; bottom: -1.5px; height: 3px; width: var(--w, 60px); background: var(--cobalt); transform: translateX(var(--x, 0)); transition: transform 0.5s var(--ease-out), width 0.5s var(--ease-out); }
.finder__count { margin-top: max(8px, calc(16px * var(--s))); font-size: var(--fs-body); }
.finder__count b { font-family: var(--font-latin); font-stretch: 112%; font-weight: 800; font-variant-numeric: tabular-nums; }
.finder__list { flex: 1; min-height: 0; margin-top: max(4px, calc(8px * var(--s))); display: grid; grid-template-rows: repeat(3, 1fr); max-height: calc(270px * var(--s) + 30px); }
.finder__list li { border-bottom: 1px solid var(--line); min-height: 0; animation: row-in 0.6s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes row-in { from { opacity: 0; transform: translateY(12px); } }
.finder__item { display: grid; grid-template-columns: max(92px, calc(160px * var(--s))) 1fr 24px; align-items: center; width: 100%; height: 100%; text-align: left; padding: 6px 0; }
.finder__cat { color: var(--cobalt); font-size: var(--fs-sm); font-weight: 500; }
.finder__title { font-weight: 700; font-size: max(15px, calc(20px * var(--s))); line-height: 1.4; }
.finder__desc { grid-column: 2 / 3; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.4s var(--ease-out), opacity 0.3s; }
.finder__item[aria-expanded="true"] .finder__desc { max-height: 3em; opacity: 1; }
.finder__chev { justify-self: end; width: 9px; height: 9px; border-top: 1.8px solid; border-right: 1.8px solid; transform: rotate(45deg); transition: transform 0.35s var(--ease-out); }
.finder__item[aria-expanded="true"] .finder__chev { transform: rotate(135deg); }
.finder__item:hover .finder__title { color: var(--cobalt); }
.finder__empty { grid-row: 1 / -1; align-self: center; font-size: var(--fs-md); color: var(--ink-2); border: 0 !important; }
.finder__empty button { margin-top: 12px; }
.finder__foot { display: flex; align-items: center; justify-content: space-between; margin-top: max(8px, calc(16px * var(--s))); }
.pager { display: flex; align-items: center; gap: max(14px, calc(28px * var(--s))); font-family: var(--font-latin); font-stretch: 112%; font-size: var(--fs-md); font-variant-numeric: tabular-nums; }
.pager button { display: grid; place-items: center; width: 40px; height: 36px; }
.pager button:disabled { opacity: 0.3; cursor: default; }
.finder__clear { font-size: var(--fs-body); font-weight: 500; }

/* 08 進め方 */
.scene--process .panel { left: 8.4vw; right: 3vw; top: calc(var(--vh) * 57); bottom: calc(var(--ftr) + var(--vh) * 1.2); display: flex; flex-direction: column; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4vw; }
.steps__num { display: block; font-family: var(--font-latin); font-stretch: 112%; font-size: max(14px, calc(22px * var(--s))); font-weight: 700; color: var(--cobalt); font-variant-numeric: tabular-nums; }
.steps strong { display: block; margin-top: max(2px, calc(8px * var(--s))); font-weight: 900; font-size: max(18px, calc(30px * var(--s))); line-height: 1.35; }
.steps p { margin-top: max(6px, calc(14px * var(--s))); font-size: max(14px, calc(18px * var(--s))); line-height: 1.75; color: var(--ink-2); }
.scene--process .actions { margin-top: auto; }

/* 09 相談 */
.scene--contact .panel { left: 43.8vw; right: 4.6vw; top: calc(var(--hdr) + var(--vh) * 2.5); bottom: calc(var(--ftr) + var(--vh) * 0.5); display: flex; flex-direction: column; }
.scene--contact .side { position: absolute; left: 3.3vw; bottom: calc(var(--ftr) + var(--vh) * 4.5); }
.side__name { font-weight: 700; font-size: max(15px, calc(21px * var(--s))); }
.side__links { display: flex; gap: 28px; margin-top: 10px; font-size: var(--fs-body); }
.side__links a { text-underline-offset: 5px; text-decoration-thickness: 1px; }
.consult { flex: 1; min-height: 0; display: grid; }
.consult__step { grid-area: 1 / 1; min-width: 0; border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; }
.consult__step.is-entering { animation: step-in 0.75s var(--ease-out); }
.consult__step.is-exiting { animation: step-out 0.28s var(--ease-in) forwards; }
@keyframes step-in { from { opacity: 0; transform: translate3d(0, 0, 0) scale(0.97); filter: blur(6px); } }
@keyframes step-out { to { opacity: 0; transform: scale(1.03); filter: blur(4px); } }
.scene--contact .eyebrow { font-size: var(--fs-md); }
.topic { font-size: var(--fs-sm); font-weight: 700; color: var(--paper); background: var(--cobalt); padding: 3px 10px; letter-spacing: 0.04em; }
.scene--contact .h-display { margin-top: max(4px, calc(10px * var(--s))); }
.scene--contact .lead { margin-top: max(4px, calc(8px * var(--s))); }
.field { display: flex; flex-direction: column; margin-top: max(12px, calc(26px * var(--s))); }
.field label { font-weight: 700; font-size: var(--fs-body); display: flex; align-items: baseline; gap: 12px; }
.req, .opt { font-style: normal; font-size: var(--fs-xs); font-weight: 500; }
.req { color: var(--cobalt); }
.opt { color: var(--ink-3); }
.field input, .field textarea {
  margin-top: 8px; width: 100%; border: 1.5px solid var(--line-strong); background: var(--paper-2); color: var(--ink);
  font: inherit; font-size: max(16px, calc(16px * var(--s))); padding: 10px 14px; border-radius: 0; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { resize: none; min-height: calc(118px * var(--s) + 20px); line-height: 1.6; }
.field input { height: max(44px, calc(52px * var(--s))); }
.field input:focus, .field textarea:focus { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(36, 75, 221, 0.18); background: #fff; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field__hint { margin-top: 6px; font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.6; }
.field__err { margin-top: 6px; font-size: var(--fs-sm); color: var(--alert); font-weight: 700; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--alert); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.scene--contact .actions { margin-top: max(16px, calc(30px * var(--s))); }
.review { margin-top: max(12px, calc(26px * var(--s))); display: grid; font-size: var(--fs-body); }
.review div { display: grid; grid-template-columns: max(110px, calc(190px * var(--s))) 1fr; padding: max(7px, calc(12px * var(--s))) 0; border-bottom: 1px solid var(--line); }
.review dt { font-weight: 700; }
.review dd { white-space: pre-wrap; word-break: break-word; max-height: 7.2em; overflow: auto; }
.consult__status { margin-top: 18px; padding: 14px 18px; font-weight: 700; border-left: 4px solid var(--cobalt); background: var(--paper-2); }
.consult__status.is-error { border-color: var(--alert); color: var(--alert); }
.consult__status.is-preview { border-color: var(--ink); }
.panel__meta { display: none; }

/* AI窓口（相談の 4 段目）。会話の欄が残りの高さを使い、中だけをスクロールさせる */
/* 見出しと説明の間に置く、AI窓口を開くボタン。吹き出しの中の星で AI を示す */
.chat-open { margin-top: max(8px, calc(14px * var(--s))); }
.chat-open__btn {
  display: inline-flex; align-items: center; gap: 8px; padding: max(6px, calc(8px * var(--s))) max(12px, calc(16px * var(--s)));
  border: 1.5px solid var(--cobalt); color: var(--cobalt); background: transparent;
  font-weight: 700; font-size: max(14px, calc(16px * var(--s))); line-height: 1.4; transition: background 0.2s, color 0.2s;
}
.chat-open__btn:hover { background: var(--cobalt); color: var(--paper); }
.chat-open__btn:hover .arr::before, .chat-open__btn:hover .arr::after { animation: arr-pass 0.72s; }
.chat-open__icon { width: max(24px, calc(28px * var(--s))); height: max(24px, calc(28px * var(--s))); flex: none; }
.chat-open__btn .arr { --arr-w: 20px; margin-left: 2px; }
/* 背の低い横長の画面（1366×657 など）では、AI窓口のボタンの分だけ、相談 1 段目の入力欄と間隔を詰めて収める */
@media (max-height: 800px) {
  :root:not(.is-tall) .chat-open { margin-top: 6px; }
  :root:not(.is-tall) .chat-open__btn { padding-top: 4px; padding-bottom: 4px; }
  :root:not(.is-tall) .scene--contact .field { margin-top: 12px; }
}
@media (max-height: 700px) {
  :root:not(.is-tall) .scene--contact .field textarea { min-height: 0; height: 96px; }
  :root:not(.is-tall) .scene--contact .field input, :root:not(.is-tall) .scene--contact .field textarea { margin-top: 5px; }
  :root:not(.is-tall) .scene--contact .actions { margin-top: 12px; }
}
.consult:has(.chat.is-current) { grid-template-rows: minmax(0, 1fr); }
.chat { min-height: 0; }
/* 会話の欄：チャットの画面のように、AI の吹き出しを左、訪問者の吹き出しを右に並べる */
.chat__log {
  list-style: none; margin: max(10px, calc(18px * var(--s))) 0 0; padding: max(12px, calc(18px * var(--s))) max(10px, calc(16px * var(--s)));
  flex: 1 1 0; min-height: 160px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  display: flex; flex-direction: column; gap: max(10px, calc(14px * var(--s)));
  background: #DFE1E8; border-radius: 16px;
}
.chat__msg { display: flex; align-items: flex-start; gap: 8px; animation: chat-in 0.4s var(--ease-out); }
.chat__msg--user { justify-content: flex-end; }
.chat__msg.is-cont { margin-top: calc(-1 * max(4px, calc(6px * var(--s)))); }
.chat__avatar { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--cobalt); color: var(--paper); }
.chat__avatar svg { width: 21px; height: 21px; }
.chat__msg.is-cont .chat__avatar { visibility: hidden; height: 0; }
.chat__body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; max-width: min(80%, 34em); }
.chat__msg--user .chat__body { align-items: flex-end; }
.chat__who { margin: 0 0 4px 2px; font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); }
.chat__msg.is-cont .chat__who { display: none; }
.chat__row { display: flex; align-items: flex-end; gap: 6px; max-width: 100%; }
.chat__msg--user .chat__row { flex-direction: row-reverse; }
.chat__bubble {
  position: relative; min-width: 0; padding: 9px 14px; border-radius: 18px; background: #fff; color: var(--ink);
  font-size: var(--fs-body); line-height: 1.7; white-space: pre-wrap; word-break: break-word; box-shadow: 0 1px 1px rgba(23, 25, 28, 0.06);
}
.chat__msg--user .chat__bubble { background: var(--cobalt); color: var(--paper); }
/* 吹き出しのしっぽ（続けて出す吹き出しには付けない） */
.chat__msg:not(.is-cont) .chat__bubble::before { content: ""; position: absolute; top: 0; width: 12px; height: 14px; background: inherit; }
.chat__msg--ai:not(.is-cont) .chat__bubble { border-top-left-radius: 4px; }
.chat__msg--ai:not(.is-cont) .chat__bubble::before { left: -7px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.chat__msg--user:not(.is-cont) .chat__bubble { border-top-right-radius: 4px; }
.chat__msg--user:not(.is-cont) .chat__bubble::before { right: -7px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.chat__msg.is-note .chat__bubble { color: var(--ink-2); }
.chat__bubble a { color: var(--cobalt); font-weight: 700; word-break: break-all; }
.chat__time { flex: none; padding-bottom: 2px; font-size: 10.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chat__chip {
  display: inline-flex; align-items: center; margin-top: 6px; padding: 6px 14px; border: 1.5px solid var(--cobalt); border-radius: 999px;
  background: #fff; color: var(--cobalt); font-weight: 700; font-size: var(--fs-sm); transition: background 0.2s, color 0.2s;
}
.chat__chip:hover { background: var(--cobalt); color: var(--paper); }
.chat__chip .arr { --arr-w: 18px; margin-left: 6px; }
/* 回答を待つ間の点 */
.chat__typing { display: inline-flex; gap: 5px; padding: 6px 2px; }
.chat__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: chat-dot 1.2s ease-in-out infinite; }
.chat__typing i:nth-child(2) { animation-delay: 0.15s; }
.chat__typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes chat-dot { 0%, 60%, 100% { transform: none; opacity: 0.45; } 30% { transform: translateY(-4px); opacity: 1; } }
/* 入力欄：角の丸い欄と、丸い送信ボタン。欄は書いた量に合わせて伸びる */
.chat__input {
  display: flex; align-items: flex-end; gap: 8px; margin-top: max(10px, calc(14px * var(--s))); padding: 6px 6px 6px 8px;
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: 26px; transition: border-color 0.2s, box-shadow 0.2s;
}
.chat__input:focus-within { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(36, 75, 221, 0.18); }
.chat__input textarea {
  flex: 1; min-width: 0; height: 42px; max-height: 128px; padding: 9px 8px; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: max(16px, calc(16px * var(--s))); line-height: 1.5; resize: none; outline: none;
}
.chat__input textarea::placeholder { color: var(--ink-3); }
.chat__input textarea:disabled { opacity: 0.55; }
.chat__send { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--cobalt); color: var(--paper); transition: background 0.2s, opacity 0.2s; }
.chat__send:hover:not(:disabled) { background: var(--cobalt-deep); }
.chat__send:disabled { opacity: 0.35; cursor: default; }
.chat__send svg { width: 20px; height: 20px; }
.chat__hint { display: flex; justify-content: space-between; gap: 16px; }
.chat__hint a { margin-left: 0.4em; color: var(--cobalt); font-weight: 700; }
.chat__count { flex: none; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.chat__count.is-over { color: var(--alert); font-weight: 700; }
.scene--contact .chat .actions { margin-top: max(10px, calc(20px * var(--s))); }

/* 11 会社情報 */
.aux--company .panel { left: 53.7vw; right: 3vw; top: max(calc(var(--vh) * 13), calc(var(--hdr) + 8px)); }
.table { margin-top: max(18px, calc(44px * var(--s))); display: grid; font-size: max(15px, calc(19px * var(--s))); }
.table div { display: grid; grid-template-columns: max(96px, calc(190px * var(--s))) 1fr; padding: max(10px, calc(18px * var(--s))) 0; border-bottom: 1px solid var(--line-strong); }
.table dt { font-weight: 500; }
.table--small { font-size: var(--fs-body); margin-top: 20px; }
.table--small div { padding: 10px 0; grid-template-columns: max(96px, calc(160px * var(--s))) 1fr; }
/* 事業内容が2行になるので、行の上下と操作の前を少し詰め、下端に余白を残す */
.aux--company .table div { padding: max(10px, calc(15px * var(--s))) 0; }
.aux--company .actions { margin-top: max(20px, calc(36px * var(--s))); }

/* 12 詳細を読む画面 */
.reader__side { position: absolute; left: 0; top: var(--hdr); width: 20.8vw; bottom: calc(var(--vh) * 42); padding: calc(var(--vh) * 9) 2.6vw 0; }
.reader__eyebrow { font-family: var(--font-latin); font-stretch: 112%; font-size: var(--fs-sm); letter-spacing: 0.16em; font-weight: 600; }
.reader__toc { margin-top: max(12px, calc(26px * var(--s))); display: grid; gap: 6px; }
.reader__toc button { width: 100%; text-align: left; padding: max(8px, calc(12px * var(--s))) 14px; font-weight: 700; font-size: max(14px, calc(19px * var(--s))); color: var(--paper); transition: background 0.3s, color 0.3s; }
.reader__toc button[aria-current="true"] { background: var(--paper); color: var(--cobalt); }
.reader__toc button:hover:not([aria-current="true"]) { background: rgba(241, 238, 229, 0.14); }
.reader__main { left: 25vw; right: 6vw; top: calc(var(--vh) * 17); bottom: calc(var(--ftr) + var(--vh) * 3); }
.reader__title { font-weight: 900; font-size: max(24px, calc(56px * var(--s))); line-height: 1.25; }
.reader__page { margin-top: max(16px, calc(36px * var(--s))); font-size: max(15px, calc(20px * var(--s))); line-height: 1.8; max-width: 52em; }
.reader__page > section { animation: page-in 0.7s var(--ease-out); }
.reader__page.is-back > section { animation-name: page-in-back; }
@keyframes page-in { from { opacity: 0; transform: translate3d(34px, 0, 0); } }
@keyframes page-in-back { from { opacity: 0; transform: translate3d(-34px, 0, 0); } }
.reader__page p + p, .reader__page p + ul, .reader__page ul + p, .reader__page .lead + p, .reader__page dl + p, .reader__page p + dl, .reader__page p + ol { margin-top: max(12px, calc(24px * var(--s))); }
.reader__page .lead { font-size: max(16px, calc(23px * var(--s))); margin-top: 0; }
.dots { display: grid; gap: max(8px, calc(18px * var(--s))); }
.dots li { position: relative; padding-left: max(28px, calc(46px * var(--s))); }
.dots li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: max(12px, calc(20px * var(--s))); height: max(12px, calc(20px * var(--s))); border-radius: 50%; background: var(--cobalt); transform: translateY(-15%); }
.phases { display: grid; gap: 4px; }
.phases div { display: grid; grid-template-columns: max(80px, calc(130px * var(--s))) 1fr; padding: 10px 0; border-bottom: 1px solid var(--line); }
.phases dt { font-weight: 700; color: var(--cobalt); }
.flow { counter-reset: flow; display: grid; gap: max(8px, calc(16px * var(--s))); }
.flow li { counter-increment: flow; display: grid; grid-template-columns: max(34px, calc(52px * var(--s))) 1fr; column-gap: 6px; font-size: max(14px, calc(17px * var(--s))); }
.flow li::before { content: "0" counter(flow); grid-row: span 2; font-weight: 500; color: var(--cobalt); }
.flow strong { font-weight: 700; }
/* 詳細画面の下の帯も、主画面のフッターと同じ黒帯。ボタンは帯の高さいっぱいを押せる範囲にする */
.reader__bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--ftr); display: grid; grid-template-columns: 1fr auto auto; align-items: stretch;
  padding: 0 0 0 max(24px, 11vw); background: var(--ink); color: var(--paper);
}
.reader__bar :focus-visible { outline-color: var(--paper); outline-offset: -5px; }
.reader__doc { align-self: center; font-size: max(11px, calc(12px * var(--s))); font-weight: 500; letter-spacing: 0.04em; opacity: 0.78; }
.reader__pager { display: flex; align-items: stretch; border-left: 1px solid rgba(241, 238, 229, 0.14); font-size: max(12px, calc(13px * var(--s))); font-variant-numeric: tabular-nums; }
.reader__num { align-self: center; padding: 0 max(10px, calc(14px * var(--s))); font-family: var(--font-latin); font-stretch: 112%; letter-spacing: 0.06em; }
.reader__close { padding: 0 max(18px, calc(28px * var(--s))); border-left: 1px solid rgba(241, 238, 229, 0.14); font-size: max(12px, calc(13px * var(--s))); }
.reader__close::after { display: none; }

/* ------------------------------------------------------------------ 縦長の画面 */

.is-tall {
  --hdr: 58px;
  --ftr: 48px;
  --cell: 56px;
  --gut: 20px;
}
.is-tall .gnav { display: none; }
.is-tall .menu-btn {
  display: inline-flex; align-items: center; gap: 12px; height: 40px; padding: 0 2px; font-weight: 700; font-size: 13px; letter-spacing: 0.08em;
}
.menu-btn i { display: block; width: 22px; height: 1.8px; background: currentColor; transition: transform 0.4s var(--ease-out); }
.menu-btn i + i { margin-left: -34px; transform: translateY(7px); }
.menu-btn i:first-of-type { transform: translateY(-3px); }
.menu-btn[aria-expanded="true"] i:first-of-type { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i + i { transform: translateY(3px) rotate(-45deg); }
.menu-btn span { order: -1; }
/* メニューは、一覧の上と下のリンクの下の余白を auto にして縦の中央に寄せる。収まらない高さでは、その余白が 0 になって上から並び、メニューの中でスクロールできる
   （justify-content: center のままだと、あふれた分が上にも出てヘッダーの下に隠れ、届かなくなる） */
.is-tall .mnav {
  display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 25; padding: 80px 28px 40px;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  background: var(--cobalt); color: var(--paper); clip-path: inset(0 0 100% 0); transition: clip-path 0.6s var(--ease-out);
}
.is-tall .mnav.is-open { clip-path: inset(0); }
.is-tall.menu-open .hdr { color: var(--paper); }
.is-tall.menu-open .hdr__logo { color: var(--paper); }
.mnav__list { display: grid; gap: 4px; margin-top: auto; }
.mnav__list a { display: flex; align-items: baseline; gap: 16px; padding: 8px 0; font-weight: 900; font-size: clamp(22px, 7.2vw, 34px); text-decoration: none; line-height: 1.3; }
.mnav__list span { font-family: var(--font-latin); font-stretch: 112%; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; opacity: 0.7; width: 26px; }
/* 下の小さなリンクは、文の途中で折り返さず、リンクの単位で次の行へ送る */
.mnav__foot { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 36px; margin-bottom: auto; font-size: 14px; }
.mnav__foot a { white-space: nowrap; }
/* 背の低い画面（高さ 760px 未満。トップの .is-short と同じ境目。書き出すページは .is-short を付けないので、高さで決める）では、
   一覧と下のリンクの間隔を詰めて、ヘッダー（58px）の下から画面の下までに収める */
@media (max-height: 759.98px) {
  .is-tall .mnav { padding: 64px 28px 20px; }
  .is-tall .mnav__list { gap: 2px; }
  .is-tall .mnav__list a { padding: 4px 0; }
  .is-tall .mnav__foot { gap: 4px 14px; margin-top: 24px; }
}

.is-tall .ftr { grid-template-columns: 1fr auto; grid-template-areas: "prog ctrl"; gap: 18px; }
.is-tall .ftr__hint { display: none; }
.is-tall .ftr__tele { display: none; }

.is-tall .panel { left: 6vw; right: 6vw; width: auto; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.is-tall .scene--entry .panel { top: calc(var(--hdr) + var(--vt) * 47); bottom: calc(var(--ftr) + var(--vh) * 2); }
.is-tall .entry__title { font-size: clamp(22px, 6.6vw, 34px); }
.is-tall .scene--build .panel { top: calc(var(--hdr) + var(--vt) * 42); bottom: calc(var(--ftr) + var(--vh) * 1); }
.is-tall .scene--build .h-display { font-size: clamp(24px, 7.4vw, 38px); }
.is-tall .plain-list { margin-top: 14px; gap: 6px; }
.is-tall .scene--build .actions { flex-direction: row; flex-wrap: wrap; gap: 14px 24px; margin-top: 18px; }
.is-tall .scene--improve .panel { top: calc(var(--hdr) + var(--vt) * 49); bottom: calc(var(--ftr) + var(--vh) * 1); }
.is-tall .h-quiet { font-size: clamp(19px, 5.6vw, 28px); line-height: 1.5; }
.is-tall .pairs { margin-top: 12px; gap: 2px; }
.is-tall .scene--maintain .panel { top: calc(var(--hdr) + var(--vt) * 17); bottom: calc(var(--ftr) + var(--vh) * 3); }
.is-tall .scene--maintain .h-display { font-size: clamp(21px, 6.4vw, 32px); }
.is-tall .cols { grid-template-columns: 1fr; max-height: none; flex: none; margin-top: 14px; gap: 0; }
.is-tall .cols li { border-left: 0; border-top: 1px solid rgba(241, 238, 229, 0.4); padding: 12px 0; }
.is-tall .cols li:first-child { border-top: 0; }
.is-tall .cols strong { font-size: clamp(18px, 5.2vw, 24px); }
.is-tall .foot-row { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 10px; margin-top: 18px; }
.is-tall .foot-row .actions { gap: 6px 24px; }
/* 縦長の画面：バナーを読める大きさにし、すき間を狭くする（スマートフォンでは左右の札は画面の外へ回り込む）。
   バナーの幅は、スマートフォンは画面の幅の 62%（最大 280px）。タブレットや正方形に近い大きい画面では、幅の 46%・高さの 40%・640px のうち小さいほうまで広げる。
   奥行きの効き（perspective）はバナーの幅に合わせて伸ばし、大きくしても歪みすぎないようにする */
.is-tall .scene--product .panel { top: calc(var(--hdr) + var(--vt) * 17); bottom: auto; overflow: visible; }
.is-tall .shelf { --bw: max(min(62vw, 280px), min(46vw, calc(var(--vh) * 40), 640px)); --ring-gap: 0.12; left: 50vw; top: calc(var(--vh) * 52); perspective: max(900px, calc(var(--bw) * 3.2)); }
@media (min-width: 720px) { .is-tall .shelf { top: calc(var(--vh) * 58); } } /* 大きい縦長の画面は、READY. の下の空きの真ん中へ下げる */
.is-tall .scene--partners .panel { top: calc(var(--hdr) + var(--vt) * 33); bottom: calc(var(--ftr) + var(--vh) * 1); }
.is-tall .scene--partners .h-display--xl { font-size: clamp(22px, 6.8vw, 34px); }
.is-tall .phase { margin-top: 16px; }
.is-tall .phase__panels { min-height: 3.4em; }
.is-tall .actions--stack { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.is-tall .scene--sample .panel { top: calc(var(--hdr) + var(--vt) * 14.5); bottom: calc(var(--ftr) + var(--vh) * 0.5); }
.is-tall .scene--sample .h-display { font-size: clamp(22px, 7vw, 34px); }
.is-tall .recent { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.is-tall .wcard--mini .dim, .is-tall .wcard--mini .wtype small, .is-tall .wcard--mini .wcard__spec { display: none; }
.is-tall .wcard--mini .wtype { font-size: 11px; }
.is-tall .wcard--mini .wcard__title { margin-top: 16px; font-size: 14px; line-height: 1.5; }
.is-tall .recent__foot { flex-direction: column; align-items: flex-start; margin-top: 12px; }
.is-tall .finder__label { display: none; }
.is-tall .finder input { padding-top: 4px; padding-bottom: 4px; align-self: center; }
.is-tall .finder__field { align-items: center; }
.is-tall .finder__cats { gap: 16px; overflow-x: auto; scrollbar-width: none; }
.is-tall .finder__cats::-webkit-scrollbar { display: none; }
.is-tall .finder .btn { padding: 0 16px; }
.is-tall .finder__cats button { white-space: nowrap; }
.is-tall .finder__item { grid-template-columns: 76px 1fr 18px; }
.is-tall .finder__list { flex: none; max-height: none; min-height: 0; grid-template-rows: none; }
.is-tall .finder__item { padding: 14px 0; }
.is-tall .scene--sample .panel { display: block; }
.is-tall .scene--process .panel { top: calc(var(--hdr) + var(--vt) * 18); bottom: calc(var(--ftr) + var(--vh) * 1); }
.is-tall .steps { grid-template-columns: 1fr; gap: 14px; }
.is-tall .steps li { display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; }
.is-tall .steps__num { grid-row: span 2; padding-top: 4px; }
.is-tall .steps strong { margin-top: 0; font-size: clamp(18px, 5.4vw, 24px); }
.is-tall .steps p { margin-top: 2px; }
.is-tall .steps p br { display: none; }
.is-tall .scene--process .actions { margin-top: 20px; justify-content: flex-start; }
.is-tall .scene--contact .panel { top: calc(var(--hdr) + var(--vt) * 13.5); bottom: calc(var(--ftr) + var(--vh) * 0.5); }
.is-tall .scene--contact .side { display: none; }
.is-tall .panel__meta { display: flex; gap: 20px; margin-top: 12px; font-size: 13px; }
.is-tall .scene--contact .h-display { font-size: clamp(21px, 6.2vw, 30px); }
.is-tall .field-row { grid-template-columns: 1fr; gap: 0; }
.is-tall .field textarea { min-height: 88px; height: 88px; }
.is-tall .scene--contact .panel { display: block; }
.is-tall .consult { display: block; }
.is-tall .consult__step { display: block; }
.is-tall .chat__log { height: calc(var(--vh) * 34); min-height: 160px; padding: 12px 10px; }
.is-tall .chat__body { max-width: 82%; }
.is-tall .btn--wide { width: 100%; }
.is-tall .review div { grid-template-columns: 96px 1fr; }
.is-tall .aux--company .panel { top: calc(var(--hdr) + var(--vt) * 22); bottom: calc(var(--ftr) + var(--vh) * 1); }
.is-tall .aux--company .h-display--xl { font-size: clamp(22px, 7vw, 34px); }
.is-tall .reader__side { top: calc(var(--hdr) + var(--vt) * 10); left: 6vw; right: 6vw; width: auto; bottom: auto; padding: 8px 0 0; color: var(--ink); }
.is-tall .reader__eyebrow { display: none; }
.is-tall .reader__toc { display: flex; gap: 6px; overflow-x: auto; margin-top: 0; }
.is-tall .reader__toc button { white-space: nowrap; color: var(--ink); border: 1px solid var(--line-strong); padding: 6px 12px; font-size: 13px; }
.is-tall .reader__toc button[aria-current="true"] { background: var(--cobalt); color: var(--paper); border-color: var(--cobalt); }
.is-tall .reader__main { top: calc(var(--hdr) + var(--vt) * 17); bottom: calc(var(--ftr) + var(--vh) * 1); }
.is-tall .reader__title { font-size: clamp(21px, 6.4vw, 30px); }
.is-tall .reader__bar { grid-template-columns: 1fr auto; padding: 0; }
.is-tall .reader__pager { border-left: 0; }
.is-tall .reader__doc { display: none; }

/* 縦長で背の低い画面（高さ 760px 未満。ツールバーの出た iPhone の Safari など）：読む領域の余白を詰める */
.is-short .idx { margin-bottom: 8px; }
/* 02 は、見出し・一文・3 行の一覧・2 つのリンクが縦に並ぶので、背の低い画面では余白を詰めて読む領域に収める */
.is-short .scene--build .idx { margin-bottom: 4px; }
.is-short .scene--build .lead { margin-top: 4px; }
.is-short .plain-list { margin-top: 6px; gap: 2px; }
.is-short .scene--build .actions { margin-top: 8px; gap: 4px 24px; }
.is-short .pairs { margin-top: 8px; }
.is-short .cols li { padding: 6px 0; }
.is-short .foot-row { margin-top: 12px; padding-top: 0; }
/* 04 は、読む領域の下を帯の近くまで広げる（ほかの場面と同じ）。収まらない高さでも、相談のボタンが下の薄れにかからないよう、
   見た目の順を「ボタン → ほかのリンク → 一文」にする（HTML の順は変えない。キーボードの移動の順が見た目とずれるのは 3 つのリンクの中だけ） */
.is-short .scene--maintain .panel { bottom: calc(var(--ftr) + var(--vh)); }
.is-short .foot-row .actions { order: -1; }
.is-short .foot-row .btn { order: -1; }
.is-short .actions--text { margin-top: 14px; }
.is-short .shelf { top: calc(var(--vh) * 54); }
.is-short .phase { margin-top: 10px; }
.is-short .phase__panels { margin-top: 8px; }
.is-short .scene--partners .actions { margin-top: 12px; }
.is-short .table { margin-top: 12px; }
.is-short .table div { padding: 6px 0; }
.is-short .aux--company .actions { margin-top: 14px; }
.is-short .scene--contact .lead { margin-top: 6px; }
.is-short .field { margin-top: 10px; }
.is-short .field textarea { min-height: 72px; height: 72px; }

/* 横長の画面で読む領域が下の帯に届くとき（背の低いウィンドウ、スマホの横向きなど）：帯の手前までに収め、はみ出す分は中でスクロールする（main.js の fitPanel） */
.panel.is-fit { bottom: calc(var(--ftr) + 4px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }

/* 読む領域に続きがあるとき（入力欄の多い相談など）は、下端を薄くして続きを示す（main.js の markMore） */
.is-tall .panel.is-more, .panel.is-fit.is-more {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent);
}

/* ------------------------------------------------------------------ JavaScript が使えない環境 */
/* 固定1画面の演出をやめ、01〜09・会社情報・詳細の本文を、上から順に読む1枚のページにする
   （html の no-js は、JavaScript が動くと最初に js へ置き換わる） */

.docs__title, .docs__page { display: none; }
.no-js .hdr { position: static; height: auto; min-height: var(--hdr); flex-wrap: wrap; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
.no-js:not(.page-works) .hdr .logo { display: none; } /* トップのロゴは字の輪郭から JavaScript で描くので、文字の AQU8 だけを出す（制作例のページは形を書き込んである） */
.no-js .gnav__item--menu, .no-js .menu-btn, .no-js .ftr, .no-js .wipe, .no-js .inspect { display: none; }
.no-js .gnav__list { flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; }
.no-js .scene, .no-js .aux--company {
  position: static; visibility: visible; pointer-events: auto;
  padding: max(40px, calc(72px * var(--s))) var(--gut); border-bottom: 1px solid var(--line);
}
.no-js .aux--company[hidden] { display: block !important; } /* [hidden] は全体で !important で消しているため */
.no-js .panel { position: static; width: auto; max-width: 1100px; margin: 0 auto; }
.no-js [data-r] { opacity: 1; transform: none; }
.no-js .idx::after { transform: none; }
.no-js .scene--maintain { background: var(--cobalt); }
.no-js .shelf { position: static; width: auto; height: auto; max-width: 1100px; margin: max(24px, calc(40px * var(--s))) auto 0; perspective: none; }
.no-js .shelf__stage { position: static; transform: none; }
.no-js .shelf__ring { position: static; transform: none; display: flex; flex-wrap: wrap; gap: 24px; }
.no-js .banner { position: relative; display: block; translate: none; width: min(100%, 360px); }
.no-js .banner--empty, .no-js .banner__back, .no-js .shelf__hit, .no-js .shelf__orbit { display: none; }
.no-js .scene--contact .side, .no-js .consult, .no-js [data-aux-close] { display: none; }
.no-js .scene--process .actions { margin-top: 32px; justify-content: flex-start; }
.no-js #process-title {
  position: static !important; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; white-space: normal;
  margin-bottom: max(20px, calc(36px * var(--s))); font-weight: 900; font-size: var(--fs-h); line-height: 1.4;
}
.no-js .panel__meta { display: flex; gap: 24px; margin-top: 20px; }
.no-js .docs[hidden] { display: block !important; }
.no-js .docs article { padding: max(40px, calc(72px * var(--s))) var(--gut); border-bottom: 1px solid var(--line); }
.no-js .docs article > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.no-js .docs section > * { max-width: 820px; }
.no-js .docs__title { display: block; font-weight: 900; font-size: var(--fs-h); line-height: 1.4; }
.no-js .docs__page { display: block; margin: max(28px, calc(44px * var(--s))) 0 12px; font-weight: 700; font-size: var(--fs-md); color: var(--cobalt); }
.no-js .docs section { font-size: var(--fs-body); line-height: 1.8; }
.no-js .docs section > * + * { margin-top: 12px; }
@media (max-width: 720px) {
  .no-js { --s: 0.5; }
  .no-js .gnav__list { gap: 14px; font-size: 13px; }
  .no-js .steps, .no-js .cols, .no-js .recent, .no-js .field-row { grid-template-columns: 1fr; }
  .no-js .cols { max-height: none; }
  .no-js .cols li { border-left: 0; padding: 12px 0; }
}

/* ------------------------------------------------------------------ WebGL が使えない環境 */

.no-webgl .scene__mark {
  display: block; position: absolute; right: 3vw; bottom: calc(var(--ftr) + var(--vh) * 2); z-index: -1; margin: 0;
  font-weight: 900; font-size: 13vw; line-height: 0.85; letter-spacing: -0.02em; color: var(--cobalt); opacity: 0.14;
}

@media (prefers-reduced-motion: reduce) {
  [data-r], .ln[data-r], .is-active [data-r], .is-open [data-r], .is-active .ln[data-r], .is-open .ln[data-r], .ln .ch {
    transform: none !important; clip-path: none !important; transition: opacity 0.2s linear !important;
  }
  .idx::after { transform: none !important; }
  .reader__title.is-swap, .ftr__hint.is-nudge .ftr__hint-text { animation: none !important; }
  .consult__step.is-entering, .consult__step.is-exiting, .reader__page > section, .finder__list li, .phase__panels p, .chat__msg, .chat__typing i { animation: none !important; }
  .ftr__hint::before { animation: none; }
  .arr::before, .arr::after { animation: none !important; }
  .ftr__btn::before, .reader__pager button::before, .reader__close::before { transition: none; }
  .wipe { display: none; }
  .shelf__stage, .banner__front, .shelf__orbit { transition: none; }
}
