:root {
  --bg: #050608;
  --panel: rgba(18, 22, 28, 0.82);
  --panel-strong: rgba(26, 31, 40, 0.94);
  --text: #f4f7fb;
  --muted: #aab4c2;
  --line: rgba(255, 255, 255, 0.11);
  --green: #54e38e;
  --green-strong: #20c76a;
  --blue: #8db4ff;
  --red: #ff5c73;
  --yellow: #ffd166;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(84, 227, 142, 0.18), transparent 34%),
    radial-gradient(circle at 88% 16%, rgba(80, 130, 255, 0.16), transparent 28%),
    radial-gradient(circle at 50% 68%, rgba(84, 227, 142, 0.08), transparent 35%),
    linear-gradient(180deg, #080a0f 0%, var(--bg) 62%, #030405 100%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.stars::before,
.stars::after {
  content: "✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧";
  position: fixed;
  inset: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  letter-spacing: 7vw;
  line-height: 18vh;
  pointer-events: none;
  opacity: 0.45;
  z-index: -1;
}
.stars::after {
  transform: translate(4vw, 8vh);
  opacity: 0.25;
  font-size: 11px;
}

.site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(8, 10, 14, 0.74);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 12px;
  z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #031107;
  background: linear-gradient(135deg, var(--green), #d2ffe4);
  box-shadow: 0 0 28px rgba(84, 227, 142, 0.36);
}
.nav { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 14px; font-weight: 800; }
.nav a:hover { color: var(--text); }
.nav-cta { color: #08120c !important; background: var(--green); padding: 10px 14px; border-radius: 999px; }

.section-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.hero {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 44px;
  padding: 56px 0 46px;
}
.eyebrow { margin: 0 0 14px; color: var(--green); font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(60px, 10vw, 116px); line-height: 0.86; letter-spacing: -0.085em; margin-bottom: 16px; }
h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1; letter-spacing: -0.045em; margin-bottom: 18px; }
h3 { font-size: 19px; margin-bottom: 9px; }
.tagline { color: #ffffff; font-size: clamp(26px, 4.2vw, 52px); line-height: 1.03; letter-spacing: -0.055em; font-weight: 900; margin-bottom: 22px; }
.hero-text { color: #d6dde8; font-size: clamp(18px, 2vw, 22px); line-height: 1.55; max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 14px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 0 20px; border-radius: 999px; font-weight: 900; border: 1px solid var(--line); text-align: center; }
.button.big { min-height: 58px; padding: 0 26px; }
.primary { color: #031107; background: linear-gradient(135deg, var(--green), #caffe0); box-shadow: 0 18px 44px rgba(32, 199, 106, 0.22); }
.secondary { color: var(--text); background: rgba(255,255,255,0.06); }
.full { width: 100%; }
.small-note { color: #d7ffe7; font-size: 15px; line-height: 1.45; max-width: 640px; }

.phone-card {
  border: 1px solid var(--line);
  border-radius: 38px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(24, 29, 38, 0.94), rgba(8, 10, 14, 0.96));
  box-shadow: var(--shadow);
  max-width: 430px;
  margin-left: auto;
}
.phone-top { display: flex; justify-content: space-between; font-weight: 900; margin-bottom: 18px; }
.level-bar { height: 12px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.level-bar span { display: block; width: 42%; height: 100%; background: var(--green); }
.today-line { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.stat-pill { display: inline-flex; color: #06140b; background: var(--green); border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 900; margin-bottom: 12px; }
.word-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.word-cloud span { color: #dce8f7; background: rgba(255,255,255,0.075); border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px; font-size: 13px; font-weight: 800; }
.neuron { padding: 16px; border-radius: 22px; background: rgba(255,255,255,0.055); border: 1px solid var(--line); margin-top: 12px; }
.neuron span { display: block; font-size: 13px; font-weight: 900; margin-bottom: 8px; }
.neuron strong { display: block; line-height: 1.35; }
.neuron.good span { color: var(--green); }
.neuron.neutral span { color: var(--yellow); }
.neuron.bad span { color: var(--red); }

.compact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: center;
  padding: 42px;
  border-radius: 34px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}
.spotlight { background: linear-gradient(135deg, rgba(84,227,142,0.16), rgba(18,22,28,0.86)); }
.tester-card { padding: 26px; border-radius: 28px; background: var(--panel-strong); border: 1px solid var(--line); }
.tester-card p, .final-cta p, .section-heading p { color: #d6dde8; line-height: 1.6; }
.lead { font-size: 24px; font-weight: 900; color: #fff !important; margin-bottom: 10px; }
.mini { color: var(--muted) !important; font-size: 14px; margin: 14px 0 0; }

.features { padding: 44px 0 36px; }
.section-heading { max-width: 760px; margin-bottom: 22px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-grid article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(18, 22, 28, 0.76);
}
.icon { font-size: 28px; display: inline-block; margin-bottom: 18px; }
.feature-grid p { color: var(--muted); line-height: 1.55; }
.inside-list { display: grid; gap: 12px; }
.inside-list div { display: grid; grid-template-columns: 140px 1fr; gap: 14px; padding: 15px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,0.05); }
.inside-list strong { color: var(--green); }
.inside-list span { color: #d6dde8; line-height: 1.45; }
.final-panel { margin-top: 10px; background: linear-gradient(135deg, rgba(84,227,142,0.14), rgba(141,180,255,0.1)); }
footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 38px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}
footer a { color: var(--green); font-weight: 900; }

@media (max-width: 860px) {
  .site-header { position: static; }
  .nav a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 46px; }
  .phone-card { margin: 0; max-width: none; }
  .compact { grid-template-columns: 1fr; padding: 26px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: auto; }
  footer { flex-direction: column; }
}

@media (max-width: 520px) {
  .site-header, .section-shell, footer { width: min(100% - 22px, 1120px); }
  h1 { font-size: 58px; }
  .tagline { font-size: 30px; }
  .hero-actions .button { width: 100%; }
  .phone-card { border-radius: 28px; padding: 18px; }
  .inside-list div { grid-template-columns: 1fr; gap: 5px; }
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}
.language-switch button {
  border: 0;
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.language-switch button.active {
  color: #031107;
  background: var(--green);
}
.language-switch button:hover:not(.active) {
  color: var(--text);
}

html[lang="ja"] body {
  font-family: Inter, "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html[lang="ja"] h1 {
  letter-spacing: -0.06em;
}
html[lang="ja"] h2,
html[lang="ja"] .tagline {
  letter-spacing: -0.035em;
  line-height: 1.08;
}
html[lang="ja"] .feature-grid article {
  min-height: 250px;
}

@media (max-width: 860px) {
  .language-switch { margin-left: 4px; }
}

@media (max-width: 520px) {
  .language-switch button { padding: 7px 8px; }
}
