/* ==========================================================================
   プログラミング学舎 シュハリ — 守・破・離で学ぶオンラインスクール
   紺青 #1a3a5c × 橙 #f07d00（トップページのWorksカードと同期）
   動きはすべてCSSのみ（JavaScript 0行）
   ========================================================================== */

/* CSSカウントアップ用の登録プロパティ（整数として補間される） */
@property --n {
  syntax: "<integer>";
  initial-value: 0;
  inherits: false;
}

:root {
  --kon: #1a3a5c;        /* 紺青（主色） */
  --kon-deep: #122942;   /* 濃紺（帯・エディタ） */
  --dai: #f07d00;        /* 橙（CTA・アクセント） */
  --dai-deep: #d96e00;
  --paper: #fbfaf7;      /* 地色 */
  --paper-deep: #f2efe8; /* 交互セクション */
  --sumi: #26241f;
  --usuzumi: #6b675e;
  --border: #e3ded2;

  --font-sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium",
               "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --font-serif: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Georgia", serif;
  --font-mono: "Consolas", "Cascadia Code", "Courier New", monospace;

  --space-section: clamp(72px, 10vw, 112px);
  --radius: 6px;
  --shadow-card: 0 2px 12px rgba(26, 58, 92, 0.06);
  --shadow-hover: 0 14px 30px rgba(26, 58, 92, 0.14);
  --header-h: 64px;
}

@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-sans);
  color: var(--sumi);
  background: var(--paper);
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

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

ul,
ol {
  list-style: none;
}

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

a:focus-visible {
  outline: 2px solid var(--dai);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-feature-settings: "palt";
}

section {
  scroll-margin-top: var(--header-h);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container--narrow {
  max-width: 780px;
}

.br-sp { display: none; }

/* ===== デモバナー ===== */
.demo-banner {
  background: var(--kon-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  text-align: center;
  padding: 8px 16px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.demo-banner a {
  color: #ffb266;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   動き（CSSのみ・reduced-motion尊重）
   ========================================================================== */

/* スクロール進捗バー */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  background: linear-gradient(90deg, var(--dai), #ffb266);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .progress {
      animation: progress-grow linear both;
      animation-timeline: scroll(root);
    }
  }
}

@keyframes progress-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* スクロール連動の出現 */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal-rise both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
  }
}

@keyframes reveal-rise {
  from { opacity: 0; translate: 0 26px; }
  to   { opacity: 1; translate: 0 0; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--fill {
  background: var(--dai);
  color: #fff;
  box-shadow: 0 4px 14px rgba(240, 125, 0, 0.35);
}

.btn--fill:hover {
  background: var(--dai-deep);
  box-shadow: 0 8px 22px rgba(240, 125, 0, 0.4);
}

.btn--ghost {
  color: var(--kon);
  border: 1.5px solid var(--kon);
  padding: 12.5px 32.5px;
}

.btn--ghost:hover {
  background: rgba(26, 58, 92, 0.06);
}

.btn--large {
  font-size: 1.1rem;
  padding: 17px 52px;
}

.btn--block {
  display: block;
  text-align: center;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(251, 250, 247, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--sumi);
  white-space: nowrap;
}

.header__logo strong {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--kon);
  letter-spacing: 0.08em;
}

.header__mark,
.footer__logo span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--kon);
  color: var(--dai);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 4px;
}

.header__nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__nav a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  position: relative;
  padding: 4px 0;
}

.header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--dai);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.header__nav a:hover::after,
.header__nav a:focus-visible::after {
  transform: scaleX(1);
}

.header__nav a.header__cta {
  background: var(--dai);
  color: #fff;
  padding: 8px 18px;
  border-radius: 4px;
  transition: background-color 0.25s ease;
}

.header__nav a.header__cta::after {
  display: none;
}

.header__nav a.header__cta:hover {
  background: var(--dai-deep);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 104px);
  background:
    radial-gradient(ellipse 640px 420px at 92% 10%, rgba(240, 125, 0, 0.06), transparent 70%),
    radial-gradient(ellipse 800px 520px at 0% 100%, rgba(26, 58, 92, 0.05), transparent 70%),
    var(--paper);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(36px, 5vw, 64px);
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--kon);
  border: 1px solid var(--border);
  background: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.9vw, 2.7rem);
  font-weight: 700;
  color: var(--kon);
  letter-spacing: 0.06em;
  line-height: 1.55;
  margin-bottom: 24px;
  white-space: nowrap;
}

/* 「独り立つ」に圏点（日本語組版の強調） */
.hero__title em {
  font-style: normal;
  color: var(--dai);
  -webkit-text-emphasis: filled dot var(--dai);
  text-emphasis: filled dot var(--dai);
}

.hero__lead {
  color: var(--usuzumi);
  font-size: 0.98rem;
  margin-bottom: 36px;
  max-width: 34em;
}

.hero__lead strong {
  color: var(--sumi);
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero__trust {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--usuzumi);
}

