/* ============================================================
   Melt診断 - Korean-style Glassmorphism Design
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
.no-break-after-comma { white-space: nowrap; }

:root {
  --pink: #d4a0a0;
  --pink-light: #f2e0e0;
  --lavender: #b8a9c9;
  --lavender-light: #ede8f5;
  --sage: #a8c5a0;
  --sage-light: #e4f0e2;
  --accent: #c48b9f;
  --accent-light: #f5e6ec;
  --accent-border: #e0c4cf;
  --bg-start: #f8f0f4;
  --bg-end: #ece4f0;
  --card-bg: rgba(255, 255, 255, 0.55);
  --card-border: rgba(255, 255, 255, 0.6);
  --text: #222222;
  --text-sub: #444444;
  --text-light: #a0a0a0;
  --shadow: 0 4px 24px rgba(180, 140, 160, 0.12);
  --radius: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px;
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

/* ===== 背景のぼかし円 ===== */
.bg-blur-circle {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}
.c1 { width: 300px; height: 300px; background: var(--pink); top: -80px; left: -60px; }
.c2 { width: 250px; height: 250px; background: var(--lavender); bottom: 10%; right: -40px; }
.c3 { width: 200px; height: 200px; background: var(--sage); bottom: -60px; left: 30%; }

.container { width: 100%; max-width: 720px; margin: 0 auto; padding: 0; flex: 1; position: relative; z-index: 1; }

/* ===== 言語ドロップダウン ===== */
.lang-dropdown {
  position: relative;
}
.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}
.lang-dropdown-btn:hover { background: rgba(255,255,255,0.8); }
.lang-arrow { transition: transform 0.3s ease; }
.lang-dropdown.open .lang-arrow { transform: rotate(180deg); }
.lang-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(180, 140, 160, 0.15);
  list-style: none;
  padding: 6px 0;
  min-width: 140px;
  z-index: 200;
}
.lang-dropdown.open .lang-dropdown-menu { display: block; }
.lang-dropdown-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 16px;
  background: none;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease;
}
.lang-dropdown-menu button:hover {
  background: var(--accent-light);
}

/* ===== ナビ右側（言語+ハンバーガー） ===== */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== グラスモーフィズムカード共通 ===== */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===== 画面切り替え ===== */
.screen { display: none; }
.screen.active {
  display: block;
  animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== フェードインカード（結果画面で順次表示） ===== */
.fade-in-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== スタート画面 ===== */
.start-card {
  padding: 56px 28px 44px;
  text-align: center;
}
.start-emoji { font-size: 3.5rem; margin-bottom: 12px; }
.app-title {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.catchcopy {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 16px;
  white-space: pre-line;
}
.subtitle {
  color: var(--text-sub);
  font-size: 0.85rem;
  line-height: 1.8;
  margin-bottom: 8px;
  white-space: pre-line;
}
.time-info {
  color: var(--text-light);
  font-size: 0.78rem;
  margin-bottom: 32px;
}

/* ===== ハイライトバー（診断の特徴） ===== */
.lp-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.lp-highlight-chip {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pink);
  background: var(--accent-light, rgba(200, 130, 170, 0.12));
  border: 1px solid rgba(200, 130, 170, 0.25);
  border-radius: 20px;
  white-space: nowrap;
}

/* ===== ボタン共通 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 40px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(180, 140, 160, 0.2);
}
.btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 2px 8px rgba(180, 140, 160, 0.15);
}
.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  color: white;
  font-size: 1.05rem;
  padding: 18px 56px;
  box-shadow: 0 6px 20px rgba(212, 160, 160, 0.3);
}
.btn-next {
  width: 100%;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  color: white;
  margin-top: 8px;
  box-shadow: 0 4px 16px rgba(212, 160, 160, 0.25);
}
.btn-retry {
  width: 100%;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  color: var(--text);
  border: 2px solid var(--accent-border);
  margin-top: 8px;
}
.btn-retry:hover { border-color: var(--accent); color: var(--accent); }
.btn-back {
  width: 100%;
  background: transparent;
  color: var(--text-sub);
  border: 1px solid var(--accent-border);
  margin-top: 6px;
  font-size: 0.88rem;
  padding: 12px 20px;
}
.btn-back:hover { border-color: var(--accent); color: var(--accent); }
.question-nav-buttons { display: flex; flex-direction: column; gap: 0; }

/* ===== 質問画面トップバー ===== */
.question-top-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.question-top-bar .progress-area {
  flex: 1;
  margin-bottom: 0;
}
.back-link {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 6px 4px;
  transition: color 0.2s ease;
}
.back-link:hover { color: var(--accent); }

/* ===== 質問カテゴリラベル ===== */
.question-category-label {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 8px;
  opacity: 0.8;
}

/* ===== 回答ポイントUI（5点リッカートスケール） ===== */
.answer-points-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 0 4px;
}
.answer-points-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-light);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  opacity: 0.9;
}
.answer-points-label.end-a { color: var(--pink); }
.answer-points-label.end-b { color: var(--lavender); }
.answer-points {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  position: relative;
  padding: 0 4px;
}
/* Track bar behind dots */
.answer-track {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: rgba(180, 160, 180, 0.25);
  border-radius: 2px;
  z-index: 0;
  overflow: hidden;
}
.answer-track-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--lavender));
  border-radius: 2px;
  transition: width 0.25s ease;
}
.answer-point {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease;
  position: relative;
  z-index: 1;
}
.answer-point:hover { transform: scale(1.2); }
.answer-point:active { transform: scale(0.95); }
.point-dot {
  border-radius: 50%;
  background: #ede8ee;
  border: 2px solid #d5cdd8;
  transition: all 0.2s ease;
  display: block;
}
.point-dot.point-lg { width: 32px; height: 32px; }
.point-dot.point-md { width: 26px; height: 26px; }
.point-dot.point-sm { width: 20px; height: 20px; }
.answer-point.selected .point-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(196, 139, 159, 0.5);
  transform: scale(1.15);
}
.answer-point[data-value="1"] .point-dot { border-color: #dbb8b8; }
.answer-point[data-value="10"] .point-dot { border-color: #c4b9d1; }
.answer-point.selected[data-value="1"] .point-dot,
.answer-point.selected[data-value="3"] .point-dot { background: var(--pink); border-color: var(--pink); }
.answer-point.selected[data-value="8"] .point-dot,
.answer-point.selected[data-value="10"] .point-dot { background: var(--lavender); border-color: var(--lavender); }
.answer-hint {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-light);
  margin: 6px 0 12px;
}

/* 質問テキスト左詰め */
.question-card .question-story {
  text-align: left;
}

/* ===== 性別選択画面 ===== */
.gender-card {
  padding: 48px 28px 40px;
  text-align: center;
}
.gender-emoji { font-size: 3rem; margin-bottom: 12px; }
.gender-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 32px;
}
.gender-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.btn-gender {
  width: 100%;
  padding: 18px;
  font-size: 1.05rem;
  border-radius: var(--radius);
  background: white;
  color: var(--text);
  border: 2px solid var(--accent-border);
  transition: all 0.3s ease;
}
.btn-gender:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.btn-gender:active { transform: translateY(1px) scale(0.98); }
.btn-gender-other {
  font-size: 0.9rem;
  padding: 14px;
  border-color: var(--text-light);
  color: var(--text-sub);
}

