/**
 * The 16 Core Axes 価値観信念タイプ診断 - スタイル
 * モダン・ビジネス向けデザイン
 */

/* ========================================
   Variables
======================================== */
:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #0f3460;
  --highlight: #e94560;

  --drive-color: #E53935;
  --inspire-color: #FDD835;
  --harmony-color: #43A047;
  --logic-color: #1E88E5;

  --text-primary: #1a1a2e;
  --text-secondary: #5a5a7a;
  --text-light: #8a8aaa;

  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fc;
  --bg-card: #ffffff;

  --border-color: #e8e8f0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --font-base: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ========================================
   Reset & Base
======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  background: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ========================================
   Layout
======================================== */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  min-height: 100vh;
}

.screen {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.screen.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   Start Screen
======================================== */
.start-screen {
  text-align: center;
  padding: 0;
}

.start-content-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px 40px 20px;
}

/* メインビジュアル（トップ） */
.main-visual-top {
  position: relative;
  margin-bottom: 0px;
  border-radius: 0;
  overflow: visible;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.main-visual-img {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.intro-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.intro-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.8;
}

.axes-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.axes-preview-img {
  text-align: center;
}

.axes-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* 画像専用セクション（フル幅） */
.axes-image-section {
  margin-bottom: 30px;
}

.axes-image-full {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* PC用改行（モバイルでは非表示） */
.pc-only {
  display: none;
}

@media (min-width: 640px) {
  .pc-only {
    display: inline;
  }
}

.axis-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
}

.axis-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.drive-dot {
  background-color: var(--drive-color);
}

.inspire-dot {
  background-color: var(--inspire-color);
}

.harmony-dot {
  background-color: var(--harmony-color);
}

.logic-dot {
  background-color: var(--logic-color);
}

.axis-badge.drive {
  border-left: 3px solid var(--drive-color);
}

.axis-badge.inspire {
  border-left: 3px solid var(--inspire-color);
}

.axis-badge.harmony {
  border-left: 3px solid var(--harmony-color);
}

.axis-badge.logic {
  border-left: 3px solid var(--logic-color);
}

.rules-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.rules-title {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.rules-list {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.rules-list li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.rules-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--harmony-color);
  font-weight: 600;
}

.start-btn {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  min-width: 280px;
  padding: 16px 48px;
  font-family: 'Noto Serif JP', serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #2a2a3a;
  background: linear-gradient(180deg, #f0f0f5 0%, #c8c8d0 50%, #a8a8b5 100%);
  border: 4px solid #3a3a4a;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow:
    0 4px 0 #2a2a3a,
    0 6px 16px rgba(0, 0, 0, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  z-index: 10;
  overflow: hidden;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.start-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to right,
      transparent 0%,
      rgba(255, 255, 255, 0.4) 50%,
      transparent 100%);
  transform: rotate(30deg) translateX(-100%);
  animation: btn-shimmer 2.5s ease-in-out infinite;
}

@keyframes btn-shimmer {
  0% {
    transform: rotate(30deg) translateX(-100%);
  }

  50%,
  100% {
    transform: rotate(30deg) translateX(100%);
  }
}

.start-btn:hover {
  transform: translateX(-50%) translateY(-3px);
  box-shadow:
    0 7px 0 #2a2a3a,
    0 10px 20px rgba(0, 0, 0, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.start-btn:active {
  transform: translateX(-50%) translateY(2px);
  box-shadow:
    0 2px 0 #2a2a3a,
    0 3px 8px rgba(0, 0, 0, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* スマホ表示時のボタン位置調整 */
@media (max-width: 640px) {
  .start-btn {
    bottom: -36px;
    padding: 14px 40px;
    font-size: 1.5rem;
    min-width: 240px;
  }
}

/* ========================================
   Question Screen
======================================== */
.question-screen {
  padding: 20px 0;
}

/* ========================================
   Question Screen
======================================== */
.question-screen {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
  /* 上部パディングを0に変更 */
}

.question-banner {
  margin-bottom: 20px;
  border-radius: 0;
  /* 角丸を削除 */
  overflow: hidden;
  box-shadow: none;
  /* 影を削除 */
  margin-left: -20px;
  /* 親のpaddingを打ち消して画面幅いっぱいに */
  margin-right: -20px;
  width: calc(100% + 40px);
}

.question-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

.question-header {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

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

.question-number {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.progress-text {
  font-size: 0.85rem;
  color: var(--text-light);
}

.progress-bar {
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--drive-color), var(--inspire-color));
  border-radius: 3px;
  transition: width 0.3s ease;
}

.question-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
  margin-top: 16px;
}

.choices-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* シンプル4択ボタン */
.choice-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  text-align: left;
}

.choice-btn:hover {
  border-color: var(--accent);
  background: var(--bg-secondary);
  transform: translateX(4px);
}

.choice-btn.selected {
  border-color: var(--primary);
  background: var(--primary);
}

.choice-btn.selected .choice-text {
  color: #fff;
}

.choice-btn.selected .choice-label {
  background: #fff !important;
  color: var(--primary);
}

.choice-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background-color: #6c757d;
  flex-shrink: 0;
}

.choice-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
}

.question-nav {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.nav-btn:hover:not(:disabled) {
  background: var(--bg-secondary);
  border-color: var(--accent);
  color: var(--accent);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ========================================
   Dual-Selection Styles (2段階選択)
======================================== */
.selection-instruction {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.instruction-primary {
  color: var(--drive-color);
  font-weight: 600;
}

.instruction-secondary {
  color: var(--logic-color);
  font-weight: 500;
}

.selection-hint {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
}

/* Primary Selection (◎=2点) */
.choice-btn.primary-selected {
  border-color: var(--drive-color);
  background: linear-gradient(135deg, rgba(229, 57, 53, 0.08), rgba(229, 57, 53, 0.03));
  position: relative;
}

.choice-btn.primary-selected::after {
  content: '◎';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--drive-color);
  font-weight: 700;
}

.choice-btn.primary-selected .choice-label {
  background: var(--drive-color) !important;
}

.choice-btn.primary-selected .choice-text {
  color: var(--text-primary);
  font-weight: 600;
}

/* Secondary Selection (〇=1点) */
.choice-btn.secondary-selected {
  border-color: var(--logic-color);
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.08), rgba(30, 136, 229, 0.03));
  position: relative;
}

.choice-btn.secondary-selected::after {
  content: '〇';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--logic-color);
  font-weight: 700;
}

.choice-btn.secondary-selected .choice-label {
  background: var(--logic-color) !important;
}

.choice-btn.secondary-selected .choice-text {
  color: var(--text-primary);
}

/* Double Selection (◎〇=3点) */
.choice-btn.double-selected {
  border-color: var(--harmony-color);
  background: linear-gradient(135deg, rgba(67, 160, 71, 0.12), rgba(67, 160, 71, 0.05));
  position: relative;
}

.choice-btn.double-selected::after {
  content: '◎〇';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--drive-color), var(--logic-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -2px;
}

.choice-btn.double-selected .choice-label {
  background: linear-gradient(135deg, var(--drive-color), var(--harmony-color)) !important;
}

.choice-btn.double-selected .choice-text {
  color: var(--text-primary);
  font-weight: 600;
}

/* Disabled state after both selections */
.choice-btn.selection-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Question navigation */
.question-nav {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.nav-btn-next {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
}

.nav-btn-next:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
  transform: translateX(2px);
}

/* ========================================
   Loading Screen (診断中)
======================================== */
.loading-screen.active {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 40px 20px;
}

.loading-content {
  text-align: center;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto 24px;
  border: 4px solid var(--bg-secondary);
  border-top-color: var(--highlight);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

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

/* ========================================
   Result Screen
======================================== */
.result-screen {
  gap: 32px;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
}

.result-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  overflow: visible;
}

.result-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {

  0%,
  100% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(180deg);
  }
}

