:root {
  --red: #ee2c3a;
  --red-dark: #c9172b;
  --ink: #202126;
  --muted: #65666d;
  --paper: #fafbfc;
  --soft: #f2f4f6;
  --line: #e1e5e8;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(31, 25, 22, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

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

.container,
.header-inner {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 1px 0 rgba(32, 33, 38, 0.06),
    0 10px 30px rgba(32, 33, 38, 0.035);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.accent-bar {
  height: 7px;
  background: var(--red);
}

.header-inner {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.brand {
  display: inline-flex;
  flex: 0 1 250px;
}

.brand img {
  display: block;
  width: min(100%, 250px);
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  position: relative;
  padding-block: 12px;
  color: #4a4b51;
  font-size: 0.91rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  background: var(--red);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  color: var(--red-dark);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.welcome-section {
  position: relative;
  overflow: hidden;
  padding: 92px 0 104px;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(238, 44, 58, 0.055) 50%, transparent 50.2%),
    var(--soft);
}

.welcome-section::after {
  position: absolute;
  top: -120px;
  right: -100px;
  width: 310px;
  height: 310px;
  border: 60px solid rgba(238, 44, 58, 0.08);
  border-radius: 50%;
  content: "";
}

.welcome-section::before {
  position: absolute;
  bottom: -150px;
  left: 8%;
  width: 340px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.68);
  content: "";
  filter: blur(4px);
  transform: rotate(-12deg);
}

.welcome-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  gap: 80px;
  align-items: start;
}

.welcome-kicker {
  padding-top: 13px;
  color: var(--red);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

.kicker-line {
  display: inline-block;
  width: 2px;
  height: 70px;
  margin-top: 18px;
  background: var(--red);
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--red-dark);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.welcome-copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.welcome-copy h1 strong {
  color: var(--red);
  font-weight: 700;
}

.welcome-copy > p:not(.eyebrow) {
  max-width: 670px;
  margin: 30px 0 0;
  color: #4f5056;
  font-size: 1.1rem;
  line-height: 1.85;
}

.start-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--red);
  color: var(--red-dark);
  font-weight: 700;
  text-decoration: none;
  transition: gap 0.25s ease;
}

.start-link span {
  transition: transform 0.2s ease;
}

.start-link:hover span,
.start-link:focus-visible span {
  transform: translateY(4px);
}

.start-link:hover,
.start-link:focus-visible {
  gap: 16px;
}

.lessons-section {
  padding: 96px 0 112px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 45px;
  padding-bottom: 27px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.lesson-count {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.92rem;
}

.lesson-count strong {
  display: inline-block;
  margin-right: 4px;
  color: var(--red);
  font-size: 1.2rem;
}

.course-progress {
  margin-bottom: 28px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.86),
    rgba(237, 240, 243, 0.7)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 12px 34px rgba(31, 37, 42, 0.07);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
}

.progress-copy {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.progress-label,
.progress-message,
.progress-count {
  margin: 0;
}

.progress-label {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.progress-message {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.8rem;
}

.progress-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.82rem;
}

.progress-count strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border: 1px solid rgba(32, 33, 38, 0.06);
  border-radius: 999px;
  background: rgba(205, 211, 216, 0.68);
  box-shadow: inset 0 1px 2px rgba(31, 37, 42, 0.08);
}

.progress-track span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  box-shadow: 0 0 12px rgba(238, 44, 58, 0.25);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lesson-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  counter-reset: lesson;
  list-style: none;
}

.lesson-list li {
  position: relative;
  min-width: 0;
  counter-increment: lesson;
}

.completion-toggle {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 20px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #d7dce0;
  border-radius: 50%;
  background: rgba(246, 248, 249, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 3px 9px rgba(31, 37, 42, 0.05);
  color: #656b71;
  cursor: pointer;
  font: 700 0.68rem/1 "DM Sans", sans-serif;
  transform: translateY(-50%);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.completion-toggle:hover,
.completion-toggle:focus-visible {
  border-color: #8c949b;
  background: var(--white);
  color: var(--ink);
  outline: 3px solid rgba(32, 33, 38, 0.08);
  outline-offset: 2px;
  transform: translateY(-50%) scale(1.06);
}

.completion-toggle[aria-pressed="true"] {
  border-color: #31353a;
  background: #31353a;
  color: var(--white);
  font-size: 0.9rem;
}

.js-progress .lesson-list a {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-left: 70px;
}

.js-progress .lesson-list a::before {
  display: none;
}

.lesson-list li.is-complete a > span:first-child {
  color: #777d82;
  text-decoration: line-through;
  text-decoration-color: #aeb4ba;
}

.lesson-list a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 88px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.94),
    rgba(247, 249, 250, 0.78)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 5px 18px rgba(31, 37, 42, 0.025);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.lesson-list a::after {
  position: absolute;
  z-index: -1;
  top: -110%;
  left: -35%;
  width: 28%;
  height: 320%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.82),
    transparent
  );
  content: "";
  opacity: 0;
  transform: rotate(18deg);
  transition:
    left 0.55s ease,
    opacity 0.25s ease;
}

