/* =========================================================
   〇〇〇〇 — DESIGN.md の値だけを使う（ここで新しい値を発明しない）
   Signature：チェンナイ→東京の一本の線（--signature はこの線だけ）
   ========================================================= */
:root {
  /* 3. Color tokens */
  --bg: #ffffff;
  --surface: #f2f7fc;
  --wash: #e6f3fd;
  --text: #0f1d33;
  --muted: #55637a;
  --line: #d9e4ef;
  --brand: #0b4da2;
  --brand-deep: #062f6e;
  --accent: #0e6fd3;
  --accent-deep: #0b58ab;
  --accent-on-dark: #ffffff;
  --sky: #3aa8f0;
  --sky-2: #7fd0fa;
  --signature: #f28a1e;
  --grad: linear-gradient(120deg, #0b5fc4 0%, #1f8fe6 55%, #5cc2f6 100%);
  --on-dark-muted: #dcebfb;

  /* 4. Typography（2ファミリー） */
  --font-display: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-voice: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --fs-xs: .75rem;
  --fs-s: .875rem;
  --fs-m: 1rem;
  --fs-l: 1.25rem;
  --fs-xl: 1.75rem;
  --fs-2xl: clamp(1.75rem, 2.8vw, 2.5rem);
  --fs-3xl: clamp(2.25rem, 3.9vw, 3.5rem);
  --fs-hero: clamp(2.5rem, 6.1vw, 5.5rem);

  /* 5. Spacing */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 20px; --s5: 32px; --s6: 52px; --s7: 84px; --s8: 136px;
  --gutter: var(--s6);
  --max: 1280px;
  --bleed: max(var(--gutter), calc((100vw - var(--max)) / 2));

  /* 6. Radius */
  --r-s: 4px;
  --r-m: 8px;
  --r-l: 24px;

  /* 12. 動き（emil-design-eng） */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);

  /* 旧名（ページ内のインライン指定の互換用） */
  --ai: var(--brand); --ai-deep: var(--brand-deep); --ink: var(--text); --ink-sub: var(--muted);
  --saffron-ink: var(--accent); --kaki-ink: var(--accent); --sumi-sub: var(--muted); --border: var(--line); --paper: var(--bg); --mist: var(--surface);
  --ai-soft: var(--surface); --kinari: var(--surface); --kaki-soft: var(--surface); --saffron-soft: var(--surface);
  --kaki: var(--signature); --saffron: var(--signature); --kaki-deep: var(--accent-deep);
  --font-mono: var(--font-sans); --font-serif: var(--font-display); --radius: var(--r-s);
}
@media (max-width: 720px) { :root { --gutter: var(--s4); } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-sans); font-size: var(--fs-m); line-height: 2; color: var(--text); background: var(--bg); overflow-x: clip; font-feature-settings: "palt"; letter-spacing: .02em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: .22em; }
:focus-visible { outline: 3px solid var(--signature); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.35; letter-spacing: .02em; word-break: auto-phrase; text-wrap: balance; color: var(--text); }
p, li, dd, summary, td, th { word-break: auto-phrase; }
a { word-break: auto-phrase; overflow-wrap: anywhere; }
.nw { white-space: nowrap; }
.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: var(--s2); background: var(--brand); color: #fff; padding: var(--s2) var(--s3); z-index: 400; }
.skip:focus { left: var(--s2); }
.num, .tabular { font-variant-numeric: tabular-nums; }

/* 未確定の事実（公開前に消す） */
.todo, .todo-block, .review-only { display: none !important; }
.review .todo { display: inline-block !important; }
.review .todo-block { display: block !important; }
.review .review-only { display: inline !important; }
.todo { display: inline-block; font-size: var(--fs-xs); line-height: 1.5; background: #fff4c2; color: #6b5200; border: 1px dashed #c9a400; padding: 0 var(--s1); border-radius: var(--r-s); vertical-align: baseline; letter-spacing: 0; font-family: var(--font-sans); font-weight: 400; }
.todo-block { border: 1px dashed #c9a400; background: #fffbe6; color: #6b5200; padding: var(--s3) var(--s4); border-radius: var(--r-s); font-size: var(--fs-s); }

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: var(--s5); height: 72px; }
.brand { display: flex; align-items: center; gap: var(--s2); text-decoration: none; color: var(--brand-deep); flex: none; }
.brand svg { width: 32px; height: 32px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-l); letter-spacing: 0; }
.brand-name b { color: #d86f0a; }
.global-nav { margin-left: auto; }
.global-nav ul { display: flex; gap: var(--s5); list-style: none; margin: 0; padding: 0; font-size: var(--fs-s); font-weight: 500; }
.global-nav a { text-decoration: none; color: var(--text); }
.global-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .5em; }
@media (hover: hover) { .global-nav a:hover { text-decoration: underline; text-underline-offset: .5em; } }
.header-cta { display: flex; gap: var(--s2); flex: none; }
.header-cta .btn { padding: var(--s2) var(--s4); font-size: var(--fs-s); }
.menu-btn { display: none; font: inherit; font-size: var(--fs-s); font-weight: 700; background: none; border: 1px solid currentColor; color: inherit; border-radius: var(--r-s); padding: var(--s2) var(--s3); cursor: pointer; }
@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; margin-left: auto; }
  .header-cta { margin-left: 0; }
  .global-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--bg); border-bottom: 1px solid var(--line); padding: var(--s4) var(--gutter) var(--s5); }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; gap: 0; font-size: var(--fs-l); }
  .global-nav li { border-bottom: 1px solid var(--line); }
  .global-nav a { display: block; padding: var(--s3) 0; color: var(--text) !important; }
}

/* ---------- ボタン（普通の長方形。文字に矢印は付けない） ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r-s); font-weight: 700; font-size: var(--fs-m); text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1.5; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .16s var(--ease-out); font-family: var(--font-sans); }
.btn:active { transform: scale(.97); }
.btn .line-arrow { display: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-ai { background: var(--brand); color: #fff; }
.btn-ghost { background: var(--bg); color: var(--text); border-color: var(--text); }
@media (hover: hover) {
  .btn-primary:hover { background: var(--accent-deep); color: #fff; }
  .btn-ai:hover { background: var(--brand-deep); color: #fff; }
  .btn-ghost:hover { background: var(--surface); color: var(--text); }
  a:hover { color: var(--accent); }
}
.btn-lg { padding: var(--s4) var(--s5); }
.line-arrow { width: 28px; height: 10px; flex: none; overflow: visible; }
.line-arrow path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 見出しの型 ---------- */
/* 章番号（ブリーフ指定）：漢数字だけを小さく。英字・ダッシュ・大文字のラベルは付けない */
.chapter-label { margin: 0 0 var(--s3); font-size: var(--fs-s); color: var(--muted); }
.chapter-label .kanji { font-family: var(--font-display); font-weight: 800; color: var(--text); margin-right: var(--s2); }
.chapter-big { display: none; }
.page-hero .chapter-label { display: none; }
.section-title { font-weight: 800; font-size: var(--fs-2xl); margin: 0 0 var(--s5); }
.lead { font-size: var(--fs-l); line-height: 1.8; max-width: 36em; margin: 0 0 var(--s5); }
h3.sub-title, .h3-sub { font-size: var(--fs-l); font-weight: 700; margin: var(--s7) 0 var(--s3); }
.marker { font-weight: 700; }
.reveal { opacity: 1; }
.stat-note, .caption { font-size: var(--fs-s); color: var(--muted); }
.updated { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.img-label { display: inline-block; font-size: var(--fs-xs); color: var(--muted); border: 1px solid var(--line); border-radius: var(--r-s); padding: 0 var(--s1); margin-right: var(--s2); line-height: 1.6; }

/* ---------- セクション ---------- */
.section { padding: var(--s8) 0; }
.section:not(.band) + .section:not(.band) { padding-top: 0; }
.section.band { padding-top: var(--s8); }
@media (max-width: 720px) { .section { padding-block: var(--s7); } .section:not(.band) + .section:not(.band) { padding-top: 0; } }
.section .container > p, .sec-main > p, .sec-main > ul:not([class]) { max-width: 40em; }
.section-cta { margin-top: var(--s6); display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.section-cta .hint { font-size: var(--fs-s); color: var(--muted); width: 100%; margin: 0; }

/* 見出しを左（追従）、本文を右 */
@media (min-width: 1100px) {
  .sec-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s7); align-items: start; }
  .sec-side { position: sticky; top: calc(72px + var(--s5)); }
  .sec-side .section-title { margin-bottom: var(--s4); }
  .sec-side .lead { font-size: var(--fs-m); color: var(--muted); margin-bottom: 0; }
  .sec-main .split { grid-template-columns: 1fr; gap: var(--s5); }
}
.sec-main > :first-child { margin-top: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: var(--s5); } .split.reverse > :first-child { order: 0; } }

/* 写真 */
figure.photo { margin: 0; }
figure.photo img { border-radius: var(--r-m); width: 100%; object-fit: cover; }
figure.photo figcaption { font-size: var(--fs-s); color: var(--muted); margin-top: var(--s3); }
figure.photo.bleed-right { margin-right: calc(-1 * var(--bleed)); }
figure.photo.bleed-left { margin-left: calc(-1 * var(--bleed)); }
figure.photo.bleed-right img, figure.photo.bleed-left img { border-radius: 0; }
figure.photo.bleed-right figcaption, figure.photo.bleed-left figcaption { padding-inline: var(--s4); }
@media (max-width: 900px) { figure.photo.bleed-right, figure.photo.bleed-left { margin-inline: calc(-1 * var(--gutter)); } }
/* 8. 写真の色調：藍寄り */
/* 8. 写真は自然な色のまま */
.duo { position: relative; overflow: hidden; border-radius: var(--r-m); margin: 0; background: var(--surface); }

/* ---------- 下層ページの見出し帯 ---------- */
.page-hero { position: relative; padding: var(--s5) 0 var(--s7); border-bottom: 1px solid var(--line); background: var(--bg); }
.page-hero h1 { font-weight: 800; font-size: var(--fs-3xl); line-height: 1.3; margin: 0 0 var(--s5); max-width: 18em; }
.page-hero .lead { margin-bottom: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.page-hero.has-image { display: flex; align-items: center; min-height: 560px; padding: var(--s5) 0 var(--s7); }
.page-hero-text { width: min(52%, 680px); position: relative; z-index: 1; }
.page-hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 42vw; margin: 0; overflow: hidden; background: var(--surface); }
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-photo figcaption { position: absolute; right: 0; bottom: 0; z-index: 2; background: var(--bg); padding: var(--s1) var(--s3); font-size: var(--fs-xs); color: var(--muted); max-width: 80%; }
@media (max-width: 900px) {
  .page-hero.has-image { flex-direction: column-reverse; align-items: stretch; min-height: 0; padding-top: 0; }
  .page-hero-text { width: 100%; padding-top: var(--s5); }
  .page-hero-photo { position: relative; width: 100%; height: 56vw; margin: 0; }
}
.breadcrumb { font-size: var(--fs-xs); padding: 0 0 var(--s5); }
.breadcrumb ol { list-style: none; display: flex; gap: var(--s2); padding: 0; margin: 0; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s2); color: var(--muted); }
.breadcrumb a { color: var(--muted); }

/* ---------- 列（カードを使わない並び） ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s5); list-style: none; padding: 0; margin: 0; }
.card { padding: var(--s4) 0 0; border-top: 1px solid var(--text); display: flex; flex-direction: column; }
.card > svg { display: none; }
.card h3 { font-size: var(--fs-l); margin: 0 0 var(--s3); }
.card p { margin: 0 0 var(--s3); font-size: var(--fs-s); color: var(--muted); }
.card .num { display: none; }
.card .card-link { margin-top: auto; font-weight: 700; font-size: var(--fs-s); }
/* クリックできるものだけ枠を付ける */
a.card { border: 1px solid var(--line); border-radius: var(--r-s); padding: var(--s4); text-decoration: none; color: inherit; transition: border-color .2s ease; }
@media (hover: hover) { a.card:hover { border-color: var(--text); } }

