:root {
  color-scheme: only light;
  --bg: #ffffff;
  --panel: #ffffff;
  --ink: #000000;
  --sub: #000000;
  --line: #d6e0ea;
  --accent: #1b4b9b;
  --red: #c2372c;
  --soft: #e3edf6;
  --grad: linear-gradient(135deg, #2f6fc9 0%, #4a9de8 55%, #2eb8a6 100%);
  --grad-hover: linear-gradient(135deg, #2863b8 0%, #3d8fd9 55%, #28a894 100%);
  --junior: #1b4b9b;
  --junior-soft: #eef3fb;
  --junior-line: #c5d4eb;
  --senior: #0a8566;
  --senior-soft: #e9f5f1;
  --senior-line: #b8ddd2;
  --hd-inner: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

img { max-width: 100%; }

a { color: inherit; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

[id] { scroll-margin-top: calc(var(--site-hd-h, 64px) + 16px); }

.skip {
  position: absolute;
  left: 12px;
  top: -4rem;
  background: var(--panel);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 100;
}

.skip:focus { top: 8px; }

.wrap {
  width: auto;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.wrap.narrow { max-width: 760px; }

h1, h2, h3, h4 {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0;
  margin: 0;
}

h2 { font-size: clamp(22px, 3.6vw, 30px); margin: 0 0 20px; }
h3 { font-size: 20px; color: var(--accent); margin: 0 0 8px; }

p { margin: 0 0 1rem; }

.kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.lead {
  color: var(--sub);
  font-size: 17px;
  line-height: 1.85;
  max-width: 40em;
  margin: 16px 0 0;
}

.admissions-year-notice {
  margin: 20px 0 0;
  padding: 16px 18px;
  max-width: 40em;
  border: 2px solid var(--red);
  border-radius: 8px;
  background: color-mix(in srgb, var(--red) 10%, var(--panel));
  color: var(--red);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.65;
}

.admissions-year-notice strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 900;
}

.site-hd {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 3px solid transparent;
  border-image: var(--grad) 1;
}

.hd {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  padding: 10px 20px;
  width: 100%;
  max-width: var(--hd-inner);
  margin: 0 auto;
  box-sizing: border-box;
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  width: 40px;
  height: auto;
  display: block;
  flex: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
  min-width: 0;
}

.logo-org {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.logo-name {
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
}

.logo:hover { color: var(--ink); }

.name-en {
  color: #00a3e0;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hd nav {
  display: flex;
  gap: 4px 16px;
  flex-wrap: nowrap;
  align-items: center;
  flex: none;
}

.hd nav > a,
.nav-item > a,
.nav-parent > a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--sub);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  padding: 4px 0;
  white-space: nowrap;
}

.hd nav > a:hover,
.hd nav > a[aria-current="page"],
.nav-item > a:hover,
.nav-item > a[aria-current="page"],
.nav-parent > a:hover,
.nav-parent > a[aria-current="page"],
.nav-item:hover > a,
.nav-item:hover .nav-parent > a,
.nav-item:focus-within > a,
.nav-item:focus-within .nav-parent > a {
  color: var(--ink);
  font-weight: 700;
}

.hd nav a.btn,
.hd nav a.btn:hover,
.hd nav a.btn[aria-current="page"] {
  color: #fff;
  font-weight: 700;
  padding: 10px 20px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-sub {
  position: absolute;
  top: calc(100% - 6px);
  left: 0;
  z-index: 60;
  min-width: 240px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 32, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.nav-sub-toggle {
  display: none;
}

@media (min-width: 901px) {
  .nav-parent {
    display: contents;
  }

  .nav-item::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 16px;
  }

  .nav-item:hover .nav-sub,
  .nav-item:focus-within .nav-sub {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

.nav-sub a {
  display: block;
  padding: 10px 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.nav-sub a:hover,
.nav-sub a[aria-current="page"] {
  background: var(--soft);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  flex: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  background: var(--bg);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
}

.nav-toggle-icon {
  width: 16px;
  height: 12px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle-icon span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.btn,
.btn-solid {
  position: relative;
  overflow: hidden;
  display: inline-block;
  background: var(--grad);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 16px 26px;
  border-radius: 4px;
  border: 0;
  font-size: 16px;
  line-height: 1.4;
}

.btn::after,
.btn-solid::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -40%;
  width: 32%;
  height: 160%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  opacity: 0;
}

.btn:hover::after,
.btn-solid:hover::after {
  animation: btn-glint 0.55s ease;
}

@keyframes btn-glint {
  0% { left: -40%; opacity: 0; }
  25% { opacity: 1; }
  100% { left: 140%; opacity: 0; }
}

.btn:not(.line):hover,
.btn-solid:not(.line):hover {
  background: var(--grad-hover);
  color: #fff;
}

.page-cta .btn:not(.line):hover,
.page-cta .btn-solid:not(.line):hover,
.page-cta .btn:not(.line):focus-visible,
.page-cta .btn-solid:not(.line):focus-visible {
  background: #fff;
  color: #2863b8;
}

.btn.line {
  background: transparent;
  color: var(--ink);
  border: 0;
}

.btn.line:hover { color: var(--ink); }

.page-head {
  padding: 48px 0 8px;
  background: var(--bg);
  border: 0;
}

.breadcrumb {
  margin: 0 0 18px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.5;
  color: var(--sub);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin: 0 8px;
  color: color-mix(in srgb, var(--ink) 35%, transparent);
  font-weight: 700;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.page-head h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.25;
  letter-spacing: -0.03em;
  padding-left: 16px;
  border-left: 4px solid transparent;
  border-image: var(--grad) 1;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.toc a {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.page-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  align-items: stretch;
  padding-bottom: 48px;
}

.page-main {
  min-width: 0;
}

.page-layout .page-side {
  order: -1;
}

.page-lead-photo {
  margin: 24px 0 0;
  overflow: hidden;
  border-radius: 8px;
}

.page-main .block > .page-lead-photo {
  margin: 0 0 24px;
}

.page-lead-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 35%;
}

.feature-split {
  display: grid;
  grid-template-columns: minmax(200px, 0.85fr) minmax(0, 1.4fr);
  gap: 28px 32px;
  align-items: start;
}

.feature-split-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
}

.feature-split-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
}

.feature-split-body > h2 {
  margin-top: 0;
}

.feature-split-body > .lead {
  margin-top: 0;
}

.feature-split-body > p:last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .feature-split {
    grid-template-columns: 1fr;
  }
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) minmax(0, 1.4fr);
  gap: 24px;
  align-items: start;
  margin: 0 0 8px;
}

.section-intro-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
}

.section-intro-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
}

.section-intro > p {
  margin: 0;
}

@media (max-width: 760px) {
  .section-intro {
    grid-template-columns: 1fr;
  }
}

.page-main .block {
  padding-left: 0;
  padding-right: 0;
}

.page-main .block:first-of-type {
  border-top: 0;
  padding-top: 32px;
}

.page-main .block.block-policy {
  margin: 8px 0 24px;
  padding: 36px 28px 40px;
  border: 0;
  border-radius: 12px;
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, #1b4b9b 9%, var(--bg)) 0%,
      color-mix(in srgb, #0a8566 7%, var(--bg)) 100%
    );
}

.page-main .block.block-policy > h2 {
  margin-bottom: 14px;
}

.page-main .block.block-policy .note {
  margin: 0 0 20px;
  background: var(--panel);
  border-left: 0;
}

.page-main .block.block-policy .steps li {
  border-color: color-mix(in srgb, var(--accent) 14%, var(--line));
}

.page-side {
  padding-top: 24px;
  align-self: stretch;
}

.side-toc {
  position: sticky;
  top: calc(var(--site-hd-h, 64px) + 12px);
  padding: 18px 18px 18px 0;
  border-right: 3px solid transparent;
  border-image: var(--grad) 1;
}

.side-toc-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.side-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-toc li + li {
  margin-top: 8px;
}

.side-toc a {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  text-decoration: none;
}

.side-toc a:hover {
  color: var(--accent);
}

.side-toc > ul > li > a {
  font-size: 15px;
  font-weight: 900;
}

.side-toc li ul {
  margin: 8px 0 2px;
  padding: 0 0 0 12px;
  list-style: none;
  border-left: 2px solid var(--line);
}

.side-toc li ul li + li {
  margin-top: 4px;
}

.side-toc li ul a {
  font-size: 13px;
  font-weight: 500;
  color: var(--sub);
}

.side-toc li ul a:hover {
  color: var(--accent);
}

/* 本文見出しの階層：大見出し → 中見出し → カード見出し */
.page-main .block > h2 {
  padding-left: 14px;
  border-left: 4px solid transparent;
  border-image: var(--grad) 1;
  font-size: clamp(24px, 3.8vw, 32px);
  line-height: 1.3;
  margin: 0 0 22px;
  color: var(--ink);
}

.page-main .sub-block {
  margin-top: 40px;
  padding: 28px 0 0;
}

.page-main .sub-block > h3,
.page-main .block > h3,
.page-main .curriculum-fold > summary {
  padding-left: 0;
  border-left: 0;
  font-size: clamp(18px, 2.8vw, 22px);
  font-weight: 900;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 16px;
}

.page-main .curriculum-fold {
  display: block;
  border: 0;
  padding: 28px 0 0;
}

.page-main .curriculum-fold:last-of-type {
  border-bottom: 0;
}

.page-main .curriculum-fold > summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: auto;
  max-width: 100%;
  margin-bottom: 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.page-main .curriculum-fold > summary::-webkit-details-marker {
  display: none;
}

.page-main .curriculum-fold > summary::after {
  content: "クリックで開く";
  flex: none;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  background: var(--soft);
}

.page-main .curriculum-fold[open] > summary {
  margin-bottom: 16px;
}

.page-main .curriculum-fold[open] > summary::after {
  content: "クリックで閉じる";
}

.page-main .curriculum-fold-body > p:first-child {
  margin-top: 0;
}

.page-main .block > h3 {
  margin-top: 32px;
}

.page-main .feature h3,
.page-main .feature h4,
.page-main .year h3 {
  padding-left: 0;
  border-left: 0;
  font-size: 17px;
  font-weight: 900;
  color: var(--accent);
  margin: 0 0 8px;
}

.page-main .feature h4 {
  font-size: 16px;
}

.feature-grid-bunkei {
  grid-template-columns: 1fr 1fr;
}

.feature-elective {
  grid-column: 1 / -1;
}

.feature-elective-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 1fr);
  gap: 28px;
  align-items: start;
}

