/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Palette */
  --color-primary: #8b5cf6;
  --color-primary-light: #a78bfa;
  --color-primary-dark: #6d28d9;
  --color-secondary: #ffd700;
  --color-secondary-light: #ffa500;
  --color-accent: #ef4444;
  --color-accent-light: #f59e0b;

  /* Neutrals */
  --color-bg-primary: #0f1419;
  --color-bg-secondary: #1a2332;
  --color-bg-tertiary: #1e2938;
  --color-bg-card: rgba(255, 255, 255, 0.03);
  --color-bg-card-hover: rgba(255, 255, 255, 0.06);

  /* Text */
  --color-text-primary: #ffffff;
  --color-text-secondary: #a0a0b0;
  --color-text-tertiary: #6b6b80;

  /* Borders */
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-light: rgba(255, 255, 255, 0.05);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.6);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  --gradient-purple: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
  --gradient-red: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);

  /* Typography */
  --font-primary: "Noto Sans JP", sans-serif;
  --font-display: "Cinzel", serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===================================
   NAVIGATION
   =================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border-light);
  transition: var(--transition-normal);
}

.nav.scrolled {
  background-color: rgba(10, 10, 15, 0.95);
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  background: white;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-text-primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: width var(--transition-normal);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem var(--spacing-md) 4rem;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg-primary);
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  animation: hero-bg-rotate 25s linear infinite;
}

.hero-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(15, 20, 25, 0) 50%,
    rgba(15, 20, 25, 0.75) 100%
  );
  z-index: 2;
}

@keyframes hero-bg-rotate {
  0% {
    opacity: 0;
  }
  8% { /* Fade in for 2s */
    opacity: 0.25;
    transform: scale(1.1);
  }
  20% { /* Hold for 3s */
    opacity: 0.25;
  }
  28% { /* Fade out for 2s */
    opacity: 0;
    transform: scale(1.15);
  }
  100% { /* Remain hidden */
    opacity: 0;
  }
}






.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  animation: fadeInDown 1s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease 0.2s both;
}

.title-line {
  display: block;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #e0d4ff 20%,
    #ffffff 40%,
    #c4b5fd 60%,
    #ffffff 80%,
    #e0d4ff 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShimmer 6s ease-in-out infinite;
  filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.5))
          drop-shadow(0 0 50px rgba(139, 92, 246, 0.25));
}

@keyframes titleShimmer {
  0% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.5))
            drop-shadow(0 0 50px rgba(139, 92, 246, 0.25));
  }
  50% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 35px rgba(139, 92, 246, 0.7))
            drop-shadow(0 0 60px rgba(139, 92, 246, 0.35));
  }
  100% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.5))
            drop-shadow(0 0 50px rgba(139, 92, 246, 0.25));
  }
}

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

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  animation: fadeInUp 1s ease 0.6s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(75, 0, 130, 0.9) 0%, rgba(45, 0, 80, 0.95) 100%);
  color: var(--color-text-primary);
  box-shadow: 0 4px 20px rgba(75, 0, 130, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  position: relative;
  overflow: hidden;
}

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

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(75, 0, 130, 0.6), 0 0 20px rgba(139, 92, 246, 0.3);
  border-color: rgba(139, 92, 246, 0.5);
}

.btn-primary:active,
.btn-primary:focus {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.95) 0%, rgba(75, 0, 130, 1) 100%);
  box-shadow: 0 4px 15px rgba(75, 0, 130, 0.7), 0 0 15px rgba(139, 92, 246, 0.4);
  border-color: rgba(167, 139, 250, 0.6);
  outline: none;
}

.btn-secondary {
  background: rgba(20, 20, 35, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--color-text-primary);
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-secondary:hover::before {
  opacity: 1;
}

.btn-secondary:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(75, 0, 130, 0.3);
}

.btn-secondary:active,
.btn-secondary:focus {
  background: rgba(75, 0, 130, 0.3);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 2px 15px rgba(75, 0, 130, 0.4);
  outline: none;
}

/* 参加者向けの導線。ホスト向けのダウンロードと役割が違うので金色で分ける */
.btn-join {
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.45);
  color: var(--color-secondary);
  position: relative;
  overflow: hidden;
}

.btn-join:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

.btn-join:active,
.btn-join:focus {
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.8);
  outline: none;
}

