/* ============================================================
   Senren Banka — promo site theme
   "Sakura & Ink": a light, Japanese shrine-town aesthetic
   (paper, ink, vermilion, sakura pink). Unique per game.
   ============================================================ */

:root {
  --paper:      #f7f3ec;
  --paper-2:    #efe8db;
  --card:       #fffdf8;
  --ink:        #2a2430;
  --ink-soft:   #5d5563;
  --vermilion:  #c03a2b;
  --vermilion-d:#8f2b1f;
  --sakura:     #e9a7ae;
  --sakura-pale:#f7d9dc;
  --gold:       #b98a2f;
  --line:       #ddd3c2;
  --shadow:     0 10px 30px rgba(80, 40, 30, .10);
  --radius:     14px;
  --serif: "Georgia", "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", "Times New Roman", serif;
  --sans: "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 85% -50px, rgba(233,167,174,.25), transparent 60%),
    radial-gradient(900px 420px at -10% 30%, rgba(185,138,47,.10), transparent 55%),
    var(--paper);
  line-height: 1.75;
  font-size: 17px;
}

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

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

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1.2rem; border-radius: 0 0 10px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 243, 236, .94);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--vermilion);
  box-shadow: 0 2px 12px rgba(80, 40, 30, .07);
}
.site-header::before {
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, var(--vermilion) 0 38%, var(--sakura) 38% 62%, var(--gold) 62% 100%);
}
.nav-wrap {
  max-width: 1180px; margin: 0 auto; padding: .65rem 1.2rem;
  display: flex; align-items: center; gap: 1.2rem;
}
.brand {
  font-family: var(--serif); font-weight: 700; font-size: 1.22rem;
  color: var(--ink); letter-spacing: .02em; white-space: nowrap;
  display: flex; align-items: center; gap: .55rem;
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand small {
  display: block; font-size: .62rem; letter-spacing: .32em;
  color: var(--vermilion); font-family: var(--sans); text-transform: uppercase;
}
.nav-links {
  display: flex; align-items: center; gap: .25rem;
  list-style: none; margin-left: auto; flex-wrap: wrap;
}
.nav-links a {
  display: block; padding: .5rem .85rem; border-radius: 999px;
  color: var(--ink-soft); font-weight: 600; font-size: .95rem;
}
.nav-links a:hover { color: var(--vermilion); background: var(--sakura-pale); text-decoration: none; }
.nav-links a.active { color: var(--vermilion); background: var(--sakura-pale); }

.btn-play {
  display: inline-block;
  background: linear-gradient(180deg, var(--vermilion), var(--vermilion-d));
  color: #fff !important;
  padding: .62rem 1.5rem;
  border-radius: 999px;
  font-weight: 700; font-size: .98rem;
  box-shadow: 0 6px 16px rgba(192, 58, 43, .35);
  border: 1px solid rgba(255,255,255,.18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(192, 58, 43, .42);
  text-decoration: none;
}
.btn-ghost {
  display: inline-block; padding: .62rem 1.5rem; border-radius: 999px;
  border: 2px solid var(--ink); color: var(--ink); font-weight: 700;
  background: transparent; transition: all .15s ease;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); text-decoration: none; }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 2px solid var(--ink);
  color: var(--ink); font-size: 1.3rem; line-height: 1; padding: .3rem .6rem;
  border-radius: 8px; cursor: pointer;
}

/* ---------- hero (index) ---------- */
.hero {
  max-width: 1180px; margin: 0 auto; padding: 3rem 1.2rem 2.5rem;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.8rem; align-items: center;
}
.hero-eyebrow {
  font-size: .8rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--vermilion); font-weight: 700; margin-bottom: .7rem;
}
.hero h1 {
  font-family: var(--serif); font-size: 3.05rem; line-height: 1.18;
  color: var(--ink); margin-bottom: 1rem;
}
.hero h1 .jp-title {
  display: block; font-size: 1.35rem; color: var(--vermilion);
  letter-spacing: .18em; margin-top: .4rem; font-weight: 400;
}
.hero-tagline {
  font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 1.6rem; max-width: 44ch;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-figure { position: relative; }
.hero-figure::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 2px solid var(--sakura); border-radius: var(--radius); z-index: 0;
}
.hero-figure img {
  position: relative; z-index: 1; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 6px solid var(--card);
}
.seal {
  position: absolute; z-index: 2; right: -12px; bottom: -12px;
  width: 86px; height: 86px; border-radius: 10px;
  background: var(--vermilion); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--serif); line-height: 1.15; text-align: center;
  box-shadow: 0 8px 18px rgba(143, 43, 31, .4);
  border: 3px solid #fff;
}
.seal span { font-size: 1.05rem; letter-spacing: .1em; }
.seal small { font-size: .58rem; letter-spacing: .18em; opacity: .9; }

