/* ==========================================================================
   やさしいソリティア - シニアのためのスタイルシート (style.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. デザインシステム変数 & 初期化
   -------------------------------------------------------------------------- */
:root {
  /* シニア向け高コントラスト・目に優しい配色（フォレストグリーン背景） */
  --bg-color: #0b3d1f;          /* 濃い緑（トランプ卓を想起） */
  --header-bg: #072a15;
  --text-primary: #ffffff;
  --text-muted: #a3e0b8;

  /* カード関連 */
  --card-width: 12.5vw;         /* 画面幅に基づくレスポンシブな幅 (スマホ基準) */
  --card-height: 18.75vw;        /* アスペクト比 1:1.5 */
  --card-max-width: 80px;
  --card-max-height: 120px;
  --card-radius: 8px;
  --card-bg-front: #ffffff;
  --card-bg-back: #3576e2;      /* シニアが親しみやすい落ち着いた青 */
  --card-back-pattern: radial-gradient(circle, #4d8df5 10%, transparent 11%),
                        radial-gradient(circle, #4d8df5 10%, transparent 11%);
  
  /* 色覚対応：マークごとの配色 */
  --color-red-suit: #d91c1c;    /* はっきりした鮮明な赤 */
  --color-black-suit: #0d1e3d;  /* ほぼ黒に近い極めて濃い藍色 */

  /* ハイライトと操作性 */
  --color-selection: #ffd214;   /* 選択状態：太い黄色（高コントラスト） */
  --color-targetable: #00ff66;  /* 移動可能先：やさしい蛍光グリーン */
  
  /* ボタンとモーダル */
  --color-primary: #ffd214;     /* 主要アクション：黄色（黒文字で高視認） */
  --color-primary-text: #072a15;
  --color-secondary: #e6f7ed;   /* 通常ボタン：薄いグレー・緑 */
  --color-secondary-text: #072a15;
  --color-danger: #ffb8b8;      /* 最初から：優しい薄赤（強い警告色は避ける） */
  --color-danger-text: #660000;

  /* 外部CDN依存を完全に排除した高品質なローカルフォントスタック */
  --font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, "Yu Gothic Medium", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent; /* タップハイライトを消す */
  user-select: none;                       /* テキスト選択による誤操作を防ぐ */
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.4;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

/* PCやタブレットでの中央寄せ最大幅制限 */
#app-container {
  width: 100%;
  max-width: 500px; /* スマホの縦持ち幅にロック */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
  padding: 8px 8px 24px 8px;
  position: relative;
}

/* --------------------------------------------------------------------------
   2. ヘッダー & メモリー
   -------------------------------------------------------------------------- */
.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background-color: var(--header-bg);
  border-radius: 12px;
  margin-bottom: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.logo {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
}

.header-controls {
  display: flex;
  gap: 6px;
}

.icon-button {
  background: var(--bg-color);
  border: 2px solid var(--text-muted);
  border-radius: 30px;
  color: var(--text-primary);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
}

.icon-button:active {
  transform: scale(0.95);
}

.mode-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  min-height: 24px;
}

.date-text {
  font-size: 16px;
  font-weight: bold;
  color: var(--text-muted);
}

.badge {
  font-size: 12px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 12px;
  color: #000;
}

.test-badge {
  background-color: #ffd214;
}

.okawari-badge {
  background-color: #92e0ff;
}

.tutorial-badge {
  background-color: #ff99f0;
}

/* --------------------------------------------------------------------------
   3. ガイドメッセージバー (練習用・ヒント解説用)
   -------------------------------------------------------------------------- */
.guide-bar {
  background-color: #1a3a6e;
  color: #ffffff;
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
  margin-bottom: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.35);
  animation: slideDown 0.3s ease;
}

.guide-bar span {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  color: #ffffff;
}

