:root {
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --primary-dark: #3730a3;
  --bg: #f0f2f8;
  --card-bg: #ffffff;
  --text: #1e1b4b;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --choice-hover: #eef2ff;
  --choice-selected: #4f46e5;
  --success: #10b981;
  --shadow: 0 4px 20px rgba(79, 70, 229, 0.1);
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Helvetica Neue', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── ユーティリティ ── */
.hidden { display: none !important; }

.screen { min-height: 100vh; }

/* ── スタート画面 ── */
#start-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.start-card {
  background: white;
  border-radius: 24px;
  padding: 40px 36px;
  max-width: 540px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.logo { font-size: 56px; margin-bottom: 16px; }

/* ── 選択セクション共通 ── */
.select-section {
  margin-bottom: 24px;
  text-align: left;
}

.select-step-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.03em;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

/* ── アドバイザー選択カルーセル ── */
.advisor-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.advisor-carousel-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: 16px;
}
.advisor-carousel-track {
  display: flex;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.advisor-carousel-item {
  flex: 0 0 100%;
  padding: 4px;
  box-sizing: border-box;
}
.carousel-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: white;
  color: var(--text-main);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.carousel-arrow:hover { border-color: var(--primary); color: var(--primary); }
.carousel-arrow.hidden-arrow { opacity: 0; pointer-events: none; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.2s;
}
.carousel-dot.active {
  background: var(--primary);
  width: 20px;
  border-radius: 4px;
}

.advisor-select-card {
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #f8f9ff;
  user-select: none;
}

.advisor-select-card:hover {
  border-color: var(--primary-light);
  background: var(--choice-hover);
  transform: translateY(-2px);
}

.advisor-select-card.selected {
  border-color: var(--primary);
  background: #eef2ff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.advisor-select-photo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2.5px solid var(--border);
  margin-bottom: 10px;
  transition: border-color 0.2s;
}

.advisor-select-card.selected .advisor-select-photo {
  border-color: var(--primary);
}

.advisor-select-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.advisor-select-role {
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.advisor-select-speech {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.5;
  background: white;
  border-radius: 8px;
  padding: 6px 8px;
  border: 1px solid var(--border);
}

/* ── テーマ選択グリッド ── */
.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.theme-select-card {
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #f8f9ff;
  user-select: none;
}

.theme-select-card:hover {
  border-color: var(--primary-light);
  background: var(--choice-hover);
  transform: translateY(-2px);
}

.theme-select-card.selected {
  border-color: var(--primary);
  background: #eef2ff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.theme-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.theme-select-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.theme-select-desc {
  font-size: 10px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ── 基本情報入力 ── */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.required-badge {
  background: #fef3c7;
  color: #d97706;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  border: 1px solid #fde68a;
}

.profile-select {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: white;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  appearance: auto;
}

.profile-select:focus {
  border-color: var(--primary-light);
}

/* アドバイザープロフィール（スタート画面） */
.advisor-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  text-align: left;
}

.advisor-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--primary);
  flex-shrink: 0;
}

.advisor-info { flex: 1; }

.advisor-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.advisor-role {
  font-size: 13px;
  color: var(--text-light);
}

/* 吹き出し */
.advisor-speech {
  background: #f0f2ff;
  border: 1.5px solid #c7d2fe;
  border-radius: 12px 12px 12px 4px;
  padding: 14px 18px;
  margin-bottom: 20px;
  text-align: left;
  position: relative;
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

.advisor-speech::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 24px;
  border: 5px solid transparent;
  border-bottom-color: #c7d2fe;
}

.advisor-speech::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 25px;
  border: 4px solid transparent;
  border-bottom-color: #f0f2ff;
}

.start-card h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.subtitle {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 28px;
}

.features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
  background: #f8f9ff;
  border-radius: 12px;
  padding: 16px 20px;
}

.features li {
  font-size: 14px;
  color: var(--text);
  padding: 6px 0;
  line-height: 1.5;
}

/* ── ボタン共通 ── */
button { cursor: pointer; border: none; font-family: inherit; transition: all 0.2s; }

.btn-primary {
  background: var(--primary);
  color: white;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
}

.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-large {
  width: 100%;
  padding: 16px;
  font-size: 17px;
  border-radius: 14px;
}

.btn-secondary {
  background: #f3f4f6;
  color: var(--text);
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
}