.lesson-list a::before {
  color: var(--red);
  content: counter(lesson, decimal-leading-zero);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.lesson-list a:hover,
.lesson-list a:focus-visible {
  border-color: #aeb4ba;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 16px 38px rgba(31, 37, 42, 0.09);
  outline: none;
  transform: translateY(-3px);
}

.lesson-list a:hover::after,
.lesson-list a:focus-visible::after {
  left: 115%;
  opacity: 1;
}

.arrow {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #d9dde1;
  background: rgba(242, 244, 246, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 3px 10px rgba(31, 37, 42, 0.06);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  color: #555b61;
  font-size: 1.05rem;
  font-weight: 600;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    transform 0.25s ease;
}

.lesson-list a:hover .arrow,
.lesson-list a:focus-visible .arrow {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
  transform: translateX(2px);
}

.site-footer {
  padding: 34px 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
}

/* Página de aula */

.lesson-main {
  position: relative;
  overflow: hidden;
  padding: 40px 0 104px;
  background:
    radial-gradient(circle at 92% 8%, rgba(238, 44, 58, 0.07), transparent 24rem),
    var(--soft);
}

.lesson-main::before {
  position: absolute;
  top: 280px;
  left: -180px;
  width: 380px;
  height: 380px;
  border: 70px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  content: "";
}

.lesson-shell {
  position: relative;
  z-index: 1;
  width: min(940px, calc(100% - 48px));
  margin-inline: auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 42px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.breadcrumb a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.lesson-article {
  padding: clamp(26px, 5vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.91),
    rgba(248, 249, 250, 0.76)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 24px 70px rgba(31, 37, 42, 0.09);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.lesson-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.lesson-number {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 17px;
  color: var(--red-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lesson-number span {
  width: 34px;
  height: 1px;
  background: var(--red);
}

.lesson-heading h1 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.lesson-heading h1 strong {
  display: block;
  color: #666b70;
  font-weight: 500;
}

.lesson-introduction {
  max-width: 740px;
  margin: 28px 0 0;
  color: #4e5358;
  font-size: 1.08rem;
  line-height: 1.8;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  background: #191a1d;
  box-shadow:
    0 22px 50px rgba(21, 23, 25, 0.18),
    0 0 0 6px rgba(255, 255, 255, 0.38);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.lesson-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
}

.back-to-index {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #555b61;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.back-to-index span {
  transition: transform 0.2s ease;
}

.back-to-index:hover span,
.back-to-index:focus-visible span {
  transform: translateX(-4px);
}

.complete-lesson-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid #cdd2d6;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 6px 18px rgba(31, 37, 42, 0.06);
  color: var(--ink);
  cursor: pointer;
  font: 700 0.86rem/1.2 "DM Sans", sans-serif;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.complete-lesson-button:hover,
.complete-lesson-button:focus-visible {
  border-color: #858c92;
  outline: none;
  transform: translateY(-2px);
}

.complete-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid #b9bfc4;
  border-radius: 50%;
  color: transparent;
  font-size: 0.72rem;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.complete-lesson-button[aria-pressed="true"] {
  border-color: #31353a;
  background: #31353a;
  color: var(--white);
}

.complete-lesson-button[aria-pressed="true"] .complete-icon {
  border-color: var(--white);
  background: var(--white);
  color: #31353a;
}

.lesson-material {
  margin-top: clamp(58px, 8vw, 88px);
}

.material-heading {
  max-width: 700px;
  margin-bottom: 32px;
}

.material-kicker {
  margin: 0 0 7px;
  color: var(--red-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.material-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.material-heading > p:last-child {
  margin: 17px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

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

.phrase-card {
  display: grid;
  grid-template-columns: minmax(230px, 0.78fr) minmax(0, 1.22fr);
  overflow: hidden;
  border: 1px solid #e0e4e7;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 24px rgba(31, 37, 42, 0.045);
}

.phrase-main,
.phrase-explanation {
  padding: clamp(20px, 3.5vw, 30px);
}

.phrase-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid #e1e5e8;
  background: linear-gradient(145deg, rgba(246, 248, 249, 0.82), rgba(238, 241, 243, 0.58));
}

.japanese-phrase {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.romanization {
  margin: 6px 0 16px;
  color: var(--red-dark);
  font-size: 0.94rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.phrase-main h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.phrase-main h3 span {
  color: var(--muted);
  font-weight: 500;
}

.phrase-explanation {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.phrase-explanation > p {
  margin: 13px 0 0;
  color: #4f555a;
  font-size: 0.91rem;
  line-height: 1.62;
}

.usage-tag {
  align-self: flex-start;
  padding: 4px 9px;
  border: 1px solid #d7dce0;
  border-radius: 999px;
  background: #f5f6f7;
  color: #555b61;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.usage-tag.formal {
  background: #eceff2;
  color: #34393e;
}

.usage-tag.neutral {
  background: #f0f2f4;
}

.usage-tag.night {
  border-color: #cbd0d5;
  background: #373c42;
  color: var(--white);
}

.phrase-explanation .pronunciation-tip {
  padding-top: 12px;
  border-top: 1px solid #e5e8ea;
  color: #6a7075;
  font-size: 0.8rem;
}

.pronunciation-tip strong {
  color: #464b50;
}

.learning-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  margin-top: 24px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(236, 239, 242, 0.82), rgba(255, 255, 255, 0.7));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 9px 28px rgba(31, 37, 42, 0.05);
}

.note-symbol {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.learning-note h3,
.learning-note p {
  margin: 0;
}

.learning-note h3 {
  font-size: 1rem;
}

.learning-note p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.full-course-box {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 52px);
  align-items: end;
  margin-top: 28px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 94% 0%, rgba(255, 255, 255, 0.12), transparent 17rem),
    linear-gradient(135deg, #24262b, #17191d);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 22px 52px rgba(24, 27, 30, 0.16);
  color: var(--white);
}

.full-course-box::before {
  position: absolute;
  z-index: -1;
  right: -70px;
  bottom: -110px;
  width: 240px;
  height: 240px;
  border: 45px solid rgba(238, 44, 58, 0.16);
  border-radius: 50%;
  content: "";
}

.full-course-copy {
  max-width: 610px;
}

.full-course-eyebrow {
  margin: 0 0 10px;
  color: #ff6d77;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.full-course-copy h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3.5vw, 2.25rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.full-course-copy > p:last-child {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.7;
}

.full-course-button {
  position: relative;
  z-index: 1;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 1px 0 var(--white),
    0 10px 24px rgba(0, 0, 0, 0.16);
  color: #202126;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.full-course-button span {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.full-course-button:hover,
.full-course-button:focus-visible {
  background: var(--white);
  box-shadow:
    inset 0 1px 0 var(--white),
    0 14px 30px rgba(0, 0, 0, 0.23);
  outline: none;
  transform: translateY(-2px);
}

.full-course-button:hover span,
.full-course-button:focus-visible span {
  transform: translateX(3px);
}

.pronunciation-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.pronunciation-rule {
  padding: clamp(20px, 3vw, 27px);
  border: 1px solid #dfe3e6;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(239, 242, 244, 0.65));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 9px 26px rgba(31, 37, 42, 0.045);
}

.sound-formula {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid rgba(32, 33, 38, 0.07);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.66);
  color: #5b6166;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.sound-formula b {
  color: #9aa0a5;
  font-weight: 500;
}

.sound-formula strong {
  color: var(--red-dark);
  font-size: 1.35rem;
}

.pronunciation-rule h3,
.pronunciation-rule p,
.pronunciation-rule ul {
  margin: 0;
}

.pronunciation-rule h3 {
  font-size: 1rem;
  line-height: 1.3;
}

.pronunciation-rule > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.62;
}

.pronunciation-rule ul {
  margin-top: 15px;
  padding: 13px 0 0 17px;
  border-top: 1px solid #e1e5e8;
  color: #474d52;
  font-size: 0.79rem;
  line-height: 1.65;
}

.vocabulary-section {
  margin-top: clamp(58px, 8vw, 88px);
}

.vocabulary-groups {
  display: grid;
  gap: 16px;
}

.vocabulary-group {
  overflow: hidden;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  border: 1px solid #dce1e4;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 30px rgba(31, 37, 42, 0.055);
}

.vocabulary-group-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.12), transparent 8rem),
    linear-gradient(145deg, #34383e, #22252a);
  color: var(--white);
}

.vocabulary-pattern {
  align-self: flex-start;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ff8790;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.vocabulary-group-header h3,
.vocabulary-group-header p,
.vocab-row p {
  margin: 0;
}

.vocabulary-group-header h3 {
  margin-top: 15px;
  font-size: 0.98rem;
  line-height: 1.3;
}

.vocabulary-group-header p {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.76rem;
  line-height: 1.5;
}

.vocabulary-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vocab-row {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
}

.vocab-row + .vocab-row {
  border-left: 1px solid #e1e5e8;
}

.vocab-japanese {
  overflow-wrap: anywhere;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.35;
}

.vocab-romanization {
  margin-top: 4px !important;
  color: var(--red-dark);
  font-size: 0.78rem;
  font-style: italic;
  font-weight: 700;
}

.vocab-meaning {
  margin-top: 12px !important;
  color: var(--muted);
  font-size: 0.8rem;
}

.indication-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.indication-card {
  overflow: hidden;
  padding: clamp(20px, 3vw, 27px);
  border: 1px solid #dfe3e6;
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(240, 243, 245, 0.66));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 28px rgba(31, 37, 42, 0.055);
}

.indication-word {
  text-align: center;
}

.indication-word .romanization {
  margin-bottom: 8px;
}

.indication-word h3 {
  margin: 0;
  font-size: 1rem;
}

.spatial-scene {
  position: relative;
  min-height: 80px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  margin: 24px 0 20px;
}

.spatial-scene::before {
  position: absolute;
  right: 12px;
  left: 12px;
  height: 1px;
  background: #ccd2d6;
  content: "";
}

.scene-person,
.scene-object {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  text-align: center;
}

.scene-person {
  width: 43px;
  height: 43px;
  border: 1px solid #cdd2d6;
  background: #f8f9fa;
  color: #5d6368;
  font-size: 0.64rem;
  font-weight: 700;
}

.scene-speaker {
  grid-column: 1;
}

.scene-listener {
  grid-column: 5;
}

.scene-object {
  width: 32px;
  height: 32px;
  border: 3px solid #f8f9fa;
  background: var(--red);
  box-shadow: 0 5px 13px rgba(238, 44, 58, 0.22);
  color: transparent;
  font-size: 0;
}

.scene-kore .scene-object {
  grid-column: 2;
}

.scene-sore .scene-object {
  grid-column: 4;
}

.scene-are .scene-speaker {
  grid-column: 1;
}

.scene-are .scene-listener {
  grid-column: 2;
}

.scene-are .scene-object {
  grid-column: 5;
}

.indication-description {
  min-height: 86px;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.62;
}

.indication-description strong {
  color: #444a4f;
}

.indication-example {
  margin: 16px 0 0;
  padding-top: 13px;
  border-top: 1px solid #dde2e5;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.location-family {
  margin-top: 24px;
  padding: clamp(21px, 4vw, 30px);
  border: 1px solid #dfe3e6;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.location-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.location-intro h3,
.location-intro p {
  margin: 0;
}

.location-intro h3 {
  font-size: 1rem;
}

.location-intro p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.location-words {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 20px;
}

.location-words div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1px 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e2e6e8;
  border-radius: 10px;
  background: #f6f8f9;
}

.location-words strong {
  grid-row: span 2;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.25rem;
}

.location-words em {
  color: var(--red-dark);
  font-size: 0.72rem;
  font-weight: 700;
}

.location-words span {
  color: var(--muted);
  font-size: 0.72rem;
}

.expression-families {
  display: grid;
  gap: 18px;
}

.expression-family {
  overflow: hidden;
  border: 1px solid #dce1e4;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 11px 30px rgba(31, 37, 42, 0.055);
}

.expression-family-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.1), transparent 12rem),
    linear-gradient(145deg, #34383e, #22252a);
  color: var(--white);
}

.family-number {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ff8790;
  font-size: 0.7rem;
  font-weight: 700;
}

.expression-family-header p,
.expression-family-header h3 {
  margin: 0;
}

.expression-family-header p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.expression-family-header h3 {
  margin-top: 2px;
  font-size: 1.08rem;
}

.family-variants {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.family-variant {
  min-width: 0;
  padding: clamp(22px, 4vw, 30px);
}

.family-variant + .family-variant {
  border-left: 1px solid #e0e4e7;
}

.family-japanese,
.family-romanization,
.family-variant h4,
.family-variant > p:last-child {
  margin: 0;
}

.family-japanese {
  margin-top: 20px;
  overflow-wrap: anywhere;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(1.35rem, 3.2vw, 1.95rem);
  font-weight: 700;
  line-height: 1.4;
}

.family-romanization {
  margin-top: 5px;
  color: var(--red-dark);
  font-size: 0.84rem;
  font-style: italic;
  font-weight: 700;
}

.family-variant h4 {
  margin-top: 17px;
  font-size: 0.96rem;
}

.family-variant h4 span {
  color: var(--muted);
  font-weight: 500;
}

.family-variant > p:last-child {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.62;
}

.suffix-spectrum {
  margin-bottom: 20px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid #dce1e4;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(239, 242, 244, 0.65));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.spectrum-labels {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spectrum-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.spectrum-track::before {
  position: absolute;
  top: 21px;
  right: 10%;
  left: 10%;
  height: 2px;
  background: linear-gradient(90deg, #cbd1d5, var(--red));
  content: "";
}

.spectrum-stop {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.spectrum-stop strong {
  min-width: 74px;
  min-height: 43px;
  display: grid;
  place-items: center;
  padding: 7px 11px;
  border: 1px solid #d4d9dd;
  border-radius: 999px;
  background: #f9fafb;
  box-shadow: 0 5px 14px rgba(31, 37, 42, 0.07);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.9rem;
}

.spectrum-stop span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.67rem;
}

.suffix-spectrum > p {
  margin: 19px 0 0;
  padding-top: 15px;
  border-top: 1px solid #dfe3e6;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.suffix-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.suffix-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #dfe3e6;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 9px 26px rgba(31, 37, 42, 0.045);
}

.suffix-symbol {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #e0e4e7;
  background: linear-gradient(145deg, #f2f4f6, #e8ecef);
}

.suffix-symbol strong {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.65rem;
}

.suffix-symbol span {
  margin-top: 3px;
  color: var(--red-dark);
  font-size: 0.75rem;
  font-style: italic;
  font-weight: 700;
}

.suffix-content {
  padding: 22px;
}

.suffix-content h3,
.suffix-content > p {
  margin: 0;
}

.suffix-content h3 {
  margin-top: 14px;
  font-size: 0.96rem;
  line-height: 1.3;
}

.suffix-content > p:not(.suffix-example):not(.pronunciation-tip) {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.58;
}

.suffix-example {
  margin-top: 14px !important;
  padding: 9px 11px;
  border: 1px solid #e1e5e8;
  border-radius: 8px;
  background: #f5f7f8;
  color: #454b50;
  font-size: 0.8rem;
  font-weight: 700;
}

.suffix-example span {
  margin-right: 7px;
  color: #858b90;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.suffix-content .pronunciation-tip {
  margin-top: 12px;
  color: #73797e;
  font-size: 0.73rem;
  line-height: 1.5;
}

.pillars-overview {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.pillar-card {
  min-width: 0;
  padding: clamp(21px, 3.5vw, 28px);
  border: 1px solid #dfe3e6;
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(240, 243, 245, 0.66));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 28px rgba(31, 37, 42, 0.05);
}

.pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid #dfe3e6;
}

.pillar-top span {
  color: var(--red-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.pillar-top strong {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--ink);
  color: var(--white);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.15rem;
}

.pillar-card h3,
.pillar-card p,
.pillar-card ul {
  margin: 0;
}

.pillar-card h3 {
  margin-top: 20px;
  font-size: 1.15rem;
}

.pillar-card > p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.6;
}

.pillar-card ul {
  margin-top: 16px;
  padding: 14px 0 0 17px;
  border-top: 1px solid #e0e4e7;
  color: #52585d;
  font-size: 0.76rem;
  line-height: 1.7;
}

.pillars-connection {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 16px;
  padding: 18px 22px;
  border: 1px solid #dce1e4;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.pillars-connection > span {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
}

.pillars-connection p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.58;
}

.pillars-connection strong {
  color: var(--ink);
}

.writing-section,
.roadmap-section {
  margin-top: clamp(58px, 8vw, 88px);
}

.writing-systems {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.writing-systems article {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid #dfe3e6;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
}

.system-index {
  color: #92989d;
  font-size: 0.65rem;
  font-weight: 700;
}

.writing-systems article > strong {
  display: block;
  margin-top: 16px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.4rem;
}

.writing-systems h3,
.writing-systems p {
  margin: 0;
}

.writing-systems h3 {
  margin-top: 5px;
  color: var(--red-dark);
  font-size: 0.83rem;
}

.writing-systems p {
  margin-top: 11px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.writing-example {
  overflow: hidden;
  margin: 22px 0 0;
  border: 1px solid #dce1e4;
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(31, 37, 42, 0.06);
}

.writing-example img {
  width: 100%;
  height: auto;
  display: block;
  background: #f4f6f7;
}

.writing-example figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 18px;
  align-items: center;
  padding: 18px 22px;
  border-top: 1px solid #e1e5e8;
}

.writing-example figcaption strong {
  grid-row: span 2;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1rem;
}

.writing-example figcaption span {
  color: var(--muted);
  font-size: 0.78rem;
}

.writing-example figcaption small {
  color: #8a9095;
  font-size: 0.65rem;
}

.writing-focus {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
  margin-top: 18px;
}

.writing-focus > div {
  padding: 22px;
  border-radius: 13px;
}

.focus-primary {
  background: linear-gradient(145deg, #34383e, #22252a);
  color: var(--white);
}

.focus-secondary {
  border: 1px solid #dfe3e6;
  background: rgba(255, 255, 255, 0.7);
}

.writing-focus span {
  color: #ff8790;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.focus-secondary span {
  color: #7f858a;
}

.writing-focus h3,
.writing-focus p {
  margin: 0;
}

.writing-focus h3 {
  margin-top: 9px;
  font-size: 1rem;
}

.writing-focus p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.8rem;
  line-height: 1.58;
}

.focus-secondary p {
  color: var(--muted);
}

.learning-roadmap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.learning-roadmap::before {
  position: absolute;
  top: 24px;
  right: 12%;
  left: 12%;
  height: 2px;
  background: linear-gradient(90deg, #cbd1d5, var(--red));
  content: "";
}

.learning-roadmap li {
  position: relative;
  z-index: 1;
  padding: 0 10px;
  text-align: center;
}

.learning-roadmap li > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border: 1px solid #d3d8dc;
  border-radius: 50%;
  background: #f8f9fa;
  box-shadow: 0 6px 16px rgba(31, 37, 42, 0.08);
  color: var(--red-dark);
  font-size: 0.75rem;
  font-weight: 700;
}

.learning-roadmap strong {
  font-size: 0.86rem;
}

.learning-roadmap p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.table-scroll-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 9px;
  color: #8b9196;
  font-size: 0.68rem;
}

.hiragana-table-wrap {
  overflow-x: auto;
  border: 1px solid #dce1e4;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 32px rgba(31, 37, 42, 0.06);
  scrollbar-color: #aeb5ba #edf0f2;
  scrollbar-width: thin;
}

.hiragana-table-wrap:focus-visible {
  outline: 3px solid rgba(32, 33, 38, 0.12);
  outline-offset: 3px;
}

.hiragana-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  table-layout: fixed;
}

.hiragana-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hiragana-table th,
.hiragana-table td {
  width: 76px;
  height: 76px;
  padding: 8px;
  border-right: 1px solid #e1e5e8;
  border-bottom: 1px solid #e1e5e8;
  text-align: center;
}

.hiragana-table tr:last-child > * {
  border-bottom: 0;
}

.hiragana-table tr > *:last-child {
  border-right: 0;
}

.hiragana-table thead th {
  height: 42px;
  background: #292c31;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.hiragana-table thead th:first-child,
.hiragana-table tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
}

.hiragana-table thead th:first-child {
  z-index: 3;
}

.hiragana-table tbody th {
  width: 58px;
  background: #f0f3f5;
  color: var(--red-dark);
  font-size: 0.7rem;
}

.hiragana-table td {
  background: rgba(255, 255, 255, 0.76);
}

.hiragana-table td strong,
.hiragana-table td span {
  display: block;
}

.hiragana-table td strong {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.15;
}

.hiragana-table td span {
  margin-top: 5px;
  color: #757b80;
  font-size: 0.66rem;
  font-style: italic;
  font-weight: 700;
}

.hiragana-table .special-sound {
  background: #f5f0f1;
}

.hiragana-table .special-sound span {
  color: var(--red-dark);
}

.hiragana-table .empty-cell {
  background:
    linear-gradient(135deg, transparent 48%, rgba(32, 33, 38, 0.035) 49%, rgba(32, 33, 38, 0.035) 51%, transparent 52%),
    #f4f6f7;
}

.hiragana-sound-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  padding: 19px 22px;
  border: 1px solid #dfe3e6;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.hiragana-sound-note h3,
.hiragana-sound-note p {
  margin: 0;
}

.hiragana-sound-note h3 {
  font-size: 0.92rem;
}

.hiragana-sound-note p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.58;
}

.reading-cards {
  display: grid;
  gap: 13px;
}

.reading-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #dfe3e6;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.reading-word {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 23px;
  border-right: 1px solid #e0e4e7;
  background: linear-gradient(145deg, #34383e, #22252a);
  color: var(--white);
}

.reading-word strong {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.7rem;
}

.reading-word span {
  margin-top: 3px;
  color: #ff8790;
  font-size: 0.78rem;
  font-style: italic;
  font-weight: 700;
}

.reading-word em {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.76rem;
  font-style: normal;
}

.reading-breakdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3vw, 24px);
  padding: 22px;
}

.reading-breakdown > span {
  min-width: 62px;
  min-height: 62px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid #dce1e4;
  border-radius: 11px;
  background: #f6f8f9;
}

.reading-breakdown b,
.reading-breakdown small {
  display: block;
}

.reading-breakdown b {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.3rem;
  line-height: 1.1;
}

.reading-breakdown small {
  margin-top: 3px;
  color: #7c8287;
  font-size: 0.63rem;
  font-weight: 700;
}

.reading-breakdown > i {
  color: #a1a7ac;
  font-size: 0.8rem;
  font-style: normal;
}

.reading-breakdown .modified-kana {
  border-color: rgba(238, 44, 58, 0.24);
  background: #f7eff0;
}

.reading-breakdown .modified-kana small {
  color: var(--red-dark);
}

.repetition-reminder {
  margin-top: 17px;
  padding: 20px 22px;
  border-left: 3px solid var(--red);
  border-radius: 0 11px 11px 0;
  background: #f2f4f6;
}

.repetition-reminder p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.word-families {
  display: grid;
  gap: 18px;
}

.word-family {
  overflow: hidden;
  border: 1px solid #dce1e4;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 11px 30px rgba(31, 37, 42, 0.05);
}

.word-family-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 19px 23px;
  background: linear-gradient(145deg, #34383e, #22252a);
  color: var(--white);
}

.word-family-header > span {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  color: #ff8790;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.05rem;
}

.word-family-header p,
.word-family-header h3 {
  margin: 0;
}

.word-family-header p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.word-family-header h3 {
  margin-top: 2px;
  font-size: 1rem;
}

.word-analysis {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  padding: 20px 23px;
}

.word-analysis + .word-analysis {
  border-top: 1px solid #e0e4e7;
}

.analyzed-word {
  display: flex;
  flex-direction: column;
}

.analyzed-word strong {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.55rem;
  line-height: 1.3;
}

.analyzed-word span {
  margin-top: 3px;
  color: var(--red-dark);
  font-size: 0.76rem;
  font-style: italic;
  font-weight: 700;
}

.analyzed-word em {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-style: normal;
}

.kana-sequence {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(7px, 2vw, 16px);
}

.kana-sequence > span {
  min-width: 57px;
  min-height: 57px;
  display: grid;
  place-items: center;
  padding: 7px;
  border: 1px solid #dce1e4;
  border-radius: 10px;
  background: #f7f8f9;
}

.kana-sequence b,
.kana-sequence small {
  display: block;
}

.kana-sequence b {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.2rem;
  line-height: 1.1;
}

.kana-sequence small {
  margin-top: 3px;
  color: #7e8489;
  font-size: 0.61rem;
  font-weight: 700;
}

.kana-sequence > i {
  color: #a0a6ab;
  font-size: 0.75rem;
  font-style: normal;
}

.kana-sequence .repeated-kana {
  border-color: #c7cdd2;
  background: #edf0f2;
}

.kana-sequence .modified-kana {
  border-color: rgba(238, 44, 58, 0.24);
  background: #f7eff0;
}

.kana-sequence .modified-kana small {
  color: var(--red-dark);
}

.analysis-note {
  grid-column: 2;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
  text-align: right;
}

.family-insight {
  margin: 0;
  padding: 15px 22px;
  border-top: 1px solid #e0e4e7;
  background: #f2f4f6;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.family-insight strong {
  color: var(--ink);
}

.family-insight [lang="ja"] {
  color: var(--red-dark);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
}

.repetition-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.repetition-map div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1px 11px;
  align-items: center;
  padding: 15px;
  border: 1px solid #dfe3e6;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.7);
}

