@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Cormorant+Garamond:wght@500;600;700&family=Noto+Sans+JP:wght@400;500;700&family=Inter:wght@400;500;600;700;800&display=swap");

/* ===============================
   TOKENS
=============================== */
:root {
  --bg: #f7f4ee;
  --bg-2: #fbf9f4;
  --bg-3: #f1ece3;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-2: #fffdfa;

  --line: rgba(100, 86, 62, 0.14);
  --line-2: rgba(100, 86, 62, 0.26);

  --text: #26211c;
  --muted: #5f564d;
  --subtle: #8d8174;

  --ok: #1f8f66;
  --ok-bg: rgba(31, 143, 102, 0.14);
  --ok-border: rgba(31, 143, 102, 0.32);

  --warn: #c16458;
  --warn-bg: rgba(193, 100, 88, 0.14);
  --warn-border: rgba(193, 100, 88, 0.34);

  --accent: #b88646;
  --accent-2: #d9b27a;
  --accent-bg: rgba(184, 134, 70, 0.14);

  --ipa: #486992;

  --shadow-sm: 0 10px 24px rgba(82, 58, 28, 0.07);
  --shadow-md: 0 18px 44px rgba(82, 58, 28, 0.11);
  --shadow-card: 0 12px 28px rgba(82, 58, 28, 0.06);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --btn-h: 52px;
  --max: 860px;
}

/* ===============================
   RESET
=============================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 16.5px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at 2px 2px, rgba(120, 100, 70, 0.1) 2px, transparent 0),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  background-size: 14px 14px, 100% 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

/* ===============================
   HEADER
=============================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 244, 238, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__row {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #dcb883, #c49352);
  display: grid;
  place-items: center;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fffdf8;
  letter-spacing: -0.03em;
  box-shadow: var(--shadow-sm);
}

.site-brand__name {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 1.72rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}

.site-nav {
  display: flex;
  gap: 8px;
}

.site-nav a {
  height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.16s ease;
}

.site-nav a:hover {
  color: var(--text);
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.62);
}

/* ===============================
   HERO
=============================== */
.hero-section {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-section__bg {
  position: absolute;
  inset: 0;
}

.hero-section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-section__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(255, 251, 244, 0.16) 0%,
      rgba(255, 251, 244, 0.12) 34%,
      rgba(247, 244, 238, 0.56) 70%,
      rgba(247, 244, 238, 0.82) 100%
    );
}

.hero-section__nav-wrap {
  position: absolute;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: min(calc(100% - 40px), var(--max));
}

.hero-section__inner {
  position: relative;
  z-index: 2;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-card {
  width: min(100%, 500px);
  padding: 40px 36px;
  border-radius: 30px;
  background: rgba(255, 253, 250, 0.56);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-md);
}

.hero-card__label {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 700;
}

.hero-card__text {
  font-size: 1.18rem;
  font-weight: 500;
  color: #2a2622;
  line-height: 1.9;
  margin-bottom: 28px;
  text-wrap: balance;
}

/* ===============================
   BUTTONS
=============================== */
.cta-btn,
.compare-btn {
  min-height: var(--btn-h);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  transition: all 0.16s ease;
}

.cta-btn {
  width: fit-content;
  padding: 0 24px;
  background: linear-gradient(135deg, #d6ab72, #b98543);
  color: #fffdfa;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-sm);
}

.cta-btn:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.cta-btn__icon {
  font-size: 0.85rem;
}

/* ===============================
   SECTIONS
=============================== */
.section-block {
  padding: 68px 0;
  border-bottom: 1px solid var(--line);
}

.section-block__label,
.section-block__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.section-block__label {
  margin-bottom: 16px;
}

.section-block__eyebrow {
  margin-bottom: 28px;
}

/* ===============================
   HOW
=============================== */
.how-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.how-step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  flex: 1;
  min-width: 180px;
  box-shadow: 0 8px 18px rgba(82, 58, 28, 0.03);
}

