/* ==========================================================================
   みらいコンパス (Mirai Compass) - ライトグラスモルフィズムデザインシステム
   ========================================================================== */

/* 1. 変数定義 & リセット */
:root {
  --font-title: 'Outfit', 'Noto Sans JP', sans-serif;
  --font-body: 'Outfit', 'Noto Sans JP', sans-serif;

  /* 明るいカラーパレット (ライトテーマ) */
  --bg-dark: #f8fafc; /* 淡いスレートグレー */
  --bg-card: rgba(255, 255, 255, 0.45); /* 白いグラスモルフィズム */
  --bg-card-hover: rgba(255, 255, 255, 0.7);
  --border-glow: rgba(255, 255, 255, 0.6);
  --border-glow-hover: rgba(99, 102, 241, 0.4);

  --text-primary: #0f172a; /* 深い紺/スレート */
  --text-muted: #475569; /* 中間スレートグレー */
  
  /* 明るい背景で見えやすいアクセントカラー（高コントラスト） */
  --color-cyan: #0891b2;
  --color-rose: #db2777;
  --color-emerald: #059669;
  --color-amber: #d97706;
  --color-indigo: #4f46e5;

  --color-cyan-rgb: 8, 145, 178;
  --color-rose-rgb: 219, 39, 119;
  --color-emerald-rgb: 5, 150, 105;
  --color-amber-rgb: 217, 119, 6;
  --color-indigo-rgb: 79, 70, 229;

  /* タイプ別のエイリアス定義 */
  --color-create: var(--color-rose);
  --color-analyze: var(--color-cyan);
  --color-people: var(--color-emerald);
  --color-system: var(--color-amber);
  --color-global: var(--color-indigo);

  --color-create-rgb: var(--color-rose-rgb);
  --color-analyze-rgb: var(--color-cyan-rgb);
  --color-people-rgb: var(--color-emerald-rgb);
  --color-system-rgb: var(--color-amber-rgb);
  --color-global-rgb: var(--color-indigo-rgb);

  /* アニメーション時間 */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* 2. 背景オーブアニメーション (明るいパステル調) */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.22; /* ライト背景に馴染む不透明度 */
  animation: orb-float 22s infinite ease-in-out alternate;
}

.orb-1 {
  top: -10%;
  left: -5%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, #c7d2fe 0%, transparent 80%); /* 淡いインディゴ */
}

.orb-2 {
  bottom: -15%;
  right: -5%;
  width: 65vw;
  height: 65vw;
  background: radial-gradient(circle, #a5f3fc 0%, transparent 80%); /* 淡いシアン */
  animation-duration: 26s;
  animation-delay: -5s;
}

.orb-3 {
  top: 35%;
  left: 45%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, #fbcfe8 0%, transparent 80%); /* 淡いピンク */
  animation-duration: 20s;
  animation-delay: -10s;
}

@keyframes orb-float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(4%, 8%) scale(1.08);
  }
  100% {
    transform: translate(-4%, -4%) scale(0.96);
  }
}

/* 3. コンテナとベース構造 */
.app-container {
  width: 90%;
  max-width: 800px;
  min-height: 550px;
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-glow);
  border-radius: 28px;
  padding: 45px;
  /* 上品で柔らかなライトシャドウ */
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 10;
  transition: var(--transition-smooth);
}

.screen {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.screen.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0);
}

/* 4. スタート画面 (Hero Screen) */
.hero-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: 10px 0;
}

.brand-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-indigo);
  margin-bottom: 24px;
  animation: pulse-border 2.5s infinite;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  /* 明るいグラデーション */
  background: linear-gradient(135deg, #1e1b4b 20%, #4338ca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 25px;
  line-height: 1.7;
}

/* 開始・共通ボタン */
.btn-primary {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-indigo) 0%, #4338ca 100%);
  border: none;
  border-radius: 50px;
  padding: 16px 48px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.25);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.05em;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: all 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(79, 70, 229, 0.4);
  background: linear-gradient(135deg, #6366f1 0%, var(--color-indigo) 100%);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(-1px);
}

/* 5. 質問画面 (Question Screen) */
.quiz-header {
  width: 100%;
  margin-bottom: 35px;
}

.progress-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.progress-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-indigo);
  letter-spacing: 0.05em;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-indigo), var(--color-cyan));
  border-radius: 10px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.question-text {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 35px;
  min-height: 80px;
  color: #0f172a;
}

/* 選択肢リスト */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.option-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  transition: var(--transition-smooth);
  position: relative;
}

.option-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.option-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(15, 23, 42, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.option-card:hover .option-marker {
  border-color: var(--color-indigo);
  color: var(--color-indigo);
  background: rgba(79, 70, 229, 0.05);
}

.option-card.selected {
  background: rgba(79, 70, 229, 0.06);
  border-color: var(--color-indigo);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.1);
}

.option-card.selected .option-marker {
  border-color: var(--color-indigo);
  background: var(--color-indigo);
  color: white;
}

.option-text {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* 前に戻る・次へボタン */
.quiz-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 35px;
  align-items: center;
}

