@charset "UTF-8";
/* ==========================================================================
   東京都立高嶺高等学校 — サイト共通スタイル
   デザイン：白嶺（雪嶺と深緑）
   ========================================================================== */

:root {
  --green: #2e5a53;
  --green-dark: #1f403b;
  --green-deep: #183430;
  --green-soft: #5b847c;
  --mist: #e9efec;
  --mist-2: #dce6e2;
  --snow: #fbfcfb;
  --ink: #26302e;
  --ink-soft: #5a6663;
  --line: #d5dfdb;
  --container: 1120px;
  --gutter: 20px;
  --ridge-h: clamp(52px, 8vw, 120px);
  --ridge-h-sm: clamp(30px, 4.5vw, 64px);
  /* 本文：端末のヒラギノ角ゴ → 端末の Noto Sans CJK → なければ Noto Sans JP を読み込む（src/fonts.mjs） */
  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans CJK JP", "Noto Sans JP", "Noto Sans JP Web", sans-serif;
  /* 見出し：Shippori Mincho（サイトで使う文字だけに絞って配布。src/fonts.mjs） */
  --font-mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif CJK JP", "Noto Serif JP", serif;
  --icon-ridge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 14'%3E%3Cpath d='M0 14 10 3l4.5 5L20 1l12 13z'/%3E%3C/svg%3E");
  --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13.5 6.5 19 12l-5.5 5.5'/%3E%3C/svg%3E");
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 16px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
}

img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-underline-offset: .2em; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid #c9953a; outline-offset: 3px; }

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

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

.skip-link a {
  position: absolute;
  left: 8px; top: -60px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--green-deep);
  color: #fff;
  font-size: .875rem;
  text-decoration: none;
}
.skip-link a:focus { top: 8px; }

.icon { width: 20px; height: 20px; flex: none; }

/* 山並みのシルエット（SVG）。色は場所ごとに変える */
.ridge { display: block; width: 100%; pointer-events: none; }

/* 英字の小見出し（山の印つき） */
.eyebrow,
.page-hero-en {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  color: var(--green-soft);
  font-family: var(--font-mincho);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.eyebrow::before,
.page-hero-en::before {
  content: "";
  flex: none;
  width: 26px;
  height: 11px;
  background: currentColor;
  -webkit-mask: var(--icon-ridge) center / contain no-repeat;
  mask: var(--icon-ridge) center / contain no-repeat;
}

/* 矢印つきのテキストリンク */
.more { margin: 24px 0 0; }
.more a,
.content .more-link a,
.link-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  color: var(--green);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}
.more a .icon { width: 18px; height: 18px; transition: transform .25s; }
.content .more-link a::after,
.link-list a::after {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--icon-arrow) center / contain no-repeat;
  mask: var(--icon-arrow) center / contain no-repeat;
  transition: transform .25s;
}
.more a:hover .icon,
.content .more-link a:hover::after,
.link-list a:hover::after { transform: translateX(4px); }
.more--end { margin-top: 40px; text-align: right; }

/* ==========================================================================
   ヘッダー
   ========================================================================== */

.site-header { position: relative; background: #fff; }

.header-utility { border-bottom: 1px solid var(--mist-2); }
.utility-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  height: 40px;
}
.utility-links {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .75rem;
}
.utility-links a { color: var(--ink-soft); text-decoration: none; }
.utility-links a:hover { color: var(--green); text-decoration: underline; }

.site-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--snow);
}
.site-search input {
  flex: 1;
  min-width: 0;
  padding: 3px 4px 3px 14px;
  border: 0;
  background: transparent;
  font-size: .75rem;
}
.site-search input:focus { outline: none; }
.site-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 2px rgba(46, 90, 83, .15); }
.site-search button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--green);
  cursor: pointer;
}
.site-search .icon { width: 16px; height: 16px; }
.site-search--header { width: 210px; }

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0 18px;
}

.brand { margin: 0; font-size: 1rem; font-weight: 400; line-height: 1; }
.brand a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--green-dark);
  text-decoration: none;
}
.brand-emblem { width: 52px; height: 52px; flex: none; }
.brand-ja {
  display: block;
  font-family: var(--font-mincho);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.3;
}
.brand-en {
  display: block;
  margin-top: 5px;
  color: var(--green-soft);
  font-family: var(--font-mincho);
  font-size: .625rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.gnav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.gnav a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 14px 14px;
  color: var(--ink);
  text-decoration: none;
}
.gnav-ja { font-size: .9375rem; font-weight: 600; letter-spacing: .1em; line-height: 1.5; }
.gnav-en {
  margin-top: 2px;
  color: var(--green-soft);
  font-family: var(--font-mincho);
  font-size: .625rem;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}
.gnav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 26px;
  height: 11px;
  background: var(--green);
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity .25s, transform .25s;
  -webkit-mask: var(--icon-ridge) center / contain no-repeat;
  mask: var(--icon-ridge) center / contain no-repeat;
}
.gnav a:hover::after,
.gnav a.is-current::after { opacity: 1; transform: translate(-50%, 0); }
.gnav a:hover .gnav-ja,
.gnav a.is-current .gnav-ja { color: var(--green); }

.menu-button,
.site-menu { display: none; }

/* ==========================================================================
   トップページ
   ========================================================================== */

.hero {
  position: relative;
  height: clamp(440px, 76vh, 760px);
  background: var(--mist-2);
  color: #fff;
}
.hero-viewport { position: absolute; inset: 0; overflow: hidden; }
.hero-track {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 1.2s cubic-bezier(.45, .05, .25, 1);
  will-change: transform;
}
.hero-slide { flex: 0 0 100%; height: 100%; }
.hero-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 52, 48, .12) 0%, rgba(24, 52, 48, 0) 30%, rgba(24, 52, 48, .38) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; height: 100%; }

