/* ==========================================================================
   シンギュラリティ・プロファイラー - デザインシステム (Soft Glow Cyber Theme)
   ========================================================================== */

/* Google Fonts インポート */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Orbitron:wght@500;700;900&family=Share+Tech+Mono&display=swap');

:root {
  /* ソフトグロウ・サイバー カラーパレット (ペールネオン調) */
  --bg-dark-blue: #0b0d19;      /* 深みのあるミッドナイトブルー */
  --panel-bg: rgba(18, 22, 43, 0.82); /* 磨りガラス半透明背景 */
  --neon-cyan: #64e5ff;         /* 柔らかいパステルシアン */
  --neon-magenta: #d6a3ff;      /* 優しいラベンダーマゼンタ */
  --neon-green: #86ffd3;        /* 爽やかなペールミントグリーン */
  --neon-yellow: #ffe395;       /* 温かみのあるソフトアンバー */
  
  --text-pure: #ffffff;
  --text-gray: #e6e8f3;         /* 可読性を高めた明るいライトグレー */
  --text-dim: #9aa0b9;          /* 補足用ディムグレー */
  
  /* エフェクト・設定 */
  --glow-cyan: 0 0 15px rgba(100, 229, 255, 0.2);
  --glow-magenta: 0 0 15px rgba(214, 163, 255, 0.25);
  --glow-green: 0 0 15px rgba(134, 255, 211, 0.25);
  --glow-yellow: 0 0 15px rgba(255, 227, 149, 0.2);
  
  --border-cyan: 1px solid rgba(100, 229, 255, 0.25);
  --border-magenta: 1px solid rgba(214, 163, 255, 0.25);
  --border-green: 1px solid rgba(134, 255, 211, 0.25);
  --border-yellow: 1px solid rgba(255, 227, 149, 0.25);
}

/* ==========================================================================
   1. リセット ＆ 共通スタイル
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-dark-blue);
  color: var(--text-gray);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  
  /* 薄いグリッド背景 */
  background-image: 
    linear-gradient(rgba(100, 229, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 229, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
}

/* ソフトな背景発光 */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 25%, rgba(100, 229, 255, 0.05) 0%, rgba(214, 163, 255, 0.03) 50%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* スクロールバー */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark-blue);
}
::-webkit-scrollbar-thumb {
  background: rgba(100, 229, 255, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}

h1, h2, h3, .font-cyber {
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-pure);
}

.font-mono {
  font-family: 'Share Tech Mono', monospace;
}

/* コンテナ */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   2. 画面制御 (SPA)
   ========================================================================== */
.screen {
  display: none;
  width: 100%;
  max-width: 800px;
  animation: hologramFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.screen.active {
  display: block;
}

#screen-result.screen {
  max-width: 1100px;
}

@keyframes hologramFade {
  from {
    opacity: 0;
    transform: scale(0.98) translateY(10px);
    filter: brightness(0.8) blur(2px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: brightness(1) blur(0);
  }
}

/* ==========================================================================
   3. ホログラフィック・グラスパネル ＆ ボタン
   ========================================================================== */
.panel {
  background: var(--panel-bg);
  border: var(--border-cyan);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), var(--glow-cyan);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ヘッダー装飾ライン */
.panel::before {
  content: "SINGULARITY PROFILER // INTEL_CORE_ONLINE";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 26px;
  background: rgba(10, 12, 24, 0.9);
  color: var(--neon-cyan);
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  padding: 4px 15px;
  display: flex;
  align-items: center;
  letter-spacing: 1.5px;
  border-bottom: 1px solid rgba(100, 229, 255, 0.2);
  text-shadow: 0 0 4px rgba(100, 229, 255, 0.5);
}

.panel-content {
  padding-top: 15px;
}

/* ボタン（ソフトグロウ・ホログラフィックスタイル） */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-pure);
  background: rgba(100, 229, 255, 0.08);
  border: var(--border-cyan);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
  box-shadow: 0 0 10px rgba(100, 229, 255, 0.05);
}