/* ===== プログレス ===== */
.progress-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.question-number {
  color: var(--text-sub);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.progress-bar {
  flex: 1;
  background: rgba(255,255,255,0.5);
  border-radius: 10px;
  height: 6px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}
.progress-fill {
  background: linear-gradient(90deg, var(--pink), var(--lavender));
  height: 100%;
  border-radius: 10px;
  transition: width 0.4s ease;
  width: 0%;
}

/* ===== 質問カード ===== */
.question-card {
  padding: 28px 22px 24px;
}
.question-story {
  color: var(--text);
  font-size: 0.93rem;
  line-height: 1.9;
  word-break: normal;
  line-break: strict;
  overflow-wrap: break-word;
  margin-bottom: 24px;
  white-space: pre-line;
  min-height: 5.4em;
}

/* ===== 選択肢ボックス ===== */
.choice-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 16px;
}
.choice-a { background: rgba(212, 160, 160, 0.15); border: 1px solid rgba(212, 160, 160, 0.3); }
.choice-b { background: rgba(184, 169, 201, 0.15); border: 1px solid rgba(184, 169, 201, 0.3); margin-bottom: 20px; margin-top: 16px; }
.choice-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: white;
  margin-top: 1px;
}
.choice-a .choice-icon { background: var(--pink); }
.choice-b .choice-icon { background: var(--lavender); }
.choice-text {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.6;
  font-weight: 500;
  min-height: 2.4em;
}

/* ===== スライダー ===== */
.slider-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 2px;
}
.slider-end-label {
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  width: 50px;
  text-align: center;
}
.end-a { color: var(--pink); }
.end-b { color: var(--lavender); }
.slider-container {
  flex: 1;
  position: relative;
  height: 48px;
  display: flex;
  align-items: center;
}
.slider-bg {
  position: absolute;
  left: 0; right: 0;
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--card-border);
  overflow: hidden;
}
.slider-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.15s ease, background 0.3s ease;
  width: 50%;
}
.slider-ticks {
  position: absolute;
  left: 6px; right: 6px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.slider-ticks span {
  width: 2px;
  height: 6px;
  background: rgba(0,0,0,0.06);
  border-radius: 1px;
}
.slider-input {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  left: 0; right: 0;
  width: 100%;
  height: 48px;
  background: transparent;
  cursor: pointer;
  z-index: 2;
  margin: 0;
}
.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 10px rgba(180,140,160,0.25), 0 0 0 3px rgba(212,160,160,0.15);
  cursor: grab;
  transition: transform 0.2s ease;
}
.slider-input::-webkit-slider-thumb:hover { transform: scale(1.15); }
.slider-input:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.1); }
.slider-input::-moz-range-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 2px 10px rgba(180,140,160,0.25), 0 0 0 3px rgba(212,160,160,0.15);
  cursor: grab;
}
.slider-input::-moz-range-track { background: transparent; border: none; height: 8px; }
.slider-feedback {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  margin: 6px 0 2px;
  min-height: 1.2em;
  transition: color 0.3s ease;
}

/* =========================================================
   結果画面
   ========================================================= */
#result-screen { padding-bottom: 20px; }

/* --- シェア用キャプチャ領域 --- */
.share-card-capture {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
}
.result-header-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  border-radius: var(--radius);
  padding: 36px 24px 32px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.result-header-bar::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  pointer-events: none;
}
.result-header-bar::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  pointer-events: none;
}
.result-category-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  opacity: 0.85;
  margin-bottom: 14px;
}
.character-icon-large {
  font-size: 4rem;
  margin-bottom: 12px;
  line-height: 1;
}
.result-type-name {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 12px;
}
.result-catchphrase {
  font-size: 0.88rem;
  opacity: 0.92;
  line-height: 1.6;
  font-weight: 500;
}
.share-card-watermark {
  font-size: 0.65rem;
  opacity: 0.5;
  margin-top: 16px;
  letter-spacing: 0.1em;
}

/* --- 結果共通カード --- */
.result-card {
  padding: 22px 20px;
  margin-bottom: 12px;
}
.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-light);
}
.card-icon { font-size: 1.1rem; }
.card-body {
  color: var(--text-sub);
  font-size: 0.86rem;
  line-height: 1.95;
  white-space: pre-line;
}

/* --- 基本性格タグ --- */
.traits-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.traits-list li,
.trait-tag {
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-block;
}

/* --- 辛口あるある --- */
.spicy-card { border-left: 4px solid #e07a5f; }
.spicy-list { list-style: none; }
.spicy-list li {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.7;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
}
.spicy-list li::before {
  content: "🎯";
  flex-shrink: 0;
  font-size: 0.9rem;
}
.spicy-list li:last-child { border-bottom: none; }

/* --- キャラクター + 吹き出し --- */
.character-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 20px;
}
.character-icon {
  font-size: 3.4rem;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 50%;
  border: 3px solid var(--accent-border);
}
.speech-bubble {
  position: relative;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.6;
  flex: 1;
}
.speech-bubble::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: var(--accent-border);
}
.speech-bubble::after {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: var(--accent-light);
}

/* --- 吹き出しのみ（アイコンなし） --- */
.speech-only-card {
  padding: 22px 20px;
}
.speech-bubble-full {
  position: relative;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  padding: 16px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.7;
}
.speech-bubble-full::before,
.speech-bubble-full::after { display: none; }

/* --- 図鑑詳細: アイキャッチ→一言コメント間の余白 --- */
.result-header-bar + .speech-only-card {
  margin-top: 16px;
}

/* --- 恋愛カード --- */
.love-card { border-left: 4px solid var(--pink); }
.love-title { color: var(--pink) !important; }