/* ---------- hero (sub pages) ---------- */
.hero-subpage {
  max-width: 1180px; margin: 0 auto; padding: 2.6rem 1.2rem 1.6rem;
  border-bottom: 1px dashed var(--line);
}
.hero-subpage h1 {
  font-family: var(--serif); font-size: 2.5rem; line-height: 1.2; margin-bottom: .6rem;
}
.hero-subpage h1 .jp-title {
  display: block; font-size: 1.1rem; color: var(--vermilion);
  letter-spacing: .2em; margin-top: .3rem; font-weight: 400;
}
.hero-subpage .lede { max-width: 72ch; color: var(--ink-soft); font-size: 1.06rem; }

/* ---------- sections & containers ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 2.4rem 1.2rem; }
.section-title {
  font-family: var(--serif); font-size: 1.9rem; margin-bottom: .4rem;
  display: flex; align-items: baseline; gap: .8rem;
}
.section-title::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--sakura), transparent);
}
.section-sub { color: var(--ink-soft); margin-bottom: 1.8rem; max-width: 72ch; }

/* facts strip */
.facts {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-top: 2rem;
}
.facts li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; box-shadow: 0 4px 14px rgba(80, 40, 30, .06);
}
.facts dt { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--vermilion); font-weight: 700; }
.facts dd { font-weight: 700; margin-top: .25rem; font-size: 1.02rem; }

/* feature cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.feature-card, .char-card, .route-card, .faq-item, .prose-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(80, 40, 30, .06);
}
.feature-card { padding: 1.5rem 1.4rem; position: relative; overflow: hidden; }
.feature-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--vermilion), var(--sakura));
}
.feature-card h3 { font-family: var(--serif); font-size: 1.18rem; margin-bottom: .5rem; }
.feature-card p { color: var(--ink-soft); font-size: .97rem; }
.feature-num {
  position: absolute; top: 1rem; right: 1rem;
  font-family: var(--serif); color: var(--sakura); font-size: 2rem; font-weight: 700;
}

/* character cards */
.char-card { display: grid; grid-template-columns: 190px 1fr; overflow: hidden; }
.char-card img { width: 190px; height: 190px; object-fit: cover; }
.char-body { padding: 1.2rem 1.4rem; }
.char-body h3 { font-family: var(--serif); font-size: 1.3rem; }
.char-role {
  display: inline-block; margin: .25rem 0 .6rem; font-size: .76rem;
  letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
  color: var(--vermilion); background: var(--sakura-pale);
  border-radius: 999px; padding: .2rem .7rem;
}
.char-body p { color: var(--ink-soft); font-size: .96rem; }

/* route cards */
.route-card { padding: 1.5rem 1.5rem 1.6rem; position: relative; }
.route-card::after {
  content: ""; position: absolute; left: 1.5rem; right: 1.5rem; bottom: -14px;
  height: 2px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--sakura) 0 10px, transparent 10px 18px);
}
.route-card h3 { font-family: var(--serif); font-size: 1.25rem; display: flex; align-items: center; gap: .6rem; }
.route-tag {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: var(--gold); border-radius: 999px; padding: .15rem .6rem; font-weight: 700;
}
.route-card p { color: var(--ink-soft); font-size: .97rem; margin-top: .5rem; }
.route-theme {
  margin-top: .9rem; font-size: .86rem; color: var(--ink);
  border-left: 3px solid var(--sakura); padding-left: .7rem;
}

/* prose (story / routes extra sections) */
.prose-card { padding: 1.6rem 1.8rem; }
.prose-card h3 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: .6rem; color: var(--ink); }
.prose-card p { color: var(--ink-soft); margin-bottom: .9rem; }
.prose-card p:last-child { margin-bottom: 0; }
.prose-card + .prose-card { margin-top: 1.4rem; }
.shot-wrap { margin: 1.4rem 0; }
.shot-wrap img { border-radius: var(--radius); box-shadow: var(--shadow); border: 5px solid var(--card); }
.shot-cap { font-size: .85rem; color: var(--ink-soft); margin-top: .5rem; text-align: center; }

