/* ════════════════
   SAKANACTION LIVE at SGC HALL ARIAKE
   ════════════════ */

:root {
  --bg:     #060606;
  --fg:     #ffffff;
  --muted:  rgba(255,255,255,0.68);
  --dim:    rgba(255,255,255,0.42);
  --border: rgba(255,255,255,0.1);
  --warm:   #ede5ce;
  --band:   #0a0a0a;
  --accent: #ede5ce;
  --max-w:  720px;
  --gutter: clamp(20px, 4vw, 40px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', 'Noto Sans JP', 'YuGothic', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  line-height: 1.9;
  letter-spacing: 0.02em;
  font-feature-settings: "palt";
}

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

/* ───────── Hero ───────── */
.hero {
  min-height: 95vh;
  padding: 60px var(--gutter) 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  background-image:
    linear-gradient(to bottom, rgba(6,6,6,0.55) 0%, rgba(6,6,6,0.72) 60%, rgba(6,6,6,0.95) 100%),
    url('/static/sakanaquarium/fanclub-pc/feature/sgc2026/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero > * { position: relative; z-index: 1; }
.hero-fnm {
  width: clamp(280px, 70vw, 640px);
  margin-bottom: 64px;
}
.hero-fnm img { width: 100%; height: auto; }
.hero-title {
  font-size: clamp(16px, 2.6vw, 22px);
  font-weight: 500;
  letter-spacing: 0.14em;
  margin: 0 0 24px;
  color: var(--fg);
}
.hero-sub {
  font-size: clamp(34px, 6vw, 56px);
  letter-spacing: 0.04em;
  color: var(--fg);
  margin: 0 0 40px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}
.hero-date {
  width: clamp(180px, 38vw, 320px);
  margin: 0 auto 32px;
}
.hero-date img { width: 100%; height: auto; }
.hero-venue {
  font-size: clamp(12px, 1.8vw, 14px);
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0;
}

/* ───────── Chapter cards (top page) ───────── */
.chapter-cards {
  padding: 60px var(--gutter) 80px;
  max-width: 1080px;
  margin: 0 auto;
}
.chapter-cards-head {
  text-align: center;
  margin-bottom: 48px;
}
.chapter-cards-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.chapter-cards-title {
  font-size: clamp(18px, 2.8vw, 24px);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 0;
  color: var(--fg);
}
.chapter-cards-grid {
  display: flex;
  flex-wrap: wrap;
}
.chapter-card {
  width: calc((100% - 24px) / 2);
  margin-right: 24px;
  margin-bottom: 24px;
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid var(--border);
  background: var(--band);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.chapter-card:nth-child(2n) { margin-right: 0; }
.chapter-card:hover {
  border-color: var(--muted);
}
.chapter-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}
.chapter-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.chapter-card:hover .chapter-card-thumb img {
  transform: scale(1.04);
}
.chapter-card-body {
  padding: 24px;
}
.chapter-card-day {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.chapter-card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.45;
}
.chapter-card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.chapter-card-arrow {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-top: 16px;
  display: inline-block;
}

@media (max-width: 760px) {
  .chapter-card {
    width: 100%;
    margin-right: 0;
  }
}

/* ───────── Page navigation (prev / next) ───────── */
.page-nav {
  padding: 60px var(--gutter) 40px;
  max-width: 960px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.page-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}
.page-nav-link {
  flex: 1;
  text-decoration: none;
  color: inherit;
  padding: 20px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
  display: block;
}
.page-nav-link:hover {
  border-color: var(--muted);
  background: rgba(255,255,255,0.02);
}
.page-nav-link + .page-nav-link { margin-left: 16px; }
.page-nav-link.is-disabled {
  opacity: 0.3;
  pointer-events: none;
}
.page-nav-eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--dim);
  display: block;
  margin-bottom: 6px;
}
.page-nav-title {
  font-size: 14px;
  color: var(--fg);
  font-weight: 500;
  line-height: 1.4;
}
.page-nav-next { text-align: right; }

@media (max-width: 560px) {
  .page-nav-link + .page-nav-link { margin-left: 8px; }
  .page-nav-link { padding: 14px; }
  .page-nav-title { font-size: 12px; }
}

/* Hero 簡易版（system explanation ページなど） */
.hero--simple {
  min-height: 60vh;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero-title--reference {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 16px;
}

/* ───────── Ranking images ───────── */
.ranking-images {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.ranking-images figure {
  margin: 0 0 40px;
}
.ranking-images figure:last-child { margin-bottom: 0; }
.ranking-images figure + .ranking-playlists { margin-top: -8px; }
.ranking-images img {
  width: 100%;
  height: auto;
  display: block;
}
.ranking-cta {
  text-align: center;
  padding: 60px var(--gutter) 0;
  font-size: 0;
}
.ranking-playlist-link {
  display: inline-block;
  font-size: 14px;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.08em;
  border: 1px solid var(--accent);
  padding: 14px 28px;
  transition: background 0.15s, color 0.15s;
}
.ranking-playlist-link:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Playlist links under each ranking image */
.ranking-playlists {
  font-size: 0; /* WOVN: avoid extra whitespace from translated text nodes */
  text-align: center;
  margin-top: 32px;
  margin-bottom: 96px;
}
.ranking-playlists .playlist-link {
  position: relative;
  display: inline-block;
  min-width: 160px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 999px;
  overflow: hidden;
  box-sizing: border-box;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  vertical-align: middle;
}
.ranking-playlists .playlist-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.18);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.ranking-playlists .playlist-link + .playlist-link {
  margin-left: 12px;
}
.ranking-playlists .playlist-link--spotify {
  background: #1DB954;
  color: #ffffff;
}
.ranking-playlists .playlist-link--apple {
  background: linear-gradient(135deg, #FA243C 0%, #F94C73 100%);
  color: #ffffff;
}
.ranking-playlists .playlist-link:hover {
  transform: translateY(-2px) scale(1.03);
}
.ranking-playlists .playlist-link:hover::before {
  opacity: 1;
}
.ranking-playlists .playlist-link:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}
.ranking-playlists .playlist-link--spotify:hover {
  box-shadow: 0 8px 24px rgba(30, 215, 96, 0.35);
}
.ranking-playlists .playlist-link--apple:hover {
  box-shadow: 0 8px 24px rgba(255, 55, 95, 0.35);
}
.ranking-playlists .playlist-link[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}
@media (max-width: 560px) {
  .ranking-playlists { margin-top: 24px; margin-bottom: 64px; }
  .ranking-playlists .playlist-link {
    min-width: 130px;
    font-size: 12px;
    padding: 11px 20px;
  }
  .ranking-playlists .playlist-link + .playlist-link { margin-left: 8px; }
}

/* ───────── Back link ───────── */
.back-link-section {
  padding: 60px var(--gutter);
  text-align: center;
  border-top: 1px solid var(--border);
}
.back-link-wrap { font-size: 0; }
.back-link {
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  border: 1px solid var(--border);
  padding: 14px 32px;
  transition: border-color 0.2s, color 0.2s;
}
.back-link:hover {
  color: var(--accent);
  border-color: var(--muted);
}

/* ───────── Intro ───────── */
.intro {
  padding: 100px var(--gutter) 80px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.intro p {
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--fg);
  margin: 0 0 1.5em;
}
.intro p:last-child { margin-bottom: 0; }
.intro-credit {
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--fg);
  margin: 2em 0 0;
  text-align: right;
}
@media (max-width: 560px) {
  .intro-credit { font-size: 16px; line-height: 1.85; }
}
.intro-note {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.8;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 48px;
}
.intro-note p { font-size: 12px; line-height: 1.8; margin: 0 0 0.8em; }

/* ───────── Chapter ───────── */
.chapter {
  padding: 80px 0 60px;
  border-top: 1px solid var(--border);
}
.chapter-head {
  max-width: var(--max-w);
  margin: 0 auto 48px;
  padding: 0 var(--gutter);
}
.chapter-day {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.chapter-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.4;
}
.chapter-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.chapter-body p {
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--fg);
  margin: 0 0 1.5em;
}

