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

:root {
  /* ==== ブランドカラーパレット ==== */
  --color-primary: #FF7820;          /* メインオレンジ（ボタン・アクセント） */
  --color-primary-sub: #F68218;      /* サブオレンジ（電話番号・ロゴ） */
  --color-primary-dark: #E0651A;
  --color-text-dark: #3A2410;        /* メインテキスト（こげ茶） */
  --color-text-mid: #86654A;         /* サブテキスト */
  --color-text-light: #A88B6E;
  --color-bg-gray: #F8F9FA;          /* 背景グレー */
  --color-bg-cream: #FFF5EC;
  --color-bg-warm: #FFE8D4;
  --color-surface: #FFFFFF;
  --color-border: #EFE6DC;
  --color-yellow: #F5C84D;
  --color-purple: #6E5DD0;
  --color-blue: #4A8FD8;

  --shadow-button: 0 3px 5px rgba(255, 120, 32, 0.40);
  --shadow-card: 0 2px 12px rgba(58, 36, 16, 0.06);
  --radius-card: 20px;
  --radius-card-sm: 16px;
  --radius-btn: 30px;

  --container-max: 1440px;
  --content-max: 1296px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', -apple-system, 'Hiragino Sans', 'Yu Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text-dark);
  background: var(--color-bg-gray);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
.sp-only { display: none; }

/* ===== 日本語の折り返し位置 =====
   文節の途中で改行されたり、行末に1文字だけ取り残されるのを防ぐ。
   auto-phrase / pretty は未対応ブラウザでは宣言ごと無視され、従来の折り返しに戻るため、
   確実に揃えたい短い見出しには .phrase を併用する。 */
body { word-break: auto-phrase; }

/* 見出しは balance で各行の長さを揃え、本文は pretty で行末の孤立を防ぐ。 */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

p, li, dt, dd, figcaption, blockquote, label {
  text-wrap: pretty;
}

/* 途中で改行させたくない語句のまとまり。隣り合う .phrase の「間」だけが改行位置になる。
   nowrap がないと inline-block が行末の残り幅に縮んで内部で折り返すため、両方必要。
   はみ出しを避けるため、1つの .phrase は短い語句に留めること。
   また inline-block なので、HTML上でタグ同士の間に不要な空白・改行を入れないこと。 */
.phrase {
  display: inline-block;
  white-space: nowrap;
}

.demo-bar {
  background: var(--color-text-dark);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 8px 16px;
  font-size: 12px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.demo-bar i { color: var(--color-yellow); flex-shrink: 0; }
.demo-bar__text { min-width: 0; }

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 20px;
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-button);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}
.btn--outline {
  background: #fff;
  color: var(--color-primary);
  border: 3px solid var(--color-primary);
}
.btn--outline:hover { background: var(--color-bg-cream); }
.btn--header { padding: 14px 28px; font-size: 16px; }
.btn--large { padding: 18px 56px; font-size: 20px; }
.btn--full { width: 100%; }
.btn--white {
  background: #fff;
  color: var(--color-primary);
  padding: 18px 32px;
  min-width: 280px;
  font-size: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.btn--white:hover { background: var(--color-bg-cream); }
.btn-icon { font-size: 20px; }

/* ===== Hamburger ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-30deg); }

/* ===== Nav close button (drawer only) ===== */
.nav-close { display: none; }

/* ===== Scroll arrows / dots (横スクロールナビ) ===== */
.scroll-arrow { display: none; }
.scroll-dots  { display: none; }

/* ===== スクリーンリーダー専用（視覚的に非表示・SEO用） ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Nav overlay ===== */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
}
.nav-overlay.is-open { display: block; }

/* ===== Header ===== */
.header {
  background: #fff;
  border-bottom: 3px solid var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 160;
}
.header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 8px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo-icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}
.logo-icon img { width: 100%; height: auto; }
.logo-text { 
  text-align: right;
}
.logo-text__main {
  font-size: 24px;
  font-weight: 900;
  color: var(--color-primary-sub);
  line-height: 1.2;
  margin-bottom: 4px;
}
.logo-text__sub {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary-sub);
  line-height: 1.2;
}
.header__right {
  display: flex;
  align-items: center;
  gap: 29px;
}
.header__tel {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary-sub);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}
.header__tel i { font-size: 18px; }
.header__nav {
  border-top: 1px solid var(--color-border);
}
.header__nav ul {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.header__nav li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
}
.header__nav li:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 24px;
  background: var(--color-primary-sub);
}
.header__nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-dark);
  transition: color 0.2s;
  line-height: 1.9;
}
.header__nav a:hover { color: var(--color-primary); }
.header__nav a[aria-current="page"] { color: var(--color-primary); font-weight: 700; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0;

}
.hero::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-image: url(img/main.jpg);
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(255,248,242,0.92) 0%, rgba(255,248,242,0.4) 40%, transparent 58%),
    linear-gradient(to bottom, rgba(255,248,242,0.10) 50%, rgba(255,245,236,0.82) 70%);
  z-index: 1;
}
.hero__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 72px;
  position: relative;
  z-index: 2;
}
.hero__text {
  width: auto;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero__title {
  font-size: 60px;
  font-weight: 900;
  line-height: 1.4;
  color: var(--color-text-dark);
  margin-bottom: 0;
  white-space: nowrap;
}
.hero__title .accent { color: var(--color-primary); }
.hero__lead {
  max-width: 520px;
  color: var(--color-text-mid);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
  white-space: nowrap;
}
.hero__quote-label {
  width: fit-content;
  margin-top: 10px;
  padding-left: 12px;
  border-left: 4px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
}
.hero__caption {
  font-size: 16px;
  color: var(--color-text-mid);
  line-height: 1.9;
  font-weight: 400;
  margin-bottom: 48px;
  margin-left: 32px;
}
.hero__features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 40px;
  margin-bottom: 48px;
}
.hero__features li {
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-dark);
  line-height: 1.4;
}
.hero__features svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.hero__features i {
  font-size: 32px;
  color: var(--color-primary);
  flex-shrink: 0;
}
.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Scroll offset for sticky header ===== */
section[id] { scroll-margin-top: 160px; }

/* ===== Section Heads ===== */
.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFF0E3;
  color: var(--color-primary);
  padding: 4px 18px;
  border-radius: 999px 999px 999px 8px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.8;
}
/* セクションタグは全種同一形状（スタンプ型）。クラスはHTML側の意味付け用として残す */
.section-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--color-text-dark);
  letter-spacing: 0;
  line-height: 1.3;
}
.num-inline {
  color: var(--color-primary);
  font-size: 1.15em;
  margin: 0 6px;
  font-family: 'Montserrat', sans-serif;
}