.nav-join {
  padding: 0.4rem 1rem;
  border: 1px solid rgba(255, 215, 0, 0.45);
  border-radius: 999px;
  color: var(--color-secondary);
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-join:hover {
  color: var(--color-secondary);
  background: rgba(255, 215, 0, 0.12);
  border-color: rgba(255, 215, 0, 0.7);
}

/* ピル形状なので、通常の nav-link の下線アニメーションは出さない */
.nav-join::after,
.nav-join:hover::after {
  display: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--color-text-primary);
  position: relative;
  overflow: hidden;
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
  transition: left 0.5s ease;
}

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

.btn-outline:hover {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(75, 0, 130, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(75, 0, 130, 0.3);
}

.btn-outline:active,
.btn-outline:focus {
  background: rgba(75, 0, 130, 0.3);
  border-color: rgba(167, 139, 250, 0.6);
  box-shadow: 0 2px 15px rgba(75, 0, 130, 0.4);
  outline: none;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  animation: fadeInUp 1s ease 0.8s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-image {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  z-index: 0;
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(-50%) translateX(0);
  }
  50% {
    transform: translateY(-50%) translateX(-20px);
  }
}

.phone-mockup {
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.6));
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

.scroll-icon {
  width: 30px;
  height: 50px;
  border: 2px solid var(--color-border);
  border-radius: 20px;
  position: relative;
}

.scroll-icon::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 2px;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
}

/* ===================================
   SECTION COMMON STYLES
   =================================== */
.section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--color-text-primary) 0%,
    #a78bfa 50%,
    var(--color-text-primary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  letter-spacing: 0.02em;
}

/* ===================================
   FEATURES SECTION
   =================================== */
.features {
  background: linear-gradient(
    to bottom,
    var(--color-bg-primary) 0%,
    var(--color-bg-secondary) 100%
  );
  position: relative;
}

.features-spec {
  background: var(--color-bg-secondary);
  padding: 2.5rem 0;
}

.section-header-compact {
  margin-bottom: 1.5rem;
}

.section-header-compact .section-title {
  font-size: 1.5rem;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(75, 0, 130, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.game-concept {
  position: relative;
  background: url('../images/game_background.jpg') center center / cover no-repeat;
}

.game-concept::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 20, 25, 0.85) 0%,
    rgba(15, 20, 25, 0.75) 50%,
    rgba(15, 20, 25, 0.9) 100%
  );
  pointer-events: none;
}

.game-concept .container {
  position: relative;
  z-index: 1;
}

/* Game Overview */
.game-overview {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.overview-content {
  position: relative;
}

.overview-text {
  font-size: 1.15rem;
  line-height: 2;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 2rem;
}

.overview-text strong {
  color: #a78bfa;
  font-weight: 700;
}

.overview-tagline {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.feature-card {
  background: linear-gradient(135deg, rgba(30, 30, 50, 0.9) 0%, rgba(20, 20, 35, 0.95) 100%);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.feature-card:hover {
  background: linear-gradient(135deg, rgba(40, 30, 60, 0.9) 0%, rgba(25, 20, 40, 0.95) 100%);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(75, 0, 130, 0.2);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon-mystery {
  background: linear-gradient(135deg, rgba(75, 0, 130, 0.6) 0%, rgba(45, 0, 80, 0.8) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 4px 15px rgba(75, 0, 130, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.feature-icon svg {
  width: 30px;
  height: 30px;
  color: #a78bfa;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

.feature-description {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Compact Features */
.features-compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0.5rem;
  background: linear-gradient(135deg, rgba(30, 30, 50, 0.7) 0%, rgba(20, 20, 35, 0.8) 100%);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.feature-item:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(75, 0, 130, 0.15);
}

.feature-icon-small {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(75, 0, 130, 0.5) 0%, rgba(45, 0, 80, 0.7) 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 50%;
}

.feature-icon-small svg {
  width: 22px;
  height: 22px;
  stroke: #a78bfa;
}

.feature-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-primary);
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .features-compact {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .features-compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .feature-item {
    padding: 1rem 0.25rem;
  }

  .feature-icon-small {
    width: 38px;
    height: 38px;
  }

  .feature-icon-small svg {
    width: 18px;
    height: 18px;
  }

  .feature-label {
    font-size: 0.75rem;
  }
}

/* ===================================
   RECOMMENDED ROLE SECTION
   =================================== */
.recommended-role {
  background: var(--color-bg-secondary);
}

.recommended-card {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 3rem;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.08) 0%,
    rgba(139, 92, 246, 0.12) 100%
  );
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-xl);
  padding: 3rem;
  transition: all var(--transition-normal);
  overflow: hidden;
  position: relative;
}

.recommended-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #8b5cf6, transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.recommended-card:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 16px 48px rgba(139, 92, 246, 0.3);
}

.recommended-card:hover::before {
  opacity: 1;
}

.recommended-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.2) 0%,
    rgba(139, 92, 246, 0.1) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.recommended-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  transition: transform var(--transition-normal);
}

.recommended-card:hover .recommended-image img {
  transform: scale(1.05);
}

.recommended-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.recommended-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.recommended-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  color: #1a1a2e;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.recommended-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.recommended-title-en {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.recommended-desc {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.recommended-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.recommended-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
}