/* ───────── Single image ───────── */
.single-image {
  margin: 60px 0;
}
.single-image figure {
  margin: 0;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--gutter);
}
.single-image img {
  width: 100%;
  height: auto;
}
.single-image figcaption {
  font-size: 12px;
  color: var(--dim);
  padding: 12px var(--gutter) 0;
  letter-spacing: 0.04em;
}

/* ───────── Carousel ───────── */
.carousel {
  margin: 60px 0;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 78%;
  scroll-snap-align: center;
  margin-right: 12px;
  position: relative;
}
.carousel-slide:first-child { margin-left: var(--gutter); }
.carousel-slide:last-child { margin-right: var(--gutter); }
.carousel-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0 0;
}
.carousel-dots {
  display: flex;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dim);
  margin-right: 8px;
  transition: background 0.2s;
}
.carousel-dot:last-child { margin-right: 0; }
.carousel-dot.is-active { background: var(--accent); }
.carousel-counter {
  font-size: 11px;
  color: var(--muted);
  margin-left: 16px;
  letter-spacing: 0.08em;
  font-feature-settings: "tnum";
}

@media (min-width: 760px) {
  .carousel-slide { flex: 0 0 56%; }
}
@media (min-width: 1080px) {
  .carousel-slide { flex: 0 0 42%; }
}

