@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Noto+Sans+JP:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --primary: #e50070;
  --primary-dark: #b90059;
  --pink-light: #fff0f6;
  --purple: #873bb2;
  --purple-light: #f5ebfb;
  --blue: #0869bd;
  --blue-light: #eaf5ff;
  --green: #087a61;
  --green-light: #e8f8f2;
  --ink: #202124;
  --muted: #60646c;
  --line: #e8e8ed;
  --surface: #f7f7f9;
  --paper: #fff;
  --shadow: 0 8px 24px rgb(46 30 49 / 8%);
  --radius: 16px;
  --nav-height: 72px;
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}

* { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 8% 8%, rgb(255 225 239 / 55%), transparent 28rem),
    repeating-linear-gradient(135deg, rgb(32 33 36 / 1.5%) 0 1px, transparent 1px 18px),
    #fff;
  font-size: 16px;
  line-height: 1.65;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid #0877d8;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-160%);
  color: #fff;
  background: #202124;
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  border-bottom: 1px solid rgb(32 33 36 / 7%);
  background: rgb(255 255 255 / 93%);
  backdrop-filter: blur(14px);
}
.header-inner {
  display: flex;
  width: min(100% - 32px, 1080px);
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; }
.brand-mark {
  display: grid;
  width: 34px;
  aspect-ratio: 1;
  place-items: center;
  color: white;
  background: var(--primary);
  border-radius: 11px 11px 11px 4px;
  font-family: Manrope, sans-serif;
  font-size: 14px;
}
.brand-copy { display: grid; line-height: 1.25; }
.brand-copy strong { font-size: 14px; }
.brand-copy span { color: var(--muted); font-size: 11px; font-weight: 500; }
.header-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--primary-dark); font-size: 14px; font-weight: 700; }

