/* ===========================
   PSJC2026 - Main Stylesheet
   =========================== */

:root {
  /* === 和風ライトカラーパレット === */
  --color-bg:           #faf6f0;   /* 生成り（和紙色） */
  --color-bg-section:   #f0e9df;   /* 薄茶・淡い和紙 */
  --color-card:         #ffffff;   /* 白 */
  --color-accent:       #c0280e;   /* 朱色 */
  --color-accent-light: #d93515;   /* 明るい朱 */
  --color-accent2:      #c9933a;   /* 金（背景用） */
  --color-text:         #1c1209;   /* 墨色 */
  --color-text-muted:   #6b5a45;   /* 落ち着いた茶 */
  --color-border:       #ddd5c8;   /* 薄い茶ボーダー */
  --color-gold:         #9a6c0f;   /* 金（テキスト用・白背景可読） */
  --font-main: 'Noto Serif JP', 'Shippori Mincho B1', 'Yu Mincho', '游明朝', 'Hiragino Mincho ProN', Georgia, serif;
  --font-mono: 'Courier New', Courier, monospace;
  --radius: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  line-height: 1.7;
  font-size: 16px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   NAVBAR
   =========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(250, 246, 240, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.navbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.logo-year {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  margin-left: auto;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover {
  color: var(--color-accent-light);
  background: rgba(192, 40, 14, 0.15);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

/* 画像コンテナ — 許可取得後にhero画像を差し替え予定 */
.hero-img-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 50% 30%, #3d1205 0%, #1c0a04 50%, #0e0502 100%);
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

/* 画像の上に重ねるグラデーション（下部でテキストを読みやすく） */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(18,13,7,0.25) 0%,
      rgba(18,13,7,0.15) 30%,
      rgba(18,13,7,0.55) 65%,
      rgba(18,13,7,0.92) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 24px 100px;
  width: 100%;
}

.hero-sub {
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #c9933a;   /* ヒーローは暗背景のため固定 */
  margin-bottom: 12px;
  font-family: 'Noto Serif JP', serif;
}

.hero-title {
  font-size: clamp(2.5rem, 10vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
  font-family: 'Noto Serif JP', serif;
}

.hero-title span {
  color: var(--color-accent);
}

.hero-desc {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: #f0e6d3;   /* ヒーローは暗背景のため固定 */
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.9;
  text-shadow: 0 1px 8px rgba(0,0,0,0.9);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.badge {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 2px;
  border: 1px solid rgba(240,230,211,0.4);
  background: rgba(240,230,211,0.12);
  color: #f0e6d3;   /* ヒーローは暗背景のため固定 */
}

.btn {
  display: inline-block;
  padding: 13px 36px;
  border-radius: 2px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.08em;
  font-family: 'Noto Serif JP', serif;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(192, 40, 14, 0.5);
  border: 1px solid rgba(255,255,255,0.15);
}

.btn-primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(192, 40, 14, 0.6);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #9e8870;   /* ヒーローは暗背景のため固定 */
  font-size: 0.65rem;
  letter-spacing: 0.25em;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollAnim 1.8s ease-in-out infinite;
}

@keyframes scrollAnim {
  0%, 100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===========================
   SECTIONS
   =========================== */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--color-bg-section);
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 60px;
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: 'Noto Serif JP', serif;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--color-accent), transparent);
  margin-left: 8px;
  opacity: 0.5;
}

.title-en {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--color-accent);
  font-weight: 700;
  font-family: 'Noto Serif JP', serif;
}

.section-lead {
  color: var(--color-text-muted);
  margin-top: -40px;
  margin-bottom: 50px;
  font-size: 0.95rem;
}

/* ===========================
   ABOUT
   =========================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-border);
  border-radius: 2px;
  padding: 32px 28px;
  transition: border-left-color var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.about-card:hover {
  border-left-color: var(--color-accent);
}

.about-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  color: var(--color-gold);
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: none;
}

.about-card h3 {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 14px;
  color: var(--color-text);
  font-family: 'Noto Serif JP', serif;
  line-height: 1.4;
}

.about-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.85;
}

/* 見どころカード — 横並び・スポットライト */
.about-card--spotlight {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(192,40,14,0.25);
  box-shadow: 0 4px 20px rgba(192,40,14,0.08);
}
.spotlight-deco {
  flex-shrink: 0;
  width: 110px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: rgba(255,255,255,0.18);
  font-size: 4.5rem;
  font-weight: 900;
  font-family: 'Noto Serif JP', serif;
  letter-spacing: -0.02em;
  user-select: none;
}
.spotlight-body {
  flex: 1;
  padding: 28px 32px;
  background: linear-gradient(to right, rgba(192,40,14,0.04), var(--color-card) 50%);
}
.about-card--spotlight .about-label {
  color: var(--color-accent);
}
.about-card--spotlight h3 {
  font-size: 1.3rem;
}

