/* ASWORLD トップ。色・書体はライツID 画面（id/id.css）と合わせる */
:root {
  --ink: #0b0b0c; --ink-2: #1e1e21; --paper: #f3efe6; --bg: #fbf9f4; --surface: #fff;
  --red: #e1251b; --red-deep: #b3160e; --mute: #6d6a62; --line: rgba(11, 11, 12, .14);
  --font-sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Anton", Impact, sans-serif;
  --r: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); line-height: 1.75; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 900; line-height: 1.3; letter-spacing: .01em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ヘッダー */
.bar { position: sticky; top: 0; z-index: 30; background: rgba(11, 11, 12, .94); color: #fff; backdrop-filter: blur(8px); }
.bar__in { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.logo { font-family: var(--font-en); font-size: 1.5rem; letter-spacing: .05em; text-decoration: none; color: #fff; line-height: 1; }
.logo span { color: var(--red); }
.nav { display: flex; gap: 22px; margin-left: auto; font-weight: 700; font-size: .92rem; }
.nav a { text-decoration: none; opacity: .82; padding: 6px 0; }
.nav a:hover { opacity: 1; }
.bar__user { display: flex; align-items: center; gap: 10px; font-size: .85rem; min-width: 0; }
.bar__name { max-width: 30vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-underline-offset: 3px; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .55em 1.5em; border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font: 700 1rem/1.3 var(--font-sans); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 36px; padding: .3em 1em; font-size: .85rem; }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn--light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--block { width: 100%; }

.kicker { font-family: var(--font-en); letter-spacing: .14em; font-size: .9rem; color: var(--red); margin-bottom: 10px; }
.kicker--ink { color: var(--red-deep); }

/* ヒーロー */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: "ASWORLD"; position: absolute; left: -2vw; bottom: -6vw; font-family: var(--font-en); font-size: 26vw; line-height: 1; color: rgba(255, 255, 255, .035); pointer-events: none; white-space: nowrap; }
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(48px, 8vw, 96px); }
.hero h1 { font-size: clamp(2rem, 5.6vw, 3.7rem); font-weight: 900; line-height: 1.25; letter-spacing: .01em; }
.hero h1 em { font-style: normal; color: var(--red); }
.lead { margin-top: 20px; max-width: 34em; color: rgba(255, 255, 255, .78); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.feature { position: relative; display: block; text-decoration: none; color: #fff; background: var(--ink-2); border-radius: var(--r); overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); transition: transform .2s, border-color .2s; }
.feature:hover { transform: translateY(-4px); border-color: var(--red); }
.feature__tag { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--red); font-family: var(--font-en); letter-spacing: .12em; font-size: .8rem; padding: 3px 10px; border-radius: 4px; }
.feature__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.feature__body { display: grid; gap: 4px; padding: 16px 18px 18px; }
.feature__sport { font-size: .78rem; font-weight: 700; color: var(--red); letter-spacing: .06em; }
.feature__name { font-size: 1.08rem; font-weight: 900; line-height: 1.45; }
.feature__meta { font-size: .88rem; color: rgba(255, 255, 255, .72); }
.feature__go { margin-top: 6px; font-weight: 700; font-size: .9rem; }

/* セクション */
.sec { padding-block: clamp(52px, 8vw, 92px); }
.sec--paper { background: var(--paper); }
.sec--ink { background: var(--ink); color: #fff; }
.sec__lead { margin-top: 10px; color: var(--mute); max-width: 40em; }

/* 競技タイル */
.sports { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.sport { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 168px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); overflow: hidden; text-align: left; font: inherit; color: inherit; }
.sport__mark { position: absolute; right: -6px; top: -22px; font-size: 7.4rem; font-weight: 900; line-height: 1; color: rgba(11, 11, 12, .06); pointer-events: none; }
.sport__en { font-family: var(--font-en); letter-spacing: .1em; font-size: .78rem; color: var(--mute); }
.sport__name { font-weight: 900; font-size: 1.15rem; line-height: 1.4; }
.sport__state { margin-top: 8px; align-self: flex-start; font-size: .76rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
button.sport { cursor: pointer; background: var(--ink); color: #fff; border-color: var(--ink); transition: transform .2s, background .2s; }
button.sport:hover { transform: translateY(-3px); background: var(--red-deep); }
button.sport .sport__mark { color: rgba(255, 255, 255, .1); }
button.sport .sport__en { color: rgba(255, 255, 255, .6); }
button.sport .sport__state { background: var(--red); color: #fff; }
.sport.is-soon { background: transparent; border-style: dashed; color: var(--mute); }
.sport.is-soon .sport__state { background: rgba(11, 11, 12, .08); color: var(--mute); }

/* 絞り込み */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { min-height: 40px; padding: .3em 1.1em; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 700 .9rem/1.3 var(--font-sans); cursor: pointer; }
.chip[aria-selected="true"] { background: var(--ink); color: #fff; }

/* 大会カード */
.events { display: grid; gap: 14px; margin-top: 22px; }
.ev { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.ev__date { text-align: center; border-right: 1px solid var(--line); padding-right: 20px; }
.ev__y { font-family: var(--font-en); font-size: .85rem; letter-spacing: .1em; color: var(--mute); }
.ev__md { font-family: var(--font-en); font-size: 2.1rem; line-height: 1.1; }
.ev__w { font-size: .82rem; font-weight: 700; color: var(--mute); }
.ev__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.tag { font-size: .75rem; font-weight: 700; padding: 1px 10px; border-radius: 999px; background: var(--ink); color: #fff; }
.tag--open { background: var(--red); }
.tag--closed { background: rgba(11, 11, 12, .1); color: var(--mute); }
.ev__name { font-size: 1.12rem; font-weight: 900; line-height: 1.45; }
.ev__sum { font-size: .9rem; color: var(--mute); margin-top: 2px; }
.ev__meta { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 8px; font-size: .88rem; }
.ev__meta b { font-weight: 700; color: var(--mute); margin-right: 6px; font-size: .8rem; }
.ev__act { display: grid; gap: 8px; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); padding: 32px 20px; text-align: center; color: var(--mute); }
.empty strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }

/* ライツID */
.idsec { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.idsec p { margin-top: 14px; color: rgba(255, 255, 255, .8); }
.ticks { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: rgba(255, 255, 255, .88); font-size: .95rem; }
.ticks li { padding-left: 1.5em; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7em; height: .38em; border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg); }
.idsec__cta { display: grid; gap: 12px; }

.org { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }

/* フッター */
.foot { background: var(--ink); color: rgba(255, 255, 255, .7); border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 36px; font-size: .88rem; }
.foot__in { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-end; }
.logo--foot { display: inline-block; margin-bottom: 8px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot__links a { text-underline-offset: 3px; }

@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; }
  .feature { max-width: 420px; }
  .sports { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .idsec { grid-template-columns: 1fr; }
  .ev { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .ev__date { padding-right: 14px; }
  .ev__md { font-size: 1.6rem; }
  .ev__act { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .nav { display: none; }
  .bar__user { margin-left: auto; }
  .sport { min-height: 140px; }
  .hero__cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
