:root {
  --school-red: #9f1722;
  --school-red-dark: #74101a;
  --school-red-soft: #f8ecec;
  --school-gold: #c69b55;
  --school-gold-soft: #faf4e8;
  --school-logo-blue: #2a9bcf;
  --school-ink: #17202a;
  --school-muted: #667085;
  --school-line: #e8e4dc;
  --school-paper: #f8f6f1;
  --school-white: #ffffff;
  --school-shadow: 0 18px 50px rgba(29, 24, 18, 0.09);
  --school-radius: 18px;
  --school-container: min(1200px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--school-ink);
  background: var(--school-paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

.school-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;
}

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

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

button,
input {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid rgba(198, 155, 85, 0.75);
  outline-offset: 3px;
}

.school-container {
  width: var(--school-container);
  margin-inline: auto;
}

.school-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--school-red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.school-kicker::before {
  width: 30px;
  height: 2px;
  content: "";
  background: var(--school-gold);
}

.school-section {
  padding: 88px 0;
}

.school-section--white {
  background: var(--school-white);
}

.school-section--ink {
  color: var(--school-white);
  background: var(--school-ink);
}

.school-heading {
  margin: 0;
  font-family: "Source Han Serif SC", "Songti SC", "SimSun", serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.school-heading--small {
  font-size: clamp(26px, 3vw, 38px);
}

.school-lead {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--school-muted);
  font-size: 17px;
}

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

.school-more {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--school-red);
  font-weight: 700;
}

.school-more::after {
  content: "→";
  transition: transform 0.2s ease;
}

.school-more:hover::after {
  transform: translateX(4px);
}

.school-more--button {
  min-height: 42px;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid rgba(151, 25, 34, 0.28);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(85, 25, 29, 0.08);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.school-more--button:hover,
.school-more--button:focus-visible {
  border-color: var(--school-red);
  color: #fff;
  background: var(--school-red);
  box-shadow: 0 8px 20px rgba(151, 25, 34, 0.22);
}

.school-section__aside {
  max-width: 660px;
  text-align: right;
}

.school-section__aside .school-lead {
  margin-top: 0;
}

.school-section__aside .school-more {
  margin-top: 18px;
}

.school-data-status {
  display: block;
  width: 100%;
  margin: 0;
  padding: 18px 16px;
  color: var(--school-muted);
  text-align: center;
}

.school-data-status--error {
  color: var(--school-red);
}

/* Header */
.school-topbar {
  color: rgba(255, 255, 255, 0.78);
  background: #141a20;
  font-size: 13px;
}

.school-topbar__inner {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.school-topbar__links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.school-topbar a:hover {
  color: var(--school-white);
}

.school-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background:
    radial-gradient(circle at 12% 28%, rgba(165, 31, 42, 0.075), transparent 29%),
    radial-gradient(circle at 86% 18%, rgba(198, 155, 87, 0.15), transparent 27%),
    linear-gradient(135deg, rgba(255, 251, 243, 0.985), rgba(247, 241, 230, 0.985));
  box-shadow: 0 1px 0 rgba(112, 76, 45, 0.12);
}

.school-header.is-stuck {
  box-shadow: 0 12px 36px rgba(23, 32, 42, 0.12);
}

.school-brandbar {
  position: relative;
  display: flex;
  min-height: 102px;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.school-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
}

.school-brand__mark {
  position: relative;
  display: block;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(177, 129, 68, 0.2);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 22px rgba(104, 55, 39, 0.08);
}

.school-brand__mark img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 5% center;
}

.school-brand__identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.school-brand__titleline {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  gap: 12px;
}

.school-brand__wordmark {
  display: block;
  width: clamp(220px, 23vw, 300px);
  max-width: 100%;
  height: auto;
  flex: 0 1 auto;
  filter: brightness(0) saturate(100%) invert(55%) sepia(54%) saturate(1187%) hue-rotate(157deg) brightness(88%) contrast(88%);
}

.school-brand__center {
  margin: 0 0 14px;
  flex: 0 0 auto;
  color: var(--school-logo-blue);
  font-family: "STXingkai", "华文行楷", "FZXingKai-S04S", "KaiTi", "楷体", serif;
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.school-brand__center img {
  display: block;
  width: 8.16em;
  max-width: none;
  height: 1em;
}

.school-brand__motto {
  width: clamp(220px, 23vw, 300px);
  margin: -12px 0 0;
  color: #665e55;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.26em;
  text-align: center;
  white-space: nowrap;
}

.school-search {
  position: relative;
  width: min(310px, 30vw);
  flex: 0 0 auto;
}

.school-search--scoped {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  width: min(460px, 42vw);
}

.school-search--scoped select {
  min-width: 0;
  height: 46px;
  padding: 0 30px 0 14px;
  border: 1px solid var(--school-line);
  border-right: 0;
  border-radius: 999px 0 0 999px;
  color: #495461;
  background-color: #f3f0e9;
  outline: 0;
  cursor: pointer;
}

.school-search input[type="text"],
.school-search input[type="search"] {
  width: 100%;
  height: 46px;
  padding: 0 54px 0 18px;
  border: 1px solid var(--school-line);
  border-radius: 999px;
  color: var(--school-ink);
  background: #faf9f6;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.school-search input[type="text"]:focus,
.school-search input[type="search"]:focus {
  border-color: var(--school-red);
  box-shadow: 0 0 0 4px rgba(159, 23, 34, 0.08);
}

.school-search--scoped input[type="search"] {
  border-radius: 0 999px 999px 0;
}

.school-search--scoped select:focus {
  border-color: var(--school-red);
  box-shadow: inset 0 0 0 1px var(--school-red);
}

.school-search button {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--school-red);
  line-height: 1;
  cursor: pointer;
}

.school-search button img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  pointer-events: none;
}

