/* ============================================
   2人麻雀！ヒロインフォーカス - Landing Page
   City Pop Night × Retro Arcade Design System
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DotGothic16&family=Noto+Sans+JP:wght@400;700;900&display=swap');

/* --- CSS Variables --- */
:root {
  /* Colors — City Pop Night Palette */
  --bg-primary: #0c0e2b;
  --bg-secondary: #151738;
  --bg-card: #1a1d45;
  --bg-card-hover: #222560;
  --neon-pink: #ff6b9d;
  --neon-green: #39ff14;
  --neon-blue: #4dd0e1;
  --neon-yellow: #ffab40;
  --neon-purple: #b388ff;
  --text-primary: #f0eef5;
  --text-secondary: #b0adc0;
  --text-dim: #6a6780;
  --border-dark: #2d2b55;

  /* Character accent colors */
  --char-himari: #ff6b9d;
  --char-souki: #ffab40;
  --char-ruto: #4dd0e1;
  --char-tsumugi: #39ff14;
  --char-meruya: #ff69b4;
  --char-kiriko: #ef4444;

  /* Fonts */
  --font-pixel: 'DotGothic16', cursive;
  --font-body: 'Noto Sans JP', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  overflow-x: hidden;
  position: relative;
}

/* CRT Scanline - removed for cleaner feel */

/* --- Container --- */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* --- Pixel Font Headings --- */
.pixel-text {
  font-family: var(--font-pixel);
}

/* --- Section Title --- */
.section-title {
  font-family: var(--font-pixel);
  font-size: 1.6rem;
  margin-bottom: 50px;
  color: var(--text-secondary);
  letter-spacing: 3px;
  text-align: left;
  border-left: 3px solid var(--neon-pink);
  padding-left: 15px;
}

/* --- Glitch Animation --- */
@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

@keyframes glitch-color {
  0% { text-shadow: 2px 0 var(--neon-pink), -2px 0 var(--neon-blue); }
  25% { text-shadow: -2px 0 var(--neon-pink), 2px 0 var(--neon-blue); }
  50% { text-shadow: 2px 2px var(--neon-pink), -2px -2px var(--neon-blue); }
  75% { text-shadow: -2px 2px var(--neon-pink), 2px -2px var(--neon-blue); }
  100% { text-shadow: 2px 0 var(--neon-pink), -2px 0 var(--neon-blue); }
}

.glitch-text:hover {
  animation: glitch 0.3s ease infinite, glitch-color 0.5s ease infinite;
}

/* --- Neon Glow --- */
.neon-glow-pink {
  text-shadow:
    0 0 7px var(--neon-pink),
    0 0 20px var(--neon-pink),
    0 0 40px var(--neon-pink);
}

.neon-glow-blue {
  text-shadow:
    0 0 7px var(--neon-blue),
    0 0 20px var(--neon-blue),
    0 0 40px var(--neon-blue);
}

.neon-glow-green {
  text-shadow:
    0 0 7px var(--neon-green),
    0 0 20px var(--neon-green),
    0 0 40px var(--neon-green);
}

/* --- Fade In Animation --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: translateY(30px);
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(12, 14, 43, 0.95);
  box-shadow: 0 2px 20px rgba(179, 136, 255, 0.2);
  backdrop-filter: blur(10px);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-pixel);
  font-size: 1.2rem;
  color: var(--neon-pink);
  text-decoration: none;
  text-shadow: 0 0 10px var(--neon-pink);
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s, text-shadow 0.3s;
  letter-spacing: 1px;
}

.nav-links a:hover {
  color: var(--neon-blue);
  text-shadow: 0 0 10px var(--neon-blue);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--neon-pink);
  transition: all 0.3s;
  box-shadow: 0 0 5px var(--neon-pink);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px 20px 60px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(255, 107, 157, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(77, 208, 225, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 171, 64, 0.08) 0%, transparent 40%),
    radial-gradient(ellipse at 60% 20%, rgba(179, 136, 255, 0.06) 0%, transparent 50%);
  z-index: 0;
}

/* Pixel grid background */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(179, 136, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(179, 136, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-pixel);
  font-size: 3.5rem;
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: 3px;
}

.hero-title .title-sub {
  display: block;
  font-size: 1.5rem;
  color: var(--neon-blue);
  text-shadow: 0 0 15px var(--neon-blue);
  margin-bottom: 10px;
}

.hero-title .title-main {
  display: block;
  color: var(--neon-pink);
  text-shadow:
    0 0 10px var(--neon-pink),
    0 0 30px var(--neon-pink),
    0 0 60px var(--neon-pink);
}

.hero-subtitle {
  font-family: var(--font-pixel);
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 20px;
  margin-bottom: 40px;
  letter-spacing: 2px;
}