.repetition-map span {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--ink);
  color: var(--white);
  font-family: "Noto Sans JP", sans-serif;
}

.repetition-map strong {
  font-size: 0.75rem;
}

.repetition-map small {
  color: var(--muted);
  font-size: 0.63rem;
}

.review-deck {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.review-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce1e4;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 9px 26px rgba(31, 37, 42, 0.045);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.review-card[open] {
  border-color: #bfc6cb;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 14px 34px rgba(31, 37, 42, 0.08);
}

.review-card summary {
  position: relative;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 50px 24px 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(239, 242, 244, 0.72));
  cursor: pointer;
  list-style: none;
  text-align: center;
}

.review-card summary::-webkit-details-marker {
  display: none;
}

.review-card summary::after {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #d4d9dd;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: #5f656a;
  content: "+";
  font-size: 1rem;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.review-card[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

.review-card summary:focus-visible {
  outline: 3px solid rgba(32, 33, 38, 0.12);
  outline-offset: -3px;
}

.review-card summary strong {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.2rem);
}

.review-card summary span {
  margin-top: 8px;
  color: #8a9095;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.review-answer {
  padding: 20px;
  border-top: 1px solid #e0e4e7;
}

.review-romanization,
.review-answer h3,
.review-answer > p:last-child {
  margin: 0;
}

.review-romanization {
  color: var(--red-dark);
  font-size: 0.8rem;
  font-style: italic;
  font-weight: 700;
}

.review-answer h3 {
  margin-top: 2px;
  font-size: 0.92rem;
}

.review-answer .kana-sequence {
  justify-content: flex-start;
  overflow-x: auto;
  margin-top: 17px;
  padding-bottom: 4px;
}

.review-answer > p:last-child {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e4e7e9;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.review-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.review-summary > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid #dfe3e6;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.7);
}

.review-summary > div > span {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
}

.review-summary p,
.review-summary strong,
.review-summary small {
  display: block;
  margin: 0;
}

.review-summary strong {
  font-size: 0.72rem;
}

.review-summary small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.59rem;
  line-height: 1.35;
}

.modification-signs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 26px;
}

.modification-sign-card {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid #dce1e4;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(31, 37, 42, 0.05);
}

.modification-sign-card > span {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #292c31;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
}

.modification-sign-card h3,
.modification-sign-card p {
  margin: 0;
}

.modification-sign-card h3 {
  font-size: 0.92rem;
}

.modification-sign-card h3 small {
  display: block;
  margin-top: 3px;
  color: #83898e;
  font-size: 0.65rem;
  font-weight: 600;
}

.modification-sign-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.modification-families {
  display: grid;
  gap: 18px;
}

.modification-family {
  overflow: hidden;
  border: 1px solid #dce1e4;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 32px rgba(31, 37, 42, 0.05);
}