/* quotes */
blockquote.quote {
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--vermilion);
  border-radius: var(--radius); padding: 1.3rem 1.5rem; margin: 0;
}
blockquote.quote p { font-family: var(--serif); font-style: italic; font-size: 1.05rem; }
footer.quote-author { margin-top: .6rem; font-size: .86rem; color: var(--ink-soft); }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.gallery-grid a { border-radius: var(--radius); overflow: hidden; display: block; position: relative; }
.gallery-grid a::after {
  content: "⤢"; position: absolute; right: .7rem; bottom: .5rem;
  color: #fff; font-size: 1.1rem; opacity: 0; transition: opacity .15s ease;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.gallery-grid a:hover::after { opacity: 1; }
.gallery-grid img { aspect-ratio: 16/9; object-fit: cover; transition: transform .3s ease; }
.gallery-grid a:hover img { transform: scale(1.04); }

/* lightbox */
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(20, 12, 18, .92); align-items: center; justify-content: center;
  padding: 2rem; cursor: zoom-out;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-caption { position: absolute; bottom: 1.2rem; left: 0; right: 0; text-align: center; color: #eee; font-size: .92rem; }

/* CTA banner */
.cta-banner {
  max-width: 1180px; margin: 0 auto 3rem; padding: 2.4rem 2rem;
  border-radius: 18px; text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(700px 200px at 20% -40px, rgba(233,167,174,.5), transparent 60%),
    linear-gradient(135deg, #3b1420, #6e2230 55%, #a03a3a);
  color: #fff;
}
.cta-banner::before {
  content: "千恋＊万花"; position: absolute; right: -12px; bottom: -34px;
  font-family: var(--serif); font-size: 7.5rem; opacity: .07; color: #fff; line-height: 1;
}
.cta-banner h2 { font-family: var(--serif); font-size: 1.9rem; margin-bottom: .5rem; }
.cta-banner p { max-width: 56ch; margin: 0 auto 1.4rem; opacity: .92; }

/* footer */
.site-footer {
  margin-top: 3rem; background: var(--paper-2); border-top: 3px solid var(--vermilion);
  padding: 1.8rem 1.2rem 2.2rem; text-align: center;
}
.site-footer .copyright { font-size: .88rem; color: var(--ink-soft); margin-bottom: .9rem; }
.lang-switch { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; list-style: none; }
.lang-switch a {
  display: inline-block; padding: .32rem .85rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  color: var(--ink-soft); font-size: .86rem; font-weight: 600;
}
.lang-switch a:hover { border-color: var(--vermilion); color: var(--vermilion); text-decoration: none; }
.lang-switch a.current { background: var(--vermilion); border-color: var(--vermilion); color: #fff; }

/* FAQ accordion */
.faq-item { margin-bottom: 1rem; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 1.1rem 1.4rem; font-family: var(--serif); font-size: 1.08rem; font-weight: 700;
  color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q::after { content: "+"; font-size: 1.4rem; color: var(--vermilion); flex-shrink: 0; }
.faq-item.open .faq-q::after { content: "–"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 1.4rem 1.2rem; color: var(--ink-soft); }

/* misc */
.note {
  background: var(--sakura-pale); border: 1px solid var(--sakura);
  border-radius: var(--radius); padding: 1rem 1.2rem; font-size: .95rem; color: var(--ink);
}
ol.styled, ul.styled { margin: .4rem 0 1rem 1.4rem; color: var(--ink-soft); }
ol.styled li, ul.styled li { margin-bottom: .4rem; }
kbd { background: var(--paper-2); border: 1px solid var(--line); border-radius: 5px; padding: .1rem .4rem; font-size: .88em; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .hero h1 { font-size: 2.5rem; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .char-card { grid-template-columns: 140px 1fr; }
  .char-card img { width: 140px; height: 140px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    padding: .6rem 0 1rem; gap: .2rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; }
  .nav-wrap { flex-wrap: wrap; }
  .hero { padding-top: 2rem; }
  .hero h1 { font-size: 2.1rem; }
  .hero-subpage h1 { font-size: 1.9rem; }
  .section-title { font-size: 1.55rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .char-card { grid-template-columns: 1fr; }
  .char-card img { width: 100%; height: 220px; }
  .cta-banner { margin-bottom: 2rem; }
}

@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero-actions .btn-play, .hero-actions .btn-ghost { width: 100%; text-align: center; }
  .seal { width: 68px; height: 68px; }
  .seal span { font-size: .85rem; }
  .container { padding: 1.8rem 1rem; }
  .prose-card { padding: 1.2rem 1.1rem; }
}