.hero-motto {
  position: absolute;
  top: 11%;
  right: 2%;
  margin: 0;
  font-family: var(--font-mincho);
  font-size: clamp(1.6rem, 3.1vw, 2.6rem);
  font-weight: 700;
  letter-spacing: .34em;
  line-height: 1.9;
  text-shadow: 0 0 2px rgba(0, 0, 0, .35), 0 0 18px rgba(0, 0, 0, .35);
  writing-mode: vertical-rl;
}
.hero-motto span { display: block; }
.hero-motto span:nth-child(2) { padding-top: 1.4em; }
.hero-motto span:nth-child(3) { padding-top: 2.8em; }

.hero-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--ridge-h) + 10px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.hero-name {
  margin: 0;
  font-family: var(--font-mincho);
  font-size: .8125rem;
  letter-spacing: .24em;
  text-shadow: 0 0 10px rgba(0, 0, 0, .45);
  text-transform: uppercase;
}
.hero-controls { display: flex; align-items: center; gap: 12px; }
.hero-count {
  margin: 0;
  font-family: var(--font-mincho);
  font-size: .8125rem;
  letter-spacing: .08em;
  text-shadow: 0 0 8px rgba(0, 0, 0, .45);
}
.hero-current { margin-right: .35em; font-size: 1.25rem; }
.hero-dots { display: flex; }
.hero-dots button {
  position: relative;
  width: 30px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.hero-dots button::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 11px;
  height: 2px;
  background: rgba(255, 255, 255, .5);
  transition: background-color .3s;
}
.hero-dots button[aria-current="true"]::before { background: #fff; }
.hero-toggle {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  background: rgba(24, 52, 48, .25);
  cursor: pointer;
}
.hero-toggle-icon {
  width: 8px;
  height: 10px;
  border-left: 2px solid #fff;
  border-right: 2px solid #fff;
}
.hero-toggle.is-paused .hero-toggle-icon {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-left: 8px solid #fff;
  border-right: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.ridge--hero { position: absolute; left: 0; bottom: -3px; height: calc(var(--ridge-h) + 2px); }
.ridge--hero .ridge-back { fill: rgba(251, 252, 251, .42); }
.ridge--hero .ridge-front { fill: var(--snow); }

.section { padding-top: clamp(56px, 8vw, 104px); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.section-head .more { margin: 0; }
.section-title {
  margin: 0;
  color: var(--green-dark);
  font-family: var(--font-mincho);
  font-size: clamp(1.6rem, 2.6vw, 2.125rem);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
}
.section-title a { color: inherit; text-decoration: none; }
.section-title a:hover { color: var(--green); }

/* お知らせ（トップ） */
.top-news {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 48px;
}
.top-news .section-head { align-items: flex-start; margin: 0; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.tabs a {
  display: inline-block;
  padding: 4px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: .8125rem;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.tabs a:hover { border-color: var(--green); color: var(--green); }
.tabs a[aria-current="page"] { border-color: var(--green); background: var(--green); color: #fff; }

.news-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a {
  display: grid;
  grid-template-columns: 6.6em 7em minmax(0, 1fr) 20px;
  align-items: center;
  gap: 16px;
  padding: 18px 8px;
  color: var(--ink);
  text-decoration: none;
  transition: background-color .2s;
}
.news-list a:hover { background: var(--mist); }
.news-date {
  color: var(--ink-soft);
  font-family: var(--font-mincho);
  font-size: .9375rem;
  letter-spacing: .06em;
}
.news-title { font-size: .9375rem; line-height: 1.75; }
.news-list a:hover .news-title { color: var(--green); }
.news-arrow { width: 18px; height: 18px; color: var(--green-soft); transition: transform .25s; }
.news-list a:hover .news-arrow { transform: translateX(3px); }

.badge {
  display: inline-flex;
  justify-content: center;
  padding: 1px 8px;
  border: 1px solid var(--cat, var(--green));
  background: #fff;
  color: var(--cat, var(--green));
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.6;
  white-space: nowrap;
}
.club-label { color: var(--green); font-size: .8125rem; font-weight: 600; }

/* 部活動・生徒会ニュース（写真カード） */
.club-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.club-cards a { display: block; color: var(--ink); text-decoration: none; }
.club-card-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--mist); }
.club-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.club-cards a:hover img { transform: scale(1.05); }
.club-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 14px 0 6px;
  color: var(--ink-soft);
  font-size: .8125rem;
}
.club-card-meta time { font-family: var(--font-mincho); letter-spacing: .06em; }
.club-card-title { display: block; font-size: .9375rem; line-height: 1.75; }
.club-cards a:hover .club-card-title { color: var(--green); }

/* 学校からのメッセージ（トップ） */
.top-message-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.top-message-img { position: relative; z-index: 0; margin: 0 18px 18px 0; }
.top-message-img::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  background: var(--mist);
}
.top-message-img img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.top-quote {
  margin: 22px 0 10px;
  padding: 0;
  color: var(--green-dark);
  font-family: var(--font-mincho);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.95;
  letter-spacing: .06em;
}
.top-quote p { margin: 0; }
.top-quote-by { margin: 0 0 18px; color: var(--ink-soft); font-family: var(--font-mincho); letter-spacing: .1em; }
.top-message-body > p:not([class]) { color: var(--ink-soft); font-size: .9375rem; }
.link-list { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 26px 0 0; padding: 0; list-style: none; }

/* 3つの学科（トップ） */
.dept-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dept-panels a {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--green-dark);
  color: #fff;
  text-decoration: none;
}
.dept-panel-img, .dept-panel-img img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dept-panel-img img { transition: transform .9s ease; }
.dept-panels a:hover .dept-panel-img img { transform: scale(1.05); }
.dept-panels a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 52, 48, .15) 0%, rgba(24, 52, 48, 0) 35%, rgba(24, 52, 48, .85) 100%);
}
.dept-panel-title {
  position: absolute;
  top: 24px;
  right: 20px;
  z-index: 1;
  font-family: var(--font-mincho);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 700;
  letter-spacing: .3em;
  line-height: 1.3;
  text-shadow: 0 0 14px rgba(0, 0, 0, .35);
  writing-mode: vertical-rl;
}
.dept-panel-info { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; }
.dept-panel-en {
  display: block;
  font-family: var(--font-mincho);
  font-size: .75rem;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.dept-panel-majors { display: block; margin-top: 6px; font-size: .8125rem; line-height: 1.8; }
.dept-panel-count {
  display: inline-block;
  margin-top: 12px;
  padding: 1px 10px;
  border: 1px solid rgba(255, 255, 255, .7);
  font-size: .75rem;
  letter-spacing: .1em;
}

/* 受験をご検討の方へ（トップ） */
.top-guide { margin-top: clamp(72px, 10vw, 128px); }
.ridge--guide { height: var(--ridge-h); margin-bottom: -1px; }
.ridge--guide .ridge-back { fill: var(--mist-2); }
.ridge--guide .ridge-front { fill: var(--mist); }
.top-guide-body { padding: 20px 0 clamp(64px, 8vw, 110px); background: var(--mist); }
.top-guide-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.top-guide-lead { margin: 16px 0 0; color: var(--ink-soft); font-size: .9375rem; }
.guide-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.guide-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 80px;
  padding: 14px 18px 14px 20px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green-dark);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
  transition: background-color .25s, color .25s, border-color .25s;
}
.guide-links a:hover { border-color: var(--green); background: var(--green); color: #fff; }

/* ==========================================================================
   下層ページ共通
   ========================================================================== */

.page-hero { position: relative; background: var(--mist); }
.page-hero::after {
  content: "";
  position: absolute;
  top: 16px;
  bottom: calc(var(--ridge-h-sm) * .6);
  right: max(4%, calc((100% - var(--container)) / 2));
  aspect-ratio: 1 / 1;
  background: url("/img/emblem.svg") center / contain no-repeat;
  opacity: .07;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  padding: 18px 0 calc(var(--ridge-h-sm) + 28px);
}
.page-hero-title {
  margin: 0;
  color: var(--green-dark);
  font-family: var(--font-mincho);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.4;
}
.ridge--page { position: absolute; left: 0; bottom: -2px; height: calc(var(--ridge-h-sm) + 1px); }
.ridge--page .ridge-back { fill: var(--mist-2); }
.ridge--page .ridge-front { fill: var(--snow); }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: .75rem;
  line-height: 1.6;
}
.breadcrumb li + li::before { content: "/"; margin: 0 .7em; opacity: .5; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--green); }

