/* 19_amazing — 3DスクロールLP作例(架空ブランド KYOMEI 共鳴)
   白ベース + ディープネイビー + エレクトリックブルー。
   .js が付いた時だけ演出用の初期非表示・ピン用レイアウトを適用し、
   CDN/JS が落ちたら(3秒で .js が外れて)全セクション静的表示に戻る */

:root {
  --navy: #0a1930;
  --navy-deep: #05080f;
  --navy-mid: #0a1428;
  --ink: #10203a;
  --blue: #2563eb;
  --blue-2: #3b82f6;
  --gray: #6b7688;
  --gray-lt: #9aa4b5;
  --pale: #e8edf5;
  --line: #e2e8f1;
  --bg: #ffffff;
  --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.en, .num, .counter-num, .s6-num, .mega, .giant, .brand { font-family: "Inter", "Noto Sans JP", sans-serif; }

img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
.sp { display: none; }

/* ── 共通部品 ── */
.btn-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-pill:hover { transform: translateY(-2px); }
.btn-pill.light { background: #fff; color: var(--navy); box-shadow: 0 8px 28px rgba(0,0,0,.28); }
.btn-pill.navy { background: var(--navy); color: #fff; }
.btn-pill.blue { background: var(--blue); color: #fff; box-shadow: 0 10px 30px rgba(37,99,235,.35); }
.btn-text { font-size: 14px; font-weight: 600; color: #fff; opacity: .85; padding: 13px 6px; }
.btn-text:hover { opacity: 1; }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--blue); }

.mix-head { font-size: clamp(30px, 4.6vw, 56px); font-weight: 900; line-height: 1.34; letter-spacing: -0.02em; }
.mix-head .lt { color: #b9c2d2; font-weight: 500; }
.mix-head .dk, .mix-head strong { color: var(--navy); }
.mix-head strong.bl { color: var(--blue); }
.mix-head.center { text-align: center; }
.tag-pill svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; stroke: var(--blue); }

.tag-pill {
  display: inline-block; padding: 7px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: #f4f7fc;
  font-size: 13px; font-weight: 500; color: var(--gray);
}

/* ── ナビ ── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  color: #fff;
  transition: background .35s ease, color .35s ease, box-shadow .35s ease, padding .35s ease;
}
.nav .brand { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
/* 架空ブランドであることを、どのセクションでも視界に残す */
.nav .brand-note {
  margin-right: auto; padding-left: 12px;
  font-size: 10.5px; letter-spacing: .16em; opacity: .6; white-space: nowrap;
}
@media (max-width: 720px) { .nav .brand-note { display: none; } }
.nav .links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); font-size: 13.5px; font-weight: 500; }
.nav .links a { opacity: .82; transition: opacity .2s ease; }
.nav .links a:hover { opacity: 1; }
.nav .nav-cta {
  padding: 9px 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); opacity: 1;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.nav.scrolled { background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--navy); box-shadow: 0 1px 0 rgba(10,25,48,.08); padding-top: 12px; padding-bottom: 12px; }