/* ========================================
   Coin Image Animation
======================================== */
.coin-container {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
  text-align: center;
}

.coin-wrapper {
  position: relative;
  display: inline-block;
  width: 320px;
  height: 320px;
  perspective: 1200px;
  transform-style: preserve-3d;
  opacity: 0;
  transform: scale(0.3);
}

.coin-wrapper.coin-animate {
  animation: coinAppear 0.4s ease-out forwards,
    coinSpin 1.4s ease-in-out 0.1s forwards;
}

.coin-image-clipper {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 5px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.1),
    0 12px 40px rgba(0, 0, 0, 0.35);
  background: #000;
  /* 画像読み込み前の背景色 */
  backface-visibility: visible;
  transform: translateZ(1px);
}

.coin-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.coin-glow {
  --coin-glow-color: #E53935;
  position: absolute;
  top: -25px;
  left: -25px;
  right: -25px;
  bottom: -25px;
  border-radius: 50%;
  background: radial-gradient(circle,
      var(--coin-glow-color) 0%,
      transparent 70%);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

.coin-wrapper.coin-animate .coin-glow {
  animation: coinGlow 2s ease-out 1.0s forwards;
}

.type-person {
  font-size: 1.35rem;
  /* 1.5倍に拡大 */
  font-weight: 700;
  color: #333;
  /* 元は白でしたが黒に変更済み */
  margin-top: 12px;
  letter-spacing: 0.05em;
  opacity: 0;
}

.coin-animate~.type-person {
  animation: coinFadeInUp 0.6s ease-out 1.5s forwards;
}

@keyframes coinAppear {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes coinSpin {
  0% {
    transform: rotateY(0);
  }

  100% {
    transform: rotateY(360deg);
  }
}

@keyframes coinGlow {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }

  100% {
    opacity: 0.5;
    transform: scale(1);
  }
}

@keyframes coinFadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 最初のシャインエフェクト（コイン登場時に1回） */
.coin-wrapper.coin-animate .coin-image-clipper::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent);
  z-index: 2;
  pointer-events: none;
  animation: coinShine 0.8s ease-in-out 1.6s forwards;
}