.how-step__num {
  font-size: 0.74rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  flex-shrink: 0;
  font-weight: 700;
}

.how-step__text strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.how-step__text span {
  font-size: 0.86rem;
  color: var(--muted);
}

.how-steps__arrow {
  color: var(--subtle);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ===============================
   PHONEME NAV
=============================== */
.phoneme-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: none;
}

.phoneme-nav::-webkit-scrollbar {
  display: none;
}

.phoneme-btn {
  flex: 0 0 auto;
  min-width: 54px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 253, 250, 0.62);
  backdrop-filter: blur(12px);
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(82, 58, 28, 0.06);
  transition: all 0.16s ease;
}

.phoneme-btn:hover {
  background: rgba(255, 253, 250, 0.84);
  color: var(--text);
}

.phoneme-btn.is-active {
  background: rgba(255, 250, 241, 0.98);
  border-color: rgba(184, 134, 70, 0.52);
  color: var(--accent);
  box-shadow: 0 0 0 1px rgba(184, 134, 70, 0.12) inset;
}

/* ===============================
   PHONEME SECTION
=============================== */
.phoneme-section {
  background: transparent;
}

.phoneme-hero {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.phoneme-hero__glyph {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: clamp(6rem, 20vw, 9rem);
  line-height: 0.82;
  color: var(--text);
  flex-shrink: 0;
  letter-spacing: -0.07em;
}

.phoneme-hero__info {
  padding-top: 8px;
  max-width: 560px;
}

.phoneme-hero__label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 700;
}

.phoneme-hero__title {
  font-family: "Manrope", "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 12px;
}

.phoneme-hero__desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 16px;
}

.phoneme-hero__desc strong {
  color: var(--text);
  font-weight: 700;
}

.phoneme-hero__tip {
  font-size: 0.92rem;
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: 14px;
  line-height: 1.6;
}

/* ===============================
   PAIRS
=============================== */
.pair-list {
  display: grid;
  gap: 34px;
}

.pair-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 252, 247, 0.94));
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  padding: 24px 20px;
}

.pair-card__headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.pair-card__text-group {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.pair-card__main-note {
  font-size: 1.12rem;
  font-weight: 700;
  color: #1f1b17;
  line-height: 1.5;
}

.pair-card__sub-note {
  font-size: 0.86rem;
  color: #6e655b;
  line-height: 1.55;
}

.hi-ok {
  color: var(--ok);
  font-weight: 700;
}

.hi-warn {
  color: var(--warn);
  font-weight: 700;
}

.compare-btn {
  padding: 0 12px;
  min-height: 34px;
  width: auto;
  border: 1px solid var(--line-2);
  font-size: 0.82rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  align-self: flex-start;
}

.compare-btn:hover {
  border-color: rgba(184, 134, 70, 0.34);
  color: var(--accent);
  background: rgba(255, 250, 241, 0.94);
}

.compare-btn.is-playing {
  border-color: rgba(184, 134, 70, 0.46);
  color: var(--accent);
  background: var(--accent-bg);
}

.pair-card__body {
  display: grid;
  gap: 10px;
}

.pair-card__vs {
  text-align: center;
  font-size: 0.67rem;
  color: var(--subtle);
  margin: 4px 0;
  letter-spacing: 0.14em;
  font-weight: 700;
}

/* ===============================
   PHRASE CARD
=============================== */
.phrase-card {
  border-radius: var(--r-lg);
  padding: 16px 16px 14px;
  display: grid;
  gap: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.phrase-card:hover {
  transform: translateY(-1px);
}

.phrase-card:active {
  transform: translateY(0);
}

.phrase-card.is-ok {
  background: var(--ok-bg);
  border-color: var(--ok-border);
}

.phrase-card.is-warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
}

.phrase-card.is-speaking {
  border-color: rgba(184, 134, 70, 0.9);
  box-shadow:
    0 0 0 2px rgba(184, 134, 70, 0.22),
    0 0 18px rgba(184, 134, 70, 0.22),
    0 10px 24px rgba(82, 58, 28, 0.08);
}

.phrase-card.is-speaking::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 221, 145, 0.14) 42%,
    transparent 78%
  );
  animation: shineMove 1.2s ease;
}