.feature-elective .elective-list,
.feature .elective-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-elective .elective-list li,
.feature .elective-list li {
  margin: 0;
  padding: 10px 12px;
  background: #0a8566;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  border-radius: 4px;
}

.feature-elective-copy h4 {
  margin-top: 0;
}

.feature-elective-copy p:last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .feature-grid-bunkei {
    grid-template-columns: 1fr;
  }

  .feature-elective-inner {
    grid-template-columns: 1fr;
  }
}

.block {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.prose-stack {
  display: grid;
  gap: 20px;
}

.prose-stack > section {
  padding: 28px 24px;
  border-radius: 12px;
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, #1b4b9b 8%, var(--bg)) 0%,
      color-mix(in srgb, #0a8566 6%, var(--bg)) 100%
    );
}

.prose-stack-plain > section {
  padding: 0;
  border-radius: 0;
  background: none;
}

.prose-stack > section > h3 {
  margin: 0 0 14px;
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 900;
  color: var(--accent);
}

.prose-stack > section > p {
  margin: 14px 0 0;
}

.prose-stack .photo-row {
  margin-top: 0;
}

@media (max-width: 760px) {
  .prose-stack > section {
    padding: 22px 16px;
  }

  .prose-stack .photo-row {
    margin-right: -16px;
    margin-left: -16px;
    padding: 0 16px 8px;
  }

  /* 行事・課外活動: 先頭写真の左を見出し・本文と揃える */
  #points .prose-stack .photo-row {
    margin-left: 0;
    padding: 0 16px 8px 0;
    scroll-padding-left: 0;
  }

  .photo-row-scroll {
    position: relative;
  }

  .photo-row-hint {
    position: absolute;
    top: 10px;
    right: 16px;
    left: 0;
    z-index: 2;
    margin: 0;
    padding: 0 0 0 0;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-align: right;
    pointer-events: none;
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.75),
      0 0 10px rgba(0, 0, 0, 0.45);
    transition: opacity 0.12s ease;
  }

  #points .photo-row-scroll .photo-row-hint,
  #inquiry .photo-row-scroll .photo-row-hint,
  #exchange .photo-row-scroll .photo-row-hint {
    right: 0;
    left: 0;
    padding-left: 12px;
    text-align: left;
  }

  #inquiry .photo-row.photo-row-3,
  #exchange .photo-row.photo-row-2 {
    margin-left: 0;
    padding: 0 20px 8px 0;
    scroll-padding-left: 0;
  }

  .photo-row-hint.is-hidden {
    visibility: hidden;
    opacity: 0;
  }
}