@keyframes coinShine {
  0% {
    left: -100%;
    opacity: 1;
  }

  100% {
    left: 200%;
    opacity: 0;
  }
}

/* 繰り返しシャインエフェクト（5秒後から3秒ごと） */
/* coin-repeat-shineクラスが付与されたら、こちらのアニメーションに上書き */
.coin-wrapper.coin-repeat-shine .coin-image-clipper::after {
  animation: coinShineRepeat 3s ease-in-out infinite;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.6),
      transparent);
  z-index: 3;
}

@keyframes coinShineRepeat {
  0% {
    left: -100%;
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  40% {
    left: 200%;
    opacity: 0;
  }

  100% {
    left: 200%;
    opacity: 0;
  }
}

.result-label {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.8;
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

.result-emoji {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.result-type-ja {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.result-type-en {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.8;
  margin-bottom: 16px;
}

.pure-label {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.result-tagline {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
  line-height: 1.6;
}

.axes-info {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.axes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.axis-item {
  text-align: center;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.axis-label {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.axis-dot-large {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: block;
}

.axis-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.score-section {
  margin-top: 20px;
}

.score-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-align: center;
}

.radar-chart-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

.score-bar-item {
  margin-bottom: 12px;
}

.score-bar-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.score-axis-emoji {
  font-size: 1rem;
}

.score-axis-name {
  flex: 1;
  color: var(--text-primary);
  font-weight: 500;
}

.score-value {
  color: var(--text-secondary);
  font-weight: 600;
}

.score-bar-track {
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.result-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin-bottom: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.result-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.result-description {
  font-size: 1.0rem;
  color: #444;
  line-height: 1.8;
}

/* ========================================
   Markdown Parsing Classes
======================================== */
.md-bold {
  font-weight: 700;
  color: #1A1A2E;
  background: linear-gradient(transparent 60%, rgba(255, 215, 0, 0.3) 60%);
  padding: 0 4px;
  border-radius: 2px;
}

.md-check {
  color: #2E7D32;
  font-weight: 700;
  margin-right: 4px;
  display: inline-block;
  transform: scale(1.1);
}

.md-warn {
  color: #C62828;
  font-weight: 700;
  margin-right: 4px;
  display: inline-block;
}

.md-bulb {
  font-size: 1.2rem;
  margin-right: 4px;
  display: inline-block;
}

.result-list {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.result-list li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.strengths-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--harmony-color);
  font-weight: 600;
}

.challenges-list li::before {
  content: '!';
  position: absolute;
  left: 0;
  width: 16px;
  height: 16px;
  background: var(--inspire-color);
  color: var(--text-primary);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 10px;
}

/* Card Icon */
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
}

.strengths-icon {
  background: rgba(46, 204, 113, 0.1);
  color: var(--harmony-color);
}

.challenges-icon {
  background: rgba(245, 166, 35, 0.1);
  color: var(--inspire-color);
}

.boss-icon {
  background: rgba(52, 152, 219, 0.1);
  color: var(--logic-color);
}

.phrase-icon {
  background: rgba(217, 53, 38, 0.1);
  color: var(--drive-color);
}

.summary-icon {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.1), rgba(103, 58, 183, 0.1));
  color: var(--primary);
}

/* Card Group (side by side on desktop) */
.result-card-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .result-card-group {
    grid-template-columns: repeat(2, 1fr);
  }

  .result-card-group .result-card {
    margin-bottom: 0;
  }
}

/* Goal Card */
.goal-card {
  border-left: 4px solid var(--primary);
}

.goal-view-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Boss Strategy Card */
.boss-strategy-card {
  border-left: 4px solid var(--logic-color);
}

.boss-situations {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.situations-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 12px;
}

.situations-list {
  list-style: none;
}

.situations-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.situations-list li::before {
  content: '"';
  position: absolute;
  left: 0;
  color: var(--text-light);
  font-size: 1.2rem;
  font-weight: 700;
}

.boss-approach {
  padding: 16px;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(52, 152, 219, 0.1));
  border-radius: var(--radius-md);
  border: 1px solid rgba(52, 152, 219, 0.2);
}

.approach-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--logic-color);
  margin-bottom: 8px;
}