.recommended-feature-item .feature-check {
  width: 20px;
  height: 20px;
  color: #8b5cf6;
  flex-shrink: 0;
}

/* Responsive design for recommended role */
@media (max-width: 1024px) {
  .recommended-card {
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .recommended-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .recommended-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .recommended-image {
    max-width: 250px;
    margin: 0 auto;
    padding: 1.5rem;
  }

  .recommended-title {
    font-size: 1.75rem;
  }

  .recommended-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .recommended-features {
    gap: 0.5rem;
  }

  .recommended-feature-item {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .recommended-card {
    padding: 1.25rem;
    gap: 1rem;
  }

  .recommended-image {
    max-width: 200px;
    padding: 1rem;
  }

  .recommended-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    margin-bottom: 0.75rem;
  }

  .recommended-title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
  }

  .recommended-title-en {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }

  .recommended-desc {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
  }

  .recommended-features {
    gap: 0.4rem;
  }

  .recommended-feature-item {
    font-size: 0.8rem;
  }

  .recommended-feature-item .feature-check {
    width: 16px;
    height: 16px;
  }
}

/* ===================================
   PLAY MODES SECTION
   =================================== */
.play-modes {
  background: var(--color-bg-secondary);
  position: relative;
  overflow: hidden;
}

.play-modes::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 0%, rgba(139, 92, 246, 0.1) 0%, transparent 55%);
  pointer-events: none;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  position: relative;
  z-index: 1;
}

.mode-card {
  position: relative;
  padding: 2.25rem 2rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.mode-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.15);
}

.mode-card-featured {
  border-color: rgba(255, 215, 0, 0.35);
}

.mode-card-featured:hover {
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.12);
}

.mode-badge-new {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0f1419;
  background: var(--gradient-gold);
  border-radius: 999px;
}

.mode-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-primary-light);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 999px;
}

.mode-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-text-primary);
  margin-bottom: 0.85rem;
}

.mode-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.mode-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mode-points li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-primary);
  line-height: 1.6;
}

.mode-points li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary-light);
  font-size: 0.85rem;
}

.mode-card-featured .mode-points li::before {
  color: var(--color-secondary);
}

.mode-cta {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.mode-cta .btn {
  display: inline-flex;
}

.mode-cta-note {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--color-text-tertiary);
  line-height: 1.5;
}

.mode-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.mode-flow-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.mode-flow-num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-primary);
  background: var(--gradient-primary);
  border-radius: 50%;
}

.mode-flow-arrow {
  display: flex;
  align-items: center;
  color: var(--color-text-tertiary);
}

@media (max-width: 768px) {
  .mode-grid {
    grid-template-columns: 1fr;
  }

  .mode-card {
    padding: 1.75rem 1.25rem;
  }

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

  .mode-flow {
    flex-direction: column;
    align-items: stretch;
  }

  .mode-flow-arrow {
    justify-content: center;
    transform: rotate(90deg);
  }
}

/* ===================================
   PLAY ANYWHERE SECTION
   =================================== */
.play-anywhere {
  background: var(--color-bg-primary);
  padding: 4rem 0;
  position: relative;
}

.play-anywhere::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.scene-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.scene-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.scene-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.15);
}

.scene-card:hover::before {
  opacity: 1;
}

.scene-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(75, 0, 130, 0.2) 100%);
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.scene-icon svg {
  width: 28px;
  height: 28px;
  stroke: #a78bfa;
}

