:root {
  --navy-950: #071329;
  --navy-900: #0b1737;
  --navy-850: #102044;
  --navy-800: #172b52;
  --navy-700: #233d68;
  --blue-600: #2876e8;
  --blue-500: #4c91f2;
  --blue-100: #e8f2ff;
  --yellow-500: #f4c84b;
  --yellow-300: #ffe184;
  --yellow-100: #fff7d6;
  --green-600: #137a5a;
  --green-500: #1a9a70;
  --green-100: #e4f7ee;
  --ink: #13233f;
  --ink-soft: #52627b;
  --paper: #ffffff;
  --mist: #f2f6fb;
  --line: #d9e2ed;
  --focus: #ffd95e;
  --shadow-soft: 0 18px 55px rgba(3, 15, 38, 0.13);
  --shadow-small: 0 8px 24px rgba(5, 25, 57, 0.1);
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --header-height: 68px;
  color-scheme: only light;
  font-family: "Noto Sans JP", sans-serif;
  font-synthesis: none;
  line-height: 1.7;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background: var(--navy-950);
  color: var(--ink);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

svg {
  display: block;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

p,
h1,
h2,
h3,
ol {
  margin: 0;
}

[hidden] {
  display: none !important;
}

:lang(en),
[lang="en"] {
  font-family: "Manrope", sans-serif;
}

:lang(ja) span.wb {
  all: unset;
  display: inline-block;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-xs);
  background: var(--paper);
  color: var(--navy-900);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(7, 19, 41, 0.92);
  color: var(--paper);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  min-height: var(--header-height);
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand__mark {
  width: 30px;
  color: var(--yellow-500);
}

.stock-counter {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #dbe7f8;
  font-family: "Manrope", "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.stock-counter svg {
  width: 19px;
  color: var(--yellow-500);
}

.stock-counter strong {
  color: var(--paper);
  font-size: 16px;
  font-weight: 800;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 35%, rgba(44, 116, 222, 0.2), transparent 28%),
    linear-gradient(140deg, var(--navy-950) 0%, var(--navy-900) 54%, #102b52 100%);
  color: var(--paper);
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 68px 68px;
  content: "";
  mask-image: linear-gradient(to right, #000, transparent 74%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: 650px;
  margin-inline: auto;
  padding: 72px 0 84px;
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--yellow-300);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.eyebrow__line {
  width: 26px;
  height: 2px;
  background: var(--yellow-500);
}

.hero h1 {
  font-size: clamp(40px, 5.2vw, 60px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.26;
}

.hero__lead {
  margin-top: 26px;
  color: #d7e1f0;
  font-size: 17px;
  line-height: 1.9;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 56px;
  margin-top: 34px;
  padding: 0 22px 0 26px;
  border-radius: var(--radius-sm);
  background: var(--yellow-500);
  color: var(--navy-950);
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.primary-link svg {
  width: 21px;
  transition: transform 180ms ease;
}

.primary-link:hover {
  background: var(--yellow-300);
  transform: translateY(-2px);
}

.primary-link:hover svg {
  transform: translateX(3px);
}

.hero__visual {
  position: relative;
  min-width: 0;
}

.hero__image-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.hero__image-wrap::after {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  content: "";
  pointer-events: none;
}

.hero__image-wrap img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hero__answer {
  position: absolute;
  right: 20px;
  bottom: 20px;
  min-width: 190px;
  padding: 14px 18px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(7, 19, 41, 0.88);
  box-shadow: var(--shadow-small);
  backdrop-filter: blur(12px);
}

.hero__answer span {
  display: block;
  margin-bottom: 3px;
  color: var(--yellow-300);
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero__answer strong {
  font-size: 22px;
  font-weight: 800;
}

.hero__route {
  position: absolute;
  right: 5vw;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.55;
}

.hero__route span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--paper);
}

.hero__route span:nth-child(2) {
  width: 68px;
  height: 1px;
  border-radius: 0;
}

.practice {
  position: relative;
  padding: 72px 20px 100px;
  background:
    radial-gradient(circle at 85% 15%, rgba(76, 145, 242, 0.12), transparent 22%),
    var(--mist);
}

.practice__shell {
  width: min(720px, 100%);
  margin-inline: auto;
}

.practice__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.section-kicker {
  color: var(--blue-600);
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.3;
}

.practice h2 {
  margin-top: 4px;
  color: var(--navy-900);
  font-size: 32px;
  line-height: 1.3;
}

.practice__tools {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.practice__total {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.practice__total span {
  color: var(--navy-900);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.random-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--navy-800);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.random-button svg {
  width: 18px;
}

.random-button:hover {
  border-color: var(--blue-500);
  color: var(--blue-600);
  transform: translateY(-1px);
}

.scene-strip {
  position: relative;
  width: 100%;
  margin-bottom: var(--space-4);
}

.scene-strip::after {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  bottom: 8px;
  width: 44px;
  background: linear-gradient(to right, transparent, var(--mist));
  content: "";
  pointer-events: none;
}

.scene-list {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 42px 9px 2px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: #bbc8d8 transparent;
  scrollbar-width: thin;
}

.scene-tab {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  flex: 0 0 218px;
  gap: 9px;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-soft);
  cursor: pointer;
  scroll-snap-align: start;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.scene-tab:hover {
  border-color: #a8bbd3;
  transform: translateY(-1px);
}

.scene-tab[aria-selected="true"] {
  border-color: var(--navy-800);
  background: var(--navy-800);
  color: var(--paper);
}

.scene-tab__num {
  color: var(--blue-500);
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.scene-tab[aria-selected="true"] .scene-tab__num {
  color: var(--yellow-300);
}

.scene-tab__name {
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.scene-tab__count {
  padding: 2px 6px;
  border-radius: 999px;
  background: #e7edf5;
  color: var(--navy-700);
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.scene-tab[aria-selected="true"] .scene-tab__count {
  background: rgba(255, 255, 255, 0.12);
  color: #dfeaff;
}

.scene-info {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px var(--space-4);
  margin-bottom: var(--space-4);
  padding: 2px 2px 0;
}

.scene-info__title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 10px;
}

.scene-info__name {
  color: var(--navy-900);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.scene-info__en {
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.scene-info__position {
  align-self: start;
  min-width: 58px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #dce8f6;
  color: var(--navy-700);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.scene-info__lead {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

.question-card,
.answer-card {
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-small);
}

.question-card {
  padding: 25px 28px 23px;
  border: 1px solid #dce5f0;
  background: var(--paper);
}

.question-card::before {
  position: absolute;
  top: 0;
  left: 28px;
  width: 54px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--blue-500);
  content: "";
}

.card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.card__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.card__label > span:first-child {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-600);
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.card__stock-mark {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--green-600);
  font-size: 16px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.card__stock-mark svg {
  width: 17px;
}

.question-card.is-stocked .card__stock-mark {
  opacity: 1;
  transform: translateY(0);
}

.question-card__english {
  margin-top: 15px;
  color: var(--navy-900);
  font-size: clamp(24px, 4vw, 31px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.28;
}

.kw {
  padding: 0 0.04em 0.05em;
  background: linear-gradient(transparent 67%, rgba(244, 200, 75, 0.72) 67%, rgba(244, 200, 75, 0.72) 91%, transparent 91%);
  color: inherit;
}

.card__kana {
  margin-top: 11px;
  color: var(--blue-600);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
}

.card__japanese {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
}

.speech-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e5ebf2;
}

.speech-row__label {
  margin-right: auto;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.speech-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 85px;
  min-height: 48px;
  padding: 0 11px;
  border: 1px solid #d5dfeb;
  border-radius: 10px;
  background: var(--mist);
  color: var(--navy-700);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.speech-button svg {
  width: 17px;
  flex: none;
}

.speech-button:hover {
  border-color: var(--blue-500);
  background: var(--blue-100);
  color: var(--blue-600);
  transform: translateY(-1px);
}

.speech-button--fast {
  background: #edf3fb;
}

.speech-button.is-speaking,
.speech-button[aria-pressed="true"] {
  border-color: var(--blue-500);
  background: var(--blue-600);
  color: var(--paper);
}

.speech-button.is-speaking svg {
  animation: sound-pulse 850ms ease-in-out infinite alternate;
}

.keyword-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}

.keyword-note > span {
  width: 20px;
  height: 5px;
  flex: none;
  border-radius: 999px;
  background: var(--yellow-500);
}

.keyword-note > span:last-child {
  width: auto;
  height: auto;
  flex: 1 1 auto;
  border-radius: 0;
  background: transparent;
}

.keyword-note strong {
  color: var(--ink);
}

.reveal-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 56px;
  margin-top: var(--space-3);
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--navy-800);
  color: var(--paper);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(11, 23, 55, 0.14);
  transition: background 160ms ease, transform 160ms ease;
}

.reveal-button:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
}

.reveal-button svg {
  width: 20px;
  transition: transform 180ms ease;
}

.reveal-button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.answer-card {
  margin-top: var(--space-3);
  padding: 28px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(25, 154, 112, 0.11), transparent 46%),
    var(--navy-900);
  color: var(--paper);
  animation: answer-in 260ms ease both;
}

.answer-card::before {
  position: absolute;
  top: -35px;
  right: -20px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.card__label--answer {
  position: relative;
  color: #cfdae9;
}

.card__label--answer > span:first-child {
  background: rgba(74, 211, 162, 0.14);
  color: #65d8ad;
}

.answer-card__english {
  position: relative;
  margin-top: 13px;
  color: var(--paper);
  font-size: clamp(34px, 7vw, 48px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.22;
}

.answer-card .card__kana {
  position: relative;
  color: #79b5ff;
}

.answer-card .card__japanese {
  position: relative;
  color: #cfdae9;
}

.speech-row--answer {
  position: relative;
  border-top-color: rgba(255, 255, 255, 0.12);
}

.speech-row--answer .speech-row__label {
  color: #b8c7db;
}

.speech-button--answer {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
}

.speech-button--answer:hover {
  border-color: #79b5ff;
  background: rgba(76, 145, 242, 0.2);
  color: var(--paper);
}

.tip {
  position: relative;
  margin-top: 17px;
  padding: 11px 13px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.07);
  color: #d9e4f2;
  font-size: 16px;
  line-height: 1.65;
}

.tip > span:first-child {
  display: inline-block;
  margin-right: 6px;
  color: var(--yellow-300);
  font-weight: 700;
}

.speech-notice {
  margin-top: var(--space-3);
  padding: 12px 14px;
  border: 1px solid #eed281;
  border-radius: var(--radius-xs);
  background: var(--yellow-100);
  color: #624d13;
  font-size: 16px;
  line-height: 1.65;
}

.speech-footnote {
  margin: 12px 2px 0;
  color: #6a778b;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

.practice-nav {
  display: grid;
  grid-template-columns: 1fr 1.22fr 1fr;
  gap: 9px;
  margin-top: var(--space-5);
}

.nav-button,
.stock-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 54px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.nav-button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy-700);
}

.nav-button svg,
.stock-button svg {
  width: 19px;
}

.nav-button:hover:not(:disabled) {
  border-color: var(--blue-500);
  color: var(--blue-600);
  transform: translateY(-1px);
}

.nav-button:disabled {
  background: #e9eef4;
  color: #9ba7b7;
  cursor: not-allowed;
  opacity: 0.72;
}

.stock-button {
  border: 1px solid #c5d2e1;
  background: #dfe8f3;
  color: var(--navy-800);
}

.stock-button:hover {
  border-color: var(--green-500);
  background: var(--green-100);
  color: var(--green-600);
  transform: translateY(-1px);
}

.stock-button__check {
  display: none;
}

.stock-button[aria-pressed="true"] {
  border-color: var(--green-500);
  background: var(--green-600);
  color: var(--paper);
}

.stock-button[aria-pressed="true"] .stock-button__star {
  display: none;
}

.stock-button[aria-pressed="true"] .stock-button__check {
  display: block;
}

.method {
  padding: 94px 20px 104px;
  background: var(--paper);
}

.method__inner {
  width: min(1040px, 100%);
  margin-inline: auto;
}

.method__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-8);
  margin-bottom: 42px;
}

.method__heading .section-kicker {
  align-self: flex-start;
  margin-top: 9px;
  white-space: nowrap;
}

.method h2 {
  color: var(--navy-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.45;
}

.method__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  padding: 0;
  list-style: none;
}

.method-card {
  position: relative;
  min-height: 278px;
  padding: 28px 26px;
  overflow: hidden;
  border: 1px solid #e0e7f0;
  border-radius: var(--radius-md);
  background: #f8fafc;
}

.method-card::after {
  position: absolute;
  right: -25px;
  bottom: -38px;
  width: 120px;
  height: 120px;
  border: 20px solid rgba(76, 145, 242, 0.05);
  border-radius: 50%;
  content: "";
}

.method-card__num {
  color: #97a7ba;
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.method-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-top: 25px;
  border-radius: var(--radius-sm);
  background: var(--blue-100);
  color: var(--blue-600);
}

.method-card:nth-child(2) .method-card__icon {
  background: var(--yellow-100);
  color: #9b7410;
}

.method-card:nth-child(3) .method-card__icon {
  background: var(--green-100);
  color: var(--green-600);
}

.method-card__icon svg {
  width: 31px;
}

.method-card h3 {
  margin-top: 21px;
  color: var(--navy-900);
  font-size: 20px;
  line-height: 1.4;
}

.method-card p {
  position: relative;
  z-index: 1;
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.site-footer {
  padding: 27px 20px calc(27px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--navy-950);
  color: #aebdd2;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  width: min(1040px, 100%);
  margin-inline: auto;
  font-size: 16px;
}

.site-footer a {
  color: var(--paper);
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  text-decoration-color: #627692;
  text-underline-offset: 3px;
}

.site-footer a:hover {
  text-decoration-color: var(--yellow-500);
}

@keyframes answer-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sound-pulse {
  from { opacity: 0.65; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1.08); }
}

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 0.94fr) minmax(480px, 1.06fr);
    gap: clamp(48px, 6vw, 90px);
  }
}

@media (max-width: 959px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 720px;
    padding-top: 60px;
  }

  .hero__copy {
    max-width: 650px;
  }

  .hero__visual {
    width: min(100%, 680px);
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 62px;
  }

  .site-header__inner {
    width: calc(100% - 28px);
  }

  .hero__inner {
    width: calc(100% - 32px);
    padding: 46px 0 58px;
  }

  .hero h1 {
    font-size: clamp(36px, 10.8vw, 52px);
  }

  .hero__lead-break {
    display: none;
  }

  .practice {
    padding: 52px 16px 88px;
  }

  .practice__header {
    align-items: center;
  }

  .practice__tools {
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
  }

  .practice__total {
    font-size: 12px;
  }

  .random-button {
    min-height: 48px;
  }

  .method__heading {
    display: block;
  }

  .method__heading .section-kicker {
    margin: 0 0 8px;
  }

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

  .method-card {
    display: grid;
    grid-template-columns: 58px 1fr;
    min-height: auto;
    gap: 0 18px;
    padding: 24px;
  }

  .method-card__num {
    grid-column: 1 / -1;
  }

  .method-card__icon {
    grid-row: 2 / 4;
    margin-top: 20px;
  }

  .method-card h3 {
    align-self: end;
    margin-top: 20px;
  }

  .method-card p {
    margin-top: 6px;
  }
}

