:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-strong: #eef6ff;
  --text: #172033;
  --muted: #667085;
  --line: #d9e2ec;
  --primary: #15803d;
  --primary-dark: #0f5c33;
  --primary-soft: #e9f8ef;
  --blue: #2563eb;
  --blue-soft: #eaf1ff;
  --blue-dark: #1d4ed8;
  --orange: #e46a21;
  --orange-soft: #fff0e7;
  --purple: #7c3aed;
  --purple-soft: #f2edff;
  --cyan: #0087a8;
  --cyan-soft: #e5f8fc;
  --pink: #c026d3;
  --pink-soft: #fbe9ff;
  --slate: #475467;
  --slate-soft: #eef2f6;
  --danger: #b42318;
  --danger-soft: #fff0ee;
  --shadow: 0 16px 36px rgba(24, 36, 60, 0.12);
  --shadow-soft: 0 8px 24px rgba(24, 36, 60, 0.08);
  --radius: 8px;
  --content-width: 1180px;
  --header-height: 72px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111827;
  --surface: #182233;
  --surface-soft: #141c2b;
  --surface-strong: #1e3555;
  --text: #f2f6fc;
  --muted: #b5c0d0;
  --line: #314055;
  --primary: #6ee7a0;
  --primary-dark: #9af0bd;
  --primary-soft: #153524;
  --blue: #8bb8ff;
  --blue-soft: #182b4c;
  --blue-dark: #142f7c;
  --orange: #ffad75;
  --orange-soft: #3a2417;
  --purple: #c4a7ff;
  --purple-soft: #2b2147;
  --cyan: #77d9ef;
  --cyan-soft: #123342;
  --pink: #f0a8ff;
  --pink-soft: #3a2044;
  --slate: #cbd5e1;
  --slate-soft: #263244;
  --danger: #ffb4a8;
  --danger-soft: #3a1f1d;
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.24);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

html[data-font-size="large"] {
  font-size: 18px;
}

* {
  box-sizing: border-box;
  -webkit-transition: 0.2s ease-in-out;
  -moz-transition: 0.2s ease-in-out;
  -o-transition: 0.2s ease-in-out;
  transition: 0.2s ease-in-out;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.08), transparent 26rem),
    linear-gradient(180deg, var(--surface-soft), var(--bg) 22rem);
  color: var(--text);
  font-family: "Noto Sans JP", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  font-feature-settings: "palt";
  line-height: 1.75;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.is-menu-open {
  overflow: hidden;
}

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
  overflow-wrap: anywhere;
  -webkit-transition: 0.2s ease-in-out;
  -moz-transition: 0.2s ease-in-out;
  -o-transition: 0.2s ease-in-out;
  transition: 0.2s ease-in-out;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:not(.large-button, .document-grid a)[href $='.pdf']{
  background: url(icon_pdf.gif) no-repeat right;
  background-size: 18px;
  padding-right: 20px;
}
a:not(.large-button)[href $='.xls']{
  background: url(icon_xls.gif) no-repeat right;
  background-size: 18px;
  padding-right: 20px;
}

button {
  font: inherit;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  stroke-width: 2.1;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--surface);
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 0.55rem 0.9rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  backdrop-filter: blur(18px);
  transition: box-shadow 220ms ease, background 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 10px 28px rgba(24, 36, 60, 0.1);
}

.header-shell,
main,
.site-footer {
  width: min(var(--content-width), calc(100% - 2rem));
  margin-inline: auto;
}

.header-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand tools"
    "nav nav";
  align-items: center;
  gap: 0.8rem;
  min-height: calc(var(--header-height) + 48px);
  padding-block: 0.35rem 0.5rem;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(21, 128, 61, 0.2);
}

.brand-text {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}

.brand strong {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.25;
}

.brand small {
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.2;
}

.global-nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.16rem;
  max-width: 920px;
  margin-inline: auto;
}

.global-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 40px;
  border-radius: 999px;
  color: var(--slate);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  padding: 0.45rem 0.62rem;
  white-space: nowrap;
}

.global-nav a:hover,
.global-nav a:focus-visible {
  background: var(--blue-soft);
  color: var(--blue);
  transform: translateY(-1px);
}