.btn:hover {
  background: rgba(100, 229, 255, 0.18);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(100, 229, 255, 0.3);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
  background: rgba(100, 229, 255, 0.25);
}

.btn-cyan {
  color: var(--text-pure);
  background: rgba(100, 229, 255, 0.1);
  border: var(--border-cyan);
}
.btn-cyan:hover {
  background: rgba(100, 229, 255, 0.22);
  box-shadow: 0 0 15px rgba(100, 229, 255, 0.35);
}

.btn-green {
  color: var(--text-pure);
  background: rgba(134, 255, 211, 0.08);
  border: var(--border-green);
}
.btn-green:hover {
  background: rgba(134, 255, 211, 0.18);
  border-color: var(--neon-green);
  box-shadow: 0 0 15px rgba(134, 255, 211, 0.35);
}

/* ==========================================================================
   4. Welcome画面 (#screen-welcome)
   ========================================================================== */
.welcome-header {
  text-align: center;
  margin-bottom: 40px;
}

.welcome-logo {
  font-size: 38px;
  font-weight: 900;
  color: var(--text-pure);
  text-shadow: 0 0 15px rgba(100, 229, 255, 0.3), 0 0 30px rgba(214, 163, 255, 0.2);
  margin-bottom: 10px;
  letter-spacing: 4px;
}

.welcome-subtitle {
  font-size: 13px;
  color: var(--neon-green);
  text-shadow: 0 0 8px rgba(134, 255, 211, 0.4);
  font-weight: 500;
}

.input-group {
  margin-bottom: 25px;
  width: 100%;
}

.input-label {
  display: block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--neon-cyan);
  margin-bottom: 10px;
  text-transform: uppercase;
  text-shadow: 0 0 4px rgba(100, 229, 255, 0.2);
}

.cyber-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: var(--border-cyan);
  border-radius: 4px;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--text-pure);
  font-family: 'Inter', sans-serif;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
  transition: all 0.25s ease;
}

.cyber-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(100, 229, 255, 0.25), inset 0 2px 8px rgba(0,0,0,0.5);
  outline: none;
}

.welcome-actions {
  text-align: center;
  margin-bottom: 30px;
}

/* 図鑑セクション */
.catalog-section {
  margin-top: 40px;
  border-top: 1px solid rgba(100, 229, 255, 0.15);
  padding-top: 25px;
}

.catalog-title {
  font-size: 13px;
  color: var(--neon-yellow);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 0 5px rgba(255, 227, 149, 0.2);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.catalog-item {
  background: rgba(100, 229, 255, 0.03);
  border: 1px solid rgba(100, 229, 255, 0.12);
  border-radius: 4px;
  padding: 10px 12px;
  text-align: center;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.catalog-item:hover {
  border-color: var(--neon-magenta);
  background: rgba(214, 163, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 0 8px rgba(214, 163, 255, 0.15);
}

.catalog-item-name {
  font-weight: bold;
  color: var(--text-pure);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-item-cat {
  color: var(--neon-cyan);
  font-size: 10px;
  font-family: 'Orbitron', sans-serif;
}

/* ==========================================================================
   5. Test画面 (#screen-test)
   ========================================================================== */
.test-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: var(--neon-cyan);
  text-shadow: 0 0 4px rgba(100, 229, 255, 0.3);
}

.timer-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border: 1px solid rgba(214, 163, 255, 0.3);
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s;
}

.timer-container.active {
  opacity: 1;
}

.timer-num {
  font-weight: bold;
  color: var(--neon-magenta);
  width: 20px;
  text-align: center;
  text-shadow: 0 0 6px rgba(214, 163, 255, 0.4);
}

/* プログレスバー */
.progress-container {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(100, 229, 255, 0.15);
  border-radius: 3px;
  margin-bottom: 30px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background-color: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  transition: width 0.3s ease-out;
}

.timer-bar {
  height: 4px;
  background-color: var(--neon-magenta);
  width: 100%;
  margin-bottom: 15px;
  display: none;
  box-shadow: 0 0 8px var(--neon-magenta);
}

.timer-bar.active {
  display: block;
}

/* 質問表示 */
.question-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 35px;
}

.question-text {
  font-size: 17px;
  line-height: 1.7;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--text-pure);
}