/* ───────── Pull quote ───────── */
.pull-quote {
  margin: 40px 0;
  padding: 0;
  border-left: 2px solid var(--accent);
  padding-left: 20px;
}
.pull-quote-name {
  display: block;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  font-weight: 700;
}
.pull-quote-text {
  font-size: 15px;
  line-height: 2.0;
  color: var(--muted);
  margin: 0;
}

/* ───────── View switching ───────── */
.view { display: none; }
.view.is-active { display: block; }

/* ───────── Top-fixed back-to-top link ───────── */
.to-top {
  position: fixed;
  top: clamp(20px, 4vw, 36px);
  left: clamp(20px, 4vw, 36px);
  z-index: 200;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  display: inline-block;
  transition: color 0.15s;
}
.to-top:hover { color: var(--accent); }
@media (max-width: 560px) {
  .to-top { top: 14px; left: 14px; font-size: 11px; }
}

/* ───────── WOVN ───────── */
.wovn-languages {
  position: fixed;
  top: clamp(20px, 4vw, 36px);
  right: clamp(20px, 4vw, 36px);
  z-index: 200;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  cursor: pointer;
}
.wovn-languages .langIcon {
  white-space: nowrap;
}
@media (max-width: 560px) {
  .wovn-languages { top: 14px; right: 14px; font-size: 11px; }
}

/* ───────── Footer ───────── */
.footer {
  padding: 60px 20px 80px;
  text-align: center;
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.12em;
  border-top: 1px solid var(--border);
}
.footer-logo {
  display: inline-block;
  width: clamp(140px, 22vw, 200px);
  margin-bottom: 20px;
}
.footer-logo img {
  width: 100%;
  height: auto;
  opacity: 0.85;
  transition: opacity 0.2s;
  filter: brightness(0) invert(1);
}
.footer-logo:hover img { opacity: 1; }
.footer small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--dim);
}

/* ───────── Lightbox modal ───────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease 0.05s;
}
.lightbox.is-open img {
  transform: scale(1);
  opacity: 1;
}
/* Lightbox 画像切替アニメーション */
.lightbox.is-open img.is-leaving-left {
  transform: translateX(-40px);
  opacity: 0;
  transition: transform 0.18s ease-in, opacity 0.18s ease-in;
}
.lightbox.is-open img.is-leaving-right {
  transform: translateX(40px);
  opacity: 0;
  transition: transform 0.18s ease-in, opacity 0.18s ease-in;
}
.lightbox.is-open img.is-entering-right {
  transform: translateX(40px);
  opacity: 0;
  transition: none;
}
.lightbox.is-open img.is-entering-left {
  transform: translateX(-40px);
  opacity: 0;
  transition: none;
}
.lightbox-close {
  position: fixed;
  top: 72px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--fg);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
@media (max-width: 560px) {
  .lightbox-close { top: 56px; right: 12px; }
}
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
  transition: background 0.2s, opacity 0.2s;
}
.lightbox-nav svg {
  width: 22px;
  height: 22px;
}
.lightbox-nav:hover { background: rgba(0,0,0,0.85); }
.lightbox-nav:disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
@media (max-width: 560px) {
  .lightbox-nav { width: 44px; height: 44px; }
  .lightbox-nav svg { width: 18px; height: 18px; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
}

@media (max-width: 560px) {
  .intro { padding: 70px var(--gutter) 60px; }
  .intro p { font-size: 16px; line-height: 1.85; }
  .chapter { padding: 60px 0 40px; }
  .chapter-body p { font-size: 16px; line-height: 1.85; }
  .pull-quote-text { font-size: 14px; line-height: 1.85; }
}

/* ════════════════
   WOVN対策（必ず末尾に配置）
   ════════════════ */
.hero,
.intro,
.intro-note,
.chapter-head,
.chapter-body,
.single-image,
.carousel,
.carousel-track,
.carousel-controls,
.carousel-dots,
.pull-quote,
.footer,
.lightbox,
.back-link-section,
.back-link-wrap,
.chapter-cards,
.chapter-cards-head,
.chapter-cards-grid,
.chapter-card,
.chapter-card-thumb,
.chapter-card-body,
.page-nav,
.page-nav-inner,
.page-nav-link,
.page-nav-next,
.ranking-images,
.ranking-cta,
.ranking-playlists {
  font-size: 0 !important;
}