@media (max-width: 600px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-card--spotlight {
    flex-direction: column;
  }
  .spotlight-deco {
    width: 100%;
    height: 60px;
    font-size: 2.5rem;
  }
}

.highlight {
  color: var(--color-gold);
}

/* ===========================
   TIMELINE
   =========================== */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-border));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding: 0 0 48px 32px;
  opacity: 0.45;
}

.timeline-item.done,
.timeline-item.current {
  opacity: 1;
}

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-card);
  border: 2px solid var(--color-border);
  transition: border-color var(--transition);
}

.timeline-item.done .timeline-dot {
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 10px rgba(192, 40, 14, 0.5);
}

.timeline-item.current .timeline-dot {
  background: var(--color-gold);
  border-color: var(--color-gold);
  box-shadow: 0 0 16px rgba(201, 147, 58, 0.7);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 16px rgba(201, 147, 58, 0.6); }
  50% { box-shadow: 0 0 28px rgba(201, 147, 58, 1); }
}

.timeline-content time {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--color-accent-light);
  font-weight: 700;
  margin-bottom: 6px;
}

.tag-deadline {
  background: var(--color-accent2);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.timeline-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* ===========================
   RULES
   =========================== */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.rule-block {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.rule-block:hover {
  border-color: var(--color-accent);
}

.rule-block h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.rule-num {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  background: rgba(192, 40, 14, 0.12);
  padding: 3px 8px;
  border-radius: 2px;
  border-left: 2px solid var(--color-accent);
}

.rule-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rule-block ul li {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  padding-left: 14px;
  position: relative;
}

.rule-block ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

code {
  font-family: var(--font-mono);
  background: rgba(192, 40, 14, 0.10);
  color: var(--color-gold);
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 0.82em;
}

/* ===========================
   JUDGES
   =========================== */
.judges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.judge-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color var(--transition), transform var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.judge-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.judge-number {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.judge-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 4px;
}

.judge-match {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.judge-criteria h4 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 10px;
}

.judge-criteria ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.judge-criteria ul li {
  font-size: 0.87rem;
  color: var(--color-text-muted);
  padding-left: 14px;
  position: relative;
}

.judge-criteria ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 1.2em;
  line-height: 1;
}

/* 審査ポイント 出典リンク */
.judge-criteria-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(192,40,14,0.3);
  padding-bottom: 1px;
  text-decoration: none;
  transition: border-color var(--transition), opacity var(--transition);
}
.judge-criteria-link:hover {
  opacity: 0.75;
  border-bottom-color: var(--color-accent);
}

/* 出典注釈（セクション末尾） */
.judges-source {
  margin-top: 40px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}
.judges-source a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.judges-source a:hover {
  color: var(--color-accent);
}

.judge-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(192, 40, 14, 0.05);
  border: 1px solid rgba(192, 40, 14, 0.2);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.88rem;
  color: #8b1a09;
}

/* ===========================
   ENTRY
   =========================== */
.entry-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.entry-info h3,
.entry-links h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.entry-info p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.template-box {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
}

.template-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  background: rgba(124, 92, 252, 0.08);
  padding: 8px 16px;
  border-bottom: 1px solid var(--color-border);
}

.template-box pre {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--color-text-muted);
  padding: 16px;
  white-space: pre-wrap;
  line-height: 2;
}

.entry-deadline {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.deadline-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.deadline-date {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--color-accent2);
  letter-spacing: -0.01em;
}

.entry-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.entry-links h3 {
  margin-bottom: 16px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.9rem;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  margin-bottom: 10px;
}

.link-card:hover {
  border-color: var(--color-accent);
  background: rgba(192, 40, 14, 0.07);
  transform: translateX(4px);
  color: #fff;
}

.link-card-accent {
  border-color: rgba(192, 40, 14, 0.4);
  background: rgba(192, 40, 14, 0.08);
}

.link-card-accent:hover {
  background: rgba(192, 40, 14, 0.15);
}