/* --- 相性 (横並び) --- */
.compat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.compat-card { margin-bottom: 0; padding: 18px 14px; }
.compat-good { border-top: 3px solid var(--sage); }
.compat-good .card-title { color: #6b9e68; }
.compat-bad { border-top: 3px solid var(--pink); }
.compat-bad .card-title { color: #c47a7a; }
.compat-type-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.compat-reason {
  font-size: 0.78rem;
  color: var(--text-sub);
  line-height: 1.7;
}
/* --- 相性キャラカード --- */
.compat-char-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.5);
  border-radius: 14px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.compat-char-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(180, 140, 160, 0.15);
}
.compat-char-icon {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  flex-shrink: 0;
}
.compat-good .compat-char-icon { background: var(--sage-light); }
.compat-bad .compat-char-icon { background: var(--pink-light); }
.compat-char-info { flex: 1; min-width: 0; }
.compat-char-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.compat-char-reason {
  font-size: 0.75rem;
  color: var(--text-sub);
  line-height: 1.5;
}
.compat-char-arrow {
  font-size: 0.85rem;
  color: var(--text-light);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.compat-char-card:hover .compat-char-arrow { transform: translateX(3px); }

/* --- あるある --- */
.episodes-list { list-style: none; }
.episodes-list li {
  color: var(--text-sub);
  font-size: 0.86rem;
  line-height: 1.7;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.episodes-list li::before { content: "👉"; flex-shrink: 0; font-size: 0.85rem; }
.episodes-list li:last-child { border-bottom: none; }

/* --- やるといいこと --- */
.actions-list { list-style: none; counter-reset: action-counter; }
.actions-list li {
  color: var(--text-sub);
  font-size: 0.86rem;
  line-height: 1.7;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  counter-increment: action-counter;
}
.actions-list li::before {
  content: counter(action-counter);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.actions-list li:last-child { border-bottom: none; }

/* --- 比率テーブル --- */
.ratio-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.ratio-table th, .ratio-table td { padding: 9px 10px; text-align: left; border-bottom: 1px solid rgba(0,0,0,0.05); }
.ratio-table thead th { font-weight: 700; color: var(--text-light); font-size: 0.72rem; letter-spacing: 0.04em; }
.ratio-table tbody tr:last-child td { border-bottom: none; }
.ratio-table td { color: var(--text-sub); }
.ratio-bar-cell { width: 42%; }
.ratio-bar { height: 8px; border-radius: 4px; background: rgba(0,0,0,0.05); overflow: hidden; }
.ratio-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--pink), var(--lavender));
  opacity: 0.45;
  transition: width 0.8s ease;
}
.ratio-table tr.current-type td { color: var(--accent); font-weight: 700; }
.ratio-table tr.current-type .ratio-bar-fill { opacity: 1; }

/* ===== シェアボタン群 ===== */
.share-buttons {
  display: flex;
  gap: 12px;
  margin: 16px 0;
}
.share-buttons-grid {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.btn-share {
  width: 48px;
  height: 48px;
  padding: 0;
  font-size: 0;
  border-radius: 50%;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-share span { display: none; }
.btn-share svg { width: 20px; height: 20px; }
.btn-share-x {
  background: #1a1a2e;
  color: white;
  box-shadow: 0 4px 12px rgba(26, 26, 46, 0.2);
}
.btn-share-line {
  background: #06C755;
  color: white;
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.25);
}
.btn-share-insta {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.2);
}
.btn-share-save {
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  color: white;
  box-shadow: 0 4px 12px rgba(212, 160, 160, 0.25);
}
.btn-share svg { flex-shrink: 0; }

/* ===== 広告プレースホルダー ===== */
.ad-space {
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
  border: 2px dashed var(--accent-border);
  border-radius: 16px;
  padding: 28px 16px;
  text-align: center;
  margin: 14px 0;
  color: var(--text-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* ===== アフィリエイト枠 ===== */
.affiliate-card .card-title { border-bottom-color: var(--lavender-light); }
.affiliate-items { display: flex; flex-direction: column; gap: 12px; }
.affiliate-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--card-border);
  transition: transform 0.2s ease;
  cursor: pointer;
}
.affiliate-item:hover { transform: translateY(-2px); }
.affiliate-item-icon {
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 12px;
  flex-shrink: 0;
}
.affiliate-item-info { flex: 1; }
.affiliate-item-name { font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.affiliate-item-desc { font-size: 0.75rem; color: var(--text-sub); line-height: 1.5; }
.affiliate-item-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

/* ===== プレミアム課金CTA ===== */
.premium-cta {
  margin: 20px 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #2d2040, #3d2855, #4a2060);
  padding: 3px;
  box-shadow: 0 8px 32px rgba(60, 30, 80, 0.3);
}
.premium-inner {
  background: linear-gradient(135deg, #2d2040, #3d2855);
  border-radius: calc(var(--radius) - 2px);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.premium-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(196, 139, 159, 0.1) 0%, transparent 60%);
  pointer-events: none;
}
.premium-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #e8c547;
  margin-bottom: 14px;
}
.premium-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  line-height: 1.6;
  margin-bottom: 12px;
}
.premium-price {
  font-size: 1.8rem;
  font-weight: 900;
  color: #e8c547;
  margin-bottom: 20px;
}
.btn-premium {
  background: linear-gradient(135deg, #e8c547, #d4a843);
  color: #2d2040;
  font-size: 1rem;
  padding: 16px 40px;
  box-shadow: 0 4px 16px rgba(232, 197, 71, 0.3);
}
.btn-premium:hover {
  box-shadow: 0 8px 28px rgba(232, 197, 71, 0.4);
}

/* ===== 決済ボタン群 ===== */
.premium-payment-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.premium-payment-buttons .btn-pay {
  font-size: 0.88rem;
  padding: 13px 20px;
  width: 100%;
  text-align: center;
}
.btn-test-skip {
  background: transparent;
  border: 1px dashed rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
  padding: 10px 20px;
  width: 100%;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.3s;
}
.btn-test-skip:hover {
  border-color: rgba(255,255,255,0.6);
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.05);
}

/* ===== セクション大見出し（恋愛・仕事・家庭） ===== */
.section-heading {
  text-align: center;
  padding: 24px 20px 18px;
  margin: 20px 0 8px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.section-heading::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  pointer-events: none;
}
.section-heading-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 6px;
}
.section-heading-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: white;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.section-heading-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