.check-list { list-style: none; padding: 0; margin: 0 0 var(--s3); border-top: 1px solid var(--line); }
.check-list li { position: relative; padding: var(--s3) 0 var(--s3) var(--s5); border-bottom: 1px solid var(--line); }
.check-list li { padding-left: 0; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; border-top: 1px solid var(--text); }
.steps > li { counter-increment: s; position: relative; padding: var(--s4) 0 var(--s4) var(--s7); border-bottom: 1px solid var(--line); }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: var(--s4); font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xl); line-height: 1.2; color: var(--text); font-variant-numeric: tabular-nums; }
.steps h3 { margin: 0 0 var(--s2); font-size: var(--fs-l); }
.steps .when { display: inline-block; font-size: var(--fs-xs); color: var(--muted); font-family: var(--font-sans); font-weight: 500; margin-left: var(--s2); }
.steps p { margin: 0 0 var(--s2); }

.callout { background: var(--surface); padding: var(--s4) var(--s5); margin: var(--s5) 0; max-width: 48em; border-radius: var(--r-s); }
.callout p:last-child { margin-bottom: 0; }

.flow-mini { display: flex; align-items: center; list-style: none; padding: 0 0 var(--s6); margin: 0; flex-wrap: wrap; row-gap: var(--s3); font-size: var(--fs-s); }
.flow-mini li { display: flex; align-items: center; gap: var(--s2); color: var(--muted); }
.flow-mini li + li::before { content: ""; width: var(--s6); height: 2px; background: var(--line); margin: 0 var(--s3); }
.flow-mini .dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--muted); flex: none; }
.flow-mini li.is-current { color: var(--text); font-weight: 700; }
.flow-mini li.is-current .dot { background: var(--signature); border-color: var(--signature); }
.flow-mini a { color: inherit; }

/* 3サービスの流れ（サービス概要）：Signature の線 */
.flow { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); list-style: none; padding: 0; margin: 0 0 var(--s6); }
.flow-line { position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--line); }
.flow-line span { position: absolute; inset: 0; background: var(--signature); transform-origin: left; }
.js .flow-line span { transform: scaleX(0); transition: transform 1.4s var(--ease-in-out); }
.js .flow.is-in .flow-line span { transform: scaleX(1); }
.flow-step { position: relative; padding-top: var(--s6); }
.flow-node { position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--text); font-size: 0; }
.flow.is-in .flow-node, html:not(.js) .flow-node { background: var(--text); }
.flow-step .role { display: block; font-size: var(--fs-xs); color: var(--muted); }
.flow-step h3 { margin: var(--s1) 0 var(--s3); font-size: var(--fs-xl); }
.flow-step p { font-size: var(--fs-s); margin: 0 0 var(--s3); }
.flow-step ul { margin: 0; padding-left: 1.2em; font-size: var(--fs-s); }
.flow-step a { font-size: var(--fs-s); font-weight: 700; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } .flow-line { display: none; } }

/* 4つの目（下層ページ） */
.eyes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--s5); list-style: none; padding: 0; margin: 0; }
.eyes li { padding: var(--s4) 0; border-top: 1px solid var(--line); }
.eyes .eye-icon { display: none; }
.eyes h3 { font-size: var(--fs-l); margin: 0 0 var(--s2); }
.eyes p { margin: 0; font-size: var(--fs-s); color: var(--muted); }
@media (max-width: 720px) { .eyes { grid-template-columns: 1fr; } }

/* 表（縦罫線なし） */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-s); min-width: 600px; }
caption { text-align: left; font-weight: 700; padding: 0 0 var(--s3); font-family: var(--font-display); caption-side: top; }
th, td { padding: var(--s3) var(--s4) var(--s3) 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { font-weight: 700; font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; border-top: 2px solid var(--text); border-bottom: 1px solid var(--text); }
tbody th { white-space: nowrap; font-weight: 700; }
td.mark-i2j::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-right: var(--s2); vertical-align: middle; }
td.mark-co::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--muted); margin-right: var(--s2); vertical-align: middle; }

.profile-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); margin-top: var(--s4); }
.profile-card { border-top: 1px solid var(--line); padding-top: var(--s4); font-size: var(--fs-s); }
.profile-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: var(--s1) var(--s3); }
.profile-card dt { color: var(--muted); }
.profile-card dd { margin: 0; }
@media (max-width: 900px) { .profile-cards { grid-template-columns: 1fr; } }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--text); }
.timeline li { padding: var(--s4) var(--s4) 0 0; }
.timeline .when { display: block; font-size: var(--fs-xs); color: var(--muted); }
.timeline h3 { margin: var(--s1) 0 var(--s2); font-size: var(--fs-l); }
.timeline p { margin: 0; font-size: var(--fs-s); color: var(--muted); }
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr; } .timeline li { border-bottom: 1px solid var(--line); padding-bottom: var(--s4); } }
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); margin: 0; }
.numbers div { border-top: 1px solid var(--text); padding-top: var(--s4); }
.numbers dt { font-size: var(--fs-s); color: var(--muted); }
.numbers dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-2xl); color: var(--accent); }
@media (max-width: 720px) { .numbers { grid-template-columns: 1fr; } }

.faq { border-top: 1px solid var(--text); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { word-break: auto-phrase; text-wrap: pretty; cursor: pointer; padding: var(--s4) var(--s6) var(--s4) 0; font-weight: 700; position: relative; list-style: none; line-height: 1.7; font-family: var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: var(--s2); top: 50%; width: 14px; height: 2px; background: var(--text); transition: transform .2s var(--ease-out); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq .answer { padding: 0 var(--s6) var(--s4) 0; margin: 0; }

/* ---------- ページ末：次の章と CTA ---------- */
.end-block { padding: var(--s7) 0; background: var(--surface); }
.next-chapter { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s1) var(--s5); text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); padding: 0 0 var(--s5); margin-bottom: var(--s6); }
.next-chapter .next-label { grid-row: span 2; font-size: var(--fs-s); color: var(--muted); }
.next-chapter .next-title { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-2xl); }
.next-chapter .next-desc { grid-column: 2; color: var(--muted); font-size: var(--fs-s); }
.next-chapter .line-arrow { grid-row: 1 / span 2; grid-column: 3; width: 56px; height: 16px; transition: transform .2s var(--ease-out); }
@media (hover: hover) { .next-chapter:hover { color: var(--text); } .next-chapter:hover .line-arrow { transform: translateX(6px); } }
.end-cta { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s5); align-items: end; }
.end-kicker { margin: 0; color: var(--muted); font-size: var(--fs-s); }
.end-title { color: var(--text); margin: 0 0 var(--s3); font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 800; line-height: 1.35; }
.end-cta-main p { color: var(--muted); margin: 0 0 var(--s4); max-width: 30em; }
.end-cta-sub { display: grid; gap: var(--s3); }
@media (max-width: 860px) { .end-cta { grid-template-columns: 1fr; } .next-chapter { grid-template-columns: 1fr auto; } .next-chapter .next-label { grid-row: auto; grid-column: 1 / -1; } .next-chapter .next-desc { grid-column: 1; } .next-chapter .line-arrow { grid-column: 2; grid-row: 2 / span 2; } }

/* ---------- フッター ---------- */
.site-footer { position: relative; background: var(--surface); color: var(--muted); padding: var(--s7) 0 0; font-size: var(--fs-s); }
.site-footer a { color: var(--text); text-decoration: none; }
@media (hover: hover) { .site-footer a:hover { color: var(--brand); text-decoration: underline; } }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: var(--s5); }
.site-footer address { font-style: normal; line-height: 2; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.site-footer nav ul li { border-bottom: 1px solid var(--line); padding-bottom: var(--s2); }
.footer-h { color: var(--text); font-size: var(--fs-s); margin: 0 0 var(--s3); font-weight: 700; }
.footer-brand { font-family: var(--font-display); font-size: var(--fs-l); color: var(--brand-deep); margin: 0 0 var(--s2); }
.footer-brand b { display: block; }
.footer-brand small { display: block; font-family: var(--font-sans); font-size: var(--fs-xs); color: var(--muted); font-weight: 400; }
.footer-wave { display: block; width: 100%; height: clamp(60px, 9vw, 130px); margin-top: var(--s7); }
.footer-wave .w1 { fill: url(#fw-grad); }
.footer-wave .w2 { fill: #fff; }
.site-footer .copy { background: #fff; margin: 0; padding: var(--s3) 0 var(--s5); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* スマホの下部固定ボタン */
.mobile-cta { display: none; }
@media (max-width: 720px) {
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr 1.2fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--bg); border-top: 1px solid var(--line); padding: var(--s2) var(--s2) calc(var(--s2) + env(safe-area-inset-bottom)); gap: var(--s2); }
  .mobile-cta a { display: grid; place-items: center; min-height: 44px; border-radius: var(--r-s); font-weight: 700; font-size: var(--fs-s); text-decoration: none; color: var(--text); border: 1px solid var(--text); }
  .mobile-cta a:active { transform: scale(.97); }
  .mobile-cta a.is-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
  body { padding-bottom: 72px; }
  .header-cta { display: none; }
}

/* 追従する診断ボタン（PC） */
.float-cta { position: fixed; right: var(--s5); bottom: var(--s5); z-index: 70; display: inline-flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; font-size: var(--fs-s); border-radius: var(--r-s); transform: translateY(calc(100% + var(--s5))); transition: transform .2s var(--ease-out), background-color .2s ease; }
.float-cta.is-shown { transform: none; }
.float-cta:active { transform: scale(.97); }
@media (hover: hover) { .float-cta:hover { background: var(--accent-deep); color: #fff; } }
.float-cta-k { font-size: var(--fs-xs); font-weight: 500; opacity: .85; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .float-cta { display: none; } }

/* ---------- 記事 ---------- */
.article { padding: var(--s6) 0 var(--s5); }
.article-wrap { max-width: 800px; }
.article-meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: center; font-size: var(--fs-xs); color: var(--muted); margin: 0 0 var(--s5); font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font-size: var(--fs-xs); font-weight: 500; color: var(--brand); border: 1px solid var(--line); border-radius: var(--r-s); padding: 0 var(--s2); line-height: 1.8; font-family: var(--font-sans); }
.article-lead { margin-bottom: var(--s5); }
.article-lead-h { font-family: var(--font-display); font-size: var(--fs-xl); margin: 0; font-weight: 800; line-height: 1.5; }
.toc { border-top: 1px solid var(--text); border-bottom: 1px solid var(--line); padding: var(--s4) 0; margin: 0 0 var(--s6); }
.toc-title { font-size: var(--fs-s); margin: 0 0 var(--s2); color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.4em; display: grid; gap: var(--s1); font-size: var(--fs-s); }
.prose h2 { font-weight: 800; font-size: var(--fs-2xl); margin: var(--s7) 0 var(--s4); scroll-margin-top: 96px; }
.prose h3 { font-size: var(--fs-l); margin: var(--s6) 0 var(--s3); }
.prose p { margin: 0 0 var(--s4); }
.prose ul { margin: 0 0 var(--s4); }
.article-figure { margin: var(--s5) 0; }
.article-figure img { border-radius: var(--r-m); }
.article-service { margin: var(--s7) 0 0; padding-top: var(--s5); border-top: 1px solid var(--text); }
.article-service-label { margin: 0 0 var(--s2); font-size: var(--fs-s); color: var(--muted); }
.article-service a { font-size: var(--fs-xl); font-weight: 800; display: inline-flex; align-items: center; gap: var(--s3); font-family: var(--font-display); text-decoration: none; color: var(--text); }
.article-service a .line-arrow { display: none; }
.article-service p { margin: var(--s3) 0 0; font-size: var(--fs-s); color: var(--muted); }

.chip-list { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; padding: 0; margin: 0 0 var(--s5); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s5); list-style: none; padding: 0; margin: 0 0 var(--s5); }
.post-card a { display: flex; flex-direction: column; gap: var(--s2); height: 100%; border-top: 1px solid var(--text); padding: var(--s4) 0; text-decoration: none; color: inherit; }
.post-card .tag { align-self: flex-start; }
.post-title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-l); line-height: 1.5; color: var(--text); }
@media (hover: hover) { .post-card a:hover .post-title { text-decoration: underline; text-underline-offset: .2em; } }
.post-desc { font-size: var(--fs-s); color: var(--muted); }
.news-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--text); }
.news-list a { display: grid; grid-template-columns: 7em auto 1fr; gap: var(--s2) var(--s4); align-items: center; padding: var(--s4) 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
@media (hover: hover) { .news-list a:hover .news-title { text-decoration: underline; } }
.news-list time { color: var(--muted); font-size: var(--fs-s); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .news-list a { grid-template-columns: auto 1fr; } .news-list .news-title { grid-column: 1 / -1; } }

.def-table { display: grid; grid-template-columns: 11em 1fr; margin: 0; border-top: 1px solid var(--text); }
.def-table dt, .def-table dd { padding: var(--s3) 0; border-bottom: 1px solid var(--line); margin: 0; }
.def-table dt { font-weight: 700; padding-right: var(--s4); }
@media (max-width: 600px) { .def-table { grid-template-columns: 1fr; } .def-table dt { border-bottom: 0; padding-bottom: 0; } }
.legal { max-width: 800px; }
.legal h2 { font-size: var(--fs-l); margin: var(--s5) 0 var(--s3); }
.legal ul { margin: 0 0 var(--s4); }
.notfound { padding: var(--s8) 0; }

/* ---------- ページの読み込み・移動（Signature の線） ---------- */
.pt { display: none; position: fixed; inset: 0; z-index: 300; background: var(--brand-deep); color: var(--on-dark-muted); pointer-events: none; }
.pt-line { position: absolute; left: var(--s7); right: var(--s7); top: 50%; width: calc(100% - 2 * var(--s7)); height: 120px; transform: translateY(-50%); overflow: visible; }
.pt-line path { fill: none; stroke: var(--signature); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1600; stroke-dashoffset: 1600; }
.pt-from, .pt-to { position: absolute; top: calc(50% + var(--s7)); margin: 0; font-size: var(--fs-xs); line-height: 1.8; opacity: 0; font-variant-numeric: tabular-nums; }
.pt-from { left: var(--s7); }
.pt-to { right: var(--s7); text-align: right; }
.pt-brand { position: absolute; top: calc(50% - var(--s8)); left: var(--s7); margin: 0; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xl); color: #fff; opacity: 0; }
.pt-brand b { color: var(--accent-on-dark); }
.pt-first .pt { display: block; animation: ptUp .7s var(--ease-in-out) 1.45s forwards; }
.pt-first .pt-line path { animation: draw 1.1s var(--ease-in-out) .15s forwards; }
.pt-first .pt-from { animation: fadeIn .3s ease .15s forwards; }
.pt-first .pt-to { animation: fadeIn .3s ease 1.05s forwards; }
.pt-first .pt-brand { animation: fadeIn .4s ease .3s forwards; }
.pt-enter .pt { display: block; animation: ptUp .5s var(--ease-in-out) .05s forwards; }
.pt-enter .pt-line path { stroke-dashoffset: 0; }
.pt-enter .pt-brand, .pt-enter .pt-from, .pt-enter .pt-to { opacity: 1; }
.pt-leave .pt { display: block; pointer-events: auto; animation: ptIn .4s var(--ease-in-out) forwards; }
.pt-leave .pt-line path { animation: draw .45s var(--ease-in-out) .1s forwards; }
.pt-leave .pt-brand { animation: fadeIn .2s ease .1s forwards; }
@keyframes ptUp { to { transform: translateY(-100%); visibility: hidden; } }
@keyframes ptIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- 動きを減らす設定（位置の動きは止め、色と不透明度は残す） ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-property: opacity, color, background-color, border-color !important; scroll-behavior: auto !important; }
  .js .flow-line span { transform: none; }
  .btn:active, .float-cta:active, .mobile-cta a:active { transform: none; }
  .pt { display: none !important; }
}