.modification-family-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f0f3f5;
}

.modification-family-heading > span {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: #292c31;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.modification-family-heading h3,
.modification-family-heading p {
  margin: 0;
}

.modification-family-heading h3 {
  font-size: 0.88rem;
}

.modification-family-heading p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.66rem;
}

.modification-family .hiragana-table-wrap {
  border: 0;
  border-top: 1px solid #dce1e4;
  border-radius: 0;
  box-shadow: none;
}

.modification-table {
  min-width: 540px;
}

.modification-table th,
.modification-table td {
  width: auto;
  height: 70px;
}

.modification-table thead th:first-child,
.modification-table tbody th {
  width: 106px;
}

.modification-table tbody th {
  color: #555d63;
  font-size: 0.64rem;
  line-height: 1.35;
}

.modification-table tbody tr:not(:first-child) td {
  background: #f8fafb;
}

.duplicate-sounds {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #dce1e4;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
}

.duplicate-sound-pairs {
  display: flex;
  gap: 8px;
}

.duplicate-sound-pairs span {
  min-width: 78px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #292c31;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.duplicate-sounds h3,
.duplicate-sounds p {
  margin: 0;
}

.duplicate-sounds h3 {
  font-size: 0.84rem;
}

.duplicate-sounds p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.55;
}

.small-tsu-concept {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: stretch;
  margin: 20px 0 24px;
}

.tsu-size-comparison,
.tsu-pause-demo {
  padding: 22px;
  border: 1px solid #dce1e4;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(31, 37, 42, 0.05);
}

.tsu-size-comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.tsu-symbol {
  display: grid;
  justify-items: center;
  gap: 7px;
}

.tsu-symbol strong {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 18px;
  background: #f0f3f5;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 2.25rem;
  line-height: 1;
}

.tsu-symbol-small strong {
  width: 52px;
  height: 52px;
  align-self: end;
  background: #292c31;
  color: #fff;
  font-size: 1.5rem;
}

.tsu-symbol span {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
}

.tsu-comparison-arrow {
  color: #92999e;
  font-size: 1.2rem;
}

.tsu-pause-demo h3,
.tsu-pause-demo p {
  margin: 0;
}

.tsu-pause-demo h3 {
  font-size: 0.88rem;
}

.tsu-pause-word {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 17px;
}

.tsu-pause-word > span {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
}

.tsu-pause-word .pause-cut {
  width: 8px;
  height: 38px;
  border-radius: 99px;
  background: #292c31;
}

.tsu-pause-demo .tsu-reading {
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.tsu-pause-demo .tsu-reading strong {
  color: #292c31;
}

.small-tsu-vocabulary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.small-tsu-card {
  display: grid;
  grid-template-columns: minmax(112px, 0.72fr) minmax(0, 1fr);
  min-height: 150px;
  overflow: hidden;
  border: 1px solid #dce1e4;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 28px rgba(31, 37, 42, 0.045);
}

.small-tsu-word-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 18px 14px;
  background: #f0f3f5;
  text-align: center;
}

.small-tsu-japanese {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  white-space: nowrap;
}

.small-tsu-japanese mark {
  display: inline-grid;
  place-items: center;
  min-width: 29px;
  height: 33px;
  margin-inline: 1px;
  border-radius: 7px;
  background: #292c31;
  color: #fff;
  font-size: 0.78em;
}

.small-tsu-romanization {
  margin: 8px 0 0;
  color: #676e73;
  font-size: 0.75rem;
  font-style: italic;
  font-weight: 700;
}

.small-tsu-romanization em {
  color: #292c31;
  font-style: normal;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.small-tsu-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
}

.small-tsu-card-content h3,
.small-tsu-card-content p {
  margin: 0;
}

.small-tsu-card-content h3 {
  font-size: 0.88rem;
}

.small-tsu-card-content p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.small-tsu-card-content .pause-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  color: #555d63;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pause-label::before {
  width: 5px;
  height: 18px;
  border-radius: 9px;
  background: #292c31;
  content: "";
}

.romanization-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #dce1e4;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
}

.romanization-note > span {
  padding: 10px 14px;
  border-radius: 10px;
  background: #292c31;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.romanization-note h3,
.romanization-note p {
  margin: 0;
}

.romanization-note h3 {
  font-size: 0.84rem;
}

.romanization-note p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.55;
}

.contracted-concept {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
  gap: 18px;
  margin: 20px 0 26px;
}

.contracted-equation,
.contracted-key {
  border: 1px solid #dce1e4;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(31, 37, 42, 0.05);
}

.contracted-equation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 18px;
}

.contracted-equation-symbol {
  color: #9aa0a5;
  font-size: 1.1rem;
  font-weight: 700;
}

.contracted-kana {
  display: grid;
  min-width: 70px;
  justify-items: center;
  gap: 7px;
}

.contracted-kana strong {
  display: grid;
  place-items: center;
  min-width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #f0f3f5;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.9rem;
  line-height: 1;
}

.contracted-kana small {
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 700;
}

.contracted-kana-small strong {
  min-width: 47px;
  width: 47px;
  height: 47px;
  align-self: end;
  background: #292c31;
  color: #fff;
  font-size: 1.32rem;
}

.contracted-kana-result strong {
  background: #292c31;
  color: #fff;
}

.contracted-key {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
}

.contracted-key h3,
.contracted-key p {
  margin: 0;
}

.contracted-key h3 {
  font-size: 0.86rem;
}

.contracted-key p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.55;
}

.contracted-key strong {
  color: #292c31;
}

.contracted-families {
  display: grid;
  gap: 18px;
}

.contracted-table {
  min-width: 430px;
}

.contracted-table th,
.contracted-table td {
  width: auto;
  height: 70px;
}

.contracted-table thead th:first-child,
.contracted-table tbody th {
  width: 120px;
}

.contracted-table tbody th {
  color: #555d63;
  font-size: 0.64rem;
  line-height: 1.35;
}

.contracted-table tbody tr:nth-child(even) td {
  background: #f8fafb;
}

.contracted-table td strong {
  letter-spacing: 0.02em;
}

.contracted-sound-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #dce1e4;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
}

.contracted-sound-examples {
  display: flex;
  gap: 8px;
}

.contracted-sound-examples span {
  min-width: 86px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #292c31;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

.contracted-sound-note h3,
.contracted-sound-note p {
  margin: 0;
}

.contracted-sound-note h3 {
  font-size: 0.84rem;
}

.contracted-sound-note p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.55;
}

.katakana-uses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin: 20px 0 24px;
}

.katakana-use-card {
  padding: 17px;
  border: 1px solid #dce1e4;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(31, 37, 42, 0.045);
}

.katakana-use-card > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 10px;
  background: #292c31;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
}

.katakana-use-card h3,
.katakana-use-card p {
  margin: 0;
}

.katakana-use-card h3 {
  font-size: 0.8rem;
}

.katakana-use-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.5;
}

.katakana-table td strong {
  font-weight: 700;
}

.katakana-vocabulary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.katakana-word-card {
  position: relative;
  overflow: hidden;
  min-height: 172px;
  padding: 20px;
  border: 1px solid #dce1e4;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 28px rgba(31, 37, 42, 0.045);
}

.katakana-word-card::after {
  position: absolute;
  right: -24px;
  bottom: -34px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(41, 44, 49, 0.035);
  content: "";
}

.katakana-category {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 7px;
  background: #eef1f3;
  color: #6d7479;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.katakana-word-card h3,
.katakana-word-card p {
  position: relative;
  z-index: 1;
  margin: 0;
}

.katakana-word-card h3 {
  margin-top: 15px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.55rem;
  line-height: 1.25;
}

.katakana-romaji {
  margin-top: 5px !important;
  color: #71787d;
  font-size: 0.72rem;
  font-style: italic;
  font-weight: 700;
}

.katakana-meaning {
  margin-top: 10px !important;
  color: #292c31;
  font-size: 0.78rem;
  font-weight: 700;
}

.long-vowel-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #dce1e4;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
}

.long-vowel-note > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #292c31;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.long-vowel-note h3,
.long-vowel-note p {
  margin: 0;
}

.long-vowel-note h3 {
  font-size: 0.84rem;
}

.long-vowel-note p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.55;
}

.loanword-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 20px 0 26px;
}

.loanword-step {
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1px solid #dce1e4;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.loanword-step span,
.loanword-step strong,
.loanword-step small {
  display: block;
}

.loanword-step span {
  color: #83898e;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.loanword-step strong {
  margin-top: 7px;
  font-size: 0.94rem;
}

.loanword-step small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.62rem;
}

.loanword-step-katakana {
  background: #292c31;
  color: #fff;
}

.loanword-step-katakana span,
.loanword-step-katakana small {
  color: rgba(255, 255, 255, 0.58);
}

.loanword-step-katakana strong {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.25rem;
}

.loanword-arrow {
  color: #9aa0a5;
  font-size: 1rem;
}

.katakana-reading-cards .reading-card {
  grid-template-columns: 200px minmax(0, 1fr);
}

.katakana-reading-cards .reading-breakdown {
  overflow-x: auto;
  justify-content: flex-start;
}

.reading-breakdown .long-mark {
  border-color: #cbd1d5;
  background: #292c31;
  color: #fff;
}

.reading-breakdown .long-mark small {
  color: rgba(255, 255, 255, 0.67);
}

.katakana-reading-note {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.katakana-reading-note > div {
  padding: 18px 20px;
  border: 1px solid #dce1e4;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
}

.katakana-reading-note h3,
.katakana-reading-note p {
  margin: 0;
}

.katakana-reading-note h3 {
  font-size: 0.82rem;
}

.katakana-reading-note p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.55;
}

.name-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin: 20px 0 26px;
}

.name-principle {
  padding: 18px;
  border: 1px solid #dce1e4;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(31, 37, 42, 0.045);
}

.name-principle > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 9px;
  background: #292c31;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.name-principle h3,
.name-principle p {
  margin: 0;
}

.name-principle h3 {
  font-size: 0.8rem;
}

.name-principle p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.5;
}

.name-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.name-card {
  overflow: hidden;
  border: 1px solid #dce1e4;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 28px rgba(31, 37, 42, 0.045);
}

.name-transformation {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) auto minmax(0, 1.15fr);
  gap: 10px;
  align-items: center;
  padding: 19px;
}

.name-original small,
.name-original strong,
.name-katakana strong,
.name-katakana span {
  display: block;
}

.name-original small {
  color: #8a9095;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.name-original strong {
  margin-top: 6px;
  font-size: 1rem;
}

.name-arrow {
  color: #9da3a7;
  font-size: 0.88rem;
}

.name-katakana {
  padding: 12px 14px;
  border-radius: 11px;
  background: #292c31;
  color: #fff;
}

.name-katakana strong {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.35rem;
  line-height: 1.2;
  white-space: nowrap;
}

.name-katakana span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.64rem;
  font-style: italic;
  font-weight: 700;
}

.name-explanation {
  margin: 0;
  padding: 14px 19px 16px;
  border-top: 1px solid #e0e4e7;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.55;
}

.name-explanation strong {
  color: #34393e;
}

.name-practice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #dce1e4;
  border-radius: 13px;
  background: #292c31;
  color: #fff;
}

