/* =========================================================
   Spice Of VRinks — Stylesheet
   Design concept: 藍色の会場に金の装飾 / gala reception evening
   ========================================================= */

:root {
  --color-bg:        #10152A;
  --color-bg-alt:    #171D34;
  --color-card:      #1B2240;
  --color-ink:       #F2EEE1;
  --color-ink-soft:  #C9C4B4;
  --color-ink-faint: #8D8A7C;
  --color-line:      #3A4160;
  --color-line-soft: #2A3050;

  --color-gold-dark: #C9A24A;
  --color-gold:      #D9B968;
  --color-gold-mid:  #B6934A;

  --font-display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --max-width: 1080px;
  --max-width-narrow: 720px;

  --radius-sm: 3px;

  color-scheme: dark;
}

html {
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  color: var(--color-ink);
}

a {
  color: var(--color-gold-dark);
  text-decoration-color: var(--color-line);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: currentColor; }

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

::selection { background: var(--color-gold-mid); color: #fff; }

/* subtle paper grain overlay */
.bg-photo {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-color: var(--color-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-photo-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    180deg,
    rgba(16, 21, 42, 0.86) 0%,
    rgba(16, 21, 42, 0.93) 60%,
    rgba(16, 21, 42, 0.97) 100%
  );
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.spotlight {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 900px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center, rgba(217, 185, 104, 0.14) 0%, rgba(217, 185, 104, 0.05) 35%, transparent 65%);
}

/* ---------------- Header ---------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
}
.brand-mark { color: var(--color-gold); display: inline-flex; }

.site-nav { display: flex; gap: 28px; }
.site-nav a {
  font-size: 0.92rem;
  color: var(--color-ink-soft);
  text-decoration: none;
}
.site-nav a:hover { color: var(--color-gold-dark); }

@media (max-width: 640px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-nav { gap: 18px; flex-wrap: wrap; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 96px;
  overflow: hidden;
}

.hero-inner { max-width: 620px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--color-gold-dark);
  margin: 0 0 20px;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--color-gold-mid);
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.hero-lede {
  margin: 28px 0 0;
  max-width: 46ch;
  color: var(--color-ink-soft);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.btn-primary {
  background: var(--color-gold-dark);
  color: #14172A;
  border-color: var(--color-gold-dark);
}
.btn-primary:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(217, 185, 104, 0.18);
}

.btn-ghost {
  background: transparent;
  color: var(--color-gold-dark);
  border-color: var(--color-gold-mid);
}
.btn-ghost:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(217, 185, 104, 0.1);
}

.hero-period {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--color-line);
}

.hero-period-label {
  font-size: 0.82rem;
  color: var(--color-ink-faint);
  margin: 0 0 6px;
}

.hero-period-range {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--color-gold-dark);
  margin: 0;
  line-height: 1.4;
}

/* 広い画面では開催期間を1行に保つ(左カラム幅を超えてもはみ出して表示) */
@media (min-width: 900px) {
  .hero-period-range { white-space: nowrap; }
}

.hero-days {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 28px;
  max-width: 720px;
}

@media (max-width: 720px) {
  .hero-days { grid-template-columns: 1fr; gap: 16px; }
}

.hero-day-date {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 4px;
}
.hero-day-date span {
  font-weight: 400;
  color: var(--color-ink-faint);
  margin-left: 4px;
}

.hero-day-time {
  font-variant-numeric: tabular-nums;
  color: var(--color-gold);
  font-size: 0.9rem;
  margin: 0 0 2px;
}

.hero-day-venues {
  color: var(--color-ink-soft);
  font-size: 0.85rem;
  margin: 0;
}

/* ---------------- Section shell ---------------- */
.section { padding: 96px 0; }
.section.alt { background: var(--color-bg-alt); }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section-inner.narrow { max-width: var(--max-width-narrow); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-line);
}

.section-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-gold-dark);
}

.section-head h2 {
  font-size: 2rem;
}

.section-note {
  color: var(--color-ink-soft);
  max-width: 60ch;
  margin: 0 0 44px;
}

.lead-text {
  font-size: 1.15rem;
  color: var(--color-ink);
  max-width: 56ch;
}

