:root {
  --brand: #e60012;
  --brand-dark: #98000c;
  --brand-soft: #fff1f2;
  --accent: #f4c542;
  --ink: #151922;
  --muted: #687382;
  --line: #dde2e8;
  --surface: #ffffff;
  --soft: #f5f7fa;
  --dark: #101720;
  --dark-2: #202a35;
  --shadow-sm: 0 6px 18px rgba(16, 23, 32, 0.08);
  --shadow-md: 0 16px 38px rgba(16, 23, 32, 0.14);
  --radius: 8px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
  background:
    linear-gradient(180deg, #ffffff 0%, #f5f7fa 48%, #ffffff 100%);
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "palt";
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(152, 0, 12, 0.98), rgba(16, 23, 32, 0.96) 48%, rgba(230, 0, 18, 0.95));
  border-bottom: 2px solid rgba(230, 0, 18, 0.8);
  box-shadow: 0 10px 28px rgba(16, 23, 32, 0.18);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: clamp(1.05rem, 2vw, 1.42rem);
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
}

.brand::before {
  display: block;
  width: 6px;
  height: 30px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(230, 0, 18, 0.18);
  content: "";
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
}

.site-nav a {
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

.site-nav a[aria-current="page"] {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(90deg, var(--brand), #b90016);
}

.sns-links {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.sns-links a,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.sns-links a {
  font-size: 0.8rem;
  font-weight: 900;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sns-links a:hover {
  background: var(--brand);
  transform: translateY(-1px);
}

.sns-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.nav-toggle {
  display: none;
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.nav-toggle__bar {
  position: relative;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  position: absolute;
  left: 0;
}

.nav-toggle__bar::before {
  top: -7px;
}

.nav-toggle__bar::after {
  top: 7px;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(460px, 72vh, 760px);
  color: #fff;
  background: var(--dark);
  isolation: isolate;
  overflow: hidden;
}

.hero--compact {
  min-height: clamp(320px, 42vh, 440px);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(16, 23, 32, 0.16), rgba(16, 23, 32, 0.72)),
    linear-gradient(90deg, rgba(16, 23, 32, 0.72), rgba(16, 23, 32, 0.24) 62%, rgba(16, 23, 32, 0.12));
  content: "";
}

.hero__media,
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media {
  animation: heroImageIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero__media img,
.hero-slider__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.03) brightness(0.9);
}

.hero-slider__image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease, transform 6s ease;
}

.hero-slider__image.is-active {
  opacity: 1;
  transform: scale(1.01);
}

.hero__body {
  position: relative;
  z-index: 2;
  padding: clamp(82px, 12vh, 140px) 0 clamp(54px, 9vh, 92px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  display: inline-flex;
  width: fit-content;
  color: #fff;
  font-size: 0.94rem;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.34);
}

.hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
  text-shadow: 0 7px 24px rgba(0, 0, 0, 0.42);
  animation: heroTextIn 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) 0.18s both;
}

.hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 700;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.28);
  animation: heroTextIn 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) 0.34s both;
}

