/* カタカタランド 共通スタイル */

:root {
  --color-bg: #f2f9ff;
  --color-surface: #ffffff;
  --color-text: #2d3a4a;
  --color-text-weak: #5c6b7c;
  --color-primary: #2da8e0;
  --color-primary-dark: #1b7fb0;
  --color-accent: #ffb928;
  --color-coral: #ff6f7d;
  --color-night: #0b1026;
  --color-night-2: #1a2150;
  --color-line: #d8e6f0;
  --radius: 16px;
  --shadow: 0 4px 14px rgba(45, 90, 130, 0.12);
  --font-main: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Yu Gothic',
    Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
}

a {
  color: var(--color-primary-dark);
}

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

/* ---------- ヘッダー ---------- */
.site-header {
  background: var(--color-surface);
  border-bottom: 3px solid var(--color-primary);
  position: relative;
}

.site-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.site-logo {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  font-size: 1.5rem;
  font-weight: 900;
  text-decoration: none;
  color: var(--color-primary-dark);
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.site-logo .logo-mark {
  margin-right: 4px;
}

/* ロゴ下のサブタイトル（用途を明示。将来の拡張時はここを変更） */
.site-logo__sub {
  flex-basis: 100%;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--color-text-weak);
  letter-spacing: 0;
  margin-top: 1px;
}

.site-nav {
  display: flex;
  gap: 4px 14px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-text-weak);
  padding: 4px 6px;
  border-radius: 8px;
}

.site-nav a:hover {
  color: var(--color-primary-dark);
  background: var(--color-bg);
}

/* ---------- レイアウト ---------- */
.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.page--narrow {
  max-width: 760px;
}

.section {
  margin-top: 40px;
}

h1 {
  font-size: 1.7rem;
  font-weight: 900;
  margin: 0.4em 0;
}

h2 {
  font-size: 1.3rem;
  font-weight: 900;
  border-left: 8px solid var(--color-accent);
  padding-left: 10px;
  margin-top: 2em;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.lead {
  font-size: 1.02rem;
  color: var(--color-text-weak);
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}

/* パンくず */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--color-text-weak);
  margin: 4px 0 8px;
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.breadcrumb li + li::before {
  content: '›';
  margin: 0 6px;
}

.breadcrumb a {
  color: var(--color-text-weak);
}

/* ---------- コース選択チップ（ゲーム直上） ---------- */
.course-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.1s;
}

a.chip:hover {
  transform: translateY(-2px);
  color: var(--color-primary-dark);
}

.chip.is-current {
  background: var(--color-primary);
  color: #fff;
}

/* ---------- ゲームステージ ---------- */
.game-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 540px;
  background: linear-gradient(180deg, var(--color-night) 0%, var(--color-night-2) 100%);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  user-select: none;
}

.game-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 16px;
}

/* hidden 属性が display: flex に負けないようにする（画面切り替えの要） */
.game-overlay[hidden] {
  display: none;
}

/* ステータスバー（プレイ中上部）: カード型で大きく目立たせる */
.game-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
}

.hud-item {
  background: rgba(8, 12, 40, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 4px 14px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.hud-label {
  font-size: 0.66rem;
  font-weight: 700;
  color: #9db8e8;
  letter-spacing: 0.12em;
}

.hud-time {
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.1;
}

.hud-time.is-warning {
  color: #ff6f7d;
  animation: blink 0.6s steps(2) infinite;
}

@keyframes blink {
  50% { opacity: 0.35; }
}

.hud-score {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1.1;
  display: inline-block;
}

.hud-score.pop {
  animation: scorepop 0.3s;
}

@keyframes scorepop {
  40% { transform: scale(1.35); }
}

.hud-level-num {
  font-size: 1.3rem;
  font-weight: 900;
  color: #7fe3ff;
  line-height: 1.1;
}

@keyframes pulse {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}

.hud-expbar {
  width: 86px;
  height: 8px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  overflow: hidden;
  margin-top: 3px;
}

.hud-expbar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--color-accent);
  transition: width 0.15s;
}

/* プレイ中のやり直しボタン */
.hud-restart {
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(8, 12, 40, 0.55);
  color: #cdd9f5;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
}

