/* ========================================
   ピコっとラボ オンライン学習 固有CSS
   ラボ共通 style.css の上に追加読み込み
   v1 - 2026.04
======================================== */

/* ========================================
   今日のひとことICT（ミニプレーヤー）
======================================== */
.today-card-section {
  padding: 100px 2rem;
  position: relative;
  z-index: 3;
  background: var(--bg-blue-light);
}

.today-card-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.today-card-sub {
  font-size: 14px;
  color: var(--text-gray);
  margin-top: 0.8rem;
  text-align: center;
}

/* クイズ風カード型プレイヤー */
.today-player {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  border: 3px solid var(--primary-blue);
  padding: 2.5rem 2rem 2rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}

/* バッジ（シリーズ名） */
.today-badge {
  display: inline-block;
  background: var(--primary-blue);
  color: var(--white);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* ボディ（画像 + テキスト・操作） */
.today-player-body {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-align: left;
}

.today-player-card-img {
  width: 140px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
  flex-shrink: 0;
}

.today-player-main {
  flex: 1;
  min-width: 0;
}

/* フッター */
.today-player-footer {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-gray);
  font-weight: 500;
}

@media (max-width: 600px) {
  .today-player { padding: 2rem 1.2rem 1.5rem; }
  .today-player-card-img { width: 100px; }
  .today-player-body { gap: 1rem; }
}

.today-player-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* コントロール行 */
.today-player-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.today-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary-blue), #00b4e6);
  color: var(--white);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0,151,211,0.3);
  transition: all 0.3s;
  overflow: hidden;
  padding: 0;
}

.today-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 5px 18px rgba(0,151,211,0.4);
}

.today-play-btn.is-playing {
  background: var(--primary-blue);
}

/* 波形 */
.today-waveform {
  flex: 1;
  display: flex;
  align-items: center;
  height: 32px;
  gap: 2px;
  overflow: hidden;
}

.wave-bar {
  flex: 1;
  min-width: 0;
  border-radius: 2px;
  background: #d4eef7;
  height: var(--h);
  transition: height 0.4s ease, background 0.3s;
}

/* 再生中のアニメーション */
.today-waveform.is-playing .wave-bar {
  background: var(--primary-blue);
  animation: wave 0.6s ease-in-out var(--d) infinite alternate;
}

@keyframes wave {
  from { height: 5px; }
  to   { height: 28px; }
}

/* ========================================
   ウェルカムセクション（A+B ハイブリッド）
======================================== */
.welcome-section {
  padding: 40px 2rem 80px;
}

.welcome-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: linear-gradient(135deg, var(--primary-blue-light) 0%, #fff 100%);
  border-radius: 24px;
  border: 3px solid var(--primary-blue);
  box-shadow: 0 8px 30px rgba(0, 151, 211, 0.10);
}

.welcome-top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.welcome-mascot {
  width: 120px;
  height: 120px;
  object-fit: contain;
  flex-shrink: 0;
}

.welcome-bubble {
  background: var(--white);
  border-radius: 20px;
  padding: 1.2rem 1.5rem;
  position: relative;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 2px solid var(--primary-blue-light);
  flex: 1;
}

.welcome-bubble-arrow {
  position: absolute;
  left: -12px;
  top: 22px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 12px solid var(--white);
}

.welcome-bubble p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-dark);
  margin: 0;
}

.welcome-title {
  color: var(--primary-blue);
  font-size: 17px;
}

.welcome-ict-label {
  background: var(--primary-yellow);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.welcome-icons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.welcome-icon-card {
  border-radius: 14px;
  padding: 0.8rem 1rem;
  min-width: 120px;
  flex: 1 1 120px;
  max-width: 160px;
  text-align: center;
}

.welcome-icon-emoji {
  display: block;
  font-size: 24px;
  margin-bottom: 2px;
}

.welcome-icon-label {
  font-size: 13px;
  font-weight: 700;
}

.welcome-icon--blue {
  background: rgba(0, 151, 211, 0.06);
  border: 2px solid rgba(0, 151, 211, 0.18);
}
.welcome-icon--blue .welcome-icon-label { color: var(--primary-blue); }

.welcome-icon--orange {
  background: rgba(255, 107, 53, 0.06);
  border: 2px solid rgba(255, 107, 53, 0.18);
}
.welcome-icon--orange .welcome-icon-label { color: var(--primary-orange); }

.welcome-icon--green {
  background: rgba(126, 217, 87, 0.06);
  border: 2px solid rgba(126, 217, 87, 0.18);
}
.welcome-icon--green .welcome-icon-label { color: var(--accent-green); }

.welcome-icon--purple {
  background: rgba(124, 109, 216, 0.06);
  border: 2px solid rgba(124, 109, 216, 0.18);
}
.welcome-icon--purple .welcome-icon-label { color: #7c6dd8; }

@media (max-width: 600px) {
  .welcome-section { padding: 24px 1rem 60px; }
  .welcome-box { padding: 1.2rem; }
  .welcome-top { gap: 1rem; }
  .welcome-mascot { width: 80px; height: 80px; }
  .welcome-bubble { padding: 1rem 1.2rem; }
  .welcome-bubble p { font-size: 13px; }
  .welcome-title { font-size: 15px; }
  .welcome-icon-card { min-width: 70px; padding: 0.6rem 0.5rem; }
  .welcome-icon-emoji { font-size: 20px; }
  .welcome-icon-label { font-size: 11px; }
}

/* ========================================
   オンライン学習セクション共通
======================================== */
.town-section {
  padding: 100px 2rem;
}

.town-section:nth-child(even) {
  background: var(--bg-light);
}

.town-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* セクションバー（section-header 下の青線） */
.section-bar {
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-blue);
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* ========================================
   キャラクター装飾（ラボ準拠 .floating-chara）
======================================== */
.section-with-chara {
  position: relative;
}

.section-chara {
  position: absolute;
  width: 240px;
  height: auto;
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.1));
}

