/* =========================================================
 * SHIN BASS LIFE｜今日何投げる？バスルアー診断
 * ---------------------------------------------------------
 * デザインテーマ：
 *   ダークグリーン × ゴールド × ブラック × ホワイト
 *   「高級釣りメディアの重厚感」＋「ゲームのようなワクワク感」
 *   スマホファースト（〜480pxを基準にデザイン）
 *
 * 色を変えたいときは :root のカスタムプロパティを編集すれば
 * サイト全体のトーンが一括で変わります。
 * ========================================================= */

:root {
  /* ---- ブランドカラー ---- */
  --c-black:      #0a0f0c;  /* 背景のベース（ほぼ黒の深緑） */
  --c-green-deep: #0e2318;  /* ダークグリーン（メイン背景） */
  --c-green:      #16382a;  /* カード背景などの明るめグリーン */
  --c-green-line: #2c5a44;  /* 罫線・枠線用グリーン */
  --c-gold:       #c9a45c;  /* ゴールド（アクセント） */
  --c-gold-light: #e8cf9a;  /* 明るいゴールド（見出し・星） */
  --c-white:      #f7f5ef;  /* ホワイト（本文。純白より上品な生成り） */
  --c-muted:      #a8b5ac;  /* 補足テキスト */

  /* ---- タイポグラフィ ---- */
  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --font-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic",
               "Meiryo", -apple-system, BlinkMacSystemFont, sans-serif;

  /* ---- 角丸・影 ---- */
  --radius: 16px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45);
}

/* ---------- リセット & ベース ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--c-white);
  line-height: 1.8;
  /* 深緑のグラデーション背景。上品な奥行きを出す */
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(201, 164, 92, 0.10), transparent 60%),
    linear-gradient(175deg, var(--c-black) 0%, var(--c-green-deep) 45%, var(--c-black) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* =========================================================
 * ページ全体のレイアウト
 * =======================================================*/
.page {
  max-width: 560px;              /* スマホファースト。PCでは中央寄せの短冊型 */
  margin: 0 auto;
  padding: 24px 16px 64px;
}

/* ---------- ヘッダー ---------- */
.site-badge {
  display: block;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;           /* letter-spacing分の右寄りを補正 */
  color: var(--c-gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero {
  text-align: center;
  margin-bottom: 28px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--c-gold-light);
  border: 1px solid var(--c-gold);
  border-radius: 999px;
  padding: 4px 16px;
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.hero__title .hero__q {
  display: block;
  font-size: 20px;
  color: var(--c-muted);
  margin-bottom: 4px;
}

/* タイトルの「バスルアー診断」にゴールドのグラデーション */
.hero__title .hero__main {
  background: linear-gradient(100deg, var(--c-gold) 10%, var(--c-gold-light) 45%, var(--c-gold) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero__rule {
  width: 56px;
  height: 2px;
  border: none;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
}

/* =========================================================
 * ツール本体の枠（重厚なカード）
 * =======================================================*/
.tool {
  background: linear-gradient(160deg, rgba(22, 56, 42, 0.92), rgba(10, 20, 15, 0.96));
  border: 1px solid var(--c-green-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 20px 32px;
  position: relative;
  overflow: hidden;
}

/* 枠上部にゴールドの飾り線 */
.tool::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
}

/* ---------- 画面切り替えアニメーション ---------- */
.screen {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.screen--in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
 * スタート画面
 * =======================================================*/
.start {
  text-align: center;
}

.start__lead {
  font-size: 15px;
  color: var(--c-white);
}

.start__lead strong {
  color: var(--c-gold-light);
  font-weight: 600;
}

.start__lures {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 6px;
  color: var(--c-gold);
}

.start__lure {
  width: 84px;
  opacity: 0.9;
}

.start__lure svg {
  width: 100%;
  height: auto;
}

/* 真ん中のルアーだけ少し浮かせてリズムを作る */
.start__lure:nth-child(2) {
  transform: translateY(-8px);
}

.start__note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--c-muted);
  letter-spacing: 0.08em;
}

/* ---------- 共通ボタン（ゴールド） ---------- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border: none;
  border-radius: 999px;
  padding: 15px 46px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn--gold {
  color: #1d1608;
  background: linear-gradient(135deg, var(--c-gold-light), var(--c-gold) 55%, #a8823f);
  box-shadow: 0 6px 22px rgba(201, 164, 92, 0.35);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201, 164, 92, 0.45);
  filter: brightness(1.05);
}

.btn--gold:active {
  transform: translateY(0);
}

/* =========================================================
 * 質問画面
 * =======================================================*/
.quiz__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.quiz__step {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--c-gold-light);
  letter-spacing: 0.06em;
}

.quiz__total {
  font-size: 14px;
  color: var(--c-muted);
}

.quiz__back {
  background: none;
  border: none;
  color: var(--c-muted);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  padding: 6px 8px;
  transition: color 0.2s ease;
}

.quiz__back:hover {
  color: var(--c-gold-light);
}

/* ---------- 進捗バー ---------- */
.progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  overflow: hidden;
  margin-bottom: 26px;
}

.progress__bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c-gold), var(--c-gold-light));
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.quiz__q {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.quiz__sub {
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 22px;
}

/* ---------- 選択肢（カード型ボタン） ---------- */
.options {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* スマホは2列 */
  gap: 12px;
}

/* 3択の質問（天気・水質・フィールド）は縦1列で大きく見せる */
.options--3 {
  grid-template-columns: 1fr;
}

.option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--c-green-line);
  border-radius: 14px;
  padding: 18px 12px 14px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease,
              background 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