.global-nav .is-current {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.header-tools {
  grid-area: tools;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.font-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.control-button,
.theme-button,
.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 0.32rem 0.62rem;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.control-button:hover,
.theme-button:hover,
.menu-button:hover {
  border-color: color-mix(in srgb, var(--blue) 42%, var(--line));
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.control-button[aria-pressed="true"],
.theme-button[aria-pressed="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.menu-button {
  display: none;
}

.nav-close-button {
  display: none;
}

.nav-backdrop {
  display: none;
}

main {
  padding: 1rem 0 3rem;
  min-height: 75vh;
}

.masthead {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 238px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0d2539;
  box-shadow: var(--shadow);
}

.masthead::after {
  content: "";
  position: absolute;
  inset: 0;
/*  background: linear-gradient(90deg, rgba(12, 25, 41, 0.86), rgba(12, 25, 41, 0.52), rgba(12, 25, 41, 0.18));*/
  background: linear-gradient(90deg, rgba(12, 25, 41, 0.36), rgba(12, 25, 41, 0.12), rgba(12, 25, 41, 0));
  background: linear-gradient(90deg, rgb(85 130 131 / 36%), rgb(189 255 246 / 12%), rgb(50 145 111 / 0%));
}

.masthead-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 700ms ease;
}

.masthead:hover .masthead-image {
  transform: scale(1.04);
}

.masthead-copy {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 2rem;
  color: #fff;
  text-shadow: 3px 2px 0px #555;
}
.masthead-copy h1 {
  text-shadow: 3px 2px 0px #555;
}
.masthead-copy p {
  text-shadow: 2px 1px 0px #555;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
}

.eyebrow {
  color: #bfe8ff;
}

.masthead h1,
.page-title h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4.2vw, 3.05rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0;
}

.masthead p:last-child,
.page-title p {
  margin: 0.55rem 0 0;
  max-width: 760px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.72rem;
  margin: 0.9rem 0 1.2rem;
}

.action-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  padding: 0.8rem;
  box-shadow: var(--shadow-soft);
}

.action-button:hover,
.action-button:focus-visible,
.tournament-card:hover,
.content-side:hover,
.updates-band:hover,
.document-grid a:hover,
.year-links a:hover,
.side-link:hover {
  transform: translateY(-2px);
  /* box-shadow: var(--shadow); */
}

.action-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.action-copy {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.action-copy strong {
  font-size: 0.95rem;
  line-height: 1.32;
}

.action-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.action-tournament {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--line));
}