.sub-body { padding-top: clamp(36px, 5vw, 64px); }
.sub-body.has-side {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  grid-template-areas: "side main";
  gap: 64px;
  align-items: start;
}
.has-side .sub-main { grid-area: main; min-width: 0; }
.has-side .side { grid-area: side; }
.sub-body.is-narrow { width: min(100% - var(--gutter) * 2, 880px); }
.sub-body.is-wide { width: min(100% - var(--gutter) * 2, 960px); }

.section-links { margin-top: 72px; }
.section-links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.section-links a {
  display: block;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: .875rem;
  text-decoration: none;
}
.section-links a:hover, .section-links a[aria-current="page"] { color: var(--green); font-weight: 600; }

.side-inner { position: sticky; top: 24px; }
.side-title { margin: 0; }
.side-title a {
  display: block;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--green);
  color: var(--green-dark);
  font-family: var(--font-mincho);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.5;
  text-decoration: none;
}
.side-title-en {
  display: block;
  color: var(--green-soft);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.side-nav { margin: 0 0 32px; padding: 0; list-style: none; }
.side-nav a {
  position: relative;
  display: block;
  padding: 12px 8px 12px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: .875rem;
  line-height: 1.6;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.side-nav a::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--ink-soft);
}
.side-nav a:hover,
.side-nav a[aria-current="page"],
.side-nav a.is-current { background: var(--mist); color: var(--green); font-weight: 600; }
.side-nav a[aria-current="page"]::before,
.side-nav a.is-current::before { background: var(--green); }

.side-sub { margin: 0 0 4px; color: var(--green-dark); font-family: var(--font-mincho); font-weight: 700; }
.side-recent { margin: 0; padding: 0; list-style: none; }
.side-recent a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: .8125rem;
  line-height: 1.65;
  text-decoration: none;
}
.side-recent a:hover, .side-recent a[aria-current="page"] { color: var(--green); }
.side-recent time { display: block; color: var(--ink-soft); font-family: var(--font-mincho); font-size: .75rem; }