.school-navwrap {
  border-top: 1px solid rgba(166, 121, 63, 0.17);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.school-nav {
  display: flex;
  min-height: 58px;
  align-items: stretch;
  gap: 4px;
}

.school-nav__item {
  position: relative;
  display: flex;
  align-items: stretch;
}

.school-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 22px;
  font-size: 16px;
  font-weight: 700;
}

.school-nav__link::after {
  position: absolute;
  right: 22px;
  bottom: 0;
  left: 22px;
  height: 3px;
  content: "";
  background: var(--school-red);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.school-nav__item:hover > .school-nav__link,
.school-nav__link:hover,
.school-nav__link.is-active {
  color: var(--school-red);
}

.school-nav__item:hover > .school-nav__link::after,
.school-nav__link:hover::after,
.school-nav__link.is-active::after {
  transform: scaleX(1);
}

.school-subnav {
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  width: 190px;
  padding: 10px;
  border-top: 3px solid var(--school-red);
  border-radius: 0 0 12px 12px;
  background: #fff;
  box-shadow: var(--school-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.school-nav__item:hover .school-subnav,
.school-nav__item:focus-within .school-subnav {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.school-subnav a {
  display: block;
  padding: 10px 13px;
  border-radius: 8px;
  color: #35404c;
  font-size: 14px;
}

.school-subnav a:hover {
  color: var(--school-red);
  background: var(--school-red-soft);
}

.school-nav-toggle,
.school-subnav-toggle {
  display: none;
}

/* Hero */
.school-hero {
  position: relative;
  min-height: clamp(500px, 66vw, 680px);
  overflow: hidden;
  color: #fff;
  background: #3f2928;
}

.school-hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.school-hero__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.school-hero__slide {
  height: 100%;
  flex: 0 0 100%;
}

.school-hero__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  animation: schoolHeroIn 1.2s ease both;
}

.school-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: clamp(500px, 66vw, 680px);
  align-items: center;
  padding: 72px 0;
}

.school-hero__copy {
  width: min(100%, 680px);
  padding: 34px 38px 36px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  background: rgba(12, 20, 27, 0.22);
  box-shadow: 0 24px 70px rgba(8, 15, 20, 0.3);
}

.school-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: #f2d7a6;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 4px 14px rgba(0, 0, 0, 0.65);
}

.school-hero__eyebrow::before {
  width: 38px;
  height: 2px;
  content: "";
  background: var(--school-gold);
}

.school-hero h1 {
  margin: 0;
  font-family: "Source Han Serif SC", "Songti SC", "SimSun", serif;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.14;
  letter-spacing: 0.04em;
  -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.45);
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.95), 0 8px 28px rgba(0, 0, 0, 0.6);
}

.school-hero h1 span {
  white-space: nowrap;
}

.school-hero p {
  max-width: 560px;
  margin: 26px 0 0;
  color: #fff;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 4px 14px rgba(0, 0, 0, 0.7);
}

.school-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.school-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.school-button:hover {
  transform: translateY(-2px);
}

.school-button--primary {
  color: #fff;
  background: var(--school-red);
  box-shadow: 0 12px 30px rgba(159, 23, 34, 0.28);
}

.school-button--light {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

@keyframes schoolHeroIn {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: scale(1); }
}

/* Notice */
.school-notice {
  background: var(--school-white);
  border-bottom: 1px solid var(--school-line);
}

.school-notice__inner {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  min-height: 78px;
  align-items: center;
  gap: 28px;
}

.school-notice__label {
  color: var(--school-red);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.school-notice__list {
  position: relative;
  min-width: 0;
  min-height: 28px;
  overflow: hidden;
}

.school-notice__item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  opacity: 0;
  transform: translateY(90%);
  transition: opacity 0.38s ease, transform 0.38s ease;
  pointer-events: none;
}

.school-notice__item.is-active {
  z-index: 1;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.school-notice__item.is-before {
  opacity: 0;
  transform: translateY(-90%);
}

.school-notice__list strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.school-notice__list time {
  color: var(--school-muted);
  font-size: 13px;
}

/* Home content */
.school-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(40px, 7vw, 88px);
}