.scene-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.scene-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .scene-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .scene-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .scene-card {
    padding: 1.25rem 0.75rem;
  }

  .scene-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 0.75rem;
  }

  .scene-icon svg {
    width: 22px;
    height: 22px;
  }

  .scene-title {
    font-size: 0.95rem;
  }

  .scene-desc {
    font-size: 0.8rem;
  }
}

/* ===================================
   AI TOPICS SECTION
   =================================== */
.ai-topics {
  background: var(--color-bg-secondary);
  position: relative;
  overflow: hidden;
}

.ai-topics::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(139, 92, 246, 0.12) 0%, transparent 55%);
  pointer-events: none;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  position: relative;
  z-index: 1;
}

.ai-card {
  padding: 2rem 1.75rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.ai-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.15);
}

.ai-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(75, 0, 130, 0.2) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-md);
}

.ai-icon svg {
  width: 26px;
  height: 26px;
  stroke: #a78bfa;
}

.ai-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.7rem;
}

.ai-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.ai-note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-tertiary);
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .ai-grid {
    grid-template-columns: 1fr;
  }

  .ai-card {
    padding: 1.5rem 1.25rem;
  }
}

/* ===================================
   ROLES SECTION
   =================================== */
.roles {
  background: var(--color-bg-secondary);
  position: relative;
  padding: 3rem 0;
}

.roles::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(75, 0, 130, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.roles .section-header {
  margin-bottom: 2rem;
}

.faction-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.faction-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: var(--color-bg-card);
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.faction-tab:hover {
  border-color: var(--color-border);
  transform: translateY(-2px);
}

.faction-tab.active {
  background: var(--color-bg-tertiary);
  border-color: var(--color-primary);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-md);
}

.faction-tab[data-faction="light"].active {
  border-color: var(--color-secondary);
}

.faction-tab[data-faction="phantom"].active {
  border-color: var(--color-primary);
}

.faction-tab[data-faction="chaos"].active {
  border-color: var(--color-accent);
}

.faction-icon {
  font-size: 1.25rem;
}

.roles-container {
  position: relative;
  min-height: 600px;
}

.faction-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.faction-content.active {
  display: block;
}

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

.faction-section {
  margin-bottom: 2rem;
}

.faction-section + .faction-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.faction-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faction-title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.faction-description {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* Center single role card (for Chaos faction with only 1 role) */
/* 他のカードと同じ幅(2列の1列分 = (全幅 - 列の間隔) / 2)にして中央に置く */
.roles-grid > .role-card:only-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc((100% - 2rem) / 2);
}

@media (max-width: 768px) {
  .roles-grid > .role-card:only-child {
    width: calc((100% - 1.5rem) / 2);
  }
}

@media (max-width: 480px) {
  .roles-grid > .role-card:only-child {
    width: calc((100% - 1rem) / 2);
  }
}

/* Add spacing between faction sections */
.faction-section {
  margin-bottom: 4rem;
}

.faction-section:not(:first-child) {
  margin-top: 4rem;
}

.role-card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 0;
  text-align: center;
  transition: all var(--transition-normal);
  overflow: hidden;
  cursor: pointer;
}

/* Faction-specific dark backgrounds for role cards */
.role-card[data-faction="light"] {
  background: linear-gradient(
    to bottom,
    rgba(255, 165, 0, 0.08),
    rgba(255, 165, 0, 0.12)
  ) !important;
  border: 2px solid rgba(255, 165, 0, 0.3) !important;
}

.role-card[data-faction="phantom"] {
  background: linear-gradient(
    to bottom,
    rgba(155, 89, 182, 0.08),
    rgba(155, 89, 182, 0.12)
  ) !important;
  border: 2px solid rgba(155, 89, 182, 0.3) !important;
}

.role-card[data-faction="chaos"] {
  background: linear-gradient(
    to bottom,
    rgba(231, 76, 60, 0.08),
    rgba(231, 76, 60, 0.12)
  ) !important;
  border: 2px solid rgba(231, 76, 60, 0.3) !important;
}

/* Dark mode text colors for role cards */
.role-card p,
.role-card div {
  color: rgba(255, 255, 255, 0.9) !important;
}

.role-card strong {
  color: rgba(255, 255, 255, 1) !important;
}