/* 恋愛 - ローズピンク系パステル */
.section-heading-love {
  background: linear-gradient(135deg, #e8a0b4, #d4a0c8);
  box-shadow: 0 4px 20px rgba(232, 160, 180, 0.25);
}

/* 仕事 - ラベンダーブルー系パステル */
.section-heading-work {
  background: linear-gradient(135deg, #9db8d4, #a8b0d8);
  box-shadow: 0 4px 20px rgba(157, 184, 212, 0.25);
}

/* 家庭 - セージグリーン系パステル */
.section-heading-home {
  background: linear-gradient(135deg, #a0c8a8, #8cbfa0);
  box-shadow: 0 4px 20px rgba(160, 200, 168, 0.25);
}

/* ===== プレミアム大見出し ===== */
.premium-heading {
  text-align: center;
  padding: 32px 24px 24px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #2d2040, #3d2855);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.premium-heading::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(232, 197, 71, 0.08);
  pointer-events: none;
}
.premium-heading-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: #e8c547;
  margin-bottom: 10px;
}
.premium-heading-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.premium-heading-sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* ===== プレミアムコンテンツ（決済後表示） ===== */
.premium-content-area {
  animation: premiumFadeIn 0.6s ease-out;
  overflow: visible;
}
@keyframes premiumFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.premium-reveal-card {
  border-left: 4px solid #e8c547;
  margin-bottom: 20px;
  height: auto;
  min-height: 0;
  overflow: visible;
}
.premium-reveal-card .card-title {
  color: var(--text);
  font-size: 1.05rem;
}
.premium-reveal-card .card-body {
  height: auto;
  max-height: none;
  overflow: visible;
  white-space: normal;
  line-height: 1.9;
  font-size: 0.88rem;
  color: var(--text);
  padding-bottom: 8px;
}
.premium-subheading {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: #e8c547;
  margin-top: 16px;
  margin-bottom: 6px;
  padding-left: 12px;
  border-left: 3px solid #e8c547;
  line-height: 1.4;
}
.premium-download-area {
  text-align: center;
  margin: 20px 0;
}

/* ===== 職業ランキング アコーディオン ===== */
.ratio-ranking-wrapper {
  position: relative;
  max-height: none;
  overflow: hidden;
}
.ratio-ranking-wrapper.collapsed {
  max-height: 480px;
}
.ratio-fade-overlay {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.95));
  pointer-events: none;
  z-index: 2;
}
.ratio-ranking-wrapper.collapsed .ratio-fade-overlay {
  display: block;
}
.ratio-expand-area {
  text-align: center;
  margin-top: 8px;
}
.btn-ratio-expand {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  color: var(--accent);
  border: 2px solid var(--accent-border);
  font-size: 0.82rem;
  padding: 12px 28px;
}
.btn-ratio-expand:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}
.ratio-table .rank-cell {
  font-weight: 800;
  color: var(--text-light);
  width: 32px;
  text-align: center;
}
.ratio-table tr.my-type td {
  color: var(--accent) !important;
  font-weight: 700 !important;
}
.ratio-table tr.my-type .ratio-bar-fill { opacity: 1 !important; }
.my-type-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  color: white;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ===== 隠し診断書（ダウンロード専用） ===== */
.secret-report {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 680px;
  background: linear-gradient(170deg, #faf8f5 0%, #f0ece6 100%);
  font-family: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: #2a2a2a;
  font-size: 22px;
  line-height: 1.9;
  padding: 0;
  overflow: visible;
}
.sr-header {
  background: linear-gradient(135deg, #2d2040, #3d2855);
  padding: 52px 48px 44px;
  text-align: center;
  position: relative;
}
.sr-stamp {
  display: inline-block;
  border: 3px solid rgba(232,197,71,0.7);
  color: #e8c547;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.35em;
  padding: 8px 28px;
  border-radius: 4px;
  margin-bottom: 22px;
  transform: rotate(-3deg);
}
.sr-title {
  font-size: 34px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin-bottom: 18px;
}
.sr-date {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
}
.sr-section {
  padding: 40px 48px;
}
.sr-summary {
  text-align: center;
  padding-top: 48px;
  padding-bottom: 44px;
  background: rgba(212,160,160,0.06);
}
.sr-character {
  font-size: 5rem;
  margin-bottom: 18px;
  line-height: 1;
}
.sr-type-name {
  font-size: 32px;
  font-weight: 900;
  color: #3a3a3a;
  margin-bottom: 12px;
}
.sr-catchphrase {
  font-size: 18px;
  color: #6b6b6b;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 22px;
}
.sr-traits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.sr-traits span {
  background: rgba(196,139,159,0.15);
  border: 1px solid rgba(196,139,159,0.3);
  color: #c48b9f;
  font-size: 16px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 20px;
}
.sr-divider {
  height: 1px;
  margin: 0 48px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}
.sr-section-title {
  font-size: 26px;
  font-weight: 800;
  color: #3a3a3a;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(196,139,159,0.2);
}
.sr-body {
  font-size: 22px;
  line-height: 1.95;
  color: #4a4a4a;
  white-space: pre-line;
  text-align: justify;
  overflow: visible;
  height: auto;
}
.sr-footer {
  background: linear-gradient(135deg, #2d2040, #3d2855);
  padding: 32px 48px;
  text-align: center;
}
.sr-watermark {
  font-size: 18px;
  font-weight: 800;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.2em;
  margin-bottom: 6px;
}
.sr-footer-note {
  font-size: 13px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.03em;
}

/* ===== グローバルナビゲーション ===== */
.global-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 2px 16px rgba(180, 140, 160, 0.08);
}
.nav-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 54px;
}
.nav-logo {
  font-size: 1.1rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-sub);
  font-size: 0.78rem;
  font-weight: 600;
  transition: color 0.3s ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--accent); }

/* ハンバーガーメニュー（モバイル用） */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 92;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: absolute;
  left: 6px;
  transition: all 0.3s ease;
}
.nav-hamburger span:nth-child(1) { top: 9px; }
.nav-hamburger span:nth-child(2) { top: 15px; }
.nav-hamburger span:nth-child(3) { top: 21px; }
.nav-hamburger.open span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { top: 15px; transform: rotate(-45deg); }

/* bodyのpadding-top（ナビ分） */
body.has-nav { padding-top: 70px; }

/* ===== グローバルフッター ===== */
.global-footer {
  width: 100%;
  max-width: 720px;
  margin: 24px auto 0;
  padding: 32px 20px 24px;
  text-align: center;
  border-top: 1px solid var(--card-border);
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin-bottom: 16px;
}
.footer-links a {
  text-decoration: none;
  color: var(--text-sub);
  font-size: 0.75rem;
  font-weight: 600;
  transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
  margin-top: 12px;
  display: block;
}
.footer-producer-link {
  color: var(--text-sub);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}