@media (min-width: 761px) {
  .photo-row-hint {
    display: none;
  }
}

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

.photo-row-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 24px;
}

.photo-row-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 20px 0 28px;
}

.photo-row-item {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
}

.photo-row-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
}

@media (max-width: 760px) {
  .photo-row {
    display: flex;
    gap: 10px;
    margin-right: -20px;
    margin-left: -20px;
    padding: 0 20px 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .photo-row-item {
    flex: 0 0 72%;
    max-width: 280px;
    scroll-snap-align: start;
  }
}

.news a {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-decoration: none;
  color: var(--ink);
}

.news a:first-of-type {
  margin-top: 0;
}

.news a:hover {
  color: var(--ink);
  background: var(--soft);
}

.news-label {
  flex: none;
  min-width: 5.5em;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.news a span:last-child {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.news a::after {
  content: "›";
  flex: none;
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}

.news-flyer {
  margin: 0 0 28px;
}

.news-flyer img {
  display: block;
  width: 100%;
  max-width: 596px;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.news-apply {
  margin-top: 32px;
  padding: 24px 20px;
  text-align: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.news-apply-lead {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.news-apply-deadline {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

.news-apply-deadline strong {
  font-weight: 700;
}

.news-apply .btn {
  min-width: min(100%, 280px);
  padding: 17px 32px;
  font-size: 17px;
}

.news-apply .note {
  margin: 14px 0 0;
  border-left: none;
}

.error-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 28px;
}

.entry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}

.entry a {
  padding: 22px 18px;
  text-decoration: none;
  border-right: 1px solid var(--line);
  display: block;
  color: var(--ink);
}

.entry a:last-child { border-right: 0; }
.entry a:hover { background: var(--soft); color: var(--ink); }
.entry b { display: block; font-size: 17px; margin-bottom: 6px; }
.entry span { font-size: 14px; color: var(--sub); }

.entry.entry-guide {
  margin-top: 28px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guide-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  align-items: stretch;
}

.guide-row .guide-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
  grid-column: span 2;
}

.guide-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 35%;
}

.about-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.about-card:hover {
  color: inherit;
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(27, 75, 155, 0.08);
}

.about-card-photo {
  position: relative;
  overflow: hidden;
}

.about-card .guide-photo {
  width: 100%;
  flex: none;
  margin: 0;
  border-radius: 0;
  transition: transform 0.45s ease;
}

.about-card:hover .guide-photo {
  transform: scale(1.08);
}

.about-card h3 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 36px 14px 12px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.66));
  font-size: 18px;
  line-height: 1.35;
}

