:root {
  --bg: #08111f;
  --bg-soft: #eff5ff;
  --card: rgba(255, 255, 255, 0.9);
  --card-solid: #ffffff;
  --card-soft: #f5f8ff;
  --text: #132238;
  --muted: #61748d;
  --border: rgba(170, 194, 227, 0.45);
  --primary: #2b78f6;
  --primary-dark: #1657be;
  --primary-soft: #eaf2ff;
  --warning: #d4af37;
  --silver: #9e9e9e;
  --bronze: #a87544;
  --shadow: 0 18px 50px rgba(10, 31, 61, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(91, 147, 255, 0.16), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(95, 233, 255, 0.12), transparent 20%),
    linear-gradient(180deg, #eef4ff 0%, #f9fbff 36%, #f4f7fd 100%);
  color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.7;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.site-shell--narrow {
  max-width: 820px;
}

.hero,
.page-header,
.info-card,
.content-card,
.progress-card,
.question-card,
.result-card,
.share-box,
.site-footer {
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero,
.page-header,
.info-card,
.content-card,
.progress-card,
.question-card,
.result-card,
.share-box,
.site-footer,
.faq-item {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 22px;
  border-radius: var(--radius-xl);
  margin-top: 12px;
}

.hero--rich {
  display: grid;
  gap: 26px;
  background:
    radial-gradient(circle at 20% 20%, rgba(97, 164, 255, 0.3), transparent 22%),
    radial-gradient(circle at 85% 15%, rgba(255, 214, 112, 0.15), transparent 18%),
    linear-gradient(135deg, #091629 0%, #10284d 48%, #173867 100%);
  color: #fff;
}

.hero--rich::before,
.hero--rich::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero--rich::before {
  width: 320px;
  height: 320px;
  right: -120px;
  top: -100px;
  background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 68%);
}

.hero--rich::after {
  width: 220px;
  height: 220px;
  left: -80px;
  bottom: -90px;
  background: radial-gradient(circle, rgba(95, 193, 255, 0.2) 0%, rgba(95,193,255,0) 72%);
}

.hero__content,
.hero__visual,
.notice--hero {
  position: relative;
  z-index: 1;
}

.hero__badge,
.result-card__meta,
.label-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero__badge {
  background: rgba(255, 255, 255, 0.14);
  color: #eaf3ff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.result-card__meta,
.label-chip {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.hero h1,
.page-header h1 {
  margin: 16px 0 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.25;
}

.hero__lead,
.page-header .muted {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.hero--rich .hero__lead {
  color: rgba(235, 244, 255, 0.88);
}

.hero__chips,
.hero__actions,
.question-actions,
.share-actions,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__chips {
  margin-top: 20px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255,255,255,0.14);
  color: #eef5ff;
  font-size: 0.9rem;
  font-weight: 600;
}

.hero__actions {
  margin-top: 26px;
}

.hero__content--simple {
  text-align: center;
}

.hero__content--simple .hero__actions {
  justify-content: center;
}

.hero__visual {
  display: grid;
  gap: 14px;
  align-content: start;
}

.hero-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.08));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 26px;
  padding: 22px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.hero-panel__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #cfe0ff;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-panel__list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.hero-panel__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
}

.hero-panel__list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd86b, #ffb347);
  box-shadow: 0 0 0 6px rgba(255, 216, 107, 0.16);
}

.hero-floating {
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 14px 30px rgba(7, 16, 33, 0.2);
}

.hero-floating--gold {
  background: linear-gradient(135deg, #f4d56e, #caa43d);
  color: #3c2e00;
}

.hero-floating--blue {
  margin-left: auto;
  background: linear-gradient(135deg, #dce9ff, #8fc1ff);
  color: #123b7a;
}

.hero-floating--soft {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255,255,255,0.16);
  color: #edf5ff;
}

.notice {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.notice--strong {
  background: rgba(247, 251, 255, 0.95);
  border: 1px solid #cfe1fb;
}

.notice--hero {
  color: #183250;
}

.notice--inline {
  background: #f7fbff;
  border: 1px dashed #bfd7fa;
}

.notice--quiz-bottom {
  margin-top: 16px;
}

.card-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.card-grid--top {
  grid-template-columns: 1fr;
}

.info-card,
.content-card,
.share-box,
.progress-card,
.question-card,
.result-card,
.site-footer,
.page-header,
.faq-item {
  background: var(--card);
  border-radius: var(--radius-lg);
}

.info-card,
.content-card,
.share-box,
.progress-card,
.question-card,
.result-card,
.site-footer,
.page-header {
  padding: 22px 18px;
}

.info-card--accent {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(242,247,255,0.92));
}

.info-card--soft,
.content-card--soft {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,250,255,0.92));
}