.footer-producer-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ===== LP風 解説セクション ===== */
.lp-section {
  margin-top: 32px;
}
.lp-card {
  padding: 32px 24px;
  margin-bottom: 16px;
}
.lp-card h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  text-align: center;
  line-height: 1.6;
}
.lp-card p {
  color: var(--text-sub);
  font-size: 0.86rem;
  line-height: 2;
}
.lp-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}
.lp-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--card-border);
  border-radius: 16px;
}
.lp-feature-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 14px;
}
.lp-feature-body h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.lp-feature-body p {
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--text-sub);
}

/* ===== サブページ共通 ===== */
.subpage-body {
  font-family: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 70px 16px 16px;
  width: 100%;
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}
.subpage-container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  position: relative;
  z-index: 1;
}
.subpage-card {
  padding: 36px 28px;
  margin-bottom: 16px;
}
.subpage-card h1 {
  font-size: 1.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  text-align: center;
}
.subpage-card h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-light);
}
.subpage-card p,
.subpage-card li {
  color: var(--text-sub);
  font-size: 0.85rem;
  line-height: 2;
}
.subpage-card ul {
  list-style: none;
  padding-left: 0;
}
.subpage-card ul li::before {
  content: "・";
  color: var(--accent);
  font-weight: 700;
}

/* お問い合わせフォーム */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 0.88rem;
  font-family: inherit;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 139, 159, 0.15);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}
.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  color: white;
  font-size: 1rem;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(212, 160, 160, 0.25);
}

/* Aboutページ プロフィールカード */
.about-profile {
  text-align: center;
  margin-bottom: 24px;
}
.about-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
}
.about-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.about-role {
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
}

/* ===== レスポンシブ ===== */
@media (max-width: 480px) {
  body { padding: 12px; }
  .start-card { padding: 40px 20px 32px; }
  .app-title { font-size: 1.7rem; }
  .catchcopy { font-size: 0.88rem; }
  .question-card { padding: 22px 16px 20px; }
  .question-story { font-size: 0.88rem; }
  .choice-box { padding: 12px 14px; }
  .choice-text { font-size: 0.84rem; }
  .slider-end-label { font-size: 0.62rem; width: 42px; }

  .result-header-bar { padding: 28px 16px 24px; }
  .result-type-name { font-size: 1.35rem; }
  .character-icon-large { font-size: 3.2rem; }
  .result-card { padding: 18px 16px; }
  .card-title { font-size: 0.86rem; }
  .traits-list li, .trait-tag { font-size: 0.78rem; padding: 5px 12px; }

  .character-card { flex-direction: column; text-align: center; }
  .character-icon { width: 80px; height: 80px; font-size: 2.8rem; }
  .speech-bubble::before, .speech-bubble::after { display: none; }

  .compat-row { grid-template-columns: 1fr; }
  .compat-card { margin-bottom: 0; }
  .compat-card .card-title { font-size: 0.8rem; }

  .share-buttons-grid { display: flex; justify-content: center; gap: 10px; }
  .btn-share { width: 44px; height: 44px; }

  .gender-card { padding: 40px 20px 32px; }
  .premium-inner { padding: 28px 20px; }
  .premium-title { font-size: 0.95rem; }
  .premium-heading-title { font-size: 1.25rem; }
  .section-heading { padding: 20px 16px 14px; margin: 16px 0 6px; }
  .section-heading-title { font-size: 1rem; }
  .section-heading-icon { font-size: 1.5rem; }

  /* サブページ */
  .subpage-body { padding-top: 62px; }
  .subpage-card { padding: 28px 20px; }
  .subpage-card h1 { font-size: 1.2rem; }

  /* LP */
  .lp-card { padding: 24px 18px; }
  .lp-card h2 { font-size: 1.05rem; }
}

/* ===== タブレット＆スマホ ナビ ===== */
@media (max-width: 768px) {
  .nav-hamburger { display: block; }
  .nav-links {
    display: none;
    position: fixed;
    top: 54px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px 24px 20px;
    gap: 0;
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 8px 24px rgba(180, 140, 160, 0.1);
    z-index: 91;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(0,0,0,0.04); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 0.88rem;
  }
}

/* ============================================================
   記事ページ専用スタイル
   ============================================================ */

/* パンくずリスト */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 20px;
  padding: 0;
}
.breadcrumb li::after {
  content: ">";
  margin-left: 6px;
  color: var(--text-light);
}
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a {
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.3s;
}
.breadcrumb a:hover { color: var(--accent); }

/* 記事ヘッダーボックス（CSS-onlyリッチヘッダー） */
.article-header-box {
  background: linear-gradient(135deg, var(--accent-light), var(--lavender-light));
  border-radius: 16px;
  padding: 32px 28px 28px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.article-header-box::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  pointer-events: none;
}
.article-header-box::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  pointer-events: none;
}
.article-header-box .article-header-emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
}
.article-header-box h1 {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 10px;
  position: relative;
}
.article-header-box .article-meta {
  justify-content: center;
  margin-bottom: 0;
}

/* 目次ボックス */
.article-toc {
  margin: 1.5rem 0 2rem;
  padding: 20px 24px;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--card-border);
  border-radius: 16px;
}
.article-toc-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.article-toc ol {
  list-style: none;
  padding: 0;
  counter-reset: toc-counter;
}
.article-toc ol li {
  counter-increment: toc-counter;
  padding: 6px 0;
  font-size: 0.84rem;
  line-height: 1.6;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.article-toc ol li:last-child { border-bottom: none; }
.article-toc ol li::before {
  content: counter(toc-counter) ".";
  color: var(--accent);
  font-weight: 700;
  margin-right: 8px;
}
.article-toc ol li a {
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.3s;
}
.article-toc ol li a:hover { color: var(--accent); }

/* 記事本文ラッパー */
.article-content {
  line-height: 1.9;
}
.article-content p {
  margin-bottom: 1.5em;
}

/* H2 装飾 */
.article-content h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(212,160,160,0.1), rgba(184,169,201,0.1));
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
}

/* H3 装飾 */
.article-content h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.8rem 0 0.8rem;
  padding-left: 12px;
  border-left: 3px solid var(--lavender);
}

