/* ===== Tokens ===== */
:root {
  --navy: #17233f;
  --navy-soft: #2a3b63;
  --blue: #2f6fc9;
  --blue-light: #6ea3e8;
  --gold: #b9954f;
  --gold-light: #e8d9b8;
  --pink: #e0688f;
  --bg: #faf9f7;
  --white: #ffffff;
  --line: #e7e3db;
  --text: #26293a;
  --text-soft: #6b7080;
  --shadow: 0 20px 45px -20px rgba(23, 35, 63, 0.35);
  --radius: 18px;
  --serif: "Zen Old Mincho", serif;
  --sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); margin: 0; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.sp-only { display: none; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}
.eyebrow-light { color: var(--gold-light); }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 14px;
}
.section-title-light { color: var(--white); }
.lead {
  color: var(--text-soft);
  line-height: 1.9;
  max-width: 640px;
  margin-bottom: 40px;
}
.lead-light { color: #c9d3ea; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-icon { width: 18px; height: 18px; fill: currentColor; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--navy-soft));
  color: var(--white);
  box-shadow: 0 12px 30px -10px rgba(47, 111, 201, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(47, 111, 201, 0.7); }
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-small { padding: 10px 20px; font-size: 0.82rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand { display: flex; flex-direction: column; margin-right: auto; line-height: 1.3; flex-shrink: 0; }
.brand-sub { font-size: 0.6rem; letter-spacing: 0.18em; color: var(--text-soft); font-weight: 500; white-space: nowrap; }
.brand-main { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--blue); white-space: nowrap; }
.brand-main em { font-style: normal; color: var(--navy); font-size: 0.82rem; margin-left: 6px; }
.main-nav { display: flex; gap: 18px; }
.main-nav a { font-size: 0.8rem; font-weight: 500; color: var(--navy); position: relative; padding: 4px 0; white-space: nowrap; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }
.header-cta { padding: 10px 18px; font-size: 0.8rem; flex-shrink: 0; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ===== Hero ===== */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.hero { background: var(--bg); }
.hero-media { width: 100%; line-height: 0; background: #eef1f6; }
.hero-media img { width: 100%; height: auto; }
.hero-actions-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 26px 24px;
  background: linear-gradient(180deg, #f3f0ea, var(--bg));
  border-bottom: 1px solid var(--line);
}
.hero-story-badge {
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
  background: var(--navy);
  border-radius: 999px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 270px;
  height: 52px;
  padding: 0 20px;
  font-size: 0.85rem;
  box-sizing: border-box;
}
@media (max-width: 640px) {
  .hero-cta { width: 100%; }
}

/* ===== About ===== */
.about { padding: 100px 0; background: var(--white); }
.about-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; }
.about-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--navy); line-height: 1.5; margin: 6px 0 22px; }
.about-points { display: grid; gap: 18px; }
.about-points li {
  display: flex; align-items: center; gap: 14px;
  font-weight: 600; color: var(--navy);
  padding: 16px 18px;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--line);
}
.about-points .num { color: var(--gold); font-family: var(--serif); font-size: 1.1rem; }

