/* =========================================================
   Asia Universal Running Fes 2026 — LP
   トンマナ: title.png に合わせた 赤 × 黒 × 白 / 斜めのスピード感
   ========================================================= */

:root {
  --red: #e60012;
  --red-dark: #b8000e;
  --black: #111;
  --ink: #222;
  --gray: #f3f3f3;
  --line: #ddd;
  --white: #fff;
  --skew: -12deg;
  --font-ja: "M PLUS 1p", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-en: "Chakra Petch", "M PLUS 1p", sans-serif;
  --container: 1080px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: var(--font-ja);
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* 未確定の値（xx / ◯）を目立たせる */
.tbd {
  background: #fff3a8;
  color: var(--black);
  padding: 0 .2em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  position: relative;
  padding: .9em 2.4em;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  background: var(--red);
  transform: skewX(var(--skew));
  box-shadow: 5px 5px 0 var(--black);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { background: var(--red-dark); transform: skewX(var(--skew)) translate(2px, 2px); box-shadow: 3px 3px 0 var(--black); }
.btn--sm { padding: .45em 1.4em; font-size: .9rem; box-shadow: 3px 3px 0 var(--black); }
.btn--lg { font-size: 1.15rem; padding: 1em 3em; }
.btn--white { background: var(--white); color: var(--black); box-shadow: 5px 5px 0 var(--red); }
.btn--white:hover { background: var(--white); box-shadow: 3px 3px 0 var(--red); }
.btn.is-disabled { pointer-events: none; opacity: .75; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
  padding: 0 24px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(6px);
  border-bottom: 4px solid var(--red);
}
.site-header__logo {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--black);
}
.site-header__logo span { color: var(--red); margin-left: .2em; }
.site-header__nav { display: flex; gap: 24px; margin-left: auto; font-weight: 700; font-size: .95rem; }
.site-header__nav a { text-decoration: none; position: relative; }
.site-header__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
  background: var(--red); transform: scaleX(0) skewX(var(--skew)); transition: transform .2s;
}
.site-header__nav a:hover::after { transform: scaleX(1) skewX(var(--skew)); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(calc(100svh - 64px), 860px);
  display: grid;
  place-items: center;
  padding: 64px 24px 96px;
  text-align: center;
  background: var(--white);
}
.hero__photo {
  position: absolute;
  inset: 0;
  background: url("img/hero.jpg") center 30% / cover no-repeat;
  filter: grayscale(1) contrast(1.1);
  opacity: .22;
}
.hero__stripes span {
  position: absolute;
  display: block;
  height: 26px;
  background: var(--red);
  transform: skewY(-8deg);
  left: -10%;
  right: -10%;
}
.hero__stripes span:nth-child(1) { bottom: 40px; }
.hero__stripes span:nth-child(2) { bottom: 80px; height: 10px; background: var(--black); }
.hero__inner { position: relative; z-index: 1; max-width: 1000px; width: 100%; }

.hero__catch {
  display: inline-block;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  font-weight: 900;
  color: var(--black);
  margin-bottom: 20px;
  font-style: italic;
}
.hero__catch em { font-style: italic; color: var(--red); }
.hero__title { margin: 0 auto 32px; }
.hero__title img { width: 100%; }

.hero__pre {
  display: flex;
  width: fit-content;
  margin-inline: auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 12px;
  margin-bottom: 4px;
  color: var(--black);
  text-decoration: none;
  line-height: 1.2;
}
.hero__pre-label {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 700;
  font-size: .9rem;
  color: var(--white);
  background: var(--black);
  padding: .15em .7em;
  transform: skewX(var(--skew));
}
.hero__pre-date {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  color: var(--red);
}
.hero__pre-date small { font-size: .5em; margin-left: .3em; }
.hero__pre-name { font-weight: 800; font-size: .95rem; }
.hero__pre:hover .hero__pre-name { text-decoration: underline; }