.hero-slider__dots {
  position: absolute;
  right: max(16px, calc((100vw - 1120px) / 2));
  bottom: 22px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-slider__dots button {
  width: 28px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-slider__dots button.is-active {
  background: var(--accent);
}

body[data-page="home"] .hero--slider {
  height: calc(100vh - var(--header-height) - 36px);
  height: calc(100svh - var(--header-height) - 36px);
  min-height: 0;
  aspect-ratio: auto;
}

body[data-page="home"] .hero--slider::after {
  background:
    linear-gradient(180deg, rgba(16, 23, 32, 0.26), rgba(16, 23, 32, 0.58)),
    linear-gradient(90deg, rgba(16, 23, 32, 0.56), rgba(16, 23, 32, 0.18) 72%);
}

body[data-page="home"] .hero--slider .hero__media img {
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.06) contrast(1.03) brightness(0.96);
}

@keyframes heroImageIn {
  from {
    opacity: 0;
    transform: translateX(34px) scale(1.03);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media,
  .hero h1,
  .hero p:not(.eyebrow) {
    animation: none;
  }
}

.section {
  position: relative;
  padding: clamp(50px, 7vw, 92px) 0;
}

.section--soft {
  background:
    linear-gradient(135deg, rgba(230, 0, 18, 0.1), rgba(244, 197, 66, 0.07)),
    var(--soft);
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.section__head h2,
.page-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
}

.section__head h2::after,
.page-title::after {
  display: block;
  width: 58px;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  content: "";
}

.section__lead {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(21, 25, 34, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card::before {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  content: "";
}

.card:hover {
  border-color: rgba(230, 0, 18, 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card__image {
  aspect-ratio: 16 / 9;
  background: var(--dark);
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
  transition: transform 0.35s ease;
}

.card:hover .card__image img {
  transform: scale(1.04);
}

.card__body {
  padding: 20px;
}

.card h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.35;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.news-list,
.link-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-item,
.link-item {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.news-item time {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #ffe8a3;
  font-size: 0.84rem;
  font-weight: 900;
}

.text-link {
  color: var(--brand);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.topic-date,
.staff-role {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.3;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.tabs a,
.tabs span {
  padding: 9px 14px;
  border: 1px solid rgba(21, 25, 34, 0.12);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 2px 12px rgba(16, 23, 32, 0.05);
  font-weight: 900;
}

.tabs a:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.tabs span {
  color: #fff;
  border-color: var(--dark);
  background: var(--dark);
}

.record-note {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 800;
  text-align: right;
}

.record-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.record-panel h2 {
  margin: 0 0 12px;
  color: var(--dark);
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-style: italic;
  font-weight: 900;
  text-align: center;
}

.record-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(21, 25, 34, 0.1);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.record-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  text-align: center;
}

.record-table th,
.record-table td {
  padding: 10px 8px;
  border: 1px solid var(--line);
  font-size: 0.95rem;
  vertical-align: middle;
}

.record-table th {
  color: #fff;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
}

.record-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.record-table tr.is-active-record td {
  background: #fff1a8;
  font-weight: 800;
}

.record-relay {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-season-card:hover {
  transform: translateY(-3px);
}

.result-list {
  display: grid;
  gap: 14px;
}

.result-event {
  overflow: hidden;
  border: 1px solid rgba(21, 25, 34, 0.1);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.result-event__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 72px;
  padding: 18px 20px;
  border: 0;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.result-event__summary:hover {
  background: var(--soft);
}

.result-event__summary strong {
  display: block;
  margin-bottom: 2px;
  color: var(--brand);
  font-size: 0.92rem;
}

.result-event__icon {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.result-event__summary[aria-expanded="true"] {
  color: #fff;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
}

.result-event__summary[aria-expanded="true"] strong {
  color: var(--accent);
}

.result-event__summary[aria-expanded="true"] .result-event__icon {
  border-color: var(--accent);
  transform: rotate(-135deg);
}

.result-event__body {
  display: none;
  padding: 4px 20px 22px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(245, 247, 250, 0.9), #fff);
}

.result-event__body.is-open {
  display: grid;
  gap: 18px;
}

.result-section {
  padding: 14px 0 0;
  border-bottom: 1px solid rgba(21, 25, 34, 0.08);
}

.result-section:last-child {
  border-bottom: 0;
}

.result-section h3 {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 3px 8px;
  border-left: 4px solid var(--brand);
  color: var(--dark);
  background: rgba(230, 0, 18, 0.1);
  font-size: 1.02rem;
  font-weight: 900;
}

.result-section ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  line-height: 1.65;
}

.result-line--heading {
  color: var(--dark);
  font-weight: 800;
}

.result-line--detail {
  padding-left: 1.25rem;
}

.result-line__text {
  white-space: pre-wrap;
}

.result-flag {
  color: var(--brand);
  font-weight: 900;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.member-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(280px, 1fr) auto;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  padding: 0;
  box-shadow: 0 14px 34px rgba(16, 23, 32, 0.1);
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.member-card:hover {
  border-color: rgba(230, 0, 18, 0.36);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.member-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.05) contrast(1.02);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.member-card:hover img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.03) brightness(1.03);
}

.member-card__label {
  position: relative;
  z-index: 1;
  padding: 14px 16px 15px;
  border-top: 4px solid var(--brand);
  background: #fff;
  color: var(--dark);
  font-weight: 900;
}

.member-card__label span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: italic;
}

.member-card__label small {
  display: inline-flex;
  max-width: 100%;
  margin-top: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(230, 0, 18, 0.09);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.35;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.66);
}

.modal.is-open {
  display: flex;
}

.modal__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(260px, 1.1fr);
  width: min(850px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.modal__image {
  min-height: 360px;
  background: #fff;
}

.modal__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.modal__body {
  padding: 34px;
}

.modal__body h2 {
  margin: 0;
  color: var(--dark);
}

.modal__body h3 {
  margin: 2px 0 18px;
  color: var(--muted);
  font-style: italic;
  font-weight: 700;
}

.profile-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-list li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid rgba(21, 25, 34, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
}

.profile-list strong {
  color: var(--brand-dark);
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
  cursor: pointer;
}

.simple-content {
  display: grid;
  gap: 22px;
}

.simple-content h3 {
  margin: 0 0 4px;
  color: var(--brand);
}

.team-overview,
.team-panel {
  display: grid;
}

.team-overview {
  gap: 34px;
}

.team-panel {
  gap: 18px;
}

.team-staff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.team-staff-card,
.competition-link,
.competition-meeting {
  border: 1px solid rgba(21, 25, 34, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.team-staff-card {
  padding: 18px;
  border-left: 5px solid var(--brand);
}

.team-staff-card h3 {
  margin: 4px 0 8px;
  color: var(--dark);
  font-size: 1.18rem;
}

.team-staff-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.team-info-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-info-list li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(21, 25, 34, 0.1);
  border-radius: var(--radius);
  background: #fff;
}

.team-info-list strong {
  color: var(--brand-dark);
}

.team-schedule-table td:first-child,
.team-schedule-table td:nth-child(2) {
  font-weight: 800;
  white-space: nowrap;
}

.competition-notice {
  margin-bottom: 32px;
}

.competition-notice .section__head {
  margin-bottom: 14px;
}

.competition-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.competition-link {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-color: rgba(230, 0, 18, 0.22);
}

.competition-link strong {
  color: var(--brand);
}

.competition-link span {
  color: var(--muted);
  font-size: 0.92rem;
}

.competition-list {
  gap: 16px;
}

.competition-meetings {
  display: grid;
  gap: 14px;
}

.competition-meeting {
  display: grid;
  grid-template-columns: minmax(190px, 0.9fr) minmax(260px, 1.1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
}

.competition-meeting h3 {
  margin: 4px 0 0;
  color: var(--dark);
  font-size: 1rem;
  line-height: 1.7;
}

.competition-docs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.competition-docs a,
.competition-docs span {
  display: grid;
  align-items: center;
  justify-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 76px;
  padding: 10px;
  border: 1px solid rgba(21, 25, 34, 0.12);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

.competition-docs a {
  color: var(--dark);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.competition-docs a:hover {
  border-color: rgba(230, 0, 18, 0.42);
  box-shadow: 0 10px 24px rgba(16, 23, 32, 0.1);
  transform: translateY(-2px);
}

.competition-docs img {
  width: 30px;
  height: auto;
}

.competition-docs span {
  color: #8a8f98;
  background: #f2f3f5;
}

.competition-docs a span {
  min-height: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
}

.site-footer {
  padding: 36px 0;
  color: #fff;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand), var(--dark-2));
  border-top: 5px solid var(--accent);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  margin: 0;
}

.site-footer img {
  width: 110px;
  border-radius: var(--radius);
  background: #fff;
}

@media (max-width: 980px) {
  .site-header.is-open {
    position: fixed;
    inset: 0;
    overflow-y: auto;
    color: #fff;
    background:
      linear-gradient(90deg, var(--brand-dark), var(--brand), var(--dark-2));
    border-bottom: 0;
  }

  .site-header__inner {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .site-header.is-open .site-header__inner {
    align-content: start;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 14px;
    padding-bottom: 28px;
  }

  .brand {
    order: 1;
    flex: 1 1 auto;
  }

  .site-header.is-open .brand {
    color: #fff;
  }

  .site-header.is-open .brand::before {
    background: var(--brand);
  }

  .sns-links {
    order: 2;
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .site-header.is-open .nav-toggle,
  .site-header.is-open .sns-links a {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
  }

  .site-header.is-open .nav-toggle__bar {
    background: transparent;
  }

  .site-header.is-open .nav-toggle__bar::before {
    top: 0;
    transform: rotate(45deg);
  }

  .site-header.is-open .nav-toggle__bar::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .site-nav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 2px 0 14px;
    padding: 14px;
    border: 1px solid rgba(21, 25, 34, 0.1);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 34px rgba(16, 23, 32, 0.14);
  }

  .site-header.is-open .site-nav {
    display: flex;
    justify-content: flex-start;
    min-height: 0;
    margin: 34px 0 0;
    padding: 12px 0 32px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-nav a {
    padding: 12px 14px;
    color: var(--ink);
    border-color: rgba(21, 25, 34, 0.08);
    background: #fff;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    color: #fff;
    border-color: var(--brand);
    background: linear-gradient(90deg, var(--brand-dark), var(--brand));
  }

  .site-header.is-open .site-nav a {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 15px 4px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0;
    color: #fff;
    background: transparent;
    box-shadow: none;
    font-size: 1.08rem;
  }

  .site-header.is-open .site-nav a::before {
    display: block;
    width: 7px;
    height: 7px;
    margin-right: 12px;
    border-radius: 50%;
    background: var(--accent);
    content: "";
  }

  .site-header.is-open .site-nav a:hover,
  .site-header.is-open .site-nav a[aria-current="page"] {
    color: #fff;
    border-bottom-color: rgba(244, 197, 66, 0.62);
    background: transparent;
  }

  .grid,
  .grid--two,
  .member-grid,
  .record-layout,
  .team-staff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .competition-links,
  .competition-meeting {
    grid-template-columns: 1fr;
  }

  .competition-docs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 68px;
  }

  .container {
    width: min(100% - 24px, 1120px);
  }

  .brand {
    white-space: normal;
  }

  .sns-links {
    gap: 6px;
  }

  .sns-links a,
  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .hero {
    width: 100%;
    min-height: 430px;
  }

  body[data-page="home"] .hero--slider {
    height: 80vh;
    height: 80svh;
    min-height: 0;
    aspect-ratio: auto;
  }

  .hero--compact {
    min-height: 300px;
  }

  .hero::after,
  body[data-page="home"] .hero--slider::after {
    background:
      linear-gradient(180deg, rgba(230, 0, 18, 0.22), rgba(16, 23, 32, 0.84)),
      linear-gradient(90deg, rgba(92, 0, 10, 0.7), rgba(16, 23, 32, 0.2));
  }

  body[data-page="home"] .hero--slider::after {
    display: block;
    background:
      linear-gradient(180deg, rgba(16, 23, 32, 0.28), rgba(16, 23, 32, 0.68)),
      linear-gradient(90deg, rgba(16, 23, 32, 0.52), rgba(16, 23, 32, 0.18) 72%);
  }

  .hero__body {
    width: 100%;
    padding: 52px 0 38px 10px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.75rem, 9vw, 2.45rem);
    overflow-wrap: anywhere;
  }

  .hero p:not(.eyebrow) {
    max-width: 100%;
  }

  .hero-slider__dots {
    right: 12px;
    bottom: 14px;
  }

  .hero-slider__dots button {
    width: 20px;
  }

  .section__head {
    display: block;
  }

  .grid,
  .grid--two,
  .member-grid,
  .record-layout,
  .team-staff-grid {
    grid-template-columns: 1fr;
  }

  .home-contents__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .home-contents__card .card__image {
    aspect-ratio: 16 / 7.5;
  }

  .home-contents__card .card__body {
    padding: 12px;
  }

  .home-contents__card h3 {
    margin-bottom: 2px;
    font-size: 0.98rem;
    line-height: 1.25;
  }

  .home-contents__card p {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .record-note {
    text-align: left;
  }

  body[data-page="record"] .record-table {
    min-width: 0;
    table-layout: fixed;
  }

  body[data-page="record"] .record-table th,
  body[data-page="record"] .record-table td {
    padding: 8px 5px;
    font-size: 0.82rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .news-item,
  .link-item,
  .profile-list li,
  .team-info-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .result-event__summary {
    padding: 16px;
  }

  .result-event__body {
    padding: 2px 16px 18px;
  }

  .member-card {
    min-height: 0;
  }

  .member-card img {
    min-height: 330px;
  }

  .modal {
    padding: 12px;
  }

  .modal__panel {
    grid-template-columns: 1fr;
  }

  .modal__image {
    min-height: 260px;
  }

  .modal__body {
    padding: 22px;
  }

  .competition-docs {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    display: grid;
  }
}