/* ===== Reasons ===== */
.reasons {
  padding: 80px 0 100px;
  background: var(--color-bg-gray);
}
.reasons__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 392px));
  gap: 24px;
  justify-content: center;
  max-width: 1224px;
  margin: 0 auto;
}
.reason-card {
  background: #FFF8F2;
  border-radius: var(--radius-card);
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  aspect-ratio: 1 / 1;
}
.reason-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
}
.reason-card__icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
i.reason-card__icon {
  font-size: 50px;
  color: var(--color-primary);
  line-height: 1;
  width: auto;
  margin-left: 32px;
}
.reason-card__num {
  font-family: 'Noto Sans', 'Montserrat', sans-serif;
  font-size: 96px;
  font-weight: 900;
  color: var(--color-primary);
  opacity: 0.16;
  line-height: 1;
  margin-right: 24px;
  margin-top: -16px;
}
.reason-card__title {
  align-self: stretch;
  font-size: 24px;
  font-weight: 700;
  color: #000;
  line-height: 1.4;
}
.reason-card__text {
  align-self: stretch;
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text-mid);
  text-align: justify;
  font-weight: 400;
}

/* ===== Courses ===== */
.courses {
  padding: 80px 0 100px;
  background: #fff;
}
.course-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 80px;
  max-width: 1224px;
  margin-left: auto;
  margin-right: auto;
}
.course-card {
  scroll-margin-top: 160px;
  position: relative;
  background: #fff;
  border-radius: var(--radius-card);
  padding: 36px 32px 36px 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.10);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(58, 36, 16, 0.12);
}
/* カプセル状ボーダー（左サイド） */
.course-card__bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
}
.course-card--orange .course-card__bar { background: var(--color-primary); }
.course-card--yellow .course-card__bar { background: #E8A020; }
.course-card--purple .course-card__bar { background: #4C1F8A; }
.course-card--blue   .course-card__bar { background: #5B7FE8; }

.course-card__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}
/* コースバッジは全種同一形状（角丸四角）。色だけ各コースで変化 */
.course-badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.course-badge--orange { background: rgba(255, 120, 32, 0.10); color: #FF7820; }
.course-badge--yellow { background: rgba(232, 160, 32, 0.10); color: #E8A020; }
.course-badge--purple { background: rgba(76,  31, 138, 0.10); color: #4C1F8A; }
.course-badge--blue   { background: rgba(91, 127, 232, 0.10); color: #5B7FE8; }

.course-card__title {
  align-self: stretch;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.4;
}
.course-card__desc {
  align-self: stretch;
  font-size: 16px;
  color: var(--color-text-mid);
  line-height: 1.9;
  font-weight: 400;
}
.course-card__features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  align-self: stretch;
}
.course-card__features li {
  display: inline-flex;
  padding: 4px 16px;
  border-radius: 0 999px 999px 0;
  background: #FFF8F2;
  font-size: 16px;
  color: var(--color-text-dark);
  font-weight: 400;
  line-height: 1.9;
}
.course-card__price {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  align-self: stretch;
  flex-shrink: 0;
  text-align: right;
}
.course-card__price-label {
  font-size: 13px;
  color: var(--color-text-mid);
  line-height: 1.8;
  font-weight: 400;
}
.course-card__price-value {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.4;
  letter-spacing: 0;
}
.course-card__price-value .yen {
  font-size: 36px;
  font-weight: 900;
}
.course-card__price-value {
  font-size: 36px;
}
.course-card__price-value .month {
  font-size: 16px;
  font-weight: 900;
}
.course-card__price-note {
  font-size: 13px;
  color: var(--color-text-mid);
  line-height: 1.8;
  font-weight: 400;
}

.courses__cta { text-align: center; }

/* コース選び案内 */
.course-guide {
  background: var(--color-bg-cream);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-card-sm);
  padding: 24px 32px;
  margin-bottom: 40px;
}
.course-guide__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.course-guide__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.course-guide__list li {
  font-size: 15px;
  color: var(--color-text-dark);
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.course-guide__list li i {
  color: var(--color-primary);
  font-size: 12px;
}

/* コースカード個別CTA */
.course-card__btn {
  display: block;
  margin-top: auto;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  border: 2px solid rgba(255, 120, 32, 0.35);
  background: #FFF8F2;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.course-card__btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* 生徒の声セクションCTA */
.voices__cta {
  text-align: center;
  padding-top: 48px;
}

/* ===== Voices ===== */
.voices {
  padding: 80px 0 100px;
  background: #FFF0E3;
}

.voices .section-tag {background: var(--color-bg-gray); color: #FF7820;}

.voices__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 392px));
  gap: 24px;
  justify-content: center;
  max-width: 1224px;
  margin: 0 auto;
}
.voice-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  min-height: 380px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.voice-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58, 36, 16, 0.10);
}
.voice-card__text {
  align-self: stretch;
  margin-top: auto;
  margin-bottom: auto;
  font-size: 16px;
  line-height: 2.1;
  color: var(--color-text-dark);
  text-align: justify;
  font-weight: 400;
}
.voice-card__divider {
  width: 100%;
  max-width: 328px;
  height: 1px;
  background: #FFF0E3;
}
.voice-card__profile {
  display: flex;
  align-items: center;
  gap: 16px;
  align-self: stretch;
}
.voice-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  background-color: #ddd;
}
.voice-card__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1px;
  flex: 1;
  min-width: 0;
}
.voice-card__name {
  align-self: stretch;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.9;
}
.voice-card__detail {
  align-self: stretch;
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 400;
  line-height: 1.9;
}
.voice-card__course {
  font-size: 12px;
  color: var(--color-text-mid);
  font-weight: 400;
  line-height: 1.9;
}

/* ===== Teachers ===== */
.teachers {
  padding: 80px 0 100px;
  background: var(--color-bg-gray);
}
.teacher-card {
  background: #FFF8F2;
  border-radius: 24px;
  padding: 40px 44px;
  display: flex;
  align-items: flex-start;
  gap: 48px;
  margin: 0 auto 28px;
  max-width: 928px;
}
.teacher-card--reverse { flex-direction: row-reverse; }

.teacher-card__photo {
  width: 180px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.teacher-photo {
  width: 180px;
  height: 200px;
  border-radius: 16px;
  object-fit: cover;
  object-position: center;
  background-color: #ddd;
  margin-bottom: 12px;
  display: block;
}
.teacher-card__name {
  align-self: stretch;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-dark);
  text-align: center;
  line-height: 1.4;
}
.teacher-card__subject {
  align-self: stretch;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  line-height: 1.8;
}
.teacher-card__years {
  align-self: stretch;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-mid);
  text-align: center;
  line-height: 1.8;
}

