/* =========================================================
   invest-aitech v4 試作 07 — 資料から、判断、そして動く試作品へ
   白い紙 × 青のインク。深い紺は「ご相談」とフッターだけ。
   ========================================================= */

/* 共通の土台（ページ間の移動・色と書体の変数・基本・ボタン・ヘッダー・メニュー・フッター・技術パネル・トースト・動きの設定）は site.css にある。ここはトップだけの見た目。 */

/* =========================================================
   STAGE（粒子のビジュアル）
   ========================================================= */
.stage { position: relative; }
.stage-visual {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden;
}
.sv-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sv-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .075) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(52% 58% at 72% 48%, #000 10%, transparent 78%);
  mask-image: radial-gradient(52% 58% at 72% 48%, #000 10%, transparent 78%);
}
.sv-glow {
  position: absolute; right: -6%; top: 50%;
  width: min(68vw, 980px); aspect-ratio: 1;
  translate: 0 -50%;
  background: radial-gradient(closest-side, rgba(147, 197, 253, .34), rgba(219, 234, 254, .2) 55%, transparent 74%);
}
.is-stage .stage-visual {
  position: sticky; top: 0; z-index: 0;
  height: var(--stage-h);
  margin-bottom: calc(var(--stage-h) * -1);
}
.is-compact .hero-visual .stage-visual { inset: -36px -4vw -24px -36px; }
.is-compact .sv-grid {
  -webkit-mask-image: radial-gradient(55% 55% at 50% 50%, #000 10%, transparent 78%);
  mask-image: radial-gradient(55% 55% at 50% 50%, #000 10%, transparent 78%);
}
.is-compact .sv-glow { right: auto; left: 50%; width: 110%; translate: -50% -50%; }

.sv-tags { position: absolute; inset: 0; }
/* ラベルは stage.js が点の位置（各形のアンカー）に合わせて置く。02 の札（PDF / PPTX / EDINET）を 01 の白い札に */
.sv-tag {
  position: absolute; left: 0; top: 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px 5px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #d3e0f3;
  box-shadow: 0 10px 22px -16px rgba(11, 22, 48, .5);
  font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--ink-2);
  white-space: nowrap;
  opacity: 0; translate: 0 8px;
  transition: opacity .5s var(--ease), translate .5s var(--ease);
}
.sv-tag:not(:has(b)) { padding-left: 11px; }
.sv-tag:not(:has(b))::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .16);
}
.sv-tag b {
  padding: 1px 7px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .02em; line-height: 1.5; color: #fff; background: var(--blue-ink);
}
.sv-tag.is-on { opacity: 1; translate: 0 0; }
.sv-tag-note { padding: 2px 10px !important; font-size: 12px; color: var(--ink-3); background: rgba(255, 255, 255, .78); box-shadow: none; border-color: transparent; }
.sv-tag-note::before { display: none; }
.sv-note { opacity: 0; transition: opacity .4s; }
.stage-visual.show-legend .sv-note { opacity: 1; }
.is-compact .sv-note { opacity: 1; }
.no-js .sv-tag { display: none; }

/* 03 の街が組み上がったら、実際に公開しているアプリの画面を重ねて「作ったもの」とつなぐ */
.sv-apps {
  position: absolute; left: 57%; width: min(540px, 38vw); top: calc(var(--header-h) + 26px);
  opacity: 0; transform: translateY(12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.sv-apps-h {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 4px 13px 4px 11px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--ink); background: rgba(255, 255, 255, .92); border: 1px solid #d3e0f3;
}
.sv-apps ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sv-apps li {
  overflow: hidden; border-radius: 10px; background: #fff; border: 1px solid #d3e0f3;
  box-shadow: 0 18px 34px -22px rgba(11, 22, 48, .6);
  opacity: 0; transform: translateY(10px) scale(.97);
  transition: opacity .55s var(--ease) var(--d), transform .55s var(--ease) var(--d);
}
.sv-apps img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 0; }
.sv-apps li span { display: block; padding: 5px 10px 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); line-height: 1.4; }
.stage-visual[data-state="4"]:not(.is-morphing) .sv-apps,
.stage-visual[data-state="4"]:not(.is-morphing) .sv-apps li { opacity: 1; transform: none; }
.is-compact .sv-apps { display: none; }
.sv-foot {
  position: absolute; bottom: 30px;
  right: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.sv-note { margin: 0; padding: 1px 10px; border-radius: 999px; font-size: 12px; color: var(--ink-3); background: rgba(255, 255, 255, .8); }
.is-compact .sv-foot { right: 10px; bottom: 8px; }
.sv-legend {
  display: flex; gap: 4px; margin: 0; padding: 5px;
  list-style: none; border-radius: 999px;
  background: rgba(255, 255, 255, .86); border: 1px solid var(--line);
  box-shadow: 0 12px 30px -20px rgba(11, 22, 48, .5);
  opacity: 0; transition: opacity .4s;
}
.sv-legend li {
  padding: 3px 13px; border-radius: 999px;
  font-size: 13px; color: var(--ink-3); transition: background-color .3s, color .3s;
}
.sv-legend li.is-on { background: var(--blue); color: #fff; }
.stage-visual.show-legend .sv-legend { opacity: 1; }
.is-compact .sv-legend { display: none; }
/* 組み上がるまでの空白をなくす：点が出るまでは方眼と光だけを見せる */
.sv-canvas { opacity: 0; transition: opacity .6s var(--ease); }
.stage-ready .sv-canvas { opacity: 1; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  min-height: clamp(700px, 100svh, 920px);
  padding-top: calc(var(--header-h) + clamp(20px, 5vh, 64px));
}
.hero-grid {
  flex: 1;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px; align-items: center;
}
.hero-copy { position: relative; max-width: 800px; }
.hero-visual { position: relative; min-height: 520px; }

.hero-eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  margin: 0 0 24px;
}
.brand-tag {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 5px 14px 5px 12px; border-radius: 999px;
  font-family: var(--f-num); font-weight: 600; font-size: 15px; letter-spacing: -.01em; line-height: 1.3;
  color: var(--blue-ink); background: #fff; border: 1px solid #c9d8f2;
  box-shadow: 0 8px 20px -16px rgba(11, 22, 48, .5);
}
.brand-tag::before { content: ""; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .16); }
.brand-tag .x { margin: 0 .3em; font-weight: 400; color: var(--blue); }
.eyebrow-sub {
  font-size: 13.5px; font-weight: 500; letter-spacing: .06em; color: var(--ink-3);
  padding-left: 18px; border-left: 1px solid var(--line-2); line-height: 1.5;
}