@keyframes slideDown {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* --------------------------------------------------------------------------
   4. ゲーム盤面レイアウト
   -------------------------------------------------------------------------- */
.game-board {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 上部エリア（山札 2枠 ＋ 組札 4枠） */
.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 2px;
}

.stock-container {
  display: flex;
  gap: 8px;
}

.foundations-container {
  display: flex;
  gap: 6px;
}

/* カードスロット共通設計 */
.card-slot {
  width: var(--card-width);
  height: var(--card-height);
  max-width: var(--card-max-width);
  max-height: var(--card-max-height);
  border-radius: var(--card-radius);
  position: relative;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.4);
}

/* 空きスロット */
.empty-slot {
  border: 2px dashed rgba(255, 255, 255, 0.35);
  background-color: rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 組札マークのプレースホルダ（巨大表示） */
.suit-placeholder {
  font-size: 28px;
  opacity: 0.2;
}
.suit-heart, .suit-diamond { color: var(--color-red-suit); }
.suit-spade, .suit-club { color: #fff; }

/* --------------------------------------------------------------------------
   5. カードのデザイン
   -------------------------------------------------------------------------- */
.card {
  width: 100%;
  height: 100%;
  border-radius: var(--card-radius);
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
  transition: transform 0.15s ease-out, box-shadow 0.15s;
  cursor: pointer;
  overflow: hidden;
}

/* 表向きカード */
.card-front {
  background-color: var(--card-bg-front);
  color: #000;
  border: 1.5px solid #ccc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 6px;
}

/* 色覚対応マーク */
.card[data-suit="H"], .card[data-suit="D"] {
  color: var(--color-red-suit);
}
.card[data-suit="S"], .card[data-suit="C"] {
  color: var(--color-black-suit);
}

/* カードの文字・マークデザイン（シニア向け超巨大） */
.card-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.0;
}

.card-num {
  font-size: 20px;
  font-weight: 900;
}

.card-top-suit {
  font-size: 15px;
  margin-top: -2px;
}

/* カード中央の巨大マーク */
.card-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  font-size: 32px;
  line-height: 1.0;
}

/* 裏向きカード */
.card-back {
  background-color: var(--card-bg-back);
  background-image: var(--card-back-pattern);
  background-size: 12px 12px;
  background-position: 0 0, 6px 6px;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 5px rgba(0,0,0,0.4);
}

/* 山札の裏スロット */
.card-back-slot {
  background-color: var(--card-bg-back);
  background-image: var(--card-back-pattern);
  background-size: 12px 12px;
  border: 2px solid #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.deck-counter {
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   6. 操作用ハイライト・アニメーション
   -------------------------------------------------------------------------- */
/* カード選択中（太い紺色の枠線＋強めの浮き出し） */
.card.selected {
  outline: 4.5px solid #0d1e3d;
  outline-offset: -2px;
  transform: translateY(-8px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.45);
  z-index: 100 !important;
}

/* 移動可能先の枠線表示（太い緑の破線＋うっすら緑の背景） */
.card-slot.targetable {
  position: relative;
}
.card-slot.targetable::after, .card.targetable::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 4.5px dashed #008f39;
  border-radius: calc(var(--card-radius) + 2px);
  pointer-events: none;
  z-index: 90;
}
.card-slot.targetable {
  background-color: rgba(0, 255, 100, 0.15) !important;
}
.card.targetable::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 255, 100, 0.15);
  border-radius: var(--card-radius);
  pointer-events: none;
  z-index: 89;
}

/* ドラッグ＆ドロップ用スタイル */
.dragging-source {
  opacity: 0.35 !important;
  box-shadow: none !important;
}

#drag-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.drag-clone-wrapper {
  position: absolute;
  pointer-events: none;
  transition: transform 0.15s ease-out; /* ドラッグ失敗時等に戻るアニメーション用 */
}

/* 指マーク / 矢印マーク指示インジケーター */
.guide-indicator {
  position: absolute;
  z-index: 1000;
  font-size: 26px;
  pointer-events: none;
  animation: guideFloat 1.2s ease-in-out infinite alternate;
}