.phrase-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.phrase-card__main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.phrase-card__divider {
  color: var(--subtle);
  font-size: 0.8rem;
}

.phrase-card__badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 5px 10px;
  width: fit-content;
  line-height: 1.1;
  white-space: nowrap;
}

.phrase-card__badge.is-ok {
  background: rgba(31, 143, 102, 0.14);
  color: var(--ok);
}

.phrase-card__badge.is-warn {
  background: rgba(193, 100, 88, 0.14);
  color: var(--warn);
}

.phrase-card__english {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: 800;
  font-size: clamp(1.12rem, 4.8vw, 1.34rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: #1f1b17;
}

.phrase-card__ipa {
  font-size: 0.88rem;
  line-height: 1.4;
  color: #3e5f8a;
  font-weight: 500;
  word-break: break-word;
}

.phrase-card__ja {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #5a524a;
}

.mini-play {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  transition: all 0.15s ease;
}

.phrase-card.is-ok .mini-play:hover {
  background: rgba(31, 143, 102, 0.12);
  border-color: var(--ok-border);
}

.phrase-card.is-warn .mini-play:hover {
  background: rgba(193, 100, 88, 0.12);
  border-color: var(--warn-border);
}

.phrase-card.is-speaking .mini-play {
  border-color: rgba(184, 134, 70, 0.5);
  background: rgba(184, 134, 70, 0.12);
  color: var(--accent);
}

/* ===============================
   FOCUS
=============================== */
.focus {
  color: var(--accent);
  font-weight: 800;
  background: rgba(184, 134, 70, 0.15);
  padding: 2px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.phrase-card.is-speaking .focus {
  background: rgba(184, 134, 70, 0.28);
  box-shadow: 0 0 8px rgba(184, 134, 70, 0.28);
}

.phrase-card.is-speaking .phrase-card__english .focus {
  animation: focusPulse 0.55s ease;
}

.focus-word {
  color: var(--accent);
  font-weight: 800;
  background: rgba(184, 134, 70, 0.15);
  padding: 2px 6px;
  border-radius: 6px;
}

.focus-ipa {
  color: var(--accent);
  font-weight: 800;
}

@keyframes focusPulse {
  0% {
    background: rgba(184, 134, 70, 0.1);
    box-shadow: 0 0 0 rgba(184, 134, 70, 0);
  }
  50% {
    background: rgba(184, 134, 70, 0.34);
    box-shadow: 0 0 12px rgba(184, 134, 70, 0.3);
  }
  100% {
    background: rgba(184, 134, 70, 0.28);
    box-shadow: 0 0 8px rgba(184, 134, 70, 0.22);
  }
}

@keyframes shineMove {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  38% {
    opacity: 1;
  }
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

/* ===============================
   BLOG
=============================== */
.blog-list {
  display: grid;
  gap: 2px;
}

.blog-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: all 0.15s ease;
}

.blog-item:first-child {
  border-top: 1px solid var(--line);
}

.blog-item:hover .blog-item__title {
  color: var(--text);
}

.blog-item:hover .blog-item__arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.blog-item__tag {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--accent);
  border: 1px solid var(--line-2);
  flex-shrink: 0;
  font-weight: 700;
}

.blog-item__title {
  flex: 1;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.45;
  transition: color 0.15s ease;
}

.blog-item__arrow {
  font-size: 0.9rem;
  color: var(--subtle);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

/* ===============================
   TOP PHONEME GRID
=============================== */
.phoneme-grid {
  display: grid;
  gap: 16px;
}

.phoneme-link-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 24px;
  border-radius: 24px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-sm);
  transition: all 0.16s ease;
}