.approach-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.7;
}

/* Killer Phrase Card */
.killer-phrase-card {
  border-left: 4px solid var(--drive-color);
}

.killer-phrase {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.7;
  padding: 20px 24px;
  margin: 0;
  background: linear-gradient(135deg, rgba(217, 53, 38, 0.05), rgba(217, 53, 38, 0.1));
  border-radius: var(--radius-md);
  border: none;
  position: relative;
}

.killer-phrase::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 2.5rem;
  color: rgba(217, 53, 38, 0.2);
  font-family: Georgia, serif;
  line-height: 1;
}

/* Summary Card */
.summary-card {
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
}

.result-summary {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.8;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}

.action-btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.action-btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: var(--shadow-md);
}

.action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.share-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.action-btn.twitter {
  background: #1DA1F2;
  color: #fff;
}

.action-btn.facebook {
  background: #4267B2;
  color: #fff;
}

.action-btn.twitter:hover,
.action-btn.facebook:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ========================================
   Footer
======================================== */
.footer {
  text-align: center;
  padding: 40px 0;
  margin-top: 40px;
  color: var(--text-light);
  font-size: 0.85rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 480px) {
  .app-container {
    padding: 16px;
  }

  .main-title {
    font-size: 1.4rem;
  }

  .intro-section,
  .rules-section,
  .question-header,
  .choice-card,
  .result-card,
  .axes-info {
    padding: 20px 16px;
  }

  .result-header {
    padding: 32px 20px;
  }

  .coin-wrapper {
    width: 220px;
    height: 220px;
  }

  .coin-glow {
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
  }

  .result-type-ja {
    font-size: 1.5rem;
  }

  .axes-grid {
    gap: 12px;
  }

  .axis-item {
    padding: 16px;
  }
}

/* ========================================
   Loading State
======================================== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.loading::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ========================================
   Result Page Extra Sections
======================================== */