.highlight-text {
  color: var(--neon-yellow);
  font-weight: bold;
  padding: 0 4px;
}

/* クイズ用画像/SVGコンテナ */
.question-graphic {
  width: 100%;
  max-width: 340px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(100, 229, 255, 0.2);
  border-radius: 4px;
  margin: 15px 0;
  padding: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.6);
}

.quiz-svg {
  width: 100%;
  height: auto;
  max-height: 180px;
}

/* 選択肢ボタンコンテナ */
.options-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* 前半: 5段階選択肢 */
.options-likert {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.btn-likert {
  flex: 1;
  height: 65px;
  padding: 5px;
  font-size: 11px;
  flex-direction: column;
  background: rgba(100, 229, 255, 0.05);
  border: var(--border-cyan);
  box-shadow: 0 0 10px rgba(100, 229, 255, 0.05);
}

.btn-likert:hover {
  background: rgba(214, 163, 255, 0.12);
  border-color: var(--neon-magenta);
  box-shadow: 0 0 15px rgba(214, 163, 255, 0.2);
}

.btn-likert-score {
  font-family: 'Share Tech Mono', monospace;
  font-size: 20px;
  font-weight: 900;
  color: var(--neon-green);
  text-shadow: 0 0 4px rgba(134, 255, 211, 0.3);
}

/* 後半: 4択選択肢 */
.btn-quiz-option {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  padding: 15px 20px;
  background: rgba(214, 163, 255, 0.04);
  border: var(--border-magenta);
  box-shadow: 0 0 10px rgba(214, 163, 255, 0.03);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  min-height: 55px;
}

.btn-quiz-option:hover {
  background: rgba(100, 229, 255, 0.12);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(100, 229, 255, 0.22);
}

/* 選択肢がSVGの場合 */
.btn-quiz-option-svg {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.btn-quiz-option-svg .btn-quiz-option {
  justify-content: center;
  align-items: center;
  height: 100px;
  padding: 10px;
}

.opt-svg {
  width: 80px;
  height: 80px;
}

/* 記号照合問題用 */
.target-code {
  font-family: 'Share Tech Mono', monospace;
  font-size: 24px;
  letter-spacing: 8px;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--neon-cyan);
  padding: 8px 16px;
  border-radius: 4px;
  display: inline-block;
  color: var(--neon-yellow);
  text-shadow: 0 0 6px rgba(255, 227, 149, 0.4);
}

/* 一時記憶ゲーム用 */
.memory-grid-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(3, 70px);
  grid-template-rows: repeat(3, 70px);
  gap: 10px;
  background: rgba(0, 0, 0, 0.45);
  padding: 12px;
  border: 1px solid rgba(100, 229, 255, 0.2);
  border-radius: 4px;
}

.grid-cell {
  background: rgba(100, 229, 255, 0.03);
  border: 1px solid rgba(100, 229, 255, 0.15);
  border-radius: 4px;
  transition: background-color 0.15s;
}

.grid-cell.flash {
  background: var(--neon-green);
  box-shadow: 0 0 15px var(--neon-green);
  border-color: #fff;
}

.memory-status-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: var(--neon-yellow);
  letter-spacing: 1.5px;
}

/* ==========================================================================
   6. Loader画面 (#screen-loader)
   ========================================================================== */
.loader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 30px;
  text-align: center;
}

.pulse-circle {
  width: 80px;
  height: 80px;
  border: 2px solid var(--neon-cyan);
  border-radius: 50%;
  position: relative;
  animation: borderPulse 1.5s infinite ease-in-out;
  margin-bottom: 30px;
}