.teacher-card__text {
  width: 612px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.teacher-card__label {
  align-self: stretch;
  font-size: 11px;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 3px;
  text-align: center;
  line-height: 1;
}
.teacher-card__heading {
  max-width: 405px;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  line-height: 1.9;
  color: var(--color-text-dark);
}
.teacher-card__body {
  align-self: stretch;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--color-text-mid);
  text-align: left;
  margin-bottom: 16px;
}
.teacher-card__body:last-child { margin-bottom: 0; }

/* ===== FAQ ===== */
.faq {
  padding: 80px 0 100px;
  background: #FFF8F2;
}
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  background: #fff;
  border-radius: var(--radius-card-sm);
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.faq-item__q {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  width: 100%;
  text-align: left;
}
.faq-item__q:hover .faq-item__title { color: var(--color-primary); }
.faq-item:hover {
  background: #FFFDFB;
  box-shadow: 0 2px 12px rgba(58, 36, 16, 0.05);
}
.faq-item.is-open {
  background: #FFF;
}
.faq-item__heading {
  width: 100%;
  margin: 0;
}
.faq-chevron {
  margin-left: auto;
  font-size: 14px;
  color: var(--color-primary);
  transition: transform 0.35s ease;
  flex-shrink: 0;
}
.faq-item.is-open .faq-chevron { transform: rotate(180deg); }

.faq-item__a {
  display: flex;
  padding-right: 28px;
  padding-top: 0;
  align-items: flex-start;
  gap: 10px;
  align-self: stretch;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding-top 0.3s ease;
}
.faq-item.is-open .faq-item__a {
  max-height: 500px;
  opacity: 1;
  padding-top: 24px;
}


.faq-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}
.faq-item__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.4;
  transition: color 0.2s;
}
.faq-item__a p {
  flex: 1;
  font-size: 16px;
  color: var(--color-text-mid);
  line-height: 1.9;
  font-weight: 400;
  padding-top: 6px;
}

/* ===== モバイル固定CTAバー ===== */
.mobile-cta-bar { display: none; }

/* ===== ナビアクティブ ===== */
.header__nav a.is-active {
  color: var(--color-primary);
  font-weight: 700;
}

/* ===== フォーカス可視性 ===== */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}
.cta :focus-visible {
  outline-color: #fff;
}

/* ===== CTA ===== */
.cta {
  background-color: var(--color-primary);
  background-image: radial-gradient(rgba(255,255,255,0.25) 2px, transparent 2px);
  background-size: 24px 24px;
  padding: 80px 24px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  width: 334px; height: 334px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 50%;
  top: -55px; left: -62px;
}
.cta::after {
  content: '';
  position: absolute;
  width: 334px; height: 334px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 50%;
  top: 46px; right: -120px;
}
.cta__deco {
  position: absolute;
  width: 334px; height: 334px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 50%;
  bottom: -200px; right: 200px;
}
.cta .container { position: relative; z-index: 2; }
.cta__lead {
  font-size: 13px;
  font-weight: 900;
  color: #FFF0E3;
  margin-bottom: 16px;
  line-height: 1.8;
}
.cta__title {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.3;
}
.cta__detail {
  font-size: 16px;
  color: #FFF0E3;
  margin-bottom: 28px;
  line-height: 1.9;
  font-weight: 400;
}
.cta__buttons {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
/* 予約フロー図 */
.cta__flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 32px 0;
  flex-wrap: wrap;
}
.cta__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 80px;
}
.cta__step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid #fff;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta__step-label {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}
.cta__step-note {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  line-height: 1.4;
}
.cta__flow-arrow {
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  flex-shrink: 0;
  margin-bottom: 20px;
}

.cta__address {
  font-size: 13px;
  color: #FFF0E3;
  line-height: 1.8;
  font-weight: 400;
}

/* CTAボタン - WEB（白背景） */
.btn--cta-web {
  background: #fff;
  color: var(--color-primary);
  min-width: 276px;
  padding: 16px 32px;
  border-radius: 30px;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(134, 101, 74, 0.30);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn--cta-web:hover {
  background: var(--color-bg-cream);
  transform: translateY(-2px);
}
/* CTAボタン - 電話（オレンジ背景・白枠） */
.btn--cta-tel {
  background: var(--color-primary);
  color: #fff;
  min-width: 276px;
  padding: 16px 32px;
  border: 3px solid #fff;
  border-radius: 30px;
  font-size: 20px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.btn--cta-tel:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}
.btn--cta-web svg, .btn--cta-tel svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.btn--cta-web i, .btn--cta-tel i {
  font-size: 28px;
  flex-shrink: 0;
}
.cta__demo-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 560px;
  margin: -4px auto 20px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  line-height: 1.6;
}
.cta__demo-note[hidden] { display: none; }

/* ===== Footer ===== */
.footer {
  background: #2A1A0A;
  color: #FFF0E3;
  padding: 52px 0 0;
}
.footer .container {
  max-width: 1224px;
  padding: 0 48px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 342px 160px 184px;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 52px;
}
.footer__logo {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.4;
  white-space: nowrap;
}
.footer__logo span { color: var(--color-primary); }
.footer__desc {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 32px;
  color: rgba(255, 240, 227, 0.70);
  font-weight: 400;
}
.footer__address {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 16px;
  color: #FFF0E3;
  font-weight: 400;
}
.footer__tel {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #FFF0E3;
  margin-bottom: 0;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.footer__hours {
  font-size: 13px;
  color: rgba(255, 240, 227, 0.70);
  line-height: 1.8;
  font-weight: 400;
}
.footer__menu h4 {
  font-family: 'Noto Sans', 'Montserrat', sans-serif;
  font-size: 16px;
  color: var(--color-primary);
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: 1.6px;
  line-height: 1.9;
}
.footer__menu ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer__menu ul li { margin-bottom: 0; }
.footer__menu a {
  font-size: 16px;
  color: rgba(255, 240, 227, 0.70);
  line-height: 1.9;
  font-weight: 400;
  transition: color 0.2s;
}
.footer__menu a:hover { color: var(--color-primary); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 248, 242, 0.70);
  flex-wrap: wrap;
  gap: 16px;
}
.footer__copy {
  font-size: 13px;
  color: #FFF0E3;
  line-height: 1.8;
}
.footer__links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__links a {
  font-size: 13px;
  color: #FFF0E3;
  line-height: 1.8;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--color-primary); }