.link-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: #1c1209;   /* フッターは暗色で固定 */
  border-top: 1px solid rgba(192,40,14,0.25);
  padding: 60px 0 40px;
  text-align: center;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 900;
  color: #f0e6d3;   /* フッター内は暗背景のため固定 */
  margin-bottom: 6px;
}

.footer-logo span {
  color: var(--color-accent);
}

.footer-text {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: #8a7a66;   /* フッター内は固定 */
  margin-bottom: 12px;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 20px;
  font-size: 0.8rem;
}
.footer-links a {
  color: #c8b89a;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--color-accent-light);
  text-decoration: underline;
}
.footer-sep {
  color: #4a3a2a;
  font-size: 0.7rem;
}

.footer-sub {
  font-size: 0.78rem;
  color: #6a5a46;   /* フッター内は固定 */
  margin-bottom: 12px;
}

.footer-sub a {
  color: #8a7a66;
  text-decoration: none;
}

.footer-sub a:hover {
  color: var(--color-accent-light);
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.72rem;
  color: #4a3a2a;   /* フッター内は固定 */
  line-height: 1.7;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(250, 246, 240, 0.98);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
    display: block;
  }

  .nav-toggle {
    display: flex;
  }

  .entry-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section {
    padding: 70px 0;
  }

  .timeline {
    padding-left: 24px;
  }

  .timeline-item {
    padding-left: 24px;
  }

  .timeline-dot {
    left: -24px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    letter-spacing: -0.03em;
  }

  .section-title {
    flex-wrap: wrap;
  }

  .section-title::after {
    display: none;
  }
}

/* ===========================
   YouTube 動画セクション
   =========================== */

.video-wrap {
  max-width: 800px;
  margin: 0 auto;
}

/* 16:9 アスペクト比を維持するコンテナ */
.video-placeholder,
.video-iframe-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: var(--radius);
  overflow: hidden;
}

/* プレースホルダー（動画未公開時） */
.video-placeholder {
  background: var(--color-card);
  border: 2px dashed var(--color-border);
}

.video-placeholder-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.video-play-icon {
  font-size: 3rem;
  color: var(--color-text-muted);
  opacity: 0.4;
}

.video-placeholder-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
}

.video-placeholder-sub {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  opacity: 0.5;
  letter-spacing: 0.2em;
}

/* 実際のiframe（動画公開後） */
.video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
}

/* ===========================
   スケジュール: アコーディオン
   =========================== */

.schedule-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sc-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-card);
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}

.sc-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}
.sc-header:hover { background: rgba(192,40,14,0.06); }

.sc-phase-name { flex: 1; font-size: 1.05rem; }

.sc-phase-date {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-weight: 400;
  white-space: nowrap;
}

.sc-phase-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--color-border);
  color: var(--color-text-muted);
  white-space: nowrap;
}
.sc-phase-badge.active {
  background: var(--color-accent);
  color: #fff;
  animation: pulse-badge 2s infinite;
}
.sc-phase-badge.done {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  opacity: 0.6;
}
@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192,40,14,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(192,40,14,0); }
}

.sc-chevron {
  font-size: 1.4rem;
  color: var(--color-text-muted);
  transform: rotate(90deg);
  transition: transform var(--transition);
  line-height: 1;
}
.sc-header[aria-expanded="true"] .sc-chevron { transform: rotate(-90deg); }

/* アクティブパネルのボーダー強調 */
.sc-panel.is-active { border-color: var(--color-accent); }

.sc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 24px;
}
.sc-header[aria-expanded="true"] + .sc-body {
  /* max-height は JS で設定 */
  padding: 0 24px 24px;
}

/* アコーディオン内のタイムラインを少しコンパクトに */
.sc-body .timeline { padding-left: 20px; }
.sc-body .timeline-item { padding: 10px 0 10px 28px; }

/* 担当審査員バッジ行 */
.sc-judges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 4px;
}
.sc-judge-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-muted);
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  padding: 3px 10px;
  letter-spacing: 0.03em;
}
.sc-judge-badge::before {
  content: '⚖ ';
  color: var(--color-accent);
  font-size: 0.72rem;
}
/* 予選: 全員採点ラベル */
.sc-judge-all {
  color: var(--color-accent);
  background: rgba(192,40,14,0.06);
  border-color: rgba(192,40,14,0.25);
  letter-spacing: 0.05em;
}
.sc-judge-all::before {
  content: '';
}