.pulse-circle::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1.5px solid var(--neon-magenta);
  border-radius: 50%;
  animation: rotatePulse 2s infinite linear;
}

@keyframes borderPulse {
  0% {
    box-shadow: 0 0 0px rgba(100, 229, 255, 0.2);
    transform: scale(1);
    border-color: rgba(100, 229, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 20px rgba(100, 229, 255, 0.5);
    transform: scale(1.05);
    border-color: var(--neon-cyan);
  }
  100% {
    box-shadow: 0 0 0px rgba(100, 229, 255, 0.2);
    transform: scale(1);
    border-color: rgba(100, 229, 255, 0.4);
  }
}

@keyframes rotatePulse {
  0% {
    transform: rotate(0deg) scale(0.9);
    opacity: 0.4;
  }
  50% {
    transform: rotate(180deg) scale(1.1);
    opacity: 0.9;
  }
  100% {
    transform: rotate(360deg) scale(0.9);
    opacity: 0.4;
  }
}

.loader-status {
  font-family: 'Share Tech Mono', monospace;
  font-size: 16px;
  color: var(--neon-green);
  margin-bottom: 10px;
  height: 20px;
  text-shadow: 0 0 5px rgba(134, 255, 211, 0.4);
}

.loader-progress {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

/* ==========================================================================
   7. Result画面 (#screen-result)
   ========================================================================== */
.result-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  margin-top: 15px;
}

/* 診断の基本情報 (IQ値、脳タイプ) */
.result-headline {
  display: flex;
  align-items: center;
  gap: 25px;
  background: rgba(10, 12, 24, 0.6);
  border: var(--border-cyan);
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 0 15px rgba(100, 229, 255, 0.08), inset 0 2px 8px rgba(0,0,0,0.6);
  border-radius: 6px;
}

.iq-score-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px solid var(--neon-cyan);
  box-shadow: 0 0 15px rgba(100, 229, 255, 0.25);
  width: 105px;
  height: 105px;
  border-radius: 4px;
}

.iq-score-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--neon-cyan);
  letter-spacing: 0.5px;
}

.iq-score-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 34px;
  font-weight: 900;
  color: var(--text-pure);
  text-shadow: 0 0 10px rgba(100, 229, 255, 0.6);
  line-height: 1.1;
}

.type-info {
  flex: 1;
}

.type-user-name {
  font-size: 12px;
  color: var(--neon-green);
  font-family: 'Share Tech Mono', monospace;
  margin-bottom: 4px;
  text-shadow: 0 0 4px rgba(134, 255, 211, 0.2);
}

.type-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-pure);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.15);
}

.type-category-badge {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  font-weight: 700;
  background: rgba(214, 163, 255, 0.15);
  color: var(--text-pure);
  padding: 4px 10px;
  border-radius: 2px;
  border: var(--border-magenta);
  box-shadow: 0 0 8px rgba(214, 163, 255, 0.2);
}

/* ポジティブ・ネガティブ解説 (光と影) */
.analysis-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 25px;
}

.analysis-block {
  background: rgba(100, 229, 255, 0.02);
  border: var(--border-green);
  border-left: 4px solid var(--neon-green);
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 10px rgba(134, 255, 211, 0.05);
}

.analysis-block.shadow-block {
  border: var(--border-magenta);
  border-left: 4px solid var(--neon-magenta);
  background: rgba(214, 163, 255, 0.02);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 10px rgba(214, 163, 255, 0.05);
}

.analysis-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.analysis-text {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-gray);
}

/* レーダーチャート */
.radar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 24, 0.5);
  border: var(--border-cyan);
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 25px;
  box-shadow: 0 0 20px rgba(100, 229, 255, 0.05);
}

.radar-title {
  font-size: 11px;
  color: var(--neon-cyan);
  margin-bottom: 15px;
  letter-spacing: 1.5px;
  text-shadow: 0 0 4px rgba(100, 229, 255, 0.3);
}

.radar-chart {
  width: 100%;
  max-width: 320px;
  height: auto;
}