.hero-title {
  position: relative;
  margin: 0;
  font-family: var(--f-head); font-weight: 900;
  font-size: clamp(2.15rem, 6.1vw, 5.6rem);
  line-height: 1.1; letter-spacing: -.03em;
  color: var(--ink);
  font-feature-settings: "palt";
}
.hero-title .line { display: block; overflow: hidden; white-space: nowrap; padding: 0 .04em .07em 0; margin-bottom: -.07em; }
.hero-title .line-in { display: inline-block; }
.hero-title .em {
  background: linear-gradient(100deg, #1e40af 0%, #2563eb 42%, #3b82f6 70%, #2563eb 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-title::after {
  content: ""; position: absolute; left: -1%; right: -1%; top: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, .9) 20%, rgba(96, 165, 250, .95) 50%, rgba(37, 99, 235, .9) 80%, transparent);
  box-shadow: 0 0 16px 2px rgba(96, 165, 250, .45);
  opacity: .5; pointer-events: none;
}
.hero-lead {
  margin: 24px 0 0; max-width: 35em;
  font-size: clamp(15.5px, 1.2vw, 17.5px); line-height: 1.95; color: var(--ink-2);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-proof { position: relative; margin-top: clamp(20px, 3vh, 40px); padding-bottom: 22px; }
.proof-h {
  margin: 0 0 10px; font-family: var(--f-jp);
  font-size: 13px; font-weight: 500; letter-spacing: .14em; color: var(--ink-3);
}
.proof-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 44px -36px rgba(11, 22, 48, .45);
}
.proof-list li {
  position: relative; display: flex; flex-direction: column; gap: 3px;
  padding: 16px 20px 16px 22px;
  border-left: 1px solid var(--line);
}
.proof-list li:first-child { border-left: 0; }
.proof-list li::before {
  content: ""; position: absolute; left: 0; top: 18px; width: 3px; height: 18px;
  border-radius: 0 3px 3px 0; background: var(--blue);
}
.pf-k { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.pf-v { font-family: var(--f-head); font-weight: 700; font-size: 15px; line-height: 1.5; color: var(--ink); }
.pf-v sup { font-size: 12px; color: var(--blue-2); margin-left: 2px; }
.pf-v b, .pf-b { font-family: var(--f-num); font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pf-b { font-size: 1.12em; margin: 0 1px; color: var(--blue-2); }
.proof-note { margin: 10px 2px 0; font-size: 12.5px; line-height: 1.6; color: var(--note); }
.proof-note-fig { display: none; margin-top: 2px; }

/* =========================================================
   STORY（相談できること）
   ========================================================= */
.story {
  position: relative; z-index: 1;
  padding: clamp(64px, 7vw, 104px) 0 clamp(64px, 7vw, 104px);
}
.sec-label {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 0 18px;
  font-size: 13.5px; font-weight: 700; letter-spacing: .14em; color: var(--blue-2);
}
.sec-num {
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .02em;
  color: var(--blue); padding: 2px 9px; border-radius: 999px;
  border: 1px solid #bed1f5; background: rgba(255, 255, 255, .75);
}
.sec-title {
  margin: 0;
  font-family: var(--f-head); font-weight: 900;
  font-size: clamp(1.8rem, 3.2vw, 2.85rem);
  line-height: 1.3; letter-spacing: -.015em; color: var(--ink);
  font-feature-settings: "palt";
}
.sec-title .em { color: var(--blue); }
.sec-lead { margin: 22px 0 0; max-width: 34em; font-size: 16px; color: var(--ink-3); }
.story-head { max-width: 600px; }

.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 24px; }
.step {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 48px); align-items: center;
  padding: clamp(18px, 2.4vw, 28px);
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line); border-radius: 22px;
}
.step-figure {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 16px; border: 1px solid #e0e8f5;
  background:
    radial-gradient(closest-side, rgba(191, 219, 254, .45), transparent 80%) 50% 50% / 90% 90% no-repeat,
    linear-gradient(rgba(37, 99, 235, .06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(37, 99, 235, .06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(180deg, #f9fbff, #eef3fc);
}
.step-figure canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fig-cap {
  position: absolute; left: 14px; bottom: 12px;
  padding: 2px 11px; border-radius: 999px;
  font-size: 12.5px; color: var(--ink-3);
  background: rgba(255, 255, 255, .88); border: 1px solid var(--line);
}
.step-flow {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 10px; font-size: 13.5px; font-weight: 500; letter-spacing: .06em; color: var(--ink-3);
}
.step-no {
  font-family: var(--f-num); font-weight: 600;
  font-size: 44px; line-height: 1; letter-spacing: -.05em; color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.step-title {
  margin: 0;
  font-family: var(--f-head); font-weight: 900;
  font-size: clamp(1.5rem, 2.3vw, 2.05rem); line-height: 1.35; color: var(--ink);
  font-feature-settings: "palt";
}
.step-text { margin: 12px 0 0; font-size: 16.5px; color: var(--ink-2); }
.out-h { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; color: var(--ink-3); }
.step-out { margin-top: 22px; }
.step-out ul, .engage-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.step-out li, .engage-list li {
  padding: 5px 13px; border-radius: 8px;
  font-size: 14px; line-height: 1.5; color: var(--blue-ink);
  background: var(--blue-mist); border: 1px solid #d3e2fb;
}
.step-rel { margin-top: 22px; }
.rel-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.rel-list li { border-bottom: 1px solid var(--line); }
.rel-list a {
  display: grid; grid-template-columns: 78px minmax(0, 1fr) 18px; align-items: center; gap: 12px;
  padding: 11px 2px; color: var(--ink); text-decoration: none;
  transition: background-color .2s, padding .3s var(--ease);
}
.rel-list a::after {
  content: ""; width: 14px; height: 14px; justify-self: end;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9.5M8.5 4 12.5 8l-4 4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9.5M8.5 4 12.5 8l-4 4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  color: var(--blue); transition: transform .25s var(--ease);
}
.rel-list a:hover { color: var(--blue-2); padding-left: 6px; }
.rel-list a:hover::after { transform: translateX(3px); }
.rel-k {
  padding: 1px 6px; border-radius: 6px; text-align: center;
  font-size: 12px; font-weight: 700; color: var(--blue-2);
  border: 1px solid #c9daf8; background: #fff; line-height: 1.6;
}
.rel-t { font-size: 15px; font-weight: 500; line-height: 1.55; }
.rel-note { margin: -4px 0 12px 92px; font-size: 12.5px; line-height: 1.6; color: var(--note); }

.engage {
  margin-top: 28px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px 40px; align-items: center;
  padding: 22px 26px; border-radius: 20px;
  background: #fff; border: 1px solid var(--line);
}
.engage-text { margin: 0; font-size: 15px; color: var(--ink-2); }

/* stage mode: 左に文章、右に粒子 */
.is-stage .story-head {
  min-height: calc(var(--stage-h) * .78);
  display: flex; flex-direction: column; justify-content: center;
  max-width: min(560px, 42vw);
}
.is-stage .steps { margin-top: 0; gap: 0; }
.is-stage .step {
  display: flex; align-items: center;
  min-height: calc(var(--stage-h) * .94);
  padding: 0; background: none; border: 0; border-radius: 0;
}
.is-stage .step-figure { display: none; }
.is-stage .step-body {
  max-width: min(540px, 42vw);
  padding: 28px 30px; margin-left: -30px;
  border-radius: 22px;
  background: linear-gradient(90deg, rgba(244, 247, 252, .94) 60%, rgba(244, 247, 252, 0));
}
.is-stage .engage {
  max-width: min(560px, 44vw); grid-template-columns: 1fr; gap: 16px;
  margin-top: 0; margin-bottom: 8vh;
}

/* compact（静止画の図版）× 広い画面：3つの段を横に並べる */
@media (min-width: 1024px) {
  html:not(.is-stage) .story-head {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 20px 64px; align-items: end; max-width: none;
  }
  html:not(.is-stage) .story-head .sec-lead { margin: 0 0 6px; }
  html:not(.is-stage) .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
  html:not(.is-stage) .step {
    grid-template-columns: minmax(0, 1fr); align-items: start; align-content: start;
    gap: 20px; padding: 16px 16px 22px;
  }
  html:not(.is-stage) .step-body { padding: 0 6px; }
  html:not(.is-stage) .step-figure { aspect-ratio: 16 / 11; }
  html:not(.is-stage) .step-title { font-size: clamp(1.35rem, 1.9vw, 1.7rem); }
  html:not(.is-stage) .step-text { font-size: 15.5px; }
  html:not(.is-stage) .step-no { font-size: 40px; }
  html:not(.is-stage) .rel-list a { grid-template-columns: 70px minmax(0, 1fr) 16px; gap: 10px; }
  html:not(.is-stage) .rel-t { font-size: 14.5px; }
  html:not(.is-stage) .rel-note { margin-left: 0; }
  html:not(.is-stage) .engage { margin-top: 20px; }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.sec { position: relative; z-index: 1; padding: clamp(64px, 7.5vw, 108px) 0; }
.sec-head { margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head-split {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 20px 64px; align-items: end;
}
.sec-head-split .sec-lead { margin: 0 0 6px; }

/* ---------- 外部評価 ---------- */
.recog { background: #fff; overflow: hidden; isolation: isolate; }
/* 粒子のモチーフを下の章へつなぐ：薄い点描の表（行と列）を背景にゆっくり流す */
.recog::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle, rgba(37, 99, 235, .2) 1.1px, transparent 1.6px) 0 0 / 14px 14px,
    linear-gradient(rgba(37, 99, 235, .07) 1px, transparent 1px) 0 0 / 100% 56px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 50%, transparent 85%);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 50%, transparent 85%);
  opacity: .55;
}
@media (prefers-reduced-motion: no-preference) {
  .recog::after { animation: dotflow 40s linear infinite; }
}
@keyframes dotflow { to { background-position: 140px 0, 0 56px; } }
/* 章の切り替わりに、点が流れる細い区切り線 */
.recog::before, .works::before, .articles::before, .news::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; pointer-events: none;
  background: radial-gradient(circle, rgba(37, 99, 235, .55) 1.2px, transparent 1.7px) 0 50% / 12px 3px repeat-x;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .recog::before, .works::before, .articles::before, .news::before { animation: dotline 6s linear infinite; }
}
@keyframes dotline { to { background-position: 120px 50%; } }
.cert {
  position: relative; overflow: hidden;
  border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f7faff);
}
/* 金融庁事業は「技術検証協力」の実績。証書・公印を思わせる飾り（地紋・光る枠）は付けず、ほかのカードと同じ落ち着いた枠にする */
.cert-feature { border-radius: 22px; background: #fff; }
.cert-frame {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px clamp(28px, 4vw, 56px); align-items: start;
  padding: clamp(24px, 3.2vw, 40px) clamp(24px, 3.6vw, 48px);
}
.cert-facts { margin: 0; display: grid; align-self: center; border-top: 1px solid var(--line-2); }
.cert-facts div { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.cert-facts dt { font-size: 13px; color: var(--ink-3); padding-top: 2px; }
.cert-facts dd { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink); }
.cert-facts .cert-keys { margin: 0; }
.cert-body { position: relative; }
.cert-tag {
  display: inline-flex; margin: 0 0 16px; padding: 4px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; color: var(--blue-2);
  background: #fff; border: 1px solid #cddcf6;
}
.cert-title {
  margin: 0; font-family: var(--f-head); font-weight: 900; color: var(--ink);
  font-size: clamp(1.55rem, 2.7vw, 2.35rem); line-height: 1.35;
  font-feature-settings: "palt";
}
.cert-feature .cert-text { margin: 16px 0 0; max-width: 36em; font-size: 16.5px; color: var(--ink-2); }
.cert-keys { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; }
.cert-keys li {
  padding: 3px 11px; border-radius: 6px;
  font-size: 13px; color: var(--blue-ink); background: var(--blue-mist); border: 1px solid #d6e3fa;
}
.cert-note {
  margin: 22px 0 0; padding-top: 14px; border-top: 1px dashed #c8d5ea;
  font-size: 13px; line-height: 1.7; color: var(--note);
}
@keyframes rot { to { transform: rotate(360deg); } }

.cert-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.cert-grid .cert { display: flex; flex-direction: column; min-height: 260px; padding: 26px 28px 24px; }
.cert-grid .cert::after {
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  border: 1px solid rgba(37, 99, 235, .08); border-radius: 14px;
}
.cert-wm { position: absolute; width: 180px; height: 180px; right: -54px; bottom: -54px; opacity: .8; }
.cert-fig {
  position: relative; display: flex; align-items: baseline; gap: 6px;
  margin: 0 0 18px; color: var(--blue-ink); font-family: var(--f-num);
}
.fig-big {
  font-size: clamp(64px, 5.6vw, 88px); line-height: .9; font-weight: 600; letter-spacing: -.055em;
  background: linear-gradient(135deg, var(--blue) 10%, var(--blue-3)); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: lining-nums tabular-nums;
 
}
.fig-of { font-family: var(--f-head); font-size: 17px; font-weight: 700; color: var(--ink-3); }
.fig-of span {
  font-family: var(--f-head); font-size: 26px; font-weight: 900; color: var(--blue-ink);
  margin: 0 2px; letter-spacing: .01em; font-variant-numeric: lining-nums tabular-nums;
}
.fig-unit { font-family: var(--f-head); font-size: 26px; font-weight: 700; color: var(--blue-ink); }
.fig-word {
  font-size: clamp(50px, 4.6vw, 70px); line-height: .95; font-weight: 600;
  letter-spacing: -.045em;
  background: linear-gradient(135deg, var(--blue) 10%, var(--blue-3)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* 都知事杯：「486件の提案 → 24件」と選考の流れで見せ、「24」が順位に見えないようにする */
.cert-fig-flow { flex-wrap: wrap; row-gap: 8px; }
.fig-from {
  flex-basis: 100%; display: flex; align-items: center; gap: 10px; white-space: nowrap;
  font-family: var(--f-head); font-size: 15px; font-weight: 700; color: var(--ink-3); line-height: 1.3;
}
.fig-from .n { font-family: var(--f-num); font-size: 24px; font-weight: 600; letter-spacing: -.04em; color: var(--blue-ink); margin-right: -6px; font-variant-numeric: tabular-nums lining-nums; }
.cert-tokyo .sel-dots { position: relative; height: 58px; margin: 2px 0 6px; }
.sel-legend { position: relative; display: flex; gap: 16px; margin: 0 0 12px; font-size: 12.5px; color: var(--ink-3); }
.sel-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sel-legend span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #c9d8f0; }
.sel-legend .sl-hit::before { background: var(--blue); }
.fig-arrow { position: relative; width: 40px; height: 12px; background: linear-gradient(90deg, var(--blue-xl), var(--blue)) 0 50% / 100% 2px no-repeat; }
.fig-arrow::after { content: ""; position: absolute; right: 0; top: 50%; width: 8px; height: 8px; border: solid var(--blue); border-width: 2px 2px 0 0; transform: translate(-1px, -50%) rotate(45deg); }
.fig-label { margin-left: 8px; font-family: var(--f-head); font-size: 17px; font-weight: 900; letter-spacing: .06em; color: var(--blue-2); }
.cert-grid .cert-title { position: relative; font-size: 1.12rem; line-height: 1.6; }
.cert-grid .cert-text { position: relative; margin: 8px 0 0; font-size: 14.5px; color: var(--ink-3); }
.cert-meta { position: relative; display: grid; gap: 4px; margin: auto 0 0; padding-top: 18px; font-size: 14px; }
.cert-meta div { display: flex; gap: 12px; }
.cert-meta dt { min-width: 5em; color: var(--ink-3); }
.cert-meta dd { margin: 0; color: var(--ink); }
.cert-meta a { color: var(--blue-2); text-underline-offset: 3px; }
/* 都知事杯（486 → 24 の点の図つき）を左に縦長で、3位・Master・そのほかの評価を右に並べる（02 のトップの組み方） */
.cert-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); }
.cert-grid .cert-tokyo { grid-row: span 2; }
.cert-grid .cert:not(.cert-tokyo) { min-height: 0; }
.cert-grid .cert-more { grid-column: span 2; padding: 22px 28px; }
.cert-more-h { position: relative; margin: 0 0 12px; font-family: var(--f-head); font-size: 1rem; font-weight: 700; color: var(--ink); }
.cert-tokyo .sel-dots { height: 92px !important; margin: 10px 0 8px !important; }
.cert-minor {
  position: relative; list-style: none; display: grid; gap: 10px;
  margin: 0; padding: 0;
  font-size: 14.5px; color: var(--ink-2);
}
.minor-mark {
  display: inline-block; margin-right: 10px; padding: 0 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; line-height: 1.8; color: var(--blue-2);
  border: 1px solid #c9daf8; background: #fff;
}

/* ---------- 制作物 ---------- */
.works { background: var(--paper); }
.cases { display: grid; gap: 22px; container: cases / inline-size; }
/* Container Queries — 制作物カードは一覧の幅で 2 列 ↔ 1 列を切り替える */
@container cases (max-width: 880px) {
}
.case {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 8.3fr) minmax(0, 3.7fr);
  gap: clamp(24px, 3vw, 40px); align-items: center;
  padding: clamp(14px, 1.6vw, 20px);
  border-radius: 26px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 34px 60px -52px rgba(11, 22, 48, .55);
  transform-origin: 50% 0;
  transform: scale(var(--s, 1));
  filter: brightness(var(--b, 1));
}
.can-stack .case { position: sticky; top: calc(var(--header-h) + 18px + var(--i) * 18px); }
.device {
  overflow: hidden; border-radius: 16px;
  background: #0b1222; border: 1px solid #d2dcea;
  box-shadow: 0 26px 50px -30px rgba(11, 22, 48, .55);
}
.device-bar {
  display: flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px;
  background: #f1f5fb; border-bottom: 1px solid var(--line);
}
.device-bar i { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; }
.device-bar span {
  min-width: 0; margin-left: 10px; padding: 0 10px;
  font-family: var(--f-mono); font-size: 12px; line-height: 20px; color: var(--ink-3);
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.device-screen {
  position: relative; display: block; aspect-ratio: 16 / 9;
  background: #0b1222 50% 50% / cover no-repeat;
}
.device-screen video, .device-screen img { width: 100%; height: 100%; object-fit: cover; }
.js .case-video { opacity: 0; transition: opacity .6s ease; }
.js .case-video.is-live { opacity: 1; }
a.device-screen img { object-position: 50% 0; transition: transform .6s var(--ease); }
.case:has(a:hover, a:focus-visible) .device-screen img { transform: scale(1.025); }
.play-btn {
  position: absolute; left: 50%; bottom: 14px; translate: -50% 0;
  padding: 10px 18px 10px 40px; border-radius: 999px; border: 0;
  background: rgba(255, 255, 255, .94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 3.5 12 8l-7 4.5z' fill='%232563eb'/%3E%3C/svg%3E") 16px 50% / 16px no-repeat;
  color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5);
}
.play-btn { white-space: nowrap; }
.play-btn small { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.case-no {
  margin: 0 0 4px; font-family: var(--f-num); font-style: normal; font-weight: 500;
  font-size: 54px; line-height: 1; color: #bccfee;
}
.badge {
  display: inline-flex; align-items: center; gap: 7px; margin: 0 0 14px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; color: var(--blue-2);
  background: var(--blue-mist); border: 1px solid #cfe0fb;
}
.badge-award { background: linear-gradient(90deg, #eef4ff, #dfeaff); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.case-title {
  margin: 0; font-family: var(--f-head); font-weight: 900; color: var(--ink);
  font-size: clamp(1.75rem, 2.8vw, 2.45rem); line-height: 1.2; letter-spacing: -.01em;
}
.case-sub { display: block; margin-top: 8px; font-size: 15px; font-weight: 700; letter-spacing: .02em; color: var(--ink-3); }
.case-text { margin: 16px 0 0; font-size: 16px; }
.tech-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; padding: 0; }
.tech-tags li {
  padding: 2px 9px; border-radius: 6px;
  font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line-2);
}
.case-feats { list-style: none; display: grid; gap: 6px; margin: 16px 0 0; padding: 0; font-size: 15px; }
.case-feats li { display: flex; align-items: center; gap: 10px; }
.case-feats li::before {
  content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue-mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%232563eb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid #cfe0fb;
}
.case-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.more-works { margin-top: 44px; }
.mw-h { margin: 0 0 12px; font-family: var(--f-head); font-size: 1.12rem; font-weight: 700; color: var(--ink); }
.mw-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.mw-list li {
  display: grid; grid-template-columns: 48px minmax(150px, 220px) minmax(0, 1fr) auto;
  gap: 18px; align-items: center; padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color .25s;
}
.mw-list li:hover { background: rgba(255, 255, 255, .7); }
.mw-no { font-family: var(--f-mono); font-size: 13px; color: var(--blue); }
.mw-name { font-family: var(--f-head); font-weight: 700; font-size: 17px; color: var(--ink); }
.mw-desc { font-size: 15px; color: var(--ink-2); }
.mw-links { display: flex; gap: 8px; }
.mw-links a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; color: var(--blue-2); text-decoration: none;
  background: #fff; border: 1px solid #c9daf8;
}
.mw-links a::after {
  content: ""; width: 11px; height: 11px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3h7v7M13 3 6.5 9.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3h7v7M13 3 6.5 9.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mw-links a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.more-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
  font-family: var(--f-head); font-weight: 700; font-size: 15.5px;
  color: var(--blue-2); text-decoration: none;
}
.more-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.more-link:hover .i { transform: translateX(3px); }
.more-link .i { transition: transform .25s var(--ease); }

/* ---------- 記事 ---------- */
.articles { background: #fff; }
.art-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.art a {
  display: flex; flex-direction: column; height: 100%;
  padding: 26px; border-radius: 20px;
  color: var(--ink-2); text-decoration: none;
  background: linear-gradient(180deg, #fff, #f6f9ff);
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.art a:hover { transform: translateY(-4px); border-color: #bcd0f3; box-shadow: 0 26px 44px -32px rgba(37, 99, 235, .55); }
.art-glyph svg {
  width: 116px; height: 68px;
  fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.art-glyph .g-arrow { stroke: var(--blue-l); }
.art-media { margin-top: 18px; font-size: 12.5px; letter-spacing: .06em; color: var(--ink-3); }
.art-title {
  margin-top: 6px; font-family: var(--f-head); font-weight: 700;
  font-size: 1.14rem; line-height: 1.6; color: var(--ink);
}
.art-learn { margin-top: auto; padding-top: 18px; font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }
.art-learn-h { display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; color: var(--blue-2); }

/* ---------- お知らせ（トップにはプロフィールを置かない） ---------- */
.news { background: var(--paper); padding: clamp(48px, 5.5vw, 76px) 0; }
.news-grid { display: grid; grid-template-columns: minmax(0, 3.2fr) minmax(0, 8.8fr); gap: clamp(20px, 4vw, 64px); align-items: start; }
.news-head .sec-label { margin-bottom: 10px; }
.news-title { margin: 0; font-family: var(--f-head); font-weight: 900; font-size: 1.5rem; line-height: 1.4; color: var(--ink); }
.news-head .sample { display: inline-block; margin: 10px 0 0; }
.sample {
  padding: 0 9px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--ink-3); line-height: 1.8;
}
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.news-list li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; padding: 16px 2px; border-bottom: 1px solid var(--line); }
.news-list time { padding-top: 1px; font-family: var(--f-num); font-weight: 600; font-size: 14px; letter-spacing: -.01em; color: var(--blue-2); font-variant-numeric: tabular-nums; }
.news-list p { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--ink); }

/* ---------- ご相談 ---------- */
.contact {
  position: relative; z-index: 1; overflow: hidden;
  padding: clamp(64px, 8vw, 112px) 0;
  color: #dbe6fb;
  background:
    radial-gradient(90% 80% at 88% 8%, #17377d 0%, transparent 60%),
    radial-gradient(60% 60% at 0% 100%, #0e2a63 0%, transparent 70%),
    var(--navy);
}
.contact-rosette {
  position: absolute; right: -18%; top: 50%;
  width: min(1100px, 130vw); aspect-ratio: 1;
  translate: 0 -50%; pointer-events: none; opacity: .7;
}
@media (prefers-reduced-motion: no-preference) {
  .contact-rosette { animation: rot 200s linear infinite; }
}
.contact-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.sec-label-inv { color: #bcd3ff; }
.sec-label-inv .sec-num { color: #bfdbfe; background: rgba(255, 255, 255, .06); border-color: rgba(191, 219, 254, .35); }
.contact-title {
  margin: 0; font-family: var(--f-head); font-weight: 900; color: #fff;
  font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.25; letter-spacing: -.01em;
  font-feature-settings: "palt";
}
.contact-lead { margin: 20px 0 0; font-size: 17px; color: #cddbf6; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.mail-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  margin-top: 24px; padding: 14px 16px; border-radius: 14px;
  border: 1px solid rgba(191, 219, 254, .22); background: rgba(255, 255, 255, .04);
}
.mail-label { font-size: 12.5px; letter-spacing: .1em; color: #adc4ec; }
.mail-link {
  font-family: var(--f-mono); font-size: 16px; color: #fff; text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
}
.mail-link:hover { border-bottom-color: #fff; }
.copy-btn {
  margin-left: auto; padding: 4px 13px; border-radius: 8px;
  font-size: 13px; color: #dbe6fb; background: transparent;
  border: 1px solid rgba(191, 219, 254, .38); cursor: pointer;
}
.copy-btn:hover { background: rgba(255, 255, 255, .08); }
.contact-terms { display: grid; gap: 12px; margin: 26px 0 0; }
.contact-terms div { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 12px; }
.contact-terms dt { font-size: 13px; color: #adc4ec; padding-top: 2px; }
.contact-terms dd { margin: 0; font-size: 15px; color: #e6eefc; }

.triage {
  position: relative;
  padding: clamp(22px, 3vw, 34px); border-radius: 24px;
  background: #fff; color: var(--ink-2);
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .7);
}
.triage-title { margin: 0; font-family: var(--f-head); font-weight: 900; font-size: 1.45rem; line-height: 1.4; color: var(--ink); }
.triage-hint { margin: 8px 0 0; font-size: 14px; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; border: 0; min-width: 0; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 11px; border-radius: 999px;
  font-size: 14.5px; line-height: 1.4; color: var(--ink);
  background: #fff; border: 1px solid var(--line-2);
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip span::before {
  content: ""; flex: none; width: 15px; height: 15px; border-radius: 4px;
  border: 1.5px solid #9fb3d5; background: #fff center / 11px no-repeat;
  transition: background-color .2s, border-color .2s;
}
.chip:hover span { border-color: var(--blue); }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip input:checked + span::before {
  border-color: #fff; background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.3 3 3 6-6.3' fill='none' stroke='%232563eb' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.triage-result {
  view-transition-name: triage;
  margin-top: 20px; padding: 18px; min-height: 216px;
  border-radius: 16px; background: var(--paper); border: 1px solid var(--line);
}
.tr-h { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; color: var(--ink-3); }
.tr-h + .tr-h, .tr-block + .tr-block { margin-top: 16px; }
.tr-menus { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tr-menus li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 11px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
}
.tr-menus li.is-hit { border-color: #9cbcf4; box-shadow: inset 3px 0 0 var(--blue); }
.tr-menu-name { font-family: var(--f-head); font-weight: 700; font-size: 16px; color: var(--ink); }
.tr-menu-out { font-size: 13.5px; color: var(--ink-3); }
.tr-rel { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tr-rel a, .tr-rel .tr-static {
  display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; align-items: start;
  padding: 9px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-size: 14.5px; line-height: 1.55;
}
.tr-rel a:hover { border-color: var(--blue); color: var(--blue-2); }
.tr-rel .rel-k { align-self: start; margin-top: 1px; }
.tr-rel small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--note); }
.tr-terms { margin: 0; font-size: 14px; color: var(--ink-2); }
.triage-mail { width: 100%; margin-top: 18px; }
.triage-form { display: block; margin-top: 12px; text-align: center; font-size: 14px; font-weight: 700; color: var(--blue-2); text-underline-offset: 3px; }
.triage-form:hover { color: var(--blue); }
/* :has() — 何か選ぶと、メールを作るボタンを強調する */
.triage:has(.chips input:checked) .triage-mail {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .18), 0 14px 30px -14px rgba(37, 99, 235, .9);
}
.triage:has(.chips input:checked) .triage-hint { color: var(--blue-2); }
/* Container Queries — 仕分け結果はカードの幅で組み替える */
.triage { container: triage / inline-size; }
@container triage (max-width: 440px) {
  .tr-rel a, .tr-rel .tr-static { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .tr-rel .rel-k { justify-self: start; }
}
::view-transition-old(triage), ::view-transition-new(triage) { animation-duration: .38s; animation-timing-function: var(--ease); }


/* =========================================================
   MOTION
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .line-in { animation: lineUp 1.15s var(--ease) both; }
  .js .hero-title .line:nth-child(2) .line-in { animation-delay: .12s; }
  .js .hero-title::after { animation: hScan 1.3s .55s var(--ease) both; }
  .js .hero-eyebrow { animation: fadeUp .9s .05s var(--ease) both; }
  .js .hero-lead { animation: fadeUp .9s .32s var(--ease) both; }
  .js .hero-actions { animation: fadeUp .9s .42s var(--ease) both; }
  .js .hero-proof { animation: fadeUp 1s .7s var(--ease) both; }
  .sv-tag { animation: bob 6s ease-in-out infinite; }
  .sv-tag:nth-child(2n) { animation-delay: -2s; }
  .sv-tag:nth-child(3n) { animation-delay: -4s; }

  @supports (animation-timeline: view()) {
    .sec-head, .cert-grid .cert, .cert-feature .cert-body, .art, .mw-list li, .news-list li,
    .step-body, .step-figure, .engage, .case-body, .triage, .contact-copy {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 75%;
    }
  }
}
@keyframes lineUp { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hScan {
  0% { top: 0; opacity: 0; }
  12% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 100%; opacity: .5; }
}
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }


/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1279px) {
  .tool-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tool-tech { padding: 0 10px; }
  .gnav a { padding: 8px 10px; }
}
@media (max-width: 1180px) {
  .proof-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-list li:nth-child(3) { border-left: 0; }
  .proof-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 1023px) {
  .gnav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-inner { gap: 10px; }
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 28px); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-visual { min-height: 380px; margin-top: 8px; }
  .is-compact .hero-visual .stage-visual { inset: 0 calc(var(--gutter) * -1); }
  .sec-head-split { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: minmax(0, 1fr); }
  .engage { grid-template-columns: minmax(0, 1fr); }
  .case { grid-template-columns: minmax(0, 1fr); }
  .cert-frame { grid-template-columns: minmax(0, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert-grid .cert-tokyo { grid-column: span 2; grid-row: auto; }
  .art-list { grid-template-columns: minmax(0, 1fr); }
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 359px) {
  .hero-title .line { white-space: normal; }
}
/* スマホ・タブレットでも粒子のステージを使う（02 の「裏で動いている」感じ）。
   形は画面上部の帯（.hero-visual の位置）に置き、文章は下側をすりガラスのカードで流れる */
@media (max-width: 1023px) {
  .is-stage .hero-grid { display: flex; flex-direction: column; align-items: stretch; }
  .is-stage .hero-visual { order: -1; min-height: 0; height: clamp(220px, 39svh, 380px); margin: -10px 0 4px; }
  /* 文章が上の帯の形に重なっても読めるよう、すりガラスの下地を敷く（文字の位置は変えない） */
  .is-stage .hero-copy {
    margin: 0 -10px; padding: 14px 10px 12px; border-radius: 18px 18px 0 0;
    background: rgba(244, 247, 252, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .is-stage .hero-proof::before {
    content: ""; position: absolute; z-index: -1; border-radius: 0 0 18px 18px;
    inset: calc(clamp(20px, 3vh, 40px) * -1) calc(var(--gutter) - 10px) 10px;
    background: rgba(244, 247, 252, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .is-stage .story-head {
    min-height: 74svh; max-width: none; justify-content: flex-end;
  }
  .is-stage .story-head > div:first-child, .is-stage .story-head > div:last-child {
    padding: 18px 18px; margin: 0 -10px; border-radius: 18px;
    background: rgba(244, 247, 252, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .is-stage .story-head > div:last-child { margin-top: 10px; }
  .is-stage .story-head .sec-lead { margin-top: 0; }
  .is-stage .step { min-height: 104svh; align-items: flex-end; padding-bottom: 6svh; }
  .is-stage .step-body {
    max-width: none; margin: 0 -10px; padding: 20px 18px;
    background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border: 1px solid var(--line); border-radius: 20px;
    box-shadow: 0 30px 60px -40px rgba(11, 22, 48, .45);
  }
  .is-stage .engage { max-width: none; margin-bottom: 4svh; }
  .is-stage .sv-foot { right: 12px; bottom: auto; top: calc(var(--header-h) + clamp(220px, 39svh, 380px) + 12px); }
  .is-stage .sv-legend { display: none; }
  .sv-tag { font-size: 12px; padding: 4px 10px 4px 5px; }
  .sv-apps { display: none; }
  .sv-tag-note { display: none !important; }
  .is-stage .proof-note-fig { display: block; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .sp-br { display: inline; }
  .header-inner { gap: 8px; }
  .logo { font-size: 17px; gap: 8px; }
  .logo-mark { width: 26px; height: 26px; }
  .tool-tech { display: none; }
  .header-cta { --h: 38px; padding: 0 .9em; font-size: 13.5px; }
  .btn { white-space: normal; text-align: center; }
  .btn-lg { --h: 52px; font-size: 15.5px; padding: 0 1.2em; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-eyebrow { gap: 8px 12px; margin-bottom: 18px; }
  .eyebrow-sub { padding-left: 0; border-left: 0; flex-basis: 100%; }
  .hero-lead { margin-top: 20px; }
  .hero-actions { margin-top: 26px; }
  .hero-visual { min-height: 330px; }
  .proof-list { grid-template-columns: minmax(0, 1fr); }
  .proof-list li { border-left: 0 !important; padding: 12px 16px 12px 20px; }
  .proof-list li + li { border-top: 1px solid var(--line); }
  .proof-list li::before { top: 15px; }
  .steps { margin-top: 36px; gap: 16px; }
  .step { padding: 12px 12px 18px; border-radius: 18px; gap: 16px; }
  .step-figure { aspect-ratio: 16 / 9; }
  .step-body { padding: 0 6px; }
  .step-out, .step-rel { margin-top: 16px; }
  .art-glyph svg { width: 96px; height: 56px; }
  .art-media { margin-top: 10px; }
  .case-no { display: none; }
  .rel-list a { grid-template-columns: 70px minmax(0, 1fr) 16px; gap: 10px; }
  .rel-note { margin-left: 0; }
  .cert-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cert-grid .cert-tokyo, .cert-grid .cert-more { grid-column: auto; }
  .cert-grid .cert.cert-more { display: block; }
  .cert-grid .cert {
    min-height: 0; padding: 18px 18px 18px 20px;
    display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 14px; align-items: start;
  }
  .cert-grid .cert > * { grid-column: 2; }
  .cert-grid .cert > .cert-fig { grid-column: 1; grid-row: 1 / span 4; margin: 0; flex-wrap: wrap; gap: 0 4px; }
  .cert-grid .cert > .cert-wm { grid-column: 1; }
  .cert-grid .cert:has(> .cert-fig-flow) > * { grid-column: 1 / -1; }
  .cert-grid .cert > .cert-fig-flow { grid-column: 1 / -1; grid-row: auto; margin: 0 0 10px; gap: 6px 4px; }
  .cert-fig-flow .fig-big { font-size: 52px; }
  .cert-meta { padding-top: 10px; }
  .cert-wm { width: 130px; height: 130px; right: -44px; bottom: -44px; }
  .cert-grid .cert-title { font-size: 1rem; line-height: 1.6; }
  .cert-grid .cert-text { font-size: 14px; }
  .sec-title { font-size: 1.62rem; }
  .fig-big { font-size: 52px; }
  .fig-of span { font-size: 24px; }
  .fig-word { font-size: 34px; }
  .fig-unit { font-size: 22px; }
  .cert-feature .cert-text { font-size: 15.5px; }
  .cert-frame { padding: 22px 20px; }
  .case { padding: 12px 12px 20px; border-radius: 20px; }
  .case-body { padding: 0 8px; }
  .case-no { font-size: 40px; }
  .mw-list li { grid-template-columns: 36px minmax(0, 1fr); gap: 4px 12px; }
  .mw-desc, .mw-links { grid-column: 2; }
  .art a { padding: 20px; }
  .news-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .contact-actions .btn { flex: 1 1 100%; }
  .copy-btn { margin-left: 0; }
  .contact-terms div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .triage { border-radius: 20px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tool-btn { height: 40px; min-width: 40px; }
  .tool-btn .i { width: 16px; height: 16px; }
}