.school-about-photo {
  position: relative;
  min-height: 500px;
}

.school-about-photo::before {
  position: absolute;
  top: 26px;
  right: 28px;
  bottom: -26px;
  left: -28px;
  content: "";
  border: 1px solid rgba(198, 155, 85, 0.5);
  border-radius: var(--school-radius);
}

.school-about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--school-radius);
  object-fit: cover;
  box-shadow: var(--school-shadow);
}

.school-about-copy__text {
  margin: 24px 0 0;
  color: #525e6b;
  font-size: 17px;
}

.school-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.school-value {
  padding: 18px 12px;
  border-top: 2px solid var(--school-gold);
  background: #fff;
}

.school-value strong,
.school-value span {
  display: block;
}

.school-value strong {
  color: var(--school-red);
  font-size: 17px;
}

.school-value span {
  margin-top: 2px;
  color: var(--school-muted);
  font-size: 12px;
}

.school-promo {
  position: relative;
  overflow: hidden;
  background: #2a2020;
}

.school-promo__track {
  display: flex;
  transition: transform 0.6s cubic-bezier(.22,.61,.36,1);
}

.school-promo__slide {
  min-width: 100%;
}

.school-promo__slide img {
  width: 100%;
  aspect-ratio: 6.4 / 1;
  object-fit: cover;
}

.school-promo__dots {
  position: absolute;
  right: 22px;
  bottom: 14px;
  display: flex;
  gap: 8px;
}

.school-promo__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.school-promo__dot.is-active {
  width: 28px;
  border-radius: 8px;
  background: #fff;
}

.school-news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 30px;
}

.school-feature-card {
  position: relative;
  display: block;
  min-height: 480px;
  overflow: hidden;
  border-radius: var(--school-radius);
  color: #fff;
  background: #333;
  box-shadow: var(--school-shadow);
}

.school-feature-card img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.school-feature-card:hover img {
  transform: scale(1.035);
}

.school-feature-card.is-text-only {
  background:
    radial-gradient(circle at 82% 18%, rgba(232, 197, 127, 0.28), transparent 28%),
    linear-gradient(145deg, #7c1621 0%, #4b1018 58%, #2c0b10 100%);
}

.school-feature-card.is-text-only::before,
.school-feature-card.is-text-only::after {
  position: absolute;
  z-index: 1;
  color: rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.school-feature-card.is-text-only::before {
  content: "校园资讯";
  top: 34px;
  right: 34px;
  font-family: "Source Han Serif SC", "Songti SC", serif;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.school-feature-card.is-text-only::after {
  content: "CAMPUS UPDATES";
  right: 36px;
  bottom: 28px;
  font-family: Georgia, serif;
  font-size: 13px;
  letter-spacing: 0.34em;
}

@media (prefers-reduced-motion: reduce) {
  .school-notice__item {
    transition: none;
  }
}

.school-feature-card__body {
  position: absolute;
  inset: auto 0 0;
  padding: 110px 34px 32px;
  background: linear-gradient(transparent, rgba(15, 18, 21, 0.9));
}

.school-feature-card.is-text-only .school-feature-card__body {
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 52px;
  background: none;
}

.school-feature-card.is-text-only .school-feature-card__date {
  color: #f2d7a6;
  font-size: 15px;
  letter-spacing: 0.12em;
}

.school-feature-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.school-content-badge {
  display: inline-flex;
  min-width: 40px;
  height: 22px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.school-content-badge--news {
  border-color: rgba(38, 111, 150, 0.2);
  color: #276f96;
  background: #e9f4f9;
}

.school-content-badge--notice {
  border-color: rgba(165, 31, 42, 0.2);
  color: #a51f2a;
  background: #fdecef;
}

.school-feature-card.is-text-only h3 {
  max-width: 12em;
  margin-top: 18px;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.32;
}

.school-feature-card__date {
  color: #f2d7a6;
  font-size: 13px;
}

.school-feature-card h3 {
  margin: 9px 0 0;
  font-family: "Source Han Serif SC", "Songti SC", serif;
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.45;
}

.school-news-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--school-line);
}

.school-news-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 22px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--school-line);
  transition: padding 0.2s ease, background 0.2s ease;
}

.school-news-row:hover {
  padding-right: 12px;
  padding-left: 12px;
  background: #fff;
}

.school-news-row__date {
  display: flex;
  min-height: 68px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--school-red);
  background: var(--school-red-soft);
}

.school-news-row__date b {
  font-family: Georgia, serif;
  font-size: 25px;
  line-height: 1;
}

.school-news-row__date span {
  margin-top: 4px;
  font-size: 11px;
}

.school-news-row h3 {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}

.school-news-row h3 .school-content-badge {
  margin-top: 2px;
}

.school-news-row p {
  display: -webkit-box;
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--school-muted);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.school-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.school-service {
  position: relative;
  min-height: 460px;
  padding: 42px;
  overflow: hidden;
  border-radius: var(--school-radius);
  color: #fff;
  background: #2c3136;
}