.role-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.role-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* Faction-specific hover border colors */
.role-card[data-faction="light"]:hover {
  border-color: rgba(255, 165, 0, 0.5) !important;
  box-shadow: 0 8px 24px rgba(255, 165, 0, 0.2) !important;
}

.role-card[data-faction="phantom"]:hover {
  border-color: rgba(155, 89, 182, 0.5) !important;
  box-shadow: 0 8px 24px rgba(155, 89, 182, 0.2) !important;
}

.role-card[data-faction="chaos"]:hover {
  border-color: rgba(231, 76, 60, 0.5) !important;
  box-shadow: 0 8px 24px rgba(231, 76, 60, 0.2) !important;
}

.role-card:hover::before {
  opacity: 1;
}

/* Faction-specific hover effects */
.role-card[data-faction="light"]::before {
  background: linear-gradient(
    90deg,
    transparent,
    #ffa500,
    transparent
  ) !important;
}

.role-card[data-faction="phantom"]::before {
  background: linear-gradient(
    90deg,
    transparent,
    #9b59b6,
    transparent
  ) !important;
}

.role-card[data-faction="chaos"]::before {
  background: linear-gradient(
    90deg,
    transparent,
    #e74c3c,
    transparent
  ) !important;
}

.role-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #333;
  background: rgba(255, 255, 255, 0.9);
}

/* Faction-specific badge colors */
.role-card[data-faction="light"] .role-badge {
  background: rgba(255, 165, 0, 0.2);
  border: 1px solid rgba(255, 165, 0, 0.5);
  color: #d97706;
  font-weight: 700;
}

.role-card[data-faction="phantom"] .role-badge {
  background: rgba(155, 89, 182, 0.2);
  border: 1px solid rgba(155, 89, 182, 0.5);
  color: #7c3aed;
  font-weight: 700;
}

.role-card[data-faction="chaos"] .role-badge {
  background: rgba(231, 76, 60, 0.2);
  border: 1px solid rgba(231, 76, 60, 0.5);
  color: #dc2626;
  font-weight: 700;
}

.role-badge.premium {
  background: var(--gradient-gold);
  border: 1px solid var(--color-secondary);
  color: var(--color-bg-primary);
}

.role-image-placeholder {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.role-icon {
  font-size: 3rem;
}

.role-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.role-desc {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Compact Role Cards for Index Page */
.roles-grid-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.roles-grid-single {
  grid-template-columns: 1fr 1fr;
}

.roles-grid-single .role-card-compact {
  grid-column: 1;
}

.role-card-compact {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
}

.role-card-compact .role-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
}

.role-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.role-card-compact:hover .role-card-image {
  transform: scale(1.05);
}

.role-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.role-card-overlay .role-name {
  font-size: 1.25rem;
  font-weight: 900;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 480px) {
  .roles-grid-compact {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .role-card-overlay .role-name {
    font-size: 1rem;
  }
}

/* Roles CTA */
.roles-cta {
  text-align: center;
  margin-top: 2rem;
}

.roles-cta-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.btn-mystery {
  padding: 1.35rem 3.5rem;
  border-radius: 40px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.btn-mystery .btn-icon {
  width: 24px;
  height: 24px;
}

.btn-mystery:hover {
  box-shadow: 0 8px 30px rgba(75, 0, 130, 0.5), 0 0 40px rgba(139, 92, 246, 0.2);
}

/* ちらつきではなく、外周のグローをゆっくり呼吸させて目線を集める */
.btn-pulse {
  animation: btnPulse 2.4s ease-in-out infinite;
}

.btn-pulse:hover {
  animation: none;
}

@keyframes btnPulse {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(75, 0, 130, 0.5),
      0 0 0 0 rgba(139, 92, 246, 0.35);
  }
  50% {
    box-shadow: 0 4px 20px rgba(75, 0, 130, 0.5),
      0 0 0 14px rgba(139, 92, 246, 0);
  }
}

@media (max-width: 480px) {
  .btn-mystery {
    padding: 1.1rem 2rem;
    font-size: 1.1rem;
    white-space: normal;
  }
}

/* 動きに敏感なユーザーには明滅させない */
@media (prefers-reduced-motion: reduce) {
  .btn-pulse {
    animation: none;
  }
}

/* ===================================
   HOW TO PLAY SECTION
   =================================== */
.howto {
  background: linear-gradient(
    to bottom,
    var(--color-bg-secondary) 0%,
    var(--color-bg-primary) 100%
  );
  position: relative;
  padding: 4rem 0;
}

.howto::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(75, 0, 130, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.howto .timeline-item:last-child {
  margin-bottom: 0;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(139, 92, 246, 0.5), rgba(75, 0, 130, 0.2));
}

.timeline-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 1.5rem;
}

.timeline-number {
  position: absolute;
  left: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(75, 0, 130, 0.8) 0%, rgba(45, 0, 80, 0.95) 100%);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(75, 0, 130, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #a78bfa;
}

.timeline-content {
  background: linear-gradient(135deg, rgba(30, 30, 50, 0.8) 0%, rgba(20, 20, 35, 0.9) 100%);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  transition: all var(--transition-normal);
}

.timeline-item:hover .timeline-content {
  background: linear-gradient(135deg, rgba(40, 30, 60, 0.9) 0%, rgba(25, 20, 40, 0.95) 100%);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateX(5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(75, 0, 130, 0.15);
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline-desc {
  color: var(--color-text-secondary);
  line-height: 1.5;
  font-size: 0.9rem;
}

/* ===================================
   PRICING SECTION
   =================================== */
.pricing {
  background: var(--color-bg-primary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 30, 50, 0.8) 0%, rgba(20, 20, 35, 0.9) 100%);
  border: 2px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(75, 0, 130, 0.2);
  border-color: rgba(139, 92, 246, 0.3);
}

.pricing-card.featured {
  border-color: rgba(139, 92, 246, 0.4);
  background: linear-gradient(
    135deg,
    rgba(75, 0, 130, 0.2) 0%,
    rgba(20, 20, 35, 0.9) 100%
  );
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(75, 0, 130, 0.3);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 50px rgba(75, 0, 130, 0.4);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 2rem;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, rgba(75, 0, 130, 0.9) 0%, rgba(45, 0, 80, 0.95) 100%);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(75, 0, 130, 0.5);
  color: #a78bfa;
}

.pricing-header {
  margin-bottom: 1.5rem;
}

.pricing-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text-secondary);
}

