/* ============================================================
   Everlusting Life — promo site theme
   "Moonlit Garden" — light fantasy-romance palette
   Mobile-first; breakpoints 768px and 480px
   ============================================================ */

:root {
  --bg: #fbf8f5;
  --bg-alt: #f4eef8;
  --card: #ffffff;
  --ink: #3b2f4f;
  --muted: #7d7390;
  --violet: #7b5ea7;
  --violet-deep: #5c3f8a;
  --rose: #d96c8c;
  --gold: #c9a24b;
  --line: #ece3f2;
  --shadow: 0 10px 30px rgba(91, 63, 138, 0.10);
  --radius: 18px;
  --font-head: Georgia, "Times New Roman", "Noto Serif JP", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans JP", "Noto Sans SC", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

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

a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--rose); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--ink);
}

.container { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand img { width: 42px; height: auto; }
.brand-name { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; letter-spacing: 0.02em; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a:not(.btn-play) { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.main-nav a:not(.btn-play):hover { color: var(--violet); }

.btn-play {
  display: inline-block;
  background: linear-gradient(135deg, var(--violet) 0%, var(--rose) 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(123, 94, 167, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn-play:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(123, 94, 167, 0.45); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 1.3rem;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--violet);
}

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero-kicker {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--violet-deep);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); margin-bottom: 16px; }
.hero h1 em { font-style: italic; color: var(--rose); }
.hero-tagline { font-size: 1.12rem; color: var(--muted); max-width: 34em; margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--violet) 0%, var(--rose) 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 13px 30px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(123, 94, 167, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(123, 94, 167, 0.45); color: #fff; }

.btn-ghost {
  display: inline-block;
  border: 2px solid var(--violet);
  color: var(--violet);
  font-weight: 700;
  font-size: 1.02rem;
  padding: 11px 26px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-ghost:hover { background: var(--violet); color: #fff; }

.hero-figure { position: relative; }
.hero-figure::before {
  content: "";
  position: absolute;
  inset: -14px -14px auto auto;
  width: 55%;
  height: 55%;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(217, 108, 140, 0.25), rgba(123, 94, 167, 0.22));
  z-index: -1;
}
.hero-figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 6px solid #fff;
}

/* ---------- Sections ---------- */
.section { padding: 52px 0; }
.section-alt { background: var(--bg-alt); }
.section-divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 34px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.section-head p { color: var(--muted); }

.eyebrow {
  display: inline-block;
  color: var(--rose);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ---------- Game facts ---------- */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.fact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(91, 63, 138, 0.06);
}
.fact-card dt { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rose); margin-bottom: 4px; }
.fact-card dd { font-size: 0.98rem; font-weight: 600; color: var(--ink); }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--violet);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 6px 20px rgba(91, 63, 138, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-card:nth-child(2n) { border-top-color: var(--rose); }
.feature-card:nth-child(3n) { border-top-color: var(--gold); }
.feature-icon {
  font-size: 1.7rem;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border-radius: 14px;
  margin-bottom: 14px;
}
.feature-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Screenshot grid / lightbox ---------- */
.shot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shot-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(91, 63, 138, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.shot-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.shot-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.shot-card figcaption { padding: 12px 14px; font-size: 0.9rem; color: var(--muted); text-align: center; }

/* ---------- Quotes ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  box-shadow: 0 6px 18px rgba(91, 63, 138, 0.06);
}
.quote-card::before {
  content: "\201C";
  font-family: var(--font-head);
  font-size: 3.2rem;
  color: var(--gold);
  position: absolute;
  top: 6px;
  left: 16px;
  line-height: 1;
}
.quote-card blockquote { font-style: italic; color: var(--ink); margin: 12px 0 14px; font-size: 0.97rem; }
.quote-card cite { font-style: normal; font-size: 0.85rem; color: var(--muted); font-weight: 600; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--violet-deep) 0%, var(--violet) 55%, var(--rose) 100%);
  border-radius: 24px;
  padding: 44px 36px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow);
}
.cta-banner h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 10px; }
.cta-banner p { color: rgba(255, 255, 255, 0.85); margin-bottom: 22px; max-width: 40em; margin-left: auto; margin-right: auto; }
.cta-wrapper { text-align: center; margin-top: 36px; }

/* ---------- Sub-page hero ---------- */
.hero-subpage { padding: 44px 0 26px; }
.hero-subpage h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 10px; }
.hero-subpage h1 em { font-style: italic; color: var(--rose); }
.page-intro { color: var(--muted); font-size: 1.05rem; max-width: 44em; }

/* ---------- Prose / story ---------- */
.prose-block { max-width: 46em; }
.prose-block p { margin-bottom: 1.1em; color: var(--ink); }
.prose-block h2 { font-size: 1.45rem; margin: 1.6em 0 0.6em; }
.prose-block h3 { font-size: 1.15rem; margin: 1.3em 0 0.5em; color: var(--violet-deep); }

.side-media { margin: 26px 0; }
.side-media img { border-radius: 14px; box-shadow: var(--shadow); border: 5px solid #fff; }
.side-media figcaption { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 10px; }

.media-left { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: center; margin: 30px 0; }
.media-right { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; margin: 30px 0; }
.media-left figcaption, .media-right figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }
.media-left img, .media-right img { border-radius: 14px; box-shadow: var(--shadow); border: 5px solid #fff; }

/* ---------- Character cards ---------- */
.char-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.char-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(91, 63, 138, 0.07);
  transition: transform 0.25s ease;
}
.char-card:hover { transform: translateY(-4px); }
.char-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.char-body { padding: 20px 22px; }
.char-role {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose);
  background: var(--bg-alt);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
.char-body h3 { font-size: 1.12rem; margin-bottom: 6px; }
.char-body p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Guide tables ---------- */
.table-wrap { overflow-x: auto; margin: 18px 0 30px; }
.guide-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: 0 6px 18px rgba(91, 63, 138, 0.07); }
.guide-table th, .guide-table td { padding: 13px 16px; text-align: left; font-size: 0.95rem; border-bottom: 1px solid var(--line); }
.guide-table th { background: var(--bg-alt); color: var(--violet-deep); font-family: var(--font-head); font-size: 0.98rem; }
.guide-table tr:last-child td { border-bottom: 0; }
.guide-table td { color: var(--ink); }

.tip-box {
  background: var(--bg-alt);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 22px 0;
  font-size: 0.97rem;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 46em; margin: 0 auto; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(91, 63, 138, 0.05);
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--rose); font-weight: 400; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .answer { padding: 0 22px 18px; color: var(--muted); font-size: 0.97rem; }
.faq-item .answer p { margin-bottom: 0.8em; }
.faq-item .answer p:last-child { margin-bottom: 0; }

/* ---------- About / misc utility ---------- */
.about-intro { font-size: 1.08rem; color: var(--ink); }
.about-mission { color: var(--muted); }
.section-desc-left { text-align: left; max-width: none; }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--violet-deep);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 30px 0 34px;
  margin-top: 20px;
}
.site-footer .footer-inner { text-align: center; }
.footer-copy { font-size: 0.9rem; margin-bottom: 16px; }

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.lang-switch a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-switch a:hover { background: var(--rose); border-color: var(--rose); color: #fff; }
.lang-switch a.active { background: var(--violet); border-color: var(--violet); color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(30, 20, 45, 0.92);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 0;
  font-size: 1.6rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-close:hover { background: var(--rose); }
.lightbox-caption {
  color: #fff;
  text-align: center;
  margin-top: 14px;
  font-size: 0.95rem;
}

/* ============================================================
   Responsive
   ============================================================ */

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

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    position: absolute;
    top: 100%;
    left: 4%;
    right: 4%;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 12px; border-radius: 10px; }
  .main-nav .btn-play { text-align: center; margin-top: 6px; }

  .hero { padding: 38px 0 26px; }
  .hero-inner { grid-template-columns: 1fr; gap: 26px; }
  .hero-figure { order: -1; }

  .media-left, .media-right { grid-template-columns: 1fr; gap: 16px; }
  .shot-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { padding: 32px 22px; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .brand-name { font-size: 1rem; }
  .feature-grid, .char-grid, .shot-grid, .quote-grid, .facts-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn-primary, .hero-cta .btn-ghost { text-align: center; }
  .section { padding: 36px 0; }
  .table-wrap { margin: 12px 0 20px; }
  .guide-table th, .guide-table td { padding: 10px 12px; font-size: 0.88rem; }
}