@keyframes guideFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* --------------------------------------------------------------------------
   7. 場札エリア（7列）
   -------------------------------------------------------------------------- */
.tableau-container {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  flex: 1;
  min-height: 320px;
  padding: 4px 2px;
}

.tableau-column {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  border-radius: var(--card-radius);
  background-color: rgba(255, 255, 255, 0.03);
}

.tableau-column .card-wrapper {
  position: absolute;
  width: 100%;
  height: var(--card-height);
  max-height: var(--card-max-height);
}

/* --------------------------------------------------------------------------
   8. 詰み・ヒントのやさしいメッセージ案内
   -------------------------------------------------------------------------- */
.toast-bar {
  background-color: #1a4d2e;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
  margin: 4px 0;
  animation: fadeIn 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.toast-bar span {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 初回無操作ガイド吹き出し (ツールチップ) */
.first-step-tooltip {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffd214;
  color: #072a15;
  padding: 12px 18px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
  z-index: 150;
  text-align: center;
  white-space: nowrap;
  animation: bounce 2s infinite;
}

.first-step-tooltip::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px 8px 0;
  border-style: solid;
  border-color: #ffd214 transparent;
  display: block;
  width: 0;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -10px); }
  60% { transform: translate(-50%, -5px); }
}

/* --------------------------------------------------------------------------
   9. フッター操作ボタン
   -------------------------------------------------------------------------- */
.action-footer {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.footer-button {
  height: 56px;
  border-radius: 16px;
  border: none;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: transform 0.1s, box-shadow 0.1s;
}

.footer-button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 3px rgba(0,0,0,0.3);
}

.btn-icon {
  font-size: 18px;
}

.btn-label {
  font-size: 11px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-primary-text);
  border: 2px solid #fff;
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-secondary-text);
  border: 1px solid #ccc;
}

.btn-danger {
  background-color: var(--color-danger);
  color: var(--color-danger-text);
  grid-column: span 3;
  height: 48px;
  border: 1px solid #ffa3a3;
}

