:root {
  --bg-1: #f7fbff;
  --bg-2: #edf5ff;
  --ink: #14213d;
  --muted: #5e6b85;
  --line: #d8e8f5;
  --card: #ffffff;
  --brand: #2f78ff;
  --brand-dark: #1455f2;
  --accent: #74a8ff;
  --accent-deep: #2a67ff;
  --accent-blue: #e1f5fe;
  --accent-pink: #ffebee;
  --success: #4d8dff;
  --error: #ef7f73;
  --navy: #0d1b44;
  --cream: #eef5ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "M PLUS 1p", "Noto Sans JP", sans-serif;
  background:
    radial-gradient(circle at 10% 10%, #edf4ff 0, #edf4ff00 22%),
    radial-gradient(circle at 90% 0%, #dff1ff 0, #dff1ff00 24%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  min-height: 100vh;
  position: relative;
  line-height: 1.8;
}

.site-header {
  width: 100%;
  margin: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 16px 0 8px;
  background:
    linear-gradient(180deg, rgba(247, 250, 255, 0.95), rgba(247, 250, 255, 0.78));
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1120px, calc(100vw - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 16px 42px rgba(72, 109, 180, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
}

.header-nav {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: #344567;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.header-nav a[aria-current="page"] {
  background: rgba(47, 120, 255, 0.1);
  color: #2a67ff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--navy);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2f78ff, #1455f2);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(34, 103, 255, 0.28);
}

.brand-text,
.desktop-brand-text,
.footer-brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong,
.desktop-brand-text strong,
.footer-brand-text strong {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
}

.brand-text small,
.desktop-brand-text small,
.footer-brand-text small {
  color: #2a67ff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}

.header-cta {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(47, 120, 255, 0.08);
  border: 1px solid rgba(42, 103, 255, 0.18);
  color: #2a67ff;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.menu-toggle {
  width: 44px;
  height: 40px;
  border: 1px solid rgba(42, 103, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  gap: 4px;
  align-content: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(77, 113, 188, 0.08);
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 999px;
}

.mobile-menu {
  width: min(1120px, calc(100vw - 48px));
  margin: 8px auto 0;
  padding: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 40px rgba(72, 109, 180, 0.12);
}

.mobile-menu a {
  display: block;
  padding: 12px 14px;
  color: #0d1b44;
  text-decoration: none;
  font-weight: 700;
  border-radius: 14px;
}

.mobile-menu a[aria-current="page"] {
  background: rgba(47, 120, 255, 0.08);
  color: #2a67ff;
}

.container {
  width: min(440px, calc(100vw - 48px));
  margin: 16px auto 40px;
  display: grid;
  gap: 18px;
}

.breadcrumb {
  margin: 2px 0 -2px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li:not(:last-child)::after {
  content: ">";
  color: #97a682;
  font-size: 0.72rem;
}

.breadcrumb a,
.breadcrumb span {
  color: inherit;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--brand-dark);
}

#reset-hidden-items {
  margin-bottom: 10px;
}

.grid {
  display: grid;
  gap: 16px;
}

.two-col {
  grid-template-columns: 1fr;
}

.card {
  background: var(--card);
  border: 2px solid #ffffff;
  border-radius: 28px;
  padding: 22px 18px;
  box-shadow:
    0 0 0 3px rgba(47, 120, 255, 0.08),
    0 18px 34px rgba(74, 113, 199, 0.12);
}

.hero h1,
.quiz-head h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.75rem, 7.2vw, 2.25rem);
  line-height: 1.2;
  text-align: center;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.lead {
  margin: 0;
  color: var(--brand-dark);
  font-weight: 600;
  text-align: center;
}

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 12% 14%, #edf4ff 0, #edf4ff00 20%),
    radial-gradient(circle at 92% 12%, #e1f0ff 0, #e1f0ff00 24%),
    linear-gradient(180deg, #ffffff, #f6faff);
}

.hero-kicker {
  margin: 0;
  color: var(--brand-dark);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-blue);
  color: var(--brand-dark);
  font-size: 0.74rem;
  font-weight: 800;
  border: 2px solid #ffffff;
  box-shadow: 0 10px 18px #cceaf41f;
}

.speech-note {
  display: inline-block;
  position: relative;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 18px;
  background: #fff;
  border: 2px solid var(--brand);
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(47, 120, 255, 0.12);
}

.speech-note::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: translateX(-50%) rotate(45deg);
}

.speech-note-center {
  display: table;
  margin-top: 18px;
  margin-left: auto;
  margin-right: auto;
}

.quiz-start {
  text-align: center;
  background: linear-gradient(180deg, #fffaf0, #ffffff);
}

.hero::after {
  display: none;
}

.hero-copy,
.section-copy {
  margin: 14px 0 0;
  color: var(--ink);
  line-height: 1.8;
  font-size: 0.94rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.hero-points span,
.section-label {
  display: inline-block;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

.hero-points span {
  padding: 8px 10px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid #e3edf9;
  color: var(--brand-dark);
  box-shadow: 0 8px 16px rgba(74, 113, 199, 0.08);
}

.hero-showcase {
  margin-top: 20px;
}

.quiz-preview {
  position: relative;
  padding: 18px 16px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #dde8f7;
  box-shadow: 0 18px 32px rgba(74, 113, 199, 0.12);
  text-align: left;
}

.quiz-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quiz-preview-label,
.quiz-preview-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.quiz-preview-label {
  background: var(--brand);
  color: #fff;
}

.quiz-preview-pill {
  background: var(--cream);
  color: #88621f;
}

.quiz-preview-question {
  margin: 14px 0 0;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.7;
}

.quiz-preview-choices {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.quiz-preview-choices span {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  border: 2px solid #e5edf9;
  background: #fbfdff;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 8px 14px rgba(74, 113, 199, 0.08);
}

.problem-section,
.process-section,
.benefit-section {
  position: relative;
  overflow: hidden;
}

.problem-section {
  background: linear-gradient(180deg, #fbfbfb, #ffffff);
}

.problem-list,
.benefit-grid {
  display: grid;
  gap: 12px;
}

.problem-item,
.benefit-item {
  padding: 18px 16px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #ececec;
  box-shadow: 0 8px 18px #00000008;
}

.problem-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.problem-item p,
.benefit-item p {
  margin: 0;
  color: var(--ink);
  font-size: 0.93rem;
  line-height: 1.7;
}

.problem-item strong,
.benefit-item strong {
  color: var(--navy);
}

.problem-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--navy);
}

.tint-pink .problem-icon {
  background: var(--accent-pink);
}

.tint-yellow .problem-icon {
  background: #edf4ff;
}

.tint-blue .problem-icon {
  background: var(--accent-blue);
}

.tint-green .problem-icon {
  background: #edf4ff;
}

.intro-section {
  background:
    radial-gradient(circle at 88% 10%, #e8f1ff 0, #e8f1ff00 18%),
    linear-gradient(180deg, #f8fbff, #ffffff);
}

.process-flow {
  display: grid;
  gap: 12px;
}

.process-card {
  position: relative;
  padding: 28px 20px 20px;
  border-radius: 28px;
  background: #f9f9f9;
  border: 2px solid #eef2e3;
  text-align: center;
}

.process-card .step-num {
  position: absolute;
  top: -16px;
  left: 16px;
  margin: 0;
}

.process-spot {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid #eef2e3;
  box-shadow: 0 8px 18px #00000008;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 0.95rem;
  font-weight: 900;
}

.process-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.04rem;
}

.process-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.process-arrow {
  text-align: center;
  color: var(--brand);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.hero-visual {
  margin: 0 auto 18px;
}

.hero-image {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin: 0 auto;
}

.top-visual {
  margin-top: 18px;
}

.top-visual-main {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 18px 14px 10px;
  background: linear-gradient(180deg, #eef8ff, #dff1ff);
  border: 2px solid var(--line);
}

.top-visual-main::before,
.top-visual-main::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: #ffffff80;
}

.top-visual-main::before {
  width: 86px;
  height: 86px;
  top: -26px;
  right: -14px;
}

.top-visual-main::after {
  width: 54px;
  height: 54px;
  left: -12px;
  bottom: -12px;
}

.top-visual-image {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 320px);
  height: auto;
  margin: 0 auto;
}

.top-visual-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.top-visual-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f7fbff;
  border: 2px solid var(--line);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-figure {
  position: relative;
  width: 180px;
  height: 148px;
  margin: 6px auto 14px;
}

.hero-figure.compact {
  width: 150px;
  height: 124px;
}

.hero-circle {
  position: absolute;
  inset: 18px 22px 0;
  border-radius: 50%;
  background: #d8efff;
}

.hero-face {
  position: absolute;
  left: 50%;
  top: 44px;
  width: 78px;
  height: 78px;
  margin-left: -39px;
  border-radius: 50%;
  background: #fff5eb;
}

.hero-hair {
  position: absolute;
  left: 10px;
  top: -8px;
  width: 58px;
  height: 34px;
  background: var(--navy);
  border-radius: 18px 18px 10px 10px;
}

.hero-eye,
.hero-smile {
  position: absolute;
  display: block;
  background: var(--navy);
}

.hero-eye {
  top: 34px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.hero-eye.left {
  left: 24px;
}

.hero-eye.right {
  right: 24px;
}

.hero-smile {
  left: 27px;
  right: 27px;
  bottom: 18px;
  height: 4px;
  border-radius: 999px;
}

.hero-board {
  position: absolute;
  right: 30px;
  top: 30px;
  width: 26px;
  height: 92px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  transform: rotate(-24deg);
  box-shadow: inset 0 0 0 3px #ffffffb5;
}

.hero-figure.compact .hero-circle {
  inset: 16px 18px 0;
}

.hero-figure.compact .hero-face {
  top: 38px;
  width: 68px;
  height: 68px;
  margin-left: -34px;
}

.hero-figure.compact .hero-board {
  height: 78px;
  right: 26px;
  top: 28px;
}

.rules h2,
.quiz-body h2,
.card h2 {
  margin: 0 0 12px;
  line-height: 1.4;
  color: var(--navy);
  text-align: center;
  font-size: 1.45rem;
}

.card ul,
.card ol,
.card li {
  color: var(--ink);
}

.rules ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
}

.feature-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.8;
  font-size: 0.93rem;
}

.feature-list.compact {
  line-height: 1.6;
}

.page-path {
  margin: 0 0 10px;
  color: var(--muted);
  text-align: center;
  font-size: 0.84rem;
}

.page-path a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.step {
  padding: 16px;
  border-radius: 16px;
  border: 2px solid var(--line);
  background: #f9fcff;
  text-align: center;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.step .step-num {
  color: #ffffff;
}

.step-num {
  width: 38px;
  height: 38px;
  margin: 0 auto 12px;
  margin-inline: auto;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  place-self: center;
  background: var(--accent);
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.section-label {
  display: block;
  width: fit-content;
  margin: 0 0 10px;
  margin-inline: auto;
  color: var(--brand-dark);
  text-align: center;
}

.accent-card {
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.section-surface {
  background:
    radial-gradient(circle at 8% 14%, #edf4ff 0, #edf4ff00 22%),
    radial-gradient(circle at 92% 12%, #e8f8ff 0, #e8f8ff00 24%),
    linear-gradient(180deg, #ffffff, #f7fbff);
}

.directory-grid,
.roadmap-grid,
.level-rows {
  display: grid;
  gap: 12px;
}

.directory-card,
.roadmap-item,
.level-row {
  padding: 14px;
  border-radius: 24px;
  border: 1px solid #ececec;
  background: #fff;
  box-shadow: 0 8px 18px #00000008;
}

.directory-card h3,
.roadmap-item strong,
.level-name {
  color: var(--navy);
}

.directory-card h3 {
  margin: 0;
  text-align: center;
  font-size: 1.08rem;
}

.directory-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.92rem;
  text-align: center;
}

.directory-kicker {
  margin: 0 0 8px;
  color: var(--brand);
  text-align: center;
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
}

.directory-levels,
.directory-actions,
.level-row-actions,
.level-switch,
.category-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.directory-levels,
.directory-actions,
.level-switch,
.category-switch {
  margin-top: 14px;
  justify-content: center;
}

.directory-levels .btn {
  min-width: 160px;
  flex: 1 1 160px;
  text-align: center;
}

.directory-levels form {
  display: flex;
  flex: 1 1 160px;
}

.level-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.level-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef8ff;
  border: 2px solid var(--line);
  font-weight: 800;
  font-size: 0.86rem;
}

.level-row-actions {
  justify-content: center;
}

.level-chip,
.category-chip {
  appearance: none;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 6px 0 #dcebf7;
}

.level-chip.active,
.category-chip.active {
  border-color: #f6d288;
  background: linear-gradient(180deg, #fff4cf, #ffe7a7);
  box-shadow: 0 6px 0 #edd18d;
}

.level-chip:disabled,
.category-chip:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

.roadmap-item strong {
  display: block;
  text-align: center;
  font-size: 1rem;
}

.roadmap-item p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
  font-size: 0.92rem;
}

.roadmap-item.active {
  background: linear-gradient(180deg, #fff9ea, #ffffff);
  border-color: #f6d288;
}

.category-panel {
  background: linear-gradient(180deg, #ffffff, #f8fcff);
}

.quote {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--cream);
  border: 2px solid #d7e7ff;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
}

.benefit-item {
  text-align: center;
}

.final-cta {
  background:
    radial-gradient(circle at 14% 14%, #edf4ff 0, #edf4ff00 24%),
    linear-gradient(160deg, #ffffff, #f5f9ff);
}

.contact-style-cta {
  border: 4px solid var(--brand);
  border-radius: 42px;
  box-shadow: 0 24px 40px rgba(47, 120, 255, 0.16);
}

.actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.final-cta-actions > form,
.final-cta-actions > a {
  flex: 1 1 220px;
  max-width: 240px;
}

.final-cta-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.share-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.mypage-summary,
.badge-grid {
  display: grid;
  gap: 12px;
}

.summary-tile,
.badge-card {
  padding: 14px;
  border-radius: 24px;
  border: 1px solid #ececec;
  background: #fff;
  box-shadow: 0 8px 18px #00000008;
}

.summary-tile {
  text-align: center;
}

.summary-tile strong,
.badge-card strong {
  display: block;
  color: var(--navy);
}

.summary-tile strong {
  font-size: 1.35rem;
}

.summary-tile span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.category-badge-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.badge-card-meta {
  font-size: 0.9rem;
}

.mypage-row-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mypage-row-actions .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.badge-track {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 2px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: #eef5fb;
  color: var(--muted);
}

.badge-chip.is-locked {
  opacity: 0.68;
}

.badge-chip.study.is-unlocked {
  background: #edf4ff;
  border-color: #9ec2ff;
  color: #1455f2;
}

.badge-chip.bronze.is-unlocked {
  background: #fff1e8;
  border-color: #e9b08f;
  color: #9b5b31;
}

.badge-chip.silver.is-unlocked {
  background: #f2f6fb;
  border-color: #bdd0e4;
  color: #56708f;
}

.badge-chip.gold.is-unlocked {
  background: #fff7d9;
  border-color: #efca58;
  color: #9a7300;
}

.result-badge-unlocks {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 2px solid #ffd36c;
  background: linear-gradient(180deg, #fff8df, #fff2c4);
  text-align: left;
}

.result-badge-unlocks strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
}

.badge-unlock-kicker {
  margin: 0 0 8px;
  color: #a67600;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.btn {
  appearance: none;
  border: 1.5px solid #d8e8f5;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 800;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(74, 113, 199, 0.12);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.btn.primary {
  border-color: #8db6ff;
  background: linear-gradient(180deg, #5f98ff, var(--brand));
  color: #fff;
  box-shadow: 0 16px 28px rgba(47, 120, 255, 0.24);
}

.btn.secondary {
  background: #f7fbff;
  color: var(--navy);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(74, 113, 199, 0.16);
}

.btn.primary:hover {
  box-shadow: 0 18px 30px rgba(20, 85, 242, 0.28);
}

.btn:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

.note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.mode-grid {
  gap: 14px;
}

.mode-card {
  position: relative;
  padding: 18px 16px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.mode-card.featured {
  border-color: #cfe0ff;
  background:
    radial-gradient(circle at 88% 12%, #edf4ff 0, #edf4ff00 24%),
    linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow:
    0 0 0 3px rgba(164, 197, 255, 0.28),
    0 18px 32px rgba(74, 113, 199, 0.16);
}

.mode-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.mode-badges span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f3f8ff;
  border: 1.5px solid #d8e8f5;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.study-term-grid {
  gap: 14px;
}

.study-term-card {
  padding: 18px 16px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.study-term-visual {
  overflow: hidden;
  margin-top: 10px;
  border-radius: 22px;
  border: 1.5px solid #e5edd7;
  background: linear-gradient(180deg, #f8fcf1, #eef8ff);
  box-shadow: inset 0 1px 0 #ffffff;
}

.study-term-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.quiz-visual {
  margin: 0 0 16px;
}

.study-term-head {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.study-term-head h3 {
  margin: 0;
}

.study-term-en {
  margin: 0;
  color: var(--brand-dark);
  text-align: center;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.study-aliases {
  margin: 12px 0 0;
  color: var(--brand-dark);
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.6;
}

.feedback {
  font-weight: 700;
  text-align: center;
}

.feedback.success {
  border-color: #97e6c8;
  background: #f2fffa;
  color: #0a7a54;
}

.feedback.error {
  border-color: #f2b6b6;
  background: #fff4f4;
  color: #9f2f2f;
}

.progress {
  margin-top: 14px;
  height: 14px;
  background: #edf5fc;
  border: 2px solid #d8e8f5;
  border-radius: 999px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--brand));
}

.choices {
  display: grid;
  gap: 12px;
}

.choice-btn {
  width: 100%;
  border: 2px solid #cfe3f5;
  border-radius: 16px;
  background: #ffffff;
  color: #113;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 14px 12px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 6px 0 #dcebf7;
}

.choice-btn:hover {
  border-color: var(--brand);
  background: #eef8ff;
}

.choice-btn.correct-answer {
  border-color: #8ed8be;
  background: #f2fff9;
  box-shadow: 0 6px 0 #bfe8d3;
}

.choice-btn.correct-answer .index {
  background: #8ed8be;
  color: #0a7a54;
}

.index {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #dff0ff;
  color: #0f6e9f;
  font-weight: 800;
  font-size: 0.92rem;
}

.result.success {
  border-color: #8ed8be;
  background: #f2fff9;
}

.result.fail {
  border-color: #f0bbbb;
  background: #fff8f8;
}

.question,
.explanation {
  margin: 10px 0 0;
  color: #24384c;
  line-height: 1.7;
}

.explanation-toggle {
  margin-top: 14px;
}

.explanation-toggle summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #f7fbff;
  color: var(--navy);
  font-weight: 700;
  text-align: center;
  box-shadow: 0 6px 0 #dcebf7;
}

.explanation-toggle summary::-webkit-details-marker {
  display: none;
}

.explanation-toggle[open] summary {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.quiz-copy,
.result-copy {
  margin: 10px 0 0;
  color: var(--brand-dark);
  text-align: center;
  line-height: 1.7;
  font-size: 0.92rem;
}

.score-total {
  margin: 10px 0 0;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.98rem;
}

.score-gain {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f2fff9;
  color: #0a7a54;
  border: 2px solid #8ed8be;
  font-size: 0.86rem;
  line-height: 1;
}

.score-breakdown {
  display: grid;
  gap: 12px;
}

.score-row {
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: #f9fcff;
}

.score-row-head,
.score-row-question,
.score-row-meta {
  margin: 0;
}

.score-row-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--navy);
  font-weight: 800;
  font-size: 0.92rem;
}

.score-row-question {
  margin-top: 8px;
  color: var(--ink);
  line-height: 1.6;
}

.score-row-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.timer {
  margin: 10px 0 0;
  color: var(--accent-deep);
  text-align: center;
  font-weight: 800;
  font-size: 0.98rem;
}

.timebar {
  width: 100%;
  height: 12px;
  margin: 12px 0 0;
  background: #edf5fc;
  border: 2px solid #d8e8f5;
  border-radius: 999px;
  overflow: hidden;
}

.timebar span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  transition: width 0.2s linear;
}

.foot-link {
  padding-bottom: 4px;
  text-align: center;
}

.foot-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: #ffffffb5;
  border: 1.5px solid #d8e8f5;
  color: #1b5f86;
  text-decoration: none;
  font-weight: 700;
}

.site-footer {
  margin-top: 40px;
  padding: 42px 24px 44px;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.16) 0, rgba(255, 255, 255, 0) 28%),
    linear-gradient(135deg, #0f54e6, #2f78ff 48%, #7cb3ff);
  color: #fff;
  border-top: none;
  border-top-left-radius: 48px;
  border-top-right-radius: 48px;
  box-shadow: 0 -10px 30px rgba(39, 95, 201, 0.14);
}

.footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0;
}

.footer-main {
  display: grid;
  gap: 26px;
}

.footer-intro {
  display: grid;
  gap: 14px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  margin: 0;
  color: #fff;
  text-decoration: none;
}

.footer-brand .brand-mark {
  box-shadow: 0 14px 28px rgba(6, 42, 122, 0.22);
}

.footer-brand-text strong {
  color: #fff;
}

.footer-brand-text small {
  color: rgba(255, 255, 255, 0.78);
}

.footer-copy {
  margin: 0;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.94rem;
  line-height: 1.85;
}

.footer-links {
  display: grid;
  gap: 18px;
}

.footer-link-group {
  display: grid;
  gap: 10px;
}

.footer-heading {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-nav {
  margin-top: 0;
  display: grid;
  gap: 8px;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.footer-nav a:hover {
  text-decoration: none;
  opacity: 0.82;
}

.footer-subnav {
  margin-top: 0;
  display: grid;
  gap: 8px;
}

.footer-subnav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.84rem;
}

.footer-subnav a:hover {
  text-decoration: none;
  opacity: 0.82;
}

.footer-note {
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
}

@media (min-width: 1180px) {
  body {
    background:
      radial-gradient(circle at 50% -12%, #d9f0ff 0, #d9f0ff00 34%),
      linear-gradient(180deg, #eaf7ff, #dff1ff);
  }

  .container,
  .site-footer {
    width: min(1120px, calc(100vw - 48px));
  }

  .site-footer {
    margin-left: auto;
    margin-right: auto;
  }

  .header-nav {
    display: inline-flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: start;
  }

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

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

.form-grid {
  display: grid;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  color: var(--navy);
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #f9fcff;
  color: var(--ink);
  font: inherit;
  line-height: 1.6;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #8fc5e9;
  box-shadow: 0 0 0 4px rgba(143, 197, 233, 0.18);
}

.field-help,
.field-error {
  margin: 0;
  font-size: 0.88rem;
}

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

.field-error {
  color: #b53b3b;
  font-weight: 700;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.8;
}

.form-note a {
  color: var(--brand-dark);
  font-weight: 700;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.container.home-page {
  width: min(1120px, calc(100vw - 48px));
  gap: 28px;
}

.container.subpage-page {
  width: min(1120px, calc(100vw - 48px));
  gap: 24px;
}

.subpage-page .breadcrumb {
  margin: 0;
}

.subpage-page .hero,
.subpage-page .rules,
.subpage-page .section-surface,
.subpage-page .problem-section,
.subpage-page .benefit-section,
.subpage-page .accent-card,
.subpage-page .process-section,
.subpage-page .final-cta,
.subpage-page .card {
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 16px 48px rgba(71, 104, 173, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.subpage-page .hero,
.subpage-page .rules,
.subpage-page .section-surface,
.subpage-page .problem-section,
.subpage-page .benefit-section,
.subpage-page .accent-card,
.subpage-page .process-section,
.subpage-page .final-cta {
  padding: 34px 30px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
}

.subpage-page .hero {
  background:
    radial-gradient(circle at 88% 16%, rgba(216, 232, 255, 0.72) 0, rgba(216, 232, 255, 0) 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 248, 255, 0.92));
}

.subpage-page .hero h1,
.subpage-page .card h2 {
  color: #0d1b44;
}

.subpage-page .hero h1 {
  text-align: left;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
}

.subpage-page .lead,
.subpage-page .hero-copy,
.subpage-page .section-copy,
.subpage-page .quote,
.subpage-page .note,
.subpage-page .problem-item p,
.subpage-page .benefit-item p,
.subpage-page .level-row p,
.subpage-page .process-card p,
.subpage-page .directory-card p,
.subpage-page .badge-card p {
  color: #4f5e79;
}

.subpage-page .hero-copy,
.subpage-page .section-copy {
  max-width: 720px;
}

.subpage-page .hero .hero-badge {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(42, 103, 255, 0.18);
  color: #2a67ff;
  box-shadow: 0 14px 28px rgba(70, 112, 196, 0.08);
}

.subpage-page .hero-kicker,
.subpage-page .section-label {
  color: #2a67ff;
}

.subpage-page .hero-points span,
.subpage-page .mode-badges span {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(212, 225, 246, 0.92);
  color: #33507f;
}

.subpage-page .speech-note {
  border-color: rgba(42, 103, 255, 0.18);
  color: #2a67ff;
  box-shadow: 0 14px 28px rgba(70, 112, 196, 0.08);
}

.subpage-page .speech-note::after {
  border-right-color: rgba(42, 103, 255, 0.18);
  border-bottom-color: rgba(42, 103, 255, 0.18);
}

.subpage-page .problem-list,
.subpage-page .benefit-grid,
.subpage-page .directory-grid,
.subpage-page .level-rows,
.subpage-page .mypage-summary,
.subpage-page .badge-grid {
  gap: 16px;
}

.subpage-page .problem-item,
.subpage-page .benefit-item,
.subpage-page .directory-card,
.subpage-page .level-row,
.subpage-page .summary-tile,
.subpage-page .badge-card,
.subpage-page .process-card,
.subpage-page .home-mini-card {
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.94));
  border: 1px solid rgba(214, 227, 247, 0.8);
  box-shadow: 0 14px 36px rgba(85, 122, 188, 0.08);
}

.subpage-page .problem-item,
.subpage-page .benefit-item,
.subpage-page .directory-card,
.subpage-page .level-row,
.subpage-page .summary-tile,
.subpage-page .badge-card,
.subpage-page .process-card {
  padding: 24px 22px;
}

.subpage-page .actions {
  justify-content: flex-start;
}

.subpage-page .final-cta {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0) 24%),
    linear-gradient(135deg, #1760f0, #2f78ff 46%, #5e98ff 100%);
}

.subpage-page .final-cta h2,
.subpage-page .final-cta .section-copy,
.subpage-page .final-cta .section-label {
  color: #fff;
}

.subpage-page .final-cta .speech-note {
  background: rgba(255, 255, 255, 0.96);
}

.subpage-page .final-cta .btn:not(.primary) {
  background: rgba(255, 255, 255, 0.96);
  color: #1760f0;
  border-color: rgba(255, 255, 255, 0.98);
}

.subpage-page .final-cta .btn.primary {
  background: linear-gradient(135deg, #2f78ff, #1455f2);
  border-color: rgba(255, 255, 255, 0.22);
}

.subpage-page .feature-list.compact,
.subpage-page .feature-list {
  color: #4f5e79;
}

.home-page .section-label {
  color: #2a67ff;
  letter-spacing: 0.14em;
}

.home-page h2 {
  margin-bottom: 0;
}

.home-hero,
.home-section,
.home-cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 16px 60px rgba(71, 104, 173, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
}

.home-hero {
  display: grid;
  gap: 34px;
  align-items: center;
  padding: 38px 34px;
  background:
    radial-gradient(circle at 15% 10%, rgba(114, 168, 255, 0.16) 0, rgba(114, 168, 255, 0) 28%),
    radial-gradient(circle at 88% 28%, rgba(185, 213, 255, 0.5) 0, rgba(185, 213, 255, 0.12) 32%, rgba(185, 213, 255, 0) 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 249, 255, 0.88));
}

.home-kicker {
  margin: 14px 0 0;
  color: #2a67ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.home-pill {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(42, 103, 255, 0.35);
  color: #2a67ff;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 12px 24px rgba(70, 112, 196, 0.08);
}

.home-hero-copy h1 {
  margin: 16px 0 0;
  color: #0d1b44;
  font-size: clamp(2.4rem, 5vw, 4.35rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  text-align: left;
}

.home-lead {
  margin: 18px 0 0;
  color: #33415f;
  font-size: 1.02rem;
  line-height: 1.85;
}

.home-description {
  max-width: 580px;
  margin: 14px 0 0;
  color: #42506e;
  font-size: 1rem;
  line-height: 1.95;
}

.home-hero-actions {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.home-cta {
  min-height: 68px;
  justify-content: center;
  border-radius: 20px;
  font-size: 1.12rem;
  box-shadow: 0 18px 40px rgba(49, 95, 207, 0.12);
}

.home-page .btn.primary.home-cta,
.home-page .home-cta-panel-btn {
  border-color: #2a67ff;
  background: linear-gradient(135deg, #2f78ff, #1455f2);
  box-shadow: 0 18px 36px rgba(34, 103, 255, 0.28);
}

.home-page .btn.primary.home-cta:hover,
.home-page .home-cta-panel-btn:hover {
  box-shadow: 0 22px 42px rgba(34, 103, 255, 0.32);
}

@media (min-width: 641px) {
  .home-hero-copy h1,
  .subpage-page .hero h1 {
    text-align: center;
  }
}

.home-cta.ghost {
  border-color: rgba(42, 103, 255, 0.26);
  color: #2a67ff;
  background: rgba(255, 255, 255, 0.85);
}

.home-hero-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.hero-orbit {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(202, 223, 255, 0.7), rgba(202, 223, 255, 0.08) 65%, transparent 70%);
}

.orbit-lg {
  width: min(100%, 520px);
  aspect-ratio: 1 / 1;
  right: -8%;
  top: 0;
}

.orbit-sm {
  width: 180px;
  aspect-ratio: 1 / 1;
  left: 6%;
  bottom: 8%;
}

.hero-book {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  transform: rotate(-7deg);
}

.hero-book.compact {
  transform: rotate(-5deg) scale(0.92);
}

.hero-book-page {
  position: relative;
  width: 168px;
  height: 212px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #edf4ff);
  box-shadow:
    0 18px 34px rgba(74, 113, 199, 0.18),
    inset 0 -10px 22px rgba(160, 189, 242, 0.22);
}

.hero-book-page.left {
  transform: perspective(420px) rotateY(22deg);
}

.hero-book-page.right {
  transform: perspective(420px) rotateY(-22deg);
}

.hero-book-page span {
  position: absolute;
  left: 24px;
  right: 24px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(117, 149, 215, 0.38), rgba(117, 149, 215, 0.18));
}

.hero-book-page span:nth-child(1) {
  top: 44px;
}

.hero-book-page span:nth-child(2) {
  top: 82px;
}

.hero-book-page span:nth-child(3) {
  top: 120px;
}

.hero-book-page span:nth-child(4) {
  top: 158px;
}

.hero-book-shadow {
  position: absolute;
  left: 50%;
  bottom: -24px;
  width: 250px;
  height: 34px;
  margin-left: -125px;
  border-radius: 999px;
  background: rgba(118, 151, 221, 0.22);
  filter: blur(12px);
}

.hero-check-card {
  position: absolute;
  right: 6%;
  bottom: 18%;
  z-index: 3;
  width: 150px;
  padding: 18px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 34px rgba(70, 108, 182, 0.16);
  transform: rotate(8deg);
}

.hero-check-card span {
  display: block;
  position: relative;
  height: 16px;
  margin-top: 14px;
}

.hero-check-card span:first-child {
  margin-top: 0;
}

.hero-check-card span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2f78ff;
  box-shadow: inset 0 0 0 4px #dce9ff;
}

.hero-check-card span::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 0;
  top: 4px;
  height: 8px;
  border-radius: 999px;
  background: rgba(104, 135, 205, 0.24);
}

.hero-dot-grid {
  position: absolute;
  width: 116px;
  height: 92px;
  background-image: radial-gradient(rgba(78, 128, 244, 0.32) 1.6px, transparent 1.6px);
  background-size: 14px 14px;
}

.dots-top {
  top: 10%;
  right: 2%;
}

.dots-bottom {
  left: 8%;
  bottom: 8%;
}

.home-section {
  padding: 36px 32px;
}

.home-section-head {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  margin-bottom: 26px;
}

.home-section-head .section-label,
.home-section-head h2 {
  margin: 0;
}

.home-section-head h2 {
  text-align: center;
  color: #0d1b44;
}

.home-feature-grid,
.home-pack-grid,
.home-benefit-grid {
  display: grid;
  gap: 18px;
}

.home-feature-card,
.home-pack-card,
.home-mini-card,
.home-news-card {
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.94));
  border: 1px solid rgba(214, 227, 247, 0.8);
  box-shadow: 0 14px 36px rgba(85, 122, 188, 0.08);
}

.home-feature-card,
.home-pack-card,
.home-mini-card {
  padding: 28px 22px;
  text-align: center;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  margin: 0 auto 16px;
  font-size: 1.08rem;
  font-weight: 800;
  color: #0d1b44;
}

.feature-icon.blue {
  background: linear-gradient(180deg, rgba(219, 233, 255, 0.95), rgba(237, 244, 255, 0.95));
}

.feature-icon.purple {
  background: linear-gradient(180deg, rgba(238, 226, 255, 0.95), rgba(246, 240, 255, 0.95));
}

.feature-icon.green {
  background: linear-gradient(180deg, rgba(225, 244, 232, 0.95), rgba(240, 251, 244, 0.95));
}

.feature-icon.soft {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  font-size: 1rem;
}

.home-feature-card h3,
.home-pack-card h3,
.home-step-card h3,
.home-mini-card strong {
  margin: 0 0 10px;
  color: #0d1b44;
}

.home-feature-card p,
.home-pack-card p,
.home-mini-card p,
.home-news-card p,
.home-step-card p,
.home-cta-copy p {
  margin: 0;
  color: #4f5e79;
  line-height: 1.85;
}

.home-step-grid {
  display: grid;
  gap: 18px;
}

.home-step-card {
  position: relative;
  padding: 28px 22px 24px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 255, 0.95));
  border: 1px solid rgba(214, 227, 247, 0.8);
  box-shadow: 0 14px 36px rgba(85, 122, 188, 0.08);
  text-align: center;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 58px;
  border-radius: 999px;
  margin-bottom: 18px;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 16px 28px rgba(73, 109, 199, 0.18);
}

.step-badge.blue {
  background: linear-gradient(135deg, #2f78ff, #2a67ff);
}

.step-badge.purple {
  background: linear-gradient(135deg, #9467ff, #7f59f2);
}

.step-badge.green {
  background: linear-gradient(135deg, #5cc77a, #46b769);
}

.step-visual {
  position: relative;
  width: 148px;
  height: 112px;
  margin: 0 auto 20px;
}

.step-visual span {
  position: absolute;
}

.step-visual.laptop::before,
.step-visual.paper::before,
.step-visual.chart::before {
  content: "";
  position: absolute;
  inset: 0;
}

.step-visual.laptop::before {
  border-radius: 16px;
  background: linear-gradient(180deg, #eef4ff, #ffffff);
  border: 2px solid #d5e3ff;
  box-shadow: 0 12px 28px rgba(71, 109, 189, 0.1);
}

.step-visual.laptop span:nth-child(1) {
  left: 18px;
  right: 18px;
  top: 18px;
  height: 12px;
  border-radius: 999px;
  background: rgba(72, 116, 219, 0.18);
}

.step-visual.laptop span:nth-child(2) {
  left: 18px;
  right: 42px;
  top: 42px;
  height: 12px;
  border-radius: 999px;
  background: rgba(72, 116, 219, 0.12);
}

.step-visual.laptop span:nth-child(3) {
  left: 32px;
  bottom: -12px;
  width: 84px;
  height: 10px;
  border-radius: 999px;
  background: rgba(72, 116, 219, 0.16);
}

.step-visual.paper::before {
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #eff4ff);
  box-shadow: 0 12px 28px rgba(71, 109, 189, 0.1);
  transform: rotate(-8deg);
}

.step-visual.paper span {
  left: 24px;
  right: 24px;
  height: 10px;
  border-radius: 999px;
  background: rgba(127, 89, 242, 0.18);
}

.step-visual.paper span:nth-child(1) {
  top: 24px;
}

.step-visual.paper span:nth-child(2) {
  top: 50px;
}

.step-visual.paper span:nth-child(3) {
  top: 76px;
}

.step-visual.chart::before {
  background:
    linear-gradient(180deg, transparent 0 68%, rgba(81, 173, 101, 0.16) 68% 100%),
    linear-gradient(90deg, transparent 0 14%, rgba(81, 173, 101, 0.18) 14% 22%, transparent 22% 38%, rgba(81, 173, 101, 0.28) 38% 46%, transparent 46% 62%, rgba(81, 173, 101, 0.38) 62% 70%, transparent 70%);
  border-radius: 18px;
}

.step-visual.chart span:nth-child(1) {
  left: 12px;
  right: 12px;
  top: 20px;
  height: 3px;
  background: linear-gradient(90deg, #5cc77a, #46b769);
  transform: rotate(18deg);
  transform-origin: left center;
}

.step-visual.chart span:nth-child(2) {
  width: 14px;
  height: 14px;
  left: 18px;
  top: 18px;
  border-radius: 50%;
  background: #5cc77a;
}

.step-visual.chart span:nth-child(3) {
  width: 14px;
  height: 14px;
  right: 22px;
  top: 38px;
  border-radius: 50%;
  background: #46b769;
}

.step-arrow {
  display: none;
  align-items: center;
  justify-content: center;
  color: #2a67ff;
  font-size: 3rem;
  font-weight: 400;
}

.home-news-card {
  display: grid;
  gap: 20px;
  padding: 28px 24px;
  justify-items: start;
}

.home-cta-panel {
  display: grid;
  gap: 22px;
  align-items: center;
  padding: 40px 34px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0) 24%),
    radial-gradient(circle at 86% 88%, rgba(157, 193, 255, 0.32) 0, rgba(157, 193, 255, 0) 28%),
    linear-gradient(135deg, #1760f0, #2f78ff 46%, #5e98ff 100%);
}

.home-cta-copy h2 {
  color: #fff;
  text-align: left;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.25;
}

.home-cta-copy p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 420px;
}

.home-cta-panel-btn {
  margin-top: 24px;
  min-height: 62px;
  width: min(320px, 100%);
  justify-content: center;
  border-radius: 20px;
  font-size: 1.02rem;
  background: #fff;
  color: #1760f0;
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 32px rgba(9, 46, 133, 0.18);
}

.home-cta-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 250px;
}

.home-cta-panel .section-label {
  color: rgba(255, 255, 255, 0.7);
}

.cta-check-card {
  right: 2%;
  bottom: 14%;
  width: 166px;
  background: rgba(255, 255, 255, 0.96);
  transform: rotate(7deg);
}

.cta-sparkle {
  position: absolute;
  width: 28px;
  height: 28px;
  transform: rotate(45deg);
}

.cta-sparkle::before,
.cta-sparkle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
}

.cta-sparkle::before {
  transform: scaleY(0.22);
}

.cta-sparkle::after {
  transform: scaleX(0.22);
}

.sparkle-a {
  top: 16%;
  right: 10%;
}

.sparkle-b {
  top: 24%;
  right: 2%;
  width: 18px;
  height: 18px;
}

@media (max-width: 640px) {
  body {
    background:
      radial-gradient(circle at 82% 0%, rgba(223, 236, 255, 0.9) 0, rgba(223, 236, 255, 0) 30%),
      linear-gradient(180deg, #f8fbff 0%, #eef5ff 52%, #f8fbff 100%);
  }

  .container {
    margin: 20px auto;
  }

  .container.home-page {
    width: min(100vw - 28px, 1120px);
    gap: 20px;
  }

  .container.subpage-page {
    width: min(100vw - 28px, 1120px);
    gap: 18px;
  }

  .card {
    border-radius: 14px;
    padding: 16px;
  }

  .subpage-page .hero,
  .subpage-page .rules,
  .subpage-page .section-surface,
  .subpage-page .problem-section,
  .subpage-page .benefit-section,
  .subpage-page .accent-card,
  .subpage-page .process-section,
  .subpage-page .final-cta {
    padding: 24px 20px;
    border-radius: 28px;
  }

  .subpage-page .hero h1,
  .subpage-page .card h2 {
    text-align: left;
  }

  .subpage-page .actions {
    justify-content: stretch;
  }

  .subpage-page .actions .btn,
  .subpage-page .actions form,
  .subpage-page .actions form .btn {
    width: 100%;
  }

  .subpage-page .directory-levels form,
  .subpage-page .final-cta-actions form {
    width: 100%;
  }

  .choice-btn {
    padding: 11px;
  }

  .home-hero,
  .home-section,
  .home-cta-panel {
    border-radius: 28px;
  }

  .home-hero,
  .home-section,
  .home-cta-panel {
    padding: 24px 20px;
  }

  .home-hero {
    background:
      radial-gradient(circle at 78% 12%, rgba(219, 234, 255, 0.72) 0, rgba(219, 234, 255, 0) 28%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 255, 0.94));
  }

  .home-hero-visual {
    min-height: 280px;
  }

  .hero-book-page {
    width: 118px;
    height: 152px;
    border-radius: 18px;
  }

  .hero-book-page span {
    left: 18px;
    right: 18px;
    height: 6px;
  }

  .hero-book-page span:nth-child(1) {
    top: 30px;
  }

  .hero-book-page span:nth-child(2) {
    top: 56px;
  }

  .hero-book-page span:nth-child(3) {
    top: 82px;
  }

  .hero-book-page span:nth-child(4) {
    top: 108px;
  }

  .hero-check-card {
    width: 110px;
    padding: 12px;
  }

  .home-hero-copy h1 {
    font-size: clamp(2rem, 10vw, 2.9rem);
  }

  .home-hero-actions {
    gap: 12px;
  }

  .home-cta,
  .home-cta-panel-btn {
    width: 100%;
    min-height: 64px;
    font-size: 1.05rem;
    font-weight: 800;
  }

  .home-page .btn.primary.home-cta {
    box-shadow:
      0 18px 34px rgba(20, 85, 242, 0.34),
      0 0 0 1px rgba(255, 255, 255, 0.24) inset;
  }

  .home-cta.ghost {
    background: #ffffff;
    border-color: rgba(42, 103, 255, 0.28);
    box-shadow: 0 14px 28px rgba(46, 93, 187, 0.12);
  }

  .home-cta-copy h2 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .home-cta-panel-btn {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #1760f0;
    border-color: rgba(255, 255, 255, 0.98);
    box-shadow:
      0 18px 34px rgba(9, 46, 133, 0.22),
      0 0 0 1px rgba(255, 255, 255, 0.22) inset;
  }

  .cta-check-card {
    width: 118px;
    right: 0;
    bottom: 10%;
  }
}

@media (min-width: 641px) {
  .subpage-page .hero,
  .subpage-page .rules,
  .subpage-page .section-surface,
  .subpage-page .problem-section,
  .subpage-page .benefit-section,
  .subpage-page .accent-card,
  .subpage-page .process-section,
  .subpage-page .final-cta {
    padding: 38px 34px;
  }

  .subpage-page .problem-list,
  .subpage-page .benefit-grid,
  .subpage-page .mypage-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .subpage-page .directory-grid,
  .subpage-page .level-rows,
  .subpage-page .badge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subpage-page .study-term-grid,
  .subpage-page .mode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    padding: 54px 48px;
  }

  .home-feature-grid,
  .home-pack-grid,
  .home-benefit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-step-grid {
    grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr);
    align-items: center;
  }

  .step-arrow {
    display: flex;
  }

  .home-cta-panel {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
    padding: 46px 38px;
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mypage-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .badge-grid {
    grid-template-columns: 1fr;
  }
}