.hero-catchphrase {
  font-family: var(--font-pixel);
  font-size: 1.1rem;
  color: var(--neon-green);
  text-shadow: 0 0 10px var(--neon-green);
  margin-bottom: 40px;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* --- Download Buttons --- */
.download-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border-dark);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.btn-download:hover {
  border-color: var(--neon-pink);
  background: rgba(255, 107, 157, 0.05);
}

.btn-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn-download .btn-label-small {
  font-size: 0.7rem;
  display: block;
  opacity: 0.6;
}

.btn-download .btn-label-main {
  font-size: 0.95rem;
  display: block;
  font-weight: 700;
}

/* ============================================
   CHARACTER SHOWCASE SECTION
   (selectoblige-inspired vertical scroll)
   ============================================ */
.characters-section {
  padding: 80px 0 0;
  background: var(--bg-primary);
  position: relative;
}

/* Arcade-style border top */
.characters-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,
    transparent,
    var(--neon-pink),
    var(--neon-blue),
    var(--neon-green),
    var(--neon-pink),
    transparent
  );
}

/* --- Individual Character Showcase --- */
.char-showcase {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 700px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-dark);
}

/* Alternating layout */
.char-showcase:nth-child(even) {
  flex-direction: row-reverse;
}

.char-showcase:nth-child(even) .char-side-text {
  left: auto;
  right: 0;
}

.char-showcase:nth-child(even) .char-bg-text {
  right: auto;
  left: 30px;
}

/* --- Decorative Name Text (beside info) --- */
.char-bg-text {
  position: absolute;
  bottom: 30px;
  right: 30px;
  font-family: var(--font-pixel);
  font-size: 5rem;
  font-weight: 900;
  color: var(--char-accent, var(--neon-pink));
  opacity: 0.12;
  letter-spacing: 5px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 3;
  white-space: nowrap;
}

.char-bg-glitch {
  animation: glitch-color 4s ease infinite;
  color: rgba(255, 255, 255, 0.04);
}

/* --- Character Catchphrase Text --- */
.char-side-text {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  color: var(--char-accent, var(--neon-pink));
  letter-spacing: 2px;
  padding-left: 12px;
  border-left: 2px solid var(--char-accent, var(--neon-pink));
  margin-bottom: 20px;
  opacity: 0.7;
}

/* --- Character Image Wrapper --- */
.char-image-wrapper {
  flex: 0 0 42%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.8) 0%,
    rgba(10, 10, 26, 0.5) 50%,
    transparent 100%
  );
  padding-top: 40px;
}

/* Grid pattern behind character */
.char-image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 25px 25px;
  z-index: 0;
}

/* Accent line on the side nearest to info */
.char-image-wrapper::after {
  content: '';
  position: absolute;
  top: 10%;
  right: 0;
  width: 3px;
  height: 80%;
  background: var(--char-accent, var(--neon-pink));
  box-shadow: 0 0 15px var(--char-accent, var(--neon-pink));
  z-index: 3;
}

.char-showcase:nth-child(even) .char-image-wrapper::after {
  right: auto;
  left: 0;
}

.char-full-img {
  max-height: 620px;
  width: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.5))
          drop-shadow(0 0 15px var(--char-accent, rgba(255, 45, 123, 0.2)));
  transition: transform 0.5s ease;
}

.char-showcase:hover .char-full-img {
  transform: scale(1.02);
}

/* Number badge - hidden */
.char-number-badge {
  display: none;
}

/* --- Character Info Panel --- */
.char-info-panel {
  flex: 1;
  padding: 60px 50px 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.char-showcase:nth-child(even) .char-info-panel {
  padding: 60px 40px 60px 50px;
}

/* Character header */
.char-header {
  margin-bottom: 25px;
}

.char-name-main {
  font-family: var(--font-pixel);
  font-size: 2.4rem;
  color: var(--char-accent, var(--neon-pink));
  text-shadow: 0 0 20px var(--char-accent, var(--neon-pink));
  line-height: 1.2;
  margin-bottom: 5px;
}

.char-kana-sub {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 4px;
  margin-bottom: 18px;
}

/* Metadata row (AGE / BIRTHDAY / OCCUPATION) */
.char-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.meta-item {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-primary);
}

.meta-label {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-right: 6px;
  letter-spacing: 1px;
}

/* Bio text */
.char-bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 25px;
  max-width: 520px;
}

/* --- Quote Bars (selectoblige-style) --- */
.char-quote-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 25px;
}

.quote-bar {
  background: rgba(0, 0, 0, 0.6);
  border-left: 3px solid var(--char-accent, var(--neon-pink));
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.6;
  position: relative;
  transition: all 0.3s ease;
}

.quote-bar:hover {
  background: rgba(0, 0, 0, 0.8);
  border-left-color: var(--neon-yellow);
  box-shadow: inset 3px 0 10px rgba(255, 230, 0, 0.1);
}

.quote-bar-hidden {
  color: var(--text-dim);
  border-left-color: var(--text-dim);
  letter-spacing: 2px;
}