.action-tournament .action-icon {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.action-ranking .action-icon {
  color: var(--purple);
  background: var(--purple-soft);
}

.action-ranking {
  border-color: color-mix(in srgb, var(--purple) 40%, var(--line));
}

.action-search .action-icon {
  color: var(--blue);
  background: var(--blue-soft);
}

.action-search {
  border-color: color-mix(in srgb, var(--blue) 40%, var(--line));
}

.action-school .action-icon {
  color: var(--orange);
  background: var(--orange-soft);
}

.action-school {
  border-color: color-mix(in srgb, var(--orange) 40%, var(--line));
}

.action-organization .action-icon {
  color: var(--cyan);
  background: var(--cyan-soft);
}

.action-organization {
  border-color: color-mix(in srgb, var(--cyan) 40%, var(--line));
}

.action-link .action-icon {
  color: var(--pink);
  background: var(--pink-soft);
}

.action-link {
  border-color: color-mix(in srgb, var(--pink) 40%, var(--line));
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1rem;
  align-items: start;
}

.content-onecolumn {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.content-main,
.content-side,
.attention-block,
.detail-section,
.side-block,
.updates-band,
.notice-strip,
.event-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.content-main,
.content-side,
.attention-block,
.updates-band {
  padding: 1.1rem;
}

.section-heading {
  margin-bottom: 0.86rem;
}

.section-heading.compact {
  margin-bottom: 0.72rem;
}

.section-heading h2,
.side-block h2 {
  margin: 0;
  font-size: clamp(1.28rem, 2vw, 1.7rem);
  font-weight: 900;
  line-height: 1.35;
}

.section-label.tournament-label {
  color: var(--primary-dark);
}

.section-label.general-label {
  color: var(--blue);
}

.section-label.result-label {
  color: var(--orange);
}

.tournament-list {
  display: grid;
  gap: 0.75rem;
}

.tournament-card {
  border: 1px solid var(--line);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--surface);
}

.tournament-card-blue {
  border-left-color: var(--blue);
}

.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.card-meta time {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.tournament-card h3 {
  margin: 0.5rem 0 0.32rem;
  font-size: 1.14rem;
  line-height: 1.45;
}

.tournament-card p {
  margin: 0 0 0.68rem;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0.12rem 0.62rem;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.badge-open,
.badge-tournament {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.badge-general {
  background: var(--blue-soft);
  color: var(--blue);
}

.badge-now {
  background: var(--orange-soft);
  color: var(--orange);
}

.badge-result {
  background: var(--purple-soft);
  color: var(--purple);
}

.badge-soon {
  background: var(--line);
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 900;
  text-decoration: none;
  -webkit-transition: 0.2s ease-in-out;
  -moz-transition: 0.2s ease-in-out;
  -o-transition: 0.2s ease-in-out;
  transition: 0.2s ease-in-out;
  display: flex;
  text-align: end;
  justify-content: flex-end;
  margin-top: 1rem;
  font-weight: 600;
}

.text-link:hover {
  /* gap: 0.45rem; */
}
.text-link:hover .icon{
    transform: translateX(3px);
}

.news-list {
  display: grid;
  gap: 0.72rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  display: grid;
  gap: 0.14rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.72rem;
}

.news-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.news-list time {
  color: var(--muted);
  font-size: 0.85rem;
}
.news-list span.badge {
  margin-left: 10px;
  margin-right: 10px;
}

.notice-list li {
  grid-template-columns: 5.2rem auto minmax(0, 1fr);
  align-items: center;
  gap: 0.58rem;
}

.notice-list div:not(.notice-body) a {
  color: var(--text);
  font-weight: 400;
  text-decoration: none;
}

.notice-list a:hover,
.notice-list a:focus-visible {
  color: var(--blue);
}

.link-banner-list {
  display: grid;
  gap: 0.62rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-banner-list a {
  display: flex;
  align-items: center;
  min-height: 54px;
  border: 1px solid color-mix(in srgb, var(--blue) 28%, var(--line));
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--blue-soft), color-mix(in srgb, var(--surface) 85%, var(--blue-soft)));
  color: var(--text);
  text-decoration: none;
  padding: 0.75rem 0.85rem;
}

.link-banner-list a::before {
  content: "";
  width: 8px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
  margin-right: 0.68rem;
  flex: 0 0 auto;
}

.link-banner-list a:hover {
  border-color: color-mix(in srgb, var(--blue) 54%, var(--line));
  transform: translateY(-2px);
}

.link-banner-list span {
  font-weight: 800;
  line-height: 1.35;
}

.attention-block {
  margin-bottom: 1rem;
  border: 3px solid var(--danger);
  background-color: var(--danger-soft);
}

.updates-band {
  margin-top: 1rem;
}

.update-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.update-row a {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.76rem;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
}

.update-row a:hover {
  border-color: color-mix(in srgb, var(--blue) 34%, var(--line));
  transform: translateY(-2px);
}

.site-footer {
  width: 100%;
  margin-inline: 0;
  border-top: 0;
  background: var(--blue-dark);
  color: #ffffff;
}

.footer-inner {
  width: min(var(--content-width), calc(100% - 2rem));
  margin-inline: auto;
  padding: 1.2rem 0 1.6rem;
  text-align: right;
}

.footer-inner h4 {
  margin: 0.25rem 0;
}

.footer-inner p {
  margin: 0.15rem 0;
  font-size: 0.82rem;
}

.footer-inner a{
  color:inherit;
}

.footer-inner p.copyright {
  font-size: 0.72rem;
}

.banner-sns{
  margin-bottom:4rem;
}
.banner-sns a{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: auto;
    color: #fff;
    background: #333;
    width: fit-content;
    margin: 2rem auto;
    padding: 1rem;
}

.banner-sns a svg path{
  fill: #fff;
}
.banner-sns a:hover{
  transform: translateY(-2px);
}

.page-layout {
  padding-top: 0.75rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumb a::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--muted);
}

.page-title {
  margin-bottom: 0.85rem;
  padding: 0.7rem 0 1rem;
  border-bottom: 1px solid var(--line);
}

.notice-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding: 0.9rem;
  background: var(--blue-soft);
}

.notice-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--blue);
  background: var(--surface);
}