.hero__date {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 14px;
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
  margin-bottom: 20px;
}
.hero__year { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.hero__day { font-size: clamp(3.6rem, 11vw, 6.5rem); color: var(--red); letter-spacing: -.02em; }
.hero__dow {
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  background: var(--black);
  color: var(--white);
  padding: .25em .6em;
  transform: skewX(var(--skew));
}
.hero__time { font-size: clamp(1.4rem, 3.6vw, 2.2rem); flex-basis: 100%; margin-top: 8px; }

.hero__tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.hero__tags li {
  font-weight: 800;
  border: 3px solid var(--black);
  background: var(--white);
  padding: .3em 1.1em;
  transform: skewX(var(--skew));
}

/* ---------- Schedule (2 events) ---------- */
.schedule { background: var(--white); padding: 48px 0 56px; }
.schedule__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  position: relative;
}
/* 2つのイベントをつなぐ矢印 */
.schedule__list::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 28px; height: 36px;
  background: var(--red);
  transform: translate(-50%, -50%);
  clip-path: polygon(0 0, 45% 0, 100% 50%, 45% 100%, 0 100%, 55% 50%);
}
.schedule-card {
  display: grid;
  gap: 4px;
  height: 100%;
  padding: 24px 28px;
  text-decoration: none;
  color: var(--black);
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: 6px 6px 0 var(--black);
  transition: transform .15s, box-shadow .15s;
}
.schedule-card:hover { transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--black); }
.schedule-card--main { background: var(--red); color: var(--white); }
.schedule-card__label {
  justify-self: start;
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 700;
  font-size: .9rem;
  color: var(--white);
  background: var(--black);
  padding: .1em .8em;
  transform: skewX(var(--skew));
}
.schedule-card__date {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  line-height: 1.1;
  color: var(--red);
}
.schedule-card--main .schedule-card__date { color: var(--white); }
.schedule-card__date small { font-size: .4em; margin-left: .4em; }
.schedule-card__title { font-size: 1.2rem; font-weight: 900; }
.schedule-card__meta { font-size: .88rem; font-weight: 700; opacity: .85; }
.schedule-card__more { justify-self: end; margin-top: 6px; font-size: .88rem; font-weight: 900; }
.schedule-card__more::after { content: " →"; }

.hero__tags .hero__tag-pre { background: var(--black); color: var(--white); border-color: var(--black); }
.hero__tag-pre a { text-decoration: none; }
.hero__tag-pre a::after { content: " →"; color: var(--red); }

/* ---------- Concept ---------- */
.concept {
  background: var(--black);
  color: var(--white);
  padding: 72px 0;
  text-align: center;
  position: relative;
}
.concept::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 38%; height: 8px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.concept__lead { font-size: clamp(1.3rem, 3.2vw, 2rem); font-weight: 900; line-height: 1.6; margin-bottom: 20px; }
.concept__text { font-size: clamp(.95rem, 1.8vw, 1.1rem); opacity: .9; }

/* ---------- Section common ---------- */
.section { padding: 96px 0; }
.section--gray { background: var(--gray); }
.section--dark {
  background: var(--black) linear-gradient(115deg, transparent 70%, rgba(230, 0, 18, .9) 70%, rgba(230, 0, 18, .9) 72%, transparent 72%);
  color: var(--white);
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 900;
  margin-bottom: 48px;
  line-height: 1.3;
  color: var(--black);
}
.section-title__en {
  display: block;
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.8rem, 8vw, 4.8rem);
  line-height: 1;
  color: var(--red);
  letter-spacing: .01em;
}
.section-title--light { color: var(--white); }

.sub-title {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--white);
  background: var(--black);
  padding: .3em 1.4em;
  margin: 0 0 28px;
  transform: skewX(var(--skew));
}
.sub-title:not(:first-of-type) { margin-top: 64px; }

/* ---------- Program ---------- */
.programs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.program { border: 3px solid var(--black); background: var(--white); display: flex; flex-direction: column; }
.program__head {
  background: var(--red);
  color: var(--white);
  padding: 24px 28px 28px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 0 100%);
}
.program__time { font-family: var(--font-en); font-weight: 700; font-style: italic; font-size: 1.3rem; }
.program__time span {
  font-family: var(--font-ja);
  font-style: normal;
  font-size: .85rem;
  background: var(--black);
  padding: .15em .7em;
  margin-right: .7em;
  vertical-align: middle;
}
.program__title { font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 900; line-height: 1.5; margin-top: 10px; }
.program__body { padding: 16px 28px 32px; display: grid; gap: 20px; }

