:root {
  --ink: #1F1B2E;
  --night: #0F0C1D;
  --night-2: #171330;
  --night-3: #221C42;
  --sky: #4CC3FF;
  --sun: #FFD23F;
  --sun-soft: #FFE58A;
  --paper: #FFFBF0;
  --coral: #F0565B;
  --green: #3DD68C;
  --text: #F4F1FF;
  --text-2: rgba(244, 241, 255, .74);
  --text-3: rgba(244, 241, 255, .52);
  --line: rgba(255, 255, 255, .1);
  --win-off: #2B2548;
  --win-on: #FFD23F;
  --win-glow: rgba(255, 210, 63, .55);
  --font-body: "IBM Plex Sans JP", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Segoe UI", "Yu Gothic UI", Meiryo, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  --ease-pop: cubic-bezier(.2, .9, .3, 1.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.8;
  line-break: strict;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
p, li, dd { text-wrap: pretty; word-break: auto-phrase; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.3; font-feature-settings: "palt" 1; word-break: auto-phrase; }
kbd {
  display: inline-grid; place-items: center; min-width: 1.7em; height: 1.7em; padding: 0 .35em;
  border-radius: 6px; background: #fff; color: var(--ink); font: 700 12px/1 var(--font-body);
  box-shadow: 0 2px 0 rgba(31, 27, 46, .35), inset 0 0 0 1px rgba(31, 27, 46, .15);
}
.pc { display: inline; }
@media (max-width: 640px) { .pc { display: none; } }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: 0; border-radius: 999px; cursor: pointer; font-weight: 700; white-space: nowrap;
  transition: box-shadow .25s, background-color .2s, color .2s;
  will-change: transform;
}
.btn-lg { font-size: 17px; padding: 1em 1.8em; }
.btn-sm { font-size: 14px; padding: .6em 1.15em; }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 10px 30px -8px rgba(255, 210, 63, .6); }
.btn-sun:hover { box-shadow: 0 0 0 6px rgba(255, 210, 63, .2), 0 14px 40px -6px rgba(255, 210, 63, .85); }
.btn-ghost { color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .26); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