/* Goal View */
.goal-view-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.8;
  border-left: 4px solid var(--accent);
  padding-left: 16px;
  background: rgba(15, 52, 96, 0.05);
  padding: 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Boss Strategy */
.boss-situations {
  margin-bottom: 24px;
}

.situations-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 12px;
}

.situations-list {
  list-style: none;
  font-size: 0.95rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: var(--radius-md);
}

.situations-list li {
  position: relative;
  padding: 8px 0 8px 16px;
  border-bottom: 1px dashed var(--border-color);
}

.situations-list li:last-child {
  border-bottom: none;
}

.situations-list li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.5;
  top: 8px;
}

.boss-approach {
  margin-top: 20px;
}

.approach-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--harmony-color);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.approach-label::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
}

.approach-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.8;
}

/* Killer Phrase */
.killer-phrase {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.8;
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(240, 240, 255, 0.5));
  border: 2px solid var(--accent);
  border-radius: var(--radius-md);
  position: relative;
  margin: 10px 0;
  box-shadow: 0 4px 12px rgba(15, 52, 96, 0.1);
}

.result-summary {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ========================================
   Result Page - Full Guide Sections
======================================== */

/* Section Number */
.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 16px;
  font-weight: 500;
}

/* Content Sections */
.goal-view-content,
.observation-content,
.delegation-content,
.oneonone-content,
.praise-content,
.correction-content,
.warning-content,
.pitfall-content {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, rgba(15, 52, 96, 0.05), rgba(103, 58, 183, 0.05));
  border-left: 4px solid var(--accent);
  padding: 16px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 16px 0;
}

.highlight-box p {
  margin: 0;
  font-weight: 500;
  color: var(--text-primary);
}

/* Goal Definition */
.goal-definition {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-top: 16px;
}

.goal-definition-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--harmony-color);
  margin-bottom: 8px;
}

.goal-definition-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.goal-definition-list li {
  padding: 4px 0;
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* Observation Points */
.observation-level {
  margin-bottom: 16px;
}

.observation-level-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--drive-color);
  margin-bottom: 8px;
}

.observation-points-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.observation-points-list li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 0.9rem;
}

.observation-points-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Delegation Template */
.delegation-template {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: var(--radius-md);
  margin: 16px 0;
}

.delegation-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
}

.delegation-step:last-child {
  border-bottom: none;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.step-content {
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* Conversation Example */
.conversation-example {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(52, 152, 219, 0.1));
  border: 1px solid rgba(52, 152, 219, 0.2);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-top: 16px;
}

.conversation-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--logic-color);
  margin-bottom: 8px;
}

.conversation-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.7;
  font-style: italic;
}

/* 1on1 Questions */
.oneonone-questions {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.oneonone-questions li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.oneonone-questions li:last-child {
  border-bottom: none;
}

.question-label {
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Praise Phrases */
.praise-phrases {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.praise-phrase {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(46, 204, 113, 0.2));
  border: 1px solid rgba(46, 204, 113, 0.3);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 500;
}

.best-phrase {
  background: linear-gradient(135deg, var(--harmony-color), #27ae60);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-top: 16px;
}

.best-phrase-label {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 4px;
}

.best-phrase-text {
  font-size: 1rem;
  font-weight: 600;
}

/* Correction Template */
.correction-template {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: var(--radius-md);
  margin: 16px 0;
}

.correction-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.correction-step {
  background: var(--primary);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.correction-arrow {
  color: var(--text-light);
  font-size: 1.2rem;
}

/* Warning Signs */
.warning-signs-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.warning-signs-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
}

.warning-signs-list li:last-child {
  border-bottom: none;
}

.warning-signs-list li::before {
  content: '⚠';
  position: absolute;
  left: 0;
  color: var(--inspire-color);
}

.rescue-phrase {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.1), rgba(245, 166, 35, 0.2));
  border: 1px solid rgba(245, 166, 35, 0.3);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-top: 16px;
}

.rescue-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--inspire-color);
  margin-bottom: 8px;
}

/* Pitfall List */
.pitfall-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.pitfall-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
}