.hud-restart:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* コンボバナー（お題の上に大きく表示） */
.combo-banner {
  min-height: 2.1rem;
  font-size: clamp(1.1rem, 3.4vw, 1.6rem);
  font-weight: 900;
  color: #7fe3ff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.15s, transform 0.15s;
  margin-top: 30px;
}

.combo-banner.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* フィーバー段階1: 金色 */
.combo-banner.is-fever {
  color: #ffd34d;
  animation: pulse 0.5s infinite alternate;
}

/* フィーバー段階2（スーパー）: 燃える赤橙 + 強い光 */
.combo-banner.is-fever2 {
  color: #ff8a50;
  text-shadow: 0 0 14px rgba(255, 110, 50, 0.9), 0 2px 8px rgba(0, 0, 0, 0.6);
  animation: pulse 0.4s infinite alternate;
}

/* フィーバー段階3（ウルトラ）: 虹色グラデーション文字 */
.combo-banner.is-fever3 {
  background: linear-gradient(90deg, #ff6f7d, #ffd34d, #7fe3c4, #7fb8ff, #d98cff, #ff6f7d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.55));
  animation: pulse 0.35s infinite alternate, huecycle 1.4s linear infinite;
}

@keyframes huecycle {
  to { filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.55)) hue-rotate(360deg); }
}

/* キーボードガイド（次に打つキーをハイライト・指の色分け） */
.kbd-guide {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  user-select: none;
}

.kbd-guide[hidden] {
  display: none;
}

.kbd-row {
  display: flex;
  gap: 4px;
}

.kbd-row:nth-child(2) {
  padding-left: 14px;
}

.kbd-row:nth-child(3) {
  padding-left: 34px;
}