/* ---------- ナビ ---------- */
.progress {
  position: fixed; top: 0; left: 0; z-index: 60; width: 100%; height: 3px;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--sky), var(--sun));
}
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 14px;
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.scrolled { background: rgba(15, 12, 29, .74); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; white-space: nowrap; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { padding: 6px 12px; border-radius: 999px; font-size: 14px; color: var(--text-2); transition: background-color .15s, color .15s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
.sound-toggle {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .08); color: var(--text-2); font-size: 13px; font-weight: 700; cursor: pointer;
}
.sound-toggle .wave { display: none; }
.sound-toggle[aria-pressed="true"] { color: var(--ink); background: var(--sun); }
.sound-toggle[aria-pressed="true"] .wave { display: inline; }
.sound-toggle[aria-pressed="true"] .mute { display: none; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .sound-toggle { margin-left: auto; }
}
@media (max-width: 420px) {
  .brand span { display: none; }
  .sound-toggle span { display: none; }
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(100vh, 700px); min-height: max(100svh, 700px);
  display: flex; align-items: center;
  background: radial-gradient(130% 80% at 50% 115%, #3A2A6A 0%, #1D1740 42%, var(--night) 78%);
}
.stars { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.moon {
  position: absolute; top: 10%; right: 4%; z-index: -1;
  width: clamp(54px, 7vw, 96px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #FFF7D1, #FFE27A 55%, #F2C23A);
  box-shadow: 0 0 60px 10px rgba(255, 226, 122, .32), 0 0 180px 50px rgba(255, 210, 63, .1);
}
.moon::before, .moon::after { content: ""; position: absolute; border-radius: 50%; background: rgba(160, 110, 0, .12); }
.moon::before { width: 22%; height: 22%; left: 56%; top: 26%; }
.moon::after { width: 14%; height: 14%; left: 34%; top: 60%; }
.hero-copy {
  position: relative; z-index: 3; width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 110px var(--gutter) 90px;
  pointer-events: none;
}
.hero-copy > * { max-width: 600px; }
.hero-copy a, .hero-copy button { pointer-events: auto; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  font-size: 14px; color: var(--text-2); transition: background-color .2s;
  animation: fadeDown .8s .1s both;
}
.pill:hover { background: rgba(255, 255, 255, .14); }
.pill-tag { background: var(--sky); color: var(--ink); font-weight: 700; font-size: 11px; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; }
.hero-title {
  margin: 22px 0 18px;
  font-weight: 700; letter-spacing: -.01em;
  font-size: clamp(38px, 5.4vw, 76px); line-height: 1.18;
}
.hero-copy > .hero-title { max-width: 760px; }
.hero-title .line { display: block; }
.hero-title .ch { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(10deg); animation: rise .75s var(--ease-pop) forwards; animation-delay: calc(var(--i) * 38ms + 220ms); }
.hero-title .hl .ch { color: var(--sun); text-shadow: 0 0 28px rgba(255, 210, 63, .5); }
.hero-lead { margin: 0; text-shadow: 0 2px 18px rgba(15, 12, 29, .9); font-size: clamp(15px, 1.6vw, 18px); color: var(--text-2); animation: fadeUp .9s .9s both; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 12px; margin-top: 30px; animation: fadeUp .9s 1.05s both; }
.hero-note { margin: 14px 0 0; font-size: 13px; color: var(--text-3); animation: fadeUp .9s 1.15s both; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-12px); } }

.city { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: min(80vh, 700px); }
.city-layer { position: absolute; inset: 0; will-change: transform; }
.city::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 90px; z-index: 5; pointer-events: none;
  background: linear-gradient(transparent, var(--night));
}
.bld {
  position: absolute; bottom: 0; display: grid; align-content: start;
  grid-template-columns: repeat(var(--cols, 4), var(--ww, 8px));
  grid-auto-rows: var(--wh, 10px);
  gap: var(--gap, 6px); justify-content: center;
  padding: var(--pad, 10px) var(--pad, 10px) 0;
  border-radius: 6px 6px 0 0;
  background: var(--c, #1B1636);
}
.bld .w { border-radius: 2px; background: var(--wo, #26204A); transition: background-color .3s, box-shadow .3s; }
.back .bld .w.on { background: rgba(255, 210, 63, .55); }
.mid .bld .w.on { background: rgba(255, 210, 63, .8); box-shadow: 0 0 6px rgba(255, 210, 63, .35); }
.bld::before { content: ""; position: absolute; left: 12%; right: 12%; top: -8px; height: 8px; background: inherit; border-radius: 3px 3px 0 0; opacity: var(--roof, 0); }
.front { pointer-events: none; }
.mansion-wrap {
  position: absolute; bottom: 0; left: 76%; transform: translateX(-50%);
  height: 96%; width: clamp(230px, 24vw, 300px);
  display: flex; flex-direction: column; align-items: center;
  pointer-events: auto;
}
.mansion {
  position: relative; flex: 1; width: 100%;
  --c: linear-gradient(180deg, #342B62, #2A2350);
  --cols: 5; --ww: 1fr; --wh: 26px; --gap: 11px; --pad: 18px;
  grid-template-columns: repeat(5, 1fr);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .05), 0 -20px 80px rgba(76, 195, 255, .08);
}
.mansion .w { position: relative; border-radius: 4px; background: #3A3268; cursor: pointer; }
.mansion .w:hover { box-shadow: inset 0 0 0 2px rgba(255, 210, 63, .6); }
.mansion .w.on { background: var(--win-on); box-shadow: 0 0 14px 2px var(--win-glow); }
.antenna { width: 3px; height: 28px; background: #3A3268; position: relative; }
.antenna i { position: absolute; top: -6px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 10px 2px rgba(240, 86, 91, .7); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .15; box-shadow: none; } }
.neon {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 7px 14px;
  border: 2px solid var(--sun); border-radius: 12px; background: rgba(31, 27, 46, .72);
  font-weight: 700; font-size: clamp(12px, 1.3vw, 15px); letter-spacing: .08em; color: var(--sun-soft);
  text-shadow: 0 0 6px var(--sun), 0 0 18px rgba(255, 210, 63, .75);
  box-shadow: 0 0 14px rgba(255, 210, 63, .5), inset 0 0 12px rgba(255, 210, 63, .3);
  animation: neon 7s infinite;
}
.neon img { width: 22px; height: 22px; }
@keyframes neon { 0%, 17%, 21%, 24%, 60%, 64%, 100% { opacity: 1; } 19%, 23%, 62% { opacity: .35; } }
.pop-logo {
  position: absolute; left: 50%; top: 50%; z-index: 6; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 12px; background: #fff; padding: 5px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .4), 0 0 0 3px var(--sun);
  animation: popLogo 2.6s var(--ease-pop) forwards; pointer-events: none;
}
.pop-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.pop-logo b { position: absolute; top: -9px; right: -11px; padding: 1px 7px; border-radius: 999px; background: var(--coral); color: #fff; font-size: 11px; line-height: 1.6; }
@keyframes popLogo {
  0% { transform: scale(0) translateY(10px); opacity: 0; }
  14% { transform: scale(1.18) translateY(-8px); opacity: 1; }
  24% { transform: scale(1) translateY(-6px); }
  78% { transform: scale(1) translateY(-10px); opacity: 1; }
  100% { transform: scale(.5) translateY(-40px); opacity: 0; }
}
.hero-hint {
  position: absolute; right: var(--gutter); bottom: 22px; z-index: 6; margin: 0;
  display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3);
}
.hero-hint i { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 10px var(--sun); animation: blink 1.4s infinite; }
@media (max-width: 999px) {
  .hero { display: block; min-height: 0; }
  .hero-copy { padding: 116px var(--gutter) 0; text-align: center; }
  .hero-copy > * { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .city { position: relative; height: 460px; margin-top: 28px; }
  .mansion-wrap { left: 50%; }
  .moon { top: 84px; right: 6%; }
}
@media (max-width: 640px) { .hero-hint { left: var(--gutter); right: auto; } }

/* ---------- 対応サービスの帯 ---------- */
.marquee { position: relative; padding: 34px 0 44px; overflow: hidden; border-bottom: 1px solid var(--line); }
.marquee-label { margin: 0 0 18px; text-align: center; font-size: 13px; letter-spacing: .12em; color: var(--text-3); }
.marquee-track {
  display: flex; gap: 44px; width: max-content; animation: marquee 42s linear infinite;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq-item { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text-2); white-space: nowrap; transition: color .2s, transform .2s; }
.mq-item:hover { color: var(--text); transform: translateY(-3px); }
.mq-item img { width: 34px; height: 34px; padding: 3px; border-radius: 10px; background: #fff; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 01 スクロールの演出 ---------- */
.story { position: relative; height: 260vh; }
.story-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--sky-top, #3A2560), var(--sky-bot, #F08A5D));
}
.story-stars { position: absolute; top: 0; left: 0; width: 2px; height: 2px; border-radius: 50%; opacity: var(--star-o, 0); z-index: -1; }
.story-sun {
  position: absolute; left: 14%; bottom: 20%; z-index: -1; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, #FFD9A0, #FF9A5B 70%);
  box-shadow: 0 0 120px 40px rgba(255, 150, 90, .35);
  transform: translateY(var(--sun-y, 0)); opacity: var(--sun-o, 1);
}
.story-moon {
  position: absolute; right: 9%; top: 12%; z-index: -1; width: 70px; height: 70px; border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #FFF7D1, #FFE27A 55%, #F2C23A);
  box-shadow: 0 0 60px 12px rgba(255, 226, 122, .3);
  transform: translateY(var(--moon-y, 40vh)); opacity: var(--moon-o, 0);
}
.story-skyline { position: absolute; inset: auto 0 0 0; height: 46%; z-index: 0; }
.story-skyline span { position: absolute; bottom: 0; background: rgba(12, 9, 26, .78); border-radius: 4px 4px 0 0; }
.story-inner {
  position: relative; z-index: 2; height: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 76px var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 32px; align-items: center;
}
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--sky); }
.story-panel { padding-bottom: 6vh; }
.story-text.swap { animation: swapIn .5s var(--ease-pop); }
@keyframes swapIn { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
.story-title { font-size: clamp(28px, 3.6vw, 46px); font-weight: 700; }
.story-desc { margin: 14px 0 0; font-size: clamp(15px, 1.4vw, 17px); color: var(--text-2); }
.story-svcs { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 12px 28px; }
.story-svcs li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--text-3); transition: color .3s; }
.story-svcs img { width: 32px; height: 32px; padding: 3px; border-radius: 9px; background: #fff; object-fit: contain; opacity: .35; filter: grayscale(1); transition: opacity .3s, filter .3s, transform .4s var(--ease-pop), box-shadow .3s; }
.story-svcs li.on { color: var(--text); }
.story-svcs li.on img { opacity: 1; filter: none; }
.story-svcs li.now img { transform: scale(1.18); box-shadow: 0 0 0 3px var(--sun); }

.story-building-wrap { height: 100%; display: flex; align-items: flex-end; padding-left: 24px; }
.tower { position: relative; display: flex; flex-direction: column; width: clamp(240px, 26vw, 350px); height: 100%; }
.tower-roof { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 8px; }
.tower-sign {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 6px 14px;
  border: 2px solid #5A5080; border-radius: 12px; background: rgba(31, 27, 46, .8);
  font-weight: 700; font-size: 14px; letter-spacing: .08em; color: #7D72A8;
  transition: color .4s, border-color .4s, text-shadow .4s, box-shadow .4s;
}
.tower-sign img { width: 20px; height: 20px; filter: grayscale(1) brightness(.6); transition: filter .4s; }
.tower.lit .tower-sign {
  color: var(--sun-soft); border-color: var(--sun);
  text-shadow: 0 0 6px var(--sun), 0 0 18px rgba(255, 210, 63, .75);
  box-shadow: 0 0 16px rgba(255, 210, 63, .55), inset 0 0 12px rgba(255, 210, 63, .3);
  animation: neon 5s infinite;
}
.tower.lit .tower-sign img { filter: none; }
.tower-body {
  flex: 1; display: flex; flex-direction: column; min-height: 0;
  padding: 14px 16px 0; border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, #342B62, #262048);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .05), 0 30px 90px rgba(0, 0, 0, .5);
}
.tower-floors { flex: 1; min-height: 0; display: flex; flex-direction: column-reverse; gap: 4px; }
.tfloor {
  --k: 0; position: relative; flex: 1; min-height: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: center;
  border-bottom: 3px solid rgba(0, 0, 0, .2);
}
.twin { position: relative; height: 68%; min-height: 14px; border-radius: 5px; background: var(--win-off); transition: background-color .35s, box-shadow .35s; }
.tfloor.lit .twin, .tower.all .twin { background: var(--win-on); box-shadow: 0 0 16px 2px var(--win-glow); }
.tfloor.on .twin { animation: flickOn .55s both; animation-delay: calc(var(--k) * 70ms); }
.tower.all .twin { animation: none; transition-delay: calc(var(--f) * 60ms); }
@keyframes flickOn {
  0% { background: var(--win-off); box-shadow: none; }
  18% { background: var(--win-on); }
  30% { background: var(--win-off); box-shadow: none; }
  48%, 100% { background: var(--win-on); box-shadow: 0 0 16px 2px var(--win-glow); }
}
.tlogo {
  --s: 0; position: absolute; left: 50%; top: 50%; z-index: 4;
  width: clamp(32px, 3.2vw, 44px); height: clamp(32px, 3.2vw, 44px);
  padding: 4px; border-radius: 11px; background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .4), 0 0 0 3px var(--sun);
  transform: translate(-50%, -50%) scale(var(--s));
  transition: transform .5s var(--ease-pop), opacity .3s;
}
.tlogo img { width: 100%; height: 100%; object-fit: contain; border-radius: 7px; }
.tlogo b { position: absolute; top: -8px; right: -10px; padding: 0 6px; border-radius: 999px; background: var(--coral); color: #fff; font-size: 11px; line-height: 1.6; opacity: 0; transition: opacity .2s; }
.tfloor.lit .tlogo { --s: 1; }
.tfloor.on .tlogo { --s: 1.3; }
.tfloor.on .tlogo b { opacity: 1; }
.tower.all .tlogo { --s: 1; transition-delay: calc(var(--f) * 60ms + 150ms); }
.tower.collect .tlogo { transition: none; }
.tbubble {
  position: absolute; left: calc(100% + 30px); top: 50%; z-index: 5;
  display: flex; gap: 10px; align-items: flex-start;
  width: max-content; max-width: 230px; padding: 10px 14px;
  border-radius: 16px; background: #fff; color: var(--ink);
  font-size: 13px; line-height: 1.5; box-shadow: 0 14px 40px rgba(0, 0, 0, .38);
  opacity: 0; transform: translate(-12px, -50%) scale(.9); transform-origin: 0 50%;
  transition: opacity .25s, transform .45s var(--ease-pop); pointer-events: none;
}
.tbubble::before { content: ""; position: absolute; left: -6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: #fff; transform: rotate(45deg); border-radius: 3px; }
.tfloor.on .tbubble { opacity: 1; transform: translate(0, -50%) scale(1); transition-delay: .2s; }
.tbubble > img { width: 30px; height: 30px; flex: none; border-radius: 8px; object-fit: contain; }
.bubble-body b { display: block; font-size: 12px; }
.bubble-body p { margin: 2px 0 0; }
.bubble-body small { display: block; margin-top: 2px; color: rgba(31, 27, 46, .5); font-size: 11px; }
.tr-mark { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 999px; background: #E6F6FF; color: #0A6FC2; font-size: 10px; font-weight: 700; }
.tower-base { position: relative; height: 70px; display: flex; align-items: flex-end; justify-content: center; }
.tower-door { width: 64px; height: 56px; display: flex; gap: 3px; padding: 4px 4px 0; border-radius: 8px 8px 0 0; background: #1F1B2E; }
.tower-door i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, rgba(76, 195, 255, .35), rgba(76, 195, 255, .1)); }
.tower.all .tower-door i { background: linear-gradient(180deg, rgba(255, 210, 63, .8), rgba(255, 210, 63, .3)); }
.mailbox {
  position: absolute; right: 12px; bottom: 8px; width: 74px; height: 52px;
  display: grid; place-items: center; border-radius: 10px;
  background: var(--sky); color: var(--ink); box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.mailbox-slot { position: absolute; top: 8px; left: 16px; right: 16px; height: 5px; border-radius: 3px; background: rgba(31, 27, 46, .55); }
.mailbox-label { margin-top: 12px; font-size: 11px; font-weight: 700; }
.mailbox-count {
  position: absolute; top: -12px; right: -12px; min-width: 28px; height: 28px; padding: 0 7px;
  display: grid; place-items: center; border-radius: 999px; background: var(--coral); color: #fff;
  font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 3px #262048;
  transform: scale(0); transition: transform .3s var(--ease-pop);
}
.tower.collect .mailbox-count { transform: scale(1); }
.mailbox.bump { animation: bump .35s var(--ease-pop); }
@keyframes bump { 40% { transform: scale(1.14) rotate(-3deg); } }

@media (max-width: 900px) {
  .story-inner { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 12px; padding-top: 72px; }
  .story-panel { padding-bottom: 0; }
  .story-title { font-size: 22px; }
  .story-desc { margin-top: 4px; font-size: 13px; }
  .story-svcs { grid-template-columns: repeat(8, 28px); gap: 6px; margin-top: 10px; }
  .story-svcs span { display: none; }
  .story-svcs img { width: 28px; height: 28px; }
  .story-building-wrap { padding-left: 0; justify-content: center; min-height: 0; }
  .tower { width: min(300px, 80vw); }
  .tbubble, .story-moon { display: none; }
}

/* ---------- 共通セクション ---------- */
.section { position: relative; padding: clamp(96px, 14vh, 150px) 0; }
.sec-head { max-width: 720px; margin-bottom: 48px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 700; }
.sec-head p:not(.eyebrow) { margin: 16px 0 0; color: var(--text-2); font-size: clamp(15px, 1.4vw, 17px); }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .9s var(--ease-pop); transition-delay: calc(var(--d, 0) * 110ms); }
.reveal.in { opacity: 1; transform: none; }
.reveal.in.settled { transition: transform .2s ease-out, opacity .8s; transition-delay: 0ms; }

/* ---------- 02 受信箱のモック ---------- */
#inbox { background: radial-gradient(90% 60% at 50% 0%, #241D48 0%, transparent 70%); }
.mock {
  position: relative; overflow: hidden; border-radius: 18px;
  background: #1F1B2E;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 120px -20px rgba(76, 195, 255, .25), 0 30px 80px rgba(0, 0, 0, .5);
}
.mock-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #17142A; }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.mock-bar i:nth-child(2) { background: #FEBC2E; }
.mock-bar i:nth-child(3) { background: #28C840; }
.mock-bar span { flex: 1; margin-right: 50px; text-align: center; font-size: 12px; color: var(--text-3); }
.mock-body { display: grid; grid-template-columns: 64px 280px minmax(0, 1fr); height: 520px; }
.mock-rail { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0; border-right: 1px solid rgba(255, 255, 255, .06); }
.rail-tile { position: relative; width: 40px; height: 40px; flex: none; padding: 4px; border-radius: 12px; background: #fff; transition: transform .2s; }
.rail-tile img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.rail-tile.all { background: var(--sun); padding: 6px; }
.rail-tile.sel { box-shadow: 0 0 0 2px #1F1B2E, 0 0 0 4px var(--sun); }
.rail-tile em { position: absolute; top: -6px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; background: var(--coral); color: #fff; font: normal 700 11px/1 var(--font-body); box-shadow: 0 0 0 2px #1F1B2E; }
.rail-tile.bounce { animation: railBounce .6s var(--ease-pop); }
@keyframes railBounce { 30% { transform: translateY(-7px) scale(1.08); } }
.mock-side { display: flex; flex-direction: column; min-height: 0; padding: 12px 10px; border-right: 1px solid rgba(255, 255, 255, .06); }
.mock-search { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .55); font-size: 12px; }
.mock-side-h { margin: 14px 8px 6px; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .5); }
.mock-list { position: relative; list-style: none; margin: 0; padding: 0; overflow: hidden; }
.mrow {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 2px 10px; align-items: center;
  padding: 7px 8px; border-radius: 10px; cursor: pointer; color: rgba(255, 255, 255, .86);
  background: #1F1B2E; transition: background-color .15s;
}
.mrow:hover { background: rgba(255, 255, 255, .06); }
.mrow.sel { background: rgba(255, 210, 63, .2); }
.mrow img { grid-row: span 2; width: 30px; height: 30px; padding: 2px; border-radius: 8px; background: #fff; object-fit: contain; }
.mrow b { overflow: hidden; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.mrow span { overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; color: rgba(255, 255, 255, .55); }
.mrow time { font-size: 11px; color: rgba(255, 255, 255, .45); font-variant-numeric: tabular-nums; }
.mrow em { justify-self: end; min-width: 20px; height: 18px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: var(--coral); color: #fff; font: normal 700 11px/1 var(--font-body); }
.mrow em:empty { visibility: hidden; }
.mrow.unread b { color: #fff; font-weight: 700; }
.mrow.flash { animation: rowFlash 1.2s; }
@keyframes rowFlash { 0% { background: rgba(255, 210, 63, .35); } }
.mock-main { display: flex; flex-direction: column; min-width: 0; background: #FFFDF7; color: var(--ink); }
.mock-head { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 20px; border-bottom: 1px solid rgba(31, 27, 46, .1); }
.mock-head b { font-size: 16px; font-weight: 700; }
.mock-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 3px; border-radius: 999px; background: rgba(31, 27, 46, .07); font-size: 11px; font-weight: 700; }
.mock-chip img { width: 18px; height: 18px; border-radius: 5px; }
.mock-tl { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 16px 20px; }
.msg { display: grid; grid-template-columns: 36px 1fr; gap: 10px; animation: msgIn .45s var(--ease-pop); }
@keyframes msgIn { from { opacity: 0; transform: translateY(12px); } }
.msg-av { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: #fff; font-weight: 700; font-size: 14px; }
.msg-meta { font-size: 12px; color: rgba(31, 27, 46, .5); }
.msg-meta b { margin-right: 8px; font-size: 14px; color: var(--ink); }
.msg-text { margin: 1px 0 0; font-size: 14px; line-height: 1.6; }
.msg-orig { margin: 4px 0 0; font-size: 12px; color: rgba(31, 27, 46, .5); }
.msg-tr { display: inline-block; margin-right: 6px; padding: 0 7px; border-radius: 999px; background: #E6F6FF; color: #0A6FC2; font-size: 10px; font-weight: 700; vertical-align: 1px; }
.mock-composer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 16px 16px; padding: 12px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px rgba(31, 27, 46, .18); font-size: 13px; color: rgba(31, 27, 46, .45); }
.mock-ai { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: rgba(31, 27, 46, .65); white-space: nowrap; }
.mock-toast {
  position: absolute; top: 48px; right: 14px; z-index: 5; width: 290px;
  display: flex; gap: 10px; padding: 10px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  font-size: 12px; line-height: 1.5; opacity: 0; transform: translateX(30px); transition: opacity .3s, transform .45s var(--ease-pop); pointer-events: none;
}
.mock-toast.show { opacity: 1; transform: none; }
.mock-toast img { width: 34px; height: 34px; flex: none; border-radius: 9px; object-fit: contain; }
.mock-toast b { display: block; font-size: 12px; }
.mock-hint { margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--text-3); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.stat { padding: 22px 24px; border-radius: 20px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.stat b { display: block; font-weight: 700; font-size: clamp(40px, 5vw, 60px); line-height: 1.1; color: var(--sun); font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--text-2); }
@media (max-width: 900px) {
  .mock-body { grid-template-columns: 56px minmax(0, 1fr); height: 470px; }
  .mock-main { display: none; }
  .mock-rail { gap: 8px; }
  .rail-tile { width: 36px; height: 36px; }
  .mock-toast { width: auto; left: 70px; }
}
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }

/* ---------- 03 機能 ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  position: relative; overflow: hidden; min-height: 300px; padding: 26px;
  border-radius: 24px; background: linear-gradient(180deg, #231D45, #19142F);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  transform-style: preserve-3d;
}
.card.span2 { grid-column: span 2; }
.card .glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .1), transparent 45%); }
.card:hover .glare { opacity: 1; }
.card-k { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--sky); }
.card h3 { font-size: clamp(19px, 1.9vw, 23px); font-weight: 700; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -3px; background: currentColor; animation: blink 1s steps(1) infinite; }

.search-demo { margin-top: 22px; }
.sbox { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 15px; font-weight: 700; color: #fff; }
.sbox svg { color: var(--text-3); flex: none; }
.sres { list-style: none; margin: 14px 0 0; padding: 0; display: grid; align-content: start; gap: 8px; min-height: 148px; }
.sres li { display: grid; grid-template-columns: 28px 70px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); font-size: 13px; color: var(--text-2); animation: msgIn .45s var(--ease-pop) both; animation-delay: calc(var(--i) * 90ms); }
.sres img { width: 28px; height: 28px; padding: 2px; border-radius: 8px; background: #fff; object-fit: contain; }
.sres b { color: var(--text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sres span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sres li.cur { background: rgba(61, 214, 140, .1); box-shadow: inset 0 0 0 1.5px var(--green); }
.stag { padding: 1px 8px; border-radius: 999px; background: #E6F6FF; color: #0A6FC2; font-size: 11px; font-weight: 700; font-style: normal; white-space: nowrap; }
.card-sub { margin: 8px 0 0; font-size: 13px; color: var(--text-3); }
.schips { display: inline-flex; gap: 6px; }
.schips:empty { display: none; }
.schip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; background: rgba(76, 195, 255, .18); color: var(--sky); font-size: 13px; white-space: nowrap; animation: chipIn .35s var(--ease-pop); }
.schip img { width: 16px; height: 16px; padding: 1px; border-radius: 4px; background: #fff; }
.sjump { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--text-2); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.sjump.show { opacity: 1; transform: none; }
.sjump > span { margin-right: auto; }
.sjump b { color: var(--text); font-variant-numeric: tabular-nums; }
.sjump i { padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 12px; font-weight: 700; font-style: normal; transition: background-color .15s, color .15s, transform .15s; }
.sjump i.press { background: var(--sun); color: var(--ink); transform: scale(.94); }
.sres mark { padding: 0 2px; border-radius: 4px; background: rgba(61, 214, 140, .28); color: #fff; }

.tr-demo { position: relative; margin-top: 26px; }
.tr-bubble { display: flex; gap: 12px; padding: 14px 16px; border-radius: 18px; background: #fff; color: var(--ink); }
.tr-bubble img { width: 36px; height: 36px; flex: none; border-radius: 10px; object-fit: contain; }
.tr-bubble small { font-size: 12px; font-weight: 700; color: rgba(31, 27, 46, .55); }
.tr-bubble p { margin: 2px 0 0; min-height: 1.6em; font-size: 16px; font-weight: 700; line-height: 1.6; }
.tr-chip { display: inline-block; margin-top: 12px; padding: 2px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 12px; font-weight: 700; color: var(--text-2); transition: background-color .3s, color .3s; }
.tr-chip.done { background: #E6F6FF; color: #0A6FC2; }

.ai-demo { margin-top: 24px; }
.ai-box { min-height: 76px; padding: 14px 16px; border-radius: 16px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.6; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .3s; }
.ai-box.polish { box-shadow: inset 0 0 0 2px var(--sun), 0 0 30px rgba(255, 210, 63, .3); }
.ai-keys { display: flex; gap: 6px; margin-top: 14px; }
.ai-keys kbd { width: 40px; height: 40px; font-size: 16px; transition: transform .1s, box-shadow .1s; }
.ai-keys.press kbd { transform: translateY(3px); box-shadow: 0 0 0 rgba(31, 27, 46, .35), inset 0 0 0 1px rgba(31, 27, 46, .15); background: var(--sun); }

.ops-demo, .emoji-demo { margin-top: 26px; }
.ops-msg, .em-msg { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 16px 14px 12px; border-radius: 16px; background: #fff; color: var(--ink); }
.ops-msg > img, .em-msg > img { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; }
.ops-msg.swap > * { animation: fadeUp .4s; }
.ops-meta { margin: 0; font-size: 12px; color: rgba(31, 27, 46, .5); }
.ops-meta b, .em-msg b { margin-right: 8px; font-size: 14px; color: var(--ink); }
.ops-text, .em-msg p { margin: 2px 0 0; font-size: 14px; line-height: 1.6; }
.ops-reacts, .em-reacts { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; min-height: 26px; margin-top: 6px; }
.em-reacts { min-height: 58px; }
.react-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 6px; border-radius: 999px;
  background: rgba(76, 195, 255, .14); box-shadow: inset 0 0 0 1.5px rgba(10, 111, 194, .45);
  font-size: 13px; font-weight: 700; color: #0A6FC2; font-variant-numeric: tabular-nums; animation: chipIn .35s var(--ease-pop);
}
.react-chip.bump { animation: bump .35s var(--ease-pop); }
@keyframes chipIn { from { opacity: 0; transform: scale(.6); } }
.ops-bar { position: absolute; top: -17px; right: 10px; display: flex; padding: 3px; border-radius: 10px; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(31, 27, 46, .1); }
.ops-bar span { display: grid; place-items: center; width: 30px; height: 28px; overflow: hidden; border-radius: 7px; color: rgba(31, 27, 46, .7); transition: width .3s, opacity .3s, background-color .15s, color .15s; }
.ops-bar span.off { width: 0; opacity: 0; }
.ops-bar span.hot { background: var(--sun); color: var(--ink); }
.ops-bar svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ops-label { min-height: 1.7em; margin: 12px 0 0; font-size: 14px; font-weight: 700; color: var(--sun); }
.ops-note { margin: 8px 0 0; font-size: 12px; color: var(--text-3); }
.stamp-e { display: inline-grid; place-items: center; font-style: normal; width: 20px; height: 20px; border-radius: 5px; background: var(--c); color: #fff; font-size: 9px; font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.em-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, .06); }
.em-picker span { display: grid; place-items: center; height: 42px; border-radius: 10px; transition: background-color .15s, transform .25s var(--ease-pop); }
.em-picker .stamp-e { width: 30px; height: 30px; border-radius: 8px; font-size: 12px; }
.em-picker span.hot { background: rgba(255, 210, 63, .22); transform: scale(1.14); }

.prio { position: relative; list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
.prio li { display: grid; grid-template-columns: 28px minmax(0, 1fr) 110px; align-items: center; gap: 12px; padding: 9px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); font-size: 14px; }
.prio img { width: 28px; height: 28px; padding: 2px; border-radius: 8px; background: #fff; object-fit: contain; }
.prio .p-text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text-2); }
.prio .p-text b { color: var(--text); margin-right: 8px; }
.prio .p-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.prio .p-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--sky), var(--sun)); transform-origin: 0 50%; transition: transform .6s var(--ease-pop); }
.prio.hide-score .p-bar i { transform: scaleX(0); }
.prio-state { margin: 12px 0 0; font-size: 12px; font-weight: 700; color: var(--text-3); }
.prio-state.sorted { color: var(--sun); }

.acct-demo { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.acct-rail { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 18px; background: #1F1B2E; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.acct-rail span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: #4A154B; color: #fff; font-weight: 700; cursor: default; transition: transform .25s var(--ease-pop), box-shadow .25s; }
.acct-rail span:nth-child(2) { background: #2E6FDB; }
.acct-rail span:nth-child(3) { background: #0F8F6E; }
.acct-rail span.sel { transform: scale(1.1); box-shadow: 0 0 0 2px #1F1B2E, 0 0 0 4px var(--sun); }
.acct-name { margin: 0; font-size: 18px; font-weight: 700; }
.acct-name::before { content: "Slack"; display: block; font-size: 12px; font-weight: 700; color: var(--text-3); }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .card.span2 { grid-column: auto; }
  .card { min-height: 0; }
  .prio li { grid-template-columns: 28px minmax(0, 1fr) 60px; }
}

/* ---------- 04 プライバシー ---------- */
.lock-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.lock-copy h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; }
.lock-copy > p:not(.eyebrow) { margin: 18px 0 0; color: var(--text-2); }
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; font-weight: 700; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 22px; height: 22px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231F1B2E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.flow {
  position: relative; min-height: 460px; padding: 28px;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; gap: 24px 40px; align-items: center;
  border-radius: 26px; background: linear-gradient(180deg, #1D1839, #15112B); box-shadow: inset 0 0 0 1px var(--line);
}
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.flow-lines .ln { fill: none; stroke: rgba(255, 210, 63, .7); stroke-width: 2; stroke-dasharray: 6 8; animation: dash 1.2s linear infinite; }
.flow-lines .ln.srv { stroke: rgba(255, 255, 255, .25); stroke-dasharray: 3 7; animation-duration: 3s; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.flow-lines .pkt { fill: var(--sun); filter: drop-shadow(0 0 4px var(--sun)); }
.flow-pc {
  position: relative; z-index: 1; justify-self: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 26px;
  border-radius: 20px; background: #2A2350; box-shadow: inset 0 0 0 2px var(--sun), 0 0 40px rgba(255, 210, 63, .2);
  text-align: center;
}
.flow-pc img { width: 44px; height: 44px; }
.flow-pc b { font-size: 16px; font-weight: 700; }
.flow-pc span { font-size: 12px; color: var(--text-3); }
.flow-svcs { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 44px); justify-content: center; gap: 12px 28px; }
.flow-svcs img { width: 44px; height: 44px; padding: 4px; border-radius: 12px; background: #fff; object-fit: contain; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.flow-svcs img.hit { animation: bump .4s var(--ease-pop); }
.flow-server {
  position: relative; z-index: 1; grid-column: 1; justify-self: center;
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 18px;
  border-radius: 16px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  text-align: center;
}
.flow-server b { font-size: 13px; color: var(--text-2); }
.flow-server span { font-size: 12px; color: var(--text-3); }
.flow-server b { word-break: auto-phrase; }
.flow-server em { white-space: nowrap; margin-top: 6px; padding: 1px 10px; border-radius: 999px; background: rgba(240, 86, 91, .16); color: #FF9A9D; font-size: 11px; font-weight: 700; font-style: normal; }
@media (max-width: 900px) {
  .lock-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 34px; padding: 22px 16px; }
  .flow-svcs { grid-template-columns: repeat(4, 40px); gap: 12px 18px; }
  .flow-svcs img { width: 40px; height: 40px; }
  .flow-server { grid-column: auto; }
}

/* ---------- 05 料金 ---------- */
#pricing { background: radial-gradient(70% 50% at 50% 40%, rgba(255, 210, 63, .08), transparent 70%); }
.plan-card {
  position: relative; max-width: 920px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-radius: 28px; overflow: hidden;
  background: linear-gradient(180deg, #262048, #1A1535);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 100px -30px rgba(255, 210, 63, .25);
}
.plan-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, var(--sun) 80%, var(--sky) 90%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spinBorder 5s linear infinite; pointer-events: none; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spinBorder { to { --ang: 360deg; } }
.plan-main { padding: 40px; display: flex; flex-direction: column; align-items: flex-start; }
.plan-name { margin: 0; font-weight: 700; color: var(--text-2); }
.price { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 0; }
.price b { font-weight: 700; font-size: clamp(64px, 8vw, 92px); line-height: 1; color: var(--sun); font-variant-numeric: tabular-nums; }
.price span { font-size: 18px; font-weight: 700; }
.plan-trial { margin: 14px 0 26px; padding: 3px 14px; border-radius: 999px; background: rgba(76, 195, 255, .16); color: var(--sky); font-size: 14px; font-weight: 700; }
.fine { margin: 18px 0 0; font-size: 12px; color: var(--text-3); line-height: 1.7; }
.plan-list { list-style: none; margin: 0; padding: 40px; display: grid; align-content: center; gap: 14px; background: rgba(255, 255, 255, .03); border-left: 1px solid var(--line); }
.plan-list li { position: relative; padding-left: 30px; font-weight: 700; }
.plan-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 6px; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231F1B2E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
@media (max-width: 760px) {
  .plan-card { grid-template-columns: 1fr; }
  .plan-main, .plan-list { padding: 28px 22px; }
  .plan-list { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- 06 FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s; }
.faq details[open] { background: rgba(255, 255, 255, .07); }
.faq summary { position: relative; padding: 18px 56px 18px 22px; cursor: pointer; list-style: none; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2.5px solid var(--sun); border-bottom: 2.5px solid var(--sun); transform: rotate(45deg); transition: transform .3s var(--ease-pop); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--text-2); animation: fadeUp .4s; }

/* ---------- 最後のCTA ---------- */
.final { position: relative; overflow: hidden; min-height: 640px; display: grid; place-items: center; padding: 120px var(--gutter) 260px; text-align: center; background: linear-gradient(180deg, var(--night), #1A1440 70%, #2A1F5A); }
.final-copy { position: relative; z-index: 3; }
.final h2 { font-weight: 700; font-size: clamp(34px, 6vw, 72px); line-height: 1.25; }
.final-copy > p { margin: 18px 0 30px; color: var(--text-2); }
.final-copy .final-note { margin: 16px 0 0; font-size: 12px; color: var(--text-3); }
.final-city { position: absolute; left: 0; right: 0; bottom: 0; height: 260px; z-index: 1; }
.final-city .bld .w.on { background: var(--win-on); box-shadow: 0 0 8px rgba(255, 210, 63, .5); }

.footer { padding: 36px 0 48px; border-top: 1px solid var(--line); background: #2A1F5A; }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; font-size: 12px; color: var(--text-3); }
.footer-in p { margin: 0; }
.footer .copy { margin-left: auto; }

.confetti { position: fixed; inset: 0; z-index: 70; width: 100%; height: 100%; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  .marquee-track { animation: none; }
}

/* ---------- 法務ページ ---------- */
.footer-in { display: grid; gap: 18px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; }
.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.fine a, .faq details p a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }

.legal-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(15, 12, 29, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.legal-top .container { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.legal-top .back { margin-left: auto; font-size: 14px; color: var(--text-2); }
.legal-top .back:hover { color: var(--text); }
.legal { padding-block: clamp(40px, 7vw, 88px) clamp(72px, 10vw, 120px); }
.legal-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.legal-nav { position: sticky; top: 96px; display: grid; gap: 4px; }
.legal-nav a { padding: 9px 14px; border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--text-2); line-height: 1.5; }
.legal-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.legal-nav a[aria-current="page"] { color: var(--sun); background: rgba(255, 210, 63, .12); }
.legal-doc { max-width: 46em; min-width: 0; }
.legal-doc h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; text-wrap: balance; }
.legal-meta { margin: 14px 0 0; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.legal-doc h2 { margin: 48px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 19px; font-weight: 700; scroll-margin-top: 96px; text-wrap: balance; }
.legal-doc h3 { margin: 26px 0 8px; font-size: 16px; font-weight: 700; }
.legal-doc p, .legal-doc li, .legal-doc dd { font-size: 15.5px; line-height: 1.95; color: rgba(244, 241, 255, .86); }
.legal-doc p { margin: 12px 0 0; }
.legal-doc strong { color: var(--text); }
.legal-doc a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }
.legal-doc ul { margin: 12px 0 0; padding-left: 1.3em; display: grid; gap: 6px; }
.legal-doc ol { list-style: none; counter-reset: n; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.legal-doc ol > li { counter-increment: n; position: relative; padding-left: 2em; }
.legal-doc ol > li::before { content: counter(n) "."; position: absolute; left: 0; font-weight: 700; color: var(--sun); font-variant-numeric: tabular-nums; }
.legal-doc ol.paren > li { padding-left: 2.6em; }
.legal-doc ol.paren > li::before { content: "(" counter(n) ")"; color: var(--text-2); }
.legal-doc li > ol, .legal-doc li > ul { margin-top: 8px; }
.legal-lead { margin-top: 24px !important; }
.legal-toc { margin: 28px 0 0; padding: 18px 22px; border-radius: 18px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.legal-toc ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5em, 1fr)); gap: 4px 20px; margin: 0; }
.legal-toc ol > li { padding: 0; }
.legal-toc ol > li::before { content: none; }
.legal-toc a { font-size: 14px; color: var(--text-2); text-decoration: none; }
.legal-toc a:hover { color: var(--text); text-decoration: underline; }
.legal-table { margin: 28px 0 0; border-top: 1px solid var(--line); }
.legal-table > div { display: grid; grid-template-columns: 13em minmax(0, 1fr); gap: 8px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.legal-table dt { font-size: 14px; font-weight: 700; color: var(--text-2); line-height: 1.9; }
.legal-table dd { margin: 0; }
.legal-table dd p:first-child { margin-top: 0; }
.todo { padding: 0 .4em; border-radius: 6px; background: rgba(240, 86, 91, .16); color: #FF9A9D; font-weight: 700; }
.legal-sign { margin-top: 48px !important; text-align: right; color: var(--text-2) !important; }

@media (max-width: 860px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .legal-nav a { padding: 6px 12px; font-size: 13px; background: rgba(255, 255, 255, .05); }
  .legal-table > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