.pitfall-list li:last-child {
  border-bottom: none;
}

.pitfall-list li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: var(--drive-color);
  font-weight: 700;
}

.pitfall-solution {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(46, 204, 113, 0.15));
  border: 1px solid rgba(46, 204, 113, 0.3);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-top: 16px;
}

.solution-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--harmony-color);
  margin-bottom: 8px;
}

/* Section Card Colors */
.observation-card {
  border-left: 4px solid var(--drive-color);
}

.delegation-card {
  border-left: 4px solid var(--inspire-color);
}

.oneonone-card {
  border-left: 4px solid var(--logic-color);
}

.praise-card {
  border-left: 4px solid var(--harmony-color);
}

.correction-card {
  border-left: 4px solid var(--inspire-color);
}

.warning-card {
  border-left: 4px solid #e74c3c;
}

.pitfall-card {
  border-left: 4px solid var(--drive-color);
}

/* ========================================
   16 Type Coin Gallery - Infinite Scroll (Top Page)
======================================== */
.type-gallery {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 0 28px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* 非アクティブ時はアニメーション停止と非表示を強制 */
.screen:not(.active) .type-gallery,
.screen:not(.active) .scroll-row {
  animation: none !important;
  display: none !important;
}

.gallery-title {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.gallery-subtitle {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* Scroll Row */
.scroll-row-wrapper {
  overflow: hidden;
  position: relative;
  padding: 8px 0;
}

/* 左右のフェードアウトマスク */
.scroll-row-wrapper::before,
.scroll-row-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.scroll-row-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #fff 0%, transparent 100%);
}

.scroll-row-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #fff 0%, transparent 100%);
}

.scroll-row {
  display: flex;
  width: max-content;
}

/* 上段: 右方向へスクロール（左→右） */
.scroll-row.scroll-left {
  animation: scrollLeft 40s linear infinite;
}

/* 下段: 左方向へスクロール（右→左） */
.scroll-row.scroll-right {
  animation: scrollRight 40s linear infinite;
}

/* ホバーで一時停止 */
.scroll-row:hover {
  animation-play-state: paused;
}

.scroll-track {
  display: flex;
  gap: 28px;
  flex-shrink: 0;
  padding: 0 14px;
}

/* Gallery Items */
.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
  width: 160px;
}

.gallery-coin {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-coin:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.gallery-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 3px;
  white-space: nowrap;
}

.gallery-person {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
  white-space: nowrap;
}

/* scroll-track 1セット分の幅 = 8アイテム × (160px + 28px gap) + 28px padding
   = 8 × 188 + 28 = 1532px
   正確にはCSS上で自動計算されるので、50%で丁度1セット分移動 */

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes scrollRight {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

/* 上段と下段の間隔 */
.scroll-row-wrapper+.scroll-row-wrapper {
  margin-top: 12px;
}

/* Responsive: 480px以下 */
@media (max-width: 480px) {
  .type-gallery {
    padding: 24px 0 20px;
  }

  .gallery-item {
    width: 100px;
  }

  .gallery-coin {
    width: 80px;
    height: 80px;
    margin-bottom: 6px;
  }

  .gallery-name {
    font-size: 0.65rem;
  }

  .gallery-person {
    font-size: 0.58rem;
  }

  .scroll-track {
    gap: 16px;
    padding: 0 8px;
  }

  .scroll-row.scroll-left,
  .scroll-row.scroll-right {
    animation-duration: 30s;
  }

  .scroll-row-wrapper::before,
  .scroll-row-wrapper::after {
    width: 30px;
  }
}

/* Responsive: 481px〜768px */
@media (min-width: 481px) and (max-width: 768px) {
  .gallery-item {
    width: 130px;
  }

  .gallery-coin {
    width: 105px;
    height: 105px;
  }

  .gallery-name {
    font-size: 0.75rem;
  }

  .gallery-person {
    font-size: 0.68rem;
  }

  .scroll-track {
    gap: 20px;
    padding: 0 10px;
  }

  .scroll-row.scroll-left,
  .scroll-row.scroll-right {
    animation-duration: 35s;
  }

  .scroll-row-wrapper::before,
  .scroll-row-wrapper::after {
    width: 40px;
  }
}

/* ========================================
   Registration Screen (メルマガ登録フォーム)
======================================== */
.registration-screen {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
}

.registration-banner {
  margin-bottom: 20px;
  margin-left: -20px;
  margin-right: -20px;
  width: calc(100% + 40px);
}

.registration-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.registration-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
}

