/* ========================================
   旅行タイプ診断アプリ — スタイルシート
   対象：40〜60代女性、上品・エレガントデザイン
   ======================================== */

/* ── Google Fonts 読み込み ── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;600;700&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* ── CSS 変数（色・影など） ── */
:root {
  --pink:       #f2c4d0;   /* メインピンク */
  --pink2:      #e8a0b4;   /* 少し濃いピンク */
  --pink-deep:  #c97090;   /* 深いピンク（テキスト用） */
  --ivory:      #fffdf8;   /* アイボリー */
  --beige:      #f8f0e6;   /* ベージュ */
  --gold:       #c9a87c;   /* ゴールド */
  --gold2:      #a8855a;   /* 濃いゴールド */
  --gold-light: #f5e6c8;   /* 薄いゴールド */
  --text:       #4a3530;   /* メインテキスト */
  --text2:      #7a6560;   /* サブテキスト */
  --white:      #ffffff;
  --shadow:     rgba(180, 120, 130, 0.18);
  --shadow2:    rgba(180, 120, 130, 0.10);
  --radius:     20px;
  --radius-sm:  12px;
}

/* ── リセット ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── ベース ── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  background: linear-gradient(160deg, #fde8f0 0%, #fdf5ee 40%, #fef8f2 70%, #f8eef8 100%);
  min-height: 100vh;
  color: var(--text);
  line-height: 1.7;
  /* 横スクロール防止 */
  overflow-x: hidden;
}

/* ── メインコンテナ ── */
.app-container {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* ── 各画面（非表示/表示切り替え） ── */
.screen {
  width: 100%;
  display: none;         /* 非表示がデフォルト */
  animation: fadeIn 0.4s ease;
}
.screen.active {
  display: block;        /* 表示中の画面だけ表示 */
}

/* フェードインアニメーション */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========================================
   ① スタート画面
   ======================================== */
.start-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 28px 36px;
  box-shadow: 0 8px 40px var(--shadow), 0 2px 8px var(--shadow2);
  text-align: center;
  position: relative;
  border: 1px solid rgba(242, 196, 208, 0.35);
}

/* デコレーション：上部の細いゴールドライン */
.start-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
}

/* イラスト風デコレーション */
.deco-top {
  font-size: 52px;
  margin-bottom: 10px;
  display: block;
  line-height: 1.2;
  letter-spacing: 4px;
}

/* タイトル（明朝体） */
.app-title {
  font-family: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--pink-deep);
  line-height: 1.4;
  margin-bottom: 10px;
}

/* サブタイトル */
.app-subtitle {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 20px;
  line-height: 1.8;
}

/* 所要時間バッジ */
.time-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--gold-light);
  color: var(--gold2);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 28px;
  border: 1px solid rgba(201, 168, 124, 0.3);
}

/* スタートボタン */
.btn-start {
  width: 100%;
  max-width: 300px;
  padding: 17px 24px;
  background: linear-gradient(135deg, #e8a0b4, #d4788e, #c97090);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(200, 100, 130, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}
.btn-start:hover,
.btn-start:focus {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(200, 100, 130, 0.45);
  outline: none;
}
.btn-start:active {
  transform: translateY(-1px);
}

/* ボタン光沢エフェクト */
.btn-start::after {
  content: '';
  position: absolute;
  top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s ease;
}
.btn-start:hover::after { left: 130%; }

/* スタート画面の小さなデコ */
.start-deco-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
  font-size: 20px;
  opacity: 0.65;
}

/* ========================================
   ② 質問画面
   ======================================== */

/* プログレスエリア */
.progress-area {
  width: 100%;
  margin-bottom: 20px;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.progress-label {
  font-size: 12px;
  color: var(--text2);
  font-weight: 500;
}
.progress-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--pink-deep);
}
.progress-num span {
  font-size: 13px;
  color: var(--text2);
  font-weight: 400;
}

