/* ============================================================
   Harem Fantasy — promo site theme
   "Celestial silk": warm rice-paper light theme, imperial rose,
   jade, and gold accents. Serif display + sans body.
   Light scheme, mobile-first, breakpoints 768px / 480px.
   ============================================================ */

:root {
  --paper: #f7f1e8;
  --paper-2: #efe5d4;
  --surface: #fffdf8;
  --ink: #2f2933;
  --muted: #75697a;
  --rose: #b03a4e;
  --rose-deep: #8c2c3c;
  --jade: #3f7a6d;
  --gold: #b98a2f;
  --gold-soft: #d9bc7e;
  --line: #e6d9c3;
  --shadow: 0 10px 30px rgba(63, 44, 32, 0.08);
  --radius: 14px;
  --display: Georgia, "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  --body: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", "Noto Sans SC", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 85% -100px, rgba(185, 138, 47, 0.10), transparent 60%),
    radial-gradient(1000px 460px at -100px 40%, rgba(176, 58, 78, 0.08), transparent 55%),
    var(--paper);
}

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

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

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--gold-soft);
}

.header-inner {
  max-width: 1140px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--gold);
  padding: 3px;
  background: var(--surface);
  flex: none;
}

.brand-mark img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.brand-name {
  font-family: var(--display);
  font-size: 1.25rem; font-weight: 700; color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.brand-name em {
  font-style: normal; color: var(--rose);
  display: block; font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold);
}

.site-nav { display: flex; align-items: center; gap: 22px; }

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

.nav-links a {
  color: var(--ink); font-weight: 600; font-size: 0.95rem;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}

.nav-links a:hover { color: var(--rose-deep); text-decoration: none; border-bottom-color: var(--gold-soft); }

.nav-links a.active { color: var(--rose-deep); border-bottom-color: var(--rose); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 12px; font-size: 1.1rem; cursor: pointer;
  color: var(--ink); line-height: 1;
}

/* ---------- Buttons ---------- */

.btn-play {
  display: inline-block;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: #fff; font-weight: 700; font-size: 0.95rem;
  padding: 11px 22px; border-radius: 999px;
  border: 1px solid var(--rose-deep);
  box-shadow: 0 6px 16px rgba(176, 58, 78, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn-play:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(176, 58, 78, 0.34); text-decoration: none; color: #fff; }

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: #fff; font-weight: 700; font-size: 1.05rem;
  padding: 14px 34px; border-radius: 999px;
  border: 1px solid var(--rose-deep);
  box-shadow: 0 8px 20px rgba(176, 58, 78, 0.30);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(176, 58, 78, 0.38); text-decoration: none; color: #fff; }

.btn-ghost {
  display: inline-block;
  background: transparent; color: var(--ink);
  font-weight: 600; font-size: 1rem;
  padding: 13px 28px; border-radius: 999px;
  border: 1.5px solid var(--line);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-ghost:hover { border-color: var(--gold); color: var(--rose-deep); text-decoration: none; }

.cta-hero-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--jade), #2e5c51);
  color: #fff; font-weight: 700; font-size: 1.05rem;
  padding: 15px 38px; border-radius: 999px;
  border: 1px solid #2e5c51;
  box-shadow: 0 8px 20px rgba(63, 122, 109, 0.30);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-hero-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(63, 122, 109, 0.38); text-decoration: none; color: #fff; }

.cta-wrapper { text-align: center; margin-top: 34px; }

/* ---------- Hero (index) ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 15% -60px, rgba(176, 58, 78, 0.12), transparent 60%),
    radial-gradient(700px 380px at 95% 10%, rgba(63, 122, 109, 0.10), transparent 55%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-inner {
  max-width: 1140px; margin: 0 auto; padding: 72px 24px 64px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}

.hero-copy { min-width: 0; }

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

.hero-kicker::before {
  content: ""; display: inline-block; width: 34px; height: 2px;
  background: var(--gold); vertical-align: middle; margin-right: 10px;
}

.hero-title {
  font-family: var(--display);
  font-size: 3.1rem; line-height: 1.12; font-weight: 700;
  color: var(--ink); margin-bottom: 20px;
}

.hero-title .accent { color: var(--rose); }

.hero-tagline { font-size: 1.12rem; color: var(--muted); max-width: 30em; margin-bottom: 14px; }

.hero-tagline strong { color: var(--ink); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero-img-wrap {
  position: relative;
  padding: 10px;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-img-wrap::after {
  content: ""; position: absolute; inset: 4px;
  border: 1px solid rgba(185, 138, 47, 0.35);
  border-radius: 10px; pointer-events: none;
}

.hero-img { border-radius: 8px; width: 100%; height: auto; }

.hero-note {
  margin-top: 18px; font-size: 0.85rem; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}

.hero-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--jade); flex: none; }

/* ---------- Sub-page hero ---------- */

.page-hero {
  background:
    radial-gradient(760px 300px at 8% -40px, rgba(176, 58, 78, 0.10), transparent 60%),
    radial-gradient(600px 280px at 96% 0%, rgba(63, 122, 109, 0.09), transparent 55%);
  border-bottom: 1px solid var(--line);
}

.page-hero-inner { max-width: 1140px; margin: 0 auto; padding: 46px 24px 42px; }

.breadcrumb { font-size: 0.82rem; color: var(--muted); margin-bottom: 12px; letter-spacing: 0.04em; }

.breadcrumb a { color: var(--rose-deep); }

.page-title {
  font-family: var(--display);
  font-size: 2.5rem; line-height: 1.15; font-weight: 700; color: var(--ink);
}

.page-lead { margin-top: 14px; font-size: 1.08rem; color: var(--muted); max-width: 44em; }

.page-lead strong { color: var(--ink); }

/* ---------- Sections ---------- */

.section { padding: 64px 0; }

.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-divider { border: none; border-top: 1px solid var(--line); margin: 0; }

.section-head { margin-bottom: 38px; }

.kicker {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--display);
  font-size: 2rem; line-height: 1.2; font-weight: 700; color: var(--ink);
  margin-bottom: 12px;
}

.section-desc { color: var(--muted); max-width: 46em; }

.section-desc-left { text-align: left; max-width: 46em; }

.section-head-center { text-align: center; }
.section-head-center .section-desc { margin: 0 auto; }

/* ---------- Fact grid (game info) ---------- */

.fact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 8px;
}