/* --------------------------------------------------------------------------
   10. モーダル共通・あそびかたスライド・カレンダー
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 16px;
}

.modal-content {
  background-color: #123f24;
  border: 4px solid var(--color-primary);
  border-radius: 24px;
  width: 100%;
  max-width: 420px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  animation: scaleIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

@keyframes scaleIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.clear-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.clear-message {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.title-badge-container {
  background-color: rgba(255,255,255,0.08);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 15px;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.15);
}
.title-badge-container strong {
  color: var(--color-primary);
  font-size: 18px;
}

/* はじめて画面 (Welcome Modal) */
.welcome-content {
  padding: 30px 24px;
}
.welcome-title {
  font-size: 26px;
  color: var(--color-primary);
  margin-bottom: 16px;
}
.welcome-text {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.welcome-choices {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.btn-tutorial-start {
  background-color: #ff99f0;
  color: #3b0032;
  border: 2px solid #fff;
  font-weight: 900;
  font-size: 18px;
}

/* あそびかたスライド */
.rules-content {
  max-width: 440px;
}
.rules-modal-title {
  font-size: 22px;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.rules-slides {
  background-color: rgba(0,0,0,0.2);
  border-radius: 16px;
  padding: 16px 12px;
  min-height: 240px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rules-slide h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #fff;
}
.slide-desc {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 14px;
  text-align: left;
}

/* あそびかた図解カード */
.diagram-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  justify-content: center;
}
.diagram-box {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.diagram-box.single {
  grid-column: span 2;
  padding: 16px;
}
.diagram-tag {
  font-size: 12px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 8px;
  margin-bottom: 8px;
}
.diagram-tag.ok {
  background-color: #2e7d32;
  color: #fff;
}
.diagram-tag.ng {
  background-color: #c62828;
  color: #fff;
}
.mini-cards {
  display: flex;
  gap: 6px;
}
.mini-card {
  width: 48px;
  height: 72px;
  background-color: #fff;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.mini-card.red { color: var(--color-red-suit); }
.mini-card.black { color: var(--color-black-suit); }
.mini-card.spade { color: var(--color-black-suit); }
.mini-card.heart { color: var(--color-red-suit); }

.mini-deck-diagram {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.mini-deck-back {
  font-size: 36px;
}
.arrow-right {
  font-size: 20px;
  color: var(--color-primary);
}
.diagram-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.rules-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.rules-nav-btn {
  background-color: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}
.rules-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.rules-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 📅 カレンダー（スタンプ帳） */
.calendar-content {
  max-width: 440px;
  padding: 20px 16px;
}
.calendar-modal-title {
  font-size: 22px;
  color: var(--color-primary);
  margin-bottom: 14px;
}
.calendar-month-selector {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 10px;
}
.cal-nav-btn {
  background-color: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}
.cal-month-display {
  font-size: 18px;
  font-weight: bold;
}
.calendar-grid-container {
  background-color: rgba(0,0,0,0.25);
  border-radius: 16px;
  padding: 12px 8px;
  margin-bottom: 12px;
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: bold;
  font-size: 13px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 4px;
}
.calendar-weekdays .sun { color: #ffb3b3; }
.calendar-weekdays .sat { color: #b3d9ff; }

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 6px;
}
.calendar-day-slot {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  font-size: 13px;
  font-weight: bold;
  border-radius: 8px;
}
.calendar-day-slot.prev-next-month {
  opacity: 0.25;
}
.calendar-day-stamp {
  font-size: 16px;
  position: absolute;
  bottom: 0;
  line-height: 1.0;
}
.calendar-day-slot.today-cell {
  background-color: rgba(255,255,255,0.1);
  box-shadow: inset 0 0 0 2px var(--color-primary);
}

.stamp-legend {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: left;
  padding: 0 10px;
  margin-bottom: 16px;
}

/* スタンプお祝い */
.stamp-container {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.stamp {
  background-color: rgba(255, 210, 20, 0.15);
  border: 3px dashed var(--color-primary);
  padding: 12px 24px;
  border-radius: 50%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  transform: rotate(-5deg);
}
.stamp-icon {
  font-size: 32px;
}
.stamp-label {
  font-size: 12px;
  font-weight: bold;
  color: var(--color-primary);
  margin-top: 4px;
}

.modal-stats {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 16px;
}
.modal-stats strong {
  font-size: 24px;
  color: var(--color-primary);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-button {
  width: 100%;
  height: 52px;
  border-radius: 16px;
  border: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.btn-share {
  background-color: var(--color-primary);
  color: var(--color-primary-text);
}

.sns-share-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sns-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 44px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  box-shadow: 0 3px 5px rgba(0,0,0,0.2);
}

.x-btn {
  background-color: #000000;
  border: 1px solid #333;
}

.line-btn {
  background-color: #06c755;
}

.btn-okawari {
  background-color: var(--color-secondary);
  color: var(--color-secondary-text);
  border: 1px solid #ccc;
  margin-top: 8px;
}

/* おかわりトップ誘導 */
.more-play-top-container {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.top-okawari-btn {
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px dashed rgba(255, 255, 255, 0.5);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

.top-okawari-btn:active {
  background-color: rgba(255, 255, 255, 0.25);
}

/* --------------------------------------------------------------------------
   11. 広告プレースホルダのデザイン
   -------------------------------------------------------------------------- */
.ad-placeholder-container {
  margin: 16px 0;
  text-align: center;
}

.ad-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-align: left;
}

.ad-placeholder-box {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
}

.ad-placeholder-box span {
  font-size: 12px;
  color: var(--text-muted);
}

.clear-ad {
  margin: 12px 0;
}

.bottom-ad {
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   12. レスポンシブ調整
   -------------------------------------------------------------------------- */
@media (min-width: 500px) {
  :root {
    --card-width: 60px;
    --card-height: 90px;
  }
}