.registration-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 12px;
}

.registration-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.6;
}

.registration-screen .form-group {
  margin-bottom: 20px;
}

.registration-screen .form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.registration-screen .required-badge {
  display: inline-block;
  background: var(--highlight);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
}

.registration-screen .form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: var(--transition);
}

.registration-screen .form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-primary);
}

.registration-screen .form-input::placeholder {
  color: var(--text-light);
}

/* Checkbox Custom Styling */
.registration-screen .privacy-group {
  margin-top: 24px;
  margin-bottom: 24px;
}

.registration-screen .checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  gap: 12px;
}

.registration-screen .checkbox-label input[type="checkbox"] {
  display: none;
}

.registration-screen .checkbox-custom {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.registration-screen .checkbox-label input[type="checkbox"]:checked+.checkbox-custom {
  background: var(--primary);
  border-color: var(--primary);
}

.registration-screen .checkbox-label input[type="checkbox"]:checked+.checkbox-custom::after {
  content: '✓';
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.registration-screen .checkbox-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.registration-screen .checkbox-text a {
  color: var(--primary);
  text-decoration: underline;
}

.registration-screen .checkbox-text a:hover {
  color: var(--highlight);
}

/* Submit Button */
.registration-btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--highlight) 0%, #d63550 100%);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(233, 69, 96, 0.3);
}

.registration-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(233, 69, 96, 0.4);
}

.registration-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.registration-note {
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 20px;
  line-height: 1.5;
}

/* ========================================
   CTA Sections (コース案内・LINE登録)
======================================== */
.cta-section {
  text-align: center;
  padding: 32px 24px;
  margin-top: 24px;
}

.cta-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.cta-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.cta-btn {
  display: inline-block;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.cta-btn:hover {
  transform: translateY(-3px);
}

/* コース案内ボタン */
.course-cta {
  background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
  border: 2px solid #ffc107;
}

.course-btn {
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(26, 26, 46, 0.3);
}

.course-btn:hover {
  box-shadow: 0 8px 24px rgba(26, 26, 46, 0.4);
}

/* LINE登録セクション */
.line-cta {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 2px solid #06c755;
}

.line-qr-container {
  margin-bottom: 20px;
}

.line-qr-image {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  background: #fff;
  padding: 8px;
}

.line-btn {
  background: #06c755;
  color: #fff;
  box-shadow: 0 4px 16px rgba(6, 199, 85, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.line-btn:hover {
  background: #05b34c;
  box-shadow: 0 8px 24px rgba(6, 199, 85, 0.4);
}

.line-icon {
  font-size: 1.2rem;
}

/* ========================================
   v5追加: 「続きを読む」ボタン
======================================== */
.read-more-btn {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 24px auto;
  padding: 16px 32px;
  background: var(--highlight);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-base);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  letter-spacing: 0.05em;
}

.read-more-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.read-more-btn:active {
  transform: translateY(0);
}

/* ========================================
   v5追加: 全タイプ紹介リンクボタン
======================================== */
.all-types-link-wrapper {
  padding: 24px 16px;
  text-align: center;
}

.all-types-link-btn {
  display: inline-block;
  width: 100%;
  max-width: 400px;
  padding: 16px 32px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-base);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  letter-spacing: 0.05em;
}

.all-types-link-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ========================================
   v5追加: 軸ボックスの色付き背景対応
======================================== */
.result-screen .axis-item .axis-label,
.result-screen .axis-item .axis-name {
  color: inherit;
}

.result-screen .axis-item .axis-dot-large {
  border: 2px solid rgba(255, 255, 255, 0.5);
}