.about-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-nav li {
  padding: 12px 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .guide-row {
    grid-template-columns: 1fr 1fr;
  }

  .guide-row .guide-block {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .entry,
  .entry.entry-guide {
    grid-template-columns: 1fr;
  }

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

  .guide-row .guide-block {
    grid-column: auto;
  }

  .entry a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .entry a:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .about-card .guide-photo { transition: none; }
  .about-card:hover .guide-photo { transform: none; }
}

.feature-grid,
.job-grid,
.card-grid,
.theme-cols,
.two {
  display: grid;
  gap: 16px;
}

.feature,
.year {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 22px 20px;
}

.feature::before,
.year::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--grad);
  border-radius: 8px 8px 0 0;
}

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

.facility-card {
  margin: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.facility-card-photo {
  background: #cfd6de;
  line-height: 0;
}

.facility-card-photo:empty {
  aspect-ratio: 4 / 3;
}

.facility-card-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
}

.facility-card figcaption {
  margin: 0;
  padding: 14px 12px 16px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
}

.feature p:last-child,
.year p:last-child { margin-bottom: 0; }

.career-list {
  margin-top: 8px;
}

.career-group {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.career-group:last-child {
  border-bottom: 1px solid var(--line);
}

.career-group h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 900;
  color: var(--accent);
}