.pill { display: inline-block; padding: 0 var(--s3); border-radius: 999px; background: var(--wash); color: var(--brand); font-size: var(--fs-xs); font-weight: 700; line-height: 2; white-space: nowrap; }

/* ---------- ボタン（写真・青の面の上） ---------- */
.btn-white { background: #fff; color: var(--brand); border-color: #fff; }
.btn-line-white { background: transparent; color: #fff; border-color: #fff; }
.btn-navy { background: var(--brand-deep); color: #fff; min-width: 220px; }
@media (hover: hover) {
  .btn-white:hover { background: var(--wash); color: var(--brand-deep); }
  .btn-line-white:hover { background: rgba(255,255,255,.14); color: #fff; }
  .btn-navy:hover { background: #041f4b; color: #fff; }
}
.btn-white::after, .btn-navy::after, .btn-ai::after, .btn-line-white::after { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); margin-left: var(--s1); }


/* =========================================================
   下層ページの共通部品（DESIGN.md §14：jaftas の下層ページの型）
   ========================================================= */
.en { margin: 0 0 var(--s2); font-size: var(--fs-s); font-weight: 700; color: var(--accent); letter-spacing: .06em; }
.en::before { content: ""; display: inline-block; width: 28px; height: 8px; margin-right: var(--s2); vertical-align: middle; background: linear-gradient(90deg, var(--signature), var(--sky)); border-radius: 8px 0 8px 0; }
.en-light { color: #fff; }

/* 悩み・壁のカード（吹き出し） */
.bubbles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); text-align: left; }
.bubbles.n3 { grid-template-columns: repeat(3, 1fr); }
.bubbles > li > a, .bubbles > li > .b { position: relative; display: flex; flex-direction: column; gap: var(--s3); height: 100%; padding: var(--s5) var(--s4); background: var(--surface); border-radius: var(--r-m); color: var(--text); text-decoration: none; transition: background-color .2s ease; }
.lp-sec.gray .bubbles > li > a, .lp-sec.gray .bubbles > li > .b { background: #fff; }
.bubbles > li > a::after, .bubbles > li > .b::after { content: ""; position: absolute; left: var(--s5); bottom: -14px; border: 14px solid transparent; border-top-color: var(--surface); border-bottom: 0; border-left-width: 0; }
.lp-sec.gray .bubbles > li > a::after, .lp-sec.gray .bubbles > li > .b::after { border-top-color: #fff; }
.bubbles .ex { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 900; font-size: var(--fs-s); line-height: 1; }
.bubbles b { font-size: var(--fs-l); line-height: 1.5; text-align: center; }
.bubbles span:not(.ex), .bubbles li li { font-size: var(--fs-s); color: var(--muted); line-height: 1.8; }
.bubbles ul { margin: 0; padding-left: 1.2em; }
@media (hover: hover) { .bubbles > li > a:hover { background: var(--wash); } .bubbles > li > a:hover::after { border-top-color: var(--wash); } }
@media (max-width: 1000px) { .bubbles, .bubbles.n3 { grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s3); } }
@media (max-width: 560px) { .bubbles, .bubbles.n3 { grid-template-columns: 1fr; } .bubbles b br { display: none; } }

/* チェックの一覧 */
.checks { list-style: none; margin: 0 0 var(--s5); padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2) var(--s4); font-size: var(--fs-s); font-weight: 700; line-height: 1.6; }
.checks.one { grid-template-columns: 1fr; }
.checks li { position: relative; padding-left: 26px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .15em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); }
.checks li::after { content: ""; position: absolute; left: 6px; top: calc(.15em + 4px); width: 5px; height: 8px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
@media (max-width: 720px) { .checks { grid-template-columns: 1fr; } }

/* 見出し帯（青のグラデーション＋重なる角丸写真） */
.lp-hero { position: relative; margin-bottom: var(--s7); }
.lp-band { position: relative; overflow: hidden; background: linear-gradient(160deg, #0b5fc4 0%, #1f8fe6 45%, #64c6f7 100%); color: #fff; padding: var(--s6) 0 var(--s7); }
.lp-hero.has-photo .lp-band { padding-bottom: calc(var(--s8) + var(--s6)); }
.lp-band-lines { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 70%; pointer-events: none; }
.lp-band-lines path { fill: none; stroke: #fff; stroke-opacity: .28; stroke-width: 1.5; }
.lp-band .container { position: relative; }
.lp-band .breadcrumb { margin-bottom: var(--s6); }
.lp-band .breadcrumb, .lp-band .breadcrumb a, .lp-band .breadcrumb li { color: rgba(255,255,255,.92); }
.lp-band h1 { color: #fff; font-size: var(--fs-2xl); font-weight: 900; line-height: 1.45; margin: 0; max-width: 24em; }
.lp-band .lp-lead { margin: var(--s4) 0 0; max-width: 40em; font-weight: 500; line-height: 2; color: #fff; }
.lp-photo { position: relative; z-index: 1; margin: calc(-1 * var(--s8)) 0 0; }
.lp-photo img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; border-radius: var(--r-m); }
.lp-photo figcaption { margin-top: var(--s2); font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 720px) {
  .lp-band { padding: var(--s5) 0 var(--s6); }
  .lp-band .breadcrumb { margin-bottom: var(--s5); }
  .lp-hero.has-photo .lp-band { padding-bottom: var(--s8); }
  .lp-photo { margin-top: calc(-1 * var(--s7)); }
  .lp-photo img { aspect-ratio: 4 / 3; }
}

/* セクション */
.lp-sec { padding: var(--s8) 0; }
.lp-sec.gray { background: var(--surface); }
.lp-sec.wash { background: linear-gradient(180deg, var(--wash) 0%, #fff 100%); }
.lp-sec:not(.gray):not(.wash) + .lp-sec:not(.gray):not(.wash) { padding-top: 0; }
.lp-hero + .lp-sec { padding-top: var(--s5); }
@media (max-width: 720px) { .lp-sec { padding: var(--s7) 0; } }
.lp-head { text-align: center; margin: 0 auto var(--s6); max-width: 46em; }
.lp-head.left { text-align: left; margin-left: 0; }
.lp-head h2 { font-size: var(--fs-2xl); font-weight: 900; color: var(--brand-deep); margin: 0 0 var(--s4); line-height: 1.45; }
.lp-head p { color: var(--muted); margin: 0; }
.lp-sub { text-align: center; font-size: var(--fs-l); font-weight: 700; margin: var(--s7) 0 var(--s6); line-height: 1.7; }
.lp-sec h3 { font-weight: 900; }
.lp-sec .faq { max-width: 960px; margin: 0 auto; }

/* About：結論の宣言＋ページ内リンク */
.lp-about h2 { font-size: var(--fs-2xl); font-weight: 900; color: var(--brand-deep); margin: 0 0 var(--s5); line-height: 1.5; max-width: 26em; }
.lp-about .container > p { max-width: 46em; margin: 0 0 var(--s4); }
.lp-anchors { list-style: none; display: inline-flex; flex-wrap: wrap; margin: var(--s5) 0 0; padding: var(--s3) var(--s4); background: var(--wash); border-radius: var(--r-m); }
.lp-anchors li + li { border-left: 1px solid #b9d6f2; }
.lp-anchors a { display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s4); font-size: var(--fs-s); font-weight: 700; color: var(--brand-deep); text-decoration: none; }
.lp-anchors a::after { content: ""; display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 7l3 3 3-3' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") center / 100% no-repeat; }
@media (hover: hover) { .lp-anchors a:hover { text-decoration: underline; } }
@media (max-width: 720px) { .lp-anchors { display: grid; width: 100%; } .lp-anchors li + li { border-left: 0; border-top: 1px solid #b9d6f2; } }

/* 写真（図）と文章の交互の行 */
.lp-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s7); }
.lp-rows > li { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s6); align-items: center; }
.lp-rows > li:nth-child(even) > figure, .lp-rows > li:nth-child(even) > .ill { order: 2; }
.lp-rows figure { margin: 0; }
.lp-rows figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-m); }
.lp-rows figcaption { margin-top: var(--s2); font-size: var(--fs-xs); color: var(--muted); }
.lp-rows .ill { aspect-ratio: 4 / 3; border-radius: var(--r-m); background: linear-gradient(160deg, #f4faff, var(--wash)); display: grid; place-items: center; }
.num { display: inline-block; background: var(--accent); color: #fff; font-size: var(--fs-xs); font-weight: 700; padding: 0 var(--s3); border-radius: 999px; line-height: 2; font-variant-numeric: tabular-nums; margin-bottom: var(--s3); }
.lp-rows h3 { font-size: var(--fs-xl); color: var(--brand); margin: 0 0 var(--s4); line-height: 1.45; }
.lp-rows p { margin: 0 0 var(--s4); }
@media (max-width: 900px) { .lp-rows > li { grid-template-columns: 1fr; gap: var(--s4); } .lp-rows > li:nth-child(even) > figure, .lp-rows > li:nth-child(even) > .ill { order: 0; } }

/* STEP の縦の流れ（白い大きなカードの中） */
.lp-steps { list-style: none; margin: 0; padding: var(--s6) var(--s7); background: #fff; border-radius: var(--r-m); counter-reset: st; }
.lp-sec:not(.gray):not(.wash) .lp-steps { box-shadow: 0 0 0 1px var(--line); }
.lp-steps > li { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s5); padding-bottom: var(--s6); counter-increment: st; }
.lp-steps > li:last-child { padding-bottom: 0; }
.lp-steps > li::before { content: "STEP\A" counter(st, decimal-leading-zero); white-space: pre; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.25; text-align: center; font-variant-numeric: tabular-nums; }
.lp-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 31px; top: 72px; bottom: 8px; width: 2px; background: var(--line); }
.lp-steps h3 { font-size: var(--fs-l); margin: var(--s3) 0 var(--s2); color: var(--text); }
.lp-steps p { margin: 0 0 var(--s3); font-size: var(--fs-s); line-height: 1.9; }
.lp-box { background: var(--surface); border-radius: var(--r-s); padding: var(--s3) var(--s4); margin-top: var(--s3); display: grid; gap: var(--s2); }
.lp-box.two { grid-template-columns: 1fr 1fr; gap: var(--s4); background: none; padding: 0; }
.lp-box.two > div { background: var(--surface); border-radius: var(--r-s); padding: var(--s3) var(--s4); }
.lp-box .k { margin: 0 0 var(--s1); font-size: var(--fs-xs); font-weight: 700; color: var(--brand); }
.lp-box p { margin: 0; font-size: var(--fs-s); }
.lp-box .checks { margin: 0; grid-template-columns: repeat(auto-fit, minmax(180px, max-content)); }
@media (max-width: 720px) {
  .lp-steps { padding: var(--s5) var(--s4); }
  .lp-steps > li { grid-template-columns: 48px minmax(0, 1fr); gap: var(--s3); }
  .lp-steps > li::before { width: 48px; height: 48px; font-size: 10px; }
  .lp-steps > li:not(:last-child)::after { left: 23px; top: 56px; }
  .lp-box.two { grid-template-columns: 1fr; }
}

/* 白いカード（並びの情報・リンク） */
.lp-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.lp-cards.n2 { grid-template-columns: 1fr 1fr; }
.lp-cards.n4 { grid-template-columns: repeat(4, 1fr); }
.lp-cards > li > a, .lp-cards > li > .c { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--r-m); padding: var(--s5) var(--s4); color: var(--text); text-decoration: none; overflow: hidden; }
.lp-sec:not(.gray):not(.wash) .lp-cards > li > a, .lp-sec:not(.gray):not(.wash) .lp-cards > li > .c { background: var(--surface); }
.lp-cards h3 { font-size: var(--fs-l); color: var(--brand-deep); margin: 0 0 var(--s3); line-height: 1.5; }
.lp-cards p { margin: 0 0 var(--s3); font-size: var(--fs-s); line-height: 1.9; color: var(--muted); }
.lp-cards .go { margin-top: auto; display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--fs-s); font-weight: 700; color: var(--brand); }
.lp-cards .go::after, .lp-tile .go::after { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M7.5 5.5l3.5 3.5-3.5 3.5' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") center / 100% no-repeat; }
.lp-cards .ph { margin: calc(-1 * var(--s5)) calc(-1 * var(--s4)) var(--s4); }
.lp-cards .ph img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
@media (hover: hover) { .lp-cards > li > a:hover h3 { color: var(--brand); text-decoration: underline; } }
@media (max-width: 1000px) { .lp-cards, .lp-cards.n4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .lp-cards, .lp-cards.n2, .lp-cards.n4 { grid-template-columns: 1fr; } }

/* 人の言葉 */
.lp-voice { margin: 0; padding: var(--s5) var(--s6); background: #fff; border-radius: var(--r-m); }
.lp-voice p { font-family: var(--font-voice); font-weight: 600; font-size: var(--fs-l); line-height: 2; color: var(--brand-deep); margin: 0 0 var(--s2); }
.lp-voice cite { font-style: normal; font-size: var(--fs-s); color: var(--muted); }

/* 終わりのタイル（診断・資料・相談） */
.end-block { padding: var(--s7) 0; background: var(--surface); border-top: 0; }
.lp-next { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s1) var(--s5); align-items: center; padding: var(--s5); margin-bottom: var(--s5); background: #fff; border-radius: var(--r-m); color: var(--text); text-decoration: none; }
.lp-next .en { margin: 0; grid-column: 1; }
.lp-next .t { grid-column: 1; font-size: var(--fs-l); font-weight: 900; color: var(--brand-deep); }
.lp-next .d { grid-column: 1; font-size: var(--fs-s); color: var(--muted); }
.lp-next::after { content: ""; grid-row: 1 / span 3; grid-column: 2; width: 36px; height: 36px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M7.5 5.5l3.5 3.5-3.5 3.5' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") center / 60% no-repeat; }
@media (hover: hover) { .lp-next:hover .t { text-decoration: underline; } }
.lp-tiles { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--s3); }
.lp-tile { display: flex; flex-direction: column; gap: var(--s2); min-height: 200px; padding: var(--s5); border-radius: var(--r-m); background: var(--grad); color: #fff; text-decoration: none; transition: filter .2s ease, transform .16s var(--ease-out); }
.lp-tile:nth-child(2) { background: linear-gradient(120deg, #0a4fb0 0%, #1478d8 60%, #3fb0f2 100%); }
.lp-tile:nth-child(3) { background: linear-gradient(120deg, #083f8f 0%, #0e6fd3 70%, #3aa8f0 100%); }
.lp-tile .en { color: #fff; margin: 0; }
.lp-tile b { font-size: var(--fs-xl); line-height: 1.4; }
.lp-tile .s { font-size: var(--fs-s); color: var(--on-dark-muted); }
.lp-tile .go { margin-top: auto; align-self: flex-end; display: inline-flex; align-items: center; gap: var(--s2); font-weight: 700; font-size: var(--fs-s); border-bottom: 1px solid rgba(255,255,255,.6); padding-bottom: 2px; }
.lp-tile .go::after { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M7.5 5.5l3.5 3.5-3.5 3.5' fill='none' stroke='%230b4da2' stroke-width='1.8'/%3E%3C/svg%3E"); }
.lp-tile:active { transform: scale(.98); }
@media (hover: hover) { .lp-tile:hover { filter: brightness(1.08); } }
@media (max-width: 900px) { .lp-tiles { grid-template-columns: 1fr; } .lp-tile { min-height: 0; } }

/* 下層の細部（担当者の指摘を反映） */
.lp-hero:not(.has-photo) { margin-bottom: 0; }
.lp-hero:not(.has-photo) + .lp-sec { padding-top: var(--s7); }
.lp-hero + .article { padding-top: var(--s6); }
.news-list a { grid-template-columns: 7em 8em 1fr; }
.news-list .pill { justify-self: start; }
.note { font-size: var(--fs-s); color: var(--muted); line-height: 1.9; }
@media (max-width: 720px) { .lp-hero:not(.has-photo) + .lp-sec { padding-top: var(--s6); } .lp-hero + .article { padding-top: var(--s5); } }

/* 2列の表（見出し＋内容）はスマホで縦に積む */
@media (max-width: 640px) {
  table:not(:has(tr > :nth-child(3))) { min-width: 0; }
  table:not(:has(tr > :nth-child(3))) tr, table:not(:has(tr > :nth-child(3))) th, table:not(:has(tr > :nth-child(3))) td { display: block; width: auto; }
  table:not(:has(tr > :nth-child(3))) thead { display: none; }
  table:not(:has(tr > :nth-child(3))) th { border-bottom: 0; padding-bottom: 0; }
}

/* =========================================================
   動きと強調（DESIGN.md §9 v4）。transform と opacity だけを動かす（再描画を軽く保つ）
   ========================================================= */
/* 重要な語句：青の太字＋淡い青のマーカー */
.hl { font-weight: 700; color: var(--brand); background: linear-gradient(transparent 62%, #d3eafb 62%); padding: 0 1px; }
.lp-band .hl, .svc-panel .hl, .start .hl { color: #fff; background: linear-gradient(transparent 62%, rgba(255,255,255,.28) 62%); }

/* カードの写真：イメージの札と、ホバーでわずかに寄る */
.ph { position: relative; overflow: hidden; }
.ph .img-label, .ph-ill .img-label, .gallery .img-label { position: absolute; left: var(--s2); top: var(--s2); z-index: 1; }
.lp-cards .ph img, .col-grid a img, .lp-rows figure img, .svc-row img { transition: transform .8s var(--ease-out); }
.lp-rows figure, .svc-row figure { overflow: hidden; border-radius: var(--r-m); }
@media (hover: hover) {
  .lp-cards > li > a:hover .ph img, .col-grid a:hover img { transform: scale(1.05); }
  .btn::after { transition: transform .2s var(--ease-out); }
  .btn:hover::after { transform: translateX(3px) rotate(45deg); }
  .lp-tile:hover .go::after, .lp-cards > li > a:hover .go::after { transform: translateX(3px); }
  .lp-tile .go::after, .lp-cards .go::after { transition: transform .2s var(--ease-out); }
}

/* スクロールで現れる（JS があり、動きを減らす設定でないときだけ。JS が無ければ最初から表示） */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.in { opacity: 1; transform: none; }

/* 見出し帯の文字：読み込み時に一度だけ下から現れる */
@media (prefers-reduced-motion: no-preference) {
  .lp-band .en, .lp-band h1, .lp-band .lp-lead { animation: bandIn .9s var(--ease-out) both; }
  .lp-band h1 { animation-delay: .08s; }
  .lp-band .lp-lead { animation-delay: .16s; }
  .lp-photo { animation: photoIn 1.1s var(--ease-out) .12s both; }
}
@keyframes bandIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes photoIn { from { opacity: 0; transform: translateY(32px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }
.ph .img-label, .ph-ill .img-label, .gallery .img-label { background: rgba(255,255,255,.92); color: var(--text); border: 0; }
.start-card .hl, .svc-intro .hl { color: var(--brand); background: linear-gradient(transparent 62%, #d3eafb 62%); }

/* =========================================================
   アクセシビリティの是正（公開前の確認 2026-10-17）
   青の面の上の白文字は 4.5:1 以上、フォーカスの枠と入力欄の枠は 3:1 以上
   ========================================================= */
:root { --grad: linear-gradient(120deg, #0a4fae 0%, #0b5fc4 55%, #0e6fd3 100%); }
.lp-band { background: linear-gradient(160deg, #0a4fae 0%, #0b5fc4 55%, #0e6fd3 100%); }
.lp-band-lines path { stroke-opacity: .15; }
.lp-band .breadcrumb, .lp-band .breadcrumb a, .lp-band .breadcrumb li { color: #fff; }
.lp-tile:nth-child(2) { background: linear-gradient(120deg, #0a4fb0 0%, #0b5fc4 60%, #0e6fd3 100%); }
.lp-tile:nth-child(3) { background: linear-gradient(120deg, #083f8f 0%, #0a4fae 60%, #0b5fc4 100%); }
.lp-tile .s { color: #fff; }

/* フォーカス：濃紺と白の二重の枠（どの背景の上でも見える） */
:focus-visible { outline: 3px solid #062f6e; outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }
.lp-band :focus-visible, .svc-panel :focus-visible, .start :focus-visible, .cv2 :focus-visible, .lp-tile:focus-visible, .hx :focus-visible, .know :focus-visible { outline-color: #fff; box-shadow: 0 0 0 5px #062f6e; }

/* 固定のヘッダーと下部ボタンの下に、フォーカス先が隠れないように */
html { scroll-padding-top: 88px; }
@media (max-width: 720px) { html { scroll-padding-bottom: 84px; } }

/* 入力欄の枠 */
input:not([type="radio"]):not([type="checkbox"]), select, textarea { border-color: #7b879a; }
.field-err, .dx-err { display: block; margin-top: var(--s1); font-size: var(--fs-s); font-weight: 700; color: #b42318; }
[aria-invalid="true"] { border-color: #b42318 !important; }

/* 押せる範囲を広げる */
.site-footer nav ul li { padding: 0; }
.site-footer nav a { display: block; padding: 10px 0; }
.toc a, .breadcrumb a { display: inline-block; padding: 10px 0; }

/* JS が無いとき、小さい画面のメニューは開いたまま表示する */
@media (max-width: 1100px) { html:not(.js) .global-nav { display: block; position: static; } html:not(.js) .menu-btn { display: none; } }

/* =========================================================
   下層ページの「流れ」と動き（v5：2026-10-17 オーナー指示「流れが足りない／目立つ動きで」）
   章番号 → 見出し → 中身 → 次の章への案内、を全ページで同じ型にする
   ========================================================= */
:root { interpolate-size: allow-keywords; }
main { counter-reset: ch; }
.lp-ch { counter-increment: ch; position: relative; }

/* 章の見出し：大きな章番号＋英語の章名＋見出し（左寄せ） */
.lp-ch .lp-head { text-align: left; margin: 0 0 var(--s6); max-width: none; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s5); align-items: end; }
.lp-ch .lp-head > * { grid-column: 2; }
.lp-ch .lp-head::before, .lp-ch.lp-about .container:not(.lp-bridge-wrap)::before { content: counter(ch, decimal-leading-zero); font-family: var(--font-display); font-weight: 900; font-size: clamp(4rem, 8vw, 7.5rem); line-height: .8; letter-spacing: -.03em; font-variant-numeric: tabular-nums; background: linear-gradient(150deg, var(--signature) 0%, var(--sky) 45%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-ch .lp-head::before { grid-column: 1; grid-row: 1 / span 3; align-self: start; padding-top: var(--s1); }
.lp-ch .lp-head h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); margin-bottom: var(--s3); }
.lp-ch .lp-head p { max-width: 46em; }
.lp-ch.lp-about .container:not(.lp-bridge-wrap) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s5); }
.lp-ch.lp-about .container:not(.lp-bridge-wrap) > * { grid-column: 2; }
.lp-ch.lp-about .container:not(.lp-bridge-wrap)::before { grid-column: 1; grid-row: 1 / span 6; align-self: start; }
.lp-ch.lp-about .container > .lp-bridge { grid-column: 1 / -1; }
.lp-ch.lp-about h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
@media (max-width: 720px) {
  .lp-ch .lp-head, .lp-ch.lp-about .container:not(.lp-bridge-wrap) { grid-template-columns: 1fr; }
  .lp-ch .lp-head > *, .lp-ch.lp-about .container:not(.lp-bridge-wrap) > * { grid-column: 1; }
  .lp-ch .lp-head::before, .lp-ch.lp-about .container:not(.lp-bridge-wrap)::before { grid-column: 1; grid-row: auto; font-size: 3.5rem; margin-bottom: var(--s3); }
}

/* 見出しを左、中身を右に（よくある質問・カードの章） */
@media (min-width: 1000px) {
  .lp-ch > .container:has(> .lp-head + .faq:last-child), .lp-ch > .container:not(.lp-wide):has(> .lp-head + .lp-cards:last-child) { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--s7); align-items: start; }
  .lp-ch > .container:has(> .lp-head + .faq:last-child) > .lp-head, .lp-ch > .container:not(.lp-wide):has(> .lp-head + .lp-cards:last-child) > .lp-head { position: sticky; top: 112px; grid-template-columns: 1fr; margin: 0; }
  .lp-ch > .container:has(> .lp-head + .faq:last-child) > .lp-head > *, .lp-ch > .container:not(.lp-wide):has(> .lp-head + .lp-cards:last-child) > .lp-head > * { grid-column: 1; }
  .lp-ch > .container:has(> .lp-head + .faq:last-child) > .lp-head::before, .lp-ch > .container:not(.lp-wide):has(> .lp-head + .lp-cards:last-child) > .lp-head::before { grid-row: auto; margin-bottom: var(--s4); }
  .lp-ch > .container:has(> .lp-head + .faq:last-child) > .faq { max-width: none; margin: 0; }
  .lp-ch > .container:not(.lp-wide):has(> .lp-head + .lp-cards:last-child) > .lp-cards { grid-template-columns: 1fr 1fr; }
  .lp-ch > .container:has(> .lp-head + .faq:last-child) > :not(.lp-head):not(.faq), .lp-ch > .container:not(.lp-wide):has(> .lp-head + .lp-cards:last-child) > :not(.lp-head):not(.lp-cards) { grid-column: 1 / -1; }
}

/* 次の章への案内 */
.lp-bridge { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s4); align-items: center; margin-top: var(--s7); padding: var(--s4) 0 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.lp-bridge::before { content: ""; grid-row: 1 / span 2; width: 48px; height: 48px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v13M6 12l6 6 6-6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 50% no-repeat; }
.lp-bridge .k { font-size: var(--fs-xs); font-weight: 700; color: var(--accent-deep); letter-spacing: .06em; }
.lp-bridge .t { font-size: var(--fs-l); font-weight: 900; color: var(--brand-deep); line-height: 1.5; }
@media (hover: hover) { .lp-bridge:hover .t { text-decoration: underline; } }
@media (prefers-reduced-motion: no-preference) { .lp-bridge::before { animation: bob 2.4s var(--ease-in-out) infinite; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* いま何章目か（PC の左下） */
.lp-now { display: none; }
@media (min-width: 1200px) {
  .lp-now { display: block; position: fixed; left: var(--s4); bottom: var(--s4); z-index: 45; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s ease, transform .3s var(--ease-out); }
  .lp-now.is-on { opacity: 1; transform: none; pointer-events: auto; }
  .lp-now-cur { display: flex; align-items: center; gap: var(--s2); margin: 0; padding: var(--s2) var(--s4) var(--s2) var(--s2); background: #fff; border-radius: 999px; box-shadow: 0 10px 30px -12px rgba(6, 47, 110, .35), 0 0 0 1px var(--line); font-size: var(--fs-s); max-width: 340px; }
  .lp-now-cur b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; font-variant-numeric: tabular-nums; flex: none; }
  .lp-now-cur > span:not(.lp-now-t) { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
  .lp-now-t { font-weight: 700; color: var(--brand-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lp-now ol { list-style: none; margin: 0 0 var(--s2); padding: var(--s2); background: #fff; border-radius: var(--r-m); box-shadow: 0 10px 30px -12px rgba(6, 47, 110, .35), 0 0 0 1px var(--line); display: none; max-width: 340px; }
  .lp-now:hover ol, .lp-now:focus-within ol { display: block; }
  .lp-now ol a { display: grid; grid-template-columns: 2.2em 1fr; gap: var(--s2); padding: var(--s2) var(--s3); border-radius: var(--r-s); font-size: var(--fs-s); color: var(--text); text-decoration: none; line-height: 1.5; }
  .lp-now ol a b { color: var(--accent-deep); font-variant-numeric: tabular-nums; }
  .lp-now ol a[aria-current="true"] { background: var(--wash); font-weight: 700; }
  @media (hover: hover) { .lp-now ol a:hover { background: var(--surface); } }
}

/* 読み進み具合のバー（画面の上端） */
.lp-progress { position: fixed; left: 0; top: 0; z-index: 60; width: 100%; height: 3px; background: linear-gradient(90deg, var(--signature), var(--sky) 40%, var(--accent)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }

/* 見出し帯：大きな英字の章名と、流れるリボン */
.lp-band::after { content: attr(data-en); position: absolute; right: -.04em; bottom: -.2em; font-family: var(--font-display); font-weight: 900; font-size: clamp(5rem, 15vw, 15rem); line-height: 1; letter-spacing: -.03em; color: rgba(255, 255, 255, .08); pointer-events: none; white-space: nowrap; }
.lp-band-ribbon { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; pointer-events: none; }
.lp-band-ribbon path { fill: none; stroke-linecap: round; }
.lp-band-ribbon .w { stroke: url(#lpb-grad); stroke-width: 22; opacity: .4; }
.lp-band-ribbon .t { stroke: #fff; stroke-width: 2; opacity: .35; }
@media (prefers-reduced-motion: no-preference) {
  .lp-band-ribbon path { stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: ribbonDraw 2.2s var(--ease-in-out) .2s forwards; }
  .lp-band-ribbon .t { animation-delay: .45s; }
  .lp-band::after { animation: enSlide 1.4s var(--ease-out) both; }
}
@keyframes ribbonDraw { to { stroke-dashoffset: 0; } }
@keyframes enSlide { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }

/* 見出し帯の写真：幕が開くように現れる */
@media (prefers-reduced-motion: no-preference) {
  .lp-photo { animation: none; }
  .lp-photo img { animation: wipeIn 1.3s var(--ease-in-out) .15s both; }
}
@keyframes wipeIn { from { clip-path: inset(0 100% 0 0 round 8px); transform: scale(1.06); } to { clip-path: inset(0 0 0 0 round 8px); transform: none; } }

/* ---- スクロールで現れる動き（.rv は JS が付ける） ---- */
/* 章の見出し：番号が左から、見出しが下から */
.lp-head.rv, .lp-about h2.rv { opacity: 1; transform: none; }
.lp-head.rv::before, .lp-ch.lp-about .container.rv-num::before { opacity: 0; transform: translateX(-36px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.lp-head.rv.in::before, .lp-ch.lp-about .container.rv-num.in::before { opacity: 1; transform: none; }
.lp-head.rv > *, .lp-about h2.rv { clip-path: inset(0 0 100% 0); transform: translateY(24px); transition: clip-path .9s var(--ease-out), transform .9s var(--ease-out); }
.lp-head.rv > :nth-child(2) { transition-delay: .08s; }
.lp-head.rv > :nth-child(3) { transition-delay: .16s; }
.lp-head.rv.in > *, .lp-about h2.rv.in { clip-path: inset(-10% 0 -10% 0); transform: none; }

/* 写真：幕が開く */
.lp-rows figure.rv { opacity: 1; transform: none; clip-path: inset(0 100% 0 0 round 8px); transition: clip-path 1.1s var(--ease-in-out); }
.lp-rows figure.rv.in { clip-path: inset(0 0 0 0 round 8px); }
.lp-rows figure.rv img { transform: scale(1.15); transition: transform 1.5s var(--ease-out); }
.lp-rows figure.rv.in img { transform: none; }
.lp-rows > li:nth-child(even) figure.rv { clip-path: inset(0 0 0 100% round 8px); }
.lp-rows > li:nth-child(even) figure.rv.in { clip-path: inset(0 0 0 0 round 8px); }

/* 悩みの吹き出し：弾むように */
.bubbles > li.rv { transform: translateY(30px) scale(.92); transition: opacity .7s var(--ease-out), transform .8s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--d, 0) * 110ms); }
.bubbles > li.rv.in { transform: none; }
.bubbles > li.rv.in .ex { animation: exPop .6s cubic-bezier(.34, 1.56, .64, 1) calc(var(--d, 0) * 110ms + .35s) both; }
@keyframes exPop { 0% { transform: scale(0); } 70% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* STEP：丸が現れ、縦の線が伸びる */
.lp-steps > li.rv { transform: translateX(-20px); }
.lp-steps > li.rv.in { transform: none; }
.lp-steps > li.rv::before { transform: scale(.3); transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--d, 0) * 90ms + .1s); }
.lp-steps > li.rv.in::before { transform: none; }
.lp-steps > li.rv::after { transform-origin: top; transform: scaleY(0); transition: transform .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms + .4s); }
.lp-steps > li.rv.in::after { transform: none; }
.lp-steps > li::after { background: linear-gradient(var(--accent), var(--sky)); }

/* カード：持ち上がる（ホバー） */
.lp-cards > li > a { transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
@media (hover: hover) { .lp-cards > li > a:hover { transform: translateY(-6px); box-shadow: 0 22px 44px -24px rgba(11, 77, 162, .45); } }

/* 終わりのタイル：光が走る（ホバー） */
.lp-tile { position: relative; overflow: hidden; }
.lp-tile::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.22), transparent); transform: skewX(-18deg); pointer-events: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .lp-tile:hover::before { animation: shine .9s var(--ease-out); } }
@keyframes shine { to { left: 130%; } }

/* よくある質問：なめらかに開閉 */
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease-out), content-visibility .35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq summary { transition: color .2s ease; }
@media (hover: hover) { .faq summary:hover { color: var(--brand); } }

@media (prefers-reduced-motion: reduce) {
  .lp-head.rv > *, .lp-about h2.rv, .lp-rows figure.rv, .lp-rows figure.rv img { clip-path: none !important; transform: none !important; }
  .lp-head.rv::before { opacity: 1; transform: none; }
}

.lp-ch:has(.lp-bridge) { padding-bottom: var(--s6); }
.lp-bridge { margin-top: var(--s6); }
.lp-sec.gray .lp-bridge { border-top-color: #d3e0ee; }
.lp-head p.en { color: var(--accent-deep); }
@media (max-width: 720px) { .lp-band-ribbon { display: none; } }
/* 章番号の下が欠けないよう、文字の高さぶんの行と余白を取る */
.lp-ch .lp-head::before, .lp-ch.lp-about .container:not(.lp-bridge-wrap)::before { line-height: 1.05; padding-bottom: .06em; }
.lp-ch .lp-head::before, .lp-ch.lp-about .container:not(.lp-bridge-wrap)::before { background-image: linear-gradient(160deg, #0b4da2 0%, #0e6fd3 45%, #3aa8f0 100%); }

/* =========================================================
   多言語（日本語・英語・ヒンディー語）
   ========================================================= */
/* 英語・ヒンディー語の文字組み */
html[lang="en"] body, html[lang="hi"] body { letter-spacing: 0; line-height: 1.75; font-feature-settings: normal; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3 { letter-spacing: 0; word-break: normal; overflow-wrap: break-word; }
html[lang="en"] p, html[lang="en"] li, html[lang="en"] dd, html[lang="en"] td, html[lang="hi"] p, html[lang="hi"] li, html[lang="hi"] dd, html[lang="hi"] td { word-break: normal; overflow-wrap: break-word; }
html[lang="en"] p, html[lang="en"] li { hyphens: auto; }
html[lang="hi"] { --font-display: "Noto Sans Devanagari", "Zen Kaku Gothic New", sans-serif; --font-sans: "Noto Sans Devanagari", "Zen Kaku Gothic New", sans-serif; --font-voice: "Noto Sans Devanagari", "Shippori Mincho", serif; }
html[lang="hi"] body { line-height: 1.9; }
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3 { line-height: 1.5; }
html[lang="en"] .hx h1 { font-size: clamp(2.4rem, 5.4vw, 4.75rem); line-height: 1.12; }
html[lang="hi"] .hx h1 { font-size: clamp(2.2rem, 5vw, 4.25rem); line-height: 1.35; }
html[lang="en"] .global-nav ul, html[lang="hi"] .global-nav ul { gap: var(--s4); }
html[lang="en"] .lp-band h1, html[lang="hi"] .lp-band h1 { max-width: 30em; }
.global-nav a { white-space: nowrap; }
@media (max-width: 1440px) and (min-width: 1101px) { .site-header .container { gap: var(--s4); } .global-nav ul { gap: var(--s4); } .header-cta .btn { padding: var(--s2) var(--s3); } }
@media (max-width: 1220px) and (min-width: 1101px) { .header-cta .btn-ghost { display: none; } }

.breadcrumb ol { align-items: center; }
.breadcrumb li { display: inline-flex; align-items: center; }
.form-grid select, .form-grid input, .form-grid textarea { min-width: 0; max-width: 100%; }
.gallery .motion-toggle { top: var(--s1); min-height: 40px; }

/* =========================================================
   言語の切り替え（「Language」ボタンにまとめる。v2）
   ========================================================= */
.lang-switch { position: relative; flex: none; }
.lang-switch summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--s3); border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; color: var(--brand-deep); font-size: var(--fs-s); font-weight: 700; cursor: pointer; white-space: nowrap; user-select: none; transition: border-color .2s ease, background-color .2s ease; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch .lang-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang-switch .lang-caret { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .2s var(--ease-out); }
.lang-switch[open] .lang-caret { transform: rotate(180deg); }
.lang-switch .lang-word { color: var(--muted); font-weight: 500; }
.lang-switch .lang-word::after { content: ":"; }
@media (hover: hover) { .lang-switch summary:hover { border-color: var(--brand); background: var(--surface); } }
.lang-switch ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 70; min-width: 180px; margin: 0; padding: var(--s1); list-style: none; background: #fff; border-radius: var(--r-m); box-shadow: 0 16px 40px -16px rgba(6, 47, 110, .4), 0 0 0 1px var(--line); display: grid; gap: 2px; }
.lang-switch ul a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 var(--s3); border-radius: var(--r-s); color: var(--text); font-size: var(--fs-s); font-weight: 700; text-decoration: none; }
.lang-switch ul a[aria-current="true"] { background: var(--wash); color: var(--brand-deep); }
.lang-switch ul a[aria-current="true"]::after { content: ""; width: 6px; height: 11px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg) translateY(-2px); }
@media (hover: hover) { .lang-switch ul a:not([aria-current="true"]):hover { background: var(--surface); } }
@media (prefers-reduced-motion: no-preference) { .lang-switch[open] ul { animation: langIn .18s var(--ease-out); } }
@keyframes langIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* 写真の上（トップの透明なヘッダー） */
.js .home:not(.is-scrolled) .site-header .lang-bar summary { background: rgba(4, 24, 58, .35); border-color: rgba(255,255,255,.6); color: #fff; }
.js .home:not(.is-scrolled) .site-header .lang-bar .lang-word { color: rgba(255,255,255,.85); }

/* 置き場所：PC はヘッダーの中、狭い幅はメニューの中 */
.lang-menu { display: none; }
@media (max-width: 1440px) and (min-width: 1101px) { .lang-bar .lang-word { display: none; } }
@media (max-width: 1100px) {
  .lang-bar { display: none; }
  .global-nav .lang-menu { display: block; margin-top: var(--s4); }
  .global-nav .lang-menu summary { width: 100%; min-height: 48px; justify-content: flex-start; font-size: var(--fs-m); }
  .global-nav .lang-menu .lang-caret { margin-left: auto; }
  .global-nav .lang-menu ul { position: static; margin-top: var(--s2); box-shadow: 0 0 0 1px var(--line); min-width: 0; }
  .global-nav .lang-menu li { border: 0 !important; }
  .global-nav .lang-menu ul a { font-size: var(--fs-m); color: var(--text) !important; }
}

/* フッター最下段の言語 */
.site-footer .copy .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s2) var(--s5); }
.footer-lang { display: flex; align-items: center; gap: var(--s2); }
.footer-lang > span { font-weight: 700; color: var(--muted); }
.site-footer .footer-lang ul { display: flex; gap: var(--s1); }
.site-footer .footer-lang li { border: 0; padding: 0; }
.site-footer .footer-lang a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 var(--s2); border-radius: var(--r-s); font-size: var(--fs-xs); }

/* =========================================================
   インパクトの帯（各ページで最も伝えたい1点だけ。v6）
   ほかの章は静かなまま、ここだけ全幅の濃い青・特大の一文・大きな数字で見せる
   ========================================================= */
.lp-impact { position: relative; overflow: hidden; background: linear-gradient(135deg, #041f4b 0%, #062f6e 40%, #0b4da2 100%); color: #fff; padding: var(--s8) 0; isolation: isolate; }
.lp-impact .ribbon { inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .55; }
.lp-impact .ribbon .wide { stroke-width: 40; }
.lp-impact .container { position: relative; }
.imp-en { margin: 0 0 var(--s4); font-size: var(--fs-s); font-weight: 700; letter-spacing: .08em; color: var(--sky-2); }
.imp-msg { margin: 0 0 var(--s7); font-family: var(--font-display); font-weight: 900; font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1.3; color: #fff; letter-spacing: .01em; max-width: 18em; }
html[lang="en"] .imp-msg, html[lang="hi"] .imp-msg { letter-spacing: 0; line-height: 1.25; }
.imp-msg em { font-style: normal; background: linear-gradient(90deg, #ffd29a, #ffffff 60%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.imp-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border-top: 1px solid rgba(255,255,255,.25); }
.imp-stats li { padding: var(--s5) var(--s5) 0 0; }
.imp-stats li + li { padding-left: var(--s5); border-left: 1px solid rgba(255,255,255,.25); }
.imp-num { display: block; font-family: var(--font-display); font-weight: 900; font-size: clamp(3rem, 6.5vw, 5.75rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #ffffff 30%, #9fd8ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.imp-num small { font-size: .32em; margin-left: .15em; letter-spacing: 0; -webkit-text-fill-color: #fff; color: #fff; }
.imp-label { display: block; margin-top: var(--s3); font-size: var(--fs-s); line-height: 1.7; color: #dcebfb; }
.imp-cta { margin: var(--s7) 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); }
.imp-cta .btn { min-width: 300px; }
.imp-cta span { font-size: var(--fs-s); color: #dcebfb; }
.lp-impact :focus-visible { outline-color: #fff; box-shadow: 0 0 0 5px #062f6e; }
@media (max-width: 720px) {
  .lp-impact { padding: var(--s7) 0; }
  .imp-msg { margin-bottom: var(--s6); }
  .imp-stats { grid-template-columns: 1fr 1fr; }
  .imp-stats li, .imp-stats li + li { padding: var(--s4) var(--s3) var(--s4) 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .imp-stats li:nth-child(even) { padding-left: var(--s3); border-left: 1px solid rgba(255,255,255,.18); }
  .imp-cta .btn { min-width: 0; width: 100%; }
}

/* 動き：一文は下から、数字は順に、背景のリボンは描かれる（JS がある時だけ。.rv は main.js が付ける） */
.imp-msg.rv { opacity: 1; clip-path: inset(0 0 100% 0); transform: translateY(40px); transition: clip-path 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
.imp-msg.rv.in { clip-path: inset(-10% 0 -10% 0); transform: none; }
.imp-stats > li.rv { transform: translateY(30px); }
.imp-stats > li.rv.in { transform: none; }
@media (prefers-reduced-motion: reduce) { .imp-msg.rv { clip-path: none; transform: none; } }
.lp-impact .ribbon { position: absolute; pointer-events: none; overflow: visible; }
.lp-impact .ribbon path { fill: none; stroke-linecap: round; }
.lp-impact .ribbon .thin { stroke-width: 6; opacity: .55; }
.js .lp-impact .ribbon path { stroke-dasharray: 3200; stroke-dashoffset: 3200; transition: stroke-dashoffset 2.4s var(--ease-in-out); }
.js .lp-impact .ribbon.is-in path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .js .lp-impact .ribbon path { stroke-dashoffset: 0; transition: none; } }
.imp-num small.pre { margin: 0 .08em 0 0; }

/* ロゴ（docs/13_ロゴ.md） */
.brand .brand-mark { width: 44px; height: auto; flex: none; }
.footer-brand img { width: auto; height: 44px; }
.footer-corp { margin: var(--s4) 0 var(--s3); }
.footer-corp img { width: auto; height: 52px; }
.js .home:not(.is-scrolled) .brand-mark circle { fill: #fff; }
.js .home:not(.is-scrolled) .brand-mark path[stroke="#0B4DA2"] { stroke: #5FB2F2; }

/* ヘッダーのロゴ v4（文字も図形。写真の上では白） */
.brand { color: var(--brand-deep); }
.brand .brand-logo { display: block; height: 36px; width: auto; }
@media (max-width: 720px) { .brand .brand-logo { height: 30px; } }
.js .home:not(.is-scrolled) .brand-logo circle { fill: #fff; }
@media (max-width: 1440px) and (min-width: 1101px) { .brand .brand-logo { height: 32px; } }
@media (max-width: 1280px) and (min-width: 1101px) { .global-nav ul { gap: var(--s3); } .global-nav a { font-size: var(--fs-xs); } }

/* ロゴ v5（docs/13_ロゴ.md） */
.brand .brand-logo { height: 40px; }
@media (max-width: 1440px) and (min-width: 1101px) { .brand .brand-logo { height: 36px; } }
@media (max-width: 720px) { .brand .brand-logo { height: 34px; } }
.js .home:not(.is-scrolled) .brand { --logo-road: #5FB2F2; }
.footer-brand img { height: 52px; }
.footer-corp img { height: 64px; }
.brand .brand-logo { height: 46px; }
@media (max-width: 1440px) and (min-width: 1101px) { .brand .brand-logo { height: 42px; } }
@media (max-width: 720px) { .brand .brand-logo { height: 38px; } }

/* ロゴ v5.1：ヘッダーは縦組み（docs/13_ロゴ.md） */
.site-header .container { height: 96px; }
.brand .brand-logo { height: 80px; }
@media (max-width: 1440px) and (min-width: 1101px) { .brand .brand-logo { height: 76px; } }
@media (max-width: 1100px) { .global-nav { top: 96px; } }
@media (max-width: 720px) { .site-header .container { height: 76px; } .brand .brand-logo { height: 62px; } .global-nav { top: 76px; } }
html { scroll-padding-top: 112px; }
.hx { padding-top: 140px; }
.hx-sentinel { top: 120px; }
@media (min-width: 1000px) { .lp-ch > .container:not(.lp-wide):has(> .lp-head + .lp-cards:last-child) > .lp-head, .lp-ch > .container:has(> .lp-head + .faq:last-child) > .lp-head { top: 128px; } }
.footer-brand img { height: 150px; width: auto; }
.footer-corp { margin: var(--s5) 0 var(--s4); }
.footer-corp img { height: 230px; width: auto; max-width: 100%; }
@media (max-width: 720px) { .footer-brand img { height: 120px; } .footer-corp img { height: 190px; } }

/* フッター：サービスロゴを紋章の中心にそろえる／ヘッダー：メニューをロゴの近くへ */
.footer-brand { width: 274px; max-width: 100%; text-align: center; margin-bottom: var(--s4); }
.footer-brand img { display: inline-block; }
@media (min-width: 1101px) { .global-nav { margin-left: var(--s6); } .site-header .lang-bar { margin-left: auto; } }
@media (max-width: 1440px) and (min-width: 1101px) { .global-nav { margin-left: var(--s5); } }
@media (max-width: 720px) { .footer-brand { width: 220px; } }

/* =========================================================
   開く演出 v2「架け橋がかかる」（DESIGN.md §9）
   初回：リボンが左右から伸び → 頂上で重なり → 人が降り立ち → 紋章の輪と理念 → 幕が上がる（約2.4秒）
   ページ移動：サフランと青の帯が左右から閉じ、次のページで左右へ開く（約0.6秒）
   ========================================================= */
.pt { display: none; position: fixed; inset: 0; z-index: 300; pointer-events: none; overflow: hidden; background: radial-gradient(120% 90% at 50% 40%, #0b3f8c 0%, #062f6e 55%, #041f4b 100%); }
.pt-line, .pt-from, .pt-to, .pt-brand { display: none; }
.pt-stage { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--s3); text-align: center; color: #fff; }
.pt-mark { width: min(240px, 52vw); height: auto; overflow: visible; }
.pt-name { margin: var(--s2) 0 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: .14em; color: #fff; opacity: 0; }
html[lang="en"] .pt-name, html[lang="hi"] .pt-name { letter-spacing: .24em; font-size: clamp(1.1rem, 2.4vw, 1.6rem); }
.pt-copy { margin: 0; font-size: var(--fs-s); letter-spacing: .12em; color: #cfe4fb; opacity: 0; }
.pt-band { position: absolute; top: 0; bottom: 0; width: 50.5%; }
.pt-band-s { left: 0; background: linear-gradient(90deg, #e2620b, #f28a1e); transform: translateX(-101%); }
.pt-band-b { right: 0; background: linear-gradient(90deg, #0b4da2, #062f6e); transform: translateX(101%); }

/* 印の部品の初期状態 */
.pt-ring { stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: 120px 100px; }
.pt-water { stroke-dasharray: 1; stroke-dashoffset: 1; }
.pt-rb-l { clip-path: inset(100% 0 0 0); }
.pt-rb-r { clip-path: inset(100% 0 0 0); }
.pt-dot { opacity: 0; transform: translateY(-70px); }

/* ---- 初回 ---- */
.pt-first .pt { display: block; animation: ptCurtain .75s cubic-bezier(.77, 0, .175, 1) 2.15s forwards; }
.pt-first .pt-ring { animation: ptStroke 1.1s cubic-bezier(.65, 0, .35, 1) .05s forwards; }
.pt-first .pt-rb-l { animation: ptGrow .8s cubic-bezier(.22, 1, .36, 1) .25s forwards; }
.pt-first .pt-rb-r { animation: ptGrow .8s cubic-bezier(.22, 1, .36, 1) .42s forwards; }
.pt-first .pt-dot { animation: ptDrop .55s cubic-bezier(.34, 1.56, .64, 1) 1.02s forwards; }
.pt-first .pt-water { animation: ptStroke .6s ease-out 1.2s forwards; }
.pt-first .pt-name { animation: ptFadeUp .6s cubic-bezier(.22, 1, .36, 1) 1.25s forwards; }
.pt-first .pt-copy { animation: ptFadeUp .6s cubic-bezier(.22, 1, .36, 1) 1.45s forwards; }
.pt-first .pt-stage { animation: ptStageOut .7s cubic-bezier(.77, 0, .175, 1) 2.1s forwards; }

/* ---- ページを離れるとき：帯が左右から閉じる ---- */
.pt-leave .pt { display: block; pointer-events: auto; background: transparent; }
.pt-leave .pt-stage { display: none; }
.pt-leave .pt-band-s { animation: ptBandInL .42s cubic-bezier(.77, 0, .175, 1) forwards; }
.pt-leave .pt-band-b { animation: ptBandInR .42s cubic-bezier(.77, 0, .175, 1) forwards; }

/* ---- 次のページに入るとき：帯が左右へ開く ---- */
.pt-enter .pt { display: block; background: transparent; animation: ptHide 0s linear .7s forwards; }
.pt-enter .pt-stage { display: none; }
.pt-enter .pt-band-s { transform: none; animation: ptBandOutL .6s cubic-bezier(.77, 0, .175, 1) .05s forwards; }
.pt-enter .pt-band-b { transform: none; animation: ptBandOutR .6s cubic-bezier(.77, 0, .175, 1) .05s forwards; }

@keyframes ptStroke { to { stroke-dashoffset: 0; } }
@keyframes ptGrow { to { clip-path: inset(0 0 0 0); } }
@keyframes ptDrop { 0% { opacity: 0; transform: translateY(-70px); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes ptFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ptStageOut { to { opacity: 0; transform: translateY(-40px) scale(.96); } }
@keyframes ptCurtain { to { transform: translateY(-100%); visibility: hidden; } }
@keyframes ptBandInL { from { transform: translateX(-101%); } to { transform: none; } }
@keyframes ptBandInR { from { transform: translateX(101%); } to { transform: none; } }
@keyframes ptBandOutL { to { transform: translateX(-101%); } }
@keyframes ptBandOutR { to { transform: translateX(101%); } }
@keyframes ptHide { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .pt { display: none !important; } }
.pt-mark { width: min(320px, 62vw); }
.pt-ring { stroke: rgba(255,255,255,.7); stroke-width: 3.5; }
.pt-copy { font-size: var(--fs-m); }

/* =========================================================
   ページ移動 v3（2026-10-18 オーナー指示「扉では何も書けない。違う方針で」）
   紺のパネルが下から上がり、行き先のページ名を大きく見せる。次のページでは、ページ名を少し見せてから上へ抜ける
   ========================================================= */
.pt-band { display: none !important; }
.pt-nav { display: none; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, #0b3f8c 0%, #062f6e 55%, #041f4b 100%); }
.pt-nav-in { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; color: #fff; padding: 0 var(--s5); }
.pt-mini { width: 96px; height: auto; margin-bottom: var(--s4); }
.pt-mini .pt-ring, .pt-mini .pt-water { stroke-dashoffset: 0; }
.pt-mini .pt-rb-l, .pt-mini .pt-rb-r { clip-path: none; }
.pt-mini .pt-dot { opacity: 1; transform: none; }
.pt-nav-en { margin: 0 0 var(--s2); font-size: var(--fs-s); font-weight: 700; letter-spacing: .16em; color: #9fd2f7; }
.pt-nav-t { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.3; color: #fff; max-width: 16em; }
.pt-nav-brand { margin: var(--s4) 0 0; font-size: var(--fs-s); letter-spacing: .1em; color: #cfe4fb; }
.pt-nav-bar { display: block; width: 160px; height: 3px; margin-top: var(--s5); border-radius: 2px; background: rgba(255,255,255,.18); overflow: hidden; position: relative; }
.pt-nav-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #f28a1e, #2fa4f0); transform-origin: 0 50%; transform: scaleX(0); }

/* 離れるとき：パネルが下から上がり、ページ名が現れ、下の線が伸びる（0.8秒） */
.pt-leave .pt { display: block; pointer-events: auto; background: transparent; }
.pt-leave .pt-stage { display: none; }
.pt-leave .pt-nav { display: block; animation: ptNavUp .5s cubic-bezier(.77, 0, .175, 1) forwards; transform: translateY(100%); }
.pt-leave .pt-nav-in > * { opacity: 0; animation: ptFadeUp .45s cubic-bezier(.22, 1, .36, 1) forwards; }
.pt-leave .pt-mini { animation-delay: .28s !important; }
.pt-leave .pt-nav-en { animation-delay: .34s !important; }
.pt-leave .pt-nav-t { animation-delay: .4s !important; }
.pt-leave .pt-nav-brand { animation-delay: .48s !important; }
.pt-leave .pt-nav-bar { animation-delay: .48s !important; }
.pt-leave .pt-nav-bar::after { animation: ptBar .55s ease-out .5s forwards; }

/* 入るとき：このページの名前を 0.6 秒見せてから、パネルごと上へ抜ける */
.pt-enter .pt { display: block; background: transparent; animation: ptHide 0s linear 1.3s forwards; }
.pt-enter .pt-stage { display: none; }
.pt-enter .pt-nav { display: block; animation: ptNavOut .7s cubic-bezier(.77, 0, .175, 1) .6s forwards; }
.pt-enter .pt-nav-bar::after { transform: scaleX(1); }
.pt-enter .pt-nav-in { animation: ptStageOut .5s cubic-bezier(.77, 0, .175, 1) .55s forwards; }

/* 初回の演出は少しゆっくり（約3秒） */
.pt-first .pt { animation-delay: 2.75s; }
.pt-first .pt-stage { animation-delay: 2.65s; }

@keyframes ptNavUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes ptNavOut { to { transform: translateY(-100%); } }
@keyframes ptBar { to { transform: scaleX(1); } }

/* =========================================================
   最初の演出 v3「地平線から橋がかかる」（2026-10-18）
   地平線（チェンナイ→東京）→ 2本のリボンが立ち上がり頂上で重なる → 人が降り立つ → 社名が1文字ずつ → 理念 → 上へ拭き取る（約4秒）
   ========================================================= */
.pt-ring, .pt-water { display: none; }
.pt-stage { gap: 0; }
.pt-scene { position: relative; width: min(300px, 62vw); }
.pt-scene .pt-mark { width: 100%; display: block; }
.pt-hz { position: absolute; left: 50%; top: 73%; width: min(82vw, 980px); height: 2px; transform: translateX(-50%) scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(242,138,30,0) 0%, #f28a1e 18%, #ffb54d 46%, #8fd3ff 54%, #2fa4f0 82%, rgba(47,164,240,0) 100%); }
.pt-geo { position: absolute; top: calc(73% + 16px); display: grid; gap: 2px; font-size: 11px; font-weight: 700; letter-spacing: .22em; color: rgba(255,255,255,.62); opacity: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pt-geo b { font-weight: 500; letter-spacing: .12em; color: rgba(255,255,255,.9); }
.pt-geo-l { right: calc(50% + min(41vw, 490px) - 150px); text-align: left; }
.pt-geo-r { left: calc(50% + min(41vw, 490px) - 150px); text-align: right; }
@media (max-width: 720px) { .pt-geo-l { right: auto; left: calc(50% - 41vw); } .pt-geo-r { left: auto; right: calc(50% - 41vw); } }
.pt-name { margin: var(--s5) 0 0; opacity: 1; display: flex; justify-content: center; overflow: hidden; padding-bottom: .1em; font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: .18em; }
.pt-name span { display: inline-block; transform: translateY(110%); }
.pt-copy { margin-top: var(--s3); font-size: var(--fs-m); letter-spacing: .14em; }

/* 時間の流れ（初回だけ） */
.pt-first .pt { animation: ptWipe .9s cubic-bezier(.77, 0, .175, 1) 3.35s forwards; }
.pt-first .pt-stage { animation: ptStageOut .8s cubic-bezier(.77, 0, .175, 1) 3.2s forwards; }
.pt-first .pt-hz { animation: ptHz 1s cubic-bezier(.65, 0, .35, 1) .1s forwards; }
.pt-first .pt-geo-l { animation: ptFadeUp .6s cubic-bezier(.22, 1, .36, 1) .35s forwards; }
.pt-first .pt-geo-r { animation: ptFadeUp .6s cubic-bezier(.22, 1, .36, 1) .85s forwards; }
.pt-first .pt-rb-l { animation: ptGrow .9s cubic-bezier(.22, 1, .36, 1) .75s forwards; }
.pt-first .pt-rb-r { animation: ptGrow .9s cubic-bezier(.22, 1, .36, 1) .95s forwards; }
.pt-first .pt-dot { animation: ptDrop .6s cubic-bezier(.34, 1.56, .64, 1) 1.6s forwards; }
.pt-first .pt-name span { animation: ptCharUp .7s cubic-bezier(.22, 1, .36, 1) calc(1.85s + var(--i) * 55ms) forwards; }
.pt-first .pt-copy { animation: ptFadeUp .7s cubic-bezier(.22, 1, .36, 1) 2.45s forwards; }

@keyframes ptHz { to { transform: translateX(-50%) scaleX(1); } }
@keyframes ptCharUp { to { transform: none; } }
@keyframes ptWipe { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); visibility: hidden; } }

/* 「つなぐ」：チェンナイと東京の2点を、光が線に沿って結ぶ */
.pt-scene { --hw: min(82vw, 980px); }
.pt-pin, .pt-spark { position: absolute; top: 73%; width: 14px; height: 14px; margin: -6px 0 0 -7px; border-radius: 50%; transform: scale(0); }
.pt-pin-l { left: calc(50% - var(--hw) * .32); background: #f28a1e; box-shadow: 0 0 0 6px rgba(242,138,30,.18); }
.pt-pin-r { left: calc(50% + var(--hw) * .32); background: #2fa4f0; box-shadow: 0 0 0 6px rgba(47,164,240,.18); }
.pt-spark { left: calc(50% - var(--hw) * .32); width: 10px; height: 10px; margin: -4px 0 0 -5px; background: #fff; box-shadow: 0 0 14px 6px rgba(255,255,255,.55), 0 0 40px 12px rgba(143,211,255,.35); opacity: 0; transform: none; }
.pt-geo { top: calc(73% + 22px); }
.pt-geo-l { right: auto; left: calc(50% - var(--hw) * .32); transform: translateX(-50%); text-align: center; }
.pt-geo-r { left: calc(50% + var(--hw) * .32); transform: translateX(-50%); text-align: center; }
@media (max-width: 720px) { .pt-geo-l, .pt-geo-r { right: auto; } }

.pt-first .pt-pin-l { animation: ptPin .5s cubic-bezier(.34, 1.56, .64, 1) .3s forwards; }
.pt-first .pt-pin-r { animation: ptPin .5s cubic-bezier(.34, 1.56, .64, 1) 1.15s forwards, ptPulse 1.2s ease-out 1.25s 2; }
.pt-first .pt-spark { animation: ptSpark .85s cubic-bezier(.65, 0, .35, 1) .4s forwards; }
.pt-first .pt-geo-l { animation: ptGeo .6s cubic-bezier(.22, 1, .36, 1) .35s forwards; }
.pt-first .pt-geo-r { animation: ptGeo .6s cubic-bezier(.22, 1, .36, 1) 1.15s forwards; }
.pt-first .pt-rb-l { animation: ptGrow .9s cubic-bezier(.22, 1, .36, 1) 1.1s forwards; }
.pt-first .pt-rb-r { animation: ptGrow .9s cubic-bezier(.22, 1, .36, 1) 1.25s forwards; }
.pt-first .pt-dot { animation: ptDrop .6s cubic-bezier(.34, 1.56, .64, 1) 1.85s forwards; }
.pt-first .pt-name span { animation: ptCharUp .7s cubic-bezier(.22, 1, .36, 1) calc(2.05s + var(--i) * 55ms) forwards; }
.pt-first .pt-copy { animation: ptFadeUp .7s cubic-bezier(.22, 1, .36, 1) 2.6s forwards; }
.pt-first .pt-stage { animation: ptStageOut .8s cubic-bezier(.77, 0, .175, 1) 3.45s forwards; }
.pt-first .pt { animation: ptWipe .9s cubic-bezier(.77, 0, .175, 1) 3.6s forwards; }

@keyframes ptPin { to { transform: scale(1); } }
@keyframes ptPulse { 0% { box-shadow: 0 0 0 0 rgba(47,164,240,.6); } 100% { box-shadow: 0 0 0 22px rgba(47,164,240,0); } }
@keyframes ptSpark { 0% { opacity: 0; transform: translateX(0); } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translateX(calc(var(--hw) * .64)); } }
@keyframes ptGeo { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* =========================================================
   ページ移動 v4（2026-10-18 オーナー指示「スタイリッシュでない／文字が2回出る」）
   離れるとき：紺の面が下から拭き上がり、行き先の名前がせり上がり、線の上を光が走る（約1秒）
   入るとき：文字は出さず、面が上へ拭き取られるだけ（0.6秒）
   ========================================================= */
.pt-nav { background: radial-gradient(120% 90% at 50% 45%, #0b3f8c 0%, #062f6e 55%, #041f4b 100%); transform: none !important; }
.pt-mini, .pt-nav-brand, .pt-nav-bar { display: none !important; }
.pt-nav-in { gap: 0; }
.pt-nav-en { margin: 0 0 var(--s3); font-size: 12px; letter-spacing: .32em; color: #9fd2f7; overflow: hidden; }
.pt-nav-t { margin: 0; overflow: hidden; padding: 0 .1em .12em; font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: .06em; }
.pt-nav-t span { display: inline-block; }
.pt-nav-line { position: relative; display: block; width: min(560px, 72vw); height: 2px; margin-top: var(--s5);
  background: linear-gradient(90deg, rgba(242,138,30,0), #f28a1e 20%, #ffb54d 48%, #8fd3ff 52%, #2fa4f0 80%, rgba(47,164,240,0)); transform-origin: 0 50%; }
.pt-nav-line i { position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 14px 6px rgba(255,255,255,.55), 0 0 40px 12px rgba(143,211,255,.35); opacity: 0; }

/* 離れるとき */
.pt-leave .pt-nav { display: block; animation: ptRise .5s cubic-bezier(.77, 0, .175, 1) forwards; clip-path: inset(100% 0 0 0); }
.pt-leave .pt-nav-in > * { opacity: 1; animation: none; }
.pt-leave .pt-nav-en { animation: ptFadeUp .5s cubic-bezier(.22, 1, .36, 1) .28s both !important; }
.pt-leave .pt-nav-t span { transform: translateY(110%); animation: ptCharUp .65s cubic-bezier(.22, 1, .36, 1) .3s forwards; }
.pt-leave .pt-nav-line { transform: scaleX(0); animation: ptLine .6s cubic-bezier(.65, 0, .35, 1) .38s forwards !important; }
.pt-leave .pt-nav-line i { animation: ptRun .6s cubic-bezier(.65, 0, .35, 1) .38s forwards; }

/* 入るとき（文字なし） */
.pt-enter .pt-nav { display: block; clip-path: inset(0 0 0 0); animation: ptWipe .65s cubic-bezier(.77, 0, .175, 1) .08s forwards; }
.pt-enter .pt-nav-in { display: none; }
.pt-enter .pt { animation: ptHide 0s linear .8s forwards; }

@keyframes ptRise { to { clip-path: inset(0 0 0 0); } }
@keyframes ptLine { to { transform: scaleX(1); } }
@keyframes ptRun { 0% { opacity: 0; left: 0; } 15% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; left: 100%; } }

/* ヒンディー語：文字の上の横線（シローレーカー）がつながるよう、字間を空けない */
html[lang="hi"] .pt-name, html[lang="hi"] .pt-copy, html[lang="hi"] .pt-geo, html[lang="hi"] .pt-nav-en, html[lang="hi"] .pt-nav-t, html[lang="hi"] .en, html[lang="hi"] .imp-en, html[lang="hi"] .lp-bridge .k, html[lang="hi"] .lp-tile .en, html[lang="hi"] .lp-next .en, html[lang="hi"] .pill, html[lang="hi"] .num { letter-spacing: 0; }
html[lang="hi"] .pt-name { font-size: clamp(1.8rem, 3.8vw, 2.6rem); }