.page-shell {
  width: min(100% - 28px, 880px);
  min-height: calc(100dvh - var(--nav-height) - 58px);
  margin: 0 auto;
  padding: 18px 0 calc(var(--nav-height) + 32px + env(safe-area-inset-bottom));
}
.page-heading { margin: 8px 0 22px; }
.eyebrow {
  margin: 0 0 4px;
  color: var(--primary-dark);
  font-family: Manrope, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.page-heading h1 { margin: 0; font-size: clamp(27px, 7vw, 34px); line-height: 1.25; }
.page-heading p { margin: 8px 0 0; color: var(--muted); }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 476px;
  padding: 25px 22px 22px;
  color: #fff;
  background:
    radial-gradient(ellipse at 84% 38%, rgb(255 255 255 / 35%), transparent 16rem),
    linear-gradient(145deg, #f33d96 0%, #e50070 43%, #902ab4 100%);
  border-radius: 22px;
  box-shadow: 0 15px 36px rgb(180 0 86 / 22%);
  isolation: isolate;
}
.hero::before, .hero::after { position: absolute; z-index: -1; content: ""; pointer-events: none; }
.hero::before {
  top: -95px;
  right: -80px;
  width: 280px;
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: 50%;
  box-shadow: 0 0 0 25px rgb(255 255 255 / 7%), 0 0 0 55px rgb(255 255 255 / 6%);
}
.hero::after {
  right: -12%;
  bottom: 99px;
  width: 75%;
  height: 3px;
  transform: rotate(-25deg);
  background: rgb(255 255 255 / 40%);
  box-shadow: 0 15px 0 rgb(255 255 255 / 17%), 0 30px 0 rgb(255 255 255 / 13%);
}
.hero-kicker { margin: 0; color: rgb(255 255 255 / 92%); font-size: 14px; font-weight: 700; }
.hero-title {
  margin: 2px 0 0;
  font-family: Manrope, "Noto Sans JP", sans-serif;
  font-size: clamp(48px, 14vw, 72px);
  font-weight: 800;
  line-height: 1.05;
}
.hero-title span { display: block; font-size: .74em; }
.hero-tagline { margin: 9px 0 0; font-size: 15px; font-weight: 600; }
.hero-visual {
  position: absolute;
  top: 35%;
  right: 8%;
  display: grid;
  width: 142px;
  aspect-ratio: 1;
  place-items: center;
  transform: rotate(8deg);
  border: 1px solid rgb(255 255 255 / 52%);
  border-radius: 50%;
  background: linear-gradient(145deg, rgb(255 255 255 / 27%), rgb(255 255 255 / 5%));
  box-shadow: 0 0 0 13px rgb(255 255 255 / 9%);
  text-align: center;
}
.hero-visual strong { font-family: Manrope, sans-serif; font-size: 24px; line-height: 1.1; }
.hero-visual span { display: block; margin-top: 5px; font-size: 11px; }
.hero-details { position: relative; margin-top: 112px; }
.hero-date { margin: 0 0 5px; font-family: Manrope, sans-serif; font-size: 21px; font-weight: 800; }
.hero-venue { margin: 0; font-size: 15px; font-weight: 700; }
.hero-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; }
.hero-meta-item { padding: 10px 12px; color: var(--ink); background: #fff; border-radius: 12px; text-align: center; }
.hero-meta-item span { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.hero-meta-item strong { display: block; color: var(--primary-dark); font-family: Manrope, sans-serif; font-size: 22px; line-height: 1.4; }
.hero-fineprint { margin: 11px 0 0; font-size: 12px; }

.section { margin-top: 28px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-heading h2 { margin: 0; font-size: 21px; line-height: 1.35; }
.section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--primary-dark); font-size: 14px; font-weight: 700; white-space: nowrap; }
.card, .program-card, .schedule-row, .detail-panel, .rule-item, .venue-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 3px 12px rgb(35 35 46 / 4%);
}
.program-grid { display: grid; gap: 10px; }
.program-card { display: grid; grid-template-columns: 58px 1fr; gap: 12px; padding: 14px; }
.program-label { display: grid; min-height: 42px; place-items: center; align-self: start; color: white; background: var(--primary); border-radius: 9px; font-family: Manrope, sans-serif; font-size: 13px; font-weight: 800; }
.program-card.next .program-label { color: var(--ink); background: #eff1f4; }
.program-time { color: var(--muted); font-family: Manrope, sans-serif; font-size: 13px; font-weight: 700; }
.program-card h3 { margin: 2px 0 0; font-size: 16px; line-height: 1.45; }
.schedule-notice { margin: 9px 2px 0; color: var(--muted); font-size: 13px; }

.division-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.division-card {
  position: relative;
  display: flex;
  min-height: 138px;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 15px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.division-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.division-card::after { position: absolute; right: -24px; bottom: -38px; width: 104px; aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; content: ""; opacity: .16; box-shadow: 0 0 0 14px rgb(255 255 255 / 25%); }
.division-card.pink { color: #bd075d; background: var(--pink-light); border-color: #ffd7e8; }
.division-card.purple { color: #71329a; background: var(--purple-light); border-color: #ead8f5; }
.division-card.blue { color: #075b9f; background: var(--blue-light); border-color: #d1eaff; }
.division-card.green { color: #07644f; background: var(--green-light); border-color: #c9eee1; }
.division-symbol { display: grid; width: 34px; aspect-ratio: 1; place-items: center; color: currentColor; border: 1px solid currentColor; border-radius: 50%; font-family: Manrope, sans-serif; font-weight: 800; }
.division-card strong { position: relative; z-index: 1; max-width: 100%; font-size: 15px; line-height: 1.4; }
.division-arrow { position: absolute; right: 14px; bottom: 10px; font-size: 20px; }

.sponsor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.sponsor-tile { display: grid; min-height: 98px; align-content: center; justify-items: center; gap: 8px; padding: 9px 5px; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.sponsor-logo { display: grid; width: 100%; min-height: 42px; place-items: center; color: #4d5158; background: linear-gradient(135deg, #fff, #f6f7f9); border: 1px dashed #b9bdc5; border-radius: 7px; font-family: Manrope, sans-serif; font-size: 12px; font-weight: 800; }
.sponsor-tile strong { font-size: 12px; line-height: 1.35; }
.demo-label { display: inline-flex; width: fit-content; align-items: center; padding: 2px 7px; color: #754b00; background: #fff4ce; border-radius: 99px; font-size: 11px; font-weight: 700; }

.link-list { display: grid; gap: 9px; }
.list-link, .rule-item summary { display: flex; min-height: 64px; align-items: center; gap: 12px; padding: 13px 15px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.list-link:hover, .rule-item summary:hover { border-color: #f2a8ca; }
.list-icon { display: grid; width: 38px; aspect-ratio: 1; flex: 0 0 auto; place-items: center; color: var(--primary-dark); background: var(--pink-light); border-radius: 11px; font-family: Manrope, sans-serif; font-weight: 800; }
.list-link span:nth-child(2) { flex: 1; font-weight: 700; }
.list-arrow { color: var(--primary-dark); font-size: 21px; }

.venue-panel { overflow: hidden; }
.venue-map-art { display: grid; min-height: 180px; place-items: center; color: var(--primary-dark); background: repeating-linear-gradient(32deg, transparent 0 26px, rgb(8 105 189 / 13%) 27px 30px, transparent 31px 63px), repeating-linear-gradient(112deg, #eaf5ff 0 25px, #f6fbff 26px 55px); }
.venue-pin { display: grid; width: 58px; aspect-ratio: 1; place-items: center; color: white; background: var(--primary); border: 7px solid rgb(255 255 255 / 75%); border-radius: 50% 50% 50% 9px; box-shadow: 0 5px 16px rgb(58 32 57 / 20%); font-size: 20px; transform: rotate(-45deg); }
.venue-pin span { transform: rotate(45deg); }
.venue-body { padding: 16px; }
.venue-body h3 { margin: 0; font-size: 18px; }
.venue-body p { margin: 5px 0 12px; color: var(--muted); }
.venue-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.survey-prompt .notice-panel { text-align: left; }
.survey-prompt .button { margin-top: 12px; }
.survey-intro { margin-bottom: 14px; }
.survey-intro p { margin-top: 10px; }
.survey-grid { display: grid; gap: 12px; }
.survey-card { display: grid; align-content: start; gap: 10px; margin: 0; }
.survey-card h2 { margin: 0; font-size: 19px; }
.survey-card p { margin: 0 0 4px; color: var(--muted); }
.survey-card .button { min-height: 52px; margin-top: 4px; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--primary);
  border-radius: 12px;
  color: #fff;
  background: var(--primary);
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.button:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.button.secondary { color: var(--primary-dark); background: #fff; }
.button.secondary:hover { background: var(--pink-light); }
.button.full { width: 100%; }

.filter-bar { display: grid; gap: 10px; margin-bottom: 16px; }
.filter-select, .search-input { width: 100%; min-height: 50px; padding: 11px 14px; background: #fff; border: 1px solid #d7d8de; border-radius: 12px; color: var(--ink); }
.search-input::placeholder { color: #747780; }
.filter-label { display: grid; gap: 5px; color: var(--muted); font-size: 13px; font-weight: 700; }
.filter-pills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 7px; scrollbar-width: thin; }
.filter-pill { display: inline-flex; min-height: 44px; flex: 0 0 auto; align-items: center; padding: 8px 14px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 99px; font-weight: 700; cursor: pointer; }
.filter-pill[aria-pressed="true"] { color: #fff; background: var(--primary); border-color: var(--primary); }
.athlete-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.athlete-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.athlete-card-link { display: block; min-height: 100%; }
.athlete-portrait { display: grid; min-height: 134px; place-items: center; color: #fff; background: linear-gradient(135deg, #e7a7cb, #7866a2); font-family: Manrope, sans-serif; font-size: 42px; font-weight: 800; }
.athlete-card:nth-child(4n + 2) .athlete-portrait { background: linear-gradient(135deg, #98c8e4, #3975a6); }
.athlete-card:nth-child(4n + 3) .athlete-portrait { background: linear-gradient(135deg, #f5be7c, #c75b78); }
.athlete-card:nth-child(4n) .athlete-portrait { background: linear-gradient(135deg, #94c6ac, #417f78); }
.athlete-card-body { padding: 10px; }
.athlete-number { color: var(--muted); font-family: Manrope, sans-serif; font-size: 12px; font-weight: 700; }
.athlete-card h3 { margin: 2px 0 5px; font-size: 16px; line-height: 1.4; }
.athlete-division { color: var(--primary-dark); font-size: 12px; font-weight: 700; }

.schedule-list { display: grid; gap: 8px; }
.schedule-row { display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 10px; padding: 12px; }
.schedule-row time { color: var(--muted); font-family: Manrope, sans-serif; font-size: 12px; font-weight: 800; line-height: 1.4; }
.schedule-row h3 { margin: 0; font-size: 15px; line-height: 1.4; }
.schedule-row p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.schedule-row.highlight { border-color: #f6bad5; background: #fff7fb; }
.agenda-list { margin: 10px 0 0; padding-left: 23px; color: #44464d; }
.agenda-list li { padding: 3px 0; }
.subsection { margin: 24px 0 10px; font-size: 18px; }
.operations-note { padding: 14px; background: #f0f2f5; border-radius: 12px; color: var(--muted); font-size: 14px; }

.detail-visual { display: grid; min-height: 208px; place-items: center; overflow: hidden; color: #fff; background: linear-gradient(135deg, #ff98c5, #e50070 55%, #873bb2); border-radius: 18px; text-align: center; }
.detail-visual.purple { background: linear-gradient(135deg, #c89ae1, #873bb2); }
.detail-visual.blue { background: linear-gradient(135deg, #a5d9ff, #0869bd); }
.detail-visual.green { background: linear-gradient(135deg, #a5e3cc, #087a61); }
.detail-visual strong { font-size: 30px; }
.detail-visual span { display: block; font-size: 13px; }
.detail-panel { margin-top: 12px; padding: 16px; }
.detail-panel h2 { margin: 0 0 8px; font-size: 18px; }
.detail-panel p { margin: 0; color: #45474e; }
.detail-list { display: grid; gap: 12px; margin: 0; }
.detail-list div { display: grid; grid-template-columns: 96px 1fr; gap: 9px; }
.detail-list dt { color: var(--muted); font-weight: 700; }
.detail-list dd { margin: 0; }
.detail-actions { display: grid; gap: 9px; margin-top: 16px; }
.detail-athlete-head { display: flex; align-items: center; gap: 14px; }
.detail-athlete-head .athlete-portrait { width: 88px; min-height: 88px; flex: 0 0 auto; border-radius: 14px; font-size: 31px; }
.detail-athlete-head h1 { margin: 0; font-size: 23px; }
.detail-athlete-head p { margin: 3px 0; color: var(--muted); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.pager .button { padding: 8px; font-size: 14px; }

.rule-item { overflow: hidden; }
.rule-item summary { min-height: 68px; border: 0; border-radius: 0; cursor: pointer; list-style: none; }
.rule-item summary::-webkit-details-marker { display: none; }
.rule-item summary::after { margin-left: auto; color: var(--primary-dark); content: "+"; font-family: Manrope, sans-serif; font-size: 23px; font-weight: 600; }
.rule-item[open] summary::after { content: "−"; }
.rule-item summary strong { flex: 1; font-size: 16px; }
.rule-content { padding: 0 16px 16px; color: #494b52; }
.rule-content p { margin: 0; }
.rule-updated { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }

.empty-state, .notice-panel { padding: 22px 17px; background: #fff; border: 1px solid var(--line); border-radius: 15px; text-align: center; }
.empty-state strong { display: block; font-size: 18px; }
.empty-state p, .notice-panel p { margin: 6px 0 0; color: var(--muted); }
.notice-panel { text-align: left; }
.notice-panel.amber { background: #fff9e9; border-color: #f5e4b3; }
.result-division { margin: 13px 0; padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.result-division h2 { margin: 0; font-size: 18px; }
.result-division p { margin: 4px 0 0; color: var(--muted); }
.result-place { display: grid; grid-template-columns: 42px 1fr auto; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.result-place:first-of-type { margin-top: 9px; }
.result-medal { display: grid; width: 34px; aspect-ratio: 1; place-items: center; background: #f6f6f8; border-radius: 50%; font-family: Manrope, sans-serif; font-weight: 800; }
.result-place strong { font-size: 15px; }

.error-panel { padding: 18px; color: #7c1727; background: #fff0f1; border: 1px solid #f0c8cd; border-radius: 14px; }
.error-panel p { margin: 0 0 10px; }
.loading { min-height: 45vh; display: grid; place-items: center; color: var(--muted); }
.loading-dot { width: 12px; aspect-ratio: 1; margin: 0 auto 8px; background: var(--primary); border-radius: 50%; box-shadow: 20px 0 #f6a8cb, -20px 0 #ecc7dc; animation: loading-pulse .9s ease-in-out infinite alternate; }
@keyframes loading-pulse { to { transform: scale(1.25); opacity: .6; } }

.bottom-nav {
  position: fixed;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 5px 0 calc(5px + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / 96%);
  border-top: 1px solid #e4e4e9;
  box-shadow: 0 -5px 22px rgb(30 25 35 / 7%);
  backdrop-filter: blur(14px);
}
.bottom-nav-inner { display: grid; width: min(100%, 560px); grid-template-columns: repeat(5, 1fr); margin: 0 auto; }
.nav-item { display: grid; min-height: 56px; align-content: center; justify-items: center; gap: 1px; padding: 2px; color: #63666d; font-size: 11px; font-weight: 600; }
.nav-item[aria-current="page"] { color: var(--primary-dark); }
.nav-symbol { display: grid; min-height: 25px; place-items: center; font-family: Manrope, sans-serif; font-size: 20px; font-weight: 800; line-height: 1; }

.external-link { text-decoration: underline; text-underline-offset: 3px; }
.page-enter { animation: page-enter .24s ease-out both; }
@keyframes page-enter { from { opacity: .5; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}