/* 適職マッチング (job tag参考) */
.careers-section {
  background: rgba(10, 12, 24, 0.5);
  border: var(--border-cyan);
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.careers-title {
  font-size: 13.5px;
  color: var(--neon-yellow);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 0 4px rgba(255, 227, 149, 0.2);
}

.careers-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.career-card {
  background: rgba(255, 227, 149, 0.02);
  border: var(--border-yellow);
  border-left: 4px solid var(--neon-yellow);
  border-radius: 4px;
  padding: 12px 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.career-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 10px;
}

.career-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-pure);
}

.career-match-badge {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--neon-yellow);
  background: rgba(255, 227, 149, 0.08);
  padding: 2px 6px;
  border: 1px solid rgba(255, 227, 149, 0.3);
  border-radius: 2px;
  flex-shrink: 0;
}

.career-desc {
  font-size: 11.5px;
  color: var(--text-gray);
  line-height: 1.5;
  margin-bottom: 6px;
}

.career-advice {
  font-size: 11px;
  color: var(--neon-cyan);
  line-height: 1.5;
  border-top: 1px dashed rgba(100, 229, 255, 0.15);
  padding-top: 6px;
}

/* 相性診断 (共鳴 & 干渉) */
.compatibilities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 25px;
}

.compat-block {
  background: rgba(10, 12, 24, 0.4);
  border-radius: 4px;
  padding: 15px;
  font-size: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.compat-block.resonance {
  border: var(--border-green);
  border-top: 4px solid var(--neon-green);
  background: rgba(134, 255, 211, 0.02);
}

.compat-block.interference {
  border: var(--border-magenta);
  border-top: 4px solid var(--neon-magenta);
  background: rgba(214, 163, 255, 0.02);
}

.compat-header {
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.compat-type-name {
  color: var(--text-pure);
  font-weight: 700;
  margin-bottom: 6px;
}

.compat-type-desc {
  color: var(--text-gray);
  line-height: 1.5;
}

/* 結果の操作 (シェア、リトライ) */
.result-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
}

.btn-share-x {
  background: linear-gradient(135deg, #1da1f2, #0f1419);
  border: 1px solid #1da1f2;
  color: var(--text-pure);
  box-shadow: 0 0 15px rgba(29, 161, 242, 0.4);
  font-size: 15px;
  font-weight: bold;
  padding: 14px 24px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-shadow: 0 0 4px rgba(29, 161, 242, 0.4);
  transition: all 0.25s ease;
  border-radius: 4px;
  cursor: pointer;
}
.btn-share-x:hover {
  background: linear-gradient(135deg, #40b5f5, #1da1f2);
  box-shadow: 0 0 25px rgba(29, 161, 242, 0.7);
  transform: translateY(-2px);
  color: #fff;
}

.copy-alert-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-dark-blue);
  border: 1px solid var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  color: var(--neon-cyan);
  padding: 10px 20px;
  border-radius: 4px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  z-index: 999;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.copy-alert-toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   8. モバイル・レスポンシブ対応
   ========================================================================== */
@media (max-width: 900px) {
  .result-layout {
    grid-template-columns: 1fr;
  }
  .careers-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  body {
    background-size: 30px 30px;
  }
  
  .app-container {
    padding: 10px;
  }
  
  .panel {
    padding: 20px 15px;
  }
  
  .welcome-logo {
    font-size: 28px;
  }
  
  .question-text {
    font-size: 15px;
  }
  
  .options-likert {
    flex-wrap: wrap;
  }
  
  .btn-likert {
    flex: 0 0 calc(50% - 4px);
  }
  
  .btn-likert:last-child {
    flex: 0 0 100%;
  }
  
  .btn-quiz-option-svg {
    grid-template-columns: 1fr;
  }
  
  .btn-quiz-option-svg .btn-quiz-option {
    height: 85px;
  }
  
  .result-headline {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .compatibilities {
    grid-template-columns: 1fr;
  }
  
  .result-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}