/* ===== Responsive: Tablet ===== */
@media (max-width: 1100px) {
  .hero__title { font-size: 44px; white-space: normal; }
  .hero__features li { font-size: 20px; }

  .reasons__grid {
    grid-template-columns: repeat(2, minmax(0, 392px));
  }
  .voices__grid {
    grid-template-columns: repeat(2, minmax(0, 392px));
  }
  .course-card {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
    padding: 32px 28px 32px 36px;
  }
  .course-card__price {
    text-align: left;
    align-items: flex-start;
  }

  .teacher-card,
  .teacher-card--reverse {
    flex-direction: column;
    padding: 32px 28px;
    gap: 32px;
    align-items: center;
  }
  .teacher-card__photo { width: 100%; max-width: 220px; }
  .teacher-card__text { width: 100%; }

  .footer { padding: 40px 0 0; }
  .footer .container { padding: 0 32px; }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer__brand { grid-column: 1 / -1; }

  .header__inner { padding: 16px 24px; }
  .logo-icon { width: 72px; height: 72px; }
  .logo-icon svg { width: 56px; height: 56px; }
  .logo-text__main { font-size: 22px; }
  .logo-text__sub { font-size: 16px; }
}

/* ===== Scroll fade-in ===== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in--left  { transform: translateX(-48px); }
.fade-in--right { transform: translateX( 48px); }
.fade-in.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ===== Hero accent underline ===== */
.hero__title .accent {
  display: inline-block;
  position: relative;
}
.hero__title .accent::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero__title .accent.is-highlighted::after {
  width: 100%;
}

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 16px rgba(255, 120, 32, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.25s, color 0.25s, box-shadow 0.25s;
  z-index: 80;
  pointer-events: none;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { transform: translateY(-2px); }

/* オレンジ背景セクション（voices・cta）では白ボタンに */
.back-to-top.is-on-orange {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.back-to-top.is-on-orange:hover { background: #fff4ee; }


/* ===== Responsive: Mobile ===== */
@media (max-width: 700px) {
  .hero { padding: 60px 0 60px; }
  .hero::before {
    display: block;
    background-image: url('img/main_SP.jpg');
    background-position: 52% top;
  }
  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(to right,
        rgba(255, 248, 242, 0.95) 0%,
        rgba(255, 248, 242, 0.80) 28%,
        rgba(255, 248, 242, 0.12) 50%,
        transparent 68%),
      linear-gradient(to bottom,
        rgba(255, 248, 242, 0.08) 0%,
        rgba(255, 245, 236, 0.86) 88%);
    z-index: 1;
  }
  .hero__inner { padding: 0 24px; }
  .hero__text { gap: 8px; }
  .hero__lead {
    align-self: flex-start;
    max-width: 100%;
    text-align: left;
    font-size: 13px;
    line-height: 1.65;
    white-space: normal;
  }
  .sp-only { display: block; }
  .hero__quote-label {
    align-self: flex-start;
    margin-top: 6px;
    font-size: 12px;
  }
  .hero__title {
    font-size: 31px;
    line-height: 1.34;
  }
  .hero__title .accent::after { height: 2px; }
  .hero__caption { font-size: 13px;}
  .hero__features { flex-direction: column; gap: 10px; align-items: flex-start; align-self: flex-start; }
  .hero__features li { font-size: 17px; }
  .hero__features i {font-size: 24px;}
  .hero__buttons { width: 100%; flex-direction: column; gap: 16px; }
  .btn { font-size: 16px; padding: 14px 24px; }
  .hero__buttons .btn,
  .course-card__btn,
  .cta__buttons .btn,
  .mobile-cta-bar .btn {
    width: 100%;
    max-width: none;
  }

  .section-title { font-size: 24px; }
  .reasons__grid {
    grid-template-columns: 1fr;
  }
  .reason-card {
    aspect-ratio: auto;
    padding: 22px 22px;
    gap: 16px;
  }
  .reason-card__head { justify-content: space-between; }
  .reason-card__icon { width: 58px; height: 58px; }
  i.reason-card__icon { margin-left: 14px; }
  .reason-card__num {
    font-size: 66px;
    margin-right: 4px;
    opacity: 0.14;
  }
  .reason-card__title { font-size: 20px; }
  .reason-card__text { font-size: 14px; line-height: 1.75; }

  /* 横スクロール：container の padding を撤廃してスクロール領域をビューポート全幅に */
  .courses .container,
  .voices .container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
  }
  .courses .section-head,
  .voices .section-head {
    padding-left: 24px;
    padding-right: 24px;
  }
  .courses__cta { display: none; }
  .course-guide {
    margin-left: 24px;
    margin-right: 24px;
    padding: 18px 18px;
  }
  .course-guide__title {
    font-size: 16px;
    margin-bottom: 12px;
  }
  .course-guide__list {
    gap: 10px;
  }
  .course-guide__list li {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    font-size: 13px;
    line-height: 1.45;
  }
  .course-guide__list li strong {
    font-size: 12px;
    color: var(--color-text-mid);
  }
  .course-guide__list li span {
    font-weight: 700;
    color: var(--color-text-dark);
  }
  .course-list {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 24px 20px;
    gap: 16px;
    max-width: none;
    margin: 0;
    cursor: grab;
  }
  .course-list::-webkit-scrollbar { display: none; }
  .course-card {
    scroll-margin-top: 116px;
    flex: 0 0 calc(100vw - 72px);
    scroll-snap-align: start;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 24px 20px 24px 28px;
  }
  .course-card__desc {
    display: block;
    font-size: 13px;
    line-height: 1.65;
  }
  .course-card__features { flex-direction: column; align-items: flex-start; }
  .course-card__price {
    align-self: stretch;
    align-items: flex-start;
    text-align: left;
  }
  .course-card__btn {
    margin-top: 16px;
    padding: 11px 14px;
    background: transparent;
    border-color: rgba(255, 120, 32, 0.34);
    box-shadow: none;
    font-size: 13px;
  }
  .voices__grid {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: calc((100vw - clamp(260px, calc(100vw - 96px), 320px)) / 2);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px calc((100vw - clamp(260px, calc(100vw - 96px), 320px)) / 2) 20px;
    gap: 16px;
    max-width: none;
    margin: 0;
    cursor: grab;
  }
  .voices__grid::-webkit-scrollbar { display: none; }

  /* 横スクロール矢印 */
  .scroll-wrap { position: relative; }
  .scroll-wrap::before,
  .scroll-wrap::after {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 20px;
    width: 28px;
    z-index: 8;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .scroll-wrap.is-at-start::before,
  .scroll-wrap.is-at-end::after {
    opacity: 0;
  }
  .scroll-wrap::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 248, 242, 0.95), rgba(255, 248, 242, 0));
  }
  .scroll-wrap::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 248, 242, 0.95), rgba(255, 248, 242, 0));
  }
  .courses .scroll-wrap::before {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
  }
  .courses .scroll-wrap::after {
    background: linear-gradient(to left, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
  }
  .voices .scroll-wrap::before {
    background: linear-gradient(to right, rgba(255, 240, 227, 0.95), rgba(255, 240, 227, 0));
  }
  .voices .scroll-wrap::after {
    background: linear-gradient(to left, rgba(255, 240, 227, 0.95), rgba(255, 240, 227, 0));
  }
  .scroll-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    color: var(--color-primary);
    border: none;
    cursor: pointer;
    opacity: 0.72;
    transition: opacity 0.2s;
    z-index: 10;
    font-size: 16px;
  }
  .scroll-arrow--prev { left: 8px; }
  .scroll-arrow--next { right: 8px; }
  .scroll-arrow.is-hidden { opacity: 0 !important; pointer-events: none; visibility: hidden; }
  .scroll-wrap:hover .scroll-arrow:not(.is-hidden) { opacity: 0.95; }

  .voice-card {
    flex: 0 0 clamp(260px, calc(100vw - 96px), 320px);
    scroll-snap-align: center;
    min-height: auto;
    padding: 28px 24px;
  }
  .voice-card__text { font-size: 14px; }
  .voice-card__avatar { width: 64px; height: 64px; }
  .voice-card__name { font-size: 15px; }

  /* 固定CTAと重複するセクション末尾CTAはスマホでは非表示 */
  .voices__cta { display: none; }

  /* スクロールドット */
  .scroll-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 4px 0;
  }
  .scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, width 0.2s, border-radius 0.2s;
    flex-shrink: 0;
  }
  .scroll-dot.is-active {
    background: var(--color-primary);
    width: 24px;
    border-radius: 4px;
  }

  /* モバイル固定CTAバー */
  body.has-mobile-cta { padding-bottom: 72px; }
  .mobile-cta-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
    z-index: 90;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .mobile-cta-bar.is-hidden {
    transform: translateY(calc(110% + env(safe-area-inset-bottom)));
    opacity: 0;
    pointer-events: none;
  }
  .mobile-cta-bar .btn {
    width: 100%;
    font-size: 17px;
    padding: 15px;
  }

  .faq-item { padding: 20px 20px; gap: 0; }
  .faq-icon { width: 36px; height: 36px; }
  .faq-item__title { font-size: 18px; }
  .faq-item__a { padding-right: 0; }
  .faq-item__a p { font-size: 14px; padding-top: 4px; }

  /* ハンバーガーメニュー */
  .hamburger { display: flex; }
  /* ロゴが横幅を使い切るとハンバーガーが次の行に回り込むため、折り返しを禁止する */
  .header__inner {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    gap: 12px;
  }
  .header__right { display: none; }
  .header__logo {
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
  }
  .logo-icon { width: 48px; height: 48px; }
  .logo-text {
    min-width: 0;
    text-align: left;
  }
  .logo-text__main {
    font-size: clamp(15px, 4.4vw, 19px);
    margin-bottom: 2px;
    white-space: nowrap;
  }
  .logo-text__sub {
    font-size: clamp(11px, 3.2vw, 14px);
    white-space: nowrap;
  }

  /* ナビ ドロワー */
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100dvh;
    background: #fff;
    z-index: 200;
    transition: right 0.3s ease;
    border-top: none;
    padding: 76px 0 32px;
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  }
  .header__nav.is-open { right: 0; }
  .nav-close {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-border);
    background: none;
    cursor: pointer;
  }
  .header__nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }
  .header__nav li {
    gap: 0;
    border-bottom: 1px solid var(--color-border);
  }
  .header__nav li:not(:last-child)::after { display: none; }
  .header__nav a {
    display: block;
    font-size: 16px;
    padding: 16px 24px;
  }

  /* 横方向のフェードインは表示前の要素が画面右にはみ出し、横スクロールが発生する。
     スマホでは縦方向のフェードインに統一する。 */
  .fade-in--left,
  .fade-in--right { transform: translateY(28px); }

  .reasons, .courses, .voices, .teachers, .faq { padding: 60px 0; }
  section[id] { scroll-margin-top: 72px; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .footer__brand { grid-column: auto; }
  .footer__logo { font-size: 20px; }
  .footer__desc, .footer__address, .footer__menu a { font-size: 15px; }
  .footer__tel { font-size: 22px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; padding: 16px 0; }

  .cta__title { font-size: 26px; }
  .cta__buttons { flex-direction: column; align-items: stretch; gap: 16px; }
  .btn--cta-web, .btn--cta-tel {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    font-size: 18px;
  }
  .cta__demo-note {
    width: 100%;
    max-width: none;
    margin: -2px 0 18px;
    border-radius: 14px;
    text-align: left;
  }
  .btn--cta-web svg, .btn--cta-tel svg { width: 28px; height: 28px; }
  .btn--cta-web i, .btn--cta-tel i { font-size: 24px; }
  i.reason-card__icon { font-size: 52px; }

  .teacher-card__heading { font-size: 20px; }

  .teacher-card__photo { max-width: none; }
  .teacher-photo {
    width: 100%;
    height: 240px;
    object-position: top center;
  }
  .back-to-top { bottom: 24px; right: 16px; }
  body.has-mobile-cta .back-to-top { bottom: 88px; }
}

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

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

  .btn--primary:hover,
  .course-card:hover,
  .voice-card:hover,
  .reason-card:hover {
    transform: none;
  }
  .fade-in, .fade-in--left, .fade-in--right { opacity: 1; transform: none; }
}