.career-schools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.career-schools li {
  margin: 0;
  padding: 6px 12px;
  background: var(--soft);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.career-more {
  margin: 10px 0 0;
  color: var(--sub);
  font-size: 13px;
  font-weight: 700;
}

.job-card {
  margin-top: 8px;
}

.job-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.job-list li {
  margin: 0;
  padding: 6px 12px;
  background: var(--soft);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.year h3 {
  font-size: clamp(18px, 2.8vw, 22px);
  color: var(--ink);
  margin: 0 0 10px;
}

.narrow h3 {
  margin-top: 24px;
}

.u-list { display: grid; }

.u-item {
  display: grid;
  gap: 6px 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.u-item:last-child { border-bottom: 1px solid var(--line); }

.u-en {
  margin: 0;
  color: var(--accent);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.15;
}

.u-item:nth-child(1) .u-en { color: #1b4b9b; }
.u-item:nth-child(2) .u-en { color: #e07a2f; }
.u-item:nth-child(3) .u-en { color: #0a8566; }
.u-item:nth-child(4) .u-en { color: #26a7e1; }
.u-item:nth-child(5) .u-en { color: #c44d6a; }

.u-item > div > p:first-child {
  font-size: clamp(19px, 2.5vw, 23px);
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
}

.u-note { margin: 0; color: var(--sub); font-size: 14px; }

.quote {
  margin: 0;
  padding: 0;
  border: 0;
}

.quote footer {
  margin-top: 12px;
  color: var(--sub);
  font-size: 14px;
  font-weight: 700;
}

.plain-list { margin: 0; padding-left: 1.2rem; }
.plain-list li { margin: 0.3rem 0; }

.theme-cols h4 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 900;
  color: var(--accent);
}

.inquiry-cycle {
  --radius: min(34vw, 210px);
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1;
  margin: 36px auto 48px;
}

.page-main .inquiry-cycle {
  --radius: min(28vw, 176px);
  width: min(100%, 480px);
}

.inquiry-cycle::before {
  content: "";
  position: absolute;
  inset: 22%;
  border: 3px dashed color-mix(in srgb, var(--accent) 42%, var(--line));
  border-radius: 50%;
}

.inquiry-cycle-center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  padding: 12px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  text-align: center;
  box-shadow: 0 8px 24px rgba(27, 75, 155, 0.18);
  transform: translate(-50%, -50%);
}

.inquiry-cycle-center p {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
}

.inquiry-cycle-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.inquiry-cycle-list li {
  --i: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 148px;
  text-align: center;
  transform:
    translate(-50%, -50%)
    rotate(calc(var(--i) * 72deg))
    translateY(calc(-1 * var(--radius)))
    rotate(calc(var(--i) * -72deg));
}

.inquiry-cycle-list li:nth-child(1) { --i: 0; }
.inquiry-cycle-list li:nth-child(2) { --i: 1; }
.inquiry-cycle-list li:nth-child(3) { --i: 2; }
.inquiry-cycle-list li:nth-child(4) { --i: 3; }
.inquiry-cycle-list li:nth-child(5) { --i: 4; }

.inquiry-cycle-arrows span {
  --i: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  color: var(--accent);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  transform:
    translate(-50%, -50%)
    rotate(calc(var(--i) * 72deg + 36deg))
    translateY(calc(-1 * var(--radius) * 0.72))
    rotate(90deg);
}

.inquiry-cycle-arrows span::before {
  content: "›";
}

.inquiry-cycle-arrows span:nth-child(1) { --i: 0; }
.inquiry-cycle-arrows span:nth-child(2) { --i: 1; }
.inquiry-cycle-arrows span:nth-child(3) { --i: 2; }
.inquiry-cycle-arrows span:nth-child(4) { --i: 3; }
.inquiry-cycle-arrows span:nth-child(5) { --i: 4; }

.inquiry-cycle-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.inquiry-cycle-label {
  display: block;
  padding: 8px 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
  color: var(--ink);
}

.inquiry-cycle-label span {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .inquiry-cycle {
    aspect-ratio: auto;
    width: 100%;
    margin: 24px 0 32px;
  }

  .inquiry-cycle::before {
    display: none;
  }

  .inquiry-cycle-center {
    position: static;
    width: auto;
    height: auto;
    margin: 0 auto 20px;
    padding: 10px 18px;
    border-radius: 999px;
    transform: none;
  }

  .inquiry-cycle-center p {
    font-size: 14px;
  }

  .inquiry-cycle-center p br {
    display: none;
  }

  .inquiry-cycle-arrows {
    display: none;
  }

  .inquiry-cycle-list {
    display: grid;
    gap: 8px;
  }

  .inquiry-cycle-list li {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    transform: none;
    padding-bottom: 22px;
  }

  .inquiry-cycle-list li::after {
    content: "↓";
    position: absolute;
    left: 10px;
    bottom: -2px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
  }

  .inquiry-cycle-list li:last-child::after {
    content: "↻ 課題の設定へ戻る";
    left: 48px;
    font-size: 12px;
    font-weight: 700;
  }

  .inquiry-cycle-label {
    flex: 1;
    text-align: left;
  }
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 0 14px 42px;
  border-top: 1px solid var(--line);
}

.steps li:last-child { border-bottom: 1px solid var(--line); }

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--accent);
  font-size: 1.35em;
  line-height: 1;
  font-weight: 900;
}

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

.schedule-year {
  table-layout: fixed;
  width: 100%;
}

.schedule-year thead th:first-child,
.schedule-year th[scope="row"] {
  width: 5.5rem;
  min-width: 5.5rem;
  max-width: 5.5rem;
  box-sizing: border-box;
  padding-right: 12px;
  white-space: nowrap;
}

.schedule-year th[scope="row"] {
  font-weight: 700;
  color: var(--ink);
}

.schedule-year td {
  vertical-align: top;
}

.calendar-tabs .division-panel.is-junior .table-wrap {
  background: var(--junior-soft);
  border-radius: 8px;
}

.calendar-tabs .division-panel.is-senior .table-wrap {
  background: var(--senior-soft);
  border-radius: 8px;
}

.calendar-tabs .division-panel.is-junior .schedule-year thead th,
.calendar-tabs .division-panel.is-junior .schedule-week thead th {
  background: #dce6f5;
  color: var(--junior);
  border-bottom-color: var(--junior);
}

.calendar-tabs .division-panel.is-senior .schedule-year thead th,
.calendar-tabs .division-panel.is-senior .schedule-week thead th {
  background: #d4ebe4;
  color: var(--senior);
  border-bottom-color: var(--senior);
}

.calendar-tabs .division-panel.is-junior .schedule-year th[scope="row"],
.calendar-tabs .division-panel.is-junior .schedule-week th[scope="row"] {
  background: #e4ecf7;
}

.calendar-tabs .division-panel.is-senior .schedule-year th[scope="row"],
.calendar-tabs .division-panel.is-senior .schedule-week th[scope="row"] {
  background: #dff0ea;
}

.calendar-tabs .division-panel.is-junior .schedule-year td,
.calendar-tabs .division-panel.is-junior .schedule-week td {
  background: #f6f9fd;
}

.calendar-tabs .division-panel.is-senior .schedule-year td,
.calendar-tabs .division-panel.is-senior .schedule-week td {
  background: #f4faf7;
}

.calendar-tabs #year-tab-junior[aria-selected="true"],
.calendar-tabs #day-tab-junior[aria-selected="true"] {
  background: var(--junior);
  color: #fff;
  border-color: transparent;
}

.calendar-tabs #year-tab-senior[aria-selected="true"],
.calendar-tabs #day-tab-senior[aria-selected="true"] {
  background: var(--senior);
  color: #fff;
  border-color: transparent;
}

.calendar-tabs #year-tab-junior:not([aria-selected="true"]),
.calendar-tabs #day-tab-junior:not([aria-selected="true"]) {
  border-color: var(--junior-line);
}

.calendar-tabs #year-tab-senior:not([aria-selected="true"]),
.calendar-tabs #day-tab-senior:not([aria-selected="true"]) {
  border-color: var(--senior-line);
}