/* ---------------- YouTube ---------------- */
.youtube-block { margin-top: 56px; }
.youtube-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-gold);
  letter-spacing: 0.08em;
}
.youtube-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--color-line-soft);
  background: #000;
}
.youtube-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.youtube-frame.youtube-frame-link {
  aspect-ratio: auto;
  border: 0;
  background: none;
}

/* ---------------- About cards ---------------- */
.about-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-line-soft);
  border: 1px solid var(--color-line-soft);
}

.about-card {
  background: var(--color-bg);
  padding: 26px 24px;
}

.about-card h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-gold-dark);
}

.about-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-ink-soft);
}

@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------------- Schedule detail (簡易: 日付 > 時間+会場) ---------------- */
.schedule-day-block + .schedule-day-block {
  margin-top: 44px;
  padding-top: 44px;
  border-top: 1px solid var(--color-line);
}

.schedule-day-heading {
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.schedule-day-heading .schedule-day-weekday {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-ink-faint);
  margin-left: 6px;
}

.schedule-slots {
  list-style: none;
  margin: 0;
  padding: 0;
}

.schedule-slot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--color-line-soft);
}

.slot-time {
  font-family: var(--font-display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--color-gold-dark);
  font-size: 1rem;
  white-space: nowrap;
}

.slot-venue {
  color: var(--color-ink-soft);
  font-size: 0.95rem;
  text-align: right;
}

.loading-msg {
  color: var(--color-ink-faint);
  font-size: 0.9rem;
  padding: 20px 0;
}

/* ---------------- News ---------------- */
.news-list {
  border-top: 1px solid var(--color-line);
}

.news-item {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-line);
  text-decoration: none;
  color: inherit;
}

.news-date {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-gold-mid);
  font-size: 0.85rem;
  white-space: nowrap;
  width: 100px;
  flex-shrink: 0;
}

.news-body {
  flex: 1;
  min-width: 0;
}

.news-text {
  margin: 0;
  color: var(--color-ink);
  font-size: 0.95rem;
  line-height: 1.8;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 3px 12px;
  border: 1px solid var(--color-gold-mid);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--color-gold);
  text-decoration: none;
  transition: background 200ms ease, box-shadow 200ms ease;
}
.news-link:hover,
.news-link:focus-visible {
  background: rgba(217, 185, 104, 0.14);
  box-shadow: 0 0 10px rgba(217, 185, 104, 0.3);
}

.news-body .twitter-tweet {
  margin: 12px 0 0 !important;
}

@media (max-width: 520px) {
  .news-item { flex-direction: column; gap: 6px; }
  .news-date { width: auto; }
}

/* ---------------- Ad slot (Supportersからランダムに1件) ---------------- */
.ad-slot {
  padding: 40px 0 0;
}

.ad-slot-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.ad-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 560px) {
  .ad-grid { grid-template-columns: 1fr; }
}

.ad-banner {
  display: block;
  background: var(--color-card);
  border: 1px solid var(--color-line);
  text-decoration: none;
  overflow: hidden;
}

.ad-banner img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.ad-banner.text-only {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: var(--color-ink-soft);
  font-size: 1rem;
  text-align: center;
}

/* ---------------- CTA ---------------- */
.cta-section { padding: 80px 0 110px; }
.cta-inner { text-align: left; }
.cta-inner h2 { font-size: 1.9rem; margin-bottom: 14px; }
.cta-inner p { color: var(--color-ink-soft); max-width: 50ch; margin: 0 0 28px; }

/* ---------------- Gallery (過去の様子) ---------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-line-soft);
  border: 1px solid var(--color-line-soft);
}

.gallery-item {
  display: block;
  width: 100%;
  background: var(--color-card);
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 300ms ease, opacity 300ms ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
  opacity: 0.9;
}

@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- Footer ---------------- */
.site-footer {
  border-top: 1px solid var(--color-line);
  background: var(--color-bg-alt);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  color: var(--color-ink-soft);
}

.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 0.88rem;
  color: var(--color-ink-soft);
  text-decoration: none;
}
.footer-links a:hover { color: var(--color-gold-dark); }

.footer-copy {
  font-size: 0.82rem;
  color: var(--color-ink-faint);
  margin: 0;
  width: 100%;
  text-align: left;
}

@media (min-width: 640px) {
  .footer-copy { width: auto; }
}