.btn-secondary:hover { background: var(--choice-hover); color: var(--primary); }

.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
}

.btn-ghost:hover { background: #f3f4f6; color: var(--text); }

.btn-small { padding: 8px 14px; font-size: 13px; }

.btn-center { display: block; margin: 32px auto 0; }

/* ── ヘッダー ── */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.app-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

/* ── プログレスバー ── */
.progress-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 54px;
  z-index: 9;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 9999px;
  transition: width 0.6s ease;
}

.progress-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  min-width: 36px;
}

/* ── 会話履歴 ── */
.history {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 24px 0;
}

.history-item {
  margin-bottom: 20px;
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.history-q {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  align-items: flex-start;
}

.history-q .icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; }

.history-q .text {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

.history-a {
  display: flex;
  justify-content: flex-end;
}

.history-a-bubble {
  background: var(--primary);
  color: white;
  border-radius: 12px 12px 4px 12px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  max-width: 80%;
  line-height: 1.5;
}

/* ── 現在の質問エリア ── */
.question-area {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── アドバイザー応答バブル（question-areaの兄弟要素として独立） ── */
.advisor-response {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 24px 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  animation: fadeInUp 0.4s ease;
}

.advisor-response-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}

.advisor-response-bubble {
  background: white;
  border: 1.5px solid #e0e7ff;
  border-radius: 0 16px 16px 16px;
  padding: 14px 18px;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.08);
  flex: 1;
  position: relative;
}

.advisor-response-bubble::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 14px;
  border: 5px solid transparent;
  border-right-color: #e0e7ff;
}

.advisor-response-bubble::after {
  content: '';
  position: absolute;
  left: -6px;
  top: 15px;
  border: 4px solid transparent;
  border-right-color: white;
}

.advisor-response-bubble p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.85;
  margin: 0;
}

.question-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  animation: fadeInUp 0.4s ease;
}

/* 質問カードのアドバイザーヘッダー */
.question-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.advisor-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}

.question-card-meta { display: flex; flex-direction: column; gap: 2px; }

.advisor-asking {
  font-size: 11px;
  color: var(--text-light);
  margin: 0;
}

.question-category {
  display: inline-block;
  background: var(--choice-hover);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 0;
  letter-spacing: 0.03em;
}

.question-text {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 24px;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.choice-btn {
  background: #f8f9ff;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.15s;
}

.choice-btn:hover {
  background: var(--choice-hover);
  border-color: var(--primary-light);
  color: var(--primary);
  transform: translateX(4px);
}

.choice-btn:active { transform: translateX(2px); }

.choice-btn .choice-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--border);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--text-light);
  transition: all 0.15s;
}

.choice-btn:hover .choice-number {
  background: var(--primary);
  color: white;
}

/* 自由記述エリア */
.custom-input-area { margin-top: 4px; }

#custom-input-wrapper {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

#custom-input {
  flex: 1;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  color: var(--text);
  transition: border-color 0.2s;
}

#custom-input:focus {
  outline: none;
  border-color: var(--primary-light);
}

/* ── ローディング ── */
.loading {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-light);
  font-size: 14px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

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

.loading-sub {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 12px;
  line-height: 1.8;
  animation: fadeInUp 0.5s ease 0.3s both;
}

/* ── レーダーチャート ── */
.radar-section {
  background: white;
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  animation: fadeInUp 0.4s ease;
}

.radar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

.radar-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

#radar-chart {
  flex-shrink: 0;
  display: block;
}

.radar-legend {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.legend-label {
  width: 110px;
  flex-shrink: 0;
  color: var(--text);
  font-weight: 500;
}

.legend-bar-wrap {
  flex: 1;
  height: 8px;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}

.legend-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 9999px;
  transition: width 0.8s ease;
}

.legend-score {
  width: 28px;
  text-align: right;
  font-weight: 700;
  color: var(--primary);
  font-size: 13px;
}

@media (max-width: 600px) {
  .radar-wrapper { flex-direction: column; align-items: center; }
  #radar-chart { width: 280px !important; height: 280px !important; }
}