/* アイキャッチ画像 */
.article-eyecatch {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--accent-light), var(--lavender-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 24px;
  overflow: hidden;
}
.article-eyecatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* ハイライトテキスト（黄色マーカー風） */
.article-content .highlight {
  background: linear-gradient(transparent 60%, rgba(255,230,100,0.4) 60%);
  padding: 0 2px;
  font-weight: 600;
}

/* 引用ブロック */
.article-content blockquote {
  margin: 1.5rem 0;
  padding: 16px 20px;
  background: rgba(184,169,201,0.08);
  border-left: 4px solid var(--lavender);
  border-radius: 0 12px 12px 0;
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.9;
}
.article-content blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-light);
  font-style: normal;
}

/* まとめボックス */
.summary-box {
  margin: 2rem 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(212,160,160,0.08), rgba(184,169,201,0.08));
  border: 1px solid var(--accent-border);
  border-radius: 16px;
}
.summary-box h3 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 12px 0;
  padding: 0;
  border: none;
}
.summary-box ul {
  list-style: none;
  padding: 0;
}
.summary-box ul li {
  font-size: 0.85rem;
  line-height: 1.9;
  padding: 4px 0;
  color: var(--text-sub);
}
.summary-box ul li::before {
  content: "\2713";
  color: var(--accent);
  font-weight: 700;
  margin-right: 8px;
}

/* 参考文献リスト */
.reference-list {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.reference-list h3 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
  padding: 0;
  border: none;
}
.reference-list ul {
  list-style: none;
  padding: 0;
}
.reference-list ul li {
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-light);
  padding: 2px 0;
}
.reference-list ul li::before {
  content: "\2022";
  margin-right: 6px;
}
.reference-list a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent);
  transition: opacity 0.3s;
}
.reference-list a:hover { opacity: 0.7; }

/* 著者プロフィールボックス */
.author-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 2.5rem 0 1.5rem;
  padding: 20px 24px;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--card-border);
  border-radius: 16px;
}
.author-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), var(--lavender-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  border: 2px solid var(--accent-border);
}
.author-info { flex: 1; }
.author-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.author-desc {
  font-size: 0.78rem;
  color: var(--text-sub);
  line-height: 1.6;
}

/* 記事 信頼補強フッター */
.article-trust-footer {
  margin: 1.5rem 0;
  padding: 14px 18px;
  background: rgba(255,255,255,0.35);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  font-size: 0.76rem;
  color: var(--text-sub);
  line-height: 1.7;
}
.article-trust-footer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(196,139,159,0.3);
}

/* 関連記事カード */
.related-articles {
  margin: 2rem 0;
}
.related-articles-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-light);
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.related-card {
  padding: 16px;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(180,140,160,0.15);
}
.related-card-emoji {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 8px;
}
.related-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 6px;
}
.related-card-excerpt {
  font-size: 0.72rem;
  color: var(--text-sub);
  line-height: 1.5;
}

/* 記事一覧グリッド */
.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 2rem;
}
.article-card {
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(180,140,160,0.18);
}
.article-card-eyecatch {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--accent-light), var(--lavender-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.article-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 8px;
}
.article-card-excerpt {
  font-size: 0.78rem;
  color: var(--text-sub);
  line-height: 1.6;
  flex: 1;
}
.article-card-date {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 8px;
  display: none;
}

/* 記事メタ情報 */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

/* 結果ページ パンくず */
.result-breadcrumb {
  position: relative;
  z-index: 10;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .article-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; text-align: center; gap: 12px; }
}
@media (max-width: 480px) {
  .article-content h2 { font-size: 1rem; padding: 10px 14px; }
  .article-content h3 { font-size: 0.9rem; }
  .article-eyecatch { aspect-ratio: 16 / 10; font-size: 2.5rem; }
  .summary-box { padding: 16px 18px; }
  .article-header-box { padding: 24px 20px 20px; }
  .article-header-box h1 { font-size: 1.05rem; }
  .article-card-eyecatch { font-size: 2rem; }
  .article-toc { padding: 16px 18px; }
}

/* ===== 相性リンク ===== */
.compat-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, color 0.25s ease;
  font-size: 0.88rem;
}
.compat-link:hover {
  transform: translateX(4px);
  color: var(--pink);
}
.link-arrow {
  font-size: 0.75rem;
  opacity: 0.6;
  transition: opacity 0.25s ease, transform 0.25s ease;
  margin-left: auto;
}
.compat-link:hover .link-arrow {
  opacity: 1;
  transform: translateX(2px);
}
.compat-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.compat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(180, 140, 160, 0.18);
}

/* ===== 60タイプ一覧セクション（index.html） ===== */
.type-list-wrapper {
  position: relative;
  overflow: hidden;
  max-height: none;
}
.type-list-wrapper.collapsed {
  max-height: 400px;
}
.type-fade-overlay {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.95));
  pointer-events: none;
  z-index: 2;
}
.type-list-wrapper.collapsed .type-fade-overlay {
  display: block;
}
.type-category-heading {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  margin: 20px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent-light);
  display: flex;
  align-items: center;
  gap: 6px;
}
.type-category-heading:first-child {
  margin-top: 0;
}
.type-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  font-size: 0.85rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.type-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(180, 140, 160, 0.12);
}
.type-item-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}
.type-item-name {
  font-weight: 700;
  color: var(--text);
}
.type-item-catch {
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-left: auto;
  text-align: right;
  flex-shrink: 0;
  max-width: 50%;
  line-height: 1.4;
}
.type-expand-area {
  text-align: center;
  margin-top: 12px;
}
.btn-type-expand {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  color: var(--accent);
  border: 2px solid var(--accent-border);
  font-size: 0.85rem;
  padding: 12px 32px;
}
.btn-type-expand:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}

/* ===== 結果ページ おすすめコラムセクション ===== */
.result-articles-section {
  margin-top: 24px;
  padding: 24px 20px;
}
.result-articles-section .card-title {
  margin-bottom: 4px;
}
.result-articles-section .card-subtitle {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 14px 0;
  font-weight: 400;
}
.result-article-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.result-article-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.result-article-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(180, 140, 160, 0.15);
}
.result-article-emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.result-article-info {
  flex: 1;
}
.result-article-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 2px;
}
.result-article-desc {
  font-size: 0.75rem;
  color: var(--text-sub);
  line-height: 1.4;
}
.result-article-arrow {
  color: var(--accent);
  font-size: 0.85rem;
  opacity: 0.6;
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.result-article-link:hover .result-article-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* ===== LP コラムカードグリッド ===== */
.lp-article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.lp-article-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.lp-article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(180, 140, 160, 0.15);
}
.lp-article-card-emoji {
  font-size: 2rem;
  margin-bottom: 8px;
}
.lp-article-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}

