/* ==========================================================================
   Sakura Beach — promotional site theme
   Summer resort / sakura visual novel. Light scheme, unique per game.
   ========================================================================== */

:root {
  --sand: #fdf5ec;
  --paper: #fffdf9;
  --pink: #ff8fb3;
  --pink-deep: #f0608f;
  --coral: #ff9e6d;
  --sun: #ffc46b;
  --teal: #17898b;
  --teal-deep: #0d6f71;
  --ink: #433036;
  --muted: #8a7b80;
  --line: #f3e2dc;
  --shadow: 0 14px 40px rgba(214, 148, 160, 0.22);
  --shadow-sm: 0 6px 18px rgba(214, 148, 160, 0.16);
  --radius: 22px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  background: var(--sand);
  color: var(--ink);
  line-height: 1.75;
  font-size: 17px;
}

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

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

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

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 14px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.18rem; letter-spacing: 0.02em; color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.brand em { font-style: normal; color: var(--pink-deep); }

.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 0.98rem; }
.nav-links a:hover { color: var(--pink-deep); text-decoration: none; }

.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; letter-spacing: 0.02em;
  background: linear-gradient(120deg, var(--pink) 0%, var(--coral) 100%);
  color: #fff !important; box-shadow: 0 8px 20px rgba(240, 96, 143, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(240, 96, 143, 0.42); }
.btn-ghost {
  background: transparent; color: var(--teal-deep) !important;
  border: 2px solid var(--teal); box-shadow: none;
}
.btn-ghost:hover { background: rgba(23, 137, 139, 0.08); box-shadow: none; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 3px; margin: 5px 0;
  border-radius: 3px; background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- hero (index) ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(1000px 420px at 85% -10%, rgba(255, 196, 107, 0.35), transparent 60%),
    radial-gradient(800px 480px at 8% 110%, rgba(255, 143, 179, 0.30), transparent 60%),
    linear-gradient(135deg, #ffe9f2 0%, #fff4e4 55%, #e7f7f2 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 48px; align-items: center; padding: 72px 0 96px;
}
.hero-kicker {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line);
  color: var(--pink-deep); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); line-height: 1.12; margin-bottom: 18px; }
.hero h1 .wave-mark { color: var(--pink-deep); }
.hero-tagline { font-size: 1.18rem; color: var(--muted); max-width: 30em; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art { position: relative; }
.hero-art::before {
  content: ""; position: absolute; inset: -18px; z-index: 0;
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(255, 143, 179, 0.45), rgba(23, 137, 139, 0.25));
  transform: rotate(3deg);
}
.hero-art img {
  position: relative; z-index: 1; border-radius: 28px;
  box-shadow: var(--shadow); border: 6px solid #fff;
}
.hero-badge {
  position: absolute; z-index: 2; right: 14px; bottom: 14px;
  background: #fff; border-radius: 14px; padding: 10px 16px;
  box-shadow: var(--shadow-sm); font-weight: 700; font-size: 0.9rem;
  color: var(--teal-deep);
}

.wave-divider { display: block; width: 100%; height: 70px; margin-top: -1px; }

/* ---------- sections ---------- */

.section { padding: 64px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 10px; }
.section-head p { color: var(--muted); }

/* ---------- facts table ---------- */

.facts-wrap { display: flex; justify-content: center; }
.info-table {
  width: min(760px, 100%); border-collapse: collapse; background: #fff;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.info-table th, .info-table td { padding: 15px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { width: 36%; background: #fff4f8; color: var(--pink-deep); font-weight: 700; }
.info-table td { color: var(--ink); }

/* ---------- feature cards ---------- */

.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: 10px;
}
.card {
  background: #fff; border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .card-ico {
  width: 52px; height: 52px; border-radius: 16px; margin-bottom: 16px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: linear-gradient(135deg, #ffe3ee, #fff0da);
}
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* ---------- gallery ---------- */

.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.gallery-item { border: 0; padding: 0; background: none; cursor: zoom-in; border-radius: 18px; overflow: hidden; position: relative; }
.gallery-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
  content: "\26F6"; position: absolute; right: 12px; top: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.85); color: var(--pink-deep);
  display: grid; place-items: center; font-size: 1rem;
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center;
  background: rgba(35, 22, 26, 0.92); padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1100px, 94vw); max-height: 86vh;
  border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 1.3rem;
}
.lightbox-caption {
  position: absolute; bottom: 20px; left: 0; right: 0; text-align: center;
  color: #ffe3ee; font-size: 0.95rem;
}