/* ── レポートエリア ── */
.report-area {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

.report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.report-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.report-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* レポートコンテンツ（ラッパー） */
.report-content {
  animation: fadeInUp 0.4s ease;
}

/* ── 診断書レイアウト ── */
.report-doc {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 診断書ヘッダー */
.report-doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border-radius: 16px;
  color: white;
  margin-bottom: 6px;
}

.report-doc-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.report-doc-date {
  font-size: 12px;
  opacity: 0.75;
  letter-spacing: 0.04em;
}

.report-doc-stamp {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 5px;
  opacity: 0.2;
  border: 3px solid rgba(255,255,255,0.5);
  border-radius: 8px;
  padding: 8px 14px;
  color: white;
  transform: rotate(-10deg);
  flex-shrink: 0;
}

/* セクションカード */
.report-section-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #ede9fe;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.06);
  animation: fadeInUp 0.45s ease both;
}

.report-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: linear-gradient(90deg, #f5f3ff 0%, #fafafe 100%);
  border-bottom: 1px solid #ede9fe;
  position: relative;
}

.report-section-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #4f46e5, #7c3aed);
}

.report-section-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.report-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #3730a3;
  flex: 1;
  letter-spacing: 0.02em;
}

.report-section-num {
  font-size: 28px;
  font-weight: 900;
  color: #ddd6fe;
  letter-spacing: -1px;
  line-height: 1;
  flex-shrink: 0;
}

/* セクション本文 */
.report-section-body {
  padding: 22px 26px;
}

.report-section-body p {
  font-size: 14px;
  color: #374151;
  margin-bottom: 12px;
  line-height: 1.95;
}

.report-section-body p:last-child { margin-bottom: 0; }

.report-section-body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.report-section-body ul li {
  font-size: 14px;
  color: #374151;
  line-height: 1.75;
  padding-left: 20px;
  position: relative;
}

.report-section-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.report-section-body ol {
  list-style: none;
  padding: 0;
  margin-bottom: 12px;
  counter-reset: ol-counter;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.report-section-body ol li {
  font-size: 14px;
  color: #374151;
  line-height: 1.75;
  padding-left: 34px;
  position: relative;
  counter-increment: ol-counter;
}

.report-section-body ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 22px;
}

.report-section-body strong {
  color: #4338ca;
  font-weight: 700;
  background: #eef2ff;
  padding: 1px 5px;
  border-radius: 4px;
}

/* ── 深堀りモードバナー ── */
.deep-dive-banner {
  text-align: center;
  padding: 10px 24px;
  background: linear-gradient(90deg, #fdf4ff 0%, #f5f3ff 100%);
  border-bottom: 1px solid #e9d5ff;
  font-size: 13px;
  font-weight: 700;
  color: #7c3aed;
  letter-spacing: 0.03em;
  position: sticky;
  top: 98px;
  z-index: 8;
}

/* ── 深堀りアクションエリア ── */
.deep-dive-action {
  margin: 24px 0 16px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #f5f3ff 0%, #fdf4ff 100%);
  border: 1.5px solid #e9d5ff;
  border-radius: 16px;
  text-align: center;
  animation: fadeInUp 0.4s ease;
}

.deep-dive-hint-text {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 14px;
  line-height: 1.6;
}

.btn-deep-dive {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  color: white;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.btn-deep-dive:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

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

/* コピー成功トースト */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: white;
  padding: 12px 24px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  z-index: 100;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 1.7s forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* レスポンシブ */
@media (max-width: 600px) {
  .start-card { padding: 28px 18px; }
  .question-card { padding: 20px; }
  .question-text { font-size: 16px; }
  .report-header { flex-direction: column; align-items: flex-start; }
  .report-content { padding: 20px; }
  .advisor-grid { grid-template-columns: 1fr 1fr; }
  .theme-grid { grid-template-columns: 1fr; gap: 8px; }
  .profile-grid { grid-template-columns: 1fr 1fr; }
  .theme-select-card { padding: 12px 14px; display: flex; align-items: center; gap: 12px; text-align: left; }
  .theme-icon { font-size: 24px; margin-bottom: 0; flex-shrink: 0; }
  .theme-select-name { margin-bottom: 2px; }
}

/* ── レポート下部アクションエリア ── */
.report-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 32px 0 0;
  flex-wrap: wrap;
}

/* 印刷スタイル */
@media print {
  body { background: white; }
  header, .progress-container, .history, #advisor-response, .question-area,
  .report-header .report-actions, .report-bottom-actions { display: none !important; }
  .report-area { padding: 0; max-width: 100%; }
  .report-content { box-shadow: none; border-radius: 0; }
}
