:root {
  --navy: #071b38;
  --navy-2: #0b2d5c;
  --blue: #006fca;
  --sky: #eaf6ff;
  --green: #0c8b68;
  --yellow: #ffd54a;
  --red: #d84b4b;
  --orange: #e88a1a;
  --white: #ffffff;
  --text: #162033;
  --muted: #66758a;
  --line: rgba(8, 43, 80, 0.12);
  --radius: 8px;
  --shadow: 0 22px 48px rgba(7, 27, 56, 0.14);
  --font-main: "BIZ UDPGothic", "Meiryo", "Yu Gothic", "YuGothic", sans-serif;
  --font-heading: "Noto Sans JP", "BIZ UDPGothic", "Meiryo", "Yu Gothic", "YuGothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.75;
  background: #f0f2f5;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 86px;
  padding: 0 14px 0 18px;
  color: var(--white);
  background: rgba(4, 19, 38, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(4, 19, 38, 0.22);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 13px;
  min-width: 0;
  text-decoration: none;
}

.brand > span:last-child {
  min-width: 0;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  overflow: hidden;
  color: transparent;
  font-size: 0;
  background: url("images/emblem.png") center / contain no-repeat;
  border-radius: 4px;
}

.brand-name,
.brand-sub {
  display: block;
  font-family: var(--font-heading);
  line-height: 1.2;
}

.brand-name {
  font-weight: 700;
  font-size: 1.66rem;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.brand-sub {
  color: var(--yellow);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.menu-button {
  display: inline-grid;
  gap: 5px;
  width: 46px;
  height: 46px;
  place-content: center;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
}

.global-nav {
  position: absolute;
  top: 86px;
  right: 14px;
  left: 14px;
  display: none;
  padding: 10px;
  color: var(--white);
  background: rgba(4, 19, 38, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.global-nav.is-open {
  display: grid;
}

.global-nav a {
  min-height: 48px;
  display: grid;
  align-content: center;
  padding: 10px 12px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
}

.global-nav a span {
  color: var(--yellow);
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.global-nav a:hover,
.global-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.global-nav .nav-cta {
  color: var(--navy);
  background: var(--yellow);
}

.global-nav .nav-cta span {
  color: rgba(7, 27, 56, 0.7);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 128px 18px 80px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 27, 56, 0.94), rgba(11, 45, 92, 0.68), rgba(0, 111, 202, 0.28)),
    url("images/hero-soccer-field.png") center / cover no-repeat;
}

.page-main {
  padding-top: 86px;
}

.page-hero {
  padding: 96px max(18px, calc((100% - 1080px) / 2)) 56px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 27, 56, 0.96), rgba(11, 45, 92, 0.78)),
    url("images/hero-soccer-field.png") center / cover no-repeat;
}

.page-hero.subpage {
  background:
    linear-gradient(90deg, rgba(7, 27, 56, 0.96), rgba(11, 45, 92, 0.78)),
    url("images/hero-soccer-field.png") center / cover no-repeat;
}

.page-hero h1 {
  max-width: 900px;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 72px;
  background: linear-gradient(180deg, rgba(242, 249, 255, 0), #f2f9ff);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  margin: 0 auto;
  transform: translateY(42px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.join-band .eyebrow,
.contact-section .eyebrow {
  color: var(--yellow);
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: 2.65rem;
  font-weight: 700;
  line-height: 1.14;
}

h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
}

h1 {
  font-family: var(--font-heading);
}

.hero-copy p:not(.eyebrow) {
  max-width: 690px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.06rem;
}

.hero-actions,
.join-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.section-actions-inline {
  align-self: end;
  margin-top: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px;
  font-family: var(--font-heading);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 10px;
}

.button-primary {
  color: var(--navy);
  background: var(--yellow);
}

.button-light {
  color: var(--navy);
  background: var(--white);
}

.button-outline-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.72);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(7, 27, 56, 0.22);
  outline: none;
}

.section {
  width: min(100% - 36px, 1080px);
  margin: 0 auto;
  padding: 68px 0;
  scroll-margin-top: 96px;
}

.gallery-section,
.contact-section {
  scroll-margin-top: 96px;
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading h2,
.join-band h2,
.contact-section h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.82rem;
  line-height: 1.28;
}

.section-lead {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.section-heading-row {
  display: grid;
  gap: 12px;
}

.schedule-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.content-grid {
  display: grid;
  gap: 18px;
}

.content-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(7, 27, 56, 0.09);
}

.content-card h2,
.content-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
}

.content-card p,
.content-card li {
  color: var(--muted);
}

.content-card p {
  margin: 0 0 12px;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.content-card ul {
  margin: 0;
  padding-left: 1.2em;
}

.contact-card {
  display: grid;
  align-content: start;
}

.contact-card .button {
  align-self: end;
  margin-top: 8px;
}

.contact-summary-card {
  display: grid;
  gap: 14px;
}

.contact-summary-card .button,
.contact-form-card .button {
  justify-self: start;
  margin-top: 4px;
}

.contact-form-grid {
  display: grid;
  gap: 16px;
}

.contact-form-grid label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
}

.contact-form-grid input,
.contact-form-grid select,
.contact-form-grid textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  background: #f7fbff;
  border: 1px solid rgba(0, 111, 202, 0.18);
  border-radius: 10px;
}