.schedule-scroll-hint {
  display: none;
  margin: -4px 0 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--soft);
  border-radius: 4px;
}

.schedule-scroll-hint::before {
  content: "↔ ";
  font-weight: 700;
  color: var(--accent);
}

.table-wrap-scroll {
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 760px) {
  #day .schedule-scroll-hint {
    display: block;
  }

  .table-wrap-scroll {
    margin-right: -4px;
    padding-bottom: 4px;
  }

  .calendar-tabs .division-panel.is-junior .table-wrap-scroll {
    box-shadow: inset -16px 0 12px -12px rgb(27 75 155 / 0.12);
  }

  .calendar-tabs .division-panel.is-senior .table-wrap-scroll {
    box-shadow: inset -16px 0 12px -12px rgb(10 133 102 / 0.12);
  }

  .table-wrap-scroll .schedule-week {
    border-collapse: separate;
    border-spacing: 0;
  }

  .schedule-week thead th:first-child,
  .schedule-week th[scope="row"] {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 5.5rem;
    min-width: 5.5rem;
    max-width: 5.5rem;
    padding: 6px 4px;
    box-shadow: 4px 0 8px -4px rgb(0 0 0 / 0.1);
  }

  .schedule-week thead th:first-child {
    z-index: 3;
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .calendar-tabs .division-panel.is-junior .schedule-week thead th:first-child {
    background: #dce6f5;
  }

  .calendar-tabs .division-panel.is-senior .schedule-week thead th:first-child {
    background: #d4ebe4;
  }

  .calendar-tabs .division-panel.is-junior .schedule-week th[scope="row"] {
    background: #e4ecf7;
  }

  .calendar-tabs .division-panel.is-senior .schedule-week th[scope="row"] {
    background: #dff0ea;
  }

  .schedule-week th[scope="row"] {
    font-size: 11px;
    line-height: 1.35;
  }

  .schedule-week .schedule-time,
  .schedule-week .schedule-note {
    font-size: 10px;
  }

  #day .schedule-week th,
  #day .schedule-week td {
    padding: 6px 4px;
  }

  #day .schedule-week col.schedule-week-label {
    width: 5.5rem;
  }
}

.schedule-week {
  table-layout: fixed;
  width: 100%;
  min-width: 640px;
}

.schedule-week th,
.schedule-week td {
  font-size: 14px;
  line-height: 1.45;
  vertical-align: middle;
  text-align: center;
}

@media (min-width: 761px) {
  .schedule-week col.schedule-week-label {
    width: 10.75rem;
  }

  .schedule-week thead th:first-child,
  .schedule-week th[scope="row"] {
    width: 10.75rem;
    min-width: 10.75rem;
    max-width: 10.75rem;
    box-sizing: border-box;
    padding-right: 12px;
  }
}

