/* ============================================
   学生マジック選手権 公式サイト
   テーマ：黒 × 赤（チャンピオンシップ）
   ============================================ */
:root {
  --black: #0c0d10;
  --dark: #14161b;
  --card: #1b1e25;
  --red: #d8112e;
  --red-deep: #a30c22;
  --white: #f5f5f4;
  --gray: #9aa0ab;
  --line: #2a2e37;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--white);
  background: var(--black);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--white); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--red); }

.en {
  font-family: "Oswald", "Montserrat", sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
}

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

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12,13,16,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; letter-spacing: .1em; }
.brand .mark {
  width: 30px; height: 30px; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: "Oswald", sans-serif; font-size: 17px; font-weight: 700;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.brand:hover { color: var(--white); opacity: .85; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; }

.global-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.global-nav a {
  display: block; padding: 8px 14px; font-size: 13.5px; font-weight: 500; letter-spacing: .08em;
}
.global-nav a.current { color: var(--red); font-weight: 700; }
.nav-cta a {
  background: var(--red); color: #fff !important; border-radius: 2px;
  padding: 9px 22px !important; margin-left: 10px; font-weight: 700;
}
.nav-cta a:hover { background: var(--red-deep); }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 105%, rgba(216,17,46,.35), transparent 70%),
    linear-gradient(180deg, #0c0d10 0%, #15161c 100%);
  text-align: center;
  padding: 110px 24px 90px;
  border-bottom: 2px solid var(--red);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, transparent 0 42px, rgba(255,255,255,.018) 42px 84px);
  pointer-events: none;
}
.hero .kicker {
  display: inline-block; border: 1px solid var(--red); color: var(--red);
  font-size: 12px; letter-spacing: .3em; padding: 6px 20px; margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(38px, 7.5vw, 76px); font-weight: 900; line-height: 1.25;
  letter-spacing: .06em; margin-bottom: 10px;
}
.hero h1 .no { color: var(--red); }
.hero .sub-en { color: var(--gray); font-size: clamp(12px, 1.6vw, 15px); margin-bottom: 36px; }
.hero .date-line {
  font-family: "Oswald", sans-serif; font-size: clamp(20px, 3.4vw, 32px); font-weight: 600;
  letter-spacing: .12em; margin-bottom: 6px;
}
.hero .venue-line { color: var(--gray); font-size: 15px; margin-bottom: 40px; }

.btn {
  display: inline-block; background: var(--red); color: #fff; font-weight: 700;
  padding: 15px 44px; font-size: 15px; letter-spacing: .12em;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--red-deep); color: #fff; transform: translateY(-2px); }
.btn.btn-outline {
  background: transparent; border: 1.5px solid var(--white); clip-path: none;
}
.btn.btn-outline:hover { background: var(--white); color: var(--black); }

/* ---------- 賞金バー ---------- */
.prize-bar {
  background: var(--red); color: #fff; text-align: center; padding: 18px 24px;
}
.prize-bar .label { font-size: 13px; letter-spacing: .3em; display: block; }
.prize-bar .amount { font-family: "Oswald", sans-serif; font-size: clamp(28px, 4.5vw, 44px); font-weight: 700; letter-spacing: .06em; line-height: 1.3; }
.prize-bar .amount small { font-size: .5em; }

/* ---------- セクション ---------- */
section { padding: 88px 0; }
section.alt { background: var(--dark); }

.section-title { text-align: center; margin-bottom: 52px; }
.section-title .en { display: block; color: var(--red); font-size: 13px; margin-bottom: 10px; }
.section-title h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 900; letter-spacing: .08em; }
.section-title h2::after {
  content: ""; display: block; width: 56px; height: 3px; background: var(--red);
  margin: 18px auto 0;
}
.lead { text-align: center; max-width: 760px; margin: -26px auto 48px; color: var(--gray); }

/* ---------- 開催概要表 ---------- */
.overview-table { max-width: 720px; margin: 0 auto; border-top: 1px solid var(--line); }
.overview-table .row {
  display: grid; grid-template-columns: 160px 1fr; gap: 20px;
  padding: 20px 8px; border-bottom: 1px solid var(--line); align-items: baseline;
}
.overview-table dt { color: var(--red); font-weight: 700; font-size: 14px; letter-spacing: .15em; }
.overview-table dd { font-size: 16.5px; }