/* 記事内インラインリンク */
.article-content a.inline-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 139, 159, 0.4);
  transition: border-color 0.3s ease, color 0.3s ease;
  font-weight: 600;
}
.article-content a.inline-link:hover {
  color: var(--pink);
  border-bottom-color: var(--pink);
}

/* ===== LP サイト案内リンクグリッド ===== */
.lp-nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.lp-nav-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.lp-nav-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(180, 140, 160, 0.12);
}
.lp-nav-link-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.lp-nav-link-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.lp-nav-link-text small {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-sub);
  margin-top: 2px;
}

@media (max-width: 600px) {
  .lp-article-grid { grid-template-columns: 1fr; }
  .lp-nav-links { grid-template-columns: 1fr; }
  .type-item-catch { display: none; }
}
@media (max-width: 480px) {
  .lp-article-grid { grid-template-columns: 1fr; }
  .result-article-link { padding: 12px 14px; }
}

/* ===== シェアカード パンチライン ===== */
.share-punchline {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 90% !important;
  max-width: 500px !important;
  margin: 10px auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 12px 20px !important;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4 !important;
  color: #fff;
  text-align: center !important;
  word-break: break-word !important;
  background: linear-gradient(135deg, rgba(196,139,159,0.55), rgba(160,130,200,0.45));
  border-radius: 8px !important;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 2px 12px rgba(180,140,160,0.18);
  position: relative;
  overflow: hidden;
  box-sizing: border-box !important;
}
/* アイコン(🔥)とのバランス調整 */
.share-punchline::before {
  content: "🔥";
  font-size: 1.1rem;
  opacity: 0.7;
  margin-right: 8px !important;
  flex-shrink: 0 !important;
}
.share-punchline:empty {
  display: none;
}

/* ============================================================
   AdSense審査期間中：課金エリア非表示
   ============================================================ */
.premium-cta,
.premium-content-area,
#premium-cta,
#premium-content-area,
.btn-test-skip,
.ad-space,
.lang-dropdown {
  display: none !important;
}

/* ============================================================
   統一タイポグラフィ（サブページ共通）
   ============================================================ */
.subpage-card h1 {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.6;
  margin-bottom: 28px;
}
.subpage-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.7;
  margin: 28px 0 12px;
}
.subpage-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.7;
  margin: 20px 0 8px;
}
.subpage-card p {
  font-size: 0.88rem;
  line-height: 2;
  margin-bottom: 12px;
}

/* ============================================================
   クチコミ（ユーザーの声）カード
   ============================================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.testimonial-card {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
}
.testimonial-avatar {
  font-size: 2rem;
  margin-bottom: 8px;
}
.testimonial-text {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.8;
  font-weight: 500;
  margin-bottom: 8px;
}
.testimonial-user {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 600;
}
@media (max-width: 600px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FAQ抜粋（トップページ用）
   ============================================================ */
.lp-faq-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.lp-faq-item {
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.lp-faq-q {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.lp-faq-a {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.8;
}

/* ===== FAQアコーディオン専用スタイル ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.faq-item {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  transition: background 0.3s ease;
}
.faq-item:hover {
  background: rgba(255, 255, 255, 0.85);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  font-family: inherit;
  text-align: left;
}
.faq-q-mark {
  color: var(--pink);
  font-size: 1.2rem;
  font-weight: 900;
  margin-right: 12px;
  flex-shrink: 0;
}
.faq-question-text {
  flex: 1;
  line-height: 1.5;
}
.faq-icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--text-light);
  transition: transform 0.3s ease;
  border-radius: 2px;
}
.faq-icon::before { top: 9px; left: 2px; right: 2px; height: 2px; }
.faq-icon::after { top: 2px; bottom: 2px; left: 9px; width: 2px; }
.faq-item.open .faq-icon::after { transform: rotate(90deg) scale(0); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner {
  padding: 0 20px 20px 48px;
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.8;
}

/* ============================================================
   目次（TOC）
   ============================================================ */
.toc {
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 24px;
}
.toc-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc-list li {
  margin-bottom: 6px;
}
.toc-list a {
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  line-height: 1.8;
  transition: opacity 0.2s;
}
.toc-list a:hover { opacity: 0.7; }
.toc-list li::before {
  content: "📌 ";
  font-size: 0.7rem;
}

/* ============================================================
   セクション区切りカード（静的ページ用）
   ============================================================ */
.section-divider {
  background: rgba(255,255,255,0.4);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px 22px;
  margin: 24px 0;
}
.section-divider h2 {
  margin-top: 0 !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

/* ============================================================
   ピックアップ記事（articles.html用）
   ============================================================ */
.pickup-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, rgba(212,160,160,0.12), rgba(184,169,201,0.12));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pickup-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(180, 140, 160, 0.15);
}
.pickup-eyecatch {
  font-size: 3.5rem;
  flex-shrink: 0;
}
.pickup-body { flex: 1; }
.pickup-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}
.pickup-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 6px;
}
.pickup-excerpt {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.7;
}
@media (max-width: 480px) {
  .pickup-card { flex-direction: column; text-align: center; }
}

/* カテゴリタグ */
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.category-tag {
  display: inline-block;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--accent-border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.category-tag:hover,
.category-tag.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* インラインカテゴリタグ（記事カード内） */
.category-tag-inline {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  margin-right: 6px;
}
.article-card-tags {
  margin-bottom: 6px;
}

/* ピックアップ メタ情報 */
.pickup-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

/* 記事一覧見出し */
.article-list-heading {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin: 28px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(212,160,160,0.2);
}

/* ============================================================
   キャラクター図鑑ハブページ（results/type.html）
   ============================================================ */
.type-index-eyecatch {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  margin-bottom: 32px;
  padding: 32px 24px;
  background: linear-gradient(135deg, rgba(212,160,160,0.18), rgba(184,169,201,0.18), rgba(169,198,176,0.12));
  border-radius: 16px;
  text-align: center;
  overflow: hidden;
}
.type-index-eyecatch::before {
  content: "🎭 💻 🎨 💼 📚 🍳 ⚡ 💕 🔮 👑";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.8rem;
  letter-spacing: 12px;
  opacity: 0.12;
  white-space: nowrap;
  pointer-events: none;
}
.type-index-eyecatch h1 {
  font-size: 1.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  position: relative;
}
.type-index-eyecatch p {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.7;
  position: relative;
  text-align: left;
}

/* カテゴリナビ */
.category-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 10px;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}
.category-nav::-webkit-scrollbar { height: 4px; }
.category-nav::-webkit-scrollbar-thumb {
  background: rgba(212,160,160,0.3);
  border-radius: 2px;
}
.cat-nav-btn {
  display: inline-block;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.cat-nav-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* タイプグリッド */
.type-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}
@media (min-width: 600px) {
  .type-grid { grid-template-columns: 1fr 1fr; }
}