.nav.scrolled .nav-cta { border-color: var(--navy); }
.nav.scrolled .nav-cta:hover { background: var(--navy); color: #fff; }
/* ダークセクション上では白帯にせず、暗い半透明で世界観を保つ */
.nav.nav-dark { background: rgba(10,25,48,.38); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; box-shadow: none; padding-top: 12px; padding-bottom: 12px; }
.nav.nav-dark .nav-cta { border-color: rgba(255,255,255,.5); }
.nav.nav-dark .nav-cta:hover { background: #fff; color: var(--navy); }

/* ══ S1 ヒーロー ══ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; overflow: clip;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 70%, #0d1c3a 100%);
}
.hero-media { position: absolute; inset: 0; }
.hero-media .planet {
  position: absolute; left: 50%; bottom: -108vmax; transform: translateX(-50%);
  width: 150vmax; height: 150vmax; border-radius: 50%;
  background: radial-gradient(circle at 50% 4%, #23477e 0%, #122a52 26%, var(--navy-deep) 62%);
  box-shadow: 0 -14px 90px rgba(59,130,246,.5), 0 -3px 24px rgba(147,197,253,.55), inset 0 26px 60px rgba(147,197,253,.28);
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* 連番フレーム: 読めたら粒子プレースホルダと入れ替わる */
#heroSeq {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity .8s ease;
}
.hero-media.seq-on #heroSeq { opacity: 1; }
.hero-media.seq-on .planet, .hero-media.seq-on #heroCanvas { display: none; }
.hero-media.poster-on { background-size: cover; background-position: center; }
.hero-media.poster-on .planet, .hero-media.poster-on #heroCanvas { display: none; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,8,15,.55) 0%, rgba(5,8,15,0) 32%),
    linear-gradient(0deg, rgba(5,8,15,.62) 0%, rgba(5,8,15,0) 42%);
}
.hero-inner {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  padding: calc(64px + 5svh) clamp(20px, 4vw, 48px) clamp(56px, 9svh, 96px);
  width: 100%; min-height: 100svh;
}
/* 原作準拠: 見出しは上 1/4 に上寄せ、右カラムは右下のまま */
.hero-left { align-self: flex-start; }
/* スクラブ結線時はピン中にビューポート丁度で固定する(はみ出すとピンが跳ねる) */
.hero.hero-scrub { height: 100svh; min-height: 100svh; }
.hero.hero-scrub .hero-inner { min-height: 0; height: 100%; }
/* iOS の URL バー開閉でヒーロー下端に白帯が覗くのを防ぐ(ピン用スペーサーを暗く) */
.pin-spacer.hero-spacer { background: var(--navy-deep); }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 68px); font-weight: 900;
  line-height: 1.32; letter-spacing: -0.02em;
  text-shadow: 0 4px 40px rgba(5,8,15,.5);
}
.hero-checks { margin-top: 26px; display: grid; gap: 8px; }
.hero-checks li {
  position: relative; padding-left: 26px;
  font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,.92); letter-spacing: .02em;
  text-shadow: 0 2px 14px rgba(5,8,15,.65);
}
.hero-checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--blue-2); font-weight: 700;
}
.hero-right { max-width: 340px; text-align: left; flex-shrink: 0; }
.hero-desc { font-size: 14px; line-height: 2; color: rgba(255,255,255,.8); }
.hero-cta { margin-top: 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2;
  font-family: "Inter", sans-serif; font-size: 10px; letter-spacing: .34em;
  color: rgba(255,255,255,.5);
}

.js [data-hero] { opacity: 0; transform: translateY(26px); }