/* ============================================================
   Apply Page
   ============================================================ */

/* Breadcrumb */
.breadcrumb { margin-bottom: 20px; }
.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--color-text-mid);
}
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li:not(:last-child)::after { content: '›'; color: var(--color-text-light); }
.breadcrumb a { color: var(--color-primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* Page hero */
.apply-hero {
  background: var(--color-bg-cream);
  padding: 48px 0 56px;
}
.apply-hero__title {
  font-size: 40px;
  font-weight: 900;
  color: var(--color-text-dark);
  line-height: 1.3;
  margin: 8px 0 24px;
}
.apply-hero__badges { display: flex; flex-wrap: wrap; gap: 12px; }
.apply-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

/* Benefits */
.apply-benefits {
  background: var(--color-bg-gray);
  padding: 52px 0;
}
.apply-benefits__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.apply-benefit-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.apply-benefit-card__icon {
  font-size: 40px;
  color: var(--color-primary);
}
.apply-benefit-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-dark);
}
.apply-benefit-card__desc {
  font-size: 14px;
  color: var(--color-text-mid);
  line-height: 1.7;
}

/* Form section */
.apply-form-section {
  background: #fff;
  padding: 64px 0 80px;
}
.apply-form-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

/* Sidebar */
.apply-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 140px;
}
.apply-sidebar__card {
  background: var(--color-bg-cream);
  border-radius: var(--radius-card-sm);
  padding: 24px 24px;
}
.apply-sidebar__heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-bg-warm);
}