.key {
  position: relative;
  width: clamp(22px, 3.6vw, 34px);
  height: clamp(24px, 3.8vw, 34px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
  color: #cdd9f5;
  border-bottom: 3px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.08s, background 0.08s;
}

/* 担当指ごとの色分け（下線の色） */
.key--f1 { border-bottom-color: #ff9eae; }
.key--f2 { border-bottom-color: #ffd34d; }
.key--f3 { border-bottom-color: #7fe3c4; }
.key--f4 { border-bottom-color: #7fb8ff; }

.key--home {
  background: rgba(255, 255, 255, 0.18);
}

/* F・J の突起マーク */
.key--bump::after {
  content: '';
  position: absolute;
  bottom: 3px;
  width: 10px;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.75);
}

.key.is-next {
  background: var(--color-accent);
  color: #4a2c00;
  transform: translateY(-2px) scale(1.15);
  box-shadow: 0 0 14px rgba(255, 185, 40, 0.85);
  border-bottom-color: #d18f00;
}

/* お題表示（フィーバーで背景が明るくなっても読めるよう半透明の黒パネルを敷く） */
.word-display {
  margin-top: 8px;
  background: rgba(8, 12, 40, 0.55);
  border-radius: 16px;
  padding: 12px 28px;
  max-width: 92%;
}

.word-display .word-main {
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.word-display .word-kana {
  font-size: clamp(1rem, 2.6vw, 1.3rem);
  color: #bcd6ff;
  margin-top: 2px;
}

.word-display .word-romaji {
  font-family: Consolas, 'Courier New', monospace;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  letter-spacing: 0.12em;
  margin-top: 10px;
}

.word-romaji .typed {
  color: #ffd34d;
}

.word-romaji .rest {
  color: #ffffff;
}

.word-display.guide-off .word-romaji .rest {
  visibility: hidden;
}

.miss-flash {
  animation: shake 0.18s;
}

@keyframes shake {
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* スタート/結果画面 */
.start-screen .game-title,
.result-screen .result-title {
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  font-weight: 900;
}

.start-screen .game-desc {
  color: #bcd6ff;
  max-width: 540px;
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 900;
  color: #4a2c00;
  background: var(--color-accent);
  border: none;
  border-radius: 999px;
  padding: 14px 46px;
  cursor: pointer;
  box-shadow: 0 4px 0 #d18f00;
  transition: transform 0.08s;
}

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

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #d18f00;
}

.btn--sub {
  font-size: 0.9rem;
  padding: 8px 22px;
  background: #ffffff;
  color: var(--color-primary-dark);
  box-shadow: 0 3px 0 #b9cfdd;
}

.game-settings {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
  font-size: 0.88rem;
  color: #bcd6ff;
}

.game-settings label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 結果画面 */
.result-grid {
  display: flex;
  gap: 8px 26px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 10px 0;
  font-size: 0.95rem;
}

.result-grid dt {
  color: #9db8e8;
  font-size: 0.78rem;
}

.result-grid dd {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 900;
}

/* 打ち上げた花火の数（結果の主役） */
.result-fireworks {
  font-size: clamp(1.15rem, 3.6vw, 1.7rem);
  font-weight: 900;
  margin-top: 4px;
}

.result-fireworks b {
  color: #ffd34d;
  font-size: 1.5em;
}

.result-score {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1.2;
}

.result-best {
  font-size: 0.85rem;
  color: #9db8e8;
}

.result-rank {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffd34d;
  margin: 4px 0;
}

.result-new-record {
  color: #ff9eae;
  font-weight: 900;
  animation: pulse 0.5s infinite alternate;
}

.result-unlock {
  color: #a5f3c4;
  font-weight: 700;
  font-size: 0.95rem;
}

.result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}

.result-retry-hint {
  font-size: 0.85rem;
  color: #9db8e8;
  margin-top: 10px;
}

/* きろく・しょうごうモーダル */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 14, 40, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-box {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 84vh;
  overflow-y: auto;
  padding: 20px 24px 26px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.modal-box h2 {
  margin-top: 0.2em;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: var(--color-bg);
  color: var(--color-text-weak);
  font-size: 1rem;
  font-weight: 700;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
}

.modal-total {
  font-size: 0.95rem;
}

.modal-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
}

.modal-table th,
.modal-table td {
  border: 1px solid var(--color-line);
  padding: 4px 10px;
  text-align: left;
}

.modal-table th {
  background: var(--color-bg);
}

.modal-table .num {
  text-align: right;
  font-weight: 700;
}

.modal-list {
  list-style: none;
  padding: 0;
  margin: 6px 0;
}

.modal-list li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 4px;
  background: #eef3f8;
  color: #93a2b3;
  font-size: 0.92rem;
}

.modal-list li.is-got {
  background: #fff6e0;
  color: var(--color-text);
}

.modal-list .cond {
  margin-left: auto;
  font-size: 0.76rem;
  color: #97a5b4;
}

/* タッチ端末向け案内 */
.touch-notice {
  display: none;
  background: #fff6e0;
  border: 2px dashed var(--color-accent);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-top: 14px;
  font-size: 0.92rem;
}

body.is-touch .touch-notice {
  display: block;
}

/* ---------- 広告スロット ----------
   規約: ゲーム枠から150px以上離す（.ad-sep の margin で担保）/
   高さ固定で CLS 回避 / ゲームキャンバスへのオーバーレイ禁止 */
.ad-slot {
  max-width: 1080px;
  margin: 0 auto;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9eef4;
  border-radius: 12px;
  color: #9aa8b6;
  font-size: 0.8rem;
}

.ad-slot::before {
  content: '広告';
}

.ad-sep {
  margin-top: 160px; /* ゲーム枠との離隔150px以上を担保 */
}

.ad-slot--article {
  min-height: 250px;
  margin: 32px auto;
}

/* ---------- コース一覧カード ---------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}

.course-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  text-decoration: none;
  color: var(--color-text);
  display: block;
  border-top: 6px solid var(--color-primary);
  transition: transform 0.12s;
}

.course-card:hover {
  transform: translateY(-4px);
}

.course-card .course-emoji {
  font-size: 1.9rem;
}

.course-card .course-name {
  font-weight: 900;
  font-size: 1.08rem;
  margin: 6px 0 2px;
}

.course-card .course-desc {
  font-size: 0.85rem;
  color: var(--color-text-weak);
}

.course-card .course-level {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--color-bg);
  color: var(--color-primary-dark);
  border-radius: 999px;
  padding: 1px 10px;
  margin-top: 8px;
}

/* ---------- 記事 ---------- */
.article-body {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px;
}

.article-body h2 {
  margin-top: 1.6em;
}

.article-body table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
}

.article-body th,
.article-body td {
  border: 1px solid var(--color-line);
  padding: 6px 10px;
  text-align: center;
}

.article-body th {
  background: var(--color-bg);
}

.article-list {
  list-style: none;
  padding: 0;
}

.article-list li {
  background: var(--color-surface);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}

.article-list a {
  display: block;
  padding: 14px 18px;
  text-decoration: none;
  font-weight: 700;
}

.article-list .article-summary {
  display: block;
  font-size: 0.83rem;
  font-weight: 400;
  color: var(--color-text-weak);
}

/* 著者ボックス（E-E-A-T: 記事の信頼性表示用） */
.author-box {
  margin-top: 32px;
  padding: 16px 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 12px;
}

.author-box__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-weak);
  margin: 0;
}