/* ---------- スケジュール ---------- */
.timeline { list-style: none; max-width: 680px; margin: 0 auto; position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--line);
}
.timeline li { position: relative; padding: 0 0 34px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -31px; top: 8px;
  width: 14px; height: 14px; border-radius: 50%; background: var(--black);
  border: 3px solid var(--red);
}
.timeline li.big::before { background: var(--red); }
.timeline .t-date { font-family: "Oswald", sans-serif; color: var(--red); font-size: 17px; letter-spacing: .1em; font-weight: 600; }
.timeline .t-label { font-size: 16px; font-weight: 700; }
.timeline li.big .t-label { font-size: 19px; }

/* ---------- 参加カード ---------- */
.join-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.join-card {
  background: var(--card); border: 1px solid var(--line); padding: 34px 26px;
  position: relative; transition: transform .25s, border-color .25s;
}
.join-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
a.join-card:hover { transform: translateY(-5px); border-color: var(--red); color: var(--white); }
a.join-card:hover::before { transform: scaleX(1); }
.join-card .j-icon { font-size: 30px; margin-bottom: 12px; }
.join-card h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: .08em; }
.join-card p { font-size: 13.5px; color: var(--gray); }
.join-card .j-more { display: block; color: var(--red); font-size: 13px; font-weight: 700; margin-top: 16px; letter-spacing: .1em; }

/* ---------- 過去大会 ---------- */
.event-block {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red);
  padding: 34px; margin-bottom: 24px;
}
.event-block h3 {
  font-size: 20px; margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line); letter-spacing: .06em;
}
.event-block .badge {
  display: inline-block; background: var(--red); color: #fff; font-size: 11.5px;
  padding: 3px 14px; margin-left: 12px; vertical-align: middle; letter-spacing: .1em; font-weight: 700;
}
.event-block dl { display: grid; grid-template-columns: 110px 1fr; gap: 10px 18px; font-size: 15px; }
.event-block dt { color: var(--red); font-weight: 700; }
.event-block dd { color: var(--white); }

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(ellipse 60% 80% at 50% 120%, rgba(216,17,46,.4), transparent 70%),
    var(--dark);
  text-align: center; border-top: 1px solid var(--line);
}
.cta h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 14px; letter-spacing: .06em; }
.cta p { color: var(--gray); margin-bottom: 34px; }

/* ---------- フッター ---------- */
.site-footer { background: #08090b; padding: 56px 0 28px; border-top: 1px solid var(--line); }
.footer-inner { max-width: 1040px; margin: 0 auto; padding: 0 24px; text-align: center; }
.footer-brand { font-weight: 700; font-size: 17px; letter-spacing: .15em; margin-bottom: 22px; }
.footer-nav { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; margin-bottom: 26px; }
.footer-nav a { color: var(--gray); font-size: 13px; letter-spacing: .06em; }
.footer-nav a:hover { color: var(--red); }
.sns { display: flex; justify-content: center; gap: 16px; margin-bottom: 26px; }
.sns a {
  width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center; transition: background .25s;
}
.sns a:hover { background: var(--red); }
.sns svg { width: 18px; height: 18px; fill: #fff; }
.host-note { font-size: 13px; color: var(--gray); margin-bottom: 22px; }
.host-note a { color: var(--white); text-decoration: underline; }
.host-note a:hover { color: var(--red); }
.copyright { font-size: 12px; color: #565d68; border-top: 1px solid var(--line); padding-top: 22px; letter-spacing: .08em; }

/* ---------- スマホ対応 ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .global-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--black); border-bottom: 1px solid var(--line);
  }
  .global-nav.open { display: block; }
  .global-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 0; }
  .global-nav a { padding: 13px 26px; font-size: 15px; }
  .nav-cta a { margin: 10px 22px; text-align: center; }
  .hero { padding: 80px 20px 64px; }
  .overview-table .row { grid-template-columns: 1fr; gap: 2px; }
  .event-block dl { grid-template-columns: 96px 1fr; }
  section { padding: 60px 0; }
}

@media (max-width: 560px) {
  .event-block { padding: 26px 20px; }
  .event-block dl { grid-template-columns: 1fr; gap: 2px 0; }
  .event-block dd { margin-bottom: 12px; }
  .overview-table dd { font-size: 15.5px; }
}