.section-chara-right {
  right: -80px;
  top: 40px;
  animation: float 3.5s ease-in-out infinite;
}

.section-chara-left {
  left: -80px;
  top: 40px;
  animation: float-alt 4s ease-in-out infinite;
}

@media (max-width: 1400px) {
  .section-chara-right { right: -30px; }
  .section-chara-left { left: -30px; }
}

@media (max-width: 1200px) {
  .section-chara { width: 180px; }
  .section-chara-right { right: 0; }
  .section-chara-left { left: 0; }
}

@media (max-width: 768px) {
  .section-chara {
    position: relative;
    display: block;
    margin: 1.5rem auto 0;
    width: 200px;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
  }
  .section-chara-right { animation: float 3s ease-in-out infinite; }
  .section-chara-left { animation: float-alt 3.5s ease-in-out infinite; }
}

/* ========================================
   ステージカード（学年でえらぶ）
======================================== */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

a.stage-card,
.stage-card {
  display: block;
  background: var(--white);
  border-radius: 24px;
  border: 3px solid var(--primary-blue);
  padding: 0;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.stage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.stage-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-light);
}

.stage-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

a.stage-card:hover .stage-cover img {
  transform: scale(1.05);
}

.stage-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.stage-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.stage-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  padding: 1.2rem 1.5rem 0;
}

.stage-age {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
  padding: 0 1.5rem;
}

.stage-desc {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 1rem;
  padding: 0 1.5rem;
}

.stage-count {
  display: inline-block;
  background: var(--bg-blue-light);
  color: var(--primary-blue);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* ステージカラーバリエーション */
.stage-seedling { border-color: var(--accent-green); }
.stage-seedling .stage-age { color: var(--accent-green); }
.stage-seedling .stage-count { background: #e8f8e0; color: #4caf50; }

.stage-rocket { border-color: var(--primary-blue); }

.stage-bulb { border-color: var(--primary-orange); }
.stage-bulb .stage-age { color: var(--primary-orange); }
.stage-bulb .stage-count { background: #fff0e6; color: var(--primary-orange); }

/* ========================================
   ジャンルグリッド（学びたいことからえらぶ）
======================================== */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

a.genre-card,
.genre-card {
  display: block;
  background: var(--white);
  border-radius: 24px;
  border: 3px solid var(--primary-blue);
  padding: 0;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.genre-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.genre-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-light);
}

.genre-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

a.genre-card:hover .genre-cover img {
  transform: scale(1.05);
}

.genre-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.genre-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.genre-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  padding: 1rem 1rem 0;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.genre-card p {
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  padding: 0 1rem;
}

.genre-tag {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.tag-free {
  background: var(--accent-green);
  color: var(--white);
}

/* ========================================
   クイズセクション
======================================== */
.quiz-section {
  background: var(--bg-blue-light) !important;
}

.quiz-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  border: 3px solid var(--primary-blue);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.quiz-category {
  display: inline-block;
  background: var(--primary-blue);
  color: var(--white);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.quiz-question {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.quiz-option {
  background: var(--bg-light);
  border: 2px solid var(--primary-blue);
  border-radius: 16px;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-body);
}

.quiz-option:hover {
  border-color: var(--primary-blue);
  background: var(--bg-blue-light);
}

.quiz-option.correct {
  background: #e8f8e0;
  border-color: var(--accent-green);
  color: #2e7d32;
}

.quiz-option.wrong {
  background: #fde8e8;
  border-color: #e53e3e;
  color: #c53030;
}

.quiz-footer {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-gray);
  font-weight: 500;
}

/* ========================================
   スタンプラリー
======================================== */
.stamp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

a.stamp-item {
  display: block;
  background: var(--white);
  border-radius: 16px;
  border: 2px solid #e0e0e0;
  padding: 1.2rem 1rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

a.stamp-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  border-color: var(--primary-blue);
}

.stamp-item.completed {
  border-color: var(--primary-yellow);
  background: #fffde6;
}

.stamp-item.completed:hover {
  border-color: #e6b800;
}

.stamp-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: var(--bg-light);
}

.stamp-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

a.stamp-item:hover .stamp-cover img {
  transform: scale(1.05);
}

.stamp-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.stamp-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.stamp-progress {
  font-size: 0.75rem;
  color: var(--text-gray);
  margin-bottom: 0.5rem;
}

.stamp-progress-bar {
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
}

.stamp-progress-fill {
  height: 100%;
  background: var(--primary-blue);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.stamp-item.completed .stamp-progress-fill {
  background: var(--primary-yellow);
}

.stamp-summary {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-blue-light);
  border-radius: 24px;
  padding: 2rem;
  border: 3px solid var(--primary-blue);
}

.stamp-summary .trophy { font-size: 3rem; margin-bottom: 0.5rem; }

.stamp-summary h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.stamp-summary p {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.progress-total {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.progress-total-bar {
  flex: 1;
  height: 10px;
  background: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
}

.progress-total-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-yellow));
  border-radius: 5px;
}

.progress-total span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
}