.author-box__name {
  font-weight: 900;
  font-size: 1.02rem;
  margin: 4px 0;
}

.author-box__bio {
  font-size: 0.88rem;
  color: var(--color-text-weak);
  margin: 0;
}

/* お問い合わせフォーム */
.form-warn {
  background: #fff6e0;
  border-left: 6px solid var(--color-coral);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0 8px;
}

.contact-form fieldset {
  border: 1px solid var(--color-line);
  border-radius: 10px;
  padding: 10px 14px;
}

.contact-form legend {
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0 6px;
}

.contact-form .radio {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 400;
  margin-right: 16px;
  font-size: 0.92rem;
}

.contact-form .form-field {
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-form .form-field[hidden] {
  display: none;
}

.contact-form .req {
  display: inline-block;
  font-size: 0.7rem;
  background: var(--color-coral);
  color: #fff;
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 6px;
  vertical-align: middle;
}

.contact-form input[type='text']:not(.hp-field),
.contact-form input[type='email'],
.contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text);
  width: 100%;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

.contact-form .btn {
  align-self: flex-start;
}

.contact-form .form-note {
  font-size: 0.8rem;
  color: var(--color-text-weak);
  margin: 0;
}

/* ハニーポット（人には非表示・botよけ） */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-result {
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  margin-top: 4px;
}

.form-result.is-success {
  background: #e6f7ec;
  color: #1c7a44;
}

.form-result.is-error {
  background: #fdeaea;
  color: #b3261e;
}

.form-result[hidden] {
  display: none;
}

/* ポイントボックス */
.point-box {
  background: #fff6e0;
  border-left: 8px solid var(--color-accent);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 16px 0;
}

/* ---------- ローマ字表 ---------- */
.romaji-table-wrap {
  overflow-x: auto;
}

.romaji-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
  background: var(--color-surface);
}

.romaji-table th,
.romaji-table td {
  border: 1px solid var(--color-line);
  padding: 6px 8px;
  text-align: center;
  min-width: 60px;
}

.romaji-table th {
  background: var(--color-bg);
}

.romaji-table .kana {
  font-weight: 900;
  font-size: 1.05rem;
}

.romaji-table .roma {
  color: var(--color-primary-dark);
  font-family: Consolas, monospace;
  font-weight: 700;
}

.romaji-table .roma-sub {
  display: block;
  font-size: 0.74rem;
  color: var(--color-text-weak);
  font-family: Consolas, monospace;
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--color-night);
  color: #bcd6ff;
  margin-top: 64px;
  padding: 28px 16px 36px;
  font-size: 0.85rem;
}

.site-footer__inner {
  max-width: 1080px;
  margin: 0 auto;
}

.site-footer nav {
  display: flex;
  gap: 6px 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.site-footer a {
  color: #bcd6ff;
}

/* ---------- 印刷（ローマ字表用） ---------- */
@media print {
  .site-header,
  .site-footer,
  .ad-slot,
  .no-print,
  .breadcrumb {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .page {
    padding: 0;
    max-width: none;
  }

  .romaji-table {
    font-size: 11px;
  }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 640px) {
  h1 {
    font-size: 1.35rem;
  }

  .game-stage {
    aspect-ratio: 4 / 5;
    max-height: none;
  }

  .hud-item {
    min-width: 0;
    flex: 1;
    padding: 4px 8px;
  }

  .hud-time {
    font-size: 1.3rem;
  }

  .hud-score {
    font-size: 1.15rem;
  }

  .hud-expbar {
    width: 56px;
  }

  .combo-banner {
    margin-top: 56px;
  }

  .card,
  .article-body {
    padding: 18px 16px;
  }
}