.tournament-table-wrap {
  overflow-x: auto;
}

.tournament-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.tournament-table caption {
  text-align: left;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.tournament-table th,
.tournament-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.78rem;
  text-align: left;
  vertical-align: middle;
  min-width: 0;
}

.tournament-table th {
  background: var(--surface-strong);
  color: var(--text);
  font-size: 0.9rem;
}

.tournament-table tbody tr {
  transition: background 180ms ease, transform 180ms ease;
}

.tournament-table tbody tr:hover {
  background: color-mix(in srgb, var(--blue-soft) 46%, transparent);
}

.year-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.year-links a,
.side-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 0.68rem;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
}

.year-links a:hover,
.side-link:hover,
.side-link.current {
  border-color: color-mix(in srgb, var(--blue) 45%, var(--line));
  background: var(--blue-soft);
  color: var(--blue);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 1rem;
}

.detail-title {
  margin-bottom: 0.85rem;
}

.event-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 1rem;
  padding: 0;
  overflow: hidden;
}

.event-summary div {
  padding: 0.9rem;
  border-right: 1px solid var(--line);
}

.event-summary div:last-child {
  border-right: 0;
}

.event-summary dt {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.event-summary dd {
  margin: 0.2rem 0 0;
  font-weight: 800;
  line-height: 1.55;
}

.detail-section,
.side-block {
  padding: 1.1rem;
  margin-bottom: 1rem;
}

.button-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

.button-row p {
  margin: 0;
}

.large-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0.7rem 1rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.large-button:hover,
.large-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.large-button.accent {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.message-box {
  margin-top: 1rem;
  border-left: 5px solid var(--orange);
  background: var(--orange-soft);
  border-radius: var(--radius);
  padding: 0.86rem 1rem;
}

.message-box p {
  margin: 0.2rem 0;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.document-grid a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
}

.document-grid span {
  color: var(--muted);
  white-space: nowrap;
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

.detail-side {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
}

.side-link + .side-link {
  margin-top: 0.5rem;
}

[data-animate] {
  transform: translateY(0);
  transition: transform 520ms ease;
}

html.motion-ready [data-animate] {
  transform: translateY(12px);
  -webkit-transition: 0.2s ease-in-out;
  -moz-transition: 0.2s ease-in-out;
  -o-transition: 0.2s ease-in-out;
  transition: 0.2s ease-in-out;
}

html.motion-ready [data-animate].is-visible {
  transform: translateY(0);
}

.sp-only{
  visibility: hidden;
  height:0;
  overflow: auto;
}

@media (max-width: 1120px) {
  .header-shell {
    grid-template-columns: auto 1fr auto;
  }

  .global-nav a {
    font-size: 0.84rem;
    padding-inline: 0.5rem;
  }

  .quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 64px;
  }

  .header-shell {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand tools";
    gap: 0.55rem;
    min-height: var(--header-height);
    padding-block: 0;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 0.7rem;
  }

  .brand strong {
    font-size: 1rem;
  }

  .header-tools {
    gap: 0.28rem;
  }

  .font-controls {
    display: none;
  }

  .theme-button span {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .global-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    width: min(82vw, 340px);
    height: 100dvh;
    padding: 5.2rem 1rem 1rem;
    background: var(--surface);
    border-left: 1px solid var(--line);
    box-shadow: -18px 0 42px rgba(24, 36, 60, 0.2);
    transform: translateX(104%);
    transition: transform 260ms ease;
    margin-inline: 0;
    max-width: none;
  }

  .global-nav.is-open {
    transform: translateX(0);
  }

  .nav-close-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    cursor: pointer;
  }

  .global-nav a {
    justify-content: flex-start;
    min-height: 50px;
    border-radius: var(--radius);
    padding-inline: 0.9rem;
    font-size: 0.98rem;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: block;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }

  .nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .quick-actions,
  .content-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }

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

  .event-summary div:nth-child(2) {
    border-right: 0;
  }

  .event-summary div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .update-row {
    grid-template-columns: 1fr;
  }

  .sp-only{
    visibility: visible;
    height:100%;
  }
  .pc-only{
    display: none!important;
  }
}

