/* ============================================
   少女爱上姐姐 - Style
   Elegant Sister Academy Theme
   Soft-lace whites & rose-garden pinks
   Academy-crest motifs on light garden bg
   ============================================ */

/* ---- CSS Custom Properties ---- */
:root {
  --rose-pink: #d4849a;
  --rose-dark: #b85c7a;
  --rose-deep: #8b3a5e;
  --lace-white: #fdf5f0;
  --cream: #faf3f0;
  --light-pink: #f0d5de;
  --blush: #fbe8ee;
  --gold-accent: #c9a96e;
  --gold-light: #e8d5b0;
  --text: #3d2c35;
  --text-soft: #6b5560;
  --text-muted: #9a8890;
  --bg: #fdf8f5;
  --bg-card: #ffffff;
  --border: #e8d5d9;
  --border-light: #f0e3e7;
  --font-sans: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-serif: 'Noto Serif SC', Georgia, 'Songti SC', serif;
  --header-height: 64px;
  --max-width: 1200px;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(139, 58, 94, 0.06);
  --shadow: 0 4px 16px rgba(139, 58, 94, 0.08);
  --shadow-lg: 0 8px 32px rgba(139, 58, 94, 0.12);
  --transition: 0.25s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--rose-deep); }
ul, ol { list-style: none; }

/* ---- Screen reader only ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---- Site Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--rose-deep), var(--rose-dark));
  height: var(--header-height);
  box-shadow: 0 2px 8px rgba(139, 58, 94, 0.2);
  transition: box-shadow var(--transition);
}
.site-header.header-scrolled { box-shadow: 0 4px 20px rgba(139, 58, 94, 0.3); }
.header-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; padding: 0 24px;
}
.site-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem; font-weight: 700; color: #ffffff;
  letter-spacing: 0.05em;
}
.site-logo:hover { color: var(--light-pink); }

/* ---- Nav ---- */
.nav-menu { display: flex; gap: 4px; align-items: center; }
.nav-menu a {
  color: rgba(255,255,255,0.85); padding: 8px 16px;
  border-radius: 6px; font-size: 0.92rem; font-weight: 500;
  transition: all var(--transition);
}
.nav-menu a:hover, .nav-menu a.active {
  background: rgba(255,255,255,0.15); color: #ffffff;
}
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  color: #ffffff; font-size: 1.5rem; line-height: 1; padding: 4px 8px;
}

/* Header CTA */
.header-cta {
  background: var(--gold-accent); color: #ffffff;
  padding: 8px 22px; border-radius: 20px; font-weight: 600;
  font-size: 0.9rem; transition: all var(--transition);
  white-space: nowrap;
}
.header-cta:hover {
  background: #ffffff; color: var(--rose-deep);
}

/* ---- Hero Section ---- */
.hero {
  background: linear-gradient(135deg, var(--rose-pink) 0%, var(--rose-deep) 50%, var(--rose-dark) 100%);
  padding: 80px 24px 100px; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 30%, rgba(255,255,255,0.06) 0%, transparent 50%);
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(to top, var(--bg), transparent);
}
.hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.hero-title {
  font-family: var(--font-serif); font-size: 3rem; font-weight: 700;
  color: #ffffff; letter-spacing: 0.08em; margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(139, 58, 94, 0.3);
}
.hero-subtitle {
  font-size: 1.1rem; color: rgba(255,255,255,0.85);
  font-weight: 400; margin-bottom: 8px;
}
.hero-tagline {
  font-size: 0.95rem; color: rgba(255,255,255,0.65);
  margin-top: 12px; max-width: 600px; margin-left: auto; margin-right: auto;
}

/* Hero subpage variant */
.hero-subpage { padding: 40px 24px 48px; }
.hero-subpage-title { font-size: 2rem; font-weight: 700; }

/* ---- Content Layout ---- */
.content-section {
  max-width: var(--max-width); margin: 0 auto; padding: 56px 24px;
}
.content-section h1 {
  font-family: var(--font-serif); font-size: 2.4rem; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}
.content-title {
  font-family: var(--font-serif); font-size: 2.4rem; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}
.content-section h2 {
  font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700;
  color: var(--text); margin-bottom: 12px;
}
.section-lead {
  color: var(--text-soft); font-size: 1.05rem;
  margin-bottom: 40px; max-width: 700px;
}