.hero__trust li::before {
  content: "✓ ";
  color: var(--dai);
  font-weight: 700;
}

/* --- CSSだけで描いたコードエディタ --- */
.editor {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(18, 41, 66, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.editor__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0d1f33;
  padding: 10px 14px;
}

.editor__dots {
  display: flex;
  gap: 6px;
}

.editor__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.editor__dots i:first-child {
  background: rgba(240, 125, 0, 0.75);
}

.editor__file {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}

.editor__code {
  background: var(--kon-deep);
  padding: 22px 20px 26px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 2;
  color: #cfe0f2;
}

.editor__code .ln {
  display: inline-block;
  width: 2em;
  color: rgba(255, 255, 255, 0.22);
  user-select: none;
}

.c-com { color: #5a7a97; }
.c-key { color: #7fb4e8; }
.c-str { color: #ffb266; }

/* 最終行のタイピング表示（reduced-motion時は静的表示） */
.c-typing {
  display: inline-flex;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
}

@media (prefers-reduced-motion: no-preference) {
  .c-typing {
    width: 0;
    border-right: 2px solid var(--dai);
    animation: typing 1.8s steps(24) 1.4s forwards,
               caret 0.85s step-end 1.4s 8;
  }
}

@keyframes typing {
  to { width: 24ch; }
}

@keyframes caret {
  50% { border-right-color: transparent; }
}

/* ===== セクション共通 ===== */
section {
  padding: var(--space-section) 0;
}

.sec-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--dai);
  margin-bottom: 10px;
}

.sec-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--dai);
}

.sec-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--kon);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  text-wrap: balance;
}

.sec-lead {
  color: var(--usuzumi);
  margin-bottom: 56px;
  max-width: 46em;
}

/* ==========================================================================
   共感
   ========================================================================== */
.pain {
  background: var(--paper-deep);
}

.pain .sec-title {
  text-align: center;
}

.pain__lead {
  text-align: center;
  color: var(--usuzumi);
  max-width: 38em;
  margin: 0 auto 40px;
}

.pain__lead strong {
  color: var(--kon);
}

.pain__list {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.pain__list li {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--kon);
  border-radius: 4px;
  padding: 14px 20px;
  font-size: 0.94rem;
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   守破離カリキュラム
   ========================================================================== */
.stages {
  position: relative;
  display: grid;
  gap: 28px;
}

/* 段階をつなぐ縦の道 */
.stages::before {
  content: "";
  position: absolute;
  left: 54px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: linear-gradient(180deg, var(--kon) 0%, var(--dai) 100%);
  opacity: 0.25;
}

.stage {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 28px;
  align-items: start;
}

.stage__kanji {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 108px;
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--kon);
  background: #fff;
  border: 2px solid var(--kon);
  border-radius: 50%;
  box-shadow: var(--shadow-card);
}

.stage:last-child .stage__kanji {
  color: #fff;
  background: var(--dai);
  border-color: var(--dai);
}

.stage__body {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px 24px;
  box-shadow: var(--shadow-card);
}

.stage__period {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--dai);
  margin-bottom: 4px;
}

.stage__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--kon);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.stage__desc {
  font-size: 0.92rem;
  color: var(--usuzumi);
  margin-bottom: 16px;
}

.stage__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stage__items li {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--kon);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 14px;
}

.curriculum__note {
  margin-top: 28px;
  font-size: 0.82rem;
  color: var(--usuzumi);
}

/* ==========================================================================
   数字（CSSのみのカウントアップ）
   ========================================================================== */
.stats {
  background: var(--kon);
  color: #fff;
  padding: clamp(56px, 7vw, 80px) 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat dt {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
}

.stat dd {
  font-family: var(--font-serif);
}

.stat__num {
  font-size: clamp(2.4rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.stat__unit {
  font-size: 1rem;
  margin-left: 4px;
  color: rgba(255, 255, 255, 0.8);
}

.stat--students { --target: 1200; }
.stat--success  { --target: 92; }
.stat--salary   { --target: 120; }
.stat--reply    { --target: 98; }

/* 対応ブラウザではスクロールで数字が駆け上がる（非対応は静的表示） */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .stat__num {
      position: relative;
      color: transparent;
    }

    .stat__num::after {
      content: counter(n);
      counter-reset: n calc(var(--n));
      position: absolute;
      inset: 0;
      color: #fff;
      animation: countup both linear;
      animation-timeline: view();
      animation-range: entry 30% entry 90%;
    }
  }
}

@keyframes countup {
  from { --n: 0; }
  to   { --n: var(--target); }
}

/* ==========================================================================
   選ばれる理由
   ========================================================================== */
.reasons__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.reason {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
}

.reason__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dai);
  border: 1px solid rgba(240, 125, 0, 0.5);
  border-radius: 50%;
  margin-bottom: 16px;
}

.reason h3 {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--kon);
  margin-bottom: 10px;
}

.reason p {
  font-size: 0.9rem;
  color: var(--usuzumi);
}

/* ==========================================================================
   受講生の声
   ========================================================================== */