/* プログレスバー */
.progress-bar-bg {
  height: 8px;
  background: rgba(242, 196, 208, 0.35);
  border-radius: 50px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f2c4d0, #d4788e);
  border-radius: 50px;
  transition: width 0.4s ease;
}

/* 質問カード */
.question-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px 28px;
  box-shadow: 0 6px 32px var(--shadow), 0 2px 8px var(--shadow2);
  width: 100%;
  border: 1px solid rgba(242, 196, 208, 0.3);
}

/* 質問番号 */
.q-number {
  display: inline-block;
  background: linear-gradient(135deg, #f2c4d0, #e8a0b4);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

/* 質問テキスト（明朝体） */
.q-text {
  font-family: 'Noto Serif JP', 'Yu Mincho', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* 選択肢リスト */
.options-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 選択肢ボタン */
.option-btn {
  width: 100%;
  padding: 15px 18px;
  background: var(--beige);
  border: 2px solid rgba(242, 196, 208, 0.4);
  border-radius: var(--radius-sm);
  text-align: left;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.5;
}
.option-btn:hover,
.option-btn:focus {
  background: var(--pink);
  border-color: var(--pink2);
  transform: translateX(4px);
  outline: none;
  box-shadow: 0 3px 12px rgba(200, 120, 140, 0.2);
}

/* 選択中（アクティブ）の選択肢 */
.option-btn.selected {
  background: linear-gradient(135deg, #fde8f0, #f8d0df);
  border-color: var(--pink-deep);
  color: var(--pink-deep);
  font-weight: 700;
  box-shadow: 0 3px 14px rgba(200, 100, 130, 0.22);
  transform: translateX(4px);
}
.option-btn.selected .opt-label {
  background: var(--pink-deep);
  color: var(--white);
}

/* 選択肢ラベル（A B C D） */
.opt-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--pink);
  color: var(--white);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
}

/* 操作ボタン行 */
.nav-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  align-items: center;
}

/* 戻るボタン */
.btn-back {
  flex: 0 0 auto;
  padding: 13px 20px;
  background: transparent;
  border: 2px solid var(--pink2);
  border-radius: 50px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--pink-deep);
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}
.btn-back:hover,
.btn-back:focus {
  background: var(--pink);
  outline: none;
}
.btn-back:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* 次へボタン */
.btn-next {
  flex: 1;
  padding: 14px;
  background: linear-gradient(135deg, #e8a0b4, #c97090);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(200, 100, 130, 0.3);
  transition: all 0.18s ease;
}
.btn-next:hover,
.btn-next:focus {
  transform: translateY(-2px);
  box-shadow: 0 7px 24px rgba(200, 100, 130, 0.4);
  outline: none;
}
.btn-next:disabled {
  background: #ddd;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* ========================================
   ③ 結果画面
   ======================================== */
.result-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 24px 32px;
  box-shadow: 0 8px 40px var(--shadow), 0 2px 8px var(--shadow2);
  width: 100%;
  /* 金色の細い枠 */
  border: 1.5px solid var(--gold);
  position: relative;
  overflow: hidden;
}

/* 結果カードの背景装飾 */
.result-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(242,196,208,0.25), transparent 70%);
  border-radius: 50%;
}
.result-card::after {
  content: '';
  position: absolute;
  bottom: -30px; left: -30px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(201,168,124,0.15), transparent 70%);
  border-radius: 50%;
}

/* 「診断結果」ラベル */
.result-label {
  text-align: center;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold2);
  font-weight: 500;
  margin-bottom: 6px;
}

/* 絵文字アイコン */
.result-icon {
  text-align: center;
  font-size: 56px;
  margin-bottom: 12px;
  display: block;
  line-height: 1.2;
}

/* タイプ名 */
.result-type-name {
  font-family: 'Noto Serif JP', 'Yu Mincho', serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--pink-deep);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* キャッチコピー */
.result-catch {
  text-align: center;
  font-size: 14px;
  font-style: italic;
  color: var(--gold2);
  margin-bottom: 20px;
  line-height: 1.7;
  padding: 0 8px;
}