.school-service--red {
  background: var(--school-red-dark);
}

.school-service::after {
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 310px;
  height: 310px;
  border: 65px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  content: "";
}

.school-service__head,
.school-service__list {
  position: relative;
  z-index: 1;
}

.school-service__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.school-service__head h3 {
  margin: 0;
  font-family: "Source Han Serif SC", "Songti SC", serif;
  font-size: 31px;
}

.school-service__head a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.school-service__list {
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.school-service__list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.school-service__list span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.school-service__list span:last-child {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.school-service__list a:hover span:first-child {
  color: #f2d7a6;
}

.school-portals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.school-portal {
  position: relative;
  min-height: 210px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--school-line);
  border-radius: var(--school-radius);
  background: #fff;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.school-portal:hover {
  border-color: rgba(159, 23, 34, 0.24);
  box-shadow: var(--school-shadow);
  transform: translateY(-5px);
}

.school-portal__num {
  display: block;
  color: var(--school-gold);
  font-family: Georgia, serif;
  font-size: 14px;
  letter-spacing: 0.12em;
}

.school-portal h3 {
  margin: 38px 0 0;
  font-family: "Source Han Serif SC", "Songti SC", serif;
  font-size: 25px;
}

.school-portal p {
  margin: 7px 0 0;
  color: var(--school-muted);
  font-size: 13px;
}

.school-portal::after {
  position: absolute;
  right: 26px;
  bottom: 24px;
  color: var(--school-red);
  content: "↗";
  font-size: 24px;
}

/* Inner pages */
.school-page-hero {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  color: #fff;
  background: var(--school-red-dark);
}

.school-page-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.13), transparent 28%),
    linear-gradient(120deg, rgba(116, 16, 26, 0.98), rgba(23, 32, 42, 0.88));
}

.school-page-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: center;
  padding: 56px 0;
}

.school-page-hero h1 {
  margin: 0;
  font-family: "Source Han Serif SC", "Songti SC", serif;
  font-size: clamp(38px, 5vw, 58px);
  letter-spacing: 0.06em;
}

.school-breadcrumb {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.school-content-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.school-sidebar {
  position: sticky;
  top: 104px;
  padding: 24px;
  border: 1px solid var(--school-line);
  border-radius: 16px;
  background: #fff;
}

.school-sidebar__title {
  margin-bottom: 14px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--school-red);
  font-family: "Source Han Serif SC", "Songti SC", serif;
  font-size: 21px;
  font-weight: 800;
}

.school-sidebar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 10px;
  border-radius: 8px;
  color: #4f5b66;
  font-size: 14px;
}

.school-sidebar a::after {
  content: "›";
}

.school-sidebar a:hover,
.school-sidebar a.is-active {
  color: var(--school-red);
  background: var(--school-red-soft);
}

.school-panel {
  min-width: 0;
  padding: clamp(26px, 4vw, 52px);
  border-radius: var(--school-radius);
  background: #fff;
  box-shadow: 0 10px 34px rgba(29, 24, 18, 0.05);
}

.school-page-title {
  margin: 0 0 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--school-line);
  font-family: "Source Han Serif SC", "Songti SC", serif;
  font-size: clamp(26px, 3vw, 36px);
}

.school-profile__section {
  scroll-margin-top: 120px;
}

.school-profile__section + .school-profile__section {
  margin-top: 42px;
  padding-top: 38px;
  border-top: 1px solid var(--school-line);
}

.school-profile__section h2:not(.school-page-title) {
  margin: 0 0 20px;
  color: var(--school-ink);
  font-family: "Source Han Serif SC", "Songti SC", serif;
  font-size: clamp(23px, 3vw, 30px);
}

.school-profile__section p {
  margin: 0;
  color: #3e4954;
  font-size: 16px;
  line-height: 2;
  text-align: justify;
  text-indent: 2em;
}

.school-profile__section p + p {
  margin-top: 14px;
}

.school-honor-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
}

.school-honor-list li {
  position: relative;
  padding: 15px 18px 15px 48px;
  border: 1px solid var(--school-line);
  border-radius: 10px;
  color: #3e4954;
  background: linear-gradient(135deg, #fff, #fcfaf6);
  line-height: 1.65;
}

.school-honor-list li::before {
  position: absolute;
  top: 15px;
  left: 18px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  color: #fff;
  background: var(--school-red);
  content: "✓";
  font-size: 12px;
  font-weight: 800;
  line-height: 21px;
  text-align: center;
}

.school-profile__section .school-profile__closing {
  padding: 22px 24px;
  border-left: 4px solid var(--school-gold);
  border-radius: 0 10px 10px 0;
  background: var(--school-gold-soft);
  font-weight: 600;
}

.school-richtext {
  color: #3e4954;
  font-size: 17px;
  line-height: 2;
}

.school-richtext img {
  height: auto !important;
  margin: 28px auto;
  border-radius: 10px;
}

.school-richtext table {
  max-width: 100%;
}

.school-list {
  border-top: 1px solid var(--school-line);
}

.school-list-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--school-line);
}