/* ===== Anime ===== */
.anime {
  padding: 110px 0 120px;
  background: radial-gradient(circle at 20% 0%, #24365f 0%, var(--navy) 55%, #0e1729 100%);
}
.player { margin-top: 20px; }
.player-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
  aspect-ratio: 16 / 9;
}
.player-frame iframe { width: 100%; height: 100%; display: block; border: 0; background: #000; }
.player-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.player-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(10,14,26,0.18);
  cursor: pointer;
  transition: background 0.2s ease;
}
.player-play:hover { background: rgba(10,14,26,0.32); }
.player-play svg {
  width: 84px;
  height: 84px;
  fill: var(--white);
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.5));
  transition: transform 0.2s ease;
}
.player-play:hover svg { transform: scale(1.08); }
@media (max-width: 640px) {
  .player-play svg { width: 60px; height: 60px; }
}
.episode-info {
  margin-top: 26px;
  color: var(--white);
  padding: 22px 26px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
}
.ep-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--navy); background: var(--gold-light); padding: 5px 14px; border-radius: 999px; margin-bottom: 10px;
}
.episode-info h3 { font-size: 1.25rem; color: var(--white); margin-bottom: 8px; }
.episode-info p { color: #c9d3ea; line-height: 1.8; font-size: 0.92rem; }

.episode-list { margin-top: 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ep-item {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.ep-item:hover { border-color: var(--gold); transform: translateY(-2px); }
.ep-item.is-active { border-color: var(--gold); background: rgba(185,149,79,0.14); }
.ep-thumb { flex: 0 0 96px; width: 96px; height: 60px; border-radius: 8px; overflow: hidden; background: #000; }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-meta { display: flex; flex-direction: column; gap: 4px; }
.ep-num { font-size: 0.72rem; font-weight: 700; color: var(--gold); letter-spacing: 0.08em; }
.ep-name { font-size: 0.92rem; font-weight: 600; color: var(--white); }

/* ===== Cast ===== */
.cast { padding: 110px 0; background: var(--white); }
.cast-banner {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 44px;
}
.cast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cast-card {
  padding: 26px 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cast-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cast-role { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; color: var(--blue); margin-bottom: 10px; }
.cast-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.cast-name span { font-family: var(--sans); font-size: 0.78rem; font-weight: 500; color: var(--text-soft); margin-left: 8px; }
.cast-bio { color: var(--text-soft); font-size: 0.86rem; line-height: 1.8; }
.cast-heroine { background: linear-gradient(135deg, #fdf2f6, #fff); border-color: #f3d6e2; }
.cast-heroine .cast-role { color: var(--pink); }

/* ===== Products ===== */
.products { padding: 110px 0; background: var(--bg); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.product-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-size: 0.7rem; font-weight: 700; color: var(--white);
  background: var(--pink); padding: 6px 14px; border-radius: 999px;
}
.product-thumb { aspect-ratio: 16/10; background: #f1efe9; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }

.product-thumb.has-char {
  aspect-ratio: 3 / 3.6;
  display: block;
  background: linear-gradient(180deg, #f6f4ee 0%, #eeebe1 100%);
  position: relative;
}
.thumb-char {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.thumb-char img { width: auto; height: 82%; max-width: 84%; object-fit: contain; object-position: bottom; }
.thumb-photo {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 30%;
  max-width: 120px;
  aspect-ratio: 1 / 1;
  background: var(--white);
  border-radius: 14px;
  border: 3px solid var(--white);
  box-shadow: 0 12px 26px -8px rgba(23,35,63,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.thumb-photo img { width: 100%; height: 100%; object-fit: contain; }
.product-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-body h3 { font-size: 1.25rem; color: var(--navy); }
.product-copy { color: var(--text-soft); font-size: 0.88rem; line-height: 1.8; }
.product-specs { display: grid; gap: 6px; margin: 4px 0 6px; }
.product-specs li {
  font-size: 0.8rem; color: var(--navy-soft);
  padding-left: 16px; position: relative;
}
.product-specs li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 999px; background: var(--gold);
}
.product-price { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); margin-top: auto; }
.product-price span { font-size: 0.75rem; font-family: var(--sans); color: var(--text-soft); margin-left: 4px; }
.product-card .btn { align-self: flex-start; margin-top: 4px; }

/* ===== FAQ ===== */
.faq { padding: 110px 0 130px; background: var(--white); }
.faq-layout { display: flex; align-items: flex-start; gap: 40px; }
.faq-list { display: grid; gap: 14px; max-width: 680px; flex: 1 1 480px; min-width: 0; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  background: var(--bg);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--gold);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; color: var(--text-soft); font-size: 0.9rem; line-height: 1.8; }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #c9d3ea; padding: 60px 0 0; }
.footer-inner {
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { font-family: var(--serif); font-size: 1.3rem; color: var(--white); margin-bottom: 12px; }
.footer-note { font-size: 0.8rem; line-height: 1.9; max-width: 460px; color: #97a2c0; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; font-size: 0.85rem; }
.footer-nav a:hover { color: var(--gold-light); }
.footer-copyright { text-align: center; font-size: 0.75rem; padding: 22px 0; color: #6c7796; }

/* ===== Promo banner ===== */
.promo-banner {
  flex: 1 1 320px;
  align-self: center;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px -16px rgba(23,35,63,0.4);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.promo-banner:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -16px rgba(23,35,63,0.5); }
.promo-banner a { display: block; }
.promo-banner img { width: 100%; height: auto; display: block; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .product-grid { grid-template-columns: 1fr; }
  .cast-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-layout { flex-direction: column; }
  .faq-list { max-width: none; width: 100%; }
  .promo-banner { width: min(480px, 100%); align-self: center; }
}

@media (max-width: 760px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.is-open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--white); padding: 18px 24px; gap: 16px;
    border-bottom: 1px solid var(--line);
  }
  .sp-only { display: inline; }
  .hero-content { padding: 100px 20px 70px; }
  .episode-list { grid-template-columns: 1fr; }
  .cast-grid { grid-template-columns: 1fr; }
  .section-inner { padding: 0 18px; }
  .anime, .cast, .products, .about, .faq { padding: 70px 0; }
}