/* --- Mahjong Info --- */
.char-mahjong-info {
  margin-bottom: 25px;
  padding: 15px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
}

.mj-label {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--neon-blue);
  margin-bottom: 6px;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

.mj-value {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.6;
}

/* Character screenshots */
.char-screenshots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.char-screenshots .screenshot {
  aspect-ratio: 16/9;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.char-screenshots .screenshot:hover {
  border-color: var(--char-accent, var(--neon-pink));
}

.char-screenshots .screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.char-screenshots .screenshot .placeholder {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* --- Hidden character silhouette --- */
.hidden-silhouette {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.silhouette-img {
  filter:
    brightness(0)
    drop-shadow(0 0 30px rgba(255, 255, 255, 0.1)) !important;
  opacity: 0.3;
}

.char-showcase-hidden {
  background: repeating-linear-gradient(
    0deg,
    var(--bg-primary),
    var(--bg-primary) 3px,
    rgba(255, 255, 255, 0.005) 3px,
    rgba(255, 255, 255, 0.005) 6px
  );
}


/* ============================================
   GAME SYSTEM SECTION
   ============================================ */
.system-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
}

.system-features {
  max-width: 800px;
}

.feature-row {
  display: flex;
  gap: 25px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border-dark);
  align-items: flex-start;
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-num {
  font-family: var(--font-pixel);
  font-size: 2rem;
  color: var(--border-dark);
  flex-shrink: 0;
  width: 60px;
  line-height: 1;
}

.feature-body h3 {
  font-family: var(--font-pixel);
  font-size: 1rem;
  color: var(--neon-blue);
  margin-bottom: 8px;
}

.feature-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================
   IKASAMA (CHEATING) SECTION
   ============================================ */
.ikasama-section {
  padding: var(--section-padding);
  background: var(--bg-primary);
  position: relative;
}

.ikasama-lead {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 40px;
  max-width: 600px;
}

.ikasama-lead strong {
  color: var(--neon-green);
}

.ikasama-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ika-item {
  display: flex;
  gap: 25px;
  padding: 25px 20px;
  background: var(--bg-secondary);
  align-items: flex-start;
  transition: background 0.3s ease;
}

.ika-item:hover {
  background: var(--bg-card);
}

.ika-header {
  flex-shrink: 0;
  width: 100px;
  text-align: center;
}

.ika-label {
  display: block;
  font-family: var(--font-pixel);
  font-size: 1.1rem;
  color: var(--neon-green);
  margin-bottom: 4px;
}

.ika-ruby {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 2px;
}

.ika-item p {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.ika-effect {
  flex-shrink: 0;
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--neon-yellow);
  align-self: center;
  white-space: nowrap;
}

/* ============================================
   CTA (DOWNLOAD) SECTION
   ============================================ */
.cta-section {
  padding: 80px 0;
  text-align: center;
  background: var(--bg-secondary);
}

.cta-section .cta-title {
  font-family: var(--font-pixel);
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.cta-section .cta-subtitle {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 35px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 25px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-dark);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-width);
  width: 90%;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--text-secondary);
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-title .title-sub {
    font-size: 1rem;
  }

  .hero-subtitle {
    font-size: 0.8rem;
  }

  .hero-catchphrase {
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.4rem;
    margin-bottom: 40px;
  }

  /* Navbar mobile */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 26, 0.98);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    border-bottom: 2px solid var(--neon-pink);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  /* Character showcase mobile */
  .char-showcase,
  .char-showcase:nth-child(even) {
    flex-direction: column;
    min-height: auto;
  }

  .char-image-wrapper {
    flex: none;
    min-height: 400px;
  }

  .char-image-wrapper::after {
    top: auto;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 3px;
  }

  .char-showcase:nth-child(even) .char-image-wrapper::after {
    left: 0;
    right: 0;
  }

  .char-info-panel,
  .char-showcase:nth-child(even) .char-info-panel {
    padding: 30px 20px;
  }

  .char-name-main {
    font-size: 1.6rem;
  }

  .char-bg-text {
    font-size: 4rem;
  }

  .char-side-text {
    display: none;
  }

  .char-meta-row {
    flex-direction: column;
    gap: 8px;
  }

  /* System cards */
  .system-grid {
    grid-template-columns: 1fr;
  }

  /* Download buttons */
  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-download {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  /* Footer */
  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 60px 0;
  }

  .hero {
    padding: 100px 15px 40px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-title .title-sub {
    font-size: 0.85rem;
  }

  .char-image-wrapper {
    min-height: 300px;
  }

  .char-full-img {
    max-height: 350px;
  }

  .char-bg-text {
    font-size: 3rem;
  }

  .char-screenshots {
    grid-template-columns: 1fr;
  }

  .char-number-badge {
    font-size: 2.5rem;
  }
}