.school-list-item__date {
  text-align: center;
}

.school-list-item__date b,
.school-list-item__date span {
  display: block;
}

.school-list-item__date b {
  color: var(--school-red);
  font-family: Georgia, serif;
  font-size: 31px;
  line-height: 1;
}

.school-list-item__date span {
  margin-top: 8px;
  color: var(--school-muted);
  font-size: 11px;
}

.school-list-item h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
}

.school-list-item p {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--school-muted);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.school-list-item__arrow {
  color: var(--school-gold);
  font-size: 22px;
}

.school-list-item:hover h2 {
  color: var(--school-red);
}

.school-news-center-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}

.school-news-browser {
  padding-top: 28px;
}

.school-news-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--school-line);
}

.school-news-tabs button {
  min-width: 122px;
  padding: 11px 22px;
  border: 1px solid var(--school-line);
  border-radius: 999px;
  color: #4f5b66;
  background: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.school-news-tabs button:hover,
.school-news-tabs button.is-active {
  border-color: var(--school-red);
  color: #fff;
  background: var(--school-red);
}

.school-news-archive {
  min-height: 770px;
}

.school-news-entry {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px solid var(--school-line);
}

.school-news-entry.is-filter-hidden,
.school-news-entry[hidden],
.school-news-empty[hidden],
.school-news-pagination[hidden] {
  display: none !important;
}

.school-news-entry > time {
  text-align: center;
}

.school-news-entry > time b,
.school-news-entry > time span {
  display: block;
}

.school-news-entry > time b {
  color: var(--school-red);
  font-family: Georgia, serif;
  font-size: 32px;
  line-height: 1;
}

.school-news-entry > time span {
  margin-top: 7px;
  color: var(--school-muted);
  font-size: 11px;
}

.school-news-entry__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 6px;
  color: var(--school-muted);
  font-size: 12px;
}

.school-news-entry__meta span:first-child {
  color: var(--school-red);
}

.school-news-entry h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
}

.school-news-entry h3 a:hover {
  color: var(--school-red);
}

.school-news-entry p {
  margin: 7px 0 0;
  color: var(--school-muted);
  font-size: 13px;
  line-height: 1.7;
}

.school-news-entry__arrow {
  color: var(--school-gold);
  font-size: 20px;
}

.school-news-empty {
  padding: 70px 20px;
  color: var(--school-muted);
  text-align: center;
}

.school-news-pagination {
  align-items: center;
}

.school-news-pagination button {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid var(--school-line);
  border-radius: 8px;
  color: var(--school-ink);
  background: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.school-news-pagination button:hover,
.school-news-pagination button.is-active {
  border-color: var(--school-red);
  color: #fff;
  background: var(--school-red);
}

.school-news-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.school-news-page-numbers,
.school-pagination .school-news-page-numbers {
  display: inline-flex;
  width: auto;
  height: auto;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.school-click-ranking {
  position: sticky;
  top: 104px;
  padding: 30px 26px;
}

.school-click-ranking h2 {
  margin: 3px 0 18px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--school-red);
  font-family: "Source Han Serif SC", "Songti SC", serif;
  font-size: 24px;
}

.school-click-ranking ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.school-click-ranking li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 3px 10px;
  padding: 15px 0;
  border-bottom: 1px solid var(--school-line);
}

.school-click-ranking li > span {
  grid-row: 1 / 3;
  color: var(--school-gold);
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
}

.school-click-ranking li:nth-child(-n + 3) > span {
  color: var(--school-red);
}

.school-click-ranking a {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.school-click-ranking a:hover {
  color: var(--school-red);
}

.school-click-ranking small {
  color: var(--school-muted);
  font-size: 11px;
}

.school-admissions-contact {
  display: grid;
  gap: 5px;
  margin-top: 22px;
  padding: 18px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--school-red), var(--school-red-dark));
}

.school-admissions-contact strong {
  font-size: 13px;
  letter-spacing: 0.08em;
}

.school-admissions-contact a {
  color: #fff;
  font-family: Georgia, serif;
  font-size: 24px;
}

.school-admissions-contact span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  line-height: 1.6;
}

.school-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 38px;
  padding: 0;
  list-style: none;
}

.school-pagination li {
  list-style: none;
}

.school-pagination a,
.school-pagination span {
  display: flex;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--school-line);
  border-radius: 8px;
  background: #fff;
}

.school-pagination a:hover,
.school-pagination .page-num-current {
  border-color: var(--school-red);
  color: #fff;
  background: var(--school-red);
}

.school-article {
  max-width: 900px;
  margin: 0 auto;
}

.school-article__head {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--school-line);
  text-align: center;
}

.school-article__head h1 {
  margin: 0;
  font-family: "Source Han Serif SC", "Songti SC", serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.45;
}