/* Flow */
.apply-flow { display: flex; flex-direction: column; }
.apply-flow__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  padding-bottom: 20px;
}
.apply-flow__item:last-child { padding-bottom: 0; }
.apply-flow__item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: var(--color-bg-warm);
}
.apply-flow__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Montserrat', sans-serif;
}
.apply-flow__label { font-size: 14px; font-weight: 700; color: var(--color-text-dark); }
.apply-flow__note { font-size: 12px; color: var(--color-text-mid); margin-top: 2px; }

/* Sidebar contact */
.apply-sidebar__contact { background: var(--color-primary); }
.apply-sidebar__contact .apply-sidebar__heading {
  color: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.25);
}
.apply-sidebar__tel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.apply-sidebar__tel:hover { opacity: 0.9; }
.apply-sidebar__hours { font-size: 12px; color: rgba(255, 255, 255, 0.8); }
.apply-sidebar__access,
.apply-sidebar__station {
  font-size: 13px;
  color: var(--color-text-mid);
  line-height: 1.65;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.apply-sidebar__access { margin-bottom: 8px; }
.apply-sidebar__access i,
.apply-sidebar__station i { color: var(--color-primary); margin-top: 2px; flex-shrink: 0; }

/* Form components */
.form-required-note {
  font-size: 13px;
  color: var(--color-text-mid);
  margin-bottom: 28px;
}
.form-group { margin-bottom: 24px; }
.form-fieldset {
  border: 0;
  margin: 0 0 24px;
  padding: 0;
  min-width: 0;
}
.form-fieldset > legend { padding: 0; }
.form-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 8px;
}
.form-label-sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-mid);
  margin-left: 4px;
}
.req {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.form-optional {
  display: inline-block;
  background: var(--color-bg-gray);
  color: var(--color-text-mid);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  color: var(--color-text-dark);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23A88B6E' d='M8 11L2 5h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 120, 32, 0.15);
  outline: none;
}
.form-input.is-error,
.form-select.is-error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.10);
}
.form-error-msg {
  color: #e53e3e;
  font-size: 13px;
  margin-top: 6px;
}
.form-error-msg[hidden] { display: none; }

/* Date / Time row */
.form-datetime-wrap { display: flex; flex-direction: column; gap: 12px; }
.form-datetime-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.form-datetime-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-mid);
  white-space: nowrap;
  width: 60px;
  flex-shrink: 0;
}
.form-input--date { flex: 1; min-width: 140px; }
.form-select--time { flex: 1.2; min-width: 170px; }

/* Radio */
.form-radio-group { display: flex; flex-wrap: wrap; gap: 12px; }
.form-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
  color: var(--color-text-dark);
}
.form-radio input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.form-radio__mark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-radio input[type="radio"]:checked + .form-radio__mark { border-color: var(--color-primary); }
.form-radio input[type="radio"]:focus-visible + .form-radio__mark {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 120, 32, 0.18);
}
.form-radio input[type="radio"][aria-invalid="true"] + .form-radio__mark {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.10);
}
.form-radio input[type="radio"]:checked + .form-radio__mark::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--color-primary);
}
.form-radio:hover .form-radio__mark { border-color: var(--color-primary-sub); }

/* Checkbox */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  color: var(--color-text-dark);
  line-height: 1.6;
}
.form-check input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.form-check__mark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.form-check input[type="checkbox"]:checked + .form-check__mark {
  border-color: var(--color-primary);
  background: var(--color-primary);
}
.form-check input[type="checkbox"]:focus-visible + .form-check__mark {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 120, 32, 0.18);
}
.form-check input[type="checkbox"]:checked + .form-check__mark::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 8px;
  height: 12px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(45deg);
}
.form-check input[type="checkbox"].is-error + .form-check__mark { border-color: #e53e3e; }
.form-link { color: var(--color-primary); text-decoration: underline; }
.form-link:hover { text-decoration: none; }

.form-demo-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--color-bg-gray);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--color-text-mid);
  line-height: 1.6;
  margin-bottom: 20px;
}
.form-demo-note i { color: var(--color-primary); margin-top: 2px; flex-shrink: 0; }

.apply-form__submit { font-size: 18px; padding: 18px 40px; }

/* Confirm state */
.apply-confirm {
  background: var(--color-bg-cream);
  border-radius: var(--radius-card-sm);
  padding: 36px;
}
.apply-confirm[hidden] { display: none; }
.apply-confirm__title {
  font-size: 26px;
  font-weight: 900;
  color: var(--color-text-dark);
  margin-bottom: 8px;
}
.apply-confirm__lead {
  color: var(--color-text-mid);
  margin-bottom: 24px;
}
.apply-confirm__list {
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}
.apply-confirm__row {
  display: grid;
  grid-template-columns: 180px 1fr;
}
.apply-confirm__row:not(:last-child) {
  border-bottom: 1px solid var(--color-border);
}
.apply-confirm__row dt,
.apply-confirm__row dd {
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.7;
}
.apply-confirm__row dt {
  background: #FFF8F2;
  color: var(--color-text-mid);
  font-weight: 700;
}
.apply-confirm__row dd {
  color: var(--color-text-dark);
  min-width: 0;
  overflow-wrap: anywhere;
}
.apply-confirm__value--multi {
  white-space: pre-wrap;
}
.apply-confirm__actions {
  display: grid;
  grid-template-columns: minmax(160px, 0.45fr) 1fr;
  gap: 16px;
}
.apply-confirm__back,
.apply-confirm__submit {
  font-size: 17px;
  padding: 17px 28px;
}

/* Thanks state */
.apply-thanks { text-align: center; padding: 48px 24px; }
.apply-thanks[hidden] { display: none; }
.apply-thanks__icon { font-size: 64px; color: var(--color-primary); margin-bottom: 20px; }
.apply-thanks__title {
  font-size: 26px;
  font-weight: 900;
  color: var(--color-text-dark);
  margin-bottom: 16px;
}
.apply-thanks__body {
  color: var(--color-text-mid);
  line-height: 1.8;
  margin-bottom: 28px;
}
.apply-thanks__tel { display: inline-flex; margin-bottom: 16px; font-size: 18px; }
.apply-thanks__back {
  display: block;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 24px;
}
.apply-thanks__back:hover { text-decoration: underline; }
.apply-thanks__demo-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-bg-gray);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 12px;
  color: var(--color-text-mid);
}
.apply-thanks__demo-note i { color: #E8A020; }

/* ============================================================
   Sub Pages
   ============================================================ */

.sub-hero {
  background: var(--color-bg-cream);
  padding: 48px 0 56px;
}
.sub-hero__title {
  font-size: 40px;
  font-weight: 900;
  color: var(--color-text-dark);
  line-height: 1.3;
  margin: 8px 0 16px;
}
.sub-hero__lead {
  max-width: 760px;
  color: var(--color-text-mid);
  line-height: 1.9;
}
.page-section {
  background: #fff;
  padding: 64px 0 80px;
}
.page-narrow {
  max-width: 920px;
}
.page-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--color-bg-gray);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--color-text-mid);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 32px;
}
.page-note i {
  color: var(--color-primary);
  margin-top: 4px;
  flex-shrink: 0;
}
.page-title-sm {
  font-size: 24px;
  font-weight: 900;
  color: var(--color-text-dark);
  margin-bottom: 20px;
}