.page-header {
  margin-top: 12px;
  border-radius: 28px;
}

.page-header--result {
  margin-bottom: 18px;
}

.content-section {
  margin-top: 20px;
}

.content-section--muted .result-card {
  background: linear-gradient(180deg, rgba(250,252,255,0.95), rgba(244,248,255,0.92));
}

.content-section--compact {
  margin-bottom: 22px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

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

.check-list {
  margin: 12px 0 0;
  padding-left: 1.2rem;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
}

.quiz-layout {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.progress-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 700;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #e1ecfb;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary) 0%, #7db5ff 100%);
  transition: width 0.25s ease;
}

.question-card__number {
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-weight: 800;
}

.question-card h2 {
  margin: 0 0 18px;
  font-size: 1.45rem;
  line-height: 1.45;
}

.options-list {
  display: grid;
  gap: 12px;
}

.option-card {
  position: relative;
}

.option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-card label {
  display: block;
  padding: 16px 16px 16px 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.option-card label::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #8ea9cc;
  background: #fff;
}

.option-card input:checked + label {
  border-color: #83b8ff;
  box-shadow: 0 12px 26px rgba(23, 105, 210, 0.12);
  background: linear-gradient(180deg, #f4f9ff 0%, #eaf3ff 100%);
  transform: translateY(-1px);
}

.option-card input:checked + label::before {
  border-color: var(--primary);
  background: radial-gradient(circle at center, var(--primary) 0 45%, #fff 48% 100%);
}

.question-actions {
  margin-top: 20px;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, #0f5ac2 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(23, 105, 210, 0.24);
}

.btn--secondary {
  background: linear-gradient(135deg, #eef5ff 0%, #dce9ff 100%);
  color: var(--primary-dark);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(210, 223, 245, 0.85);
  color: var(--text);
}

.hero--rich .btn--ghost {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.18);
}

.btn--large {
  min-width: 180px;
  padding: 15px 24px;
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.results-list {
  display: grid;
  gap: 16px;
}

.result-card {
  position: relative;
  overflow: hidden;
}

.result-card__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.rank-badge {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

.rank-badge--1 {
  background: var(--warning);
}

.rank-badge--2 {
  background: var(--silver);
}

.rank-badge--3 {
  background: var(--bronze);
}

.result-card__title h3 {
  margin: 4px 0 4px;
  font-size: 1.35rem;
}

.result-card__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 12px;
}

.metric-chip {
  padding: 8px 11px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 700;
}

.result-card p {
  margin: 0 0 12px;
  line-height: 1.95;
}

.result-card__section-title {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 0.04em;
}

.result-card__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  text-align: center;
}

.score-line {
  font-weight: 700;
  color: var(--muted);
}

.notice--result-bottom {
  margin-top: 18px;
}

.share-box {
  text-align: center;
}

.text-link {
  font-weight: 700;
}

.site-footer {
  margin-top: 24px;
  background: rgba(255,255,255,0.84);
}

.site-footer__disclaimer {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-nav a {
  font-weight: 700;
}

.legal-card h2 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

@media (min-width: 768px) {
  .site-shell {
    padding: 30px 20px 56px;
  }

  .hero--rich {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    align-items: center;
    padding: 38px 34px;
  }

  .card-grid--top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .page-header {
    padding: 36px 32px;
  }

  .info-card,
  .content-card,
  .share-box,
  .progress-card,
  .question-card,
  .result-card,
  .site-footer {
    padding: 28px 24px;
  }

  .result-card__header {
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