/* ---------------- Focus visibility ---------------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-gold-dark);
  outline-offset: 3px;
}

/* ---------------- Lightbox (過去の様子のポップアップ表示) ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(10, 13, 24, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: min(90vw, 1100px);
  max-height: 85vh;
  object-fit: contain;
  border: 1px solid var(--color-line);
  background: var(--color-card);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-gold-mid);
  background: transparent;
  color: var(--color-gold);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 160ms ease, color 160ms ease;
}
.lightbox-close:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-dark);
}

/* ---------------- Ambassadors (アンバサダー) ---------------- */
[hidden] { display: none !important; }

.performer-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.performer-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid var(--color-line-soft);
  background: rgba(255, 255, 255, 0.02);
  min-width: 0;
}
.performer-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--color-ink);
  overflow-wrap: anywhere;
}
.performer-speakers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.88rem;
  color: var(--color-ink-soft);
}
.performer-speakers li::before { content: "– "; color: var(--color-gold-mid); }
.performer-speakers a { color: inherit; text-decoration: underline; text-decoration-color: var(--color-gold-mid); text-underline-offset: 3px; }
.performer-speakers a:hover { color: var(--color-gold); }
.performer-list.has-images { grid-template-columns: repeat(4, 1fr); }
.performer-card:has(.performer-image) { padding: 0 0 18px; }
.performer-card:has(.performer-image) > :not(.performer-image) { margin: 0 20px; }
.performer-image {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--color-card);
  overflow: hidden;
  cursor: zoom-in;
  font: inherit;
}
.performer-image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 300ms ease, opacity 300ms ease;
}
.performer-image:hover img { transform: scale(1.03); opacity: 0.92; }
.performer-x { max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .performer-list { grid-template-columns: repeat(2, 1fr); }
  .performer-list.has-images { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .performer-list { grid-template-columns: 1fr; }
  .performer-list.has-images { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .performer-card:has(.performer-image) > :not(.performer-image) { margin: 0 12px; }
}

.ambassador-list {
  --amb-gap: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px var(--amb-gap);
  margin-top: 36px;
}

.ambassador-card {
  /* PC: 5人で1列 / 人数が違っても同じ幅で中央に折り返す */
  flex: 0 0 calc((100% - 4 * var(--amb-gap)) / 5);
  min-width: 0;
  display: block;
  text-decoration: none;
  color: inherit;
}

.ambassador-figure {
  position: relative;
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--color-line);
  background:
    radial-gradient(ellipse 85% 60% at 50% 0%, rgba(217, 185, 104, 0.20) 0%, rgba(217, 185, 104, 0) 70%),
    linear-gradient(180deg, var(--color-card) 0%, var(--color-bg) 100%);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

/* 足元のステージライン */
.ambassador-figure::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 10px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-mid), transparent);
  opacity: 0.8;
}

.ambassador-figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  padding: 10px 6px 14px;
  transition: transform 300ms ease;
}

.ambassador-noimage {
  width: 38%;
  aspect-ratio: 1 / 2;
  margin-bottom: 18px;
  border: 1px dashed var(--color-line);
  border-radius: 40% 40% 6px 6px;
  opacity: 0.6;
}

.ambassador-name {
  margin: 14px 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--color-ink);
  overflow-wrap: anywhere;
}

.ambassador-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.ambassador-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border: 1px solid var(--color-gold-mid);
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-gold);
  text-decoration: none;
  transition: background 200ms ease, box-shadow 200ms ease;
}
.ambassador-link:hover,
.ambassador-link:focus-visible {
  background: rgba(217, 185, 104, 0.14);
  box-shadow: 0 0 10px rgba(217, 185, 104, 0.3);
}

.ambassador-card:hover .ambassador-figure {
  border-color: var(--color-gold-mid);
  box-shadow: 0 0 0 3px rgba(217, 185, 104, 0.12);
}

/* タブレット: 3列(5人なら 3+2 で中央寄せ) */
@media (max-width: 860px) {
  .ambassador-card { flex-basis: calc((100% - 2 * var(--amb-gap)) / 3); }
}

/* スマホ: 2列(5人なら 2+2+1 で最後は中央) */
@media (max-width: 520px) {
  .ambassador-list { --amb-gap: 14px; }
  .ambassador-card { flex-basis: calc((100% - var(--amb-gap)) / 2); }
}