/* タイプカード */
.type-card {
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.type-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(180, 140, 160, 0.12);
}
.type-card-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}
.type-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.type-card-desc {
  font-size: 0.75rem;
  color: var(--text-sub);
  line-height: 1.5;
  margin-top: 2px;
}

/* カテゴリセクション見出し */
.type-cat-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-top: 28px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(212,160,160,0.15);
}
.type-grid + .type-cat-heading {
  margin-top: 33px !important;
}
.type-cat-desc {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin: 6px 0 0;
}

/* ============================================================
   トップへ戻るボタン
   ============================================================ */
.back-to-top {
  position: fixed; right: 20px; bottom: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.8); border: 1px solid var(--card-border);
  box-shadow: 0 4px 12px rgba(180, 140, 160, 0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--accent);
  cursor: pointer; text-decoration: none;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  z-index: 99; backdrop-filter: blur(8px);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); background: #fff; }

/* ============================================================
   テーブルスタイル（law.html / about.html）
   ============================================================ */
.about-info-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.about-info-table th, .about-info-table td {
  padding: 18px 20px; border-bottom: 1px solid rgba(0,0,0,0.08);
  font-size: 0.9rem; line-height: 1.7; text-align: left;
}
.about-info-table th { font-weight: 700; color: var(--text); width: 28%; white-space: nowrap; background: rgba(212,160,160,0.05); }
.about-info-table td { color: var(--text-sub); }

/* ============================================================
   UI/UX 完全統一パッチ（カラム幅・フォント・被り修正）
   ============================================================ */
/* 1. コンテナ幅の完全統一（720px） */
.container,
.subpage-container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  position: relative;
  z-index: 1;
}
.nav-inner {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 54px;
}
.global-footer {
  width: 100%;
  max-width: 720px;
  margin: 24px auto 0;
  padding: 32px 20px 24px;
  text-align: center;
  border-top: 1px solid var(--card-border);
}

/* 2. bodyの挙動統一（全ページ共通） */
body, .subpage-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 70px 16px 16px;
  width: 100%;
  min-height: 100vh;
}
body.has-nav { padding-top: 70px; }

/* 3. カードの幅とフォントの統一 */
.start-card, .question-card, .lp-card, .subpage-card, .result-card {
  width: 100%;
  box-sizing: border-box;
}
.app-title { font-size: 2.2rem; }
.catchcopy, .question-story { font-size: 1.05rem; line-height: 1.8; }
.subpage-card p, .subpage-card li { font-size: 0.95rem; line-height: 1.9; }

/* 4. 図鑑（ハブページ）のパンくずリスト被り修正 */
.result-breadcrumb {
  position: relative;
  z-index: 10;
  margin-bottom: 8px;
  padding: 10px 0;
}
.type-index-eyecatch {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding: 32px 24px;
}

/* 5. スマホ表示時の調整 */
@media (max-width: 480px) {
  .app-title { font-size: 1.8rem; }
  .catchcopy, .question-story { font-size: 0.95rem; }
  .start-card, .question-card { padding: 32px 20px 24px; }
}

/* ============================================================
   パンくずリスト＆上部余白 最適化パッチ
   ============================================================ */
/* カード上部の余白を、左右の余白と同じくらいまで詰める */
.subpage-card {
  padding-top: 24px !important;
}

/* パンくずリスト自身の上下余白を狭める */
.breadcrumb,
.result-breadcrumb {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 16px !important;
}

/* 静的ページのH1見出しの上の不要な余白を消す */
.subpage-card h1 {
  margin-top: 0 !important;
}

/* 図鑑ページのアイキャッチ上の余白を消す */
.type-index-eyecatch {
  margin-top: 0 !important;
}

/* スマホ表示時のカード上部余白調整 */
@media (max-width: 480px) {
  .subpage-card {
    padding-top: 20px !important;
  }
}

/* ============================================================
   パンくずリスト上下の余白 完全統一・極小化パッチ
   ============================================================ */
/* 1. カード上辺とパンくずの間の余白を、左右の余白と同じくらい（24px）に詰める */
.subpage-card,
.result-card {
padding-top: 24px !important;
}

/* 2. パンくずを囲むnavタグの余白を完全にゼロにする（二重マージン防止） */
nav[aria-label="パンくずリスト"],
nav.result-breadcrumb {
margin: 0 !important;
padding: 0 !important;
}

/* 3. パンくず本体(ol)の下マージンだけを残し、コラム記事と同じ16pxに固定 */
ol.breadcrumb {
margin-top: 0 !important;
padding-top: 0 !important;
margin-bottom: 16px !important;
}

/* 4. パンくずの直下に来る大見出し(h1)やアイキャッチの不要な上余白を強制リセット */
.subpage-card > h1,
.subpage-card > h2,
.type-index-eyecatch,
.article-header-box {
margin-top: 0 !important;
}

/* ============================================================
   フッター余白＆スマホUI 最適化パッチ
   ============================================================ */
/* 1. フッター上の余白を25px程度に詰める */
.global-footer {
margin-top: 25px !important;
padding-top: 24px !important;
}
.subpage-card:last-child,
.lp-card:last-child {
margin-bottom: 0 !important; /* カード直下の無駄な余白を消す */
}

/* 2. スマホ表示時：コラムカード（lp-article-card）を横並びに変更 */
@media (max-width: 600px) {
.lp-article-card {
flex-direction: row !important;
align-items: center !important;
gap: 16px !important;
padding: 16px !important;
text-align: left !important;
}
.lp-article-card-emoji {
margin-bottom: 0 !important;
font-size: 2.2rem !important;
flex-shrink: 0 !important;
}
.lp-article-card-title {
margin-bottom: 0 !important;
font-size: 0.85rem !important;
}
}

/* ローディングスピナー */
.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: var(--accent, #a78bfa);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: meltia-spin 0.8s linear infinite;
}
@keyframes meltia-spin {
  to { transform: rotate(360deg); }
}
.loading-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main, #fff);
}