/* ══ S2 ステートメント + 巨大ロゴ ══ */
.s2 {
  position: relative; padding: clamp(110px, 16svh, 180px) 24px 0;
  text-align: center; overflow: clip; background: #fff;
}
.s2-copy {
  max-width: 880px; margin: 0 auto;
  font-size: clamp(24px, 3.4vw, 42px); font-weight: 700;
  line-height: 1.7; letter-spacing: -0.01em;
}
.s2-copy .w { color: #c6cdda; transition: color .45s ease; white-space: nowrap; display: inline-block; }
.s2-copy .w.on { color: #97a1b3; }
.s2-copy .w.em { font-weight: 900; }
.s2-copy .w.em.on { color: var(--navy); }
html:not(.js) .s2-copy .w { color: #97a1b3; }
html:not(.js) .s2-copy .w.em { color: var(--navy); }

.demo-pill {
  margin-top: 44px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 9px 22px 9px 10px; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: 13.5px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(10,25,48,.25);
  transition: transform .25s ease;
}
.demo-pill:hover { transform: translateY(-2px); }
.demo-thumb {
  display: grid; place-items: center;
  width: 46px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, #1d3b6e, var(--blue-2));
  font-style: normal; font-size: 10px;
}
.mega {
  margin-top: clamp(30px, 5svh, 60px);
  font-size: clamp(110px, 21vw, 360px); font-weight: 800; line-height: .96;
  letter-spacing: -0.045em; white-space: nowrap;
  background: linear-gradient(180deg, #dfe6f0 12%, #f6f9fd 82%, #ffffff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none; will-change: transform;
}

/* ══ S3 制作システム ══ */
.s3 { padding: clamp(90px, 13svh, 150px) clamp(20px, 4vw, 48px); max-width: 1280px; margin: 0 auto; }
.s3-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.s3-lead { max-width: 420px; display: grid; gap: 22px; justify-items: start; }
.s3-lead p { font-size: 15px; color: var(--gray); }
.s3-cols {
  margin-top: clamp(48px, 7svh, 80px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.s3-col { padding: 38px clamp(18px, 2.6vw, 40px) 10px; border-left: 1px solid var(--line); }
.s3-col:first-child { border-left: 0; padding-left: 0; }
.s3-col .num { font-size: 12px; font-weight: 600; letter-spacing: .18em; color: var(--gray-lt); }
.s3-col .ico {
  display: grid; place-items: center; width: 54px; height: 54px; margin-top: 22px;
  border-radius: 16px; background: linear-gradient(135deg, #eef3fb, #e2ebfa);
  color: var(--blue); font-style: normal;
}
.s3-col h3 { margin-top: 20px; font-size: 19px; font-weight: 700; color: var(--navy); }
.s3-col p:last-child { margin-top: 10px; font-size: 14px; color: var(--gray); }

.js [data-reveal] { opacity: 0; transform: translateY(30px); }
.js [data-reveal-col] { opacity: 0; transform: translateY(44px); }
/* ピン区間の初期状態(ScrollTrigger 初期化前のフラッシュ防止。GSAP がインラインで上書きする) */
.js .s4-counter, .js .s4-note, .js .bento .bcard { opacity: 0; }
.js .hand-phone { transform: translateY(72vh) rotate(5deg); }

/* ══ S4 スマホ + カウンター(pin) ══ */
.s4 { background: #fff; }
.s4-stage {
  position: relative; max-width: 1280px; margin: 0 auto;
  padding: clamp(80px, 10svh, 120px) clamp(20px, 4vw, 48px) 60px;
}
.js .s4-stage { height: 100svh; padding-bottom: 0; overflow: clip; display: flex; flex-direction: column; }
.s4-headwrap { text-align: center; }
.s4-headwrap .tag-pill { margin-bottom: 18px; }
.s4-grid {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: clamp(20px, 4vw, 60px); margin-top: 30px;
}
.s4-counter { justify-self: end; text-align: right; }
.counter-num {
  font-size: clamp(56px, 8.6vw, 128px); font-weight: 800; letter-spacing: -0.04em;
  color: var(--navy); line-height: 1;
  /* 幅は cn-ghost が決め、実際の数字はその右端に重ねる。桁が増えても列幅が動かない。
     等幅数字にしておくと、カウントアップ中の細かなガタつきも出ない */
  position: relative; display: inline-block;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
}
.counter-num .cn-ghost { visibility: hidden; }
.counter-num .cn-live { position: absolute; top: 0; right: 0; }
.counter-num small { font-size: .45em; font-weight: 700; color: var(--blue); }
.counter-label { margin-top: 14px; font-size: 13.5px; color: var(--gray); line-height: 1.7; }
.counter-note { margin-top: 8px; font-size: 11px; color: var(--gray); }

.phone-wrap { display: grid; place-items: center; }
/* 手とスマホの容れ物。動かすのは常にこの要素だけにして、中身は相対位置のまま保つ */
.hand-phone {
  position: relative; display: grid; place-items: center;
  will-change: transform;
}
/* 実画像が来たら中のモックを畳んで、この要素の背景として出す */
.hand-phone.img-on {
  width: min(475px, 94vw); aspect-ratio: 1100 / 1640;   /* 実素材と同じ比。歪ませない */
  background-size: contain; background-repeat: no-repeat; background-position: center bottom;
  filter: drop-shadow(0 30px 44px rgba(10,25,48,.20));
}
.hand-phone.img-on .phone, .hand-phone.img-on .hand-shadow { display: none; }
/* 写真のスマホ画面に DOM を貼り合わせるレイヤー。
   素材を描き出したときと同じ 1176×2460 の座標系で子を置き、
   レイヤー全体を matrix3d で画面の四隅へ写す（JS が実寸から毎回計算する）。 */
.screen-fx {
  position: absolute; left: 0; top: 0; width: 1176px; height: 2460px;
  transform-origin: 0 0; pointer-events: none; display: none;
}
.hand-phone.img-on .screen-fx { display: block; }
/* 飛び出す5枚。S5 のベントと同じ題材・同じ画像にしてあるので、
   スマホの中にある時点で「そのアプリ」に見える。素材の焼き込み版と
   同じ寸法・同じ書体設定なので、静止時は写真の続きに溶ける。 */
.fx-card {
  position: absolute; border-radius: 48px; overflow: hidden;
  background: #fff; box-shadow: 0 4px 12px rgba(10,25,48,.10);
  display: flex; flex-direction: column; font-style: normal;
  will-change: transform, opacity;
}
.fx-card.fx-dark { background: var(--navy); }
.fx-thumb { display: block; flex: 1; background-size: cover; background-position: center; }
.fx-cap { display: block; padding: 20px 28px 24px; }
.fx-cap em { display: block; font-style: normal; font-size: 34px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.fx-cap span { display: block; font-size: 26px; color: var(--gray); margin-top: 4px; }
.fx-card.fx-dark .fx-cap em { color: #fff; }
.fx-card.fx-dark .fx-cap span { color: rgba(255,255,255,.62); }
.fx-rows { display: grid; gap: 16px; padding: 28px 28px 16px; }
.fx-rows s {
  display: flex; align-items: center; gap: 16px; text-decoration: none;
  background: #eef3fb; border-radius: 20px; padding: 12px 20px;
  font-size: 27px; font-weight: 600; color: var(--ink);
}
.fx-rows s::before { content: "✓"; color: var(--blue); }
/* 端末が浮いている感じを支える接地影（塊と一緒に動く） */
.hand-shadow {
  position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%);
  width: 62%; height: 26px; border-radius: 50%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(10,25,48,.30), transparent 72%);
  filter: blur(6px);
}
.phone {
  position: relative;
  width: min(280px, 66vw); aspect-ratio: 9 / 19;
  border-radius: 46px; border: 9px solid #0b1220;
  background: #0b1220;
  box-shadow: 0 40px 90px rgba(10,25,48,.35), 0 8px 24px rgba(10,25,48,.22);
}
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 38%; height: 20px; border-radius: 999px; background: #0b1220;
}
.phone-screen {
  position: absolute; inset: 0; border-radius: 37px; overflow: hidden;
  background: #f6f8fc; display: flex; flex-direction: column; gap: 10px; padding: 40px 12px 14px;
}
.phone-screen.img-on { background-size: cover; background-position: top center; }
.phone-screen.img-on > * { display: none; }
.ps-nav { display: flex; align-items: center; gap: 6px; }
.ps-logo { width: 34px; height: 8px; border-radius: 4px; background: var(--navy); }
.ps-line { width: 16px; height: 5px; border-radius: 3px; background: #cdd6e4; margin-left: auto; }
.ps-line + .ps-line { margin-left: 0; }
.ps-hero {
  border-radius: 16px; padding: 18px 14px;
  background: linear-gradient(150deg, var(--navy) 20%, #17346b 70%, var(--blue));
  color: #fff;
}
.ps-brand { font-family: "Inter", sans-serif; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.ps-tag { font-size: 9px; opacity: .75; margin-top: 2px; letter-spacing: .06em; }
.ps-btn { display: block; width: 74px; height: 18px; border-radius: 999px; background: #fff; margin-top: 12px; }
.ps-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ps-cards i { height: 52px; border-radius: 12px; background: linear-gradient(145deg, #e6edf8, #d8e3f4); }
.ps-wide { height: 42px; border-radius: 12px; background: linear-gradient(120deg, #dbeafe, #eff6ff); }
.ps-rows { display: grid; gap: 6px; }
.ps-rows i { height: 8px; border-radius: 4px; background: #dfe6f0; }
.ps-rows i:last-child { width: 62%; }

.s4-note { justify-self: start; max-width: 260px; }
.s4-note p {
  padding: 22px 24px; border-radius: var(--radius);
  background: #f4f7fc; border: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink); line-height: 1.9;
}

/* ══ S5 ベントグリッド(pin) ══ */
.s5 { background: #fff; }
.s5-stage {
  position: relative; max-width: 1280px; margin: 0 auto;
  padding: clamp(70px, 9svh, 110px) clamp(20px, 4vw, 48px) 70px;
}
.js .s5-stage { height: 100svh; padding-bottom: 24px; overflow: clip; display: flex; flex-direction: column; }
.s5-head { text-align: center; margin-bottom: clamp(26px, 4svh, 44px); }
.bento {
  flex: 1; min-height: 0; perspective: 1300px;
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr 1fr;
}
.js .bento .bcard { will-change: transform, opacity; transform-style: preserve-3d; }
.bcard {
  border-radius: var(--radius); padding: 22px 24px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(10,25,48,.08);
  display: flex; flex-direction: column; overflow: clip;
}
.bcard h3 { font-size: 16.5px; font-weight: 700; color: var(--navy); }
.bcard p { font-size: 12.5px; color: var(--gray); margin-top: 4px; }
.b-media { flex: 1; min-height: 60px; border-radius: 14px; margin-bottom: 14px; position: relative; overflow: clip; }
.b-media.img-on { background-size: cover; background-position: center; }
.b-media.img-on > i { display: none; }

.b-map { grid-column: span 2; background: linear-gradient(160deg, var(--navy) 30%, #123059); border-color: #1c3560; }
.b-map h3 { color: #fff; }
.b-map p { color: rgba(255,255,255,.6); }
.map-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(147,197,253,.55) 1.2px, transparent 1.3px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 90% at 50% 40%, #000 30%, transparent 75%);
}
.b-house .mock-house {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-style: normal; font-size: 54px; color: #b9c9e2;
  background: linear-gradient(150deg, #eef3fb, #dde8f7);
}
.b-list { justify-content: center; gap: 4px; background: #fbfdff; border-color: #d7e2f2; box-shadow: 0 18px 44px rgba(10,25,48,.12); }
.b-list ul { margin-top: 10px; display: grid; gap: 9px; }
.b-list li {
  position: relative; padding: 9px 12px 9px 34px;
  border-radius: 10px; background: #f4f7fc;
  font-size: 13px; font-weight: 500; color: var(--ink);
}
.b-list li::before { content: "✓"; position: absolute; left: 12px; color: var(--blue); font-weight: 700; }
.b-shapes .mock-shapes {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 26% 34%, rgba(59,130,246,.85) 0 17%, transparent 18%),
    radial-gradient(circle at 68% 26%, rgba(244,114,182,.8) 0 12%, transparent 13%),
    radial-gradient(circle at 62% 70%, rgba(250,204,21,.85) 0 15%, transparent 16%),
    radial-gradient(circle at 24% 76%, rgba(45,212,191,.8) 0 10%, transparent 11%),
    linear-gradient(150deg, #f4f0ff, #e6ecfb);
}
.b-factory { grid-column: span 2; flex-direction: row; align-items: flex-end; gap: 18px; background: linear-gradient(150deg, #0d1e3c, #133262); border-color: #1c3560; }
.b-factory h3 { color: #fff; }
.b-factory p { color: rgba(255,255,255,.6); }
.b-factory .b-media { flex: 1; align-self: stretch; margin-bottom: 0; }
.b-factory .b-text { flex: 1.1; padding-bottom: 4px; }
.b-factory .mock-gear {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-style: normal; font-size: 48px; color: rgba(147,197,253,.7);
  background: linear-gradient(160deg, rgba(37,99,235,.25), rgba(10,25,48,.1));
}

/* ══ S6 ズームスルー → +88% ダークカード(pin) ══ */
.s6 { background: #fff; }
.s6-stage { position: relative; }
.js .s6-stage { height: 100svh; overflow: clip; }
.s6-zoom { display: grid; place-items: center; padding: clamp(90px, 14svh, 150px) 24px; }
.js .s6-zoom { position: absolute; inset: 0; padding: 0; z-index: 1; }
.s6-title {
  font-size: clamp(34px, 5.8vw, 76px); font-weight: 900; letter-spacing: -0.02em;
  color: #c6cdda; text-align: center; line-height: 1.4;
  will-change: transform, opacity;
}
.s6-title strong { color: var(--navy); }
.s6-dark { position: absolute; inset: 0; background: var(--navy-deep); opacity: 0; z-index: 2; display: none; }
.js .s6-dark { display: block; }
.s6-cardwrap { display: grid; place-items: center; padding: 0 16px 70px; }
.js .s6-cardwrap { position: absolute; inset: 0; padding: 0; z-index: 3; opacity: 0; will-change: transform, opacity; }
.s6-card {
  position: relative; overflow: clip;
  width: min(1100px, 94vw); height: min(640px, 80svh);
  border-radius: 30px; padding: clamp(24px, 4vw, 56px);
  background: linear-gradient(160deg, var(--navy-deep) 10%, #0c2148 55%, #123061);
  color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
}
.js .s6-card { width: 100vw; height: 100svh; border-radius: 34px; }
.s6-media { position: absolute; inset: 0; }
.s6-media .beam {
  position: absolute; width: 130%; height: 22%;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,.32), transparent);
  transform: rotate(-16deg);
}
.s6-media .beam.a { top: 16%; left: -20%; }
.s6-media .beam.b { top: 46%; left: -6%; opacity: .6; }
.s6-media .beam.c { top: 72%; left: -14%; opacity: .4; }
#stageVideo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .8s ease;
}
.s6-media.video-on #stageVideo { opacity: 1; }
.s6-media.video-on .beam { display: none; }
.s6-media.poster-on { background-size: cover; background-position: center; }
.s6-media.poster-on .beam { display: none; }
.s6-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(5,8,15,.1) 30%, rgba(5,8,15,.68) 85%);
}
.s6-brand, .s6-stat, .s6-body { position: relative; z-index: 2; }
.s6-brand { font-size: 15px; font-weight: 600; line-height: 1.55; letter-spacing: .04em; opacity: .85; }
.s6-stat { position: absolute; top: clamp(24px, 4vw, 56px); right: clamp(24px, 4vw, 56px); text-align: right; z-index: 2; }
.s6-num { font-size: clamp(64px, 10vw, 150px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: #fff; }
.s6-statlabel { margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.92); text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.s6-statnote { margin-top: 4px; font-size: 10.5px; color: rgba(255,255,255,.72); text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.s6-body { max-width: 620px; font-size: clamp(17px, 2.2vw, 25px); font-weight: 700; line-height: 1.85; }
.orb {
  display: none;
  position: absolute; left: 50%; top: 50%; z-index: 4;
  width: 68vmin; height: 68vmin; margin: -34vmin 0 0 -34vmin;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.9) 0 6%, transparent 32%),
    conic-gradient(from 20deg, rgba(59,130,246,.85), rgba(167,139,250,.75), rgba(45,212,191,.7), rgba(59,130,246,.85));
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 68%);
  mask-image: radial-gradient(circle, #000 30%, transparent 68%);
  opacity: 0; will-change: transform, opacity;
  pointer-events: none;
}
.js .orb { display: block; }

/* ══ S7 地球 + 実績フロート + 顧客の声 ══ */
.s7 { background: #fff; }
.s7-sky {
  position: relative; min-height: 112svh; overflow: clip;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding: 120px 24px 40px;
  /* 原作準拠: 惑星ドームが上・下は発光が白へ溶ける。
     グラデはビューポート比で崩れないよう sky 自体に固定する */
  background: linear-gradient(180deg, #05080f 0%, var(--navy-deep) 14%, #23477e 34%, #9fbde4 56%, #e9f1fb 74%, #ffffff 90%);
}
#earthCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.s7-sky::before {
  /* canvas が描けない環境向けの保険の地平線グロー */
  content: ""; position: absolute; left: 50%; top: 12%; transform: translateX(-50%);
  width: 160vw; height: 60vh;
  background: radial-gradient(ellipse 50% 42% at 50% 42%, rgba(96,165,250,.55), rgba(59,130,246,.14) 55%, transparent 75%);
}
.chips { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(147,197,253,.35);
  background: rgba(10,25,48,.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #cfe0f7; font-size: 12px; font-weight: 500; white-space: nowrap;
  animation: chip-float 7s ease-in-out infinite alternate;
  will-change: transform;
}
.chip em { font-style: normal; color: rgba(207,224,247,.6); font-size: 11px; }
.c1 { left: 6%; top: 15%; animation-delay: 0s; }
.c2 { right: 8%; top: 11%; animation-delay: -1.6s; }
.c3 { left: 13%; top: 36%; animation-delay: -3.1s; }
.c4 { right: 11%; top: 33%; animation-delay: -2.2s; }
.c5 { left: 30%; top: 7%; animation-delay: -4.4s; }
.c6 { right: 27%; top: 45%; animation-delay: -5.2s; }
@keyframes chip-float {
  from { transform: translateY(-9px); }
  to { transform: translateY(11px); }
}
@media (prefers-reduced-motion: reduce) { .chip { animation: none; } }
.s7-head { position: relative; z-index: 2; text-align: center; }
.s7-head h2 { font-size: clamp(24px, 3.6vw, 44px); font-weight: 500; line-height: 1.65; letter-spacing: -0.01em; color: #41536e; text-shadow: 0 2px 18px rgba(255,255,255,.55); word-break: keep-all; }
.s7-head h2 strong { font-weight: 900; color: var(--navy); }
.s7-head .btn-pill { margin-top: 34px; }

.s7-voices { max-width: 1280px; margin: 0 auto; padding: 30px clamp(20px, 4vw, 48px) clamp(90px, 12svh, 140px); }
.s7-voices .eyebrow { margin-bottom: 26px; }
.voice-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.voice {
  position: relative; padding: 30px 24px 24px;
  border-radius: var(--radius); background: #f7f9fd; border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.q-mark { font-family: Georgia, serif; font-size: 44px; line-height: .6; color: var(--blue-2); }
.v-body { margin-top: 16px; font-size: 13.5px; line-height: 1.9; color: var(--ink); flex: 1; }
.v-who { margin-top: 18px; font-size: 12.5px; font-weight: 700; color: var(--navy); display: grid; gap: 2px; }
.v-who em { font-style: normal; font-weight: 500; font-size: 11.5px; color: var(--gray); }

/* ══ S8 FAQ ══ */
.s8 { padding: clamp(90px, 13svh, 150px) clamp(20px, 4vw, 48px); background: #fff; }
.s8-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; text-align: left;
  font-size: 16px; font-weight: 700; color: var(--navy);
}
.faq-ico { position: relative; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: #eef3fb; transition: background .3s ease, transform .35s ease; }
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--blue); border-radius: 2px;
  transform: translate(-50%, -50%);
}
.faq-ico::before { width: 12px; height: 2px; }
.faq-ico::after { width: 2px; height: 12px; transition: opacity .3s ease; }
.faq-item.open .faq-ico { transform: rotate(180deg); }
.faq-item.open .faq-ico::after { opacity: 0; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.3,.9,.3,1); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-in { overflow: hidden; }
.faq-a-in p { padding: 0 44px 26px 4px; font-size: 14px; color: var(--gray); }
html:not(.js) .faq-a { grid-template-rows: 1fr; }

/* ══ S9 フッター ══ */
.foot { position: relative; overflow: clip; background: #fff; }
.foot-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 40px;
  padding: clamp(70px, 9svh, 110px) clamp(20px, 4vw, 48px) 60px;
}
.foot-nav { display: grid; gap: 10px; align-content: start; font-size: 14px; font-weight: 500; color: var(--ink); }
.foot-nav a:hover { color: var(--blue); }
.foot-addr { font-size: 14px; color: var(--gray); display: grid; gap: 6px; align-content: start; }
.foot-co { font-weight: 700; color: var(--navy); font-size: 15px; }
.foot-addr a { color: var(--blue); }
.foot-top { align-self: start; }
.foot-top a {
  display: inline-block; padding: 11px 22px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--navy);
  transition: background .25s ease, color .25s ease;
}
.foot-top a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.foot-horizon {
  position: relative; text-align: center; overflow: clip;
  padding-top: clamp(30px, 6svh, 70px);
  background: linear-gradient(180deg, #ffffff 0%, #dfe9f7 34%, #4b6da6 72%, var(--navy) 100%);
}
.giant {
  position: relative; z-index: 2;
  font-size: clamp(40px, 8.6vw, 128px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04;
  white-space: nowrap;
  background: linear-gradient(180deg, #23477e, #0a1930);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.giant.ref {
  /* line-height 1.04 だと行ボックスが g の下がり分（約0.08em）を含まない。
     反射をそのまま接して置くと descender にかぶさり「g が切れている」ように見える。
     文字の実下端より下から始める。em 指定なので字の大きさが変わっても崩れない。 */
  transform: scaleY(-1); margin-top: 0.11em;
  background: linear-gradient(180deg, rgba(147,197,253,.4), transparent 72%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-mask-image: linear-gradient(180deg, transparent 10%, #000 90%);
  mask-image: linear-gradient(180deg, transparent 10%, #000 90%);
  filter: blur(3px);
}
.foot-horizon .glow {
  position: absolute; left: 50%; bottom: -34vh; transform: translateX(-50%); z-index: 1;
  width: 170vw; height: 60vh; border-radius: 50%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(96,165,250,.85) 0%, rgba(59,130,246,.35) 45%, transparent 72%);
}
.foot-small {
  position: relative; z-index: 2;
  background: var(--navy); color: rgba(255,255,255,.55);
  text-align: center; font-size: 11.5px; padding: 20px 24px 26px;
}

/* ══ レスポンシブ ══ */
@media (max-width: 960px) {
  .voice-row { grid-template-columns: 1fr 1fr; }
  .s4-grid { grid-template-columns: auto 1fr; grid-template-areas: "counter phone" "note phone"; }
  .s4-counter { grid-area: counter; justify-self: start; text-align: left; }
  .phone-wrap { grid-area: phone; }
  .s4-note { grid-area: note; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: minmax(120px, auto); }
  .b-map, .b-factory { grid-column: span 2; }
}

@media (max-width: 700px) {
  .sp { display: inline; }
  .nav .links a { display: none; }
  .nav .links .nav-cta { display: inline-block; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 30px; }
  .hero-right { max-width: none; }
  .s3-cols { grid-template-columns: 1fr; }
  .s3-col { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .s3-col:first-child { border-top: 0; }
  .s3-col:first-child { padding-top: 30px; }
  .js .s4-stage { height: auto; min-height: 100svh; }
  .s4-grid { grid-template-columns: 1fr; grid-template-areas: "counter" "phone" "note"; gap: 26px; justify-items: center; }
  .s4-counter { text-align: center; justify-self: center; }
  .phone { width: min(230px, 62vw); }
  .hand-phone.img-on { width: min(320px, 82vw); }
  .s8-grid { grid-template-columns: 1fr; }
  .voice-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .b-factory { flex-direction: column; align-items: stretch; }
  .b-factory .b-media { min-height: 64px; }
  .s6-stat { position: static; text-align: left; margin-top: 14px; }
  .js .s5-stage { height: auto; min-height: 100svh; }
  /* S7: 浮遊チップは見出しに重ならないよう上部帯へ寄せ、数も絞る */
  .chip { font-size: 11px; padding: 7px 12px; }
  .c1 { left: 4%; top: 9%; }
  .c2 { right: 5%; top: 14%; }
  .c3 { left: 10%; top: 22%; }
  .c4 { right: 8%; top: 27%; }
  .c5, .c6 { display: none; }
  /* 展開チャネルカード内の項目名を途中改行させない */
  .b-list li { white-space: nowrap; }
  /* フッター巨大文字を端に接触させない */
  .giant { font-size: clamp(28px, 8.2vw, 128px); padding: 0 16px; }
  /* S7見出し: モバイルはグロー帯に重なるため濃色化して可読を確保 */
  .s7-head h2 { color: #2e405e; font-size: 20px; text-shadow: 0 2px 22px rgba(255,255,255,.75); }
}

/* ──────────────────────────────────────────────────────────────
   和文タイポグラフィ調整（2026-09-02 追加）
   他 17 サイトに入っている共通ブロックが本サイトだけ未適用だったため補う。
   1. palt        … 句読点・括弧まわりの余分なアキを詰める
   2. auto-phrase … 文節単位で折り返す（「サ」「ービス」のような分断を防ぐ）
   3. balance     … 見出しの行長を揃え、末尾に1〜2文字だけ落とさない
   4. strict      … 禁則を厳密にし、行頭に 。 、 ー ・ が来ないようにする
   auto-phrase / balance / pretty は非対応ブラウザでは無視されるだけで崩れない。
   ────────────────────────────────────────────────────────────── */
body {
  font-feature-settings: "palt" 1;
  font-kerning: normal;
  line-break: strict;
  word-break: normal;
}
h1, h2, h3, h4, h5, .kicker, .tag, dt {
  word-break: auto-phrase;
  text-wrap: balance;
}
p, li, dd, td, .note, .desc, .caption,
.lede, .lead, .statement, blockquote, figcaption {
  word-break: auto-phrase;
  text-wrap: pretty;
}
/* 手動改行は広い画面でのみ効かせ、狭い画面では自動折り返しに任せる */
@media (max-width: 640px) {
  h1 br, h2 br, h3 br,
  .lede br, .lead br, .statement br { display: none; }
}
