/* =====================================================================
   トレキャスト ゲーミングデザインシステム v2
   設計原則: 明るく・楽しく・安心感 / ゲーム感 / 押し付けない余白
   style.css（共通基盤）の後に読み込み、トークン上書き＋ゲームUI部品を追加する。
   ===================================================================== */
/* ---------------------------------------------------------------
   配色の基本方針（2026-08-05 全面改訂）
   トレキャッチ＝夜の司令室（ダーク）に対して、こちらは **昼の闘技場**。
   白地に青ではなく、砂と紙の地に 朱・金・墨 を置く。
   教訓: 演出を上に足しても変わらない。地の配色から変える。
   --------------------------------------------------------------- */
:root {
  --brand: #d1382b;        /* 朱（主役） */
  --brand-dark: #a3251a;
  --brand-deep: #3d1710;   /* 墨赤（ヒーロー深部・フッター） */
  --brand-soft: #fdeadf;   /* 淡い朱 */
  --accent: #d99a1f;       /* 金 */
  --accent-2: #ffd66b;     /* 淡金 */
  --indigo: #1e4b8f;       /* 藍（副色。朱の反対側） */
  --indigo-soft: #e6eefb;
  --good: #0f9d63;         /* 安心グリーン */
  --ki-grad: linear-gradient(135deg, #e8621f, #ffc93e);
  --gold-grad: linear-gradient(135deg, #b8801a, #f0cf70 45%, #d99a1f);
  --sky-grad: linear-gradient(158deg, #3d1710, #8e2418 38%, #cf5b2a 70%, #e8a33c);

  /* 地（もっとも効く3行） */
  --paper: #f7ecd6;        /* 砂 */
  --white: #fffdf5;        /* 生成りの紙 */
  --ink: #2c1e14;          /* 墨 */
  --muted: #6b5b48;        /* 薄墨（AA確保） */
  --line: #ddcaa6;         /* 砂の罫 */
  --shadow-sm: 0 6px 18px -8px rgba(60, 34, 12, 0.28);
  --shadow: 0 22px 55px -24px rgba(60, 34, 12, 0.42);
}

/* 紙の地。方眼ではなく、和紙の繊維＋うっすらした市松。 */
body {
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(45deg,  rgba(255,255,255,0.30) 0 3px, rgba(255,255,255,0) 3px 6px),
    repeating-linear-gradient(-45deg, rgba(140,105,55,0.045) 0 3px, rgba(140,105,55,0) 3px 6px),
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(255,255,255,0.55), rgba(255,255,255,0) 60%);
}

/* ---------- ヒーロー: エナジーの空 ---------- */
.gx-hero {
  position: relative;
  background: var(--sky-grad);
  color: var(--white);
  overflow: hidden;
}
.gx-hero::before,
.gx-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}
.gx-hero::before {   /* 大きな気弾 */
  width: 420px; height: 420px; right: -120px; top: -80px;
  background: radial-gradient(circle at 35% 35%,
    rgba(255, 210, 62, 0.55), rgba(255, 146, 20, 0.28) 45%, transparent 70%);
  animation: gx-float 9s ease-in-out infinite;
}
.gx-hero::after {    /* 小さな気弾 */
  width: 180px; height: 180px; left: 4%; bottom: -60px;
  background: radial-gradient(circle at 40% 40%,
    rgba(255, 214, 107, 0.55), rgba(217, 154, 31, 0.28) 50%, transparent 72%);
  animation: gx-float 7s ease-in-out infinite reverse;
}
.gx-hero .container { position: relative; z-index: 1; }
.gx-hero__inner { padding: clamp(54px, 9vw, 104px) 0; }
.gx-hero h1 {
  font-family: var(--head); font-weight: 800;
  font-size: clamp(1.65rem, 4.6vw, 2.8rem); line-height: 1.32; margin: 14px 0 16px;
}
.gx-hero p.lead { max-width: 640px; color: rgba(255, 255, 255, 0.92); margin: 0 0 26px; }
@keyframes gx-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* ---------- レベルバッジ / チップ ---------- */
.lv-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ki-grad); color: #4a2503;
  font-family: var(--head); font-weight: 800; font-size: 0.82rem;
  letter-spacing: 0.08em; padding: 6px 16px;
  border-radius: 4px 14px 4px 14px;
  box-shadow: 0 4px 14px -4px rgba(255, 146, 20, 0.55);
}
.lv-badge--sky { background: linear-gradient(135deg, #2c66b8, #1e4b8f); color: #fff;
  box-shadow: 0 4px 14px -4px rgba(30, 75, 143, 0.5); }

/* ---------- クエストステップ ---------- */
.quest { list-style: none; margin: 0; padding: 0; position: relative; }
.quest > li { position: relative; padding: 0 0 26px 74px; }
.quest > li::before {  /* 連結線 */
  content: ""; position: absolute; left: 27px; top: 56px; bottom: 0;
  width: 3px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-2), var(--brand-soft));
}
.quest > li:last-child::before { display: none; }
.quest__num {
  position: absolute; left: 0; top: 0;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ki-grad); color: #4a2503;
  font-family: var(--head); font-weight: 800; font-size: 1.25rem;
  box-shadow: 0 6px 18px -6px rgba(255, 146, 20, 0.6), inset 0 -3px 0 rgba(0,0,0,0.08);
}
.quest__body {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.quest__body h3 { margin: 0 0 8px; font-family: var(--head); font-size: 1.08rem; }
.quest__body h3 small { color: var(--brand); font-size: 0.78rem; margin-left: 8px; letter-spacing: 0.06em; }
.quest__body p { margin: 0 0 6px; font-size: 0.95rem; }
.quest__body p:last-child { margin-bottom: 0; }

/* ---------- ゲームパネル（上辺エナジーライン） ---------- */
.gx-panel {
  position: relative; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  overflow: hidden;
}
.gx-panel::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--ki-grad);
}
.gx-panel--sky::before { background: linear-gradient(90deg, #2c66b8, #1e4b8f); }
.gx-panel:hover { transform: translateY(-4px); box-shadow: 0 18px 44px -18px rgba(22, 37, 92, 0.35); }
.gx-panel h3 { margin: 4px 0 8px; font-family: var(--head); font-size: 1.05rem; }
.gx-panel p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.gx-panel .kv { font-family: var(--head); font-weight: 800; font-size: 1.5rem; color: var(--brand-deep); }

/* ---------- パワーメーター（予算ゲージ） ---------- */
.power { margin: 14px 0 4px; }
.power__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.power__label { font-family: var(--head); font-weight: 700; font-size: 0.95rem; }
.power__val { font-family: var(--head); font-weight: 800; color: var(--brand-dark); }
.power__track {
  height: 14px; border-radius: 999px; background: var(--brand-soft);
  border: 1px solid var(--line); overflow: hidden;
}
.power__fill {
  height: 100%; border-radius: 999px; background: var(--ki-grad);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.08);
  transform-origin: left center;
  animation: gx-fill 1s var(--ease) both;
}
.power__fill--sky { background: linear-gradient(90deg, #2c66b8, #1e4b8f); }
.power__fill--max { background: linear-gradient(90deg, #f43f5e, #ff9214, #ffd23e); }
@keyframes gx-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- ボタン ---------- */
.btn--energy {
  background: var(--ki-grad); color: #4a2503;
  box-shadow: 0 10px 24px -10px rgba(255, 146, 20, 0.65);
}
.btn--energy:hover { transform: translateY(-2px); color: #4a2503;
  box-shadow: 0 16px 34px -12px rgba(255, 146, 20, 0.75); }

/* ---------- 編集部コールアウト / 余白ブロック ---------- */
.gx-callout {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff8e6; border: 1px solid #ffe4a3;
  border-radius: var(--radius-s); padding: 16px 18px; font-size: 0.93rem;
}
.gx-callout::before { content: "★"; color: var(--accent); font-size: 1.1rem; line-height: 1.6; }
.yohaku {
  max-width: 620px; margin: 0 auto; text-align: center;
  padding: clamp(36px, 7vw, 64px) 20px;
  color: var(--muted); font-size: 0.97rem; line-height: 2.1;
}
.yohaku strong { color: var(--ink); font-family: var(--head); }

/* ---------- FAQ（アコーディオン） ---------- */
.faq { max-width: 760px; }
.faq details {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-s); margin-bottom: 12px;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; display: flex; gap: 12px; align-items: center;
  padding: 16px 18px; font-family: var(--head); font-weight: 700; font-size: 0.98rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "＋"; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 800;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::before { content: "－"; transform: rotate(180deg); }
.faq .faq__a { padding: 0 18px 18px 58px; font-size: 0.94rem; color: var(--ink); }
.faq .faq__a p { margin: 0 0 8px; }
.faq .faq__a p:last-child { margin-bottom: 0; }

/* ---------- 数字の見せ方 ---------- */
.kv-num {
  font-family: var(--head); font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  background: var(--ki-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.gx-note { font-size: 0.8rem; color: var(--muted); }

/* ---------- ページ内クエストナビ ---------- */
.stepnav { display: flex; flex-wrap: wrap; gap: 10px; }
.stepnav a {
  text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 0.85rem;
  background: var(--white); border: 1.5px solid var(--brand-soft); color: var(--brand-dark);
  border-radius: 999px; padding: 8px 16px; transition: 0.2s var(--ease);
}
.stepnav a:hover { border-color: var(--brand); transform: translateY(-2px); }

/* ---------- 比較マトリクス（買うべき？） ---------- */
.verdict { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.verdict__card { border-radius: var(--radius); padding: 22px; border: 1.5px solid var(--line); background: var(--white); }
.verdict__card--yes { border-color: rgba(18, 183, 106, 0.45); background: #f2fbf7; }
.verdict__card--wait { border-color: rgba(244, 63, 94, 0.35); background: #fff5f6; }
.verdict__card h3 { margin: 0 0 10px; font-family: var(--head); font-size: 1rem; }
.verdict__card ul { margin: 0; padding-left: 1.2em; font-size: 0.92rem; }
.verdict__card li { margin: 6px 0; }

/* ---------- 安心アクセシビリティ ---------- */
.btn:focus-visible, .stepnav a:focus-visible, .faq summary:focus-visible {
  outline: 3px solid var(--accent-2); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .gx-hero::before, .gx-hero::after { animation: none; }
  .power__fill { animation: none; }
  .gx-panel, .gx-panel:hover, .btn--energy:hover, .stepnav a:hover { transform: none; }
}
@media (max-width: 640px) {
  .quest > li { padding-left: 60px; }
  .quest__num { width: 46px; height: 46px; font-size: 1.05rem; }
  .quest > li::before { left: 22px; top: 48px; }
}