.toc { font-size: .8125rem; }
.toc-title { margin: 0 0 6px; color: var(--green-dark); font-family: var(--font-mincho); font-size: .9375rem; font-weight: 700; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc a {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  color: var(--ink-soft);
  line-height: 1.6;
  text-decoration: none;
}
.toc a::before {
  content: "";
  flex: none;
  width: 8px;
  height: 1px;
  margin-top: .85em;
  background: var(--green-soft);
}
.toc a:hover { color: var(--green); }
.toc--inline { display: none; }
.toc--inline,
.toc--inline.is-always {
  margin: 0 0 36px;
  padding: 16px 20px 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.toc--inline.is-always { display: block; }

/* カテゴリトップのカード */
.category-intro { margin-bottom: 36px; }
.index-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.index-cards a { display: block; color: var(--ink); text-decoration: none; }
.index-card-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--mist); }
.index-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.index-cards a:hover .index-card-img img { transform: scale(1.04); }
.index-card-body { position: relative; display: block; padding: 20px 56px 0 0; }
.index-card-title {
  display: block;
  color: var(--green-dark);
  font-family: var(--font-mincho);
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.5;
}
.index-card-desc { display: block; margin-top: 6px; color: var(--ink-soft); font-size: .875rem; line-height: 1.8; }
.index-card-more {
  position: absolute;
  right: 0;
  top: 20px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  transition: background-color .25s, color .25s;
}
.index-card-more .icon { width: 18px; height: 18px; }
.index-cards a:hover .index-card-more { background: var(--green); color: #fff; }
.index-cards--single { grid-template-columns: minmax(0, 1fr); }
.index-cards--single a { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.index-cards--single .index-card-body { padding-top: 0; }
.index-cards--single .index-card-more { top: 0; }

/* ==========================================================================
   本文
   ========================================================================== */

.content { font-size: 1rem; line-height: 2; }
.content > :first-child { margin-top: 0; }
.content p { margin: 0 0 1.1em; }
.content h2 {
  position: relative;
  margin: 3.4em 0 1.2em;
  padding: 0 0 .6em 46px;
  border-bottom: 1px solid var(--line);
  color: var(--green-dark);
  font-family: var(--font-mincho);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.5;
}
.content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 32px;
  height: 14px;
  background: var(--green);
  -webkit-mask: var(--icon-ridge) center / contain no-repeat;
  mask: var(--icon-ridge) center / contain no-repeat;
}
.content h3 {
  position: relative;
  margin: 2.4em 0 .9em;
  padding-left: 30px;
  color: var(--green-dark);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.6;
}
.content h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: .8em;
  width: 18px;
  height: 2px;
  background: var(--green);
}
.content h4 { margin: 1.9em 0 .6em; font-size: 1.0625rem; font-weight: 700; line-height: 1.6; }
.content h4::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: .6em;
  border-radius: 50%;
  background: var(--green);
  vertical-align: .16em;
}
.content h2 + h3, .content h3 + h4 { margin-top: 1.3em; }
.content ul, .content ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.content li { margin: .2em 0; }
.content ul > li::marker { color: var(--green-soft); }
.content a { color: var(--green); text-decoration-color: rgba(46, 90, 83, .45); }
.content a:hover { color: var(--green-dark); text-decoration-color: currentColor; }
.content strong { font-weight: 700; }
.content hr { margin: 2.6em 0; border: 0; border-top: 1px solid var(--line); }
.content figure { margin: 0 0 1.6em; }
.content figcaption { margin-top: .6em; color: var(--ink-soft); font-size: .8125rem; line-height: 1.7; }
.content img { display: block; }
.content .more-link { margin: 1.4em 0 0; }

.note { color: var(--ink-soft); font-size: .875rem; line-height: 1.8; }
.content .note p, .content p.note { margin-bottom: .2em; }
.content .note + p, .content .note + h2, .content .note + h3 { margin-top: 1.3em; }
.center { text-align: center; }

.motto {
  margin: 1em 0 1.1em;
  color: var(--green-dark);
  font-family: var(--font-mincho);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.7;
  text-align: center;
}
.motto--sm { margin: .6em 0 .9em; font-size: clamp(1.2rem, 2.6vw, 1.5rem); }