.name-practice > span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.1);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.name-practice h3,
.name-practice p {
  margin: 0;
}

.name-practice h3 {
  font-size: 0.86rem;
}

.name-practice p {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.7rem;
  line-height: 1.55;
}

.structure-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin: 20px 0 26px;
}

.structure-overview-card {
  padding: 18px;
  border: 1px solid #dce1e4;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(31, 37, 42, 0.045);
}

.structure-overview-card > span {
  display: inline-flex;
  padding: 5px 8px;
  margin-bottom: 12px;
  border-radius: 7px;
  background: #292c31;
  color: #fff;
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.structure-overview-card h3,
.structure-overview-card p {
  margin: 0;
}

.structure-overview-card h3 {
  font-size: 0.8rem;
}

.structure-overview-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.5;
}

.structure-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  margin: 0 0 12px;
  color: #687075;
  font-size: 0.62rem;
  font-weight: 700;
}

.structure-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.structure-legend span::before {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #eef1f3;
  content: "";
}

.structure-legend .legend-particle::before {
  background: #d8dde0;
}

.structure-legend .legend-ending::before {
  background: #292c31;
}

.sentence-analyses {
  display: grid;
  gap: 15px;
}

.sentence-analysis {
  overflow: hidden;
  border: 1px solid #dce1e4;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 30px rgba(31, 37, 42, 0.05);
}

.sentence-analysis-header {
  padding: 20px;
  border-bottom: 1px solid #e0e4e7;
  background: #f2f4f6;
}

.sentence-analysis-header h3,
.sentence-analysis-header p {
  margin: 0;
}

.sentence-analysis-header h3 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.25rem;
  line-height: 1.45;
}

.sentence-romaji {
  margin-top: 6px !important;
  color: #6f767b;
  font-size: 0.71rem;
  font-style: italic;
  font-weight: 700;
}

.sentence-translation {
  margin-top: 9px !important;
  color: #34393e;
  font-size: 0.78rem;
  font-weight: 700;
}

.sentence-token-scroll {
  overflow-x: auto;
  padding: 18px;
  scrollbar-color: #aeb5ba #edf0f2;
  scrollbar-width: thin;
}

.sentence-tokens {
  min-width: max-content;
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.sentence-token {
  min-width: 94px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
  border: 1px solid #dfe3e6;
  border-radius: 10px;
  background: #f7f9fa;
  text-align: center;
}

.sentence-token strong,
.sentence-token span,
.sentence-token small {
  display: block;
}

.sentence-token strong {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.98rem;
}

.sentence-token span {
  margin-top: 4px;
  color: #687075;
  font-size: 0.61rem;
  font-style: italic;
  font-weight: 700;
}

.sentence-token small {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid #e1e5e7;
  color: #92989c;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sentence-token-particle {
  min-width: 68px;
  background: #e6eaed;
}

.sentence-token-ending {
  min-width: 118px;
  border-color: #292c31;
  background: #292c31;
  color: #fff;
}

.sentence-token-ending span,
.sentence-token-ending small {
  color: rgba(255, 255, 255, 0.64);
}

.sentence-token-ending small {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.tense-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #dce1e4;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
}

.tense-form {
  text-align: center;
}

.tense-form strong,
.tense-form span,
.tense-form small {
  display: block;
}

.tense-form strong {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.14rem;
}

.tense-form span {
  margin-top: 3px;
  color: #60686d;
  font-size: 0.68rem;
  font-style: italic;
  font-weight: 700;
}

.tense-form small {
  margin-top: 7px;
  color: #90969a;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tense-arrow {
  color: #959b9f;
}

.statement-formula {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 0.75fr) auto minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  margin: 20px 0 18px;
}

.formula-part,
.formula-result {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1px solid #dce1e4;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.formula-part strong,
.formula-result strong,
.formula-part span,
.formula-result span {
  display: block;
}

.formula-part strong {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.35rem;
}

.formula-part span,
.formula-result span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 700;
}

.formula-desu {
  border-color: #292c31;
  background: #292c31;
  color: #fff;
}

.formula-desu span {
  color: rgba(255, 255, 255, 0.62);
}

.formula-result {
  background: #eef1f3;
}

.formula-result strong {
  font-size: 0.9rem;
}

.formula-symbol {
  color: #969ca0;
  font-size: 1rem;
  font-weight: 800;
}

.desu-invariable {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 26px;
  padding: 13px 16px;
  border: 1px solid #dce1e4;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.66);
  color: #646b70;
  font-size: 0.66rem;
  font-weight: 700;
}

.desu-invariable span {
  padding: 5px 8px;
  border-radius: 7px;
  background: #eef1f3;
}

.sentence-categories {
  display: grid;
  gap: 18px;
}

.sentence-category {
  padding: 17px;
  border: 1px solid #dce1e4;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.54);
}

.sentence-category-header {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}

.sentence-category-header > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #292c31;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.sentence-category-header h3,
.sentence-category-header p {
  margin: 0;
}

.sentence-category-header h3 {
  font-size: 0.84rem;
}

.sentence-category-header p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.63rem;
}

.basic-sentence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.basic-sentence-card {
  overflow: hidden;
  border: 1px solid #dfe3e6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 37, 42, 0.04);
}

.basic-sentence-japanese {
  display: flex;
  align-items: stretch;
  min-height: 68px;
}

.basic-sentence-japanese strong {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 13px 8px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.18rem;
  line-height: 1.2;
}

.basic-sentence-japanese span {
  display: grid;
  place-items: center;
  padding: 11px;
  background: #292c31;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.basic-sentence-copy {
  padding: 12px 14px 14px;
  border-top: 1px solid #e2e6e8;
}

.basic-sentence-copy p {
  margin: 0;
}

.basic-sentence-romaji {
  color: #757c81;
  font-size: 0.66rem;
  font-style: italic;
  font-weight: 700;
}

.basic-sentence-translation {
  margin-top: 5px !important;
  color: #34393e;
  font-size: 0.72rem;
  font-weight: 700;
}

.article-context-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #dce1e4;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
}

.article-context-note > span {
  padding: 10px 13px;
  border-radius: 10px;
  background: #292c31;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}

.article-context-note h3,
.article-context-note p {
  margin: 0;
}

.article-context-note h3 {
  font-size: 0.83rem;
}

.article-context-note p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.55;
}

.negation-formula {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 20px 0 18px;
}

.negation-form {
  min-height: 122px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 1px solid #dce1e4;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.negation-form > span,
.negation-form strong,
.negation-form small {
  display: block;
}

.negation-form > span {
  color: #858c91;
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.negation-form strong {
  margin-top: 9px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.28rem;
}

.negation-form small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
}

.negation-form-negative {
  border-color: #292c31;
  background: #292c31;
  color: #fff;
}

.negation-form-negative > span,
.negation-form-negative small {
  color: rgba(255, 255, 255, 0.62);
}

.negation-form mark {
  padding: 3px 6px;
  border-radius: 6px;
  background: #e6eaed;
  color: #292c31;
}

.negation-form-negative mark {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.negation-formula-arrow {
  color: #949b9f;
  font-size: 1.2rem;
}

.negation-rule {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-bottom: 26px;
  padding: 13px 16px;
  border: 1px solid #dce1e4;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.66);
  color: #646b70;
  font-size: 0.66rem;
  font-weight: 700;
  text-align: center;
}

.negation-rule strong {
  padding: 5px 8px;
  border-radius: 7px;
  background: #292c31;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
}

.contrast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contrast-card {
  overflow: hidden;
  border: 1px solid #dce1e4;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 28px rgba(31, 37, 42, 0.045);
}

.contrast-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 17px 18px;
}

.contrast-row + .contrast-row {
  border-top: 1px solid #dfe3e6;
}

.contrast-row-negative {
  background: #f1f3f5;
}

.contrast-japanese,
.contrast-romaji,
.contrast-translation {
  margin: 0;
}

.contrast-japanese {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
}

.contrast-japanese mark {
  padding: 3px 5px;
  border-radius: 6px;
  background: #e8ecee;
  color: #292c31;
}

.contrast-row-negative .contrast-japanese mark {
  background: #292c31;
  color: #fff;
}

.contrast-romaji {
  margin-top: 4px;
  color: #747b80;
  font-size: 0.64rem;
  font-style: italic;
  font-weight: 700;
}

.contrast-translation {
  margin-top: 7px;
  color: #34393e;
  font-size: 0.7rem;
  font-weight: 700;
}

.contrast-state {
  min-width: 67px;
  padding: 6px 8px;
  border-radius: 7px;
  background: #eef1f3;
  color: #71787d;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.contrast-row-negative .contrast-state {
  background: #292c31;
  color: #fff;
}

.negation-context-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #dce1e4;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
}

.negation-context-note > span {
  padding: 10px 13px;
  border-radius: 10px;
  background: #292c31;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.negation-context-note h3,
.negation-context-note p {
  margin: 0;
}

.negation-context-note h3 {
  font-size: 0.83rem;
}

.negation-context-note p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.55;
}

.structure-expansion {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin: 20px 0 27px;
}

.structure-expansion-card {
  padding: 18px;
  border: 1px solid #dce1e4;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(31, 37, 42, 0.045);
}

.structure-expansion-card > strong {
  min-width: 48px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 12px;
  padding-inline: 9px;
  border-radius: 9px;
  background: #292c31;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.84rem;
}

.structure-expansion-card h3,
.structure-expansion-card p {
  margin: 0;
}

.structure-expansion-card h3 {
  font-size: 0.8rem;
}

.structure-expansion-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.5;
}

.ownership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ownership-card {
  overflow: hidden;
  border: 1px solid #dce1e4;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 28px rgba(31, 37, 42, 0.045);
}

.ownership-card-header {
  padding: 18px;
  border-bottom: 1px solid #e0e4e7;
  background: #f2f4f6;
}

.ownership-card-header h3,
.ownership-card-header p {
  margin: 0;
}

.ownership-card-header h3 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.08rem;
  line-height: 1.4;
}

.ownership-card-header .sentence-romaji {
  margin-top: 5px !important;
}

.ownership-chain {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 17px;
}

.ownership-chain > span {
  min-width: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border: 1px solid #dfe3e6;
  border-radius: 9px;
  background: #f7f9fa;
  text-align: center;
}

.ownership-chain > span strong,
.ownership-chain > span small {
  display: block;
}

.ownership-chain > span strong {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.92rem;
}

.ownership-chain > span small {
  margin-top: 4px;
  color: #777e83;
  font-size: 0.56rem;
  font-weight: 700;
}

.ownership-chain .ownership-particle {
  min-width: 52px;
  border-color: #292c31;
  background: #292c31;
  color: #fff;
}

.ownership-chain .ownership-particle small {
  color: rgba(255, 255, 255, 0.6);
}

.ownership-meaning {
  margin: 0;
  padding: 0 17px 17px;
  color: #34393e;
  font-size: 0.72rem;
  font-weight: 700;
}

.variation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.variation-card {
  overflow: hidden;
  border: 1px solid #dce1e4;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 28px rgba(31, 37, 42, 0.045);
}

.variation-card > header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 17px;
  background: #292c31;
  color: #fff;
}

.variation-card > header > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
}