.program__target { display: flex; gap: 14px; align-items: flex-start; }
.program__target dt {
  flex-shrink: 0;
  font-weight: 900;
  background: var(--black);
  color: var(--white);
  padding: .1em .9em;
  transform: skewX(var(--skew));
}
.program__target dd { font-weight: 700; line-height: 1.6; }
.program__target small { display: block; font-weight: 500; color: #555; }

.checklist { display: grid; gap: 10px; }
.checklist li {
  position: relative;
  padding-left: 34px;
  font-weight: 800;
  color: var(--black);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .35em;
  width: 22px; height: 22px;
  background: var(--red);
  clip-path: polygon(14% 44%, 0 58%, 40% 100%, 100% 20%, 86% 6%, 40% 70%);
}

/* ---------- Athletes ---------- */
.coaches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.coach { background: var(--white); padding: 28px 24px; border-top: 6px solid var(--red); }
.coach img {
  width: 140px; height: 140px;
  object-fit: cover;
  margin: 0 auto 16px;
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
}
.coach__name { text-align: center; font-size: 1.3rem; font-weight: 900; color: var(--black); }
.coach__org {
  text-align: center;
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--red);
  margin-bottom: 12px;
}
.coach__career { font-size: .88rem; line-height: 1.6; display: grid; gap: 6px; }
.coach__career li { padding-left: 1em; text-indent: -1em; }
.coach__career li::before { content: "■"; color: var(--red); font-size: .7em; margin-right: .5em; vertical-align: .15em; }

.countries { display: grid; grid-template-columns: 2fr 3fr; gap: 32px; }
.country { background: var(--white); padding: 24px; }
.country__name {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--black);
  border-left: 6px solid var(--red);
  padding-left: 12px;
  margin-bottom: 20px;
}
.players { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-around; }
.players li {
  width: 150px;
  text-align: center;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: .9rem;
  line-height: 1.3;
}
.players li > span { display: block; }
.player__class {
  width: fit-content;
  margin: 6px auto 2px;
  padding: 0 .6em;
  font-size: .8rem;
  font-style: italic;
  color: var(--white);
  background: var(--red);
  transform: skewX(var(--skew));
}
.player__events { font-family: var(--font-ja); font-size: .78rem; font-weight: 700; color: #444; }
.players img {
  width: 110px; height: 110px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--red);
  margin: 0 auto 10px;
}

/* ---------- Online pre-event ---------- */
.online__lead { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 900; line-height: 1.6; margin-bottom: 16px; }
.online__text { max-width: 760px; opacity: .9; margin-bottom: 48px; }
.online__grid { display: grid; grid-template-columns: 3fr 2fr; gap: 40px; margin-bottom: 48px; }

.timeline { border: 2px solid rgba(255, 255, 255, .35); padding: 24px 28px; }
.timeline__title { font-weight: 900; color: var(--red); margin-bottom: 16px; font-size: 1.1rem; }
.timeline ol { position: relative; display: grid; gap: 22px; }
.timeline ol::before {
  content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px;
  border-left: 2px dashed rgba(255, 255, 255, .5);
}
.timeline li { position: relative; padding-left: 28px; font-weight: 700; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 12px; height: 12px; background: var(--red);
  transform: skewX(var(--skew));
}
.timeline time { font-family: var(--font-en); font-weight: 700; font-size: 1.1rem; margin-right: 1em; }