.voices {
  background: var(--paper-deep);
}

.voices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.voice {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.voice__quote {
  font-size: 0.92rem;
  flex: 1;
  margin-bottom: 20px;
  position: relative;
  padding-top: 18px;
}

.voice__quote::before {
  content: "“";
  position: absolute;
  top: -14px;
  left: -4px;
  font-family: var(--font-serif);
  font-size: 3rem;
  color: rgba(240, 125, 0, 0.35);
  line-height: 1;
}

.voice__author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--usuzumi);
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}

.voice__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--kon);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  border-radius: 50%;
}

/* ==========================================================================
   料金
   ========================================================================== */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.plan--featured {
  border: 2px solid var(--kon);
  box-shadow: var(--shadow-hover);
}

.plan__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  translate: -50% 0;
  background: var(--dai);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 4px 18px;
  white-space: nowrap;
}

.plan__name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--kon);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.plan__price {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--sumi);
  line-height: 1.3;
}

.plan__price span {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--usuzumi);
  margin-left: 4px;
}

.plan__period {
  font-size: 0.85rem;
  color: var(--dai);
  font-weight: 700;
  margin-bottom: 18px;
}

.plan__features {
  flex: 1;
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.plan__features li {
  font-size: 0.9rem;
  padding-left: 1.5em;
  position: relative;
}

.plan__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--dai);
  font-weight: 700;
}

.plan__features li.off {
  color: #b8b2a6;
}

.plan__features li.off::before {
  content: "—";
  color: #cfc9bc;
}

.pricing__note {
  margin-top: 28px;
  font-size: 0.82rem;
  color: var(--usuzumi);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  background: var(--paper-deep);
}

.faq__list {
  border-top: 1px solid var(--border);
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 20px 48px 20px 44px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--kon);
  transition: color 0.2s ease;
}

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

.faq__item summary:hover {
  color: var(--dai-deep);
}

.faq__item summary::before {
  content: "問";
  position: absolute;
  left: 4px;
  top: 22px;
  font-family: var(--font-serif);
  font-size: 0.92rem;
  color: var(--dai);
}

.faq__item summary::after {
  content: "＋";
  position: absolute;
  right: 8px;
  top: 50%;
  translate: 0 -50%;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--usuzumi);
  transition: rotate 0.3s ease;
}

.faq__item[open] summary::after {
  rotate: 45deg;
}

.faq__body {
  position: relative;
  padding: 0 24px 22px 44px;
}

.faq__body::before {
  content: "答";
  position: absolute;
  left: 4px;
  top: 2px;
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--kon);
}

.faq__body p {
  font-size: 0.92rem;
}

.faq__item::details-content {
  opacity: 0;
  block-size: 0;
  overflow: clip;
  transition: block-size 0.35s ease, opacity 0.35s ease,
              content-visibility 0.35s allow-discrete;
}

.faq__item[open]::details-content {
  opacity: 1;
  block-size: auto;
}

/* ==========================================================================
   最終CTA
   ========================================================================== */
.cta {
  position: relative;
  background: var(--kon-deep);
  color: #fff;
  overflow: hidden;
}

/* 透かしの守破離 */
.cta__kanji {
  position: absolute;
  right: -20px;
  top: 50%;
  translate: 0 -50%;
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-size: clamp(6rem, 16vw, 11rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  user-select: none;
}

.cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.08em;
  line-height: 1.6;
  margin-bottom: 18px;
}

.cta__lead {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
}

.cta__trust {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.cta__trust li::before {
  content: "✓ ";
  color: var(--dai);
  font-weight: 700;
}

/* ===== Footer ===== */
.footer {
  background: #0d1a2b;
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0 28px;
  text-align: center;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  color: #fff;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.footer__copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* --- 〜1024px --- */
@media (max-width: 1024px) {
  .reasons__grid,
  .voices__grid,
  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .plan--featured {
    order: -1;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }
}

/* --- 〜768px --- */
@media (max-width: 768px) {
  section {
    scroll-margin-top: 120px;
  }

  .header {
    height: auto;
  }

  .header__inner {
    flex-direction: column;
    gap: 6px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .header__nav ul {
    gap: 6px 14px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .header__nav a {
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .header__nav a.header__cta {
    padding: 5px 12px;
  }

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

  .hero__title {
    white-space: normal;
  }

  .stage {
    grid-template-columns: 72px 1fr;
    gap: 18px;
  }

  .stages::before {
    left: 36px;
  }

  .stage__kanji {
    width: 72px;
    height: 72px;
    font-size: 2.1rem;
  }
}

/* --- 〜480px --- */
@media (max-width: 480px) {
  .br-sp { display: inline; }
  .br-pc { display: none; }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    text-align: center;
  }

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

  .stages::before {
    display: none;
  }

  .stage__kanji {
    width: 64px;
    height: 64px;
    font-size: 1.9rem;
  }

  .btn--large {
    display: block;
    padding: 16px 24px;
  }
}