.statement {
  margin: 1.4em 0;
  padding: 1.1em 1.4em;
  border-left: 2px solid var(--green);
  background: var(--mist);
  color: var(--green-dark);
  font-family: var(--font-mincho);
  font-size: 1.0625rem;
  line-height: 2;
}
.statement p { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-width: 17em;
  padding: .95em 1.8em;
  background: var(--green);
  color: #fff !important;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .25s;
}
.btn:hover { background: var(--green-dark); }
.btn.is-disabled { background: #a3adab; cursor: not-allowed; }
.btn-wrap { margin: 1.8em 0; text-align: center; }
.btn-note { display: block; margin-top: .5em; color: var(--ink-soft); font-size: .8125rem; }

/* 表 */
.table-wrap { margin: 0 0 1.4em; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.content table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
  line-height: 1.65;
}
.content th, .content td {
  padding: .75em 1em;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.content thead th {
  border-bottom: 2px solid var(--green);
  background: var(--mist);
  color: var(--green-dark);
  font-weight: 700;
  white-space: nowrap;
}
.content tbody th { color: var(--green-dark); font-weight: 700; }
.content td.num, .content th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.content tr.total th, .content tr.total td { border-top: 2px solid var(--green); background: var(--mist); font-weight: 700; }
.content table.fees { min-width: 560px; }

/* 項目と内容の一覧（会場・日時など） */
.info-dl {
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr);
  margin: 1.4em 0 1.8em;
  border-top: 2px solid var(--green);
}
.info-dl dt, .info-dl dd { margin: 0; padding: .9em 1.1em; border-bottom: 1px solid var(--line); }
.info-dl dt { background: var(--mist); color: var(--green-dark); font-weight: 700; }
.info-dl--wide { grid-template-columns: 12em minmax(0, 1fr); }
.info-dl dd > :last-child { margin-bottom: 0; }
.content .info-dl dd ul { margin: 0; padding-left: 1.3em; }
.content .info-dl dd p { margin-bottom: .4em; }
.content .info-dl dd .note p { margin-bottom: .1em; }

.datebox {
  display: inline-block;
  margin: .2em 0 .8em;
  padding: 0 .2em .2em;
  border-bottom: 2px solid var(--green);
  color: var(--green-dark);
  font-family: var(--font-mincho);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.entry-theme {
  margin: 0 0 1.2em !important;
  color: var(--green-dark);
  font-family: var(--font-mincho);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: .1em;
}
.verse-lines {
  margin: 1.2em 0 1.4em;
  padding-left: 1.3em;
  border-left: 1px solid var(--green-soft);
  font-family: var(--font-mincho);
  font-size: 1.0625rem;
  line-height: 2.1;
}
.verse-lines p { margin: 0; }

.signature { margin: 2.4em 0 2.2em; line-height: 2; text-align: right; }
.signature .name { font-family: var(--font-mincho); font-size: 1.3125rem; font-weight: 700; letter-spacing: .14em; }

.wide-figure { margin: 2.2em 0 !important; }
.wide-figure img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.photo-figure { max-width: 640px; }
.photo-figure img { width: 100%; }

/* 見出しの装飾を外すもの（部品内の見出し） */
.content .catch,
.content .era-year,
.content .era-body h2,
.content .card-body h2,
.content .event-list h2 { padding-left: 0; border: 0; }
.content .catch::before,
.content .era-year::before,
.content .era-body h2::before,
.content .card-body h2::before,
.content .event-list h2::before,
.content .feature-body h3::before,
.content .dept-body h3::before,
.content .card-body h3::before,
.content .era-body h3::before,
.content .policy-list h3::before,
.content .verse-num::before { display: none; }

.content h2.catch {
  margin: .2em 0 1.3em;
  color: var(--green-dark);
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  letter-spacing: .1em;
  line-height: 1.75;
  text-align: center;
}

/* 01・02・03 の特色 */
.content .feature-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 2.6em 0 0;
  padding: 0;
  list-style: none;
}
.content .feature-points > li { margin: 0; padding-top: 18px; border-top: 2px solid var(--green); }
.feature-num {
  color: var(--green);
  font-family: var(--font-mincho);
  font-size: 2.75rem;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.1;
}
.content .feature-body h3 {
  margin: .5em 0 .7em;
  padding: 0;
  color: var(--green-dark);
  font-family: var(--font-mincho);
  font-size: 1.25rem;
}
.feature-body p { font-size: .9375rem; line-height: 1.9; }
.feature-body > :last-child { margin-bottom: 0; }

/* 学科紹介 */
.dept-list { display: grid; margin: 1.6em 0 0; border-top: 1px solid var(--line); }
.dept {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 36px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.dept-img { background: var(--mist); }
.dept-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.content .dept-body h3 {
  margin: 0 0 .6em;
  padding: 0;
  color: var(--green-dark);
  font-family: var(--font-mincho);
  font-size: 1.625rem;
  letter-spacing: .12em;
}
.dept-body p { font-size: .9375rem; line-height: 1.9; }
.dept-body > :last-child { margin-bottom: 0; }
.content .majors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: .3em 0 .8em;
  padding: 0;
  list-style: none;
}
.content .majors li {
  margin: 0;
  padding: .1em .9em;
  border: 1px solid var(--green-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--green-dark);
  font-size: .8125rem;
  font-weight: 600;
}

/* 画像つきカード */
.cards {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 40px 28px;
  margin: 1.6em 0 2.2em;
}
.cards--2 { --cols: 2; }
.card { scroll-margin-top: 16px; }
.card-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--mist); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding-top: 16px; }
.content .card-body h2,
.content .card-body h3 {
  margin: 0 0 .5em;
  padding: 0;
  color: var(--green-dark);
  font-family: var(--font-mincho);
  font-size: 1.1875rem;
  letter-spacing: .06em;
}
.card-body p { font-size: .9375rem; line-height: 1.85; }
.card-body > :last-child { margin-bottom: 0; }

/* 部活動の一覧 */
.club-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 20px;
  margin: 1.2em 0 1.8em;
}
.club-group { padding: 18px 22px 20px; background: var(--mist); }
.club-group-title { margin: 0 0 .7em !important; color: var(--green-dark); font-family: var(--font-mincho); font-weight: 700; }
.content .club-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.content .club-tags li {
  margin: 0;
  padding: .1em .85em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: .8125rem;
}
.content .club-tags li.etc { border: 0; background: none; color: var(--ink-soft); }

/* 本校の歴史：年表 */
.content .eras { position: relative; margin: 2.4em 0; padding: 0; list-style: none; }
.eras::before {
  content: "";
  position: absolute;
  left: 9em;
  top: .7em;
  bottom: .7em;
  width: 1px;
  background: var(--green-soft);
  opacity: .5;
}
.content .era {
  position: relative;
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr);
  margin: 0 0 2.6em;
}
.era::before {
  content: "";
  position: absolute;
  left: calc(9em - 6px);
  top: .6em;
  width: 13px;
  height: 13px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: var(--snow);
}
.content h2.era-year {
  margin: 0;
  padding: 0 1.2em 0 0;
  color: var(--green);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
}
.era-body { padding-left: 2em; }
.content .era-body h2,
.content .era-body h3 {
  margin: 0 0 .6em;
  padding: 0;
  color: var(--green-dark);
  font-family: var(--font-mincho);
  font-size: 1.3125rem;
}
.era-body > :last-child { margin-bottom: 0; }
.era--untitled::before { background: var(--green); }

