/* =====================================================
   大学物語 - Landing / Demo 共通スタイル
   Brand palette:
     navy    #1A1F3A
     navy2   #0F1324
     red     #E74C3C
     gold    #FFD700
     sakura  #FFB7C5
     a-red   #E74C3C
     b-green #2ECC71
     c-blue  #3498DB
     d-yel   #F1C40F
===================================================== */

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", system-ui, -apple-system, sans-serif;
  background: #0F1324;
  color: #EDEEF3;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: #FFD700; text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ==== Buttons ==== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.3); text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, #E74C3C, #C0392B);
  color: #fff;
}
.btn-secondary {
  background: linear-gradient(135deg, #3498DB, #1F6FA8);
  color: #fff;
}
.btn-large { padding: 18px 42px; font-size: 1.2rem; }

/* ==== Hero ==== */
.hero {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(ellipse at top, #242c5a 0%, #1A1F3A 40%, #0F1324 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url("./assets/ogp.png") center/cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 900px;
  text-align: center;
}
.hero-logo {
  max-width: 560px;
  width: 100%;
  margin: 0 auto 24px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.hero-tagline {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 8px;
}
.hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: #B7BCD8;
  margin-bottom: 32px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
}
.hero-stats div {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 12px;
  padding: 16px 10px;
}
.hero-stats strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #FFD700;
}
.hero-stats span {
  font-size: 0.85rem;
  color: #B7BCD8;
}

/* ==== Section ==== */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  margin-bottom: 40px;
  color: #FFD700;
}

.features,
.screenshots,
.demo-cta {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==== Features ==== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px 22px;
  transition: transform .2s ease, border-color .2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: #FFD700;
}
.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.feature-card h3 {
  color: #FFD700;
  margin-bottom: 10px;
  font-size: 1.1rem;
}
.feature-card p {
  color: #C9CCE3;
  font-size: 0.95rem;
}

/* ==== Screenshots ==== */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.screenshot-grid img {
  width: 100%;
  border-radius: 12px;
  border: 2px solid rgba(255,215,0,0.2);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  transition: transform .2s ease;
}
.screenshot-grid img:hover { transform: scale(1.02); }

/* ==== Demo CTA ==== */
.demo-cta {
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(231,76,60,0.15), transparent 70%);
  border-radius: 24px;
  margin-top: 40px;
  margin-bottom: 40px;
}
.demo-cta h2 { font-size: clamp(1.6rem, 3vw, 2rem); color: #FFD700; margin-bottom: 12px; }
.demo-cta p { color: #B7BCD8; margin-bottom: 28px; }

/* ==== Footer ==== */
.site-footer {
  padding: 40px 20px;
  background: #0A0D1A;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: #7A7F9A;
  font-size: 0.9rem;
}
.footer-links { margin-top: 12px; }
.footer-links a { color: #C9CCE3; margin: 0 4px; }
.footer-links span { color: #444; }

/* =====================================================
   Demo page specific
===================================================== */

.demo-header {
  padding: 20px;
  background: #1A1F3A;
  border-bottom: 1px solid rgba(255,215,0,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.demo-header img { height: 40px; }
.demo-header a { color: #FFD700; font-weight: 700; }

.demo-wrap {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.demo-hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.demo-hud .slot {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 10px;
  padding: 14px 8px;
  text-align: center;
}
.demo-hud strong {
  display: block;
  font-size: 1.6rem;
  color: #FFD700;
}
.demo-hud span {
  font-size: 0.8rem;
  color: #B7BCD8;
}

.question-panel {
  background: #1A1F3A;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,215,0,0.2);
}
.question-index {
  color: #FFD700;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.question-body {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.7;
  margin-bottom: 8px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 640px) {
  .choice-grid { grid-template-columns: 1fr; }
}

.choice-btn {
  border: none;
  padding: 20px 18px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
}
.choice-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.choice-btn:disabled { cursor: default; }
.choice-btn .letter {
  font-size: 1.8rem;
  font-weight: 900;
  flex-shrink: 0;
  min-width: 44px;
  text-align: center;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.4);
}
.choice-btn.a { background: linear-gradient(135deg, #E74C3C, #C0392B); }
.choice-btn.b { background: linear-gradient(135deg, #2ECC71, #27AE60); }
.choice-btn.c { background: linear-gradient(135deg, #3498DB, #2980B9); }
.choice-btn.d { background: linear-gradient(135deg, #F1C40F, #D4A017); }
.choice-btn.correct { outline: 4px solid #FFD700; filter: brightness(1.2); }
.choice-btn.wrong { filter: brightness(0.5) saturate(0.5); }

.demo-controls {
  text-align: center;
  margin-top: 24px;
}

.result-card {
  background: #1A1F3A;
  border-radius: 16px;
  padding: 40px 28px;
  text-align: center;
  border: 2px solid #FFD700;
}
.result-card h2 {
  color: #FFD700;
  font-size: 1.8rem;
  margin-bottom: 16px;
}
.result-score {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  margin: 20px 0;
}
.result-message {
  color: #B7BCD8;
  margin-bottom: 24px;
}