.phoneme-link-card:hover {
  transform: translateY(-1px);
  border-color: rgba(184, 134, 70, 0.34);
  background: rgba(255, 252, 247, 0.96);
}

.phoneme-link-card.is-done {
  background: rgba(31, 143, 102, 0.08);
  border-color: rgba(31, 143, 102, 0.26);
  box-shadow:
    0 0 0 1px rgba(31, 143, 102, 0.08) inset,
    0 0 24px rgba(31, 143, 102, 0.08);
}

.phoneme-link-card__symbol {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.4rem, 8vw, 5rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
  flex-shrink: 0;
}

.phoneme-link-card__body {
  display: grid;
  gap: 6px;
}

.phoneme-link-card__title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.phoneme-link-card__desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ===============================
   PRACTICE PAGE
=============================== */
.practice-head {
  margin-bottom: 22px;
}

.practice-title {
  font-size: 1.9rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.practice-sub {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.7;
}

.word-list {
  width: min(100%, 560px);
  display: grid;
  gap: 12px;
}

.phrase-stream {
  display: grid;
  gap: 14px;
}

.word-item,
.phrase-line-card {
  display: flex;
  gap: 12px;
  border-radius: 22px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
  position: relative;
  overflow: hidden;
}

.word-item:hover,
.phrase-line-card:hover {
  transform: translateY(-1px);
}

.word-item.is-speaking,
.phrase-line-card.is-speaking {
  border-color: rgba(184, 134, 70, 0.9);
  box-shadow:
    0 0 0 2px rgba(184, 134, 70, 0.22),
    0 0 18px rgba(184, 134, 70, 0.22),
    0 10px 24px rgba(82, 58, 28, 0.08);
}

.word-item.is-speaking::after,
.phrase-line-card.is-speaking::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 221, 145, 0.14) 42%,
    transparent 78%
  );
  animation: shineMove 1.2s ease;
}

.word-item {
  align-items: flex-start;
  padding: 14px 16px;
}

.phrase-line-card {
  align-items: flex-start;
  padding: 16px 18px;
}

.word-item__num,
.phrase-line-card__num {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--subtle);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
  padding-top: 4px;
}

.word-item__body,
.phrase-line-card__body {
  min-width: 0;
  flex: 1;
  display: grid;
}

.word-item__body {
  gap: 6px;
}

.phrase-line-card__body {
  gap: 8px;
}

.word-item__english {
  font-weight: 800;
  font-size: 1rem;
  color: #1f1b17;
  line-height: 1.25;
}

.phrase-line-card__english {
  font-weight: 800;
  font-size: clamp(1.04rem, 2vw, 1.26rem);
  color: #1f1b17;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.word-item__sub,
.phrase-line-card__sub {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.word-item__ipa {
  font-size: 0.82rem;
  color: var(--ipa);
  line-height: 1.4;
}

.phrase-line-card__ipa {
  font-size: 0.9rem;
  color: var(--ipa);
  line-height: 1.45;
}

.word-item__ja {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.phrase-line-card__ja {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

.word-item__divider,
.phrase-line-card__divider {
  color: var(--subtle);
  font-size: 0.8rem;
}

.word-item.is-speaking .focus-word,
.phrase-line-card.is-speaking .focus-word {
  background: rgba(184, 134, 70, 0.28);
  box-shadow: 0 0 8px rgba(184, 134, 70, 0.2);
}

.word-item.is-speaking .focus-ipa,
.phrase-line-card.is-speaking .focus-ipa {
  color: #9f6b2e;
}

.auto-check {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #1d1a16;
  line-height: 1;
}

.word-item.is-done .auto-check,
.phrase-line-card.is-done .auto-check {
  display: block;
}

.finish-box {
  margin-top: 28px;
  padding: 26px 24px;
  border-radius: 24px;
  border: 1px solid rgba(31, 143, 102, 0.28);
  background: rgba(31, 143, 102, 0.08);
  display: grid;
  gap: 12px;
}

.finish-box__title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ok);
}

.finish-box__text {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ===============================
   TRAINING CONTROLS / PROGRESS
=============================== */
.training-controls {
  margin: 18px 0 24px;
}

.training-progress {
  margin-bottom: 14px;
}

.training-progress__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.training-progress__meta strong {
  color: var(--text);
  font-weight: 800;
}

.training-progress__bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(100, 86, 62, 0.1);
  overflow: hidden;
}

.training-progress__fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #d6ab72, #b98543);
  transition: width 0.25s ease;
}

.training-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.training-btn--ghost {
  min-height: var(--btn-h);
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font-weight: 700;
}

.training-btn--ghost:hover {
  border-color: rgba(184, 134, 70, 0.34);
  background: rgba(255, 250, 241, 0.94);
  color: var(--accent);
}

/* ===============================
   TRAINING OVERLAY / TOAST
=============================== */
.training-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 120;
}