.pricing-price {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 700;
  margin-right: 0.25rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-desc {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.pricing-features {
  text-align: left;
  margin-bottom: 1.5rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.9rem;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.feature-check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #a78bfa;
}

.feature-disabled {
  opacity: 0.4;
}

.feature-disabled .feature-check {
  color: var(--color-text-tertiary);
}

/* ===================================
   SCREENSHOTS SECTION
   =================================== */
.screenshots {
  background: var(--color-bg-secondary);
  overflow: hidden;
}

.screenshots-slider {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 2rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.screenshots-slider::-webkit-scrollbar {
  display: none;
}

.screenshot-item {
  flex: 0 0 auto;
  width: 300px;
  text-align: center;
}

.screenshot-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: 1rem;
  transition: transform var(--transition-normal);
}

.screenshot-item:hover .screenshot-img {
  transform: scale(1.05);
}

.screenshot-caption {
  color: var(--color-text-secondary);
  font-weight: 500;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-btn {
  width: 50px;
  height: 50px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-btn:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-primary);
  transform: scale(1.1);
}

.slider-btn svg {
  width: 24px;
  height: 24px;
  color: var(--color-text-primary);
}

/* ===================================
   DOWNLOAD SECTION
   =================================== */
.download {
  background: linear-gradient(
    135deg,
    rgba(75, 0, 130, 0.15) 0%,
    var(--color-bg-primary) 100%
  );
  position: relative;
}

.download::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(75, 0, 130, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.download-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.download-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.download-subtitle {
  color: var(--color-text-secondary);
  font-size: 1.25rem;
  margin-bottom: 3rem;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.store-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(30, 30, 50, 0.8) 0%, rgba(20, 20, 35, 0.9) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.store-button:hover {
  background: linear-gradient(135deg, rgba(40, 30, 60, 0.9) 0%, rgba(25, 20, 40, 0.95) 100%);
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(75, 0, 130, 0.3);
}

.store-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.store-text {
  text-align: left;
}

.store-label {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.store-name {
  font-size: 1.25rem;
  font-weight: 700;
}

.download-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-secondary);
}

.info-icon {
  width: 20px;
  height: 20px;
  color: #a78bfa;
}

.download-image {
  position: relative;
}

.phones-img {
  max-width: 100%;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.5));
}

/* ===================================
   FAQ SECTION
   =================================== */
.faq {
  background: var(--color-bg-primary);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: linear-gradient(135deg, rgba(30, 30, 50, 0.8) 0%, rgba(20, 20, 35, 0.9) 100%);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 4px 20px rgba(75, 0, 130, 0.15);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: transparent;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  color: #a78bfa;
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border-light);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 400px;
}