@media (max-width: 480px) {
  .brand {
    gap: 8px;
    font-size: 16px;
  }

  .brand__mark {
    width: 26px;
  }

  .stock-counter {
    gap: 5px;
    font-size: 14px;
  }

  .stock-counter svg {
    width: 17px;
  }

  .stock-counter strong {
    font-size: 14px;
  }

  .stock-counter__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .hero__inner {
    gap: 34px;
    min-height: auto;
    padding-top: 36px;
  }

  .eyebrow {
    margin-bottom: 15px;
    font-size: 16px;
  }

  .hero h1 {
    font-size: clamp(34px, 10.7vw, 46px);
    line-height: 1.3;
  }

  .hero__lead {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.8;
  }

  .primary-link {
    width: 100%;
    min-height: 54px;
    margin-top: 25px;
  }

  .hero__image-wrap {
    border-radius: var(--radius-md);
  }

  .hero__answer {
    right: 10px;
    bottom: 10px;
    min-width: 148px;
    padding: 9px 12px;
  }

  .hero__answer strong {
    font-size: 17px;
  }

  .practice {
    padding: 22px 12px 78px;
  }

  .practice__header {
    align-items: flex-end;
    margin-bottom: 10px;
  }

  .practice h2 {
    font-size: 25px;
  }

  .practice__total {
    line-height: 1.3;
  }

  .practice__total span {
    font-size: 14px;
  }

  .random-button {
    min-width: 112px;
    padding: 0 12px;
  }

  .scene-strip {
    margin-right: -12px;
    margin-bottom: 8px;
    width: calc(100% + 12px);
  }

  .scene-strip::after {
    background: linear-gradient(to right, transparent, var(--mist));
  }

  .scene-list {
    gap: 7px;
    padding-bottom: 7px;
  }

  .scene-tab {
    flex-basis: 218px;
    min-height: 64px;
    padding: 8px 10px;
  }

  .scene-tab__name {
    font-size: 16px;
  }

  .scene-info {
    gap: 2px 10px;
    margin-bottom: 8px;
  }

  .scene-info__title {
    display: block;
  }

  .scene-info__name {
    display: block;
    font-size: 16px;
  }

  .scene-info__en {
    display: block;
    margin-top: -1px;
    font-size: 12px;
    line-height: 1.4;
  }

  .scene-info__lead {
    display: -webkit-box;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .question-card {
    padding: 16px 14px 14px;
    border-radius: var(--radius-md);
  }

  .question-card::before {
    left: 18px;
  }

  .card__label {
    font-size: 12px;
  }

  .question-card__english {
    margin-top: 8px;
    font-size: clamp(22px, 6.7vw, 27px);
    line-height: 1.2;
  }

  .card__kana {
    margin-top: 6px;
    font-size: 17px;
    line-height: 1.4;
  }

  .card__japanese {
    margin-top: 1px;
    font-size: 17px;
    line-height: 1.4;
  }

  .speech-row {
    gap: 4px;
    margin-top: 10px;
    padding-top: 10px;
  }

  .speech-row__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .speech-button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
    padding: 0 2px;
    font-size: 16px;
  }

  .speech-button svg {
    width: 15px;
  }

  .keyword-note {
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.45;
  }

  .reveal-button {
    min-height: 52px;
    margin-top: 8px;
  }

  .answer-card {
    padding: 22px 18px;
    border-radius: var(--radius-md);
  }

  .answer-card__english {
    font-size: clamp(32px, 10vw, 42px);
  }

  .speech-footnote {
    font-size: 16px;
  }

  .practice-nav {
    position: sticky;
    z-index: 10;
    bottom: 0;
    gap: 6px;
    margin: 15px -12px calc(-1 * env(safe-area-inset-bottom));
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(198, 211, 226, 0.85);
    background: rgba(242, 246, 251, 0.94);
    backdrop-filter: blur(14px);
  }

  .nav-button,
  .stock-button {
    min-height: 52px;
    min-width: 0;
    gap: 2px;
    padding-inline: 3px;
    font-size: 15px;
    white-space: nowrap;
  }

  .nav-button svg,
  .stock-button svg {
    width: 15px;
  }

  .method {
    padding: 68px 16px 76px;
  }

  .method__heading {
    margin-bottom: 28px;
  }

  .method h2 {
    font-size: 28px;
  }

  .method-card {
    padding: 22px 20px;
  }

  .site-footer__inner {
    display: block;
    line-height: 1.8;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