.fact-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 4px 12px rgba(63, 44, 32, 0.05);
}

.fact-label {
  display: block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 6px;
}

.fact-value { font-weight: 600; color: var(--ink); font-size: 1.02rem; }

/* ---------- Feature cards ---------- */

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 4px 14px rgba(63, 44, 32, 0.05);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.feature-card:hover { transform: translateY(-4px); border-color: var(--gold-soft); box-shadow: var(--shadow); }

.feature-card-gold { border-left: 4px solid var(--gold); }

.feature-icon {
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid var(--gold-soft);
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}

.feature-title { font-family: var(--display); font-size: 1.22rem; font-weight: 700; margin-bottom: 8px; color: var(--ink); }

.feature-text { color: var(--muted); font-size: 0.97rem; }

/* ---------- Gallery + lightbox ---------- */

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.gallery-item {
  position: relative; display: block; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 4px 12px rgba(63, 44, 32, 0.06);
  cursor: zoom-in;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.gallery-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.35s ease; }

.gallery-item:hover .gallery-img { transform: scale(1.04); }

.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 10px;
  background: linear-gradient(transparent, rgba(47, 41, 51, 0.78));
  color: #fff; font-size: 0.85rem; font-weight: 600;
}

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(30, 24, 32, 0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}

.lightbox.open { opacity: 1; pointer-events: auto; }

.lb-inner { position: relative; max-width: min(1080px, 92vw); max-height: 88vh; }

#lightboxImage {
  max-width: 100%; max-height: 84vh; margin: 0 auto;
  border-radius: 8px; border: 2px solid rgba(217, 188, 126, 0.55);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(255, 253, 248, 0.12);
  border: 1px solid rgba(255, 253, 248, 0.35); color: #fff;
  border-radius: 50%; width: 46px; height: 46px;
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}

.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 253, 248, 0.28); }

.lb-close { top: -54px; right: 0; }

.lb-prev { left: -70px; top: 50%; transform: translateY(-50%); }

.lb-next { right: -70px; top: 50%; transform: translateY(-50%); }

.lb-counter {
  position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; letter-spacing: 0.08em;
}

/* ---------- Quotes ---------- */

.quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.quote {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px; padding: 24px 22px;
  position: relative;
}

.quote::before {
  content: "\201C"; font-family: var(--display); font-size: 3.2rem;
  color: var(--gold-soft); position: absolute; top: 6px; left: 16px; line-height: 1;
}

.quote blockquote { font-style: italic; color: var(--ink); font-size: 0.98rem; margin-bottom: 12px; }

.quote-author { font-style: normal; font-size: 0.85rem; color: var(--muted); font-weight: 600; }

/* ---------- Character cards ---------- */

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.char-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(63, 44, 32, 0.05);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.char-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.char-avatar {
  height: 120px; display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 10px; font-size: 2.6rem;
}