.training-overlay__toast {
  position: fixed;
  top: 110px;
  right: -240px;
  min-width: 160px;
  padding: 16px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffe39a, #ffc95e);
  color: #4f360d;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  box-shadow: 0 18px 40px rgba(120, 80, 20, 0.22);
  transition: right 0.35s ease, opacity 0.2s ease, transform 0.35s ease;
  opacity: 0;
  transform: translateY(4px);
}

.training-overlay__toast.is-show {
  right: 22px;
  opacity: 1;
  transform: translateY(0);
}

.training-overlay__center {
  position: fixed;
  left: 50%;
  top: 22%;
  transform: translate(-50%, -10px) scale(0.96);
  padding: 18px 28px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff4cf, #ffd977);
  color: #5b3c0d;
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  box-shadow: 0 18px 44px rgba(120, 80, 20, 0.22);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.training-overlay__center.is-show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.training-overlay__center.is-complete {
  background: linear-gradient(135deg, #ffe08c, #ffbf47);
}

.training-overlay__center.is-warmup {
  background: linear-gradient(135deg, #f0e0ff, #d2b4ff);
  color: #4b2b79;
}

/* ===============================
   FLOATING PLAYER
=============================== */
.training-floating-player {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 130;
  width: min(340px, calc(100vw - 24px));
  border-radius: 22px;
  padding: 14px;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(100, 86, 62, 0.16);
  box-shadow: 0 18px 40px rgba(82, 58, 28, 0.18);
  pointer-events: auto;
}

.training-floating-player__status {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.training-floating-player__buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.training-floating-player__btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-weight: 800;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.16s ease;
}

.training-floating-player__btn:hover {
  transform: translateY(-1px);
}

.training-floating-player__btn--primary {
  background: linear-gradient(135deg, #d6ab72, #b98543);
  color: #fffdfa;
  border-color: transparent;
}

.training-floating-player__btn--ghost {
  background: rgba(255, 250, 241, 0.94);
  color: var(--accent);
}

/* ===============================
   FOOTER
=============================== */
.site-footer {
  padding: 40px 0 56px;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  flex-wrap: wrap;
}

.site-footer__brand {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

.site-footer__copy {
  font-size: 0.84rem;
  color: var(--subtle);
}

/* ===============================
   RESPONSIVE
=============================== */
@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header__row {
    min-height: 68px;
    padding: 14px 0;
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-section,
  .hero-section__inner {
    min-height: 78vh;
  }

  .hero-section__overlay {
    background:
      linear-gradient(
        180deg,
        rgba(255, 251, 244, 0.1) 0%,
        rgba(247, 244, 238, 0.18) 34%,
        rgba(247, 244, 238, 0.84) 100%
      );
  }

  .hero-section__nav-wrap {
    top: 78px;
    width: min(calc(100% - 28px), var(--max));
  }

  .hero-section__inner {
    align-items: flex-end;
    justify-content: stretch;
    padding-bottom: 24px;
  }

  .hero-card {
    width: 100%;
    padding: 24px 20px;
    border-radius: 24px;
    background: rgba(255, 253, 250, 0.68);
  }

  .hero-card__text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 32px;
  }

  .cta-btn {
    width: 100%;
  }

  .phoneme-btn {
    min-width: 48px;
    height: 38px;
    padding: 0 14px;
    font-size: 0.88rem;
  }

  .phoneme-hero {
    flex-direction: column;
    gap: 18px;
  }

  .phoneme-hero__glyph {
    font-size: clamp(5rem, 28vw, 7rem);
  }

  .how-steps {
    gap: 8px;
  }

  .how-step {
    min-width: 100%;
  }

  .how-steps__arrow {
    display: none;
  }

  .pair-card {
    padding: 18px 14px;
    gap: 14px;
  }

  .pair-card__headline {
    gap: 12px;
  }

  .pair-card__main-note {
    font-size: 1rem;
  }

  .pair-card__sub-note {
    font-size: 0.82rem;
  }

  .phrase-card {
    padding: 16px 16px 14px;
    gap: 10px;
  }

  .phrase-card__top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .phrase-card__main {
    display: block;
  }

  .phrase-card__english {
    display: block;
    font-size: 1rem;
    line-height: 1.25;
    margin-bottom: 6px;
  }

  .phrase-card__divider {
    display: none;
  }

  .phrase-card__ipa {
    display: inline;
    font-size: 0.76rem;
    line-height: 1.5;
  }

  .phrase-card__ja {
    display: inline;
    font-size: 0.72rem;
    line-height: 1.5;
    margin-left: 10px;
  }

  .mini-play {
    width: 28px;
    height: 28px;
    font-size: 0.68rem;
  }

  .phrase-card__badge {
    font-size: 0.64rem;
    padding: 5px 9px;
  }

  .phoneme-link-card {
    align-items: flex-start;
    padding: 18px 18px;
    gap: 16px;
  }

  .phoneme-link-card__symbol {
    font-size: 3.4rem;
  }

  .word-list {
    width: 100%;
  }

  /* スマホ：再生ボタン＋番号を1行目、本文を2行目へ */
  .word-item,
  .phrase-line-card {
    display: grid;
    grid-template-columns: 34px 34px 1fr;
    column-gap: 10px;
    row-gap: 8px;
    align-items: start;
    padding: 14px 14px;
  }

  .word-item > .mini-play,
  .phrase-line-card > .mini-play {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    justify-self: start;
    margin-top: 1px;
  }

  .word-item__num,
  .phrase-line-card__num {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    text-align: left;
    padding-top: 4px;
    font-size: 0.8rem;
  }

  .word-item__body,
  .phrase-line-card__body {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    gap: 6px;
    min-width: 0;
  }

  .word-item__english {
    font-size: 1.23rem;
    line-height: 1.4;
  }

  .phrase-line-card__english {
    font-size: 1.5rem;
    line-height: 1.45;
  }

  .word-item__sub,
  .phrase-line-card__sub {
    display: grid;
    gap: 4px;
  }

  .word-item__ipa,
  .phrase-line-card__ipa {
    display: block;
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.75;
  }

  .word-item__ja,
  .phrase-line-card__ja {
    display: block;
    margin-left: 0;
    font-size: 1.1rem;
    line-height: 1.75;
  }

  .auto-check {
    top: 14px;
    right: 14px;
    font-size: 1.05rem;
  }

  .training-controls {
    margin: 16px 0 22px;
  }

  .training-floating-player {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    padding: 12px;
  }

  .training-floating-player__buttons {
    display: grid;
    grid-template-columns: 1fr;
  }
}