:root {
  --bg: #0b1220;
  --bg-soft: #111a2e;
  --surface: rgba(255,255,255,0.08);
  --surface-2: rgba(255,255,255,0.05);
  --text: #e9eefb;
  --muted: #b4c0dd;
  --line: rgba(255,255,255,0.12);
  --blue: #73b4ff;
  --green: #77d7b1;
  --purple: #c3a6ff;
  --amber: #ffd07a;
  --shadow: 0 16px 40px rgba(0,0,0,0.22);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', 'Noto Sans JP', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(115,180,255,0.22), transparent 25%),
    radial-gradient(circle at top left, rgba(195,166,255,0.16), transparent 20%),
    linear-gradient(180deg, #0a1120 0%, #0f1630 45%, #0c1427 100%);
}

a { color: inherit; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(10,17,32,0.72);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 16px;
}
.brand { font-weight: 800; text-decoration: none; letter-spacing: 0.02em; }
.nav { display: flex; flex-wrap: wrap; gap: 16px; }
.nav a {
  text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600;
}
.nav a:hover { color: var(--text); }

.hero { padding: 72px 0 40px; }
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: start;
}
.eyebrow {
  color: var(--blue); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 12px;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 58px);
  line-height: 1.06; margin: 10px 0 18px;
}
.lead {
  color: var(--muted); font-size: 17px; line-height: 1.8; max-width: 820px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 18px; border-radius: 999px;
  text-decoration: none; font-weight: 700; border: 1px solid transparent;
}
.button.primary { background: linear-gradient(135deg, #6db2ff, #8ec6ff); color: #0b1324; }
.button.secondary { border-color: var(--line); background: rgba(255,255,255,0.04); }
.alert, .hero-panel, .callout, .card, .faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.alert {
  border-radius: 18px; padding: 16px 18px; color: #dbe7ff; line-height: 1.75;
}
.hero-panel {
  border-radius: 24px; padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
}
.hero-panel h2 { margin-top: 0; font-size: 24px; }
.rule-list { margin: 0; padding-left: 20px; line-height: 1.9; color: var(--muted); }

.section { padding: 68px 0; }
.section.alt { background: rgba(255,255,255,0.03); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 24px; }
.section-head h2 { font-size: clamp(26px, 4vw, 40px); margin: 8px 0 8px; }
.section-head p { color: var(--muted); margin: 0; line-height: 1.8; }
.card-grid { display: grid; gap: 16px; }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  border-radius: var(--radius); padding: 20px;
}
.card h3 { margin: 0 0 10px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); line-height: 1.8; }
.icon-card .icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 14px; margin-bottom: 12px; background: rgba(115,180,255,0.14); color: var(--blue); font-weight: 800;
}
.sub { color: #d2dcf3 !important; font-size: 14px; font-weight: 700; margin-bottom: 8px !important; }
.tone-blue { border-color: rgba(115,180,255,0.28); }
.tone-green { border-color: rgba(119,215,177,0.28); }
.tone-purple { border-color: rgba(195,166,255,0.28); }
.callout {
  margin-top: 18px; border-radius: 20px; padding: 22px;
  background: linear-gradient(135deg, rgba(115,180,255,0.10), rgba(195,166,255,0.10));
}
.callout h3 { margin-top: 0; }
.callout p { color: var(--muted); line-height: 1.9; margin-bottom: 0; }

.setting-card .pill-row, .lookup-card .pill-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px;
}
.pill {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px;
  border-radius: 999px; background: rgba(255,255,255,0.07); border: 1px solid var(--line);
  color: #dfe8fd; font-size: 12px; font-weight: 700;
}
.pill.blue { color: var(--blue); }
.pill.green { color: var(--green); }
.pill.amber { color: var(--amber); }
.note {
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line);
  color: #dfe8fd; font-size: 14px; line-height: 1.8;
}
.timeline { display: grid; gap: 14px; }
.timeline-item {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px;
}
.timeline-item span {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(119,215,177,0.15); color: var(--green); font-weight: 800;
}
.timeline-item h3 { margin: 0 0 6px; }
.timeline-item p { margin: 0; color: var(--muted); line-height: 1.8; }

.toolbar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 18px;
}
.filter-group { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-btn {
  min-height: 38px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255,255,255,0.05); color: var(--text); font-weight: 700;
}
.filter-btn.active { background: linear-gradient(135deg, rgba(115,180,255,0.22), rgba(195,166,255,0.20)); }
.search-box input {
  width: min(360px, 100%); min-height: 42px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.05); color: var(--text); padding: 0 14px; outline: none;
}
.search-box input::placeholder { color: #92a1c3; }
.lookup-card h3 { margin-bottom: 6px; }
.lookup-card .meta { color: #d3ddf6; font-size: 14px; margin-bottom: 12px; }
.lookup-card ul {
  margin: 14px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.8;
}
.lookup-card li + li { margin-top: 8px; }
.lookup-card li strong { color: var(--text); }
.lookup-group {
  grid-column: 1 / -1;
}
.group-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 14px;
}
.group-title {
  margin: 0;
  font-size: 24px;
}
.group-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--line);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}
.inner-grid {
  margin-bottom: 8px;
}
.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 28px; border-radius: 18px;
  background: rgba(255,255,255,0.04); border: 1px dashed var(--line); color: var(--muted);
}

.faq-list { display: grid; gap: 14px; }
.faq-list details { border-radius: 18px; padding: 18px 20px; }
.faq-list summary { cursor: pointer; font-weight: 700; }
.faq-list p { color: var(--muted); line-height: 1.8; margin: 14px 0 0; }
.media-card { text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.media-card:hover { transform: translateY(-2px); border-color: rgba(115,180,255,0.32); }
.sources {
  display: grid; gap: 12px;
}
.sources a {
  display: block; text-decoration: none; padding: 16px 18px; border-radius: 16px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: #dfe7ff;
}
.sources a:hover { border-color: rgba(115,180,255,0.28); }
.site-footer { padding: 22px 0 36px; }
.footer-wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted);
}

@media (max-width: 1024px) {
  .hero-grid, .grid-5, .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .hero-grid, .grid-5, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding-top: 52px; }
  .hero-panel { order: -1; }
  .toolbar { align-items: stretch; }
  .search-box input { width: 100%; }
}