.chronology { margin: 1.2em 0 2em; border-top: 2px solid var(--green); }
.chronology > div { display: grid; grid-template-columns: 13em minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.chronology dt, .chronology dd { margin: 0; padding: .85em 1em; }
.chronology dt { color: var(--green-dark); font-family: var(--font-mincho); font-weight: 700; }

/* 運営方針 */
.content .policy-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 1.4em 0 2.2em;
  padding: 0;
  list-style: none;
}
.content .policy-list > li { margin: 0; padding: 22px 24px 10px; border: 1px solid var(--line); border-top: 3px solid var(--green); background: #fff; }
.content .policy-list h3 {
  display: flex;
  align-items: baseline;
  gap: .7em;
  margin: 0 0 .7em;
  padding: 0;
  color: var(--green-dark);
  font-size: 1.0625rem;
}
.policy-num { color: var(--green); font-family: var(--font-mincho); font-size: 2rem; font-weight: 500; line-height: 1; }
.policy-list p { font-size: .9375rem; line-height: 1.85; }

.day-split { display: grid; grid-template-columns: 1fr 1fr; margin: 1.2em 0 1.8em; }
.day-split > div { padding: 16px 20px; text-align: center; }
.day-split .am { background: var(--mist); color: var(--green-dark); }
.day-split .pm { background: var(--green); color: #fff; }
.day-split .when { display: block; font-family: var(--font-mincho); font-size: .8125rem; letter-spacing: .2em; }
.day-split .what { display: block; font-size: 1.0625rem; font-weight: 700; letter-spacing: .06em; }

/* 校歌（縦書き） */
.song-title {
  margin: 0 0 1em;
  color: var(--green-dark);
  font-family: var(--font-mincho);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-align: center;
}
.lyrics {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6em;
  margin: 1.4em 0 2em;
  padding: 2.2em 1.5em;
  background: var(--mist);
  font-family: var(--font-mincho);
}
.verse { writing-mode: vertical-rl; }
.content .verse-num {
  margin: 0;
  margin-block-end: .8em;
  padding: 0;
  color: var(--green);
  font-family: var(--font-mincho);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
}
.content .verse p {
  margin: 0;
  margin-block-end: 1em;
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: .14em;
  white-space: nowrap;
}
.content .verse p:last-child { margin-block-end: 0; }

/* 画像＋文章 */
.media {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin: 1.2em 0 2.2em;
}
.media-img img { width: 100%; }
.media-body > :first-child { margin-top: 0; }
.media-body > :last-child { margin-bottom: 0; }
.emblem-figure { display: grid; place-items: center; padding: 32px; border: 1px solid var(--line); background: #fff; }
.emblem-figure img { width: min(100%, 220px); }

/* 学校行事 */
.content .event-list { margin: 1.4em 0 2.2em; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.content .event-list > li {
  display: grid;
  grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
  gap: 32px;
  margin: 0;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.content .event-list h2 {
  margin: 0 0 .6em;
  color: var(--green-dark);
  font-size: 1.375rem;
}
.event-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.event-body > :last-child { margin-bottom: 0; }

/* 郵送申請の手順 */
.content .steps { margin: 1.2em 0 1.8em; padding: 0; list-style: none; }
.content .steps > li { margin: 0 0 14px; padding: 18px 22px 8px; border: 1px solid var(--line); border-left: 3px solid var(--green); background: #fff; }
.content .steps h4 { margin: 0 0 .5em; }
.content .steps h4::before { display: none; }

/* 様式ダウンロード */
.content .downloads { margin: 1em 0 1.4em; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.content .downloads li {
  display: flex;
  align-items: center;
  gap: .8em;
  margin: 0;
  padding: .8em .4em;
  border-bottom: 1px solid var(--line);
}
.content .downloads li::before {
  content: "PDF";
  flex: none;
  padding: 0 6px;
  border: 1px solid var(--green);
  color: var(--green);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.downloads .status { margin-left: auto; color: var(--ink-soft); font-size: .8125rem; white-space: nowrap; }

/* 進路（割合） */
.content .bar-list { margin: 1.4em 0 .6em; padding: 0; list-style: none; }
.content .bar-list li {
  display: grid;
  grid-template-columns: 17em minmax(0, 1fr) 3.8em;
  gap: 16px;
  align-items: center;
  margin: 0;
  padding: .6em 0;
  border-bottom: 1px solid var(--line);
}
.bar-label { font-size: .9375rem; line-height: 1.5; }
.bar-track { height: 12px; background: var(--mist); }
.bar-fill { display: block; width: var(--v); height: 100%; border-radius: 0 4px 4px 0; background: var(--green); }
.bar-value { color: var(--green-dark); font-family: var(--font-mincho); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* このサイトについて：フォントの著作権表示（長いURLを折り返す） */
.license-notice { overflow-wrap: anywhere; }

/* アクセス */
.access-school { margin: 0 0 .4em !important; color: var(--green-dark); font-family: var(--font-mincho); font-size: 1.375rem; font-weight: 700; letter-spacing: .08em; }
.map-box { margin: 1.6em 0 2em; }
.map-box img { width: 100%; }

/* ==========================================================================
   お知らせ一覧・記事・検索
   ========================================================================== */

.post-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: 22px 0;
  color: var(--ink);
  text-decoration: none;
}
.post-thumb { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--mist); }
.post-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.post-list a:hover .post-thumb img { transform: scale(1.05); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--ink-soft); font-size: .8125rem; }
.post-meta time { font-family: var(--font-mincho); letter-spacing: .06em; }
.post-title { display: block; margin-top: 8px; font-size: 1rem; line-height: 1.8; }
.post-list a:hover .post-title { color: var(--green); }

.pager ul {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.pager a, .pager span {
  display: grid;
  place-items: center;
  width: 2.6em;
  height: 2.6em;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  font-family: var(--font-mincho);
  text-decoration: none;
}
.pager a:hover { border-color: var(--green); }
.pager span[aria-current] { border-color: var(--green); background: var(--green); color: #fff; }

.entry-header { margin-bottom: 30px; }
.entry-meta { display: flex; align-items: center; gap: 14px; margin: 0 0 10px; color: var(--ink-soft); font-size: .875rem; }
.entry-meta time { font-family: var(--font-mincho); letter-spacing: .06em; }
.entry-title {
  margin: 0;
  color: var(--green-dark);
  font-family: var(--font-mincho);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.55;
}
.entry-subtitle { display: block; margin-top: .3em; color: var(--green); font-size: .72em; }
.entry-figure { margin: 0 0 36px; }
.entry-figure img { width: 100%; }

.entry-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.entry-nav a { display: block; color: var(--ink); font-size: .875rem; line-height: 1.7; text-decoration: none; }
.entry-nav a span { display: block; margin-bottom: .2em; color: var(--green); font-family: var(--font-mincho); font-size: .8125rem; font-weight: 700; }
.entry-nav a:hover { color: var(--green); }
.entry-nav-newer span::before { content: "← "; }
.entry-nav-older { text-align: right; }
.entry-nav-older span::after { content: " →"; }

.empty { padding: 2em 0; color: var(--ink-soft); text-align: center; }

.search-form { margin: 0 0 32px; }
.search-form label { display: block; margin-bottom: 8px; color: var(--green-dark); font-weight: 700; }
.search-form-row { display: flex; max-width: 600px; }
.search-form input {
  flex: 1;
  min-width: 0;
  padding: .7em 1em;
  border: 1px solid var(--line);
  border-right: 0;
  background: #fff;
}
.search-form input:focus { outline: 2px solid var(--green); outline-offset: -1px; }
.search-form button { padding: 0 1.8em; border: 0; background: var(--green); color: #fff; font-weight: 700; cursor: pointer; }
.search-results .count { margin-bottom: 14px; }
.search-results ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.search-results li { padding: 16px 4px; border-bottom: 1px solid var(--line); }
.search-results .hit-title { color: var(--green-dark); font-family: var(--font-mincho); font-size: 1.125rem; font-weight: 700; }
.search-results .hit-meta { color: var(--ink-soft); font-size: .8125rem; }
.search-results .hit-snippet { margin: .3em 0 0; font-size: .9375rem; line-height: 1.8; }
.search-results mark { background: #f3e2b3; color: inherit; }

/* ==========================================================================
   フッター
   ========================================================================== */

.site-footer { margin-top: clamp(72px, 10vw, 128px); color: #dfe8e4; }
.is-top .site-footer { margin-top: 0; }
.ridge--footer { height: var(--ridge-h); margin-bottom: -1px; }
.is-top .ridge--footer { background: var(--mist); }
.ridge--footer .ridge-back { fill: var(--green); }
.ridge--footer .ridge-front { fill: var(--green-deep); }
.footer-body { padding: 16px 0 28px; background: var(--green-deep); }

.footer-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--font-mincho);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
}
.footer-logo img { width: 52px; height: 52px; }
.footer-name-en {
  margin: 8px 0 18px;
  color: rgba(255, 255, 255, .6);
  font-family: var(--font-mincho);
  font-size: .625rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.footer-address { color: rgba(255, 255, 255, .82); font-size: .8125rem; font-style: normal; line-height: 1.9; }

.footer-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-col-title { margin: 0 0 8px; font-size: .875rem; font-weight: 700; }
.footer-col-title a, .footer-singles a { color: #fff; text-decoration: none; }
.footer-col ul { margin: 0; padding: 0; list-style: none; font-size: .8125rem; line-height: 2.1; }
.footer-col ul a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.footer-col .footer-singles { margin-top: 18px; font-size: .875rem; font-weight: 700; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding-top: 22px;
  font-size: .8125rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
}
.footer-links a:hover { color: #fff; text-decoration: underline; }
.copyright { margin: 0; color: rgba(255, 255, 255, .55); font-size: .75rem; }
.copyright small { font-size: inherit; }

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 4px 14px rgba(24, 52, 48, .25);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, visibility .3s, transform .3s, background-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-dark); }

/* ==========================================================================
   ヘッダーをメニューボタンに切り替える幅
   ========================================================================== */

@media (max-width: 1099px) {
  .header-utility, .gnav { display: none; }
  .header-main { position: relative; z-index: 60; padding: 12px 0; }
  .brand-ja { font-size: 1.375rem; }

  .menu-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: none;
    padding: 6px 4px;
    border: 0;
    background: none;
    color: var(--green-dark);
    cursor: pointer;
  }
  .menu-icon { position: relative; display: block; width: 30px; height: 16px; }
  .menu-icon::before, .menu-icon::after, .menu-icon span {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: transform .3s, opacity .2s, top .3s;
  }
  .menu-icon::before { top: 0; }
  .menu-icon span { top: 7px; }
  .menu-icon::after { top: 14px; }
  .menu-label { font-family: var(--font-mincho); font-size: .625rem; letter-spacing: .16em; text-transform: uppercase; }

  .site-menu {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: block;
    overflow-y: auto;
    padding: 96px var(--gutter) 48px;
    background: var(--green-deep);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  .is-menu-open { overflow: hidden; }
  .is-menu-open .site-menu { opacity: 1; visibility: visible; }
  .is-menu-open .menu-button, .is-menu-open .brand a { color: #fff; }
  .is-menu-open .brand-en { color: rgba(255, 255, 255, .6); }
  .is-menu-open .brand-emblem { filter: brightness(0) invert(1); }
  .is-menu-open .menu-icon::before { top: 7px; transform: rotate(35deg); }
  .is-menu-open .menu-icon span { opacity: 0; }
  .is-menu-open .menu-icon::after { top: 7px; transform: rotate(-35deg); }

  .mm-nav ul { margin: 0; padding: 0; list-style: none; }
  .mm-nav > ul > li { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .mm-link { display: flex; align-items: baseline; justify-content: space-between; color: #fff; text-decoration: none; }
  .mm-ja { font-family: var(--font-mincho); font-size: 1.25rem; font-weight: 700; letter-spacing: .12em; }
  .mm-en { color: rgba(255, 255, 255, .55); font-family: var(--font-mincho); font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; }
  .mm-nav .mm-sub { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; font-size: .8125rem; }
  .mm-sub a { color: rgba(255, 255, 255, .8); text-decoration: none; }
  .mm-sub a:hover { color: #fff; text-decoration: underline; }
  .mm-utility { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 18px; padding: 0; list-style: none; font-size: .875rem; }
  .mm-utility a { color: #fff; }
  .site-search--menu { width: 100%; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .06); }
  .site-search--menu input { padding: 10px 6px 10px 18px; color: #fff; font-size: .9375rem; }
  .site-search--menu input::placeholder { color: rgba(255, 255, 255, .6); }
  .site-search--menu button { width: 48px; height: 42px; color: #fff; }
  .site-search--menu:focus-within { border-color: #fff; box-shadow: none; }
}

/* ==========================================================================
   タブレット
   ========================================================================== */

@media (max-width: 959px) {
  .top-news { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .club-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .top-message-inner { grid-template-columns: minmax(0, 1fr); }
  .top-guide-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }

  .sub-body.has-side { display: block; }
  .side { margin-top: 64px; }
  .side-inner { position: static; }
  .toc--side { display: none; }
  .toc--inline { display: block; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .content .feature-points { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cards { --cols: 2; }
}

/* ==========================================================================
   スマートフォン
   ========================================================================== */

@media (max-width: 767px) {
  body { font-size: 15px; }
  .brand a { gap: 10px; }
  .brand-emblem { width: 40px; height: 40px; }
  .brand-ja { font-size: 1.125rem; letter-spacing: .06em; }
  .brand-en { font-size: .5rem; letter-spacing: .1em; }

  .hero { height: clamp(420px, 72vh, 620px); }
  .hero-motto { top: 8%; right: 0; }
  .hero-name { display: none; }
  .hero-foot { justify-content: flex-end; }

  .section-head { flex-wrap: wrap; }
  .news-list a {
    grid-template-columns: auto minmax(0, 1fr) 18px;
    grid-template-areas: "date badge arrow" "title title arrow";
    gap: 6px 12px;
    padding: 16px 4px;
  }
  .news-date { grid-area: date; font-size: .875rem; }
  .news-list .badge, .news-list .club-label { grid-area: badge; justify-self: start; }
  .news-title { grid-area: title; font-size: .9375rem; }
  .news-arrow { grid-area: arrow; }

  .club-cards { gap: 24px 14px; }
  .club-card-title { font-size: .875rem; }

  .dept-panels { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .dept-panels a { aspect-ratio: 4 / 3; }
  .guide-links { grid-template-columns: minmax(0, 1fr); }
  .guide-links a { min-height: 64px; }

  .page-hero::after { right: 8px; opacity: .05; }
  .page-hero-inner { padding-bottom: calc(var(--ridge-h-sm) + 20px); }
  .breadcrumb ol { margin-bottom: 20px; }

  .index-cards { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .index-cards--single a { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .index-cards--single .index-card-body { padding-top: 20px; }
  .index-cards--single .index-card-more { top: 20px; }

  .content { line-height: 1.95; }
  .content h2 { padding-left: 40px; font-size: 1.3125rem; }
  .content h2::before { width: 28px; height: 12px; }
  .content h3 { font-size: 1.0625rem; }

  .dept { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 28px 0; }
  .cards, .cards--2 { --cols: 1; gap: 32px; }
  .club-groups { grid-template-columns: minmax(0, 1fr); }

  .eras::before { left: 6px; }
  .content .era { grid-template-columns: minmax(0, 1fr); padding-left: 30px; }
  .era::before { left: 0; top: .4em; }
  .content h2.era-year { padding: 0 0 .3em; font-size: 1.3125rem; text-align: left; }
  .era--untitled .era-year { display: none; }
  .era-body { padding-left: 0; }
  .chronology > div { grid-template-columns: minmax(0, 1fr); }
  .chronology dt { padding-bottom: 0; }
  .chronology dd { padding-top: .2em; }

  .content .policy-list { grid-template-columns: minmax(0, 1fr); }
  .day-split { grid-template-columns: minmax(0, 1fr); }

  .lyrics { flex-direction: column; gap: 1.6em; padding: 1.6em 1.3em; }
  .verse { writing-mode: horizontal-tb; }
  .content .verse-num { margin-block-end: .3em; }
  .content .verse p { margin-block-end: .9em; white-space: normal; letter-spacing: .06em; line-height: 1.95; }

  .media { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .content .event-list > li { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 26px 0; }

  .info-dl { grid-template-columns: minmax(0, 1fr); }
  .info-dl dt { padding: .55em .9em; }
  .info-dl dd { padding: .75em .9em 1em; }

  .content .bar-list li { grid-template-columns: minmax(0, 1fr) 3.4em; gap: 4px 10px; }
  .bar-label { grid-column: 1 / -1; }

  .content table { font-size: .875rem; }
  .content table.fees { min-width: 0; font-size: .8125rem; }
  .content table.fees th, .content table.fees td { padding: .6em .45em; }
  .content table.fees thead th { white-space: normal; }

  .post-list a { grid-template-columns: 36% minmax(0, 1fr); gap: 14px; padding: 16px 0; }
  .post-title { margin-top: 4px; font-size: .875rem; line-height: 1.7; }

  .entry-nav { grid-template-columns: minmax(0, 1fr); }
  .entry-nav-older { text-align: left; }

  .btn { width: 100%; min-width: 0; }

  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

@media (max-width: 480px) {
  .brand-en { display: none; }
}

@media (max-width: 400px) {
  .brand-ja { font-size: 1rem; }
  .footer-nav { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .header-utility, .gnav, .menu-button, .site-menu, .hero-controls, .to-top, .side, .toc, .ridge { display: none !important; }
  .page-hero { background: none; }
  .site-footer { margin-top: 24px; color: #000; }
  .footer-body { background: none; }
}
