:root {
  --sky: #bde7ff;
  --sky-2: #e8f6ff;
  --sea: #1f7fdc;
  --sand: #fff3d6;
  --leaf: #2f9a4b;
  --ink: #17324d;
  --muted: #4f6782;
  --card: #ffffff;
  --radius: 22px;
  --wrap: 1080px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.6 ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--sky-2);
}
a { color: var(--sea); }
img, svg { max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.lang { position: relative; font-size: 15px; }
.lang summary { list-style: none; cursor: pointer; background: var(--card); color: var(--ink); padding: 8px 14px; border-radius: 999px; font-weight: 600; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: " ▾"; color: var(--muted); }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; list-style: none; margin: 0; padding: 6px; min-width: 180px; max-height: 70vh; overflow-y: auto; background: var(--card); border-radius: 16px; box-shadow: 0 10px 30px rgba(23, 50, 77, 0.18); }
.lang li a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.lang li a:hover { background: var(--sky-2); }
.lang li a[aria-current] { font-weight: 700; background: var(--sky-2); }

/* hero */
.hero { background: linear-gradient(180deg, var(--sky) 0%, var(--sky-2) 100%); padding-bottom: 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 30px 0 20px; }
.badge { display: inline-block; background: var(--card); color: var(--leaf); font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 999px; }
h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.08; margin: 16px 0; letter-spacing: -0.02em; }
.lead { font-size: 20px; color: var(--muted); max-width: 34em; }
.cta { display: inline-block; margin-top: 18px; background: var(--sea); color: #fff; font-weight: 700; padding: 15px 26px; border-radius: 16px; text-decoration: none; }
.cta:hover { filter: brightness(1.08); }
.cta-note { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* island illustration */
.island { position: relative; width: 100%; aspect-ratio: 1; max-width: 420px; margin-left: auto; }
.island .sea { position: absolute; inset: 12% 0 0; background: radial-gradient(circle at 50% 60%, #8fd3ff 0%, #61b9f2 70%, transparent 71%); }
.island .land { position: absolute; left: 14%; right: 14%; top: 42%; height: 34%; background: var(--sand); border-radius: 50%; box-shadow: inset 0 -14px 0 #f1d79c; }
.island .em { position: absolute; font-size: clamp(36px, 6vw, 62px); line-height: 1; }

/* sections */
section { padding: 56px 0; }
h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 24px; letter-spacing: -0.01em; }
.loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: 0 2px 0 rgba(23, 50, 77, 0.06); }
.card .icon { font-size: 34px; }
.card h3 { margin: 8px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.loop .card h3::before { counter-increment: step; content: counter(step) ". "; color: var(--sea); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.promises { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promises li { background: var(--card); border-radius: var(--radius); padding: 20px 22px; }
.promises strong { display: block; font-size: 18px; margin-bottom: 4px; }
.promises span { color: var(--muted); font-size: 16px; }

.waitlist { background: var(--ink); color: #fff; border-radius: 28px; padding: 40px; text-align: center; }
.waitlist p { color: #cfe3f5; max-width: 36em; margin: 0 auto; }
.waitlist .cta { background: #fff; color: var(--ink); }

/* footer */
footer { padding: 30px 0 50px; font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* legal pages */
.legal { background: var(--card); border-radius: var(--radius); padding: clamp(22px, 4vw, 48px); margin: 10px 0 40px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); margin-top: 0; }
.legal h2 { font-size: 23px; margin: 34px 0 10px; }
.legal h3 { font-size: 18px; margin: 20px 0 6px; }
.legal .meta { color: var(--muted); font-size: 15px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #e3edf6; }
.legal th { background: var(--sky-2); }
.legal .summary { background: var(--sand); border-radius: 16px; padding: 16px 20px; }
.table-scroll { overflow-x: auto; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .island { max-width: 320px; margin: 0 auto; }
  .loop { grid-template-columns: 1fr 1fr; }
  .promises { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .loop { grid-template-columns: 1fr; }
  .waitlist { padding: 28px 20px; }
}
.island .e1 { left: 42%; top: 22%; }
.island .e2 { left: 22%; top: 44%; }
.island .e3 { left: 60%; top: 46%; }
.island .e4 { left: 38%; top: 56%; }
.island .e5 { left: 12%; top: 16%; }

/* CJK line breaking: keep words/phrases together */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; line-break: strict; }
:lang(ja) { line-break: strict; }
:lang(ko) { word-break: keep-all; }
