/* ==========================================================================
   OhShu (王・主) 公式紹介ページ スタイルシート
   Design: Modern Japanese Royal / Glassmorphism / Dark & Gold Theme
   ========================================================================== */

:root {
  --bg-primary: #080911;
  --bg-secondary: #0f1220;
  --bg-card: rgba(22, 27, 46, 0.72);
  --bg-card-hover: rgba(30, 37, 62, 0.85);
  --border-glass: rgba(255, 215, 0, 0.18);
  --border-subtle: rgba(255, 255, 255, 0.08);

  --gold-glow: #ffd54f;
  --gold-primary: #f59e0b;
  --gold-gradient: linear-gradient(135deg, #ffe082 0%, #ffb300 50%, #e65100 100%);
  --royal-blue: #3b82f6;
  --royal-purple: #8b5cf6;
  --indigo-glow: rgba(99, 102, 241, 0.25);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-gold: #fde047;

  --font-serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-sans: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-royal: "Cinzel", "Noto Serif JP", serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-gold: 0 10px 30px -10px rgba(245, 158, 11, 0.4);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --backdrop-blur: blur(20px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* 背景グラデーション＆スターダスト効果 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 15%, rgba(99, 102, 241, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 80% 40%, rgba(245, 158, 11, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 85%, rgba(139, 92, 246, 0.15) 0%, transparent 55%);
  pointer-events: none;
  z-index: -2;
}

/* アプリ用パーティクルCanvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  background: rgba(8, 9, 17, 0.75);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(8, 9, 17, 0.92);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  transition: transform 0.3s ease;
}

.nav-brand:hover .brand-icon {
  transform: rotate(-6deg) scale(1.08);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-royal);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sound-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.sound-toggle:hover {
  color: var(--gold-glow);
  border-color: var(--gold-glow);
  background: rgba(255, 215, 0, 0.1);
}

.nav-btn {
  background: var(--gold-gradient);
  color: #1a0f00;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
  filter: brightness(1.1);
}

/* モバイルメニュートグル */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 130px 2rem 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.32;
  filter: saturate(1.2);
  object-fit: cover;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-glow);
  margin-bottom: 1.5rem;
  animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.3); }
  50% { box-shadow: 0 0 16px 4px rgba(245, 158, 11, 0.2); }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.hero-title-highlight {
  display: block;
  font-family: var(--font-royal);
  font-size: 4rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(245, 158, 11, 0.2);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #120a00;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-gold);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px -5px rgba(245, 158, 11, 0.6);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  backdrop-filter: var(--backdrop-blur);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.95rem 1.8rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold-glow);
  transform: translateY(-2px);
  color: var(--gold-glow);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-royal);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-gold);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   iPhone 3D Mockup
   ========================================================================== */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.phone-mockup {
  width: 320px;
  height: 650px;
  background: #000;
  border-radius: 50px;
  box-shadow: 
    0 0 0 10px #1e2230,
    0 0 0 12px #333a50,
    0 30px 80px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(245, 158, 11, 0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: rotateY(-8deg) rotateX(6deg);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-mockup:hover {
  transform: rotateY(0deg) rotateX(0deg) translateY(-8px);
}

/* ダイナミックアイランド / ノッチ */
.phone-island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 95px;
  height: 26px;
  background: #000;
  border-radius: 20px;
  z-index: 20;
}

.phone-screen {
  flex: 1;
  background: linear-gradient(180deg, #101626 0%, #171d33 100%);
  padding: 55px 18px 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.screen-header {
  text-align: center;
}

.screen-subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gold-glow);
  margin-bottom: 2px;
}

.screen-title {
  font-family: var(--font-royal);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.screen-kanji-target {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  margin: 12px auto;
  font-size: 0.85rem;
  color: var(--text-gold);
  width: fit-content;
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 10px 0;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.screen-cell {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-serif);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.screen-cell.highlight-target {
  background: #fde047;
  color: #000;
  animation: pulse-cell 1.5s infinite;
}

@keyframes pulse-cell {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); box-shadow: 0 0 12px rgba(253, 224, 71, 0.8); }
}

.screen-scripture {
  background: rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--gold-primary);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.72rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.screen-scripture strong {
  color: var(--gold-glow);
  display: block;
  margin-bottom: 2px;
}

.screen-footer-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Section Common Styles
   ========================================================================== */
section {
  padding: 6rem 2rem;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 4rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-glow);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ==========================================================================
   Interactive Web Demo Section (今すぐ遊べるWeb体験版)
   ========================================================================== */
.demo-section {
  background: radial-gradient(ellipse at 50% 50%, rgba(26, 35, 60, 0.7) 0%, rgba(8, 9, 17, 0.95) 100%);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.demo-wrapper {
  max-width: 950px;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-card), 0 0 50px rgba(245, 158, 11, 0.1);
  position: relative;
}

.demo-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

.demo-stage-info {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.demo-stage-badge {
  background: var(--gold-gradient);
  color: #120a00;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
}

.demo-title-text {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.demo-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.demo-difficulty-selector {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.diff-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.diff-btn.active {
  background: var(--gold-gradient);
  color: #100b00;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.demo-score-board {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.score-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.score-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.score-value {
  font-family: var(--font-royal);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-gold);
}

.demo-game-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* 漢字グリッド */
.grid-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.demo-hint-box {
  margin-bottom: 1rem;
  text-align: center;
}

.demo-hint-text {
  font-size: 1.15rem;
  color: var(--text-main);
  font-weight: 600;
}

.demo-target-char {
  color: #fde047;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  padding: 0 4px;
}

.demo-kanji-grid {
  display: grid;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
}

.kanji-cell {
  background: #ffffff;
  color: #1a1a24;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}

.kanji-cell:hover {
  transform: translateY(-2px) scale(1.04);
  background: #fff8e1;
  box-shadow: 0 6px 12px rgba(245, 158, 11, 0.3);
}

.kanji-cell:active {
  transform: scale(0.96);
}

.kanji-cell.correct-hit {
  background: #22c55e !important;
  color: #fff !important;
  animation: hit-sparkle 0.6s ease;
}

.kanji-cell.wrong-hit {
  background: #ef4444 !important;
  color: #fff !important;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

@keyframes hit-sparkle {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); box-shadow: 0 0 20px #22c55e; }
  100% { transform: scale(1); }
}

/* みことばカード（デモ用） */
.scripture-display {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.scripture-citation {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-glow);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.scripture-body {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.9;
  color: #e2e8f0;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 8px;
}

.scripture-body::-webkit-scrollbar {
  width: 5px;
}

.scripture-body::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: 10px;
}

.demo-feedback {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border-left: 4px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feedback-msg {
  font-size: 0.95rem;
  font-weight: 600;
}

.btn-next-stage {
  background: var(--gold-gradient);
  color: #120a00;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-next-stage:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

/* ==========================================================================
   Features Section (特徴紹介)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glass);
  box-shadow: var(--shadow-card), 0 0 30px rgba(245, 158, 11, 0.15);
}

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

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--gold-glow);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.feature-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: #fff;
}

.feature-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================================
   Scriptures Archive / Gallery (みことばギャラリー)
   ========================================================================== */
.archive-section {
  background: rgba(11, 14, 26, 0.85);
}

.archive-container {
  max-width: 1200px;
  margin: 0 auto;
}

.archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  background: var(--bg-card);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  flex: 1;
  max-width: 380px;
}

.search-box input {
  background: none;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  width: 100%;
  outline: none;
}

.search-box input::placeholder {
  color: #64748b;
}

.btn-omikuji {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  transition: all 0.25s ease;
}

.btn-omikuji:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.scriptures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.scripture-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.scripture-card:hover {
  border-color: var(--border-glass);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.kanji-pair {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.2);
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-gold);
}

.card-citation {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.card-snippet {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.btn-read-more {
  background: none;
  border: none;
  color: var(--gold-glow);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-read-more:hover {
  text-decoration: underline;
}

/* ==========================================================================
   App Specs & Overview
   ========================================================================== */
.specs-section {
  max-width: 1000px;
  margin: 0 auto;
}

.specs-card {
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: center;
}

.specs-app-icon {
  width: 180px;
  height: 180px;
  border-radius: 40px;
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.35);
  margin: 0 auto;
  display: block;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--border-subtle);
}

.specs-table th {
  text-align: left;
  padding: 1rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  width: 35%;
}

.specs-table td {
  padding: 1rem 0;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ==========================================================================
   Call To Action (CTA Banner)
   ========================================================================== */
.cta-section {
  padding: 5rem 2rem 8rem;
  text-align: center;
}

.cta-banner {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(30, 41, 69, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #040508;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 2rem 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-desc {
  margin-top: 1rem;
  max-width: 380px;
  line-height: 1.7;
}

.footer-links h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

/* ==========================================================================
   Modal (みことば詳細 & プライバシーポリシー)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-window {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-window {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--gold-glow);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .demo-game-area {
    grid-template-columns: 1fr;
  }

  .specs-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .specs-table th {
    width: 45%;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 1.25rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(8, 9, 17, 0.98);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border-glass);
  }

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

  .mobile-menu-btn {
    display: block;
  }

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

  .hero-title-highlight {
    font-size: 2.8rem;
  }

  .demo-wrapper {
    padding: 1.5rem 1rem;
  }

  .demo-top-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