/* ---------- Info table ---------- */
.info-table { border-top: 3px solid var(--black); }
.info-table > div { display: grid; grid-template-columns: 140px 1fr; border-bottom: 1px solid var(--line); }
.info-table dt, .info-table dd { padding: 18px 12px; }
.info-table dt { font-weight: 900; color: var(--red); }
.info-table dd { font-weight: 700; font-size: 1.05rem; }
.info-table small { display: block; font-weight: 500; font-size: .88rem; color: #555; }

.info-table--dark { border-top-color: var(--red); }
.info-table--dark > div { border-bottom-color: rgba(255, 255, 255, .2); }
.info-table--dark small { color: rgba(255, 255, 255, .7); }

.map { margin-top: 40px; aspect-ratio: 16 / 7; border: 3px solid var(--black); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Entry ---------- */
.entry {
  padding: 96px 0 104px;
  color: var(--white);
  background:
    repeating-linear-gradient(115deg, transparent 0 60px, rgba(0, 0, 0, .08) 60px 120px),
    var(--red);
  text-align: center;
}
.entry .section-title__en { color: var(--black); }
.entry__deadline { font-size: clamp(1.1rem, 2.6vw, 1.5rem); font-weight: 900; margin-bottom: 16px; }
.entry__notes { font-size: .92rem; margin-bottom: 48px; display: grid; gap: 4px; }
.entry__notes .tbd { color: var(--black); }

.entry__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 32px; justify-content: center; }
.entry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 24px;
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  box-shadow: 8px 8px 0 var(--black);
  transition: transform .15s, box-shadow .15s;
}
.entry-card:hover { transform: translate(3px, 3px); box-shadow: 5px 5px 0 var(--black); }
.entry-card__label {
  font-weight: 900;
  color: var(--white);
  background: var(--red);
  padding: .1em 1em;
  transform: skewX(var(--skew));
}
.entry-card__title { font-weight: 900; font-size: 1.05rem; line-height: 1.5; }
.entry-card img { width: 140px; height: 140px; image-rendering: pixelated; }
.entry-card__btn {
  margin-top: 6px;
  font-weight: 900;
  color: var(--white);
  background: var(--black);
  padding: .6em 2.6em;
  transform: skewX(var(--skew));
}

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 32px; background: var(--white); border-top: 8px solid var(--black); }
.site-footer__logo { max-width: 460px; margin: 0 auto 40px; }
.site-footer__org { display: grid; gap: 12px; font-size: .9rem; max-width: 860px; margin: 0 auto 40px; }
.site-footer__org > div { display: grid; grid-template-columns: 56px 1fr; gap: 12px; }
.site-footer__org dt { font-weight: 900; color: var(--red); }
.site-footer__copy { text-align: center; font-family: var(--font-en); font-size: .8rem; color: #777; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-header__nav { display: none; }
  .site-header .btn { margin-left: auto; }
  .programs, .countries, .online__grid, .schedule__list { grid-template-columns: 1fr; }
  .schedule__list::after { transform: translate(-50%, -50%) rotate(90deg); }
  .coaches { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .site-header { padding: 0 16px; }
  .hero { padding: 48px 16px 120px; min-height: auto; }
  .section, .entry { padding: 72px 0; }
  .program__head, .program__body { padding-left: 20px; padding-right: 20px; }
  .info-table > div { grid-template-columns: 1fr; }
  .info-table dt { padding-bottom: 0; }
  .info-table dd { padding-top: 4px; }
  .map { aspect-ratio: 4 / 3; }
  .entry__cards { grid-template-columns: 1fr; }
  .site-footer__org > div { grid-template-columns: 1fr; gap: 0; }
  .btn--lg { padding: 1em 2em; }
}

/* ---------- Asian Para Games schedule ---------- */
.apg__lead { font-weight: 700; margin-bottom: 20px; }
.apg { display: grid; gap: 12px; }
.apg__day {
  display: grid;
  grid-template-columns: 170px 1fr;
  background: var(--white);
}
.apg__date {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: baseline;
  gap: 2px 8px;
  padding: 16px 20px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 700;
  line-height: 1.1;
}
.apg__md { font-size: 2rem; color: var(--red); }
.apg__dow { font-size: .9rem; }
.apg__time { flex-basis: 100%; font-size: .95rem; opacity: .85; }
.apg__events { padding: 8px 20px; }
.apg__events li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  padding: 10px 0;
  color: #777;
  font-weight: 700;
}
.apg__events li + li { border-top: 1px solid var(--line); }
.apg__events li.is-entry { color: var(--black); }
.apg__round {
  margin-left: .6em;
  font-size: .78rem;
  padding: .05em .6em;
  border: 1.5px solid currentColor;
}
.apg__events li.is-entry .apg__round { color: var(--red); }
.apg__players {
  font-family: var(--font-en);
  font-size: .9rem;
  color: var(--white);
  background: var(--red);
  padding: .15em .8em;
  transform: skewX(var(--skew));
}
.apg__more { margin-top: 20px; text-align: right; }
.apg__more a { font-weight: 800; color: var(--red); text-underline-offset: 3px; }
.apg__more a::after { content: " →"; }
.apg__note { margin-top: 16px; font-size: .82rem; color: var(--muted, #555); }
@media (max-width: 600px) {
  .apg__day { grid-template-columns: 1fr; }
  .apg__date { padding: 10px 16px; }
  .apg__time { flex-basis: auto; margin-left: auto; }
  .apg__events { padding: 4px 16px; }
}

/* ---------- Scroll fade-in (CSS only) ----------
   スクロール連動アニメーション（animation-timeline: view()）で、
   要素が画面に入るときにフェードイン。
   非対応ブラウザ・「視差効果を減らす」設定では何もせず、通常表示のまま。 */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .concept p,
    .section-title,
    .sub-title,
    .schedule-card,
    .program,
    .coach,
    .country,
    .apg__day,
    .online__lead,
    .online__text,
    .info-table,
    .timeline,
    .map,
    .entry__deadline,
    .entry-card,
    .site-footer__logo {
      animation: fade-in-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}

@keyframes fade-in-up {
  from { opacity: 0; translate: 0 40px; }
  to   { opacity: 1; translate: 0 0; }
}
