/* ========================================
   りさ式ジャーナリングサロン ママ診断
   メインスタイルシート v3 - 完全リニューアル版
   ======================================== */

/* リセット・基本設定 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #FF6B9D;
  --primary-dark: #E91E8C;
  --primary-light: #FFB3D1;
  --accent: #FF8E53;
  --gold: #F5C518;
  --text-dark: #2D2D2D;
  --text-mid: #555;
  --text-light: #888;
  --bg: #FFF5F8;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(255,107,157,0.15);
  --shadow-md: 0 4px 20px rgba(255,107,157,0.2);
  --shadow-lg: 0 8px 40px rgba(255,107,157,0.25);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', 'Meiryo', sans-serif;
  background-color: var(--bg);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
}

/* ========================================
   共通スタイル
   ======================================== */
.img-loaded { animation: fadeInImg 0.4s ease; }

@keyframes fadeInImg {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}

/* ========================================
   導入画面
   ======================================== */
.screen-intro {
  min-height: 100vh;
  background: linear-gradient(180deg, #FFF0F5 0%, #FFF5F8 60%, #FFF0F5 100%);
  position: relative;
  overflow: hidden;
}

.intro-bg-decoration { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.deco-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}
.deco-circle-1 { width: 300px; height: 300px; background: var(--primary); top: -80px; right: -80px; }
.deco-circle-2 { width: 200px; height: 200px; background: var(--accent);  bottom: 100px; left: -60px; }
.deco-circle-3 { width: 150px; height: 150px; background: var(--gold);    top: 40%; right: -40px; }

.intro-content {
  position: relative;
  z-index: 1;
  padding: 20px 20px 40px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
}
.brand-icon { font-size: 22px; }
.brand-name { font-size: 13px; color: var(--text-mid); font-weight: 600; }

/* タイトル画像 */
.intro-title-image-wrap {
  width: 100%;
  max-width: 420px;
  margin: 8px auto 16px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.intro-title-image {
  width: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.intro-title-image.img-loaded { opacity: 1; }

/* ヒーローセクション */
.intro-hero { text-align: center; padding: 8px 0 16px; }
.intro-tag {
  display: inline-block;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.intro-title {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 14px;
}
.highlight-text {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 48px;
}
.intro-subtitle {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 20px;
}
.intro-subtitle strong { color: var(--primary); }

/* バッジ */
.intro-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: white;
  border: 1.5px solid var(--primary-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.badge-icon { font-size: 14px; }

/* タイププレビュー */
.type-preview { background: white; border-radius: 16px; padding: 16px; margin: 20px 0; box-shadow: var(--shadow-sm); }
.type-preview-label { font-size: 13px; font-weight: 700; color: var(--text-mid); margin-bottom: 12px; text-align: center; }
.type-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.type-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1.5px solid;
}

/* スタートCTA */
.intro-cta { margin: 20px 0; text-align: center; }
.btn-start {
  width: 100%;
  max-width: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  border-radius: 50px;
  padding: 20px 32px;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(255,107,157,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 1px;
}
.btn-start:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,107,157,0.5); }
.btn-start:active { transform: translateY(0); }
.btn-start-icon, .btn-start-arrow { font-size: 18px; }
.cta-note { font-size: 12px; color: var(--text-light); margin-top: 10px; }

.intro-footer { text-align: center; margin-top: 24px; }
.disclaimer { font-size: 11px; color: var(--text-light); }

/* ========================================
   質問画面
   ======================================== */
.screen-question {
  min-height: 100vh;
  background: linear-gradient(180deg, #FFF0F5 0%, #FFF5F8 100%);
  display: flex;
  flex-direction: column;
}

/* プログレスヘッダー */
.question-header {
  background: white;
  padding: 16px 20px 12px;
  box-shadow: 0 2px 12px rgba(255,107,157,0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}
.progress-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.progress-info {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.progress-current { font-size: 24px; font-weight: 900; color: var(--primary); }
.progress-sep { font-size: 16px; color: var(--text-light); margin: 0 2px; }
.progress-total { font-size: 14px; font-weight: 600; color: var(--text-light); }
.round-badge {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

/* プログレスバー */
.progress-bar-wrap { display: flex; align-items: center; gap: 10px; }
.progress-bar-track {
  flex: 1;
  height: 10px;
  background: #FFE0EC;
  border-radius: 10px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 10px;
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.progress-pct-text { font-size: 11px; font-weight: 700; color: var(--primary); min-width: 28px; text-align: right; }

/* 質問本体 */
.question-body { flex: 1; padding: 28px 20px 16px; }

.question-card {
  background: white;
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: 0 6px 30px rgba(255,107,157,0.15);
  margin-bottom: 28px;
  border: 2px solid rgba(255,107,157,0.1);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.question-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-size: 13px;
  font-weight: 800;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(255,107,157,0.3);
}
.question-text {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.question-hint {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 600;
}

/* 回答ボタン */
.answer-buttons { display: flex; gap: 14px; }
.btn-answer {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 20px;
  padding: 22px 12px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}
.btn-answer:hover { transform: translateY(-3px); }
.btn-answer:active { transform: translateY(0) scale(0.97); }

.btn-yes {
  background: linear-gradient(135deg, #FF6B9D, #FF8E53);
  box-shadow: 0 6px 20px rgba(255,107,157,0.35);
}
.btn-no {
  background: linear-gradient(135deg, #667eea, #764ba2);
  box-shadow: 0 6px 20px rgba(102,126,234,0.35);
}
.answer-mark { font-size: 36px; font-weight: 900; color: white; }
.btn-yes .answer-mark { text-shadow: 0 0 20px rgba(255,255,255,0.5); }
.btn-no .answer-mark  { text-shadow: 0 0 20px rgba(255,255,255,0.5); }
.answer-label { font-size: 14px; font-weight: 800; color: white; }

/* 戻るボタン */
.btn-back {
  display: block;
  width: 100%;
  background: none;
  border: 1.5px solid #ddd;
  border-radius: 12px;
  padding: 12px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-back:hover { background: rgba(0,0,0,0.04); }

/* フッター */
.question-footer { padding: 12px 20px 24px; text-align: center; }
.question-note { font-size: 12px; color: var(--text-light); }

/* ========================================
   ローディング画面
   ======================================== */
.screen-loading {
  min-height: 100vh;
  background: linear-gradient(135deg, #FF6B9D, #FF8E53);
  display: flex;
  align-items: center;
  justify-content: center;
}
.loading-content { text-align: center; padding: 40px 20px; }

/* パルスリング */
.loading-animation {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 32px;
}
.pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.6);
  animation: pulseRing 2s infinite ease-out;
}
.ring-1 { inset: 0; animation-delay: 0s; }
.ring-2 { inset: -16px; animation-delay: 0.4s; }
.ring-3 { inset: -32px; animation-delay: 0.8s; }

@keyframes pulseRing {
  0%   { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

.loading-center-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  animation: floatIcon 2s ease-in-out infinite;
}
@keyframes floatIcon {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%       { transform: translate(-50%, -55%) scale(1.1); }
}

.loading-title { font-size: 26px; font-weight: 900; color: white; margin-bottom: 10px; }
.loading-subtitle { font-size: 14px; color: rgba(255,255,255,0.85); margin-bottom: 28px; }

/* ローディングステップ */
.loading-steps { display: flex; flex-direction: column; gap: 10px; }
.loading-step {
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  transition: all 0.4s ease;
  text-align: left;
}
.loading-step.step-active {
  background: rgba(255,255,255,0.9);
  color: var(--primary);
  transform: translateX(4px);
}

/* ========================================
   結果画面 共通
   ======================================== */
.screen-result { min-height: 100vh; }

/* 結果ヘッダー */
.result-header {
  padding: 40px 24px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.result-header::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 24px;
  background: var(--bg);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* スパークル */
.result-sparkles { display: flex; justify-content: center; gap: 20px; margin-bottom: 12px; }
.sparkle { font-size: 20px; animation: sparkleAnim 2s ease-in-out infinite; }
.sp1 { animation-delay: 0s; }
.sp2 { animation-delay: 0.3s; }
.sp3 { animation-delay: 0.6s; }
@keyframes sparkleAnim {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50%       { transform: scale(1.2) rotate(15deg); opacity: 0.8; }
}

.result-label-tag {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.transform-tag { background: rgba(255,255,255,0.3); }

.result-intro-text { font-size: 16px; color: rgba(255,255,255,0.9); font-weight: 600; margin-bottom: 12px; }
.result-type-emoji-big { font-size: 64px; margin-bottom: 8px; }

/* ヘッダー内タイプ画像 */
.result-header-image {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 16px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.result-header-image img {
  display: block;
  width: 100%;
  height: auto;
}

.result-type-name-big {
  font-size: 32px;
  font-weight: 900;
  color: white;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

/* 変身後ヘッダー */
.transform-headline {
  font-size: 18px;
  font-weight: 800;
  color: rgba(255,255,255,0.95);
  margin-bottom: 16px;
}
.transform-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.transform-from, .transform-to { text-align: center; }
.tf-emoji { font-size: 36px; margin-bottom: 4px; }
.tf-name { font-size: 13px; font-weight: 700; color: white; }
.transform-arrow-big { font-size: 28px; color: rgba(255,255,255,0.9); font-weight: 900; }

/* 結果本文 */
.result-body {
  background: var(--bg);
  padding: 24px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ★ 画像セクション */
.result-image-section {
  text-align: center;
}
.result-image-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 12px;
}
.result-image-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(255,107,157,0.2);
  border: 3px solid;
  background: white;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.result-image-frame-transform {
  border-color: #FF6B9D;
  box-shadow: 0 8px 32px rgba(255,107,157,0.3);
}
.result-type-img {
  width: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.result-type-img.img-loaded { opacity: 1; }

/* 画像ローディング */
.img-loading-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255,245,248,0.95);
}
.img-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #FFE0EC;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.img-loading-placeholder p { font-size: 12px; color: var(--text-light); }

/* 画像エラー */
.img-error-msg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px;
  background: rgba(255,245,248,0.95);
}
.img-error-emoji { font-size: 64px; }
.img-error-msg p { font-size: 14px; font-weight: 700; color: var(--text-mid); }

/* 共通カード */
.result-card {
  background: white;
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.result-card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
}

/* スコアグラフ */
.score-graph { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.score-row { display: flex; align-items: center; gap: 10px; }
.score-row-top .score-name { font-weight: 800; color: var(--primary); }
.score-label { display: flex; align-items: center; gap: 6px; min-width: 130px; }
.score-emoji { font-size: 16px; }
.score-name { font-size: 12px; font-weight: 600; color: var(--text-mid); }
.score-bar-wrap {
  flex: 1;
  height: 10px;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.score-count { font-size: 12px; font-weight: 700; color: var(--text-mid); min-width: 30px; text-align: right; }
.score-note { font-size: 11px; color: var(--text-light); text-align: right; }

/* 脳内メーカー */
.brain-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.brain-bar-row:last-child { margin-bottom: 0; }
.brain-bar-label { font-size: 12px; color: var(--text-mid); flex: 0 0 140px; line-height: 1.4; }
.brain-bar-track { flex: 1; height: 10px; background: #f0f0f0; border-radius: 10px; overflow: hidden; }
.brain-bar-fill { height: 100%; border-radius: 10px; transition: width 0.8s ease; }
.brain-bar-pct { font-size: 12px; font-weight: 700; color: var(--text-mid); min-width: 36px; text-align: right; }

/* 出没場所・口癖 */
.result-card-habitat { }
.habitat-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}
.habitat-item:last-child { border-bottom: none; padding-bottom: 0; }
.habitat-icon { font-size: 22px; flex-shrink: 0; }
.habitat-label { font-size: 11px; font-weight: 700; color: var(--text-light); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.habitat-text { font-size: 14px; color: var(--text-dark); line-height: 1.6; }

/* 説明文 */
.result-description { font-size: 14px; line-height: 1.8; color: var(--text-mid); }

/* 処方箋 */
.result-prescription {
  background: linear-gradient(135deg, #FFF9E6, #FFFDE8);
  border-radius: 18px;
  padding: 20px;
  border: 2px dashed var(--gold);
}
.prescription-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #B8860B;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.rx-icon { font-size: 20px; }
.prescription-text { font-size: 14px; line-height: 1.8; color: #5C4800; font-style: italic; }

/* 変化リスト */
.changes-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.change-item { display: flex; align-items: flex-start; gap: 12px; }
.change-check { font-size: 18px; font-weight: 900; flex-shrink: 0; margin-top: 1px; }
.change-text { font-size: 15px; font-weight: 600; color: var(--text-dark); line-height: 1.5; }

/* キャッチコピー */
.catchcopy-card {
  border-left: 4px solid;
  border-radius: 12px;
  padding: 16px 20px;
  background: white;
}
.catchcopy-label { font-size: 11px; font-weight: 700; margin-bottom: 8px; color: var(--text-light); letter-spacing: 0.5px; }
.catchcopy-text { font-size: 18px; font-weight: 900; line-height: 1.6; }

/* シェアセクション */
.share-section { }
.share-hint { font-size: 13px; font-weight: 600; color: var(--text-mid); text-align: center; margin-bottom: 12px; }
.share-buttons { display: flex; gap: 10px; }
.btn-share {
  flex: 1;
  padding: 12px 8px;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  font-family: inherit;
}
.btn-share:hover { transform: translateY(-2px); opacity: 0.9; }
.btn-share-x    { background: #000; color: white; }
.btn-share-line { background: #06C755; color: white; }
.btn-share-copy { background: #f0f0f0; color: var(--text-dark); }

/* 次へテキスト */
.next-teaser {
  text-align: center;
  padding: 16px;
  background: linear-gradient(135deg, #FFF0F5, #FFF5F8);
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mid);
}
.next-teaser strong { color: var(--primary); }
.teaser-title {
  font-size: 15px;
  margin-bottom: 16px;
  line-height: 1.7;
}
.teaser-compare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}
.teaser-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  max-width: 140px;
}
.teaser-img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
}
.teaser-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.teaser-label {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
}
.before-label {
  background: #FFE0EA;
  color: #D63384;
}
.after-label {
  background: #D4EDDA;
  color: #1A6635;
}
.teaser-arrow {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  flex-shrink: 0;
}
.teaser-name {
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.teaser-after-name {
  color: #27AE60;
}

/* 次へボタン（結果→） */
.btn-next-big {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  border-radius: 50px;
  padding: 20px;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(255,107,157,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}
.btn-next-big:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(255,107,157,0.5); }

/* CTAボタン（結果2→） */
.btn-cta-big {
  width: 100%;
  background: linear-gradient(135deg, #E91E63, #FF6B9D);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 22px;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(233,30,99,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}
.btn-cta-big:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(233,30,99,0.5); }

/* ========================================
   CTA画面
   ======================================== */
.screen-cta {
  min-height: 100vh;
  background: linear-gradient(180deg, #FFF0F5 0%, #FFF5F8 100%);
  position: relative;
  overflow: hidden;
}

.cta-bg-decoration { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.cta-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}
.c1 { width: 350px; height: 350px; background: var(--primary); top: -100px; right: -80px; }
.c2 { width: 250px; height: 250px; background: var(--accent);  bottom: 50px;  left:  -60px; }

.cta-content {
  position: relative;
  z-index: 1;
  padding: 20px 20px 40px;
}

.cta-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  padding: 12px 0;
}

/* まとめ画像 */
.cta-ending-wrap {
  width: 100%;
  max-width: 420px;
  margin: 12px auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.cta-ending-img {
  width: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.cta-ending-img.img-loaded { opacity: 1; }

/* 変身プレビュー */
.cta-transform-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin: 16px 0;
}
.cta-type-box { text-align: center; flex: 1; max-width: 130px; }
.cta-box-img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
}
.cta-box-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.cta-box-emoji { font-size: 40px; margin-bottom: 6px; }
.cta-box-label { font-size: 12px; font-weight: 700; color: var(--text-mid); }
.cta-type-current .cta-box-label { color: var(--text-light); }
.cta-type-ideal .cta-box-label   { color: var(--primary); }
.cta-arrow-glow {
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* CTA テキスト */
.cta-main-title {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.4;
  color: var(--text-dark);
  text-align: center;
  margin: 20px 0 12px;
}
.cta-highlight {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-mid);
  text-align: center;
  margin-bottom: 24px;
}

/* CTA機能リスト */
.cta-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.cta-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: white;
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.cta-feat-icon { font-size: 28px; flex-shrink: 0; }
.cta-feat-title { font-size: 14px; font-weight: 800; color: var(--text-dark); margin-bottom: 4px; }
.cta-feat-desc  { font-size: 12px; color: var(--text-light); line-height: 1.5; }

/* プランバッジ */
.plan-badge-wrap { text-align: center; margin: 16px 0; }
.plan-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--gold), #FFB300);
  color: #5C4800;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 24px;
  border-radius: 30px;
  box-shadow: 0 4px 16px rgba(245,197,24,0.3);
}

/* CTAアクションボタン */
.cta-action-btns { display: flex; flex-direction: column; gap: 12px; }
.btn-lp-main {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  text-decoration: none;
  border-radius: 50px;
  padding: 22px;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 6px 24px rgba(255,107,157,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-lp-main:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(255,107,157,0.5); }
.btn-share-cta {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease;
  font-family: inherit;
}
.btn-share-cta.btn-share-x { background: #000; color: white; }
.btn-retry {
  width: 100%;
  background: white;
  border: 2px solid #ddd;
  border-radius: 50px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-mid);
  cursor: pointer;
  transition: background 0.15s ease;
  font-family: inherit;
}
.btn-retry:hover { background: #f9f9f9; }

/* CTA フッター */
.cta-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
}
.footer-link { color: var(--primary); text-decoration: none; }
.footer-link:hover { text-decoration: underline; }
.footer-sep { color: #ddd; }

/* ========================================
   トースト通知
   ======================================== */
.toast-notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(50, 50, 50, 0.9);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.toast-notification.toast-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ========================================
   管理画面（admin）
   ======================================== */
.admin-page { max-width: 900px; margin: 0 auto; padding: 20px; font-family: inherit; }
.admin-header { background: linear-gradient(135deg, #2D2D2D, #1a1a2e); color: white; padding: 24px; border-radius: 16px; margin-bottom: 24px; }
.admin-header h1 { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-top: 16px; }
.stat-card { background: rgba(255,255,255,0.1); border-radius: 12px; padding: 16px; text-align: center; }
.stat-value { font-size: 28px; font-weight: 900; }
.stat-label { font-size: 11px; opacity: 0.8; margin-top: 4px; }

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 360px) {
  .answer-mark { font-size: 30px; }
  .answer-label { font-size: 12px; }
  .question-text { font-size: 16px; }
  .result-type-name-big { font-size: 26px; }
  .intro-title { font-size: 30px; }
  .highlight-text { font-size: 40px; }
}

@media (prefers-color-scheme: dark) {
  /* ダークモード（オプション） */
}

/* ========================================
   アクセシビリティ
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* ========================================
   質問画面：タイプ画像ヒント
   ======================================== */
.q-type-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.q-type-hint-img {
  width: 100%;
  max-width: 220px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.q-type-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid;
  letter-spacing: 0.02em;
}

/* ========================================
   結果①：大きなタイプ画像カード
   ======================================== */
.result-image-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 10px;
}
.result-type-image-large {
  width: 100%;
  max-width: 340px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.14);
}
.result-image-caption {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-mid);
  margin-top: 10px;
  letter-spacing: 0.02em;
}

/* ========================================
   結果②：Before / After 比較カード
   ======================================== */
.result-compare-card {
  padding: 20px 16px;
}
.result-compare-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.compare-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.compare-label {
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.08em;
}
.compare-label-before {
  background: #FFE0E0;
  color: #C0392B;
}
.compare-label-after {
  background: #E0F7F0;
  color: #1E8449;
}
.compare-img {
  width: 100%;
  max-width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.compare-name {
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}
.compare-after-name {
  color: #1ABC9C;
}
.compare-arrow {
  font-size: 28px;
  font-weight: 900;
  color: #FF6B9D;
  flex-shrink: 0;
}

@media (max-width: 360px) {
  .compare-img { height: 110px; }
  .q-type-hint-img { height: 110px; }
}

/* ---- 画像ラッパー・プレースホルダー ---- */
.result-img-wrapper,
.compare-img-wrapper {
  position: relative;
  width: 100%;
}
.result-img-wrapper { min-height: 200px; }

.img-placeholder {
  width: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #FFF0F5, #FFF5F8);
  border-radius: 12px;
  border: 2px dashed #FFB3D1;
  padding: 24px;
}
.img-placeholder-emoji { font-size: 64px; }
.img-placeholder-name  { font-size: 16px; font-weight: 800; color: #FF6B9D; }
.img-placeholder-note  { font-size: 12px; color: #aaa; }

.compare-placeholder {
  width: 100%;
  max-width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, #FFF0F5, #FFF5F8);
  border-radius: 10px;
  border: 2px dashed #FFB3D1;
}

/* plan-badge-nb 非表示（料金削除） */
.plan-badge-nb { display: none !important; }

/* ========================================
   インライン画像・比較グリッド
   ======================================== */
.type-image-inline {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #f0f0f0;
}
.type-image-inline img {
  display: block;
  width: 100%;
  height: auto;
}
.compare-img-svg {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}
.compare-img-svg img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.compare-grid-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.compare-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 140px;
}
.compare-col .compare-label {
  display: inline-block;
}
.compare-col > div[style] {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.compare-col > div[style] svg {
  display: block;
  width: 100%;
  height: 100%;
}
.compare-img-svg svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ========================================
   CTA 起業・副業バッジ
   ======================================== */
.cta-money-badge {
  display: block;
  background: linear-gradient(90deg, #F39C12, #E67E22);
  color: white;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  padding: 10px 20px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(243,156,18,0.35);
  letter-spacing: 0.5px;
}

/* ========================================
   導入画面 完全リニューアル
   ======================================== */
.screen-intro {
  min-height: 100vh;
  background: linear-gradient(180deg, #FFF0F5 0%, #FFF5F8 60%, #FFF0F5 100%);
  position: relative;
  overflow: hidden;
}

/* 背景サークル */
.intro-bg-deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.bg-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
}
.bc1 { width: 320px; height: 320px; background: #FF6B9D; top: -80px;  right: -80px; }
.bc2 { width: 220px; height: 220px; background: #FF8E53; bottom: 80px; left: -60px; }
.bc3 { width: 160px; height: 160px; background: #F5C518; top: 45%;    right: -40px; }

.intro-content {
  position: relative;
  z-index: 1;
  padding: 24px 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ブランドロゴ */
.intro-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-bottom: 28px;
}
.intro-brand-icon { font-size: 22px; }
.intro-brand-name { font-size: 13px; font-weight: 600; color: #666; }

/* 無料バッジ */
.intro-free-badge {
  display: inline-block;
  background: linear-gradient(90deg, #FF6B9D, #FF8E53);
  color: white;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 20px;
  border-radius: 30px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(255,107,157,0.35);
}

/* メインタイトル */
.intro-main-title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.2;
  color: #2D2D2D;
  margin-bottom: 16px;
}
.intro-title-highlight {
  display: block;
  font-size: 60px;
  background: linear-gradient(90deg, #FF6B9D, #FF8E53);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.intro-main-sub {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 24px;
}
.intro-main-sub strong { color: #FF6B9D; font-weight: 800; }

/* バッジ3つ */
.intro-badge-row {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.intro-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1.5px solid #FFB3D1;
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #FF6B9D;
  box-shadow: 0 2px 8px rgba(255,107,157,0.12);
}
.ib-icon { font-size: 15px; }

/* タイプ一覧 */
.intro-type-list {
  width: 100%;
  background: white;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(255,107,157,0.1);
}
.intro-type-list-title {
  font-size: 13px;
  font-weight: 700;
  color: #999;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.intro-type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.intro-type-chip {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 30px;
  border: 1.5px solid;
  white-space: nowrap;
}

/* スタートボタン */
.intro-start-btn {
  width: 100%;
  max-width: 360px;
  background: linear-gradient(135deg, #FF6B9D, #FF8E53);
  color: white;
  border: none;
  border-radius: 60px;
  padding: 22px 32px;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(255,107,157,0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.intro-start-btn:hover  { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(255,107,157,0.55); }
.intro-start-btn:active { transform: translateY(0) scale(0.98); }

.intro-privacy-note  { font-size: 12px; color: #aaa; margin-bottom: 16px; }
.intro-disclaimer    { font-size: 11px; color: #bbb; line-height: 1.6; max-width: 320px; }

/* ========== Before/After比較画像 ========== */
.compare-img-box {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}
.compare-img-box img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ========== 相関図・ハナマルカード ========== */
.extra-img-card {
  padding: 16px;
}
.extra-img-desc {
  font-size: 13px;
  color: var(--text-light);
  margin: 0 0 8px;
}
.hanamaru-card {
  padding: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

/* ========== 画像タップ拡大 ========== */
.type-img-wrapper {
  position: relative;
  display: block;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.type-img-wrapper:active { opacity: 0.85; }
.img-zoom-hint {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  pointer-events: none;
  letter-spacing: 0.5px;
}

/* モーダルオーバーレイ */
#img-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
#img-modal-overlay.img-modal-visible { opacity: 1; }
#img-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
}
#img-modal-box {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
#img-modal-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
#img-modal-close {
  background: white;
  border: none;
  border-radius: 50px;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 700;
  color: #333;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
