/*
 Theme Name:   Lightning Child (Trio+)
 Template:     lightning
 Description:  Trio+ 子テーマ（See/Know/Think 用カスタムスタイル）
 Version:      1.0
*/

/* ==============================
   共通レイアウト
   ============================== */
#chizuland-root {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 12px;
}

/* ==============================
   切替ボタン
   ============================== */
.cl-controls {
  text-align: center;
  margin: 0 0 16px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.cl-btn {
  padding: 8px 16px;
  border: 1px solid #f59e0b;
  background: #fff7ed;
  color: #b45309;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}
.cl-btn:hover { background: #fef3c7; }
.cl-btn.active { background: #f59e0b; color: #fff; }

/* 県名ラベルON/OFF */
.cl-label-toggle { text-align:center; margin: 8px 0 20px; }

/* ==============================
   ブロック一覧
   ============================== */
.cl-blocks {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, 1fr);
}
@media (max-width: 1024px) {
  .cl-blocks { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .cl-blocks { grid-template-columns: repeat(2, 1fr); }
}

.cl-block {
  border: none;
  border-radius: 12px;
  background: #fff;
  padding: 0;
  transition: box-shadow .15s ease, transform .15s ease;
}
.cl-block:hover {
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

.cl-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 10px;
  transition: background 0.2s ease;
}
.cl-card:hover {
  background: #fff7ed;
  cursor: pointer;
}

/* アイコン統一 */
.cl-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cl-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.cl-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cl-capital {
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cl-capital-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

/* ==============================
   地図領域
   ============================== */
#jpmap { display:none; text-align:center; }
#jpmap svg path {
  fill: #EBECED;
  stroke: #FFFFFF;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill .15s;
}
#jpmap svg path:hover { fill: #f59e0b; }
#jpmap .label {
  display: none;
  font-size: 10px;
  pointer-events: none;
  fill: #333;
  text-anchor: middle;
}

/* ラベル（県名表示用） */
.label {
  font-size: 12px;
  fill: #333;
  text-anchor: middle;
  display: none;
  pointer-events: none;
}

/* ==============================
   学習ページ
   ============================== */
.cl-detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 12px;
}
.cl-detail-head .cl-icon img {
  width: 40px;
  height: 40px;
}

/* タブUI */
.cl-tabs { display:flex; gap:8px; margin:12px 0; }
.cl-tab-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  cursor: pointer;
}
.cl-tab-btn.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.cl-tab { display:none; }
.cl-tab.active { display:block; }

/* 観光ギャラリー */
.cl-gallery {
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:10px;
}
.cl-gallery img {
  width:100%;
  height:auto;
  border-radius:10px;
  border:1px solid #e5e7eb;
}

/* 一覧へ戻る */
.cl-back { display:flex; justify-content:center; margin:24px 0; }
.cl-back .btn {
  padding:12px 22px;
  background:#10b981;
  color:#fff;
  font-weight:700;
  border:none;
  border-radius:10px;
  cursor:pointer;
}
.cl-back .btn:hover { filter:brightness(0.95); }

/* ==============================
   地域見出し
   ============================== */
.cl-area {
  font-size:18px;
  font-weight:bold;
  margin:20px 0 10px;
  color:#333;
}
.cl-area-blocks {
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap:12px;
}
@media (max-width: 1024px){
  .cl-area-blocks { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px){
  .cl-area-blocks { grid-template-columns: repeat(2, 1fr); }
}

.cl-lead { font-size:16px; margin:10px 0; color:#444; }
.cl-basic { list-style:none; padding:0; margin:10px 0 20px; }
.cl-basic li { margin:4px 0; font-size:14px; }

/* ==============================
   Prefセクション（学習ページ）
   ============================== */
.pref-section {
  background: none;
  color: #333;
  padding: 16px;
  margin-bottom: 16px;
  line-height: 1.7;
}
@media (max-width: 767px) {
  .pref-section {
    background: #2563eb;
    color: #fff;
    border-radius: 6px;
  }
}

/* Prefギャラリー */
.pref-gallery {
  background: none;
  padding: 0;
  display: grid;
  gap: 12px;
}
.pref-gallery img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

/* ==============================
   Trio+ トップページ
   ============================== */
.trio-top-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 16px;
}
.trio-section {
  text-align: center;
  background: #fff;
  border: 2px solid #eee;
  border-radius: 16px;
  padding: 20px;
  transition: transform 0.2s, border-color 0.2s;
}
.trio-section:hover {
  transform: translateY(-4px);
  border-color: #f59e0b;
}
.trio-section img {
  max-width: 120px;
  margin-bottom: 12px;
}
.trio-section h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.trio-section p {
  font-size: 14px;
  color: #555;
  margin-bottom: 16px;
}

/* トップページボタン */
.trio-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #f59e0b;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s;
}
.trio-btn:hover { background: #d97706; }

/* スマホ対応：トップ3カラム → 縦並び */
@media (max-width: 768px) {
  .trio-top-sections { display: block !important; }
  .trio-top-sections .trio-section {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin-bottom: 16px;
  }
}
/* 観光ギャラリー：スマホは1カラム強制 */
@media (max-width: 767px) {
  .cl-gallery { grid-template-columns: 1fr !important; }
}

/* ==============================
   地図表示・クイズUI
   ============================== */
svg path {
  fill: #e5e7eb;
  stroke: #444;
  stroke-width: 1;
}

/* 地図切替ボタン */
.map-controls button {
  padding: 6px 12px;
  margin: 2px;
  border: 1px solid #999;
  background: #fff;
  cursor: pointer;
  border-radius: 4px;
}
.map-controls button.active {
  background: #f59e0b !important;
  color: #fff !important;
  border-color: #d97706 !important;
  font-weight: 700;
}

/* 地図エリア */
#map-area svg {
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  max-width: none;
}

/* クリック選択強調 */
svg path.is-active {
  fill: #f59e0b !important;
  stroke: #fff !important;
  stroke-width: 2px !important;
}

/* 県名リスト */
.pref-list-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(8, 1fr);
}
@media (max-width: 768px) {
  .pref-list-grid { grid-template-columns: repeat(4, 1fr); }
}
.pref-list-grid button {
  padding: 6px 4px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.pref-list-grid button:hover { background: #fef3c7; }
.pref-list-grid button.is-active {
  background: #f59e0b !important;
  color: #fff !important;
  border-color: #d97706 !important;
  font-weight: 700;
}

/* 設問部分 */
.quiz-questions { margin-top: 12px; }
.quiz-no { color: #b45309; font-weight: 700; }
.quiz-row { display: flex; align-items: center; margin: 8px 0; }
.quiz-col { padding: 4px; }

/* ポップアップ */
.quiz-popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.quiz-popup .popup-content {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
}
.quiz-popup.correct .popup-content { border: 2px solid green; }
.quiz-popup.incorrect .popup-content { border: 2px solid red; }

/* 結果画面（8カラム構成） */
.result-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 16px 0;
}
.result-row {
  display: grid;
  grid-template-columns: 7fr 1fr; /* 設問:結果 = 7:1 */
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border-bottom: 1px solid #ddd;
}
.result-question { font-size: 14px; }
.result-mark {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}
.result-comment {
  margin-top: 16px;
  font-weight: bold;
  font-size: 16px;
}
.trivia-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.trivia-popup .popup-inner {
  background: #fff;
  border-radius: 12px;
  max-width: 600px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}
.trivia-popup .trivia-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 12px;
}
.trivia-popup .popup-close {
  margin-top: 16px;
  padding: 6px 18px;
  border: none;
  background: #f59e0b;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}
.pref-list-area .is-active {
  background: #fff7ed;
  color: #b45309;
  font-weight: bold;
  border: 1px solid #f59e0b;
}/* =========================
   雑学カテゴリ（trivia.js用）
========================= */
.trivia-controls {
  text-align: center;
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.trivia-btn {
  background: #fff;
  border: 1px solid #f59e0b;
  color: #b45309;
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  font-weight: 700;
}
.trivia-btn.active {
  background: #f59e0b;
  color: #fff;
}
.trivia-toggle {
  display: flex;
  align-items: center;
  font-size: 14px;
  gap: 4px;
}
.trivia-controls {
  text-align: center;
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.trivia-btn {
  background: #fff;
  border: 1px solid #f59e0b;
  color: #b45309;
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  font-weight: 700;
}
.trivia-btn.active {
  background: #f59e0b;
  color: #fff;
}
.pref-label {
  fill: #333;
  font-size: 10px;
  pointer-events: none;
  user-select: none;
}
.trivia-detail-box {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fffaf3;
}
.trivia-detail-box img {
  max-width: 100%;
  border-radius: 8px;
  margin: 8px 0;
}
.trivia-detail-box h3 {
  color: #b45309;
  margin-bottom: 4px;
}
/* ==============================
   Trio+ クイズUI（20251011H）
   ============================== */

/* --- クイズ全体 --- */
#quiz-play-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-bottom: 40px;
}

/* --- ヘッダー全体（タイトル＋設問＋ボタン） --- */
.quiz-header {
  width: 90%;
  max-width: 820px;
  margin: 0 auto 8px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* --- タイトル --- */
.quiz-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e3a8a;
  line-height: 1.3;
  margin-bottom: 2px;
}

/* --- 設問ボックス --- */
.quiz-question {
  width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.quiz-no {
  font-weight: bold;
  color: #f97316;
}

.quiz-description {
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
  margin-bottom: 4px;
  word-break: break-word;
}

/* --- 回答ボタン --- */
.quiz-answer-btn {
  background: #f97316;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 30px;
  font-size: 1.05em;
  cursor: pointer;
  opacity: 0.9;
  transition: all 0.2s ease;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.quiz-answer-btn:hover:enabled {
  opacity: 1;
  background: #ea580c;
  transform: translateY(-1px);
}
.quiz-answer-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --- 地図エリア --- */
#map-area {
  width: 90% !important;
  max-width: 900px !important;
  margin: 0 auto 30px auto !important;
  text-align: center;
}
#map-area svg {
  width: 100%;
  height: auto;
  max-height: 560px;
  display: inline-block;
}

/* --- 正誤ポップアップ --- */
.quiz-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.quiz-popup .popup-content {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}
.quiz-popup.correct .popup-content { border: 2px solid #16a34a; }
.quiz-popup.incorrect .popup-content { border: 2px solid #dc2626; }

/* --- 結果画面 --- */
#quiz-result {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 16px;
  font-size: 1rem;
  text-align: center;
}
.result-title {
  font-size: 1.5rem;
  font-weight: 700;
  border-bottom: 2px solid #1e40af;
  padding-bottom: 4px;
  margin-bottom: 20px;
}
.result-summary {
  font-weight: bold;
  margin-bottom: 16px;
}
.result-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.result-row {
  display: grid;
  grid-template-columns: 1fr auto 40px;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  padding: 6px 0;
}
.result-question {
  font-size: 0.95rem;
  text-align: left;
}
.result-mark {
  width: 40px;
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
}
.result-mark.correct { color: #dc2626; }
.result-mark.wrong { color: #2563eb; }
.result-comment {
  margin-top: 12px;
  font-weight: bold;
  font-size: 1.1rem;
}
.result-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.result-buttons button {
  background: #f97316;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}
.result-buttons button:hover {
  background: #ea580c;
}

/* --- スマホ対応 --- */
@media (max-width: 640px) {
  .quiz-header { width: 95%; gap: 8px; }
  .quiz-title { font-size: 1.2rem; }
  .quiz-question { padding: 12px; }
  .quiz-description { font-size: 0.95rem; }
  .quiz-answer-btn {
    width: 100%;
    font-size: 1rem;
    margin-top: 4px;
  }
  .result-question {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80vw;
  }
}

/* ==============================
   Trio+｜Pref-Quiz 正誤ポップアップUI（再現修正・地図覆い解消）
   ============================== */

/* 全画面オーバーレイ：枠は付けない */
.quiz-popup{
  position: fixed;
  inset: 0; /* top:0;right:0;bottom:0;left:0; と同義 */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.25); /* 背景を薄く暗く */
  z-index: 9999;
  border: none;          /* ← 枠は付けない（これが今回の原因） */
  box-shadow: none;      /* 念のため無効化 */
}

/* 実際のダイアログ本体 */
.quiz-popup .popup-content{
  width: min(92vw, 520px);
  background: #fff;
  padding: 22px 26px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  border: 3px solid transparent;  /* 枠はここにだけ付ける */
}

/* 成否で枠色を切替 */
.quiz-popup.correct   .popup-content{ border-color:#16a34a; }
.quiz-popup.incorrect .popup-content{ border-color:#dc2626; }

/* 見出し（〇／×＋「正解！」） */
.quiz-popup .popup-title{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 4px 0 14px;
  font-weight: 700;
  font-size: 1.6rem;
}

/* 〇／× を大きく強調 */
.quiz-popup .popup-title .mark{ font-size: 2.2rem; line-height: 1; }
.quiz-popup.correct   .popup-title .mark{ color:#16a34a; }
.quiz-popup.incorrect .popup-title .mark{ color:#dc2626; }

/* 本文 */
.quiz-popup .popup-content p{
  margin: 10px 0;
  line-height: 1.7;
}
.quiz-popup .popup-content strong{ color:#111; }

/* 次の問題ボタン */
.quiz-next-btn{
  margin-top: 16px;
  background: #2563eb;
  color: #fff;
  border: 0;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: .95rem;
}
.quiz-next-btn:hover{ background:#1e40af; }

/* スマホ最適化 */
@media (max-width:480px){
  .quiz-popup .popup-content{ width:min(92vw, 360px); padding:18px 20px; }
  .quiz-popup .popup-title{ font-size:1.4rem; }
  .quiz-popup .popup-title .mark{ font-size:2rem; }
}
/* ==============================
   Trio+｜Knowページ：タイトル選択ハイライト
   ============================== */

.quiz-title-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 8px 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-title-item:hover {
  background-color: #fef9c3;
  border-color: #facc15;
}

/* ✅ 選択中タイトル（is-activeクラス） */
.quiz-title-item.is-active {
  background-color: #fef3c7;
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px #f59e0b33;
}

/* ==============================
   Trio+｜スマホ版 質問カードを 10/10 版に復元（優先上書き）
   ============================== */
@media (max-width: 640px) {

  /* カード（横並び：左=問題番号 / 中央=質問文 / 右=ボタン） */
  .quiz-question{
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 14px;
    row-gap: 10px;
    text-align: left !important;
    width: 92% !important;
    margin: 0 auto;
    padding: 14px 16px;
  }

  /* 問題番号（左） */
  .quiz-no{
    font-weight: 700;
    color: #f97316;
    text-align: left !important;
    margin: 0;
  }

  /* 質問文（中央） */
  .quiz-description{
    font-size: 1.05rem;
    line-height: 1.7;
    color:#111;
    margin: 0;
    white-space: normal !important;
    writing-mode: horizontal-tb !important;
  }

  /* ボタン（右）—“テキスト幅にフィット”させる */
  .quiz-answer-btn{
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: unset !important;  /* ← 広がり防止 */
    max-width: unset !important;
    padding: 10px 18px;
    font-size: 1rem;
    margin: 0;
  }
}
/* ==============================
   Trio+｜Knowカテゴリボタン（A案＋スマホ3カラム対応）
   ============================== */

/* 共通デザイン（PC・スマホ共通） */
.quiz-categories {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px auto;
  padding: 0;
  max-width: 600px;
}

.quiz-category {
  flex: 1 1 30%;
  max-width: 180px;
  min-width: 120px;
  background: #fff;
  border: 2px solid #f97316;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding: 10px 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #333;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  touch-action: manipulation;
}

.quiz-category:hover {
  background: #fff7ed;
  border-color: #f97316;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.quiz-category:active {
  background: #fef3c7;
  border-color: #ea580c;
  transform: translateY(0);
}

.quiz-category.is-active {
  background: #fff0d8;
  border-color: #ea580c;
  color: #000;
  box-shadow: 0 0 0 3px #f59e0b33;
}

/* ==============================
   スマホ3カラム対応（max-width: 640px）
   ============================== */
@media (max-width: 640px) {
  .quiz-categories {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
    max-width: 100%;
    padding: 0 10px;
  }
  .quiz-category {
    flex: 1 1 32%;
    max-width: none;
    font-size: 0.95rem;
    padding: 8px 0;
    min-height: 48px;
    border-radius: 10px;
  }
}
/* ================================
   Trio+ トップページ 共通スタイル
================================ */
.trio-section {
  padding: 60px 20px;
  text-align: center;
}

.trio-section.bg-light {
  background: #f9fafc;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 24px;
  color: #333;
  font-weight: 700;
}

.lead {
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555;
  line-height: 1.8;
}

/* --- Trioカード --- */
.trio-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.trio-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 24px;
  width: 280px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.trio-card img {
  width: 80px;
  height: auto;
  margin-bottom: 12px;
}

.trio-card h3 {
  color: #333;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.trio-card p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.btn-trio {
  display: inline-block;
  background: #f59e0b;
  color: #fff;
  padding: 10px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
}

.btn-trio:hover {
  background: #d97706;
}

/* --- 比較表 --- */
.compare-table {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.compare-table .col {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  width: 260px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.compare-table h4 {
  color: #f59e0b;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.compare-table ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Think 導線 --- */
#think .btn-trio.large {
  padding: 14px 28px;
  font-size: 1.1rem;
  margin-top: 20px;
}

/* --- News --- */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 600px;
  text-align: left;
}

.news-list li {
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
  font-size: 0.95rem;
}

.news-list .date {
  color: #f59e0b;
  margin-right: 10px;
  font-weight: 600;
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
  .trio-cards {
    flex-direction: column;
    align-items: center;
  }
  .compare-table {
    flex-direction: column;
    align-items: center;
  }
}
/* ================================
   Think セクションのみオレンジ枠強調
   他セクションは枠なし
================================ */
.trio-section {
  border: none !important;
  box-shadow: none !important;
}

#think.trio-section {
  border: 2px solid #f59e0b;
  border-radius: 16px;
  padding: 60px 20px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}

/* オレンジボタンとの一体感を強調 */
#think .btn-trio.large {
  background: #f59e0b;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.3);
}
#think .btn-trio.large:hover {
  background: #d97706;
}
/* ================================
   Trioカード 選択・タップ反応（スマホ最適化）
================================ */
.trio-card {
  background: #fff;
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 24px;
  width: 280px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
  cursor: pointer;
  touch-action: manipulation;
}

/* PCホバー時 */
@media (hover: hover) and (pointer: fine) {
  .trio-card:hover {
    border-color: #f59e0b;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2);
    transform: translateY(-3px);
  }
  .trio-card:hover .btn-trio {
    background: #f59e0b;
    color: #fff;
  }
}

/* スマホタップ時（active状態） */
.trio-card:active {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25);
  transform: scale(0.98);
}

/* クリック or タップ後の選択保持用クラス */
.trio-card.active {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

/* ボタン強調 */
.btn-trio {
  display: inline-block;
  background: #f59e0b;
  color: #fff;
  padding: 10px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-trio:active {
  background: #d97706;
  transform: scale(0.97);
}

/* スマホ1カラム配置 */
@media (max-width: 768px) {
  .trio-cards {
    flex-direction: column;
    align-items: center;
  }
  .trio-card {
    width: 90%;
    max-width: 360px;
  }
}
/* ================================
   Trio+とは（理念文 左寄せ）
================================ */
#about-trio .lead {
  text-align: left;
  max-width: 800px;
  margin: 0 auto 60px;
  color: #444;
  line-height: 1.9;
  font-size: 1rem;
}

#about-trio .lead strong {
  display: block;
  color: #f59e0b;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
/* ================================
   Trioカード内のボタン整列・サイズ調整
================================ */
.trio-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.trio-card {
  flex: 1 1 300px;
  max-width: 320px;
  text-align: center;
  padding: 24px;
  border: 2px solid transparent;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

/* カード内画像・テキスト整列 */
.trio-card img {
  display: block;
  margin: 0 auto 12px;
}

/* ボタン中央寄せ＋スマホ時サイズ調整 */
.btn-trio {
  display: block;
  margin: 16px auto 0;
  background: #f59e0b;
  color: #fff;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 30px;
  padding: 10px 18px;
  font-size: 0.95rem;
  width: fit-content;
  min-width: 120px;
  transition: all 0.2s ease;
}

/* ホバー（PC） */
@media (hover: hover) {
  .btn-trio:hover {
    background: #d97706;
    transform: translateY(-2px);
  }
}

/* スマホ最適化：ボタン大きすぎ対策 */
@media (max-width: 768px) {
  .btn-trio {
    font-size: 0.9rem;
    padding: 8px 16px;
    min-width: 140px;
  }
  .trio-card {
    max-width: 360px;
    margin: 0 auto;
  }
}