/* ========================================
   レベルアップ
======================================== */
.levelup-preview {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border-radius: 24px;
  border: 3px solid var(--primary-blue);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.levelup-stages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.levelup-dot {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: var(--bg-blue-light);
  border: 3px solid var(--primary-blue);
  transition: all 0.3s ease;
}

.levelup-dot.active {
  background: var(--primary-blue);
  box-shadow: 0 4px 15px rgba(0,151,211,0.3);
}

.levelup-dot.locked {
  opacity: 0.4;
  border-color: #e0e0e0;
  background: var(--bg-light);
}

.levelup-arrow {
  font-size: 1.2rem;
  color: #e0e0e0;
  font-weight: 700;
}

.levelup-arrow.active { color: var(--primary-blue); }

.levelup-preview h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.levelup-preview p {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.8;
}

/* ========================================
   検定セクション
======================================== */
.kentei-section {
  background: var(--bg-white) !important;
}

.kentei-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  border: 3px solid var(--primary-blue);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 200px 1fr;
  overflow: hidden;
}

.kentei-visual {
  background: var(--bg-blue-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 1rem;
}

.kentei-badge {
  font-size: 3rem;
  text-align: center;
}

.kentei-badge small {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary-blue);
}

.kentei-levels {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.kentei-level {
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.kentei-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kentei-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.kentei-info p {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.kentei-coming {
  display: inline-block;
  background: var(--primary-yellow);
  color: var(--text-dark);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ========================================
   保護者セクション
======================================== */
.parent-section {
  background: var(--bg-light) !important;
}

.parent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.parent-card {
  background: var(--white);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.parent-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.parent-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.parent-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.parent-card p {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.8;
}

/* ========================================
   ヒーローCTAボタン横幅統一
======================================== */
.hero-cta-group .btn-primary,
.hero-cta-group .btn-secondary {
  min-width: 280px;
  justify-content: center;
  text-align: center;
}

/* ========================================
   CTAスイッチボタンのスタイル上書き
   ラボ側: 青 → オンライン側: オレンジ（教室へ戻る）
======================================== */
.nav-cta--lab {
  background: var(--primary-orange) !important;
  box-shadow: 0 4px 15px rgba(255,107,53,0.3) !important;
}

.nav-cta--lab:hover {
  background: #e55a2b !important;
  box-shadow: 0 6px 20px rgba(255,107,53,0.4) !important;
}

/* ========================================
   あそんで学ぶ (PLAY)
======================================== */
.play-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.play-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s;
}

.play-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.play-cover {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  min-height: 160px;
}

.play-cover-icon {
  font-size: 4rem;
  line-height: 1;
}

.play-card-body {
  padding: 1.5rem;
  text-align: center;
}

.play-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.play-card-body p {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.play-tag {
  display: inline-block;
  background: var(--accent-green);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 20px;
}

/* ========================================
   レスポンシブ（オンライン学習固有）
======================================== */
@media (max-width: 1024px) {
  .stage-grid { grid-template-columns: repeat(3, 1fr); }
  .genre-grid { grid-template-columns: repeat(2, 1fr); }
  .stamp-grid { grid-template-columns: repeat(4, 1fr); }
  .kentei-card { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .today-card-wrap { flex-direction: column; text-align: center; }

  .town-section { padding: 60px 1.5rem; }

  .stage-grid { grid-template-columns: 1fr; }
  .genre-grid { grid-template-columns: 1fr 1fr; }
  .stamp-grid { grid-template-columns: repeat(2, 1fr); }

  .quiz-options { grid-template-columns: 1fr; }

  .kentei-card { grid-template-columns: 1fr; }
  .kentei-visual { padding: 1.5rem; }

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

  .levelup-dot { width: 50px; height: 50px; font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .genre-grid { grid-template-columns: 1fr; }
  .stamp-grid { grid-template-columns: 1fr 1fr; }
}