@media (max-width: 640px) {
  .header-shell,
  main {
    width: min(var(--content-width), calc(100% - 1rem));
  }

  .footer-inner {
    width: min(var(--content-width), calc(100% - 1rem));
  }

  main {
    padding-top: 0.65rem;
  }

  .masthead {
    min-height: 214px;
  }

  .masthead-copy {
    padding: 1.15rem;
  }

  .masthead h1,
  .page-title h1 {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
  }

  .quick-actions,
  .button-row,
  .document-grid,
  .event-summary,
  .year-links {
    grid-template-columns: 1fr;
  }

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

  .action-button {
    min-height: 66px;
  }

  .content-main,
  .content-side,
  .attention-block,
  .updates-band,
  .detail-section,
  .side-block {
    padding: 0.95rem;
  }

  .notice-strip {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .notice-strip .text-link {
    grid-column: 2;
  }

  .notice-list li {
    grid-template-columns: auto 1fr;
  }

  .notice-list a {
    grid-column: 1 / -1;
  }

  .tournament-table {
    min-width: 0;
  }

  .tournament-table thead {
    display: none;
  }

  .tournament-table,
  .tournament-table tbody,
  .tournament-table tr,
  .tournament-table td {
    display: block;
    width: 100%;
  }

  .tournament-table tr {
    border: 1px solid var(--line);
    border-left: 5px solid var(--primary);
    border-radius: var(--radius);
    margin-bottom: 0.8rem;
    padding: 0.32rem 0;
    background: var(--surface);
  }

  .tournament-table td {
    display: grid;
    grid-template-columns: 6.2em minmax(0, 1fr);
    gap: 0.7rem;
    border-bottom: 0;
    padding: 0.42rem 0.72rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .tournament-table td > * {
    min-width: 0;
  }

  .tournament-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 900;
  }

  .event-summary div,
  .event-summary div:nth-child(2) {
    border-right: 0;
  }

  .event-summary div {
    border-bottom: 1px solid var(--line);
  }

  .event-summary div:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.content-page h1 {

}
.content-page h2 {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  margin-bottom: 1rem;
  padding: 0.9rem;
  background: var(--blue-soft);
}

.content-page h3 {
  font-size: 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--line);
}

.content-page ol li {
  margin-bottom: 0.8rem;
}

.admin-bar .site-header {
  top: 32px;
}

.pagination {
  margin-top: 1rem;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.result-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

.result-gallery a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.result-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.content-page .aligncenter {
  display: block;
  margin-inline: auto;
}

.content-page .alignleft {
  float: left;
  margin: 0.4rem 1rem 0.8rem 0;
}

.content-page .alignright {
  float: right;
  margin: 0.4rem 0 0.8rem 1rem;
}

.font_red {
  color: var(--danger);
}

.wp-block-table td, .wp-block-table th {
  border: 1px solid var(--line);
}

.wp-block-table th {
  background-color: var(--blue-soft);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 640px) {
  .result-gallery {
    grid-template-columns: 1fr;
  }
}

.text-center{text-align:center;}
.text-left{text-align:left;}
.text-right{text-align:right;}

.mt0{margin-top:0!important;}
.mt5{margin-top:5px;}
.mt10{margin-top:10px;}
.mt20{margin-top:20px;}
.mt30{margin-top:30px;}
.mt40{margin-top:40px;}
.mt50{margin-top:50px;}

.mr0{margin-right:0!important;}
.mr5{margin-right:5px;}
.mr10{margin-right:10px;}
.mr20{margin-right:20px;}
.mr30{margin-right:30px;}
.mr40{margin-right:40px;}
.mr50{margin-right:50px;}

.mb0{margin-bottom:0!important;}
.mb5{margin-bottom:5px;}
.mb10{margin-bottom:10px;}
.mb20{margin-bottom:20px;}
.mb30{margin-bottom:30px;}
.mb40{margin-bottom:40px;}
.mb50{margin-bottom:50px;}

.ml0{margin-left:0!important;}
.ml5{margin-left:5px;}
.ml10{margin-left:10px;}
.ml20{margin-left:20px;}
.ml30{margin-left:30px;}
.ml40{margin-left:40px;}
.ml50{margin-left:50px;}
