/* ===================================================
   副業ロードマップ自動生成ツール - スタイルシート
   デザインコンセプト: ダークグラスモーフィズム + ネオンアクセント
   =================================================== */

/* ---- リセット & ベース ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* カラーパレット */
  --bg-base: #0a0e1a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(139, 92, 246, 0.5);

  /* ネオンカラー */
  --neon-purple: #8b5cf6;
  --neon-blue: #3b82f6;
  --neon-cyan: #06b6d4;
  --neon-green: #10b981;
  --neon-amber: #f59e0b;
  --neon-rose: #f43f5e;

  /* グラデーション */
  --grad-main: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  --grad-warm: linear-gradient(135deg, #f59e0b 0%, #f43f5e 100%);
  --grad-cool: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --grad-emerald: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);

  /* テキスト */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  /* スペーシング */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* トランジション */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ---- 背景パーティクル ---- */
.bg-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat var(--dur, 12s) var(--delay, 0s) infinite ease-in-out;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0.5);
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.2;
  }

  100% {
    opacity: 0;
    transform: translateY(-20vh) scale(1.2);
  }
}

/* ---- メインラッパー ---- */
.app-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- 画面システム ---- */
.screen {
  display: none;
  width: 100%;
  min-height: 100vh;
  padding: 24px 16px;
  align-items: center;
  justify-content: center;
  animation: screenIn 0.5s var(--ease) forwards;
}

.screen.active {
  display: flex;
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================================================
   画面1: タイトル
================================================================ */
.title-container {
  max-width: 600px;
  width: 100%;
  text-align: center;
}

.badge-top {
  display: inline-block;
  padding: 6px 18px;
  background: var(--grad-main);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.title-main {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.title-accent {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-sub {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

.title-sub strong {
  color: var(--neon-cyan);
  font-weight: 700;
}

/* フィーチャーカード */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(12px);
  transition: all 0.3s var(--ease);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--neon-purple);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

.feature-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.15);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.feature-text {
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
  color: var(--text-primary);
}

/* スタートボタン */
.btn-start {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 48px;
  background: var(--grad-main);
  border: none;
  border-radius: 999px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  transition: all 0.3s var(--ease-bounce);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.4), 0 4px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.btn-start:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.6), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.btn-start:active {
  transform: scale(0.97);
}

.btn-start-arrow {
  font-size: 1.3rem;
  transition: transform 0.3s var(--ease);
}

.btn-start:hover .btn-start-arrow {
  transform: translateX(4px);
}

.title-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ================================================================
   画面2: 質問
================================================================ */
.question-container {
  max-width: 640px;
  width: 100%;
}

/* プログレスバー */
.progress-area {
  margin-bottom: 32px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.progress-label span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

#progressPercent {
  color: var(--neon-purple);
}

.progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--grad-main);
  border-radius: 999px;
  transition: width 0.5s var(--ease);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

/* カテゴリバッジ */
.question-category {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  border: 1px solid;
}

/* 質問カード */
.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.question-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-main);
}

.question-number {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--neon-purple);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.question-text {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 700;
  line-height: 1.6;
  color: var(--text-primary);
}

/* 選択肢エリア */
.choices-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

/* 選択肢ボタン（共通） */
.choice-btn {
  width: 100%;
  padding: 18px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.25s var(--ease);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.choice-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-main);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.choice-btn:hover {
  border-color: var(--neon-purple);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

.choice-btn:hover::before {
  opacity: 0.06;
}

.choice-btn:active {
  transform: scale(0.98) translateX(2px);
}

.choice-btn.clicked {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
  animation: choiceSelected 0.3s var(--ease-bounce);
}

@keyframes choiceSelected {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02) translateX(4px);
  }

  100% {
    transform: scale(1) translateX(4px);
  }
}

.choice-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.choice-label.yes {
  background: rgba(16, 185, 129, 0.2);
  color: var(--neon-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.choice-label.no {
  background: rgba(244, 63, 94, 0.2);
  color: var(--neon-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.choice-label.a {
  background: rgba(139, 92, 246, 0.2);
  color: var(--neon-purple);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.choice-label.b {
  background: rgba(59, 130, 246, 0.2);
  color: var(--neon-blue);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.choice-label.c {
  background: rgba(6, 182, 212, 0.2);
  color: var(--neon-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.choice-label.d {
  background: rgba(245, 158, 11, 0.2);
  color: var(--neon-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.choice-text {
  position: relative;
  z-index: 1;
  line-height: 1.4;
}

/* 戻るボタン */
.btn-back {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-family: 'Noto Sans JP', sans-serif;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.btn-back:hover {
  color: var(--text-secondary);
  border-color: var(--text-muted);
}

.btn-back:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ================================================================
   画面3: 結果
================================================================ */
.result-container {
  max-width: 700px;
  width: 100%;
  padding-bottom: 40px;
}

/* 結果ヘッダー */
.result-header {
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.result-badge {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  background: var(--grad-main);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.4);
}

.result-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.result-job-name {
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 900;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}

.result-tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* セクションタイトル */
.result-section {
  margin-bottom: 32px;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.05em;
}

/* ロードマップステップ */
.roadmap-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.roadmap-step {
  display: flex;
  gap: 0;
  align-items: stretch;
  animation: stepIn 0.5s var(--ease) forwards;
  opacity: 0;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 44px;
  flex-shrink: 0;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.4);
}

.step-line {
  width: 2px;
  flex: 1;
  min-height: 16px;
  background: linear-gradient(to bottom, rgba(139, 92, 246, 0.4), rgba(6, 182, 212, 0.2));
  margin: 4px 0;
}

.roadmap-step:last-child .step-line {
  display: none;
}

.step-content {
  padding: 4px 0 20px 16px;
  flex: 1;
}

.step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.step-duration {
  font-size: 0.78rem;
  color: var(--neon-cyan);
  font-weight: 600;
}

/* 情報グリッド */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  backdrop-filter: blur(12px);
  transition: all 0.3s var(--ease);
}

.info-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.1);
}

.info-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.05em;
}

.info-list {
  list-style: none;
}

.info-list li {
  font-size: 0.875rem;
  color: var(--text-primary);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-purple);
  flex-shrink: 0;
}

.info-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* 今日やること */
.today-action {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.today-action::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-main);
}

.today-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--neon-purple);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.today-text {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.7;
}

/* 結果ボタン群 */
.result-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-retry {
  flex: 1;
  min-width: 140px;
  padding: 14px 24px;
  background: transparent;
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  color: var(--neon-purple);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.btn-retry:hover {
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-2px);
}

.btn-share {
  flex: 1;
  min-width: 140px;
  padding: 14px 24px;
  background: var(--grad-main);
  border: none;
  border-radius: 999px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  transition: all 0.3s var(--ease-bounce);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-share:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.5);
}

/* コピートースト */
.copy-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease-bounce), opacity 0.4s var(--ease-bounce), visibility 0.4s;
  pointer-events: none;
  white-space: nowrap;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
}