.schedule-week th[scope="row"] {
  text-align: left;
  white-space: normal;
  font-weight: 700;
}

.schedule-week .schedule-time {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--sub);
}

.schedule-week .schedule-note {
  display: block;
  font-size: 12px;
  color: var(--sub);
}

@media (max-width: 760px) {
  #day .table-wrap-scroll .schedule-week col.schedule-week-label {
    width: 5.5rem;
  }

  #day .table-wrap-scroll .schedule-week thead th:first-child,
  #day .table-wrap-scroll .schedule-week tbody th[scope="row"] {
    width: 5.5rem;
    min-width: 5.5rem;
    max-width: 5.5rem;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.curriculum-table {
  width: 100%;
  min-width: 0;
}

.curriculum-table th[scope="col"]:not(:first-child),
.curriculum-table td {
  text-align: center;
  width: 4.5em;
}

.curriculum-table th[scope="row"] {
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 760px) {
  .curriculum-fold-body {
    min-width: 0;
    max-width: 100%;
  }

  .curriculum-fold-body .table-wrap {
    overflow-x: visible;
  }

  .curriculum-fold-body .curriculum-table {
    table-layout: fixed;
    font-size: 12px;
  }

  .curriculum-fold-body .curriculum-table th,
  .curriculum-fold-body .curriculum-table td {
    padding: 7px 3px;
    vertical-align: middle;
  }

  .curriculum-table thead th {
    font-size: 10px;
    letter-spacing: 0;
    line-height: 1.35;
    hyphens: auto;
  }

  .curriculum-table thead th:first-child {
    width: 40%;
    padding-right: 6px;
  }

  .curriculum-table th[scope="col"]:not(:first-child) {
    width: 20%;
  }

  .curriculum-table th[scope="row"] {
    width: 40%;
    font-size: 11px;
    line-height: 1.35;
    padding-right: 6px;
    overflow-wrap: anywhere;
  }

  .curriculum-table td {
    width: 20%;
    font-size: 12px;
  }
}

.steps li strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}

thead th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sub);
  border-bottom: 1px solid var(--ink);
}

.note,
.home-note {
  margin: 16px 0 0;
  padding: 10px 14px;
  background: var(--soft);
  border-left: 4px solid var(--accent);
  color: var(--sub);
  font-size: 14px;
}

.fee-hero {
  position: relative;
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
  padding: 22px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.fee-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--grad);
  border-radius: 8px 8px 0 0;
}

.fee-hero strong {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 900;
  line-height: 1.3;
  color: var(--accent);
}

.subhead { margin-top: 28px; }

.tablist { display: flex; gap: 8px; margin: 0 0 16px; }

.tablist button {
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 14px;
  cursor: pointer;
}

.tablist button[aria-selected="true"] {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

details:last-of-type { border-bottom: 1px solid var(--line); }

summary { cursor: pointer; font-weight: 700; }
summary:hover { color: var(--accent); }

.dl { display: grid; gap: 0; margin: 0; }

.dl div {
  display: grid;
  gap: 2px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.dl dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sub);
}

.dl dd { margin: 0; }

.map {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
  min-height: 240px;
}

.map iframe { width: 100%; height: 420px; border: 0; display: block; }

.related {
  padding: 40px 0 48px;
  background: var(--soft);
  border-top: 1px solid var(--line);
}

.related h2 { font-size: 22px; margin: 0 0 16px; }

.related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 20px;
}

.related li {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.related a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

.related a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(200px, 0.75fr);
  gap: 40px;
  align-items: start;
}

.contact-side h2,
.contact-form > h2 {
  margin-top: 0;
  font-size: clamp(20px, 2.8vw, 24px);
}

.contact-tel {
  margin: 8px 0 16px;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 900;
  line-height: 1.2;
}

.contact-tel a {
  color: var(--accent);
  text-decoration: none;
}

.contact-tel a:hover {
  text-decoration: underline;
}

.contact-form {
  padding: 28px 24px;
  background: var(--soft);
  border-radius: 12px;
}