.variation-card > header h3,
.variation-card > header p {
  margin: 0;
}

.variation-card > header h3 {
  font-size: 0.78rem;
}

.variation-card > header p {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.6rem;
}

.variation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 16px 17px;
}

.variation-row + .variation-row {
  border-top: 1px solid #e0e4e7;
  background: #f1f3f5;
}

.variation-row p {
  margin: 0;
}

.variation-japanese {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
}

.variation-japanese mark {
  padding: 3px 5px;
  border-radius: 6px;
  background: #e7ebed;
  color: #292c31;
}

.variation-row + .variation-row .variation-japanese mark {
  background: #292c31;
  color: #fff;
}

.variation-romaji {
  margin-top: 4px !important;
  color: #747b80;
  font-size: 0.63rem;
  font-style: italic;
  font-weight: 700;
}

.variation-translation {
  margin-top: 7px !important;
  color: #34393e;
  font-size: 0.69rem;
  font-weight: 700;
}

.variation-label {
  min-width: 74px;
  padding: 6px 8px;
  border-radius: 7px;
  background: #e9edef;
  color: #71787d;
  font-size: 0.53rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.variation-row + .variation-row .variation-label {
  background: #292c31;
  color: #fff;
}

.question-formula {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 0.55fr) auto minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  margin: 20px 0 18px;
}

.question-formula-part,
.question-formula-result {
  min-height: 106px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1px solid #dce1e4;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.question-formula-part strong,
.question-formula-result strong,
.question-formula-part span,
.question-formula-result span {
  display: block;
}

.question-formula-part strong {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.2rem;
}

.question-formula-part span,
.question-formula-result span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
}

.question-ka {
  border-color: #292c31;
  background: #292c31;
  color: #fff;
}

.question-ka strong {
  font-size: 1.55rem;
}

.question-ka span {
  color: rgba(255, 255, 255, 0.62);
}

.question-formula-result {
  background: #eef1f3;
}

.question-formula-result strong {
  font-size: 0.88rem;
}

.question-formula-symbol {
  color: #979da1;
  font-size: 1rem;
  font-weight: 800;
}

.question-writing-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-bottom: 26px;
  padding: 13px 16px;
  border: 1px solid #dce1e4;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.66);
  color: #646b70;
  font-size: 0.66rem;
  font-weight: 700;
  text-align: center;
}

.question-writing-note strong {
  color: #292c31;
}

.question-groups {
  display: grid;
  gap: 18px;
}

.question-group {
  padding: 17px;
  border: 1px solid #dce1e4;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.54);
}

.question-group-header {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}

.question-group-header > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #292c31;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.question-group-header h3,
.question-group-header p {
  margin: 0;
}

.question-group-header h3 {
  font-size: 0.84rem;
}

.question-group-header p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.63rem;
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.question-card {
  overflow: hidden;
  border: 1px solid #dfe3e6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 37, 42, 0.04);
}

.question-card-japanese {
  display: flex;
  align-items: stretch;
  min-height: 72px;
}

.question-card-japanese strong {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.03rem;
  line-height: 1.35;
  text-align: center;
}

.question-card-japanese mark {
  min-width: 42px;
  display: grid;
  place-items: center;
  padding: 10px;
  background: #292c31;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.question-card-copy {
  padding: 12px 14px 14px;
  border-top: 1px solid #e2e6e8;
}

.question-card-copy p {
  margin: 0;
}

.question-card-romaji {
  color: #757c81;
  font-size: 0.64rem;
  font-style: italic;
  font-weight: 700;
}

.question-card-translation {
  margin-top: 5px !important;
  color: #34393e;
  font-size: 0.71rem;
  font-weight: 700;
}

.intonation-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #dce1e4;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
}

.intonation-note > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #292c31;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
}

.intonation-note h3,
.intonation-note p {
  margin: 0;
}

.intonation-note h3 {
  font-size: 0.83rem;
}

.intonation-note p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.55;
}

.kanji-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin: 20px 0 27px;
}

.kanji-principle {
  padding: 18px;
  border: 1px solid #dce1e4;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(31, 37, 42, 0.045);
}

.kanji-principle > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 10px;
  background: #292c31;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.kanji-principle h3,
.kanji-principle p {
  margin: 0;
}

.kanji-principle h3 {
  font-size: 0.8rem;
}

.kanji-principle p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.5;
}

.kanji-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.kanji-analysis-card {
  overflow: hidden;
  border: 1px solid #dce1e4;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 30px rgba(31, 37, 42, 0.05);
}

.kanji-word-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  padding: 18px;
  background: #292c31;
  color: #fff;
}

.kanji-word-header > strong {
  min-width: 70px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.75rem;
  line-height: 1.2;
  text-align: center;
}

.kanji-word-header h3,
.kanji-word-header p {
  margin: 0;
}

.kanji-word-header h3 {
  font-size: 0.9rem;
}

.kanji-word-header p {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.65rem;
  font-style: italic;
  font-weight: 700;
}

.kanji-composition {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 17px;
}

.kanji-component {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px;
  border: 1px solid #dfe3e6;
  border-radius: 11px;
  background: #f6f8f9;
  text-align: center;
}

.kanji-component strong,
.kanji-component span {
  display: block;
}

.kanji-component strong {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.5rem;
  line-height: 1.2;
}

.kanji-component span {
  margin-top: 6px;
  color: #626a6f;
  font-size: 0.63rem;
  font-weight: 700;
}

.kanji-plus {
  color: #9ba1a5;
  font-size: 0.9rem;
  font-weight: 800;
}

.kanji-association {
  margin: 0;
  padding: 0 17px 17px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.55;
}

.kanji-association strong {
  color: #34393e;
}

.kanji-sound-variation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #dce1e4;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
}

.kanji-sound-examples {
  display: flex;
  gap: 8px;
}

.kanji-sound-examples span {
  min-width: 88px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #292c31;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.kanji-sound-variation h3,
.kanji-sound-variation p {
  margin: 0;
}

.kanji-sound-variation h3 {
  font-size: 0.83rem;
}

.kanji-sound-variation p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.55;
}

.course-finish-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 20px;
  border-radius: 13px;
  background: #292c31;
  color: #fff;
}

.course-finish-note > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.1rem;
  font-weight: 800;
}

.course-finish-note h3,
.course-finish-note p {
  margin: 0;
}

.course-finish-note h3 {
  font-size: 0.86rem;
}

.course-finish-note p {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.7rem;
  line-height: 1.55;
}

.about-article .lesson-heading {
  margin-bottom: 36px;
}

.about-section + .about-section {
  margin-top: 46px;
  padding-top: 42px;
  border-top: 1px solid #e0e4e7;
}

.about-section-heading {
  max-width: 700px;
  margin-bottom: 20px;
}

.about-section-heading .material-kicker {
  margin-bottom: 9px;
}

.about-section-heading h2,
.about-section-heading p {
  margin: 0;
}

.about-section-heading h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.about-section-heading p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

.about-prose {
  max-width: 760px;
}

.about-prose p {
  margin: 0;
  color: #4e555a;
  font-size: 0.94rem;
  line-height: 1.78;
}

.about-prose p + p {
  margin-top: 17px;
}

.about-photo {
  overflow: hidden;
  margin: 28px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 16px;
  background: #dfe3e6;
  box-shadow:
    0 20px 48px rgba(31, 37, 42, 0.13),
    0 0 0 5px rgba(255, 255, 255, 0.35);
}

.about-photo img {
  width: 100%;
  height: clamp(250px, 46vw, 470px);
  display: block;
  object-fit: cover;
}

.about-photo figcaption {
  padding: 11px 15px;
  background: rgba(255, 255, 255, 0.9);
  color: #777e83;
  font-size: 0.62rem;
  font-weight: 700;
}

.about-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.about-feature .about-photo {
  margin: 0;
}

.about-feature .about-photo img {
  height: 360px;
}

.about-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.about-links a {
  min-height: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #dce1e4;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
  color: #34393e;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.about-links a::after {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #292c31;
  color: #fff;
  content: "↗";
  font-size: 0.7rem;
}

.about-links a:hover,
.about-links a:focus-visible {
  border-color: #aeb4ba;
  box-shadow: 0 12px 28px rgba(31, 37, 42, 0.08);
  outline: none;
  transform: translateY(-2px);
}

.about-japanese {
  padding: clamp(22px, 4vw, 34px);
  border-radius: 16px;
  background: #292c31;
  color: #fff;
  box-shadow: 0 18px 42px rgba(31, 37, 42, 0.16);
}

.about-japanese h2,
.about-japanese p {
  margin: 0;
}

.about-japanese h2 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.25rem;
}

.about-japanese p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.76rem;
  line-height: 1.9;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  font-size: 0.86rem;
}

.footer-inner p {
  margin: 0;
}

.copyright {
  color: var(--white);
  font-weight: 600;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
  margin-top: 10px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer-nav a:not(:last-child)::after {
  margin-inline: 9px;
  color: rgba(255, 255, 255, 0.35);
  content: "|";
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--white);
}