/* 3択（縦並び）はアイコン＋テキストを横並びに */
.options--3 .option {
  flex-direction: row;
  justify-content: flex-start;
  gap: 14px;
  padding: 16px 18px;
}

.option:hover {
  border-color: var(--c-gold);
  background: rgba(201, 164, 92, 0.08);
  transform: translateY(-2px);
}

/* 選択された瞬間のフィードバック（ゴールドに点灯） */
.option--selected {
  border-color: var(--c-gold);
  background: rgba(201, 164, 92, 0.16);
  box-shadow: 0 0 0 1px var(--c-gold), 0 6px 18px rgba(201, 164, 92, 0.25);
}

.opt-icon {
  font-size: 30px;
  line-height: 1.2;
}

.opt-icon--svg {
  width: 34px;
  height: 34px;
}

.opt-icon--svg svg {
  width: 100%;
  height: 100%;
}

.opt-label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.opt-note {
  font-size: 11px;
  color: var(--c-muted);
}

.options--3 .opt-note {
  margin-left: auto;
}

/* =========================================================
 * 診断中（ローディング）画面
 * =======================================================*/
.loading {
  text-align: center;
  padding: 36px 0 30px;
}

.loading__ring {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 2px solid rgba(201, 164, 92, 0.25);
  border-top-color: var(--c-gold);
  animation: spin 1.4s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* リングの中で魚（ミノー）が逆回転して定位置に見える演出 */
.loading__fish {
  width: 72px;
  color: var(--c-gold-light);
  animation: spin-reverse 1.4s linear infinite;
}

.loading__fish svg {
  width: 100%;
  height: auto;
}

.loading__msg {
  font-size: 14px;
  color: var(--c-gold-light);
  letter-spacing: 0.14em;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  to { transform: rotate(-360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* =========================================================
 * 結果画面
 * =======================================================*/
.result {
  text-align: center;
}

.result__eyebrow {
  font-size: 11px;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  color: var(--c-gold);
  margin-bottom: 6px;
}

.result__heading {
  font-family: var(--font-serif);
  font-size: 24px;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

/* 回答のおさらいチップ */
.result__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
}

.chip {
  font-size: 11px;
  color: var(--c-muted);
  border: 1px solid var(--c-green-line);
  border-radius: 999px;
  padding: 3px 12px;
  background: rgba(255, 255, 255, 0.03);
}

/* ---------- カード共通 ---------- */
.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--c-green-line);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 14px;
  text-align: left;
}

/* ---------- メインカード（今日の1本） ---------- */
.card--main {
  text-align: center;
  border-color: var(--c-gold);
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(201, 164, 92, 0.12), transparent 65%),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 1px rgba(201, 164, 92, 0.25), 0 12px 36px rgba(0, 0, 0, 0.4);
  animation: card-pop 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes card-pop {
  from { transform: scale(0.94); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.card__icon {
  width: 150px;
  margin: 4px auto 6px;
  color: var(--c-gold-light);
  filter: drop-shadow(0 0 14px rgba(201, 164, 92, 0.35));
}

.card__icon svg {
  width: 100%;
  height: auto;
}

.card__category {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--c-gold-light);
  border: 1px solid rgba(201, 164, 92, 0.5);
  border-radius: 999px;
  padding: 2px 14px;
  margin-bottom: 8px;
}

.card__name {
  font-family: var(--font-serif);
  font-size: 27px;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

/* ---------- 星（おすすめ度） ---------- */
.card__stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.card__starlabel {
  font-size: 12px;
  color: var(--c-muted);
  letter-spacing: 0.1em;
}

.stars {
  display: inline-flex;
  gap: 2px;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.18); /* 消灯した星 */
}

.star--on {
  color: var(--c-gold-light);
  text-shadow: 0 0 10px rgba(201, 164, 92, 0.6);
  animation: star-in 0.4s ease both; /* 1つずつ順番に点灯 */
}

@keyframes star-in {
  from { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.35); }
  to   { transform: scale(1); opacity: 1; }
}

/* 次点カード内の星は小さめ */
.runner .stars {
  font-size: 14px;
}

/* ---------- スペック表（カラー／レンジ／アクション） ---------- */
.specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.spec {
  background: rgba(10, 20, 15, 0.55);
  border: 1px solid var(--c-green-line);
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
}

.spec dt {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--c-gold);
  margin-bottom: 4px;
}

.spec dd {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

/* ---------- テキストカード（理由・アドバイス） ---------- */
.card__subhead {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--c-gold-light);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.card__subicon {
  font-size: 17px;
}

.card__body {
  font-size: 14px;
  color: var(--c-white);
  line-height: 2;
}

/* ---------- 次点ルアー ---------- */
.runner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.runner + .runner {
  border-top: 1px dashed var(--c-green-line);
}

.runner__icon {
  width: 58px;
  flex-shrink: 0;
  color: var(--c-gold);
  opacity: 0.85;
}

.runner__icon svg {
  width: 100%;
  height: auto;
}

.runner__name {
  font-size: 14px;
  font-weight: 700;
  flex: 1;
}

/* ---------- 関連記事（釣果アップへの導線） ---------- */
.related {
  margin: 24px 0 26px;
  text-align: left;
}

.related__eyebrow {
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--c-gold);
  margin-bottom: 4px;
}

.related__head {
  font-family: var(--font-serif);
  font-size: 19px;
  letter-spacing: 0.08em;
  color: var(--c-gold-light);
  margin-bottom: 8px;
}

/* 見出し下のリード文：クリックする理由を伝える */
.related__lead {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.9;
  margin-bottom: 14px;
}

.related__lead strong {
  color: var(--c-gold-light);
  font-weight: 700;
}

.article {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--c-green-line);
  border-radius: 12px;
  padding: 13px 16px;
  margin-bottom: 8px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.article:hover {
  border-color: var(--c-gold);
  background: rgba(201, 164, 92, 0.08);
  transform: translateX(3px);
}

/* フック（なぜ読むべきか）＋タイトルの縦積み */
.article__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* クリックの決め手になる一言。ゴールドで目立たせる */
.article__hook {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-gold-light);
  line-height: 1.5;
}