/* ---- Feature Cards ---- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px;
}
.feature-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 28px 24px; border: 1px solid var(--border-light);
  border-left: 4px solid var(--rose-pink);
  box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow); transform: translateY(-2px);
  border-left-color: var(--rose-dark);
}
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 {
  font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700;
  color: var(--rose-deep); margin-bottom: 8px;
}
.feature-card p { color: var(--text-soft); font-size: 0.93rem; line-height: 1.6; }

/* ---- Game Info Cards ---- */
.info-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin: 32px 0 48px;
}
.info-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 20px 16px; text-align: center;
  border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
}
.info-card .info-label {
  font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 6px;
}
.info-card .info-value {
  font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600;
  color: var(--rose-dark);
}

/* ---- Gallery ---- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 32px;
}
.gallery-item {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: all var(--transition); aspect-ratio: 16/9;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item:hover { box-shadow: var(--shadow); transform: scale(1.02); }

/* ---- Lightbox ---- */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(61, 44, 53, 0.92);
  align-items: center; justify-content: center; padding: 40px;
}
.lightbox-open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: 4px; }
.lightbox-close {
  position: absolute; top: 20px; right: 30px;
  background: none; border: none; color: #ffffff; font-size: 2rem;
  cursor: pointer; opacity: 0.8; transition: opacity var(--transition);
}
.lightbox-close:hover { opacity: 1; }

/* ---- Player Reviews ---- */
.reviews-section { margin-top: 56px; }
.reviews-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px;
}
.review-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 24px; border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.review-card .review-stars { color: var(--gold-accent); font-size: 1rem; margin-bottom: 8px; }
.review-card .review-text { color: var(--text-soft); font-size: 0.93rem; line-height: 1.7; font-style: italic; }
.review-card .review-author { color: var(--text-muted); font-size: 0.85rem; margin-top: 12px; }

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--rose-deep), var(--rose-dark));
  padding: 48px 24px; text-align: center; margin-top: 56px; border-radius: var(--radius);
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.06) 0%, transparent 60%);
}
.cta-banner-inner { position: relative; z-index: 2; }
.cta-banner h2 {
  font-family: var(--font-serif); font-size: 2rem; color: #ffffff;
  margin-bottom: 8px;
}
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 24px; }
.cta-btn {
  display: inline-block; background: var(--gold-accent); color: #ffffff;
  padding: 14px 40px; border-radius: 28px; font-size: 1.1rem; font-weight: 700;
  transition: all var(--transition);
}
.cta-btn:hover { background: #ffffff; color: var(--rose-deep); }

/* ---- Story Page ---- */
.story-block { margin-bottom: 40px; }
.story-block h3 {
  font-family: var(--font-serif); font-size: 1.3rem; color: var(--rose-deep);
  margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--light-pink);
}
.story-block p { color: var(--text-soft); line-height: 1.8; font-size: 0.97rem; margin-bottom: 12px; }
.chapter-list { margin-top: 16px; }
.chapter-item {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 16px 20px; border: 1px solid var(--border-light);
  margin-bottom: 10px; border-left: 3px solid var(--rose-pink);
}
.chapter-title {
  font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600;
  color: var(--rose-dark);
}

/* ---- Guide Page ---- */
.guide-step {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 24px; border: 1px solid var(--border-light);
  margin-bottom: 20px; border-left: 4px solid var(--rose-pink);
  box-shadow: var(--shadow-sm);
}
.guide-step h3 {
  font-family: var(--font-serif); font-size: 1.2rem; color: var(--rose-deep);
  margin-bottom: 10px;
}
.guide-step p { color: var(--text-soft); font-size: 0.95rem; line-height: 1.7; }
.guide-intro { color: var(--text-soft); font-size: 1rem; line-height: 1.7; margin-bottom: 32px; }
.route-heading {
  font-family: var(--font-serif); font-size: 1.15rem; color: var(--rose-deep);
  margin: 32px 0 16px; padding-left: 12px; border-left: 3px solid var(--gold-accent);
}
.route-desc { color: var(--text-soft); font-size: 0.95rem; line-height: 1.7; margin-bottom: 16px; }
.tip-box {
  background: linear-gradient(135deg, var(--blush), var(--lace-white));
  border: 1px solid var(--light-pink); border-radius: var(--radius);
  padding: 16px 20px; margin: 16px 0;
}
.tip-box strong { color: var(--rose-deep); }