.school-article__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 17px;
  color: var(--school-muted);
  font-size: 13px;
}

.school-article__body {
  padding: 38px 0;
}

.school-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.school-tags a {
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--school-red);
  background: var(--school-red-soft);
  font-size: 12px;
}

.school-article-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding-top: 26px;
  border-top: 1px solid var(--school-line);
}

.school-article-nav > div {
  padding: 18px;
  border-radius: 12px;
  background: var(--school-paper);
  font-size: 13px;
}

.school-article-nav strong {
  display: block;
  margin-bottom: 5px;
  color: var(--school-red);
}

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

.school-gallery-card {
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(29, 24, 18, 0.06);
}

.school-gallery-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ece9e2;
}

.school-gallery-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.school-gallery-card:hover img {
  transform: scale(1.05);
}

.school-gallery-card h2 {
  margin: 0;
  padding: 18px;
  font-size: 16px;
  line-height: 1.5;
}

.school-video {
  width: 100%;
  border-radius: 14px;
  background: #000;
}

.school-empty {
  padding: 70px 20px;
  color: var(--school-muted);
  text-align: center;
}

.static-search-status {
  min-height: 24px;
  color: var(--school-red);
  font-size: 14px;
  font-weight: 700;
}

.is-search-hidden {
  display: none !important;
}

/* Footer */
.school-footer {
  color: rgba(255, 255, 255, 0.72);
  background: #13191f;
}

.school-footer__main {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 60px;
  padding: 66px 0 52px;
}

.school-footer__brand {
  color: #fff;
  font-family: "Source Han Serif SC", "Songti SC", serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.school-footer__motto {
  max-width: 420px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.58);
}

.school-footer h3 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 16px;
}

.school-footer p {
  margin: 8px 0;
}

.school-footer__links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 18px;
}

.school-footer__links a:hover {
  color: #fff;
}

.school-footer__bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  text-align: center;
}