.policy-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.policy-block {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 24px;
}
.policy-block h2 {
  font-size: 20px;
  font-weight: 900;
  color: var(--color-text-dark);
  margin-bottom: 10px;
}
.policy-block p {
  color: var(--color-text-mid);
  line-height: 1.9;
}
.policy-contact {
  background: var(--color-bg-cream);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 12px;
}
.policy-contact a,
.legal-table a,
.info-list a {
  color: var(--color-primary);
  text-decoration: underline;
}

.access-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
.access-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.map-placeholder {
  min-height: 360px;
  border-radius: var(--radius-card-sm);
  background:
    linear-gradient(135deg, rgba(255, 120, 32, 0.14), rgba(245, 200, 77, 0.16)),
    #FFF8F2;
  border: 2px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  color: var(--color-text-mid);
}
.map-placeholder i {
  font-size: 56px;
  color: var(--color-primary);
  margin-bottom: 16px;
}
.map-placeholder p {
  font-size: 22px;
  font-weight: 900;
  color: var(--color-text-dark);
}
.map-placeholder span {
  font-size: 14px;
}
.route-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.route-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}
.route-list__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-family: 'Montserrat', sans-serif;
}
.route-list h3 {
  font-size: 17px;
  font-weight: 900;
  color: var(--color-text-dark);
  margin-bottom: 4px;
}
.route-list p {
  color: var(--color-text-mid);
  line-height: 1.8;
}
.access-info {
  position: sticky;
  top: 96px;
}
.info-panel {
  background: var(--color-bg-cream);
  border-radius: var(--radius-card-sm);
  padding: 28px;
}
.info-panel h2 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 18px;
}
.info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}
.info-list dt {
  font-size: 13px;
  font-weight: 900;
  color: var(--color-primary);
}
.info-list dd {
  color: var(--color-text-mid);
  line-height: 1.7;
}

.legal-table {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-card-sm);
  overflow: hidden;
}
.legal-table div {
  display: grid;
  grid-template-columns: 220px 1fr;
}
.legal-table div:not(:last-child) {
  border-bottom: 1px solid var(--color-border);
}
.legal-table dt,
.legal-table dd {
  padding: 16px 20px;
  line-height: 1.8;
}
.legal-table dt {
  background: var(--color-bg-cream);
  color: var(--color-text-dark);
  font-weight: 900;
}
.legal-table dd {
  color: var(--color-text-mid);
}