/* ---- Characters Page ---- */
.char-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px;
}
.char-card {
  background: var(--bg-card); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.char-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.char-img { width: 100%; height: 320px; object-fit: cover; background: var(--light-pink); }
.char-info { padding: 20px; }
.char-info h3 {
  font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700;
  color: var(--rose-deep); margin-bottom: 4px;
}
.char-info .char-jp {
  font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px;
}
.char-traits { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.char-tag {
  background: var(--blush); color: var(--rose-deep);
  padding: 3px 10px; border-radius: 12px; font-size: 0.78rem;
  font-weight: 500;
}
.char-info p { color: var(--text-soft); font-size: 0.88rem; line-height: 1.6; }
.char-stats { margin-top: 12px; font-size: 0.85rem; color: var(--text-muted); }
.char-stats span { display: inline-block; margin-right: 16px; }
.section-subheading {
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700;
  color: var(--rose-deep); text-align: center; margin: 48px 0 24px;
}

/* ---- FAQ Page ---- */
.faq-list { margin-top: 24px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); margin-bottom: 10px; overflow: hidden;
}
.faq-question {
  width: 100%; background: none; border: none; text-align: left;
  padding: 18px 24px; font-size: 1rem; font-weight: 600;
  color: var(--text); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-sans);
}
.faq-question::after { content: '+'; font-size: 1.3rem; color: var(--rose-pink); transition: transform var(--transition); }
.faq-open .faq-question::after { content: '−'; }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
  padding: 0 24px;
}
.faq-open .faq-answer { max-height: 800px; padding: 0 24px 20px; }
.faq-answer p { color: var(--text-soft); font-size: 0.95rem; line-height: 1.7; }
.faq-answer ul { padding-left: 20px; margin-top: 8px; }
.faq-answer ul li { list-style: disc; color: var(--text-soft); margin-bottom: 4px; font-size: 0.93rem; }

/* ---- System Requirements ---- */
.sys-reqs { margin-top: 48px; }
.sys-reqs-h3 {
  font-family: var(--font-serif); font-size: 1.2rem; color: var(--rose-deep);
  margin: 28px 0 12px;
}
.sys-reqs-h3:first-of-type { margin-top: 16px; }
.table-scroll { overflow-x: auto; }
.sys-note { margin-top: 20px; color: var(--text-muted); font-size: 0.9rem; }
.sys-reqs table {
  width: 100%; border-collapse: collapse; font-size: 0.9rem;
}
.sys-reqs th {
  background: linear-gradient(135deg, var(--rose-pink), var(--rose-dark));
  color: #ffffff; padding: 12px 16px; text-align: left; font-weight: 600;
}
.sys-reqs td {
  padding: 10px 16px; border-bottom: 1px solid var(--border-light);
  color: var(--text-soft);
}
.sys-reqs tr:nth-child(even) td { background: var(--lace-white); }

/* ---- Content Lists ---- */
.content-list { list-style: disc; padding-left: 20px; }
.content-list-num { list-style: decimal; padding-left: 24px; }
.content-li { margin-bottom: 5px; color: var(--text-soft); }
.content-li-sm { margin-bottom: 4px; color: var(--text-soft); }
.content-li-md { margin-bottom: 8px; color: var(--text-soft); }
.content-li-lg { margin-bottom: 10px; color: var(--text-soft); }

/* ---- Colored Strong Tags ---- */
.strong-pink { color: var(--rose-pink); }
.strong-red { color: #c0392b; }
.strong-gold { color: var(--gold-accent); }
.strong-muted { color: var(--text-muted); }
.strong-navy { color: #2c3e50; }

/* ---- Table Highlight ---- */
.td-highlight { color: var(--rose-dark); font-weight: 700; }

/* ---- Divider ---- */
.section-divider {
  width: 60px; height: 3px; background: linear-gradient(90deg, var(--rose-pink), var(--gold-accent));
  margin: 8px 0 24px; border-radius: 2px;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--lace-white); border-top: 1px solid var(--border-light);
  padding: 24px; text-align: center;
}
.site-footer p {
  color: var(--text-muted); font-size: 0.85rem;
}

/* ---- Responsive: 768px ---- */
@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .nav-menu {
    display: none; flex-direction: column;
    position: absolute; top: var(--header-height); left: 0; right: 0;
    background: linear-gradient(180deg, var(--rose-deep), var(--rose-dark));
    padding: 16px; box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  }
  .nav-menu.nav-open { display: flex; }
  .content-section { padding: 40px 20px; }
}

/* ---- Responsive: 480px ---- */
@media (max-width: 480px) {
  .hero-title { font-size: 1.5rem; }
  .info-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 16px 80px; }
  .hero-subpage { padding: 32px 16px 40px; }
  .hero-subpage-title { font-size: 1.5rem; }
  .cta-banner h2 { font-size: 1.5rem; }
}