@media (max-width: 760px) {
  .container,
  .header-inner {
    width: min(100% - 32px, 600px);
  }

  .header-inner {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 22px 0 16px;
  }

  .brand {
    flex-basis: auto;
  }

  .brand img {
    width: 205px;
  }

  .main-nav {
    width: 100%;
    gap: 22px;
    overflow-x: auto;
  }

  .main-nav a {
    flex: 0 0 auto;
    font-size: 0.82rem;
  }

  .welcome-section {
    padding: 64px 0 72px;
  }

  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .welcome-kicker {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 0;
    writing-mode: horizontal-tb;
  }

  .kicker-line {
    width: 58px;
    height: 2px;
    margin-top: 0;
  }

  .welcome-copy h1 {
    font-size: clamp(2.4rem, 12vw, 3.5rem);
  }

  .welcome-copy > p:not(.eyebrow) {
    font-size: 1rem;
    line-height: 1.75;
  }

  .lessons-section {
    padding: 68px 0 80px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .course-progress {
    padding: 17px;
  }

  .progress-copy {
    align-items: flex-start;
  }

  .footer-inner {
    gap: 7px;
  }

  .lesson-main {
    padding: 28px 0 70px;
  }

  .lesson-shell {
    width: min(100% - 24px, 600px);
  }

  .breadcrumb {
    margin: 0 8px 24px;
  }

  .lesson-article {
    border-radius: 16px;
  }

  .lesson-heading {
    margin-bottom: 30px;
  }

  .lesson-heading h1 strong {
    margin-top: 5px;
  }

  .lesson-introduction {
    font-size: 1rem;
    line-height: 1.72;
  }

  .video-frame {
    border-radius: 10px;
    box-shadow:
      0 16px 34px rgba(21, 23, 25, 0.16),
      0 0 0 4px rgba(255, 255, 255, 0.38);
  }

  .lesson-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .back-to-index,
  .complete-lesson-button {
    min-height: 48px;
  }

  .back-to-index {
    justify-content: center;
  }

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

  .phrase-main {
    border-right: 0;
    border-bottom: 1px solid #e1e5e8;
  }

  .phrase-main,
  .phrase-explanation {
    padding: 21px;
  }

  .learning-note {
    grid-template-columns: 1fr;
  }

  .full-course-box {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 25px;
    border-radius: 15px;
  }

  .full-course-button {
    width: 100%;
    white-space: normal;
  }

  .pronunciation-rules {
    grid-template-columns: 1fr;
  }

  .vocabulary-group {
    grid-template-columns: 1fr;
  }

  .vocabulary-group-header {
    border-right: 0;
  }

  .vocabulary-items {
    grid-template-columns: 1fr;
  }

  .vocab-row {
    display: grid;
    grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1fr);
    align-items: center;
    gap: 2px 16px;
    padding: 17px 20px;
  }

  .vocab-row + .vocab-row {
    border-top: 1px solid #e1e5e8;
    border-left: 0;
  }

  .vocab-japanese {
    grid-row: span 2;
  }

  .vocab-romanization,
  .vocab-meaning {
    margin-top: 0 !important;
  }

  .indication-cards {
    grid-template-columns: 1fr;
  }

  .indication-description {
    min-height: 0;
  }

  .family-variants {
    grid-template-columns: 1fr;
  }

  .family-variant + .family-variant {
    border-top: 1px solid #e0e4e7;
    border-left: 0;
  }

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

  .pillars-overview,
  .writing-systems,
  .writing-focus,
  .learning-roadmap {
    grid-template-columns: 1fr;
  }

  .learning-roadmap {
    gap: 0;
  }

  .learning-roadmap::before {
    top: 24px;
    bottom: 24px;
    left: 23px;
    width: 2px;
    height: auto;
  }

  .learning-roadmap li {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 15px;
    align-items: start;
    padding: 0 0 22px;
    text-align: left;
  }

  .learning-roadmap li > span {
    margin: 0;
  }

  .writing-example figcaption {
    grid-template-columns: 1fr;
  }

  .writing-example figcaption strong {
    grid-row: auto;
  }

  .table-scroll-hint {
    display: flex;
  }

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

  .reading-word {
    border-right: 0;
  }

  .word-analysis {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .kana-sequence {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .analysis-note {
    grid-column: 1;
    margin-top: -5px;
    text-align: left;
  }

  .repetition-map {
    grid-template-columns: 1fr;
  }

  .review-deck,
  .review-summary,
  .modification-signs,
  .small-tsu-concept,
  .small-tsu-vocabulary,
  .contracted-concept,
  .katakana-uses,
  .katakana-vocabulary,
  .katakana-reading-note,
  .name-principles,
  .name-cards,
  .structure-overview,
  .basic-sentence-grid,
  .contrast-grid,
  .structure-expansion,
  .ownership-grid,
  .variation-grid,
  .question-grid,
  .kanji-principles,
  .kanji-analysis-grid,
  .about-feature,
  .about-links {
    grid-template-columns: 1fr;
  }

  .about-feature .about-photo {
    order: 2;
  }

  .about-feature .about-photo img {
    height: clamp(240px, 72vw, 390px);
  }

  .question-formula {
    grid-template-columns: 1fr;
  }

  .question-formula-symbol {
    transform: rotate(90deg);
    justify-self: center;
  }

  .intonation-note {
    grid-template-columns: 1fr;
  }

  .kanji-sound-variation,
  .course-finish-note {
    grid-template-columns: 1fr;
  }

  .statement-formula {
    grid-template-columns: 1fr;
  }

  .formula-symbol {
    transform: rotate(90deg);
    justify-self: center;
  }

  .article-context-note {
    grid-template-columns: 1fr;
  }

  .negation-formula {
    grid-template-columns: 1fr;
  }

  .negation-formula-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .negation-context-note {
    grid-template-columns: 1fr;
  }

  .loanword-flow {
    grid-template-columns: 1fr;
  }

  .loanword-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .katakana-reading-cards .reading-card {
    grid-template-columns: 1fr;
  }

  .name-practice {
    grid-template-columns: 1fr;
  }

  .duplicate-sounds,
  .romanization-note,
  .contracted-sound-note,
  .long-vowel-note {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .lesson-list a {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    padding-inline: 15px;
  }

  .arrow {
    width: 27px;
    height: 27px;
  }

  .completion-toggle {
    left: 15px;
    width: 32px;
    height: 32px;
  }

  .js-progress .lesson-list a {
    padding-left: 59px;
  }

  .vocab-row {
    grid-template-columns: minmax(100px, 0.75fr) minmax(0, 1fr);
  }

  .small-tsu-card {
    grid-template-columns: minmax(104px, 0.68fr) minmax(0, 1fr);
  }

  .contracted-equation {
    gap: 7px;
    padding-inline: 10px;
  }

  .contracted-kana {
    min-width: 54px;
  }

  .contracted-kana strong {
    min-width: 54px;
    height: 54px;
    font-size: 1.55rem;
  }

  .contracted-kana-small strong {
    min-width: 40px;
    width: 40px;
    height: 40px;
    font-size: 1.12rem;
  }

  .location-intro {
    grid-template-columns: 1fr;
  }

  .location-words {
    grid-template-columns: 1fr;
  }

  .suffix-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .suffix-content {
    padding: 18px;
  }

  .suffix-symbol strong {
    font-size: 1.4rem;
  }

  .hiragana-sound-note {
    grid-template-columns: 1fr;
  }

  .reading-breakdown {
    gap: 8px;
    padding: 17px 12px;
  }

  .reading-breakdown > span {
    min-width: 56px;
    min-height: 56px;
  }
}

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

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

/* Página de inscrição */

.signup-page {
  --signup-blue: #2383a0;
  --signup-blue-dark: #185f76;
  --signup-blue-soft: #dcecf1;
  overflow-x: hidden;
  background: #f3f5f7;
}

.signup-page .container {
  width: min(1180px, calc(100% - 48px));
}

.signup-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(250, 251, 252, 0.74);
  box-shadow: 0 10px 34px rgba(31, 37, 42, 0.045);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.signup-header .accent-bar {
  height: 5px;
  background: var(--signup-blue);
}

.signup-header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.signup-brand {
  width: min(235px, 48vw);
  display: inline-flex;
}

.signup-brand img {
  width: 100%;
  height: auto;
  display: block;
}

.signup-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid rgba(32, 33, 38, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 22px rgba(31, 37, 42, 0.055);
  color: #383a3f;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.signup-header-cta span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signup-blue);
  box-shadow: 0 0 0 5px rgba(35, 131, 160, 0.1);
}

.signup-header-cta:hover,
.signup-header-cta:focus-visible {
  border-color: rgba(35, 131, 160, 0.42);
  outline: none;
  transform: translateY(-2px);
}

.signup-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(58px, 7vw, 88px) 0 clamp(72px, 8vw, 104px);
  background:
    radial-gradient(circle at 10% 18%, rgba(255, 255, 255, 0.98), transparent 31rem),
    radial-gradient(circle at 88% 16%, rgba(35, 131, 160, 0.1), transparent 30rem),
    linear-gradient(145deg, #f7f8f9, #eceff2);
}

.signup-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(32, 33, 38, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 33, 38, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.signup-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(35, 131, 160, 0.12);
  border-radius: 50%;
}

.signup-orbit-one {
  top: -240px;
  right: -160px;
  width: 540px;
  height: 540px;
}

.signup-orbit-two {
  bottom: -210px;
  left: -170px;
  width: 440px;
  height: 440px;
}

.signup-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(46px, 6vw, 72px);
  align-items: center;
}

.signup-eyebrow,
.signup-section-kicker,
.signup-form-kicker {
  margin: 0;
  color: var(--signup-blue-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.signup-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 19px;
}

.signup-eyebrow span {
  width: 34px;
  height: 2px;
  background: var(--signup-blue);
}

.signup-hero-content > h1 {
  max-width: 610px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.6rem, 4.9vw, 4.3rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 1.01;
}

.signup-hero-content > h1 strong {
  display: inline-block;
  color: var(--red);
  font-weight: 750;
}

.signup-lead {
  max-width: 590px;
  margin: 23px 0 0;
  color: #555a60;
  font-size: 1.02rem;
  line-height: 1.72;
}

.signup-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin: 22px 0 27px;
  padding: 0;
  list-style: none;
}

.signup-highlights li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(32, 33, 38, 0.075);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: #4c5156;
  font-size: 0.77rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.signup-highlights span {
  color: var(--signup-blue);
}

.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(244, 247, 249, 0.6));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 24px 68px rgba(31, 37, 42, 0.11);
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
}

.signup-form {
  position: relative;
  z-index: 3;
  overflow: hidden;
  max-width: 650px;
  padding: clamp(23px, 3vw, 30px);
  border-radius: 20px;
}

.signup-form::before {
  position: absolute;
  top: -80px;
  right: -50px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(35, 131, 160, 0.09);
  content: "";
  filter: blur(3px);
}

.signup-form-heading {
  position: relative;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.signup-form-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.signup-form-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(35, 131, 160, 0.18);
  border-radius: 999px;
  background: rgba(35, 131, 160, 0.08);
  color: var(--signup-blue-dark);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.signup-field + .signup-field {
  margin-top: 13px;
}

.signup-field label {
  display: block;
  margin: 0 0 6px 2px;
  color: #474c51;
  font-size: 0.74rem;
  font-weight: 750;
}

.signup-field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid rgba(32, 33, 38, 0.13);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.67);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 4px 14px rgba(31, 37, 42, 0.035);
  color: var(--ink);
  font: 500 0.94rem/1.4 "DM Sans", sans-serif;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.signup-field input::placeholder {
  color: #8a8f94;
}

.signup-field input:focus {
  border-color: rgba(35, 131, 160, 0.62);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 4px rgba(35, 131, 160, 0.1);
}

.signup-field .iti {
  display: block;
  width: 100%;
}

.signup-field .iti input[type="tel"] {
  padding-left: 52px;
}

.iti__country-list {
  color: var(--ink);
  font: 500 0.88rem/1.35 "DM Sans", sans-serif;
}

.signup-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.signup-submit {
  width: 100%;
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  padding: 12px 20px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), #f14c57);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 13px 28px rgba(238, 44, 58, 0.24);
  color: var(--white);
  cursor: pointer;
  font: 800 0.84rem/1.2 "DM Sans", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.signup-submit span {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.signup-submit:hover,
.signup-submit:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 17px 34px rgba(238, 44, 58, 0.31);
  outline: none;
  transform: translateY(-2px);
}

.signup-submit:hover span,
.signup-submit:focus-visible span {
  transform: translateX(4px);
}

.signup-privacy {
  margin: 13px auto 0;
  color: #797e83;
  font-size: 0.67rem;
  line-height: 1.45;
  text-align: center;
}

.signup-form-status {
  min-height: 0;
  margin: 0;
  color: #555b60;
  font-size: 0.72rem;
  font-weight: 650;
  text-align: center;
}

.signup-form-status:not(:empty) {
  min-height: 20px;
  margin-top: 11px;
}

.signup-hero-visual {
  position: relative;
  min-height: 625px;
}

.signup-photo-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 7px solid rgba(255, 255, 255, 0.64);
  border-radius: 28px;
  background: #c8c8c8;
  box-shadow:
    0 32px 78px rgba(31, 37, 42, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.68);
}

.signup-photo-frame::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 23, 26, 0.27), transparent 48%);
  content: "";
}