.course-detail-section {
  background: var(--color-bg-gray);
}
.course-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.course-anchor-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--color-border);
  color: var(--color-text-dark);
  font-weight: 700;
  font-size: 14px;
}
.course-anchor-nav a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.course-detail {
  background: #fff;
  border-radius: var(--radius-card-sm);
  box-shadow: var(--shadow-card);
  padding: 32px;
  border-left: 8px solid var(--color-primary);
  scroll-margin-top: 170px;
}
.course-detail + .course-detail {
  margin-top: 28px;
}
.course-detail--yellow { border-left-color: #E8A020; }
.course-detail--purple { border-left-color: #4C1F8A; }
.course-detail--blue { border-left-color: #5B7FE8; }
.course-detail__head {
  margin-bottom: 28px;
}
.course-detail__head h2 {
  font-size: 28px;
  font-weight: 900;
  color: var(--color-text-dark);
  margin: 12px 0 8px;
}
.course-detail__head p,
.course-detail__body p {
  color: var(--color-text-mid);
  line-height: 1.8;
}
.course-detail__body {
  display: grid;
  grid-template-columns: 1fr 1fr 280px;
  gap: 28px;
  align-items: start;
}
.course-detail__body h3 {
  font-size: 16px;
  font-weight: 900;
  color: var(--color-text-dark);
  margin-bottom: 10px;
}
.check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.check-list li {
  color: var(--color-text-mid);
  line-height: 1.7;
  display: flex;
  gap: 8px;
}
.check-list li::before {
  content: '✓';
  color: var(--color-primary);
  font-weight: 900;
}
.course-price-panel {
  background: var(--color-bg-cream);
  border-radius: 12px;
  padding: 22px;
}
.course-price-panel__label {
  font-size: 13px;
}
.course-price-panel__price {
  color: var(--color-primary);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.3;
  margin: 4px 0;
}
.course-price-panel__price span {
  font-size: 15px;
}
.course-price-panel .btn {
  margin-top: 18px;
  font-size: 15px;
  padding: 14px 18px;
}

/* Apply page responsive */
@media (max-width: 1100px) {
  /* 1fr は最小幅が auto のため、中身の min-content 幅でトラックが画面外まで広がる。
     minmax(0, …) で親の幅を超えないようにする。 */
  .apply-form-wrap { grid-template-columns: minmax(0, 1fr); }
  .apply-sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apply-benefits__list { grid-template-columns: repeat(3, 1fr); }
  .access-layout { grid-template-columns: 1fr; }
  .access-info { position: static; }
  .course-detail__body { grid-template-columns: 1fr 1fr; }
  .course-price-panel { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .sub-hero { padding: 32px 0 40px; }
  .sub-hero__title { font-size: 28px; }
  .page-section { padding: 40px 0 60px; }
  .page-note { font-size: 13px; }
  .map-placeholder { min-height: 260px; }
  .route-list li { grid-template-columns: 36px 1fr; }
  .route-list__num { width: 36px; height: 36px; }
  .info-panel { padding: 22px; }
  .legal-table div { grid-template-columns: 1fr; }
  .legal-table dt { padding-bottom: 4px; }
  .legal-table dd { padding-top: 4px; }
  .course-anchor-nav a { flex: 1 1 calc(50% - 10px); }
  .course-detail {
    padding: 24px 18px;
    scroll-margin-top: 84px;
  }
  .course-detail__head h2 { font-size: 22px; }
  .course-detail__body { grid-template-columns: 1fr; }
  .course-price-panel { grid-column: auto; }
  .apply-hero { padding: 32px 0 40px; }
  .apply-hero__title { font-size: 28px; margin: 8px 0 20px; }
  .apply-hero__badges { gap: 8px; }
  .apply-badge { font-size: 13px; padding: 5px 14px; }
  .apply-benefits { padding: 40px 0; }
  .apply-benefits__list { grid-template-columns: 1fr; gap: 16px; }
  .apply-form-section { padding: 40px 0 60px; }
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .form-datetime-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .form-datetime-label { width: auto; }
  .form-radio-group { flex-direction: column; gap: 10px; }
  .apply-confirm { padding: 24px 18px; }
  .apply-confirm__title { font-size: 22px; }
  .apply-confirm__row { grid-template-columns: 1fr; }
  .apply-confirm__row dt { padding-bottom: 4px; }
  .apply-confirm__row dd { padding-top: 4px; }
  .apply-confirm__actions { grid-template-columns: 1fr; }
  .apply-sidebar { grid-template-columns: minmax(0, 1fr); }
  .apply-thanks__title { font-size: 22px; }
}

/* ===== Demo bar wiggle ===== */
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25%       { transform: rotate(-18deg); }
  75%       { transform: rotate(18deg); }
}
.demo-bar i.wiggle { animation: wiggle 0.35s ease; }

/* ===== Game Page ===== */
.game-page {
  min-height: 100dvh;
  background: #07080c url('img/bg_death.png') center center / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 64px;
  font-family: 'Noto Sans JP', sans-serif;
  color: #d8d0c8;
  position: relative;
}
.game-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.09) 3px,
    rgba(0,0,0,0.09) 4px
  );
  pointer-events: none;
  z-index: 999;
}
.game-body {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}
.game-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 12px 20px;
  background: #0f1018;
  border: 1px solid #252030;
  border-radius: 8px;
  box-shadow: 0 0 24px rgba(200,10,0,0.1), inset 0 1px 0 rgba(255,255,255,0.03);
}
.game-hud__item { text-align: center; }
.game-hud__label {
  font-size: 10px;
  color: #5a5565;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.game-hud__value {
  font-size: 28px;
  font-weight: 900;
  color: #c81a0a;
  line-height: 1;
}
.game-hud__value.is-urgent {
  color: #ff2200;
  animation: flicker 0.4s ease-in-out infinite alternate;
}
@keyframes flicker {
  from { opacity: 1; text-shadow: 0 0 10px #ff4400; }
  to   { opacity: 0.55; text-shadow: none; }
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}
.game-hole {
  aspect-ratio: 1;
  border-radius: 4px;
  background: #0f1018;
  border: 1px solid #252030;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.1s, transform 0.1s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.game-hole:hover { border-color: #5a1518; }
.game-hole .mole {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: translateY(100%);
  transition: transform 0.22s cubic-bezier(0.15, 0.85, 0.3, 1);
  pointer-events: none;
  display: block;
}
.game-hole.is-active .mole {
  transform: translateY(0);
  filter: brightness(0.77) contrast(1.05) saturate(0.85);
}
.game-hole.is-hit {
  background: #8a0a00;
  transform: scale(0.9);
  border-color: #c81a0a;
}
.game-hole.is-hit .mole {
  animation: mole-squish 0.2s ease-out forwards;
  transition: none;
}
@keyframes mole-squish {
  0%   { transform: translateY(0)   scaleX(1)    scaleY(1);    filter: brightness(1) saturate(1); }
  18%  { transform: translateY(6%)  scaleX(1.35) scaleY(0.45); filter: brightness(1.8) saturate(1.2); }
  55%  { transform: translateY(28%) scaleX(1.5)  scaleY(0.18); filter: brightness(0.6) saturate(0.3); }
  100% { transform: translateY(80%) scaleX(1.3)  scaleY(0.04); filter: brightness(0) saturate(0); }
}

.game-start-wrap { text-align: center; }
.game-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #c81a0a;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 14px 40px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(200,10,0,0.45);
  letter-spacing: 0.05em;
}
.game-btn:hover { background: #e02000; transform: translateY(-2px); }

/* リザルト */
.game-result {
  text-align: center;
  background: #0f1018;
  border: 1px solid #252030;
  border-radius: 8px;
  padding: 40px 32px;
  box-shadow: 0 0 40px rgba(200,10,0,0.12);
}
.game-result__rank {
  font-size: clamp(18px, 5vw, 26px);
  font-weight: 900;
  color: #ff3300;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.game-result__score {
  font-size: clamp(48px, 12vw, 72px);
  font-weight: 900;
  color: #c81a0a;
  line-height: 1;
  margin-bottom: 4px;
}
.game-result__score-label {
  font-size: 11px;
  color: #5a5565;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.game-result__comment {
  font-size: 14px;
  color: #807888;
  line-height: 1.8;
  white-space: pre-line;
  margin-bottom: 28px;
}
.game-result__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.game-result__back {
  font-size: 12px;
  color: #5a5565;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  letter-spacing: 0.08em;
}
.game-result__back:hover { color: #d8d0c8; }

/* カウントダウン */
.game-countdown {
  font-size: 96px;
  font-weight: 900;
  color: #c81a0a;
  text-align: center;
  line-height: 1;
  text-shadow: 0 0 40px rgba(200,10,0,0.5);
}
.game-countdown.pop {
  animation: countdown-pop 0.9s ease-out forwards;
}
@keyframes countdown-pop {
  0%   { transform: scale(1.6); opacity: 0; }
  25%  { transform: scale(1);   opacity: 1; }
  75%  { transform: scale(1);   opacity: 1; }
  100% { transform: scale(0.85); opacity: 0.3; }
}

/* ハンマーカーソル */
.game-page,
.game-page * {
  cursor: none !important;
}
.hammer-cursor {
  position: fixed;
  left: -200px;
  top: -200px;
  pointer-events: none;
  z-index: 10000;
  width: 80px;
  height: auto;
  user-select: none;
  display: none;
  background: transparent;
  transform: translate(87%, -65%) rotate(-30deg);
  transform-origin: 50% 65%;
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.9)) drop-shadow(0 0 10px rgba(180,8,0,0.4));
}
.game-page.result-active .hammer-cursor { display: none !important; }
.game-page.result-active,
.game-page.result-active * {
  cursor: auto !important;
}
.hammer-cursor.is-swinging {
  animation: hammer-swing 0.22s ease-out forwards;
}
@keyframes hammer-swing {
  0%   { transform: translate(87%, -65%) rotate(-30deg); }
  40%  { transform: translate(87%, -65%) rotate(-90deg); }
  100% { transform: translate(87%, -65%) rotate(-30deg); }
}