.article__hook::before {
  content: "＼";
  margin-right: 2px;
  opacity: 0.7;
}

.article__hook::after {
  content: "／";
  margin-left: 2px;
  opacity: 0.7;
}

.article__title {
  font-size: 12px;
  line-height: 1.6;
  color: var(--c-muted);
}

.article__arrow {
  color: var(--c-gold);
  flex-shrink: 0;
}

/* =========================================================
 * フッター
 * =======================================================*/
.site-footer {
  text-align: center;
  margin-top: 32px;
  font-size: 11px;
  color: var(--c-muted);
  letter-spacing: 0.12em;
}

.site-footer a {
  color: var(--c-gold);
  text-decoration: none;
}

/* =========================================================
 * レスポンシブ調整
 * =======================================================*/

/* 小さめスマホ（〜360px） */
@media (max-width: 360px) {
  .hero__title { font-size: 26px; }
  .specs { grid-template-columns: 1fr; }
  .spec { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; }
  .spec dt { margin-bottom: 0; }
}

/* タブレット以上（600px〜）：余白を広げてゆったり見せる */
@media (min-width: 600px) {
  .page { padding-top: 48px; }
  .hero__title { font-size: 36px; }
  .hero__title .hero__q { font-size: 24px; }
  .tool { padding: 40px 44px 44px; }
  .options { gap: 14px; }
  .quiz__q { font-size: 24px; }
  .card__name { font-size: 30px; }
}

/* =========================================================
 * アクセシビリティ：動きを減らす設定のユーザーに配慮
 * =======================================================*/
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