.copy-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

/* ================================================================
   免責事項ボックス
================================================================ */
.disclaimer-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid rgba(245, 158, 11, 0.5);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 24px;
  text-align: left;
}

.disclaimer-result {
  margin-top: 24px;
  margin-bottom: 8px;
}

.disclaimer-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f59e0b;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.disclaimer-box p {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.85;
  margin-bottom: 8px;
}

.disclaimer-box p:last-child {
  margin-bottom: 0;
}

.disclaimer-box strong {
  color: #cbd5e1;
  font-weight: 700;
}

/* ================================================================
   リベシティ図書館セクション
================================================================ */
.libecity-section {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(6, 182, 212, 0.06) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s var(--ease) 0.4s forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.libecity-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #10b981, #06b6d4);
}

.libecity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.libecity-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.libecity-icon {
  font-size: 1.3rem;
}

.libecity-title-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--neon-green);
  letter-spacing: 0.04em;
}

.libecity-all-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--neon-cyan);
  text-decoration: none;
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.libecity-all-link:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: var(--neon-cyan);
}

.libecity-desc {
  font-size: 0.8rem;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.6;
}

.libecity-note {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  display: inline-block;
  margin-top: 4px;
}

.libecity-articles {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.libecity-articles li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: all 0.2s var(--ease);
}

.libecity-articles li:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateX(4px);
}

.libecity-articles a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.libecity-articles a::before {
  content: '▶';
  color: var(--neon-green);
  font-size: 0.65rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.libecity-articles a:hover {
  color: var(--neon-cyan);
}

.libecity-btn {
  display: block;
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  color: var(--neon-green);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.3s var(--ease-bounce);
}

.libecity-btn:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(6, 182, 212, 0.25));
  border-color: var(--neon-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.2);
}

/* ================================================================
   シロマサル ピックアップセクション
================================================================ */
.shiromasaru-section {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.06) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s var(--ease) 0.6s forwards;
  opacity: 0;
}

.shiromasaru-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
}

.shiromasaru-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.shiromasaru-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shiromasaru-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.shiromasaru-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--neon-amber);
  letter-spacing: 0.04em;
}

.shiromasaru-sub {
  font-size: 0.72rem;
  color: #ffffff;
  margin-top: 2px;
}

.shiromasaru-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--neon-amber);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
  white-space: nowrap;
}

.shiromasaru-article-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  transition: all 0.25s var(--ease);
}

.shiromasaru-article-link:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--neon-amber);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.1);
}

.shiromasaru-article-icon {
  color: var(--neon-amber);
  font-size: 0.65rem;
  margin-top: 4px;
  flex-shrink: 0;
}

/* ================================================================
   カテゴリカラーテーマ
================================================================ */
/* 労働型 */
.cat-labor .question-category {
  background: rgba(245, 158, 11, 0.15);
  color: var(--neon-amber);
  border-color: rgba(245, 158, 11, 0.3);
}

/* スキル販売型 */
.cat-skill .question-category {
  background: rgba(139, 92, 246, 0.15);
  color: var(--neon-purple);
  border-color: rgba(139, 92, 246, 0.3);
}

/* コンテンツ型 */
.cat-content .question-category {
  background: rgba(59, 130, 246, 0.15);
  color: var(--neon-blue);
  border-color: rgba(59, 130, 246, 0.3);
}

/* 物販型 */
.cat-trade .question-category {
  background: rgba(16, 185, 129, 0.15);
  color: var(--neon-green);
  border-color: rgba(16, 185, 129, 0.3);
}

/* ================================================================
   レスポンシブ
================================================================ */

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .question-card {
    padding: 24px 20px;
  }

  .choice-btn {
    padding: 15px 18px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .result-buttons {
    flex-direction: column;
  }

  .btn-retry,
  .btn-share {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 360px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   スクロールバーカスタマイズ
================================================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.4);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.7);
}

/* ================================================================
   ユーティリティ アニメーション
================================================================ */
@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
  }

  50% {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.7);
  }
}

.btn-start {
  animation: pulse-glow 3s ease-in-out infinite;
}