.footer-logo {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.footer-desc {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

.footer-list li {
  margin-bottom: 0.75rem;
}

.footer-list a {
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.footer-list a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-light);
  text-align: center;
  color: var(--color-text-tertiary);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
  .hero-image {
    opacity: 0.2;
    width: 500px;
  }

  .download-content {
    grid-template-columns: 1fr;
  }

  .download-image {
    order: -1;
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero {
    padding: 6rem var(--spacing-sm) 3rem;
  }

  .hero-image {
    display: none;
  }

  .hero-stats {
    flex-direction: column;
    gap: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .roles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .timeline::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 55px;
    margin-bottom: 1.5rem;
  }

  .timeline-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .timeline-content {
    padding: 1rem;
  }

  .timeline-title {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
  }

  .timeline-desc {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
  }

  .section-header {
    margin-bottom: var(--spacing-md);
  }

  .faction-tabs {
    flex-direction: column;
  }

  .faction-tab {
    width: 100%;
    justify-content: center;
  }

  .download-buttons {
    width: 100%;
  }

  .store-button {
    width: 100%;
  }

  .roles-grid {
    gap: 1rem;
  }

  .role-card {
    padding: 0;
  }

  .role-image-placeholder {
    height: 150px !important;
  }

  .role-card > div[style*="padding"] {
    padding: 15px !important;
  }

  .role-name {
    font-size: 1.1rem !important;
    margin-bottom: 5px !important;
  }

  .role-desc {
    font-size: 0.8rem !important;
  }

  .features-grid {
    gap: 1rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .feature-title {
    font-size: 1.1rem;
  }

  .feature-description {
    font-size: 0.85rem;
  }

  /* Timeline adjustments for very small screens */
  .timeline::before {
    left: 12px;
  }

  .timeline-item {
    padding-left: 45px;
    margin-bottom: 1.2rem;
  }

  .timeline-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .timeline-content {
    padding: 0.75rem;
  }

  .timeline-title {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }

  .timeline-desc {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .pricing-grid {
    gap: 1rem;
  }

  .pricing-card {
    padding: 1.5rem 1.25rem;
  }

  .pricing-header {
    margin-bottom: 1.25rem;
  }

  .pricing-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .price-currency {
    font-size: 1.25rem;
  }

  .price-amount {
    font-size: 2.5rem;
  }

  .pricing-desc {
    font-size: 0.85rem;
  }

  .pricing-features {
    margin-bottom: 1.25rem;
  }

  .pricing-features li {
    padding: 0.5rem 0;
    font-size: 0.85rem;
    gap: 0.5rem;
  }

  .feature-check {
    width: 18px;
    height: 18px;
  }
}

/* ===================================
   ROLE MODAL
   =================================== */
.role-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.role-modal-content {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.role-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 10;
}

.role-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.role-modal-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 3rem;
}

.role-modal-image {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.role-modal-image img {
  width: 100%;
  height: auto;
  display: block;
}

.role-modal-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.role-modal-name {
  font-size: 2.5rem;
  font-weight: 900;
  margin: 0;
}

.role-modal-name-en {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-text-secondary);
  margin: 0;
}

.role-modal-ability {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  align-self: flex-start;
}

.role-modal-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-primary);
}

.role-modal-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
}