.form-row {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.form-row label {
  font-size: 14px;
  font-weight: 700;
}

.form-row .req {
  margin-left: 6px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
}

.form-row textarea {
  resize: vertical;
  min-height: 160px;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.form-check label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  line-height: 1.55;
}

.form-check input[type="checkbox"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.form-actions {
  margin-top: 24px;
}

.form-status {
  margin: 16px 0 0;
  padding: 10px 14px;
  background: var(--panel);
  border-left: 4px solid var(--accent);
  font-size: 14px;
}

@media (max-width: 760px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

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

.club-card {
  margin: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.club-card-photo {
  aspect-ratio: 4 / 3;
  background: #cfd6de;
}

.club-card-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.club-card h3 {
  margin: 0;
  padding: 14px 12px 16px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
  color: var(--ink);
}

.club-card.is-inactive {
  opacity: 0.72;
}

.club-note {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}

@media (max-width: 900px) {
  .club-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .club-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

.page-cta {
  padding: 48px 0;
  background: var(--grad);
  color: #fff;
  border-top: 0;
}

.page-cta .wrap {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.page-cta h2 {
  margin: 0 0 6px;
  color: #fff;
}

.page-cta p {
  margin: 0;
}

.page-cta .ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.page-cta .btn {
  background: #fff;
  color: #2f6fc9;
}

.page-cta .btn:hover {
  background: #fff;
  color: #2863b8;
}

.page-cta .btn:not(.line)::after {
  background: linear-gradient(100deg, transparent, rgba(47, 111, 201, 0.28), transparent);
}

.site-foot,
.footer {
  padding: 36px 0 48px;
  font-size: 14px;
  color: var(--sub);
  background: var(--bg);
}

.site-foot .wrap,
.footer .wrap.footer-grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.site-foot-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-foot-nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.site-foot-nav-row > a {
  margin-right: 0;
}

.site-foot a,
.footer a {
  margin-right: 14px;
  color: var(--sub);
  text-decoration: none;
}

.site-foot a:hover,
.footer a:hover { color: var(--ink); }

.sns-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 0;
  margin-left: 0;
  vertical-align: middle;
}

@media (max-width: 759px) {
  .site-foot .wrap,
  .footer .wrap.footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }

  .site-foot-nav {
    align-items: center;
    width: 100%;
  }

  .site-foot-nav-row {
    justify-content: center;
  }

  .site-foot a,
  .footer a {
    margin-right: 0;
  }
}

@media (min-width: 760px) {
  .site-foot-nav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px 14px;
    width: 100%;
  }

  .site-foot-nav-row {
    display: contents;
  }

  .site-foot-nav-row .sns-mini {
    margin-left: 0;
  }
}

.site-foot .sns-mini {
  gap: 10px;
}

.site-foot .sns-mini a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  border-radius: 50%;
  color: #fff;
}

.site-foot .sns-mini a:hover { color: #fff; opacity: 0.85; }
.site-foot .sns-mini .sns-ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.site-foot .sns-mini .sns-fb { background: #1877f2; }
.site-foot .sns-mini svg { display: block; }
.site-foot .sns-mini svg path { fill: #fff; fill-rule: evenodd; }

.site-foot p,
.footer p { margin: 0 0 8px; }

.footer-name {
  font-weight: 900;
  color: var(--ink);
  font-size: 16px;
}

@media (min-width: 760px) {
  .feature-grid,
  .job-grid,
  .card-grid,
  .theme-cols,
  .two { grid-template-columns: 1fr 1fr; }
  .u-item { grid-template-columns: 13rem 1fr; align-items: start; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .hd:has(.nav-toggle) nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px 20px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .hd:has(.nav-toggle) nav.is-open { display: flex; }
  .hd:has(.nav-toggle) nav > a,
  .hd:has(.nav-toggle) .nav-item > a,
  .hd:has(.nav-toggle) .nav-parent > a {
    font-size: 16px;
    padding: 12px 0;
  }
  .hd:has(.nav-toggle) nav a.btn {
    margin-top: 8px;
    text-align: center;
  }

  .nav-item {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .nav-parent {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .nav-parent > a {
    flex: 1;
    min-width: 0;
  }

  .nav-sub-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .nav-sub-toggle::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    translate: 0 -2px;
  }

  .nav-item.is-open .nav-sub-toggle::after {
    transform: rotate(-135deg);
    translate: 0 2px;
  }

  .nav-sub {
    display: none;
    position: static;
    min-width: 0;
    margin: 0 0 8px;
    padding: 0 0 0 12px;
    border: 0;
    border-radius: 0;
    border-left: 3px solid var(--line);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    background: transparent;
  }

  .nav-item.is-open > .nav-sub {
    display: block;
  }

  .nav-sub a {
    padding: 8px 0;
    white-space: normal;
  }

  .nav-sub a:hover,
  .nav-sub a[aria-current="page"] {
    background: transparent;
  }
}

@media (max-width: 900px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .page-side {
    display: none;
  }

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

@media (max-width: 760px) {
  .page-head { padding-top: 32px; }
  .page-head h1 { font-size: clamp(28px, 8vw, 36px); }
  .feature-grid,
  .job-grid,
  .card-grid,
  .theme-cols,
  .two { grid-template-columns: 1fr; }
  .facility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover::after,
  .btn-solid:hover::after { animation: none; }
}