.contact-form-grid textarea {
  resize: vertical;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form-grid input:focus,
.contact-form-grid select:focus,
.contact-form-grid textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 111, 202, 0.12);
  outline: none;
}

.contact-form-status {
  margin: 2px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.55;
}

.contact-form-status.is-success {
  color: #0c5f49;
  background: rgba(12, 139, 104, 0.12);
  border: 1px solid rgba(12, 139, 104, 0.24);
}

.contact-form-status.is-error {
  color: #9f2f2f;
  background: rgba(216, 75, 75, 0.12);
  border: 1px solid rgba(216, 75, 75, 0.24);
}

.contact-form-card .button:disabled {
  opacity: 0.68;
  cursor: wait;
  transform: none;
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-row {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: var(--white);
  border-left: 5px solid var(--blue);
  border-radius: var(--radius);
}

.info-row strong {
  color: var(--navy);
}

.about-layout {
  display: block;
}

.about-image {
  min-height: 220px;
  margin: 0 0 20px;
  background:
    linear-gradient(135deg, rgba(7, 27, 56, 0.08), rgba(0, 111, 202, 0.14)),
    url("images/gallery-team.png") center / cover no-repeat;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-text {
  padding: 2px 0;
}

.about-text p {
  margin: 0 0 14px;
}

.about-facts {
  clear: both;
  margin-top: 22px;
  padding: 18px;
  background: #eef6fc;
  border: 1px solid rgba(0, 111, 202, 0.16);
  border-radius: var(--radius);
}

.about-facts dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.about-facts div {
  display: grid;
  gap: 4px;
}

.about-facts dt {
  color: var(--blue);
  font-size: 0.82rem;
  font-family: var(--font-heading);
  font-weight: 900;
}

.about-facts dd {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
}

.about-philosophy-link {
  margin-top: 16px;
  color: var(--muted);
}

.activity-section {
  width: 100%;
  max-width: none;
  padding-right: max(18px, calc((100% - 1080px) / 2));
  padding-left: max(18px, calc((100% - 1080px) / 2));
  background: #e9edf2;
}

.activity-grid,
.result-grid {
  display: grid;
  gap: 16px;
}

.activity-grid article,
.result-grid article {
  padding: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(7, 27, 56, 0.09);
}

.card-number,
.result-grid article p {
  margin: 0;
  color: var(--blue);
  font-size: 0.88rem;
  font-family: var(--font-heading);
  font-weight: 800;
}

.activity-grid h3,
.result-grid h3,
.news-list h3,
.schedule-list h3 {
  margin: 8px 0;
  color: var(--navy);
  font-size: 1.12rem;
  line-height: 1.45;
}

.activity-grid p:last-child,
.news-list p,
.schedule-list p {
  margin: 0;
  color: var(--muted);
}

.news-list {
  display: grid;
  border-top: 2px solid var(--navy);
}

.news-list article {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.news-list time,
.schedule-list time {
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 800;
}

.text-link {
  align-self: end;
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.join-band {
  display: grid;
  gap: 24px;
  scroll-margin-top: 96px;
  padding: 58px max(18px, calc((100% - 1080px) / 2));
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(7, 27, 56, 0.98), rgba(11, 45, 92, 0.96)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 24px);
}

.join-band h2,
.contact-section h2 {
  color: var(--white);
}

.join-band p:not(.eyebrow),
.contact-section p {
  max-width: 740px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.join-band .join-note {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.9);
}

.schedule-months {
  display: grid;
  grid-template-columns: minmax(62px, auto) 1fr minmax(62px, auto);
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(8, 43, 80, 0.1);
  border-radius: 999px;
}

.schedule-months button {
  min-height: 38px;
  padding: 7px 14px;
  color: var(--navy);
  font: inherit;
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 800;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.schedule-months button:hover,
.schedule-months button:focus-visible {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
  outline: none;
}

.schedule-months button:disabled {
  color: rgba(7, 27, 56, 0.34);
  background: #eef2f6;
  border-color: transparent;
  cursor: default;
}

.schedule-months button:disabled:hover {
  color: rgba(7, 27, 56, 0.34);
  background: #eef2f6;
}

.schedule-months p {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.24rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.schedule-panel {
  display: grid;
  grid-template-areas:
    "list"
    "calendar";
  gap: 18px;
}

.schedule-list {
  grid-area: list;
  display: grid;
  gap: 0;
  max-height: 430px;
  overflow-y: auto;
  padding: 16px 18px;
  background: linear-gradient(180deg, #f6faff 0%, #edf4fb 100%);
  border: 1px solid rgba(0, 111, 202, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(7, 27, 56, 0.08);
  scrollbar-color: rgba(0, 111, 202, 0.42) transparent;
}

.schedule-list article {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(8, 43, 80, 0.1);
}

.schedule-list article:first-child {
  padding-top: 0;
}

.schedule-list article:last-child {
  border-bottom: 0;
}

.schedule-day-block {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 64px;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius);
}

.schedule-day-block.blue {
  background: var(--blue);
}

.schedule-day-block.yellow {
  color: var(--navy);
  background: var(--yellow);
}

.schedule-day-block.green {
  color: var(--white);
  background: var(--green);
}

.schedule-day-block.red {
  color: var(--white);
  background: var(--red);
}

.schedule-day-block.orange {
  color: var(--navy);
  background: var(--orange);
}

.schedule-day-block strong {
  font-family: var(--font-heading);
  font-size: 1.04rem;
  line-height: 1.1;
}

.schedule-day-block span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
}

.schedule-day-block.yellow span {
  color: rgba(7, 27, 56, 0.62);
}

.schedule-day-block.orange span {
  color: rgba(7, 27, 56, 0.62);
}

.schedule-status {
  margin: 0;
  padding: 18px 0;
  color: var(--muted);
  font-weight: 700;
}

.schedule-event-main {
  min-width: 0;
}

.schedule-body h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.04rem;
  line-height: 1.35;
}

.schedule-body p {
  margin-top: 3px;
  font-size: 0.92rem;
  line-height: 1.4;
}

.schedule-body p + p {
  margin-top: 1px;
}

.schedule-calendar {
  grid-area: calendar;
  padding: 18px;
  background: linear-gradient(180deg, #f3f9ff 0%, #eaf3fb 100%);
  border: 1px solid rgba(0, 111, 202, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(7, 27, 56, 0.1);
}

.calendar-head {
  display: block;
  margin-bottom: 18px;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-weekdays {
  margin-bottom: 6px;
}

.calendar-weekdays span {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
  text-align: center;
}

.calendar-day {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 5px 2px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 111, 202, 0.12);
  border-radius: 7px;
}

.calendar-day.muted {
  background: transparent;
  border-color: transparent;
}

.calendar-day.has-event {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 10px 18px rgba(7, 27, 56, 0.18);
}

.calendar-day.has-event.blue {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 10px 18px rgba(0, 111, 202, 0.2);
}

.calendar-day.has-event.yellow {
  color: var(--navy);
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 0 10px 18px rgba(255, 213, 74, 0.24);
}

.calendar-day.has-event.green {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 10px 18px rgba(12, 139, 104, 0.2);
}

.calendar-day.has-event.red {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 10px 18px rgba(216, 75, 75, 0.2);
}

.calendar-day.has-event.orange {
  color: var(--navy);
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 10px 18px rgba(232, 138, 26, 0.22);
}

.calendar-day strong,
.calendar-day small {
  line-height: 1.1;
}

.calendar-day small {
  font-size: 0.78rem;
  font-weight: 800;
}

.results-section {
  width: 100%;
  max-width: none;
  padding-right: max(18px, calc((100% - 1080px) / 2));
  padding-left: max(18px, calc((100% - 1080px) / 2));
  background: #e9edf2;
}

.result-grid span {
  color: var(--muted);
}

.gallery-section {
  padding: 68px max(18px, calc((100% - 1080px) / 2));
  background: #f0f2f5;
}

.gallery-grid {
  display: grid;
  gap: 14px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  display: grid;
  place-items: end start;
  padding: 20px;
  color: var(--white);
  font-weight: 800;
  background-position: center;
  background-size: cover;
  border-radius: 0;
}

.gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 27, 56, 0.02), rgba(7, 27, 56, 0.56)),
    linear-gradient(90deg, rgba(7, 27, 56, 0.22), rgba(7, 27, 56, 0));
}

.gallery-card span {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  text-shadow: 0 2px 10px rgba(7, 27, 56, 0.38);
}

.gallery-team {
  background-image: url("images/gallery-team.png");
}

.gallery-match {
  background-image: url("images/gallery-match.png");
}

.gallery-practice {
  background-image: url("images/gallery-practice.png");
}

.link-grid {
  display: grid;
  gap: 16px;
}

.link-grid a {
  position: relative;
  overflow: hidden;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(135deg, #ffffff 0%, #eef7ff 100%);
  border: 1px solid rgba(0, 111, 202, 0.12);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(7, 27, 56, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.link-grid a span {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
  line-height: 1.25;
}

.link-grid a small {
  color: rgba(7, 27, 56, 0.56);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
}

.link-grid a:hover,
.link-grid a:focus-visible {
  border-color: rgba(0, 111, 202, 0.28);
  box-shadow: 0 18px 38px rgba(7, 27, 56, 0.13);
  transform: translateY(-2px);
  outline: none;
}

.link-grid a::after {
  content: "↗";
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: rgba(7, 27, 56, 0.82);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  background: rgba(255, 255, 255, 0.52);
  border: 2px solid currentColor;
  border-radius: 10px;
}

.link-attendance {
  background: linear-gradient(135deg, #e7f6ff 0%, #bfe8ff 100%);
}

.link-league {
  background: linear-gradient(135deg, #eef4ff 0%, #d7e2ff 100%);
}

.link-ground {
  background: linear-gradient(135deg, #eaf8ef 0%, #c9efd8 100%);
}

.link-sns {
  background: linear-gradient(135deg, #fff6d9 0%, #ffe59a 100%);
}

.link-archive {
  background: linear-gradient(135deg, #f5f7fa 0%, #e1e7ef 100%);
}

.link-gallery {
  background: linear-gradient(135deg, #e9f5ff 0%, #cfe8ff 100%);
}

.link-results {
  background: linear-gradient(135deg, #fff0df 0%, #ffd8a8 100%);
}

.page-link-section {
  padding-top: 20px;
}

.page-link-grid {
  display: grid;
  gap: 16px;
}

.page-link-grid a {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(135deg, #ffffff 0%, #eaf6ff 100%);
  border: 1px solid rgba(0, 111, 202, 0.14);
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(7, 27, 56, 0.09);
}

.page-link-grid a::after {
  content: "→";
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--blue);
  border-radius: 999px;
}

.page-link-grid a:hover,
.page-link-grid a:focus-visible {
  border-color: rgba(0, 111, 202, 0.28);
  box-shadow: 0 20px 42px rgba(7, 27, 56, 0.14);
  transform: translateY(-2px);
  outline: none;
}

.page-link-grid span {
  display: grid;
  gap: 4px;
  line-height: 1.25;
}

.page-link-grid small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.gallery-page-grid {
  display: grid;
  gap: 18px;
}

.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -6px 0 18px;
}

.gallery-filter {
  min-height: 40px;
  padding: 8px 14px;
  color: var(--navy);
  font: inherit;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  background: var(--white);
  border: 1px solid rgba(0, 111, 202, 0.18);
  border-radius: 999px;
  cursor: pointer;
}

.gallery-filter:hover,
.gallery-filter:focus-visible,
.gallery-filter.is-active {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
  outline: none;
}

.gallery-count {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.gallery-page-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(0, 111, 202, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 18px 38px rgba(7, 27, 56, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gallery-page-card:hover {
  box-shadow: 0 22px 44px rgba(7, 27, 56, 0.15);
  transform: translateY(-2px);
}

.gallery-event-card {
  display: grid;
  grid-template-columns: 1fr;
}

.gallery-event-card .gallery-page-body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 18px 18px 12px;
}

.gallery-event-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  padding: 0 18px 18px;
  background: var(--white);
}

.gallery-event-photo {
  aspect-ratio: 4 / 3;
  min-height: 150px;
  margin: 0;
  overflow: hidden;
  background: #dbe7f2;
  border-radius: 0;
}

.gallery-photo-button {
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.gallery-photo-button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: -3px;
}

.gallery-event-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.gallery-event-photo:hover img,
.gallery-photo-button:focus-visible img {
  transform: scale(1.035);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 19, 38, 0.88);
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox-panel {
  position: relative;
  width: min(100%, 1180px);
  display: grid;
  gap: 12px;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  max-height: calc(100svh - 40px);
}

.gallery-lightbox-image {
  display: block;
  width: 100%;
  height: min(68svh, 760px);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.gallery-lightbox-close {
  justify-self: end;
  min-height: 42px;
  padding: 8px 14px;
  color: var(--navy);
  font: inherit;
  font-family: var(--font-heading);
  font-weight: 800;
  background: var(--yellow);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus-visible {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  outline: none;
}

.gallery-lightbox-controls {
  display: grid;
  grid-template-columns: minmax(72px, auto) 1fr minmax(72px, auto);
  align-items: center;
  gap: 12px;
}

.gallery-lightbox-nav {
  min-height: 42px;
  padding: 8px 14px;
  color: var(--white);
  font: inherit;
  font-family: var(--font-heading);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-lightbox-nav:hover,
.gallery-lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.26);
  outline: none;
}

.gallery-lightbox-nav:disabled {
  opacity: 0.42;
  cursor: default;
}

.gallery-lightbox-counter {
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-heading);
  font-weight: 800;
  text-align: center;
}

.gallery-lightbox-caption {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  text-align: center;
}

body.has-gallery-lightbox {
  overflow: hidden;
}

.gallery-page-image {
  aspect-ratio: 4 / 3;
  background: #dbe7f2;
}

.gallery-page-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-page-body {
  padding: 18px;
}

.gallery-page-meta,
.result-meta {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 800;
}

.gallery-page-body h3,
.result-page-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.18rem;
  line-height: 1.35;
}

.gallery-event-card .gallery-page-meta {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0;
  padding: 4px 10px;
  color: var(--blue);
  background: rgba(0, 111, 202, 0.1);
  border: 1px solid rgba(0, 111, 202, 0.16);
  border-radius: 999px;
  font-size: 0.82rem;
  line-height: 1.2;
  white-space: nowrap;
}

.gallery-event-card .gallery-page-body h3 {
  margin: 0;
}

.gallery-page-body p:last-child,
.result-page-card p:last-child {
  margin-bottom: 0;
}

.gallery-page-body p:not(.gallery-page-meta),
.result-page-card p:not(.result-meta):not(.result-score) {
  color: var(--muted);
}

.philosophy-section {
  max-width: 980px;
}

.philosophy-layout {
  display: grid;
  gap: 18px;
}

.philosophy-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 111, 202, 0.13);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(7, 27, 56, 0.08);
}

.philosophy-card h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 1.22rem;
  line-height: 1.45;
}

.philosophy-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.9;
}

.philosophy-card p:last-child {
  margin-bottom: 0;
}

.philosophy-card ul,
.philosophy-rules {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 1.25em;
  color: var(--muted);
  line-height: 1.85;
}

.philosophy-rules {
  padding-left: 1.6em;
}

.philosophy-intro {
  border-left: 5px solid var(--blue);
}

.philosophy-highlight {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), #123766);
  border-color: rgba(255, 255, 255, 0.15);
}

.philosophy-highlight h3,
.philosophy-highlight p,
.philosophy-highlight ul {
  color: var(--white);
}

.philosophy-catch {
  color: var(--yellow) !important;
  font-size: 1.22rem;
  font-family: var(--font-heading);
  font-weight: 900;
}

.philosophy-note {
  padding: 14px 16px;
  background: #eef6fc;
  border-radius: var(--radius);
}

.philosophy-calendar {
  display: grid;
  gap: 8px;
}

.philosophy-calendar p {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.philosophy-calendar p:last-child {
  border-bottom: 0;
}

.philosophy-calendar span {
  color: var(--blue);
  font-weight: 900;
}

.results-page-list {
  display: grid;
  gap: 16px;
}

.results-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin: 0 0 18px;
}

.results-filter-field {
  display: grid;
  min-width: 180px;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 800;
}

.results-filter-field select {
  min-height: 42px;
  padding: 0 36px 0 12px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(0, 111, 202, 0.22);
  border-radius: 6px;
  font: inherit;
}

.results-filter-reset {
  min-height: 42px;
  padding: 0 16px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(0, 111, 202, 0.22);
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.result-page-card {
  display: grid;
  gap: 0;
  padding: 0;
  background: var(--white);
  border: 1px solid rgba(0, 111, 202, 0.12);
  border-radius: 6px;
  box-shadow: 0 16px 34px rgba(7, 27, 56, 0.09);
  overflow: hidden;
}

.result-page-info,
.result-page-memo {
  display: grid;
  align-content: start;
}

.result-page-memo {
  min-height: 0;
  padding: 12px 14px;
  color: var(--muted);
  background: var(--white);
  line-height: 1.55;
}

.result-page-visual {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  background: var(--navy);
}

.no-result-image .result-page-visual::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  background: url("images/favicon.ico") center / contain no-repeat;
  content: "";
  opacity: 0.55;
  transform: translate(-50%, -50%);
}

.result-page-info {
  position: absolute;
  left: 14px;
  right: 14px;
  min-height: 0;
  color: var(--white);
  background: transparent;
  text-shadow: 0 1px 4px rgba(7, 27, 56, 0.62);
  z-index: 1;
}

.result-page-info::before {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.result-page-info-top {
  top: 12px;
  gap: 0;
}

.result-page-info-top .result-meta,
.result-page-info-top .result-type,
.result-page-info-top .result-venue {
  line-height: 1.02;
}

.result-page-info-top .result-type,
.result-page-info-top .result-venue {
  color: var(--white);
}

.result-page-card .result-page-info-top p.result-type,
.result-page-card .result-page-info-top p.result-venue {
  color: var(--white);
}

.result-page-info-top .result-meta {
  margin: 0;
}

.result-page-info-top::before {
  top: -12px;
  left: -14px;
  width: min(250px, calc(100% + 14px));
  height: calc(100% + 34px);
  background: radial-gradient(ellipse at top left, rgba(7, 27, 56, 0.28), rgba(7, 27, 56, 0.12) 48%, rgba(7, 27, 56, 0) 72%);
}

.result-page-info-bottom {
  bottom: 12px;
  gap: 3px;
}

.result-page-info-bottom::before {
  bottom: -12px;
  left: -14px;
  width: min(230px, calc(100% + 14px));
  height: calc(100% + 34px);
  background: radial-gradient(ellipse at bottom left, rgba(7, 27, 56, 0.3), rgba(7, 27, 56, 0.13) 48%, rgba(7, 27, 56, 0) 72%);
}

.result-page-info .result-meta {
  color: var(--yellow);
  line-height: 1.15;
}

.result-page-info h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.08rem;
  line-height: 1.25;
}

.result-page-memo.is-empty {
  display: none;
}

.result-type,
.result-venue {
  margin: 0;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.15;
}

.result-page-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--navy);
  border-radius: 0;
}

.result-page-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-score {
  margin: 0;
  color: var(--yellow);
  font-family: var(--font-heading);
  font-size: 1.56rem;
  font-weight: 800;
  line-height: 1.15;
}

.result-page-memo p {
  margin: 0;
}

.contact-section {
  padding: 64px max(18px, calc((100% - 1080px) / 2));
  color: var(--white);
  background: var(--navy);
}

.site-footer {
  flex-shrink: 0;
  padding: 24px 18px;
  color: var(--white);
  text-align: center;
  background: #041326;
}

.site-footer small {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 420px) {
  .site-header {
    min-height: 78px;
    padding-right: 10px;
    padding-left: 12px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand-name {
    font-size: 1.22rem;
  }

  .brand-sub {
    font-size: 0.72rem;
  }

  .menu-button {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 340px) {
  .site-header {
    padding-right: 8px;
    padding-left: 8px;
  }

  .brand {
    gap: 7px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 1.08rem;
  }

  .brand-sub {
    font-size: 0.66rem;
  }
}

@media (min-width: 760px) {
  body {
    font-size: 17px;
  }

  .site-header {
    padding-right: 28px;
    padding-left: 28px;
  }

  .hero {
    min-height: 100svh;
    padding-right: 28px;
    padding-left: 28px;
  }

  h1 {
    font-size: 4.2rem;
  }

  .activity-grid,
  .result-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .contact-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .contact-form-wide {
    grid-column: 1 / -1;
  }

  .about-layout {
    display: flow-root;
  }

  .about-image {
    float: right;
    width: min(46%, 430px);
    min-height: 285px;
    margin: 2px 0 22px 30px;
  }

  .about-facts dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-heading-row,
  .join-band {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .schedule-panel {
    grid-template-areas: "calendar list";
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: start;
    gap: 30px;
  }

  .schedule-list article {
    min-height: 0;
  }

  .schedule-list {
    max-height: 520px;
    padding: 18px 20px;
  }

  .calendar-day {
    min-height: 84px;
  }

  .news-list article {
    grid-template-columns: 140px 1fr;
    align-items: start;
  }

  .news-list article p {
    grid-column: 2;
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    grid-template-rows: repeat(2, minmax(185px, 1fr));
  }

  .gallery-card.large {
    min-height: 430px;
    grid-row: span 2;
  }

  .gallery-match,
  .gallery-practice {
    min-height: 0;
  }

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

  .page-link-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-page-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .gallery-event-card {
    grid-template-columns: 1fr;
  }

  .gallery-event-card .gallery-page-body {
    border: 0;
  }

  .results-page-list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 320px));
    align-items: start;
  }

  .result-page-card {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 0;
    height: auto;
  }

  .result-page-card.has-result-image {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .result-page-image img {
    width: 100%;
    max-width: none;
  }

  .result-page-memo {
    min-height: 0;
    overflow: visible;
  }
}

@media (min-width: 980px) {
  .menu-button {
    display: none;
  }

  .global-nav {
    position: static;
    display: flex;
    align-items: center;
    align-self: stretch;
    gap: 0;
    padding: 0;
    color: var(--white);
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .global-nav a {
    min-height: 86px;
    min-width: 104px;
    align-content: center;
    padding: 10px 12px;
    color: var(--white);
    font-size: 0.96rem;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
  }

  .global-nav a span {
    color: var(--yellow);
    margin-bottom: 2px;
    font-size: 0.72rem;
    font-weight: 800;
  }

  .global-nav a:hover,
  .global-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.1);
  }

  .global-nav .nav-cta {
    min-height: 86px;
    min-width: 136px;
    color: var(--navy);
    background: var(--yellow);
    border-left: 0;
  }

  .global-nav .nav-cta:hover,
  .global-nav .nav-cta:focus-visible {
    color: var(--navy);
    background: #ffe27a;
  }

  .global-nav .nav-cta:hover span,
  .global-nav .nav-cta:focus-visible span {
    color: rgba(7, 27, 56, 0.7);
  }
}