.school-backtop {
  position: fixed;
  z-index: 40;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--school-red);
  box-shadow: 0 10px 24px rgba(116, 16, 26, 0.3);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.school-backtop.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.school-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.school-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .school-reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  :root {
    --school-container: min(100% - 32px, 760px);
  }

  .school-topbar,
  .school-topbar__links,
  .school-search {
    display: none;
  }

  .nav-open .school-search {
    position: fixed;
    z-index: 70;
    top: 98px;
    right: 16px;
    left: 16px;
    display: block;
    width: auto;
    max-width: 728px;
    margin: 0 auto;
  }

  .nav-open .school-search--scoped {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
  }

  .nav-open .school-search input[type="text"],
  .nav-open .school-search input[type="search"] {
    height: 48px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(23, 32, 42, 0.1);
  }

  .school-brandbar {
    min-height: 82px;
  }

  .school-brand__mark,
  .school-brand__mark img {
    width: 60px;
    height: 60px;
  }

  .school-brand__mark {
    flex-basis: 60px;
  }

  .school-nav-toggle {
    display: flex;
    min-width: 72px;
    height: 46px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 2px solid #fff;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #b61f28, var(--school-red));
    box-shadow: 0 5px 15px rgba(139, 27, 35, 0.3);
    cursor: pointer;
    touch-action: manipulation;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  }

  .school-nav-toggle:hover,
  .school-nav-toggle:focus-visible {
    background: linear-gradient(135deg, #971922, #c72b35);
    box-shadow: 0 7px 20px rgba(139, 27, 35, 0.4);
  }

  .school-nav-toggle:active {
    transform: scale(0.96);
  }

  .school-nav-toggle__icon {
    position: relative;
    display: block;
    width: 19px;
    height: 2px;
    flex: 0 0 19px;
    border-radius: 2px;
    background: currentColor;
    transition: background 0.2s ease;
  }

  .school-nav-toggle__icon::before,
  .school-nav-toggle__icon::after {
    position: absolute;
    left: 0;
    width: 19px;
    height: 2px;
    border-radius: 2px;
    content: "";
    background: currentColor;
    transition: top 0.2s ease, transform 0.2s ease;
  }

  .school-nav-toggle__icon::before {
    top: -6px;
  }

  .school-nav-toggle__icon::after {
    top: 6px;
  }

  .school-nav-toggle__label {
    color: currentColor;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
  }

  .nav-open .school-nav-toggle {
    background: #7f1720;
    box-shadow: 0 5px 18px rgba(77, 12, 18, 0.38);
  }

  .nav-open .school-nav-toggle__icon {
    background: transparent;
  }

  .nav-open .school-nav-toggle__icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .nav-open .school-nav-toggle__icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .school-navwrap {
    position: fixed;
    z-index: 60;
    top: 82px;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 20px 16px 50px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(255, 255, 255, 0.99);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .has-site-search .school-navwrap {
    padding-top: 82px;
  }

  .nav-open .school-navwrap {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .school-nav {
    display: block;
    width: min(100%, 760px);
    margin: 0 auto;
  }

  .school-nav__item {
    display: grid;
    grid-template-columns: 1fr auto;
    border-bottom: 1px solid var(--school-line);
  }

  .school-nav__link {
    min-height: 58px;
    padding: 0 8px;
  }

  .school-nav__link,
  .school-sidebar a,
  .school-news-tabs button,
  .school-news-pagination button {
    touch-action: manipulation;
  }

  .school-nav__link::after {
    display: none;
  }

  .school-subnav-toggle {
    display: block;
    width: 48px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .school-subnav-toggle::before {
    content: "+";
    font-size: 20px;
  }

  .school-nav__item.is-open .school-subnav-toggle::before {
    content: "−";
  }

  .school-subnav {
    position: static;
    display: none;
    grid-column: 1 / -1;
    width: auto;
    padding: 4px 0 14px 14px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .school-nav__item.is-open .school-subnav {
    display: block;
  }

  .school-about-grid,
  .school-news-grid,
  .school-content-layout,
  .school-news-center-layout {
    grid-template-columns: 1fr;
  }

  .school-about-photo {
    min-height: 430px;
  }

  .school-content-layout {
    gap: 24px;
  }

  .school-sidebar {
    position: static;
  }

  .school-click-ranking {
    position: static;
  }

  .school-sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .school-footer__main {
    grid-template-columns: 1fr 1fr;
  }

  .school-footer__intro {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  :root {
    --school-container: calc(100% - 28px);
    --school-radius: 14px;
  }

  .school-topbar__inner {
    justify-content: center;
  }

  .school-topbar__welcome {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .school-brand {
    gap: 11px;
  }

  .school-brandbar {
    gap: 12px;
  }

  .school-brand__identity {
    width: min(46vw, 230px);
    max-width: min(46vw, 230px);
    align-items: flex-end;
  }

  .school-brand__titleline {
    width: 100%;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
  }

  .school-brand__wordmark {
    width: 100%;
  }

  .school-brand__center {
    margin: -7px 7px 0 0;
    font-size: clamp(17px, 5.6vw, 22px);
    line-height: 1;
    letter-spacing: 0.02em;
  }

  .school-brand__motto {
    width: 100%;
    margin-top: 2px;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.16em;
  }

  .school-section {
    padding: 54px 0;
  }

  .school-section__head {
    display: block;
    margin-bottom: 24px;
  }

  .school-heading {
    font-size: clamp(28px, 9vw, 36px);
  }

  .school-lead {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.75;
  }

  .school-section__head .school-more {
    margin-top: 16px;
  }

  .school-section__aside {
    max-width: none;
    text-align: left;
  }

  .school-section__aside .school-lead {
    margin-top: 12px;
  }

  .school-hero,
  .school-hero__inner {
    min-height: 620px;
  }

  .school-hero__inner {
    align-items: center;
    padding: 40px 0;
  }

  .school-hero__slide img {
    object-position: 51% center;
  }

  .school-hero__copy {
    padding: 24px 22px 26px;
    border-radius: 19px;
    background: rgba(12, 20, 27, 0.32);
  }

  .school-hero h1 {
    font-size: clamp(34px, 9.3vw, 40px);
    line-height: 1.18;
    letter-spacing: 0.02em;
  }

  .school-hero p {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.75;
  }

  .school-hero__eyebrow {
    margin-bottom: 15px;
    font-size: 12px;
    letter-spacing: 0.12em;
  }

  .school-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
  }

  .school-button {
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
  }

  .school-notice__inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
    min-height: 0;
    padding: 15px 0;
  }

  .school-notice__label {
    grid-column: 1 / -1;
  }

  .school-notice__list time {
    display: none;
  }

  .school-notice__list strong {
    font-size: 14px;
  }

  .school-notice .school-more {
    font-size: 13px;
  }

  .school-about-photo {
    min-height: 280px;
  }

  .school-about-photo::before {
    display: none;
  }

  .school-values,
  .school-portals,
  .school-service-grid,
  .school-gallery,
  .school-footer__main,
  .school-article-nav {
    grid-template-columns: 1fr;
  }

  .school-value {
    padding: 14px 16px;
  }

  .school-promo__slide img {
    aspect-ratio: 2.05 / 1;
  }

  .school-feature-card,
  .school-feature-card img {
    min-height: 330px;
  }

  .school-feature-card__body {
    padding: 84px 20px 22px;
  }

  .school-feature-card h3 {
    font-size: 22px;
  }

  .school-feature-card.is-text-only .school-feature-card__body {
    padding: 60px 26px;
  }

  .school-feature-card.is-text-only h3 {
    font-size: 30px;
  }

  .school-feature-card.is-text-only::before {
    top: 24px;
    right: 22px;
    font-size: 28px;
  }

  .school-feature-card.is-text-only::after {
    right: 22px;
    bottom: 20px;
    font-size: 11px;
  }

  .school-news-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
  }

  .school-news-row__date {
    min-height: 58px;
  }

  .school-news-row h3 {
    font-size: 15px;
  }

  .school-service {
    min-height: 0;
    padding: 28px 20px;
  }

  .school-service__head {
    display: block;
  }

  .school-service__head h3 {
    font-size: 26px;
  }

  .school-service__head span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
  }

  .school-service__list {
    margin-top: 22px;
  }

  .school-service__list a {
    gap: 10px;
    padding: 14px 0;
    font-size: 14px;
  }

  .school-portal {
    min-height: 170px;
    padding: 24px;
  }

  .school-portal h3 {
    margin-top: 24px;
    font-size: 22px;
  }

  .school-page-hero,
  .school-page-hero__inner {
    min-height: 210px;
  }

  .school-page-hero__inner {
    padding: 40px 0;
  }

  .school-page-hero h1 {
    font-size: 34px;
  }

  .school-panel {
    padding: 24px 18px;
  }

  .school-content-layout {
    gap: 18px;
  }

  .school-sidebar {
    padding: 16px;
    overflow: hidden;
  }

  .school-sidebar__title {
    margin-bottom: 10px;
    padding-bottom: 11px;
    font-size: 18px;
  }

  .school-sidebar nav {
    flex-wrap: nowrap;
    padding-bottom: 3px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .school-sidebar nav::-webkit-scrollbar {
    display: none;
  }

  .school-sidebar a {
    min-height: 42px;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .school-profile__section + .school-profile__section {
    margin-top: 32px;
    padding-top: 30px;
  }

  .school-profile__section p {
    font-size: 15px;
    line-height: 1.9;
  }

  .school-honor-list li {
    padding: 13px 14px 13px 44px;
    font-size: 14px;
  }

  .school-profile__section .school-profile__closing {
    padding: 18px;
  }

  .school-list-item {
    grid-template-columns: 62px 1fr;
    gap: 15px;
  }

  .school-list-item__arrow {
    display: none;
  }

  .school-list-item h2 {
    font-size: 16px;
  }

  .school-list-item p {
    -webkit-line-clamp: 1;
  }

  .school-news-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding-bottom: 16px;
  }

  .school-news-tabs button {
    min-width: 0;
    padding-right: 12px;
    padding-left: 12px;
  }

  .school-news-archive {
    min-height: 0;
  }

  .school-news-entry {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 0;
  }

  .school-news-entry > time b {
    font-size: 27px;
  }

  .school-news-entry h3 {
    font-size: 16px;
  }

  .school-news-entry__meta {
    gap: 8px;
    font-size: 11px;
  }

  .school-news-entry p,
  .school-news-entry__arrow {
    display: none;
  }

  .school-news-pagination {
    gap: 6px;
    margin-top: 28px;
  }

  .school-news-pagination button {
    min-width: 36px;
    height: 36px;
    padding: 0 9px;
  }

  .school-news-page-numbers,
  .school-pagination .school-news-page-numbers {
    gap: 5px;
  }

  .school-click-ranking {
    padding: 24px 18px;
  }

  .school-click-ranking h2 {
    font-size: 22px;
  }

  .school-admissions-contact a {
    font-size: 21px;
  }

  .school-footer__main {
    gap: 36px;
    padding: 48px 0 38px;
  }

  .school-footer__links {
    grid-template-columns: 1fr 1fr;
  }

  .school-footer p,
  .school-footer__bottom a {
    overflow-wrap: anywhere;
  }

  .school-backtop {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 420px) {
  :root {
    --school-container: calc(100% - 24px);
  }

  .school-brand__mark,
  .school-brand__mark img {
    width: 54px;
    height: 54px;
  }

  .school-brand__mark {
    flex-basis: 54px;
  }

  .school-brand__center {
    margin-top: -6px;
    margin-right: 5px;
    font-size: clamp(15px, 4.62vw, 18px);
  }

  .school-brand__motto {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .school-nav-toggle {
    min-width: 68px;
    height: 44px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .nav-open .school-search--scoped {
    grid-template-columns: 106px minmax(0, 1fr);
  }

  .school-search--scoped select {
    padding-right: 22px;
    padding-left: 11px;
    font-size: 13px;
  }

  .school-hero,
  .school-hero__inner {
    min-height: 600px;
  }

  .school-hero__inner {
    padding-top: 34px;
  }

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

  .school-news-browser,
  .school-panel {
    padding-right: 14px;
    padding-left: 14px;
  }

  .school-news-entry {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 11px;
  }

  .school-news-entry h3 {
    font-size: 15px;
  }

  .school-news-entry__meta span:last-child {
    display: none;
  }

  .school-news-pagination > button {
    font-size: 0;
  }

  .school-news-pagination > button::before {
    font-size: 18px;
  }

  .school-news-pagination > button[data-page-action="prev"]::before {
    content: "‹";
  }

  .school-news-pagination > button[data-page-action="next"]::before {
    content: "›";
  }

  .school-footer__links {
    grid-template-columns: 1fr;
  }
}