/* 区切り線（ゴールド） */
.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 16px 0;
  position: relative;
  z-index: 1;
}

/* 説明テキスト */
.result-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.9;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

/* 詳細セクション */
.result-section {
  background: var(--beige);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.result-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold2);
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.result-section-content {
  font-size: 14px;
  color: var(--text);
  line-height: 1.9;
}

/* おすすめ旅行先タグ */
.dest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.dest-tag {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold2);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 50px;
  border: 1px solid rgba(201, 168, 124, 0.35);
}

/* ラッキーアイテム */
.lucky-item {
  font-size: 14px;
  color: var(--pink-deep);
  font-weight: 500;
  margin-top: 4px;
}

/* 結果ボタン群 */
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

/* シェアボタン共通 */
.btn-share {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 50px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.btn-share:hover,
.btn-share:focus {
  transform: translateY(-2px);
  outline: none;
}

/* Xシェア */
.btn-x {
  background: #111;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.btn-x:hover { background: #333; box-shadow: 0 7px 20px rgba(0,0,0,0.3); }

/* LINEシェア */
.btn-line {
  background: #06C755;
  color: #fff;
  box-shadow: 0 4px 16px rgba(6,199,85,0.3);
}
.btn-line:hover { box-shadow: 0 7px 20px rgba(6,199,85,0.4); }

/* コピーボタン */
.btn-copy {
  background: var(--gold-light);
  color: var(--gold2);
  border: 1.5px solid var(--gold);
  box-shadow: 0 3px 12px rgba(201, 168, 124, 0.2);
}
.btn-copy:hover { background: #efd9a8; box-shadow: 0 6px 18px rgba(201, 168, 124, 0.3); }

/* もう一度診断 */
.btn-retry {
  background: transparent;
  color: var(--pink-deep);
  border: 2px solid var(--pink2);
  box-shadow: none;
}
.btn-retry:hover { background: var(--pink); box-shadow: 0 4px 14px var(--shadow); }

/* メインCTAボタン（詳しくはこちら） */
.btn-cta-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(135deg, #c9a87c, #e0c090, #c9a87c);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 28px rgba(180, 140, 80, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}
.btn-cta-main::after {
  content: '';
  position: absolute;
  top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}
.btn-cta-main:hover::after { left: 130%; }
.btn-cta-main:hover,
.btn-cta-main:focus {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(180, 140, 80, 0.55);
  outline: none;
}
.btn-cta-main:active { transform: translateY(-1px); }

/* もう一度診断する（控えめなテキストリンク風） */
.btn-retry-small {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1.5px solid rgba(200, 168, 120, 0.4);
  border-radius: 50px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.18s ease;
  letter-spacing: 1px;
}
.btn-retry-small:hover,
.btn-retry-small:focus {
  background: var(--gold-light);
  border-color: var(--gold);
  color: var(--gold2);
  outline: none;
}

/* コピー成功メッセージ */
.copy-success {
  text-align: center;
  font-size: 13px;
  color: var(--gold2);
  padding: 6px;
  display: none;
  animation: fadeIn 0.3s ease;
}
.copy-success.visible { display: block; }

/* ========================================
   装飾・共通パーツ
   ======================================== */

/* フッターデコ（全体） */
.footer-deco {
  text-align: center;
  margin-top: 32px;
  font-size: 18px;
  opacity: 0.5;
  letter-spacing: 6px;
}

/* ========================================
   レスポンシブ（スマートフォン 375px〜）
   ======================================== */
@media (max-width: 480px) {
  .app-container { padding: 16px 12px 50px; }

  .start-card { padding: 32px 20px 28px; }
  .app-title  { font-size: 22px; }
  .deco-top   { font-size: 44px; }

  .question-card { padding: 24px 18px 20px; }
  .q-text        { font-size: 17px; }
  .option-btn    { font-size: 14px; padding: 13px 14px; }

  .result-card      { padding: 28px 18px 26px; }
  .result-type-name { font-size: 19px; }
}
