/* ================================================================
   /choryoku/ 耳年齢チェック スタイル
   ================================================================ */

body { font-size: 0.9rem; }
.btn { font-size: 0.85rem; }

.ch-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.ch-warn {
  background: #fffdf5;
  border-color: #ffe0a3;
}

/* ===== ボタン ===== */
.ch-btn-main {
  background: #1a237e; color: #fff; font-weight: 700;
  border-radius: 12px; padding: 14px;
}
.ch-btn-main:hover { background: #283593; color: #fff; }

.ch-btn-sub {
  background: #f0f2f5; color: #333; font-weight: 700;
  border-radius: 12px; padding: 12px;
}
.ch-btn-sub:hover { background: #e4e7eb; color: #333; }

.ch-btn-share {
  background: #000; color: #fff; font-weight: 700;
  border-radius: 12px; padding: 14px;
}
.ch-btn-share:hover { background: #222; color: #fff; }

/* ===== HUD ===== */
.ch-hud { display: flex; gap: 8px; margin: 12px 0; }
.ch-hud-box {
  flex: 1; background: #f7f8fa; border-radius: 12px;
  padding: 10px 4px; text-align: center;
}
.ch-hud-val { font-size: 1.5rem; font-weight: 900; color: #1a237e; line-height: 1.1; }
.ch-hud-lbl { font-size: 10px; color: #888; }

/* ===== 進捗バー ===== */
.ch-progress-wrap { margin: 10px 0 16px; }
.ch-progress-bg { height: 8px; background: #eceff1; border-radius: 4px; overflow: hidden; }
.ch-progress-fill {
  height: 100%; background: linear-gradient(90deg, #3949ab, #e65100);
  transition: width 0.3s ease;
}

/* ===== 3区間インジケータ =====
   3つの見た目は完全に同一に保つこと。
   有音区間だけ色や動きが違うと、耳ではなく目で正解が分かってしまう。 */
.ch-interval-row { display: flex; gap: 10px; margin: 20px 0; }
.ch-interval {
  flex: 1; height: 72px; border-radius: 14px;
  background: #eceff1; border: 2px solid #cfd8dc;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 900; color: #90a4ae;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ch-interval.active {
  background: #1a237e; border-color: #1a237e; color: #fff;
}

/* ===== 解答ボタン ===== */
.ch-answer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ch-ans-btn {
  background: #fff; border: 2px solid #1a237e; color: #1a237e;
  border-radius: 14px; padding: 16px 4px;
  font-size: 0.95rem; font-weight: 700;
}
.ch-ans-btn:active { background: #1a237e; color: #fff; }

/* ===== 音量合わせのインジケータ ===== */
.ch-indicator {
  font-size: 3rem; margin: 16px 0;
  animation: ch-pulse 1.2s ease-in-out infinite;
}
@keyframes ch-pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.12); }
}

/* ===== 結果 ===== */
.ch-rank-badge {
  display: inline-block; padding: 6px 18px; border-radius: 999px;
  font-weight: 900; font-size: 1rem;
}
.ch-rank-bar-bg {
  height: 12px; background: #eceff1; border-radius: 6px; overflow: hidden;
}
.ch-rank-bar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, #9e9e9e, #388e3c, #e65100, #c62828, #6a1b9a);
  transition: width 0.8s ease;
}
.ch-rank-markers {
  display: flex; justify-content: space-between;
  font-size: 10px; color: #aaa; margin-top: 4px;
}
.ch-comment {
  font-size: 0.85rem; line-height: 1.8; color: #444; margin-top: 12px;
}

/* ===== SEO記事セクション ===== */
.ch-section-h {
  font-size: 1.1rem; color: #1a237e;
  border-left: 4px solid #3949ab; padding-left: 10px;
}