.role-modal-details > div {
  display: flex;
  gap: 10px;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .role-modal-body {
    padding: 1.5rem 1rem;
    gap: 1.25rem;
  }

  .role-modal-image {
    max-width: 200px;
    margin: 0 auto;
  }

  .role-modal-info {
    gap: 0.75rem;
  }

  .role-modal-name {
    font-size: 1.75rem;
  }

  .role-modal-name-en {
    font-size: 1rem;
  }

  .role-modal-ability {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .role-modal-desc {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .role-modal-details {
    gap: 8px;
    padding-top: 15px;
  }

  .role-modal-details > div {
    gap: 8px;
    font-size: 0.9rem;
  }

  .role-modal-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .role-modal-body {
    padding: 1.25rem 0.875rem;
    gap: 1rem;
  }

  .role-modal-image {
    max-width: 180px;
  }

  .role-modal-info {
    gap: 0.5rem;
  }

  .role-modal-name {
    font-size: 1.5rem;
  }

  .role-modal-name-en {
    font-size: 0.9rem;
  }

  .role-modal-ability {
    padding: 5px 10px;
    font-size: 0.8rem;
  }

  .role-modal-desc {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .role-modal-details {
    gap: 6px;
    padding-top: 12px;
  }

  .role-modal-details > div {
    gap: 6px;
    font-size: 0.85rem;
  }

  .role-modal-close {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    font-size: 1.25rem;
  }
}

/* ===================================
   ANIMATIONS & UTILITIES
   =================================== */
[data-aos] {
  opacity: 0;
  transition-property: transform, opacity;
}

[data-aos].aos-animate {
  opacity: 1;
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
}

[data-aos="fade-right"] {
  transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
  transform: translateX(0);
}

[data-aos="fade-left"] {
  transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
  transform: translateX(0);
}

[data-aos="zoom-in"] {
  transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
  transform: scale(1);
}

/* Loading States */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Selection */
::selection {
  background: var(--color-primary);
  color: var(--color-text-primary);
}

::-moz-selection {
  background: var(--color-primary);
  color: var(--color-text-primary);
}

/* ===================================
   PHANTOM NUMBER ADDITIONS
   ファントムワードのスタイルに、ファントムナンバー固有の要素だけを追加する
   =================================== */

/* お題と並べ替えの例(コンセプトセクション) */
.number-demo {
  max-width: 760px;
  margin: 3rem auto 0;
  display: grid;
  gap: 1.5rem;
}

.number-demo-topic {
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(30, 30, 50, 0.7) 0%, rgba(20, 20, 35, 0.8) 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-lg);
}

.number-demo-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-primary-light);
  margin-bottom: 0.5rem;
}

.number-demo-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.number-demo-scale {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.number-demo-scale-bar {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.2), var(--color-primary-light));
}

.number-demo-cards {
  display: grid;
  gap: 0.5rem;
}

.number-demo-card {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.number-demo-card.is-phantom {
  border-color: rgba(155, 89, 182, 0.5);
  background: rgba(155, 89, 182, 0.08);
}

.number-demo-player {
  font-size: 0.85rem;
  color: var(--color-text-tertiary);
}

.number-demo-word {
  font-weight: 700;
  color: var(--color-text-primary);
}

.number-demo-number {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-secondary);
  min-width: 2.5rem;
  text-align: right;
}

.number-demo-caption {
  font-size: 0.85rem;
  color: var(--color-text-tertiary);
  text-align: center;
  line-height: 1.7;
}

/* ズレ数の説明 */
.gap-explainer {
  max-width: 760px;
  margin: 3rem auto 0;
  padding: 1.75rem;
  background: var(--color-bg-card);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-lg);
}

.gap-explainer-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
}

.gap-explainer p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.gap-explainer-rows {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0;
}

.gap-explainer-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.gap-explainer-row span:first-child {
  color: var(--color-text-tertiary);
}

.gap-explainer-row span:last-child {
  color: var(--color-text-primary);
  font-weight: 600;
}

/* 画像のない役職カード */
.role-card-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
  padding: 1rem;
  background: linear-gradient(160deg, rgba(30, 30, 50, 0.9) 0%, rgba(15, 15, 25, 0.95) 100%);
}

.role-card-text-en {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--color-text-tertiary);
}

.role-card-text-ability {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  text-align: center;
  line-height: 1.6;
}

/* 料金の注記 */
.pricing-note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-tertiary);
}

/* ストア公開前のボタン */
.store-button.is-coming-soon {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 480px) {
  .number-demo-card {
    grid-template-columns: 3.5rem 1fr auto;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
  }

  .number-demo-title {
    font-size: 1.3rem;
  }

  /* 両端のラベルを上の段に、帯を下の段に分ける(1行だと帯がつぶれるため) */
  .number-demo-scale {
    grid-template-columns: 1fr 1fr;
  }

  .number-demo-scale > span:first-child {
    text-align: left;
  }

  .number-demo-scale > span:last-child {
    text-align: right;
  }

  .number-demo-scale-bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .gap-explainer-row {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}