.btn-back {
  font-family: var(--font-title);
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 50px;
  padding: 10px 26px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-back:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
  background: rgba(15, 23, 42, 0.03);
}

/* 6. ローディング画面 (Analyzing Screen) */
.loading-screen {
  text-align: center;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.spinner-container {
  position: relative;
  width: 110px;
  height: 110px;
  margin-bottom: 30px;
}

.scanner-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 4px solid rgba(15, 23, 42, 0.03);
  border-top-color: var(--color-indigo);
  border-bottom-color: var(--color-cyan);
  border-radius: 50%;
  animation: spin 2s linear infinite;
}

.scanner-ring::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 4px solid transparent;
  border-left-color: var(--color-rose);
  border-right-color: var(--color-amber);
  border-radius: 50%;
  animation: spin 1s linear infinite reverse;
}

.scanner-core {
  position: absolute;
  top: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite alternate;
}

.loading-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--color-indigo), var(--color-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.loading-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

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

@keyframes pulse {
  from { transform: scale(0.9); opacity: 0.6; }
  to { transform: scale(1.1); opacity: 1; }
}

/* 7. 結果画面 (Result Screen) */
.result-header {
  text-align: center;
  margin-bottom: 35px;
  position: relative;
}

.result-badge {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-indigo), var(--color-cyan));
  margin-bottom: 18px;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
}

.result-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.result-subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.tagline-box {
  background: rgba(255, 255, 255, 0.5);
  border-left: 4px solid var(--color-indigo);
  padding: 18px 22px;
  border-radius: 0 16px 16px 0;
  margin-bottom: 35px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02);
}

.tagline-text {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text-primary);
}

/* スコア可視化（簡易バーチャート） */
.charts-section {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 35px;
}

.charts-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.chart-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chart-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chart-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
}

.chart-name {
  color: var(--text-muted);
}

.chart-val {
  color: var(--text-primary);
}

.chart-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.chart-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 10px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* メイン説明・日常との結びつき */
.detail-section {
  display: flex;
  flex-direction: column;
  gap: 35px;
  margin-bottom: 45px;
  text-align: left;
}

.detail-block h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.detail-block h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--accent-color, var(--color-indigo));
  border-radius: 2px;
}

.detail-block p {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* スキル・特徴タグ */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.01);
}

/* おすすめ学部・未来シナリオ */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 15px;
}

@media(min-width: 600px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.dept-card {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  padding: 22px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.01);
}

.dept-card:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(79, 70, 229, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.03);
}

.dept-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.dept-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* 未来シナリオリスト */
.scenarios-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.scenario-item {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.scenario-icon {
  color: var(--color-indigo);
  font-size: 1.1rem;
  line-height: 1;
  margin-top: 3px;
}

.scenario-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 将来の職業キャリアパス */
.careers-box {
  background: rgba(79, 70, 229, 0.04);
  border: 1px solid rgba(79, 70, 229, 0.1);
  border-radius: 18px;
  padding: 22px;
  margin-top: 15px;
}

.careers-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-indigo);
  margin-bottom: 14px;
}

.careers-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.career-tag {
  background: rgba(79, 70, 229, 0.06);
  border: 1px solid rgba(79, 70, 229, 0.1);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-indigo);
}

/* アクションエリア */
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 40px;
  align-items: center;
}

@media(min-width: 480px) {
  .result-actions {
    flex-direction: row;
    justify-content: center;
  }
}

.btn-secondary {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 50px;
  padding: 14px 34px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(15, 23, 42, 0.02);
}

.btn-share {
  background: linear-gradient(135deg, #06c755, #059669);
  border: none;
  box-shadow: 0 6px 20px rgba(6, 199, 85, 0.25);
  font-weight: 800;
}

.btn-share:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 10px 30px rgba(6, 199, 85, 0.4);
}

/* コピーツールチップ表示用 */
.toast-msg {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.toast-msg.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 8. アニメーション補助クラス */
.fade-out {
  opacity: 0 !important;
  transform: translateY(-20px) !important;
}

.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* 9. パルス・アニメーション効果 */
@keyframes pulse-border {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.3);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
  }
}

/* 10. 設定エリア ＆ 大学カード追加スタイル */
.settings-area {
  margin: 25px 0 35px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.settings-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.select-glow {
  font-family: var(--font-title);
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 10px 24px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  min-width: 160px;
}

.select-glow:hover, .select-glow:focus {
  border-color: var(--color-indigo);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.12);
  background-color: rgba(255, 255, 255, 0.95);
}

.select-glow option {
  background-color: #ffffff;
  color: var(--text-primary);
}

/* 大学用バッジ付きヘッダー */
.uni-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  width: 100%;
}

.uni-type-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1;
}

.uni-type-badge.public {
  background: rgba(8, 145, 178, 0.08);
  border: 1px solid rgba(8, 145, 178, 0.25);
  color: #0891b2;
}

.uni-type-badge.private {
  background: rgba(219, 39, 119, 0.08);
  border: 1px solid rgba(219, 39, 119, 0.25);
  color: #db2777;
}

/* 大学リンクカード & 偏差値用追加スタイル */
.uni-link-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.uni-link-card:hover {
  border-color: var(--color-indigo);
  background: rgba(255, 255, 255, 0.75);
}

