/* NEXT UP サイト共通スタイル。ポスターと同じ黒 × オレンジ。 */
:root {
  --bg: #0b0b0c;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --line: #3a3a3c;
  --ink: #f2f2f2;
  --quiet: #a1a1a6;
  --accent: #f5a623;
  --accent-ink: #0b0b0c;
  --danger: #ff6b5e;
  --radius: 18px;
  --max: 960px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Sans", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
}
a { color: var(--accent); }
img { display: block; max-width: 100%; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* ヘッダー・フッター */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: .02em; }
.brand img { width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.site-nav { display: flex; gap: 18px; font-size: 14px; }
.site-nav a { color: var(--quiet); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }

.site-footer { border-top: 1px solid var(--surface-2); margin-top: 96px; padding: 32px 0 48px; color: var(--quiet); font-size: 13px; }
.site-footer .wrap { display: grid; gap: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer nav a { color: var(--quiet); }

/* ヒーロー */
.hero { padding: 40px 0 24px; }
.eyebrow { color: var(--quiet); font-size: 13px; letter-spacing: .12em; font-weight: 600; }
.hero h1 { font-size: clamp(28px, 6.4vw, 52px); line-height: 1.3; font-weight: 800; margin-top: 12px; word-break: auto-phrase; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }
/* 見出しは意味のまとまりの途中で改行しない（Safari は word-break: auto-phrase に未対応のため） */
.nw { display: inline-block; }
.hero p.lead { color: var(--quiet); font-size: clamp(15px, 2.4vw, 18px); margin-top: 16px; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  background: var(--accent); color: var(--accent-ink);
}
.badge-free {
  display: inline-flex; align-items: center; padding: 12px 18px; border-radius: 999px;
  font-weight: 700; font-size: 15px; color: var(--accent); border: 2px solid var(--accent);
}
.button.secondary { background: var(--surface-2); color: var(--ink); }
.button[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* Watch の画面 */
.screens {
  width: min(var(--max), 100% - 32px); margin: 40px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.screen { margin: 0; text-align: center; }
.watch {
  background: #1c1c1e; padding: 12px; border-radius: 26% / 22%;
  box-shadow: 0 0 0 3px #3a3a3c, 0 0 0 6px #2c2c2e, 0 24px 48px rgba(0, 0, 0, .5);
  max-width: 260px; margin-inline: auto;
}
.watch img { width: 100%; height: auto; border-radius: 22% / 18%; background: #000; }
.screen figcaption { margin-top: 16px; font-weight: 700; font-size: 15px; }
.screen figcaption span { display: block; color: var(--quiet); font-weight: 400; font-size: 13px; margin-top: 2px; }

@media (max-width: 760px) {
  /* スマホでは横にスワイプして見る */
  .screens {
    width: 100%; padding: 8px 16px 16px; grid-template-columns: none;
    grid-auto-flow: column; grid-auto-columns: 68%;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  }
  .screen { scroll-snap-align: center; }
}

/* セクション */
section { padding: 56px 0 0; }
section > .wrap > h2 { font-size: clamp(22px, 4vw, 30px); font-weight: 800; }
section > .wrap > p.sub { color: var(--quiet); margin-top: 6px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 24px; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 20px; }
.feature b { display: block; font-size: 18px; }
.feature p { color: var(--quiet); font-size: 14px; margin-top: 6px; }

.steps { counter-reset: step; display: grid; gap: 10px; margin-top: 24px; list-style: none; }
.steps li { counter-increment: step; background: var(--surface); border-radius: var(--radius); padding: 16px 20px 16px 60px; position: relative; }
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 16px;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 14px;
}
.steps li span { color: var(--quiet); font-size: 14px; display: block; }

.page-title { font-size: clamp(26px, 5vw, 38px); font-weight: 800; }
section.first { padding-top: 24px; }

/* フェス一覧：絞り込みと月の見出し */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.filters input, .filters select {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
}
.filters input { flex: 1 1 220px; min-width: 0; }
.filters select { flex: 0 0 auto; }
.month { font-size: 18px; font-weight: 800; margin-top: 36px; color: var(--quiet); }
.month + .fest-list { margin-top: 12px; }

/* フェス一覧 */
.fest-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); gap: 12px; margin-top: 24px; }
.fest {
  background: var(--surface); border-radius: var(--radius); padding: 20px;
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: start;
}
.fest .when { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.fest .date { font-size: 20px; font-weight: 800; color: var(--accent); letter-spacing: .01em; }
.fest .area { font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--ink); color: var(--accent-ink); }
.fest h3 { font-size: 17px; line-height: 1.45; margin-top: 6px; }
.fest .meta { grid-column: 1; color: var(--quiet); font-size: 13px; }
.fest .badge { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--quiet); }
.fest .badge.published { background: rgba(245, 166, 35, .16); color: var(--accent); }
.fest .code { grid-column: 2; grid-row: 1 / span 4; text-align: center; }
.fest .code small { display: block; font-size: 11px; color: var(--quiet); letter-spacing: .1em; }
.fest .code strong { display: block; font-size: 30px; font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.fest .links { grid-column: 1 / -1; margin-top: 10px; font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fest .links .site { margin-right: 4px; }
.fest .sns {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink);
}
.fest .sns:hover { background: var(--line); }
.fest .sns svg { width: 16px; height: 16px; }
.fest .badge.canceled { background: rgba(255, 107, 94, .16); color: var(--danger); }
.fest.is-canceled .date { color: var(--quiet); text-decoration: line-through; }
.fest.is-canceled .code { opacity: .4; }
.fest.past { opacity: .5; }
.empty { color: var(--quiet); margin-top: 24px; }

.callout { background: var(--surface); border-radius: var(--radius); padding: 24px; margin-top: 24px; display: grid; gap: 14px; }
.callout p { color: var(--quiet); }

/* 文章ページ（プライバシー・サポート） */
.doc { padding-top: 24px; }
.doc h1 { font-size: clamp(26px, 5vw, 38px); font-weight: 800; }
.doc .updated { color: var(--quiet); font-size: 13px; margin-top: 6px; }
.doc h2 { font-size: 19px; margin-top: 36px; }
.doc p, .doc li { color: #d1d1d6; margin-top: 10px; }
.doc ul { padding-left: 1.4em; }
.doc details { background: var(--surface); border-radius: 14px; padding: 14px 18px; margin-top: 10px; }
.doc summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.doc details p { margin-top: 8px; }

.todo { background: rgba(245, 166, 35, .12); color: var(--accent); border-radius: 6px; padding: 0 6px; }

@media (max-width: 560px) {
  .hero .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero .actions > :first-child { grid-column: 1 / -1; }
  .hero .actions > * { justify-content: center; }
  .eyebrow { font-size: 11px; letter-spacing: .04em; }
  .site-nav { display: none; }
  .fest { grid-template-columns: 1fr; }
  .fest .code { grid-column: 1; grid-row: auto; text-align: left; margin-top: 10px; display: flex; align-items: baseline; gap: 10px; }
  .fest .code small { display: inline; }
}

/* お知らせ */
.news { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 12px; }
.doc .news-item { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; margin-top: 0; }
.news-item time { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.doc .news-item h2 { font-size: 17px; margin-top: 4px; line-height: 1.5; }
.doc .news-item p { margin-top: 6px; font-size: 14px; }
.site-nav a[aria-current="page"] { color: var(--ink); }

/* 対応フェス：追加のしかた（4ステップ） */
.howto {
  list-style: none; padding: 0; margin: 24px 0 8px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.howto li { background: var(--surface); border-radius: var(--radius); padding: 18px 14px 16px; display: grid; gap: 14px; align-content: start; }
.howto .howto-visual { width: 100%; max-width: 150px; margin-inline: auto; }
.howto .watch { padding: 7px; box-shadow: 0 0 0 2px #3a3a3c, 0 0 0 4px #2c2c2e; }
.howto-code-card {
  aspect-ratio: 422 / 514; border-radius: 22% / 18%; background: var(--bg);
  box-shadow: inset 0 0 0 2px var(--accent);
  display: grid; place-content: center; text-align: center;
}
.howto-code-card small { font-size: 11px; color: var(--quiet); letter-spacing: .1em; }
.howto-code-card strong { font-size: 34px; font-weight: 800; letter-spacing: .08em; color: var(--accent); font-variant-numeric: tabular-nums; }
.howto p { font-size: 14px; font-weight: 700; line-height: 1.5; display: flex; gap: 8px; align-items: flex-start; }
.howto p b {
  flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-size: 12px;
}
@media (max-width: 760px) {
  /* スマホでは横にスワイプして見る */
  .howto {
    margin-inline: -16px; padding: 0 16px 8px; grid-template-columns: none;
    grid-auto-flow: column; grid-auto-columns: 62%;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; -webkit-overflow-scrolling: touch;
  }
  .howto li { scroll-snap-align: start; }
}

.site-footer .footer-x { display: inline-flex; align-items: center; gap: 6px; }
.site-footer .footer-x svg { width: 13px; height: 13px; }
