/* ============================================= */
/* ▼ 表示制御（非表示）                         */
/* ============================================= */
.nodisplay {
  display: none;
}

/* ============================================= */
/* ▼ カード全体のスタイル                       */
/* ============================================= */
.voice-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1em;
  margin-bottom: 1.5em;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.voice-card:hover {
  transform: translateY(-2px); /* ホバー時に少し浮かせる演出 */
}

/* ============================================= */
/* ▼ カード内のテキスト要素                     */
/* ============================================= */
.voice-card .voice-question {
  font-weight: bold;
  font-size: 0.95em;
  color: #555;
  margin-bottom: 0.5em;
}

.voice-card .voice-content {
  font-size: 1.1em;
  line-height: 1.6;
  color: #333;
}

.voice-card .voice-class-label {
  font-size: 0.85em;
  font-weight: bold;
  color: #777;
  margin-bottom: 0.3em;
}

.voice-card .card-footer {
  display: flex;
  justify-content: flex-end;
  font-style: italic;
  margin-top: 0.5em;
  color: #555;
}

@media screen and (max-width: 600px) {
  .voice-card .card-footer {
    font-size: 0.8em; /* スマホ表示時に少し小さく */
  }
}

/* ============================================= */
/* ▼ クラス別カラー装飾（年齢別の視認性向上）   */
/* ============================================= */
.voice-card.shirokuma {
  border-left: 6px solid #81d4fa;     /* 水色（2歳児） */
  background-color: #e3f2fd;
}

.voice-card.guri {
  border-left: 6px solid #aed581;     /* 黄緑（3歳児） */
  background-color: #f1f8e9;
}

.voice-card.kon {
  border-left: 6px solid #ffb74d;     /* オレンジ（4歳児） */
  background-color: #fff3e0;
}

.voice-card.elmer {
  border-left: 6px solid #4db6ac;     /* 青緑：落ち着きと成長のバランス */
  background-color: #e0f2f1;          /* 淡い青緑：水色と差別化しつつ爽やか */
}

.voice-card.graduate {
  border-left: 6px solid #9575cd;     /* 紫系：落ち着きと未来感 */
  background-color: #ede7f6;          /* 淡いラベンダー：優しさと卒園の余韻 */
}


/* ============================================= */
/* ▼ スクロールコンテナ設定（カード表示領域）   */
/* ============================================= */
.card-container {
  height: 70vh;
  overflow-y: auto;                   /* 縦スクロール有効 */
  scroll-behavior: smooth;            /* スムーズスクロール */
  position: relative;
  padding: 16px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  backdrop-filter: blur(6px);         /* 背景ぼかし効果 */
  transition: background-color 0.3s ease;

  /* Firefox用スクロールバー設定（初期） */
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

/* ============================================= */
/* ▼ スクロールバーの装飾（Chrome/Safari対応）  */
/* ============================================= */
.card-container {
  scrollbar-width: thin;
  scrollbar-color: rgba(100,100,100,0.4) transparent;
}

.card-container::-webkit-scrollbar {
  width: 8px;
}

.card-container::-webkit-scrollbar-thumb {
  background-color: rgba(100, 100, 100, 0.4);
  border-radius: 4px;
}