.link-arrow {
  font-size: 0.85rem;
  margin-left: 3px;
  opacity: 0.45;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.uni-link-card:hover .link-arrow {
  transform: translate(2px, -2px);
  opacity: 1;
  color: var(--color-indigo);
}

.uni-meta-info {
  display: flex;
  align-items: center;
  margin-top: 14px;
  font-size: 0.85rem;
  gap: 6px;
  border-top: 1px dashed rgba(15, 23, 42, 0.08);
  padding-top: 10px;
}

.uni-deviation-label {
  color: var(--text-muted);
  font-weight: 700;
}

.uni-deviation-val {
  color: var(--color-indigo);
  font-weight: 800;
}

/* 11. 登録大学数統計スタイル */
.stats-area {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(15, 23, 42, 0.03);
  padding: 8px 24px;
  border-radius: 50px;
  border: 1px solid rgba(15, 23, 42, 0.05);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.stats-num {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 1px;
}

.stats-num.stats-public {
  color: var(--color-cyan);
}

.stats-num.stats-private {
  color: var(--color-rose);
}

/* 12. レスポンシブ（スマホ・タブレット向け）最適化 */
.pc-only {
  display: inline;
}

@media (max-width: 600px) {
  .pc-only {
    display: none;
  }

  /* コンテナの余白を小さくして、スマホの画面幅を有効活用 */
  .app-container {
    width: 95%;
    padding: 28px 18px;
    border-radius: 20px;
    min-height: auto;
  }

  /* スタート画面の調整 */
  .brand-badge {
    margin-bottom: 16px;
    padding: 4px 14px;
    font-size: 0.78rem;
  }

  .hero-title {
    font-size: 1.85rem;
    margin-bottom: 14px;
  }

  .hero-desc {
    font-size: 0.92rem;
    margin-bottom: 20px;
    text-align: justify;
  }

  .settings-area {
    margin: 15px 0 20px 0;
    gap: 6px;
  }

  .settings-label {
    font-size: 0.82rem;
  }

  .select-glow {
    padding: 8px 18px;
    font-size: 0.88rem;
    min-width: 140px;
  }

  .stats-area {
    font-size: 0.78rem;
    padding: 6px 18px;
    margin-bottom: 24px;
    text-align: center;
    border-radius: 12px;
  }

  .stats-num {
    font-size: 0.88rem;
  }

  /* 質問画面の調整 */
  .quiz-header {
    margin-bottom: 24px;
  }

  .progress-label {
    font-size: 0.8rem;
  }

  .question-text {
    font-size: 1.15rem;
    line-height: 1.45;
    margin-bottom: 24px;
    min-height: auto;
  }

  .options-list {
    gap: 12px;
  }

  .option-card {
    padding: 14px 18px;
    border-radius: 12px;
    gap: 12px;
  }

  .option-marker {
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
  }

  .option-text {
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .quiz-footer {
    margin-top: 25px;
  }

  .btn-back {
    padding: 8px 20px;
    font-size: 0.82rem;
  }

  /* ローディング画面の調整 */
  .spinner-container {
    width: 90px;
    height: 90px;
    margin-bottom: 24px;
  }

  .loading-title {
    font-size: 1.25rem;
  }

  .loading-subtitle {
    font-size: 0.88rem;
    padding: 0 10px;
  }

  /* 結果画面の調整 */
  .result-header {
    margin-bottom: 24px;
  }

  .result-badge {
    font-size: 0.78rem;
    padding: 4px 16px;
    margin-bottom: 12px;
  }

  .result-title {
    font-size: 1.7rem;
    line-height: 1.3;
  }

  .result-subtitle {
    font-size: 1.05rem;
    margin-bottom: 18px;
  }

  .tagline-box {
    padding: 14px 16px;
    margin-bottom: 24px;
    border-radius: 0 12px 12px 0;
  }

  .tagline-text {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .charts-section {
    padding: 16px;
    margin-bottom: 24px;
    border-radius: 16px;
  }

  .charts-title {
    font-size: 0.98rem;
    margin-bottom: 14px;
  }

  .chart-info {
    font-size: 0.78rem;
  }

  .detail-section {
    gap: 28px;
    margin-bottom: 35px;
  }

  .detail-block h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .detail-block h3::before {
    height: 15px;
  }

  .detail-block p {
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .skill-tag {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .dept-card {
    padding: 16px;
    border-radius: 14px;
  }

  .dept-name {
    font-size: 0.98rem;
  }

  .dept-desc {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .uni-meta-info {
    margin-top: 10px;
    padding-top: 8px;
    font-size: 0.78rem;
  }

  .careers-box {
    padding: 16px;
    border-radius: 14px;
  }

  .careers-title {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  .career-tag {
    padding: 5px 12px;
    font-size: 0.78rem;
  }

  /* ボタン */
  .btn-primary {
    padding: 14px 38px;
    font-size: 0.95rem;
  }

  .btn-secondary {
    padding: 12px 26px;
    font-size: 0.88rem;
  }

  .result-actions {
    margin-top: 30px;
    gap: 12px;
  }
}
