:root {
  --night: #16233F;
  --glow: #F2B544;
  --harbor: #1D4F7A;
  --sky: #9CC3EE;
  --paper: #FAF7F0;
  --ink: #1A1C22;
  --stone: #5F5E5A;
  --mist: #E6E2D8;
  --moon: #EDEBE4;

  --bg: var(--paper);
  --fg: var(--ink);
  --muted: var(--stone);
  --heading: var(--night);
  --card: #FFFFFF;
  --line: #C9C4B8;
  --link: var(--harbor);
  --chip: var(--moon);
  --mark-fg: var(--night);
  --mark-outline: 2.6px;
  --phone-bg: var(--night);
  --phone-ring: transparent;
  --show-sun: none;
  --show-moon: inline;
  --glow-strength: 0.85;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--night);
    --fg: var(--moon);
    --muted: #A9B0BF;
    --heading: var(--moon);
    --card: #1E2D4D;
    --line: #34446A;
    --link: var(--sky);
    --chip: #22314F;
    --mark-fg: var(--moon);
    --mark-outline: 0px;
    --phone-bg: #0B1426;
    --phone-ring: var(--line);
    --show-sun: inline;
    --show-moon: none;
    --glow-strength: 1;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: var(--night);
  --fg: var(--moon);
  --muted: #A9B0BF;
  --heading: var(--moon);
  --card: #1E2D4D;
  --line: #34446A;
  --link: var(--sky);
  --chip: #22314F;
  --mark-fg: var(--moon);
  --mark-outline: 0px;
  --phone-bg: #0B1426;
  --phone-ring: var(--line);
  --show-sun: inline;
  --show-moon: none;
  --glow-strength: 1;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'BIZ UDPGothic', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

html[lang="en"] body {
  font-family: 'Lexend', 'BIZ UDPGothic', sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

a { color: var(--link); }
a:hover { color: var(--heading); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  text-decoration: none;
  font-family: 'Lexend', sans-serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--heading);
  cursor: pointer;
}
.theme-toggle:hover { background: var(--chip); }
.theme-toggle:focus-visible, .lang:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun { display: var(--show-sun); }
.theme-toggle .moon { display: var(--show-moon); }

.lang {
  font-size: 15px;
  padding: 10px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--heading);
}
.lang:hover { background: var(--chip); color: var(--heading); }

/* Mark */
.mark .roof { fill: none; stroke: var(--mark-fg); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.mark .light { fill: var(--glow); stroke: var(--night); stroke-width: var(--mark-outline); }
.mark .pin { fill: var(--mark-fg); stroke: var(--mark-fg); stroke-width: 2; stroke-linejoin: round; }

/* Glowing light (brand motion: switch on, then a slow living glow that settles) */
.glow { overflow: visible; }
.glow .lx { transform-box: fill-box; transform-origin: center; }
.glow .halos { opacity: var(--glow-strength); }
.glow .core { animation: lx-on 1.1s cubic-bezier(.2,.8,.2,1) both; }
.glow .roof { animation: lx-roof 0.9s ease-out 0.25s both; }
.glow .pin { animation: lx-pin 0.9s ease-out 0.4s both; }
.glow .halo { animation: lx-halo-in 1.2s ease-out 0.3s both, lx-halo 3.6s ease-in-out 1.5s 8; }
.glow .halo2 { animation: lx-halo-in 1.6s ease-out 0.5s both, lx-halo2 4.2s ease-in-out 2.1s 7; }
@keyframes lx-on { 0% { opacity: 0; transform: scale(.2); } 60% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
@keyframes lx-roof { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes lx-pin { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
@keyframes lx-halo-in { from { opacity: 0; transform: scale(.5); } }
@keyframes lx-halo { 0%, 100% { transform: scale(1); opacity: .75; } 30% { transform: scale(1.06); opacity: .95; } 55% { transform: scale(1.01); opacity: .72; } 80% { transform: scale(1.05); opacity: .9; } }
@keyframes lx-halo2 { 0%, 100% { transform: scale(1); opacity: .45; } 45% { transform: scale(1.1); opacity: .6; } 75% { transform: scale(1.03); opacity: .4; } }
@media (prefers-reduced-motion: reduce) {
  .glow .core, .glow .roof, .glow .pin, .glow .halo, .glow .halo2 { animation: none; }
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 72px;
}

.lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.lockup .names { display: flex; flex-direction: column; gap: 6px; }
.lockup .latin {
  font-family: 'Lexend', sans-serif;
  font-weight: 500;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--heading);
}
.lockup .kana {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.12em;
  line-height: 1.1;
  color: var(--muted);
}

.tagline {
  margin: 0 0 16px;
  font-size: clamp(26px, 4.2vw, 40px);
  line-height: 1.4;
  font-weight: 700;
  color: var(--heading);
}
html[lang="en"] .tagline {
  font-family: 'Lexend', sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  font-size: clamp(26px, 3.6vw, 36px);
}

.lead { margin: 0 0 20px; font-size: 18px; max-width: 34em; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--fg);
  font-size: 15px;
  line-height: 1.4;
}
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--glow); flex: none; }

.phone {
  justify-self: center;
  width: min(300px, 100%);
  border-radius: 40px;
  padding: 10px;
  background: var(--phone-bg);
  outline: 1px solid var(--phone-ring);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 31px;
}

/* Sections */
section { padding: 56px 0; border-top: 1px solid var(--line); }

h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.4;
  color: var(--heading);
}
html[lang="en"] h2 { font-family: 'Lexend', sans-serif; font-weight: 500; letter-spacing: -0.01em; }

.section-lead { margin: 0 0 28px; color: var(--muted); max-width: 40em; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.card h3 {
  margin: 12px 0 6px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--heading);
}
html[lang="en"] .card h3 { font-family: 'Lexend', sans-serif; font-weight: 500; }
.card p { margin: 0; font-size: 16px; }

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--chip);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--heading); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.packages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.packages li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}
.packages strong { color: var(--heading); font-size: 17px; line-height: 1.4; }
.packages span { font-size: 15px; color: var(--muted); line-height: 1.55; }
.packages .tag {
  align-self: flex-start;
  font-size: 13px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.name-note { display: flex; gap: 20px; align-items: center; }
.name-note .greek {
  font-family: 'Lexend', serif;
  font-size: 34px;
  color: var(--heading);
  white-space: nowrap;
}
.name-note p { margin: 0; max-width: 40em; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  font-size: 14px;
  color: var(--muted);
}
footer .wrap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
footer .credit { font-family: 'Lexend', sans-serif; }

/* Phone width */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-bottom: 56px; }
  .grid { grid-template-columns: 1fr; }
  .packages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 16px; }
  body { font-size: 16px; }
  .lockup .latin { font-size: 40px; }
  .lockup svg { width: 64px; height: 64px; }
  .packages { grid-template-columns: 1fr; }
  .name-note { flex-direction: column; align-items: flex-start; gap: 8px; }
  section { padding: 44px 0; }
}