/* ---------- quotes ---------- */

.quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote-card {
  background: #fff; border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow-sm); border-top: 4px solid var(--pink);
  position: relative;
}
.quote-card blockquote p { color: var(--ink); font-size: 0.99rem; }
.quote-card footer {
  margin-top: 14px; font-weight: 700; color: var(--pink-deep); font-size: 0.92rem;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  margin: 0 auto 64px; max-width: 900px; text-align: center;
  background: linear-gradient(120deg, #ffe1ec 0%, #ffe9cf 55%, #d8f3ee 100%);
  border-radius: 30px; padding: 52px 34px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; }
.cta-banner p { color: var(--muted); margin-bottom: 24px; }

/* ---------- sub-page hero ---------- */

.hero-sub {
  position: relative;
  background: linear-gradient(120deg, #ffe9f2, #fff3e0);
  padding: 58px 0 66px; overflow: hidden;
}
.hero-sub::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 143, 179, 0.35), transparent 70%);
}
.hero-sub .container { position: relative; z-index: 1; }
.hero-sub h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 12px; }
.hero-sub .lede { color: var(--muted); max-width: 42em; font-size: 1.08rem; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--pink-deep); }

/* ---------- prose (sub-pages) ---------- */

.prose { max-width: 820px; margin: 0 auto; }
.prose section { margin-bottom: 44px; }
.prose h2 {
  font-size: 1.55rem; margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 3px solid var(--line); position: relative;
}
.prose h2::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  width: 72px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--pink), var(--coral));
}
.prose p { margin-bottom: 16px; color: #4d3b41; }
.prose ul { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 8px; }

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

/* ---------- character cards ---------- */

.char-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 30px 0; }
.char-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.char-card .char-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.char-card .char-body { padding: 20px 22px 24px; }
.char-card h3 { color: var(--pink-deep); font-size: 1.2rem; margin-bottom: 4px; }
.char-card .char-role { font-size: 0.86rem; color: var(--teal-deep); font-weight: 700; margin-bottom: 12px; }
.char-card p { color: var(--muted); font-size: 0.96rem; }

/* ---------- route table ---------- */

.route-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); margin: 22px 0; }
.route-table th, .route-table td { padding: 13px 18px; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.97rem; }
.route-table th { background: #fff4f8; color: var(--pink-deep); }
.route-table tr:last-child th, .route-table tr:last-child td { border-bottom: 0; }

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

.faq-list { margin: 26px 0; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  font-weight: 700; 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(--pink-deep); font-weight: 700;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--muted); }

/* ---------- footer ---------- */

.site-footer {
  background: #3d2a31; color: #e9d7de; padding: 40px 0 46px; text-align: center;
}
.site-footer p { font-size: 0.9rem; color: #c9b2bb; margin-bottom: 18px; }
.lang-switch { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; list-style: none; }
.lang-switch a {
  display: inline-block; padding: 7px 15px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); color: #ffe3ee; font-size: 0.88rem; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.lang-switch a:hover { background: rgba(255, 143, 179, 0.28); text-decoration: none; }
.lang-switch .lang-current { background: var(--pink-deep); border-color: var(--pink-deep); color: #fff; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .cards-grid, .quotes-grid, .char-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; padding: 52px 0 72px; }
  .hero-art { max-width: 640px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 10px 6%; box-shadow: var(--shadow-sm);
  }
  body.nav-open .nav-links { display: flex; }
  .nav-links a { display: block; padding: 13px 8px; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links .btn { margin-top: 10px; text-align: center; }
  .section { padding: 48px 0; }
  .hero-inner { padding: 44px 0 64px; }
}

@media (max-width: 480px) {
  .cards-grid, .quotes-grid, .char-grid, .gallery-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; }
  .hero-badge { display: none; }
  .info-table th, .info-table td { padding: 12px 14px; }
  .cta-banner { padding: 38px 22px; }
  .lang-switch a { padding: 6px 12px; font-size: 0.82rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- about copy (index) ---------- */

.about-copy { max-width: 780px; margin: 0 auto; }
.about-copy p { margin-bottom: 16px; color: #4d3b41; }
