:root {
  color-scheme: dark;
  --bg: #050507;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-strong: rgba(255, 255, 255, 0.11);
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f7f8fb;
  --muted: #c2c7d1;
  --subtle: #89909d;
  --accent: #e8ecff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --max-width: 980px;
  --font-system: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: var(--font-system);
  font-size: 16px;
  line-height: 1.7;
  background:
    radial-gradient(circle at 18% 0%, rgba(105, 119, 170, 0.2), transparent 34rem),
    radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.08), transparent 26rem),
    linear-gradient(135deg, #050507 0%, #090c12 48%, #11141c 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 68%);
}

body[data-language="en"] [data-lang="jp"],
body[data-language="jp"] [data-lang="en"] {
  display: none;
}

a {
  color: inherit;
}

.site-shell {
  width: min(100% - 32px, var(--max-width));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 0;
}

.brand {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 720;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.nav,
.language-switch {
  display: flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px);
}

.nav {
  gap: 4px;
}

.nav a,
.language-switch button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.35;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.nav a {
  padding: 6px 13px;
}

.language-switch button {
  min-width: 38px;
  padding: 6px 9px;
  background: transparent;
  cursor: pointer;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"],
.language-switch button:hover,
.language-switch button:focus-visible,
.language-switch button[aria-pressed="true"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

main {
  flex: 1;
}

.hero {
  max-width: 760px;
  padding: clamp(58px, 11vw, 104px) 0 58px;
}

.page-hero {
  max-width: 760px;
  padding: clamp(48px, 9vw, 82px) 0 24px;
}

.section-label {
  margin: 0 0 12px;
  color: var(--subtle);
  font-size: 0.75rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3rem, 7.8vw, 5.4rem);
  font-weight: 780;
}

.compact-hero h1 {
  font-size: clamp(2.15rem, 5vw, 3.35rem);
}

.page-hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.2rem);
}

h2 {
  font-size: clamp(1.45rem, 3.6vw, 2.15rem);
  font-weight: 720;
}

.glass-card h2 {
  font-size: clamp(1.08rem, 2.4vw, 1.38rem);
  line-height: 1.25;
}

h3 {
  font-size: 1.08rem;
  font-weight: 700;
}

p {
  color: var(--muted);
}

.hero-text,
.page-hero p {
  max-width: 680px;
  margin: 22px 0 0;
  color: #dce0e9;
  font-size: clamp(1.04rem, 2vw, 1.2rem);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.button-primary {
  color: #07080b;
  background: linear-gradient(135deg, #f8f9ff, #d4d9e8);
  border-color: rgba(255, 255, 255, 0.38);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.065);
}

.info-section,
.support-layout {
  padding: 22px 0 clamp(58px, 8vw, 82px);
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 16px;
  align-items: start;
}

.glass-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.04)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.glass-card {
  padding: clamp(21px, 4vw, 28px);
}

.glass-card p {
  margin: 12px 0 0;
}

.support-card {
  background:
    linear-gradient(145deg, rgba(218, 224, 255, 0.13), rgba(255, 255, 255, 0.04)),
    var(--surface);
}

.support-email {
  margin-top: 18px;
  font-size: clamp(1.15rem, 3.5vw, 1.58rem);
  font-weight: 760;
  line-height: 1.25;
}

.support-email a {
  color: var(--text);
  text-decoration-color: rgba(255, 255, 255, 0.42);
  text-underline-offset: 6px;
}

.info-list {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.info-list li::marker {
  color: var(--accent);
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 700;
  text-decoration-color: rgba(232, 236, 255, 0.48);
  text-underline-offset: 5px;
}

.site-footer {
  padding: 26px 0 32px;
  border-top: 1px solid var(--line-soft);
}

.site-footer p {
  margin: 0;
  color: var(--subtle);
  font-size: 0.88rem;
}

@media (max-width: 780px) {
  .site-shell {
    width: min(100% - 24px, var(--max-width));
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .nav a {
    flex: 1 0 auto;
    text-align: center;
  }

  .language-switch {
    align-self: flex-end;
  }

  .hero,
  .page-hero {
    padding-top: 48px;
  }

  .support-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .nav,
  .language-switch {
    border-radius: var(--radius);
  }

  .nav a {
    padding-inline: 10px;
    font-size: 0.86rem;
  }

  .button,
  .action-row {
    width: 100%;
  }

  .glass-card {
    padding: 20px;
  }
}