.avatar-grad-1 { background: linear-gradient(135deg, #f6d5d5, #e8a9b4); }
.avatar-grad-2 { background: linear-gradient(135deg, #d8e8d2, #9fc3a5); }
.avatar-grad-3 { background: linear-gradient(135deg, #e6d9f2, #b9a3d8); }
.avatar-grad-4 { background: linear-gradient(135deg, #f7e3c2, #e0b877); }
.avatar-grad-5 { background: linear-gradient(135deg, #cfe3ec, #8fb8cc); }
.avatar-grad-6 { background: linear-gradient(135deg, #f2d9e6, #cf9db8); }

.char-body { padding: 18px 20px 22px; }

.char-name { font-family: var(--display); font-size: 1.18rem; font-weight: 700; color: var(--ink); margin-bottom: 2px; }

.char-role { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }

.char-text { color: var(--muted); font-size: 0.95rem; }

/* ---------- Prose / story / guide ---------- */

.prose p { margin-bottom: 1.1em; }

.prose-mt { margin-top: 40px; }

.prose h3 {
  font-family: var(--display); font-size: 1.35rem; color: var(--ink);
  margin: 1.6em 0 0.5em;
}

.prose h3::before { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--rose); vertical-align: middle; margin-right: 10px; }

.prose ul, .prose ol { margin: 0 0 1.2em 1.3em; }

.prose li { margin-bottom: 0.5em; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.img-side { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }

.img-side img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.img-caption { padding: 10px 14px; font-size: 0.83rem; color: var(--muted); font-style: italic; }

.tip-list { list-style: none; margin: 0; }

.tip-item {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--jade); border-radius: 10px;
  padding: 16px 18px; margin-bottom: 12px;
}

.tip-item strong { color: var(--jade); }

.about-intro { font-size: 1.05rem; color: var(--muted); margin-bottom: 1.2em; }

.about-intro strong { color: var(--ink); }

.about-mission {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 22px 24px; margin-top: 20px;
  font-size: 1.02rem; color: var(--ink);
}

/* ---------- FAQ ---------- */

.faq-list { max-width: 860px; }

.faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 14px; overflow: hidden;
  box-shadow: 0 3px 10px rgba(63, 44, 32, 0.04);
}

.faq-q {
  list-style: none; cursor: pointer;
  padding: 18px 22px; font-weight: 700; font-size: 1.02rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q::after {
  content: "+"; font-size: 1.4rem; color: var(--rose); flex: none;
  transition: transform 0.18s ease;
}

.faq-item[open] .faq-q::after { transform: rotate(45deg); }

.faq-a { padding: 0 22px 20px; color: var(--muted); }

.faq-a p { margin-bottom: 0.6em; }

.faq-a p:last-child { margin-bottom: 0; }

.faq-sysreq { margin-top: 0; }

.article { display: block; }

.table-wrap { overflow-x: auto; margin-top: 18px; }

.sysreq-table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 0.95rem; }

.sysreq-table th, .sysreq-table td { border: 1px solid var(--line); padding: 12px 16px; text-align: left; }

.sysreq-table th { background: var(--paper-2); font-weight: 700; letter-spacing: 0.04em; }

.sysreq-table tr:nth-child(even) td { background: #fbf7ef; }

/* ---------- Play banner (index) ---------- */

.play-banner {
  background:
    radial-gradient(700px 320px at 90% -60px, rgba(185, 138, 47, 0.18), transparent 60%),
    linear-gradient(135deg, var(--paper-2), var(--surface));
  border: 2px solid var(--gold-soft);
  border-radius: 18px;
  padding: 46px 40px;
  text-align: center;
  box-shadow: var(--shadow);
}

.play-banner-title {
  font-family: var(--display); font-size: 1.9rem; font-weight: 700; color: var(--ink);
  margin-bottom: 10px;
}

.play-banner-text { color: var(--muted); max-width: 40em; margin: 0 auto 26px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 2px solid var(--gold-soft);
  background: var(--paper);
  margin-top: 40px;
}

.footer-inner { max-width: 1140px; margin: 0 auto; padding: 34px 24px 40px; text-align: center; }

.footer-copy { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }

.lang-switch { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.lang-switch a {
  font-size: 0.82rem; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 5px 14px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.lang-switch a:hover { border-color: var(--gold); color: var(--rose-deep); text-decoration: none; }

.lang-switch a.active { border-color: var(--rose); color: var(--rose-deep); background: #fdf1f2; }

/* ---------- Responsive: 768px ---------- */

@media (max-width: 768px) {
  body { font-size: 16px; }

  .nav-toggle { display: inline-block; }

  .nav-links {
    display: none;
    position: absolute; top: calc(100% + 2px); left: 0; right: 0;
    background: var(--surface); border-bottom: 2px solid var(--gold-soft);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 24px 16px;
    box-shadow: 0 18px 30px rgba(63, 44, 32, 0.12);
  }

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

  .nav-links a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); }

  .nav-links a.active { border-bottom-color: var(--line); color: var(--rose-deep); }

  .hero-inner { grid-template-columns: 1fr; gap: 34px; padding: 52px 24px 48px; }

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

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

  .fact-grid { grid-template-columns: repeat(2, 1fr); }

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

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .quotes-grid { grid-template-columns: 1fr; }

  .cards-grid { grid-template-columns: repeat(2, 1fr); }

  .two-col { grid-template-columns: 1fr; gap: 24px; }

  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

/* ---------- Responsive: 480px ---------- */

@media (max-width: 480px) {
  .header-inner { padding: 12px 16px; }

  .brand-name { font-size: 1.05rem; }

  .hero-inner { padding: 40px 18px 38px; }

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

  .hero-actions .btn-ghost { display: none; }

  .page-hero-inner { padding: 34px 18px 30px; }

  .section { padding: 48px 0; }

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

  .fact-grid { grid-template-columns: 1fr; }

  .features-grid { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: 1fr; }

  .cards-grid { grid-template-columns: 1fr; }

  .play-banner { padding: 34px 22px; }

  .container { padding: 0 18px; }
}