.signup-photo-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 91% center;
  transform: scale(1.04);
}

.signup-floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(248, 249, 250, 0.69);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 20px 45px rgba(31, 37, 42, 0.14);
  backdrop-filter: blur(19px) saturate(140%);
  -webkit-backdrop-filter: blur(19px) saturate(140%);
}

.signup-floating-card-top {
  top: 22px;
  left: 22px;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  border-radius: 14px;
}

.signup-floating-card-top strong {
  color: var(--signup-blue-dark);
  font-size: 1.25rem;
}

.signup-floating-card-top span,
.signup-floating-card-bottom > span:last-child {
  max-width: 120px;
  color: #4d5257;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25;
}

.signup-floating-card-bottom {
  right: 22px;
  bottom: 22px;
  align-items: center;
  gap: 12px;
  max-width: 240px;
  padding: 14px 16px;
  border-radius: 16px;
}

.signup-floating-card-bottom > span:last-child {
  max-width: 150px;
}

.signup-avatar-stack {
  display: flex;
}

.signup-avatar-stack i {
  width: 26px;
  height: 26px;
  display: block;
  margin-left: -7px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #44484d;
}

.signup-avatar-stack i:first-child {
  margin-left: 0;
  background: var(--signup-blue);
}

.signup-avatar-stack i:last-child {
  background: #9fa6ab;
}

.signup-benefits {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 8vw, 104px) 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(89, 180, 205, 0.18), transparent 30rem),
    linear-gradient(145deg, #176b84, #12566d);
}

.signup-benefits::after {
  position: absolute;
  right: -170px;
  bottom: -240px;
  width: 520px;
  height: 520px;
  border: 85px solid rgba(255, 255, 255, 0.025);
  border-radius: 50%;
  content: "";
}

.signup-section-heading {
  position: relative;
  z-index: 1;
}

.signup-section-heading h2,
.signup-teacher-copy h2,
.signup-final-panel h2 {
  margin: 12px 0 0;
  font-size: clamp(2.05rem, 4vw, 3.55rem);
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.signup-section-heading-light {
  max-width: 790px;
  margin-inline: auto;
  text-align: center;
}

.signup-final-panel .signup-section-kicker {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.signup-section-heading-light h2 {
  color: var(--white);
  text-shadow: 0 2px 18px rgba(6, 45, 58, 0.16);
}

.signup-section-heading-light .signup-section-kicker {
  color: rgba(255, 255, 255, 0.82);
}

.signup-section-heading-light > p:last-child {
  max-width: 670px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  line-height: 1.75;
}

.signup-benefit-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.signup-benefit-card {
  min-height: 220px;
  padding: 23px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(7, 56, 72, 0.4), rgba(8, 51, 66, 0.25));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 18px 42px rgba(4, 37, 48, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.signup-benefit-card:hover {
  border-color: rgba(255, 255, 255, 0.48);
  background: linear-gradient(145deg, rgba(7, 51, 66, 0.5), rgba(8, 48, 62, 0.32));
  transform: translateY(-4px);
}

.signup-benefit-number {
  display: inline-block;
  padding-bottom: 11px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.72);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.signup-benefit-card h3 {
  margin: 42px 0 9px;
  color: var(--white);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.signup-benefit-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.88rem;
  line-height: 1.65;
}

.signup-community {
  padding: clamp(76px, 8vw, 108px) 0;
  background: linear-gradient(180deg, #f8fafb, #edf4f6);
}

.signup-community-heading {
  max-width: 850px;
  margin-inline: auto;
  text-align: center;
}

.signup-community-heading h2 {
  max-width: 780px;
  margin-inline: auto;
  color: var(--ink);
}

.signup-community-heading > p {
  max-width: 670px;
  margin: 20px auto 0;
  color: #656b71;
  line-height: 1.75;
}

.signup-gallery {
  position: relative;
  width: min(1240px, calc(100% - 48px));
  margin: 48px auto 0;
  overflow: hidden;
  padding: 8px 0 22px;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.signup-gallery-track {
  width: max-content;
  display: flex;
  gap: 15px;
  animation: signup-gallery-marquee 48s linear infinite;
  will-change: transform;
}

.signup-gallery-group {
  display: flex;
  gap: 15px;
}

.signup-gallery figure {
  position: relative;
  width: clamp(250px, 22vw, 310px);
  flex: 0 0 auto;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin: 0;
  border: 6px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  background: #d9dde0;
  box-shadow: 0 15px 38px rgba(31, 37, 42, 0.12);
}

.signup-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.signup-gallery figure:hover img {
  transform: scale(1.045);
}

@keyframes signup-gallery-marquee {
  to {
    transform: translate3d(calc(-50% - 7.5px), 0, 0);
  }
}

.signup-teacher {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 8vw, 108px) 0;
  background:
    radial-gradient(circle at 18% 70%, rgba(35, 131, 160, 0.09), transparent 25rem),
    #edf3f5;
}

.signup-teacher-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 7vw, 82px);
  align-items: center;
}

.signup-teacher-visual {
  position: relative;
  width: min(100%, 430px);
  min-height: 0;
  margin-inline: auto;
}

.signup-teacher-backdrop {
  display: none;
}

.signup-teacher-visual > img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  border: 7px solid rgba(255, 255, 255, 0.74);
  border-radius: 28px;
  box-shadow: 0 25px 58px rgba(31, 37, 42, 0.16);
}

.signup-teacher-stamp {
  position: absolute;
  z-index: 3;
  right: 20px;
  bottom: 20px;
  width: 104px;
  height: 104px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: rgba(35, 131, 160, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 18px 38px rgba(31, 37, 42, 0.17);
  color: var(--white);
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.signup-teacher-stamp span {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
}

.signup-teacher-stamp small {
  display: block;
  margin-top: 2px;
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.signup-teacher-copy h2 {
  max-width: 650px;
  color: var(--ink);
}

.signup-teacher-copy > p:not(.signup-section-kicker) {
  max-width: 650px;
  margin: 23px 0 0;
  color: #5c6267;
  line-height: 1.82;
}

.signup-teacher-copy blockquote {
  max-width: 620px;
  margin: 30px 0 0;
  padding: 21px 24px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-left: 3px solid var(--signup-blue);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 12px 30px rgba(31, 37, 42, 0.05);
  color: #3f4449;
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.65;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.signup-text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 31px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--red);
  color: var(--red-dark);
  font-size: 0.89rem;
  font-weight: 800;
  text-decoration: none;
}

.signup-text-link span {
  transition: transform 0.2s ease;
}

.signup-text-link:hover span,
.signup-text-link:focus-visible span {
  transform: translateY(-4px);
}

.signup-final-cta {
  padding: 20px 0 92px;
  background: #edf3f5;
}

.signup-final-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 270px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
  padding: clamp(34px, 6vw, 62px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.11), transparent 24rem),
    #185f76;
  box-shadow: 0 27px 72px rgba(31, 37, 42, 0.18);
}

.signup-final-panel h2 {
  max-width: 700px;
  margin-inline: auto;
  color: var(--white);
  text-align: center;
}

.signup-final-panel > a {
  position: relative;
  z-index: 2;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 23px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 15px 35px rgba(0, 0, 0, 0.18);
  color: #292c30;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  justify-self: center;
}

.signup-final-panel > a:hover,
.signup-final-panel > a:focus-visible {
  background: var(--white);
  outline: none;
  transform: translateY(-3px);
}

.signup-page .site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1020px) {
  .signup-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }

  .signup-hero-visual {
    min-height: 570px;
  }

  .signup-floating-card-top {
    left: 18px;
  }

  .signup-floating-card-bottom {
    right: 18px;
  }

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

  .signup-benefit-card {
    min-height: 220px;
  }

  .signup-benefit-card h3 {
    margin-top: 44px;
  }

  .signup-teacher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
  }
}

@media (max-width: 790px) {
  .signup-page .container {
    width: min(100% - 32px, 680px);
  }

  .signup-header-inner {
    min-height: 75px;
  }

  .signup-header-cta {
    padding: 9px 12px;
    font-size: 0.7rem;
  }

  .signup-hero {
    padding-top: 54px;
  }

  .signup-hero-grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .signup-hero-content > h1 {
    font-size: clamp(2.55rem, 11vw, 3.8rem);
  }

  .signup-form {
    max-width: none;
  }

  .signup-hero-visual {
    min-height: min(760px, 126vw);
  }

  .signup-photo-frame {
    inset: 0;
    border-radius: 24px;
  }

  .signup-floating-card-top {
    top: 18px;
    left: 18px;
  }

  .signup-floating-card-bottom {
    right: 18px;
    bottom: 18px;
  }

  .signup-community-heading,
  .signup-teacher-grid,
  .signup-final-panel {
    grid-template-columns: 1fr;
  }

  .signup-community-heading {
    align-items: start;
  }

  .signup-community-heading > p {
    max-width: 590px;
  }

  .signup-gallery {
    width: calc(100% - 32px);
    padding-block: 8px 18px;
  }

  .signup-gallery figure {
    width: clamp(245px, 68vw, 285px);
  }

  .signup-teacher-grid {
    gap: 62px;
  }

  .signup-teacher-visual {
    width: min(100%, 410px);
    min-height: 0;
  }

  .signup-teacher-stamp {
    right: 16px;
    bottom: 16px;
  }

  .signup-final-panel {
    gap: 34px;
    align-items: center;
  }

  .signup-final-panel > a {
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .signup-header-cta {
    width: 42px;
    height: 42px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  .signup-header-cta span {
    width: 10px;
    height: 10px;
  }

  .signup-hero-content > h1 {
    letter-spacing: -0.06em;
  }

  .signup-lead {
    font-size: 1rem;
  }

  .signup-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .signup-highlights li {
    min-height: 48px;
    justify-content: center;
    padding: 7px 5px;
    border-radius: 10px;
    font-size: 0.62rem;
    line-height: 1.2;
    text-align: center;
  }

  .signup-form {
    margin-inline: -4px;
    border-radius: 20px;
  }

  .signup-form-badge {
    padding: 6px 8px;
    font-size: 0.58rem;
  }

  .signup-hero-visual {
    min-height: 600px;
  }

  .signup-photo-frame {
    border-width: 5px;
    border-radius: 20px;
  }

  .signup-floating-card-bottom {
    right: 12px;
    bottom: 12px;
    max-width: 215px;
  }

  .signup-floating-card-top {
    top: 12px;
    left: 12px;
  }

  .signup-benefit-grid {
    grid-template-columns: 1fr;
  }

  .signup-benefit-card {
    min-height: 205px;
  }

  .signup-gallery {
    width: calc(100% - 20px);
  }

  .signup-gallery figure {
    width: min(78vw, 280px);
  }

  .signup-teacher-visual {
    width: min(100%, 360px);
    min-height: 0;
  }

  .signup-teacher-backdrop {
    display: none;
  }

  .signup-teacher-visual > img {
    border-width: 5px;
    border-radius: 20px;
  }

  .signup-teacher-stamp {
    width: 96px;
    height: 96px;
  }

  .signup-teacher-stamp span {
    font-size: 1.3rem;
  }

  .signup-final-panel > a {
    width: 100%;
  }
}