/* ===========================
   動画ギャラリー
   =========================== */

/* フィルターエリア */
.vg-filters {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

/* ラウンドタブ */
.vg-round-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vg-tab {
  padding: 7px 18px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.vg-tab:hover  { border-color: var(--color-accent); color: var(--color-accent); }
.vg-tab.active { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

/* チームフィルター */
.vg-team-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.vg-team-btn {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition);
}
.vg-team-btn:hover  { border-color: var(--color-accent-light); color: var(--color-accent-light); }
.vg-team-btn.active { background: rgba(192,40,14,0.12); border-color: var(--color-accent); color: var(--color-accent-light); }

/* 動画グリッド */
.vg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* 動画カード */
.vg-card {
  background: var(--color-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform var(--transition), border-color var(--transition);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.vg-card:hover { transform: translateY(-4px); border-color: var(--color-accent); }

/* サムネイル */
.vg-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  cursor: pointer;
  background: #0d0d1a;
  overflow: hidden;
}
.vg-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--transition);
}
.vg-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* 再生オーバーレイ */
.vg-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity var(--transition);
}
.vg-thumb:hover .vg-play-overlay { opacity: 1; }
.vg-play-icon {
  font-size: 2.2rem;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}

/* 未公開プレースホルダー */
.vg-thumb-pending {
  cursor: default;
  background: var(--color-bg-section);
  border-bottom: 1px solid var(--color-border);
}
.vg-pending-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.vg-pending-icon  { font-size: 1.8rem; color: var(--color-text-muted); opacity: 0.3; }
.vg-pending-label { font-size: 0.78rem; color: var(--color-text-muted); letter-spacing: 0.1em; }

/* カード情報エリア */
.vg-info {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.vg-player { font-weight: 700; font-size: 0.95rem; }
.vg-team   { font-size: 0.8rem; color: var(--color-text-muted); }
.vg-num    { font-size: 0.75rem; color: var(--color-text-muted); }

/* ラウンドバッジ */
.vg-round-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 4px;
  width: fit-content;
}
.vg-round-予選    { background: rgba(192,40,14,0.18); color: var(--color-accent-light); }
.vg-round-1回戦   { background: rgba(180,50,80,0.1); color: #9a1a40; }
.vg-round-準決勝  { background: rgba(245,197,66,0.2); color: var(--color-gold); }
.vg-round-決勝    { background: rgba(245,197,66,0.4); color: var(--color-gold); }

/* 空メッセージ */
.vg-empty {
  text-align: center;
  color: var(--color-text-muted);
  padding: 60px 0;
  font-size: 0.95rem;
  display: none;
}

/* 審査員: Twitterリンク */
.judge-twitter {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--color-accent-light);
  text-decoration: none;
  margin-bottom: 12px;
  opacity: 0.85;
  transition: opacity var(--transition);
}
.judge-twitter:hover { opacity: 1; text-decoration: underline; }

.judge-subhead {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent-light);
  margin: 10px 0 4px;
}

@media (max-width: 600px) {
  .sc-header { padding: 14px 16px; flex-wrap: wrap; }
  .sc-phase-date { width: 100%; font-size: 0.72rem; }
  .vg-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
}

/* ===========================
   出場チーム一覧
   =========================== */

.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.team-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 20px 20px 16px;
  transition: transform var(--transition), border-color var(--transition);
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.team-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent);
  border-top-color: var(--color-accent);
}

.team-card--pending {
  border-top-color: var(--color-border);
  opacity: 0.55;
  border-style: dashed;
}

.team-num {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-border);
  font-family: 'Noto Serif JP', serif;
  line-height: 1;
}

.team-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 4px;
  padding-right: 36px;
  font-family: 'Noto Serif JP', serif;
  line-height: 1.4;
}

.team-reps {
  font-size: 0.75rem;
  color: var(--color-gold);
  margin-bottom: 12px;
  opacity: 0.85;
}

.team-members {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin-bottom: 12px;
}

.team-members li {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  padding: 2px 8px;
}

.team-comment {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-style: italic;
  opacity: 0.8;
  border-top: 1px solid var(--color-border);
  padding-top: 10px;
  margin-top: 4px;
  line-height: 1.5;
}

/* 関連リンク行 */
.entry-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.entry-links-row .link-card {
  flex: 1;
  min-width: 180px;
}

@media (max-width: 600px) {
  .teams-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .entry-links-row {
    flex-direction: column;
  }
}

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