/**
 * 総合TOP専用スタイル（front-page.php / koka-home.js と組み合わせて使用）。
 * このCSSは直接管理し、旧TOP用の scss/layout_top.scss とは独立しています。
 * 共通ヘッダー・フッターの見た目は koka-chrome.css が担当します。
 * 基本スタイル → 各セクション → タブレット → スマートフォンの順に定義しています。
 */
/* 基本設定：共通フォント、色、コンテンツ幅。数字は Barlow Numerals を使用。 */
.koka-home-page {
  --koka-header-height: 130px;
  margin: 0;
  background: #fff;
}
.koka-home {
  --home-red: #e90000;
  --home-blue: #003b93;
  --home-light: #e4f1fa;
  overflow: hidden;
  overflow: clip;
  color: #000;
  font-family: 'Barlow Numerals', 'Zen Kaku Gothic New', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
}
.koka-home *,
.koka-home *::before,
.koka-home *::after {
  box-sizing: border-box;
}
.koka-home h1,
.koka-home h2,
.koka-home h3,
.koka-home p,
.koka-home ul {
  margin: 0;
  padding: 0;
}
.koka-home ul {
  list-style: none;
}
.koka-home a,
.koka-home a:link,
.koka-home a:visited {
  color: inherit;
  text-decoration: none;
}
.koka-home a[target='_blank']::after {
  content: none;
}
.koka-home a:hover {
  opacity: 1;
}
.koka-home button {
  padding: 0;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.koka-home img {
  display: block;
  max-width: 100%;
  height: auto;
}
.koka-home [hidden] {
  display: none !important;
}
.koka-home a:focus-visible,
.koka-home button:focus-visible,
.koka-home summary:focus-visible,
.koka-home [tabindex='0']:focus-visible {
  outline: 2px solid var(--home-blue);
  outline-offset: 5px;
}
.koka-home .koka-home-container {
  width: calc(100% - 200px);
  max-width: 1200px;
  margin: 0 auto;
}
/* メインビジュアル：ヘッダーを除いた画面高に合わせ、文字の左端を基準に配置。 */
.koka-hero {
  --hero-copy-left: 3.5%;
  --hero-events-bottom: 5%;
  --hero-events-right: 7.3%;
  --hero-events-gap: 22px;
  position: relative;
  height: calc(100vh - var(--koka-header-height));
  height: calc(100dvh - var(--koka-header-height));
  min-height: 0;
  container-type: size;
  color: #fff;
  isolation: isolate;
}
.koka-hero__photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -2;
}
.koka-hero__photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--hero-object-position, center);
}
/* 写真の色を保ち、白文字の背景だけに薄い無彩色の影を重ねる。 */
.koka-hero__slide--photo::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / 0.22), rgb(0 0 0 / 0.08) 48%, transparent 80%);
  pointer-events: none;
}
.koka-hero__copy {
  position: absolute;
  top: 12%;
  left: var(--hero-copy-left);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  text-shadow: 0 2px 12px rgb(0 0 0 / 0.32);
}
.koka-hero.is-photo-slide > .koka-hero__copy { opacity: 1; visibility: visible; }
.koka-hero__lead {
  font-size: clamp(14px, min(2.89cqw, 5.3cqh), 44px);
  font-weight: 900;
  line-height: 1.5;
}
.koka-hero .koka-hero__title {
  margin: min(.9cqw, 1.6cqh) 0 min(2.85cqw, 5cqh);
  font-family: 'Barlow Numerals', 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: clamp(54px, min(13.084cqw, 24cqh), 200px);
  letter-spacing: 0.05em;
  line-height: 0.9827;
}
.koka-hero__sub {
  font-family: 'Barlow Numerals', 'Zen Kaku Gothic New', sans-serif;
  font-size: clamp(16px, min(3.086cqw, 5.7cqh), 48px);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.1875;
}
/* 共学化への案内：明朝のメッセージとイラストを、装飾を抑えた一枚の面に配置。 */
.koka-hero__coeducation {
  position: absolute;
  z-index: 2;
  top: 10%;
  right: 7.3%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(64px, 8.8vw, 124px);
  gap: 5px 14px;
  width: clamp(260px, 34vw, 460px);
  padding: 22px 24px 22px 28px;
  background: #fff;
}
.koka-home a.koka-hero__coeducation { color: var(--home-blue); }
.koka-hero__coeducation::after { content: none; }
.koka-hero__coeducation-date { grid-column: 1; grid-row: 1; min-width: 0; line-height: 1.5; }
.koka-hero__coeducation-year { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 500; letter-spacing: .08em; }
.koka-hero__coeducation-message { display: block; font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif; font-size: clamp(14px, 1.75vw, 24px); font-weight: 600; letter-spacing: .025em; }
.koka-hero__coeducation-title { grid-column: 1; grid-row: 2; min-width: 0; font-size: 13px; font-weight: 500; line-height: 1.7; letter-spacing: .015em; word-break: keep-all; }
.koka-hero__coeducation-visual { grid-column: 2; grid-row: 1 / 4; position: relative; min-height: 112px; margin: -8px -24px -22px 0; overflow: hidden; }
.koka-hero__coeducation-visual img { position: absolute; bottom: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: center bottom; }
.koka-hero__coeducation-visual img:first-child { left: -24%; }
.koka-hero__coeducation-visual img:last-child { right: -24%; }
.koka-hero__coeducation-link { grid-column: 1; grid-row: 3; display: flex; align-items: center; gap: 14px; margin-top: 9px; font-size: 11px; font-weight: 500; line-height: 1.6; letter-spacing: .05em; }
.koka-hero__coeducation-label { border-bottom: 1px solid #b9c9db; padding-bottom: 2px; }
.koka-hero__coeducation-arrow { position: relative; flex: 0 0 26px; width: 26px; height: 12px; }
.koka-hero__coeducation-arrow::before { content: ''; position: absolute; top: 6px; left: 0; width: 25px; border-top: 1px solid currentColor; }
.koka-hero__coeducation-arrow::after { content: ''; position: absolute; top: 3px; right: 1px; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; rotate: 45deg; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .koka-hero__coeducation-arrow { transition: translate .25s ease; }
  .koka-hero__coeducation:hover .koka-hero__coeducation-arrow { translate: 4px 0; }
  .koka-hero__coeducation:hover .koka-hero__coeducation-label { border-bottom-color: currentColor; }
}
/* 入試イベント：丸いバナー内の日付・学校名の位置を調整。 */
.koka-hero__events {
  position: absolute;
  right: var(--hero-events-right);
  bottom: var(--hero-events-bottom);
  display: flex;
  align-items: center;
  gap: var(--hero-events-gap);
}
.koka-event {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 177px;
  height: 177px;
  padding: 21px 18px 12px;
  background-image: url('/img/index/event-junior.svg?ver=20261030-white-room'), url('/img/index/event-junior-base.svg?ver=20261013-colors');
  background-position: center;
  background-size:
    100% 100%,
    145.2% 145.2%;
  background-repeat: no-repeat;
  border-radius: 50%;
  color: #003168 !important;
  filter: drop-shadow(0 10px 20px rgb(0 0 0 / 0.16));
  transition: opacity 0.3s !important;
}
.koka-event--senior {
  background-image: url('/img/index/event-senior.svg?ver=20261030-white-room'), url('/img/index/event-senior-base.svg?ver=20261013-colors');
}
.koka-event:hover {
  opacity: .94;
}
.koka-event__title {
  flex-shrink: 0;
  width: 100%;
  min-height: 40px;
  height: 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow-wrap: anywhere;
  font-size: 16px;
  font-weight: 700;
  line-height: 18px;
}
.koka-event__title > span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  flex: 0 1 auto;
  min-width: 0;
  width: 100%;
  max-height: 100%;
  max-height: 2lh;
  overflow: hidden;
  white-space: normal;
  text-overflow: ellipsis;
  letter-spacing: 0;
}
.koka-event__date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  transform: none;
  font-family: 'Barlow Numerals', 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
}
.koka-event__date-number {
  display: flex;
  align-items: baseline;
}
.koka-event__date-separator {
  font-size: 0.84em;
  line-height: 1;
}
.koka-event__weekday {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--home-blue);
  font-family: 'Barlow Numerals', 'Zen Kaku Gothic New', sans-serif;
  font-size: 14px;
}
.koka-event__school {
  margin-top: auto;
  transform: translateY(-5px);
  text-align: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}
/* 写真の切り替え：JSの6秒間隔に、1.2秒のフェードと緩いズームを組み合わせる。 */
.koka-hero__slides {
  position: absolute;
  inset: 0;
}
.koka-hero__slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
.koka-hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}
.koka-hero__slide.is-leaving {
  opacity: 1;
}
.koka-hero__slide img {
  transform: scale(1.045);
}
.koka-hero.is-slideshow-ready .koka-hero__slide:is(.is-active, .is-leaving) img {
  animation: koka-hero-drift 7.2s linear both;
}
@keyframes koka-hero-drift {
  from {
    transform: scale(1.045);
  }
  to {
    transform: scale(1);
  }
}
.koka-hero__title-line,
.koka-hero__title-line > span {
  display: block;
}
.koka-hero__title-line {
  overflow: hidden;
}
/* 切り替えボタン：文字の左端に合わせる。現在の写真だけ白い横長の点で示す。 */
.koka-hero__controls {
  position: absolute;
  z-index: 3;
  left: var(--hero-copy-left);
  bottom: 28px;
}
.koka-hero__dots {
  display: flex;
  align-items: center;
}
.koka-hero__dot {
  display: grid;
  place-items: center start;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: transparent;
  color: #fff;
}
.koka-hero__dot::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 20px;
  background: rgb(255 255 255 / 0.55);
  transition:
    width 0.25s ease,
    background 0.25s ease;
}
.koka-hero__dot[aria-current='true']::before {
  width: 18px;
  background: #fff;
}
.koka-home .koka-hero__dot:focus-visible {
  outline-color: #fff;
  outline-offset: 1px;
}
.koka-hero__dot:hover {
  opacity: 1;
}
.koka-hero__dot:hover::before {
  background: #fff;
}
/* 共通の入試イベントは2枚目の表示時だけ下から登場し、3・4枚目では表示を保つ。 */
.koka-hero.is-photo-intro .koka-event {
  animation: koka-intro-event 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.68s both;
}
.koka-hero.is-photo-intro .koka-event:nth-child(2) {
  animation-delay: 0.82s;
}
.koka-home-page.is-hero-intro #koka-bottom-menu li {
  animation: koka-intro-rise 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}
.koka-home-page.is-hero-intro #koka-bottom-menu li:nth-child(2) {
  animation-delay: 0.68s;
}
.koka-home-page.is-hero-intro #koka-bottom-menu li:nth-child(3) {
  animation-delay: 0.76s;
}
@keyframes koka-intro-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes koka-intro-event {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 767px) {
  .koka-hero__controls {
    left: var(--hero-copy-left);
    bottom: 14px;
  }
  .koka-hero__dot {
    width: 22px;
    height: 22px;
  }
  .koka-hero__dot[aria-current='true']::before {
    width: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .koka-hero__slide img {
    transform: none;
  }
}

/* 重要なお知らせと学校からのバナー。投稿がない場合はPHP側で表示を省略。 */
.koka-home .koka-important {
  display: flex;
  gap: 30px;
  padding: 22px 0;
  font-size: 14px;
}
.koka-important h2 {
  flex: none;
  color: var(--home-red);
  font-size: 16px;
  font-weight: 700;
}
.koka-important li {
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.koka-important li + li {
  margin-top: 8px;
}
.koka-important a:hover {
  text-decoration: underline;
}
.koka-home .koka-promo {
  padding: 25px 0;
}
.koka-promo ul {
  display: flex;
  gap: 24px;
  overflow: auto;
  scroll-snap-type: x mandatory;
}
.koka-promo li {
  flex: 0 0 min(360px, 80%);
  scroll-snap-align: start;
}
.koka-promo img {
  width: 100%;
  border-radius: 8px;
}
.koka-school-jump {
  display: none;
}
/* 中学校・高等学校の案内：2校のカードを合わせた幅を最大1200pxにする。 */
.koka-schools {
  --school-panels-width: min(1200px, calc(100vw - 100px));
  --school-panels-gap: clamp(40px, 7.857vw, 110px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.koka-school {
  position: relative;
  scroll-margin-top: 90px;
}
.koka-school__photo {
  height: 32.7857vw;
  max-height: 510px;
  overflow: hidden;
}
.koka-school__photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.koka-school__catch {
  position: absolute;
  top: 24px;
  right: 8%;
  display: flex;
  align-items: flex-start;
  flex-direction: row-reverse;
  gap: 0;
}
.koka-school__catch > span {
  padding: 8px 10px;
  background: #fff;
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: nowrap;
  font-size: 20.6px;
  letter-spacing: 3.86px;
  line-height: 22px;
}
.koka-school__card {
  position: relative;
  width: calc((var(--school-panels-width) - var(--school-panels-gap)) / 2);
  max-width: 545px;
  margin: -127px auto 0;
  padding: 42px 50px 37px;
  background: var(--home-light);
}
.koka-school:first-child .koka-school__card {
  margin-right: calc(var(--school-panels-gap) / 2);
}
.koka-school:last-child .koka-school__card {
  margin-left: calc(var(--school-panels-gap) / 2);
}
.koka-school__card h2 {
  margin-bottom: 26px;
  color: #003168;
  text-align: center;
  font-size: clamp(27px, 2.858vw, 44px);
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}
.koka-school__card h2 a:hover {
  color: var(--home-blue);
}
.koka-school__links {
  display: grid;
  gap: 10px;
}
.koka-school__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 77px;
  padding: 15px 25px 15px 34px;
  border-radius: 5px;
  background: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition:
    box-shadow 0.3s,
    color 0.3s;
}
.koka-school__links a:hover {
  color: var(--home-blue);
  box-shadow: 0 4px 20px rgb(0 59 147 / 0.1);
}
.koka-school__links .koka-home-arrow {
  color: #fff;
  background: var(--home-blue);
}
.koka-school__links .koka-home-arrow svg {
  width: 10px;
  height: 10px;
}
.koka-school__pamphlet {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 77px;
  margin-top: 29px;
  padding: 15px 25px 15px 116px;
  border-radius: 5px;
  background: var(--home-blue);
  color: #fff !important;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}
.koka-school__pamphlet > img {
  position: absolute;
  bottom: 0;
  left: 10px;
  width: 91px;
  height: 91px;
  object-fit: contain;
}
.koka-home-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: var(--home-blue);
  background: var(--home-light);
}
.koka-home-arrow svg {
  display: block;
  width: 57.142857%;
  height: auto;
  max-width: none;
  overflow: visible;
  transition: transform 0.2s ease;
}
.koka-school__links a:is(:hover, :focus-visible) .koka-home-arrow svg,
.koka-school__pamphlet:is(:hover, :focus-visible) .koka-home-arrow svg {
  transform: translateX(2px);
}
/* 教育コンセプト：写真・キャッチコピー・説明文。スマートフォン用の本文を別途表示。 */
.koka-home .koka-concept {
  display: grid;
  grid-template-columns: 545fr 577fr;
  gap: 78px;
  padding: 0;
  margin-top: 126px;
  margin-bottom: 130px;
}
.koka-concept__photo {
  position: relative;
  height: 599px;
  overflow: hidden;
  border-radius: 0 80px 0 80px;
}
.koka-concept__photo img {
  position: absolute;
  max-width: none;
  width: 200.12%;
  height: 229%;
  left: -84.97%;
  top: -104.65%;
  object-fit: cover;
}
.koka-concept__copy {
  min-width: 0;
  padding-top: 23px;
}
.koka-concept__copy h2 {
  width: 389px;
  max-width: 100%;
}
.koka-home .koka-concept__lead {
  margin-top: 34px;
  padding-left: 1px;
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
}
.koka-concept__text {
  margin-top: 13px !important;
  padding-left: 4px !important;
  font-size: 15px;
  font-weight: 400;
  line-height: 32px;
}
.koka-concept__text--desktop {
  width: max-content;
  max-width: calc(100% + 60px);
}
.koka-concept__text--mobile {
  display: none;
}
.koka-home-more {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  min-height: 55px;
  border-radius: 50px;
  background: #ecf2f9;
  color: var(--home-blue) !important;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  list-style: none;
  cursor: pointer;
  transition: background 0.25s !important;
}
.koka-home-more > span {
  position: absolute;
  right: 28px;
  font-family: 'Barlow Numerals', 'Zen Kaku Gothic New', sans-serif;
  font-size: 20px;
  transition: transform 0.2s ease;
}
.koka-home-more:is(:hover, :focus-visible) > span {
  transform: translateX(3px);
}
.koka-home-more:hover {
  background: #dce8f7;
}
.koka-concept .koka-home-more {
  margin-top: 40px;
}
.koka-home-heading > p {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 24px;
}
.koka-home-heading > p::before {
  content: '';
  display: block;
  flex: none;
  width: 10px;
  height: 10px;
  background: url('/img/index/section-dot.svg') center no-repeat;
}
.koka-home-heading h2 {
  margin-top: 5px;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
}
/* お知らせ：学校・カテゴリのボタンと一覧。表示切り替えは data-news-* とJSで連携。 */
.koka-news {
  padding: 107px 0 120px;
  background: var(--home-light);
}
.koka-news__layout {
  display: grid;
  grid-template-columns: 281px minmax(0, 1fr);
  gap: 157px;
}
.koka-news__schools {
  display: grid;
  gap: 17px;
  margin-top: 52px;
}
.koka-news__schools button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 12px 12px 12px 28px;
  border-radius: 5px;
  background: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: left;
}
.koka-news__schools button > span {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  background: url('/img/index/school-tab-circle.svg') center no-repeat;
  color: var(--home-blue);
  font:
    22px 'Barlow Numerals',
    'Zen Kaku Gothic New',
    sans-serif;
  transition: transform 0.2s ease;
}
.koka-news__schools button:is(:hover, :focus-visible) > span {
  transform: translateX(3px);
}
.koka-news__schools button[aria-pressed='true'] {
  background: var(--home-red);
  color: #fff;
}
.koka-news__schools button[aria-pressed='true'] > span {
  background-image: url('/img/index/school-tab-circle-active.svg');
  color: var(--home-red);
}
.koka-news__more {
  position: relative;
  margin-top: 126px;
}
.koka-news__more summary {
  background: var(--home-blue);
  color: #fff !important;
}
.koka-news__more summary:hover {
  background: #002e76;
}
.koka-news__more summary::-webkit-details-marker {
  display: none;
}
.koka-news__more > ul {
  position: absolute;
  z-index: 5;
  top: calc(100% + 10px);
  left: 0;
  width: 281px;
  padding: 10px 18px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 24px rgb(0 59 147 / 0.14);
}
.koka-news__more a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  font-size: 14px;
}
.koka-news__more a > span {
  transition: transform 0.2s ease;
}
.koka-news__more a:is(:hover, :focus-visible) > span {
  transform: translateX(3px);
}
.koka-news__main {
  padding-top: 153px;
}
.koka-news__categories {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 34px;
}
.koka-news__categories button {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  line-height: 24px;
}
.koka-news__categories button::before {
  content: '';
  width: 10px;
  height: 10px;
  flex: none;
  background: url('/img/index/news-dot-gray.svg') center no-repeat;
}
.koka-news__categories button[aria-selected='true']::before {
  background-image: url('/img/index/news-dot-red.svg');
}
.koka-news__list li {
  background: url('/img/index/news-rule.svg') bottom left / 100% 1px no-repeat;
}
.koka-news__list a {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr) 140px;
  align-items: center;
  gap: 20px;
  min-height: 144px;
  padding: 14px 12px 14px 18px;
}
.koka-news__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  white-space: nowrap;
}
.koka-news__badge {
  display: inline-block;
  min-width: 81px;
  max-width: 120px;
  padding: 3px 12px;
  border-radius: 50px;
  background: #006dbc;
  color: #fff;
  font-size: 13px;
  text-align: center;
  white-space: normal;
  line-height: 22px;
}
.koka-news__title {
  font-size: 16px;
  line-height: 28px;
}
.koka-news__image {
  width: 140px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
}
.koka-news__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.koka-news__list a:hover .koka-news__title {
  color: var(--home-blue);
}
.koka-news__list a:hover img {
  transform: scale(1.05);
}
.koka-home-empty {
  padding: 50px 0 !important;
  font-size: 14px;
}
/* 校長の目：横スクロールする記事一覧。矢印と進捗バーはJSで更新。 */
.koka-blog {
  position: relative;
  padding: 183px 0 134px;
}
.koka-blog__layout {
  display: grid;
  grid-template-columns: 293px minmax(0, 1fr);
  gap: 84px;
}
.koka-blog__head {
  padding-top: 24px;
}
.koka-blog__description {
  margin-top: 28px !important;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 32px;
}
.koka-blog__head .koka-home-more {
  margin-top: 100px;
}
.koka-blog__content {
  min-width: 0;
  margin-right: -100px;
}
.koka-blog__track {
  display: flex;
  gap: 41px;
  padding-bottom: 14px !important;
  overflow: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}
.koka-blog__track::-webkit-scrollbar {
  display: none;
}
.koka-blog__track > li {
  flex: 0 0 380px;
  min-width: 0;
  scroll-snap-align: start;
}
.koka-blog__card {
  display: block;
}
.koka-blog__image {
  position: relative;
  display: block;
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: 20px;
}
.koka-blog__image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.koka-blog__card:hover .koka-blog__image > img {
  transform: scale(1.05);
}
.koka-blog__school {
  position: absolute;
  top: 0;
  left: 0;
  padding: 6px 20px;
  background: var(--home-red);
  color: #fff;
  border-radius: 20px 0 10px 0;
  font-size: 16px;
  font-weight: 700;
}
.koka-blog__card > time {
  display: block;
  margin-top: 16px;
  font-size: 14px;
}
.koka-blog__card > h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 56px;
  margin: 5px 0 16px;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
}
.koka-blog__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.koka-blog__tags > span {
  display: block;
  padding: 2px 12px;
  border: 1px solid #000;
  border-radius: 50px;
  font-size: 14px;
}
.koka-blog__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 40px;
  padding-right: 100px;
}
.koka-blog__controls button {
  display: grid;
  place-items: center;
  width: 63px;
  height: 63px;
  border-radius: 50%;
  background: #ecf2f9;
  color: var(--home-blue);
  font:
    26px 'Barlow Numerals',
    'Zen Kaku Gothic New',
    sans-serif;
}
.koka-blog__controls button > span {
  display: block;
  transition: transform 0.2s ease;
}
.koka-blog__controls button:not(:disabled):is(:hover, :focus-visible) > span {
  transform: translateX(3px);
}
.koka-blog__controls button[data-blog-prev]:not(:disabled):is(:hover, :focus-visible) > span {
  transform: translateX(-3px);
}
.koka-blog__controls button:disabled {
  opacity: 0.4;
  cursor: default;
}
.koka-blog__progress {
  height: 13px;
  width: 380px;
  max-width: 50%;
  margin-right: auto;
  overflow: hidden;
  background: #f2f2f2;
  border-radius: 50px;
}
.koka-blog__progress > span {
  display: block;
  height: 100%;
  min-width: 8%;
  background: #c4c4c4;
  border-radius: inherit;
}
/* Instagram：投稿を正方形で並べる。プラグインの余白はここで統一する。 */
.koka-instagram {
  padding-bottom: 112px;
}
.koka-instagram__marquee {
  height: 150px;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
}
.koka-instagram__marquee > div {
  display: flex;
  gap: 76px;
  width: max-content;
  animation: koka-ticker 45s linear infinite;
}
.koka-instagram__marquee img {
  flex: none;
  width: 1168px;
  height: 151px;
  max-width: none;
  filter: brightness(0);
  opacity: 0.07;
}
@keyframes koka-ticker {
  to {
    transform: translateX(-50%);
  }
}
.koka-instagram__feed {
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: -27px 0 0;
}
.koka-instagram__feed #sb_instagram {
  width: 100% !important;
  padding: 0 !important;
}
.koka-instagram__feed #sb_instagram #sbi_images {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start;
  gap: 25px !important;
  overflow: auto;
  width: 100% !important;
  padding: 18px 0 !important;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.koka-instagram__feed #sbi_images::before,
.koka-instagram__feed #sbi_images::after {
  display: none;
}
.koka-instagram__feed #sb_instagram #sbi_images .sbi_item {
  position: relative;
  z-index: 0;
  flex: 0 0 317px;
  float: none !important;
  width: 317px !important;
  margin: 0 !important;
  padding: 0 !important;
  scroll-snap-align: start;
  scale: 1;
  transition: scale 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
/* 投稿カード全体を拡大する。内側の写真だけをズームしないことで、四隅も外へ広がる。 */
.koka-instagram__feed #sb_instagram #sbi_images .sbi_item:is(:hover, :has(.sbi_photo:focus-visible)) {
  z-index: 1;
  scale: 1.06;
}
.koka-instagram__feed #sb_instagram .sbi_photo_wrap {
  position: relative;
  width: 100%;
  margin: 0 !important;
  aspect-ratio: 1;
  overflow: hidden;
}
.koka-instagram__feed #sb_instagram #sbi_images .sbi_photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100% !important;
  margin: 0 !important;
  overflow: hidden;
  background-position: center !important;
  background-size: cover !important;
  transform: none !important;
  scale: none !important;
  opacity: 1 !important;
}
.koka-instagram__feed #sb_instagram .sbi_photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none !important;
  scale: none !important;
}
.koka-instagram__feed #sbi_load,
.koka-instagram__feed .sbi_header {
  display: none !important;
}
/* 画像サイズはPC317px、768px以下175px。通常の間隔はPC25px、スマートフォン15px。
   拡大率は1.06倍。拡大時も約15px / 10pxの余白を残す。
   隣り合う2枚が同時に拡大しても、約6px / 4.5pxの間隔を確保する。
   上下の余白は拡大分を確保し、左右には余白を付けない。 */
@media (max-width: 768px) {
  .koka-instagram__feed #sb_instagram #sbi_images {
    gap: 15px !important;
    padding: 10px 0 !important;
  }
  .koka-instagram__feed #sb_instagram #sbi_images .sbi_item {
    flex-basis: 175px;
    width: 175px !important;
  }
}
.koka-instagram__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 278px;
  min-height: 84px;
  margin: 56px auto 0;
  border: 1px solid #d6063a;
  border-radius: 8px;
  color: #d6063a !important;
  font-family: 'Barlow Numerals', 'Zen Kaku Gothic New', sans-serif;
}
.koka-instagram__link strong {
  display: block;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}
.koka-instagram__link small {
  display: block;
  font-size: 13px;
  letter-spacing: 0.1em;
}
.koka-instagram__link > span:last-child {
  margin-left: 12px;
  font:
    22px 'Barlow Numerals',
    'Zen Kaku Gothic New',
    sans-serif;
  transition: transform 0.2s ease;
}
.koka-instagram__link:is(:hover, :focus-visible) > span:last-child {
  transform: translateX(3px);
}
.koka-instagram__icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  font-size: 24px;
}
/* スクロール時の登場演出：JSが利用できる場合だけ適用。 */
.koka-home.is-reveal-ready [data-reveal] {
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.koka-home.is-reveal-ready [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(30px);
}
.koka-home.is-reveal-ready [data-reveal='photo']:not(.is-visible) {
  transform: translateY(22px);
}

/* タブレット・小さめのPC：カードや本文の幅を調整。 */
@media (min-width: 768px) and (max-width: 1199px) {
  .koka-home .koka-home-container {
    width: calc(100% - 100px);
  }
  .koka-school__card {
    padding: 30px 22px;
  }
  .koka-school__card h2 {
    font-size: clamp(21px, 2.42vw, 29px);
  }
  .koka-school__links a {
    padding-left: 20px;
    font-size: 17px;
  }
  .koka-school__pamphlet {
    padding: 12px 12px 12px 70px;
    font-size: clamp(12px, 1.4vw, 16px);
  }
  .koka-school__pamphlet .koka-home-arrow {
    width: 28px;
    height: 28px;
  }
  .koka-school__pamphlet > img {
    left: 5px;
    width: 60px;
    height: 60px;
  }
  .koka-home .koka-concept {
    gap: 45px;
  }
  .koka-concept__photo {
    height: 560px;
  }
  .koka-concept__text--desktop {
    width: auto;
    max-width: 100%;
  }
  .koka-concept__text {
    margin-top: 13px !important;
    font-size: 14px;
    line-height: 29px;
  }
  .koka-news__layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 55px;
  }
  .koka-news__categories {
    gap: 19px;
  }
  .koka-news__categories button {
    font-size: 14px;
    gap: 8px;
  }
  .koka-news__list a {
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 8px 18px;
    padding-left: 0;
  }
  .koka-news__meta {
    grid-column: 1;
    grid-row: 1;
  }
  .koka-news__title {
    grid-column: 1;
    grid-row: 2;
  }
  .koka-news__image {
    grid-column: 2;
    grid-row: 1 / 3;
    width: 120px;
    height: 90px;
  }
  .koka-blog__layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 40px;
  }
  .koka-blog__content {
    margin-right: -50px;
  }
  .koka-blog__controls {
    padding-right: 50px;
  }
  .koka-home-heading h2 {
    font-size: 40px;
  }
}

/* モバイルヘッダーの高さ65pxに、メインビジュアルの高さ計算を合わせる。 */
@media (max-width: 1023px) {
  .koka-home-page {
    --koka-header-height: 65px;
  }
  .koka-hero {
    height: calc(100vh - var(--koka-header-height) - 60px);
    height: calc(100dvh - var(--koka-header-height) - 60px);
  }
}

@media (max-width: 767px) {
  /* スマートフォン：各セクションを縦に並べ、固定下部メニューの高さも確保。 */
  .koka-home {
    font-size: 14px;
  }
  .koka-home .koka-home-container {
    width: calc(100% - 30px);
  }
  .koka-hero {
    height: calc(100vh - var(--koka-header-height) - 60px);
    height: calc(100dvh - var(--koka-header-height) - 60px);
    min-height: 0;
  }
  .koka-hero__slide--photo::after {
    background: linear-gradient(180deg, rgb(0 0 0 / 0.24), rgb(0 0 0 / 0.06) 55%, transparent);
  }
  .koka-hero__photo img {
    object-position: var(--hero-mobile-position, 51% center);
  }
  .koka-hero__copy {
    top: 8.2%;
    left: var(--hero-copy-left);
  }
  .koka-hero__lead {
    font-size: clamp(14px, min(4.59cqw, 5.3cqh), 24px);
  }
  .koka-hero .koka-hero__title {
    margin: min(1.5cqw, 1.8cqh) 0 min(5.38cqw, 5cqh);
    font-size: clamp(54px, min(20.79cqw, 24cqh), 120px);
    letter-spacing: 0.05em;
    line-height: 0.9827;
  }
  .koka-hero__sub {
    font-size: clamp(16px, min(6.15cqw, 5.7cqh), 30px);
    letter-spacing: 0.05em;
    line-height: 1.17;
  }
  .koka-hero__coeducation {
    top: auto;
    right: 21px;
    bottom: calc(40px + 125.12px + 16px);
    left: 7.2%;
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 3px 10px;
    width: auto;
    padding: 12px 16px;
  }
  .koka-hero__coeducation-year { margin-bottom: 2px; font-size: 10px; }
  .koka-hero__coeducation-message { font-size: clamp(15px, 4.35vw, 17px); }
  .koka-hero__coeducation-title { font-size: 11px; }
  .koka-hero__coeducation-visual { min-height: 92px; margin: -4px -16px -12px 0; }
  .koka-hero__coeducation-link { gap: 10px; margin-top: 4px; font-size: 10px; }
  .koka-hero__coeducation-arrow { flex-basis: 22px; width: 22px; }
  .koka-hero__coeducation-arrow::before { width: 21px; }
  .koka-hero {
    --hero-events-right: 21px;
    --hero-events-gap: 15.55px;
  }
  .koka-event {
    width: 125.12px;
    height: 125.12px;
    padding: 15px 12px 9px;
    background-image: url('/img/index/event-junior.svg?ver=20261030-white-room'), url('/img/index/event-junior-base-mobile.svg?ver=20261013-colors');
  }
  .koka-event--senior {
    background-image: url('/img/index/event-senior.svg?ver=20261030-white-room'), url('/img/index/event-senior-base-mobile.svg?ver=20261013-colors');
  }
  .koka-event__title {
    width: 100%;
    min-height: 28px;
    height: 28px;
    font-size: 11.3px;
    line-height: 13px;
  }
  .koka-event__date {
    gap: 5px;
    font-size: 24px;
    transform: none;
  }
  .koka-event__weekday {
    width: 19.793px;
    height: 19.793px;
    font-size: 10.216px;
  }
  .koka-event__school {
    transform: translateY(-3px);
    font-size: 12.724px;
    line-height: 16.966px;
  }
  .koka-home .koka-important {
    display: block;
    margin-top: 0;
    padding: 15px 0;
  }
  .koka-important h2 {
    margin-bottom: 10px;
  }
  .koka-important li {
    display: block;
  }
  .koka-important li > span {
    display: block;
    font-size: 12px;
  }
  .koka-home .koka-promo {
    padding-top: 40px;
  }
  .koka-school-jump {
    display: flex;
    gap: 6px;
    width: calc(100% - 30px);
    margin: 59px auto 41px;
  }
  .koka-school-jump > a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex: 1;
    min-height: 59px;
    background: var(--home-light);
    color: #003168;
    font-size: 22px;
  }
  .koka-school-jump > a > span {
    font:
      20px 'Barlow Numerals',
      'Zen Kaku Gothic New',
      sans-serif;
  }
  .koka-schools {
    display: block;
  }
  .koka-school + .koka-school {
    margin-top: 41px;
  }
  .koka-school__photo {
    height: 65.385vw;
    max-height: 420px;
  }
  .koka-school__catch {
    top: 16px;
    right: 15px;
  }
  .koka-school__catch > span {
    padding: 6px 5px;
    font-size: 15px;
    letter-spacing: 3px;
    line-height: 18px;
  }
  .koka-school:first-child .koka-school__card,
  .koka-school:last-child .koka-school__card {
    margin-left: auto;
    margin-right: auto;
  }
  .koka-school__card {
    width: calc(100% - 30px);
    max-width: none;
    margin-top: -67px;
    padding: 15px 23px 18px;
  }
  .koka-school__card h2 {
    margin-bottom: 18px;
    font-size: 28px;
    line-height: 42px;
  }
  .koka-school__links {
    gap: 7px;
  }
  .koka-school__links a {
    min-height: 54px;
    padding: 10px 13px 10px 21px;
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: 1.8px;
  }
  .koka-school__links .koka-home-arrow {
    width: 24.6113px;
    height: 24.6113px;
  }
  .koka-school__links .koka-home-arrow path {
    stroke-width: 0.911528;
  }
  .koka-school__pamphlet {
    min-height: 54px;
    margin-top: 23px;
    padding: 9px 12px 9px 81px;
    font-size: 18px;
    letter-spacing: 0;
    line-height: 1.5;
  }
  .koka-school__pamphlet > img {
    left: 9px;
    width: 64px;
    height: 64px;
  }
  .koka-school__pamphlet .koka-home-arrow {
    width: 25px;
    height: 25px;
  }
  .koka-home .koka-concept {
    display: block;
    width: 100%;
    margin-top: 57px;
    margin-bottom: 52px;
  }
  .koka-concept__photo {
    height: 77.436vw;
    max-height: 440px;
    border-radius: 0;
  }
  .koka-concept__photo img {
    width: 115.14%;
    height: 130.13%;
    left: -15.23%;
    top: -30.13%;
  }
  .koka-concept__copy {
    position: relative;
    width: calc(100% - 30px);
    margin: -78px auto 0;
    padding: 38px 28px 0;
    background: #fff;
  }
  .koka-concept__copy h2 {
    width: 255px;
    margin: 0 auto;
  }
  .koka-home .koka-concept__lead {
    margin-top: 24px;
    padding-left: 0;
    font-size: 16px;
    line-height: 28px;
  }
  .koka-concept__text {
    margin-top: 16px !important;
    padding-left: 0 !important;
    font-size: 14px;
    line-height: 28px;
  }
  .koka-concept__text--desktop {
    display: none;
  }
  .koka-concept__text--mobile {
    display: block;
  }
  .koka-concept .koka-home-more {
    margin: 26px auto 0;
  }
  .koka-news {
    padding: 70px 0 65px;
  }
  .koka-news__layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .koka-home-heading h2 {
    font-size: 36px;
    letter-spacing: 3.6px;
    line-height: 54px;
  }
  .koka-home-heading > p {
    gap: 7px;
  }
  .koka-news__schools {
    display: flex;
    gap: 6px;
    margin-top: 40px;
  }
  .koka-news__schools button {
    flex: 1;
    justify-content: center;
    min-height: 36px;
    padding: 5px;
    border-radius: 2px;
    font-size: 14px;
    letter-spacing: 1.4px;
  }
  .koka-news__schools button > span {
    display: none;
  }
  .koka-news__main {
    padding-top: 28px;
  }
  .koka-news__categories {
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 30px;
  }
  .koka-news__categories button {
    gap: 7px;
    font-size: 14px;
    letter-spacing: 0.06em;
  }
  .koka-news__list a {
    grid-template-columns: minmax(0, 1fr) 120px;
    grid-template-rows: auto auto;
    gap: 8px 18px;
    min-height: 129px;
    padding: 20px 0;
  }
  .koka-news__meta {
    grid-column: 1;
    grid-row: 1;
    gap: 8px;
    font-size: 12px;
  }
  .koka-news__badge {
    padding: 2px 8px;
    min-width: 72px;
    max-width: 92px;
    font-size: 12px;
  }
  .koka-news__title {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    font-size: 14px;
    line-height: 22px;
  }
  .koka-news__image {
    grid-column: 2;
    grid-row: 1 / 3;
    width: 120px;
    height: 87px;
  }
  .koka-news__side {
    display: contents;
  }
  .koka-news__more {
    order: 3;
    margin: 40px auto 0;
  }
  .koka-news__more > ul {
    left: 50%;
    transform: translateX(-50%);
  }
  .koka-blog {
    padding: 55px 0 125px;
  }
  .koka-blog__layout {
    display: block;
  }
  .koka-blog__head {
    padding-top: 0;
    margin-bottom: 28px;
  }
  .koka-blog__description {
    margin-top: 14px !important;
    font-size: 14px;
    line-height: 24px;
  }
  .koka-blog__head .koka-home-more {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
  }
  .koka-blog__content {
    margin: 0 -15px;
  }
  .koka-blog__track {
    gap: 20px;
    padding: 0 15px 8px !important;
  }
  .koka-blog__track > li {
    flex-basis: 273px;
  }
  .koka-blog__image {
    height: 201px;
    border-radius: 15px;
  }
  .koka-blog__school {
    padding: 5px 12px;
    border-radius: 15px 0 8px 0;
    font-size: 12px;
  }
  .koka-blog__card > time {
    margin-top: 12px;
    font-size: 12px;
  }
  .koka-blog__card > h3 {
    min-height: 44px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 22px;
  }
  .koka-blog__tags > span {
    padding: 2px 8px;
    font-size: 11px;
  }
  .koka-blog__controls {
    position: absolute;
    top: 142px;
    right: 15px;
    gap: 8px;
    margin: 0;
    padding: 0;
  }
  .koka-blog__controls button {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }
  .koka-blog__progress {
    display: none;
  }
  .koka-instagram {
    padding-bottom: 86px;
  }
  .koka-instagram__marquee {
    height: 47px;
  }
  .koka-instagram__marquee > div {
    gap: 24px;
  }
  .koka-instagram__marquee img {
    width: 366.6px;
    height: 47.4px;
  }
  .koka-instagram__feed {
    width: 100%;
    margin-top: -8px;
  }

  .koka-instagram__link {
    margin-top: 36px;
  }
}

/* 小さいスマートフォン：カード内の文字と余白を縮め、横へのはみ出しを防ぐ。 */
@media (max-width: 374px) {
  .koka-school__card {
    padding-left: 15px;
    padding-right: 15px;
  }
  .koka-school__card h2 {
    font-size: 25px;
  }
  .koka-school__pamphlet {
    font-size: 15px;
    padding-left: 72px;
  }
  .koka-school__pamphlet > img {
    width: 57px;
    height: 57px;
  }
  .koka-news__categories button {
    font-size: 12px;
  }
  .koka-news__categories button::before {
    width: 8px;
    height: 8px;
    background-size: contain;
  }
  .koka-news__list a {
    grid-template-columns: minmax(0, 1fr) 100px;
    gap: 8px 12px;
  }
  .koka-news__image {
    width: 100px;
    height: 80px;
  }
  .koka-news__meta {
    flex-wrap: wrap;
    gap: 4px;
  }
  .koka-concept__copy {
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* 端末の「視差効果を減らす」設定時は、拡大・移動のアニメーションを省く。 */
  .koka-home *,
  .koka-home *::before,
  .koka-home *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .koka-home.is-reveal-ready [data-reveal]:not(.is-visible) {
    opacity: 1;
    transform: none;
  }
}


/* 1枚目は共学化のイラスト。2・3枚目の写真と文字は従来のまま。 */
.koka-hero__photo { z-index: 0; }
.koka-hero__slide--photo::after { z-index: 1; transition: opacity .4s ease; }
.koka-hero__copy,
.koka-hero__events { z-index: 2; transition: opacity .4s ease; }
.koka-hero__slide.is-active { pointer-events: auto; }
.koka-hero.is-announcement-slide { z-index: 1; }
.koka-hero.is-announcement-slide .koka-hero__dot::before { background: rgb(0 64 148 / .3); }
.koka-hero.is-announcement-slide .koka-hero__dot[aria-current='true']::before { background: var(--home-blue); }
.koka-home .koka-hero.is-announcement-slide .koka-hero__dot:focus-visible { outline-color: var(--home-blue); }
.koka-hero__welcome {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #f0f5fa;
  color: var(--home-blue);
}
.koka-hero__welcome::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 43%;
  width: min(96cqw, 1450px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #dceaf6 url('/img/index/hero-coeducation-sky.webp') center / cover no-repeat;
  opacity: .6;
  transform: translateY(-47%);
}
.koka-hero__welcome .koka-hero__welcome-art {
  position: absolute;
  right: 1.5%;
  bottom: 0;
  width: 64%;
  height: 96%;
  max-width: none;
  object-fit: contain;
  object-position: right bottom;
  transform: none;
}
.koka-hero.is-slideshow-ready .koka-hero__slide--announcement:is(.is-active, .is-leaving) img {
  animation: none;
  transform: none;
}
.koka-hero__welcome-copy {
  position: absolute;
  top: 44%;
  left: var(--hero-copy-left);
  width: 47%;
  transform: translateY(-50%);
}
.koka-home .koka-hero__welcome-date {
  margin: 0 0 24px;
  font-size: clamp(26px, min(3cqw, 5.2cqh), 44px);
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.5;
}
.koka-hero #koka-welcome-title {
  margin: 0;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: clamp(28px, min(3.6cqw, 6.4cqh), 58px);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.7;
}
.koka-hero #koka-welcome-title > span { display: block; white-space: nowrap; }
.koka-home a.koka-hero__welcome-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
  min-width: 224px;
  min-height: 56px;
  margin-top: 36px;
  padding: 14px 24px;
  border: 1px solid rgb(0 64 148 / .16);
  border-radius: 40px;
  background: #fff;
  color: var(--home-blue);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 24px;
  transition: background-color .25s, border-color .25s;
}
.koka-hero__welcome-cta svg { flex: none; width: 20px; height: 20px; transition: transform .25s; }
.koka-home a.koka-hero__welcome-cta:focus-visible { outline: 3px solid var(--home-blue); outline-offset: 5px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .koka-home a.koka-hero__welcome-cta:hover { background: #e4eff9; border-color: var(--home-blue); }
  .koka-hero__welcome-cta:hover svg { transform: translateX(4px); }
}
@media (min-width:768px) and (max-width:1023px) {
  .koka-hero__welcome-copy { top: 10%; width: 60%; transform: none; }
  .koka-hero__welcome .koka-hero__welcome-art { bottom: 120px; width: 80%; height: 70%; }
  }
@media (max-width:767px) {
  .koka-hero__welcome::before { left: 20%; top: 55%; width: 150cqw; transform: translateY(-40%); }
  .koka-hero__welcome-copy { top: clamp(32px, 6cqh, 52px); left: var(--hero-copy-left); width: 88%; transform: none; }
  .koka-home .koka-hero__welcome-date { margin-bottom: 16px; font-size: clamp(24px, 7cqw, 30px); }
  .koka-hero #koka-welcome-title { font-size: clamp(22px, 7cqw, 30px); line-height: 1.65; letter-spacing: .02em; }
  .koka-home a.koka-hero__welcome-cta { min-width: 192px; min-height: 48px; margin-top: 24px; padding: 11px 20px; font-size: 14px; }
  .koka-hero__welcome .koka-hero__welcome-art { right: -1%; bottom: 110px; width: 98%; height: 62%; }
  .koka-hero { --hero-copy-left: 5%; --hero-events-bottom: 40px; }
}
@media (max-height:560px) {
  .koka-hero__welcome-copy { top: 18px; width: 53%; transform: none; }
  .koka-home .koka-hero__welcome-date { margin-bottom: 8px; font-size: 20px; }
  .koka-hero #koka-welcome-title { font-size: clamp(18px, 2.8cqw, 28px); line-height: 1.5; }
  .koka-home a.koka-hero__welcome-cta { min-width: 180px; min-height: 40px; margin-top: 14px; padding: 7px 18px; font-size: 13px; }
  .koka-hero__welcome .koka-hero__welcome-art { top: 0; right: 1%; bottom: auto; width: 50%; height: calc(100dvh - var(--koka-header-height)); }
}
@media (max-height:560px) and (max-width:1023px) {
  .koka-hero__welcome .koka-hero__welcome-art { height: calc(100dvh - var(--koka-header-height) - 60px); }
}
@media (prefers-reduced-motion:reduce) {
  .koka-hero__slide,
  .koka-hero__slide--photo::after,
  .koka-hero__copy,
  .koka-hero__events,
  .koka-home a.koka-hero__welcome-cta,
  .koka-hero__welcome-cta svg { transition: none; }
}

/* 共学化の1枚目は、同じシリーズの女子・男子イラストを並べる。 */
.koka-hero__welcome .koka-hero__welcome-art--girl { right: 26%; width: 43%; }
.koka-hero__welcome .koka-hero__welcome-art--boy { right: -3.5%; width: 43%; }
@media (min-width:1024px) and (max-width:1199px) {
  .koka-hero__welcome-copy { width: 42%; }
  .koka-hero #koka-welcome-title { font-size: 32px; }
  .koka-hero__welcome .koka-hero__welcome-art--girl { right: 30%; width: 55%; }
  .koka-hero__welcome .koka-hero__welcome-art--boy { right: -12%; width: 55%; }
}
@media (min-width:768px) and (max-width:1023px) {
  .koka-hero__welcome .koka-hero__welcome-art--girl { right: 38%; width: 72%; }
  .koka-hero__welcome .koka-hero__welcome-art--boy { right: -14%; width: 72%; }
}
@media (min-width:768px) and (max-width:1023px) and (min-height:561px) and (max-height:850px) {
  .koka-hero__welcome-copy { top: 44%; width: 42%; transform: translateY(-50%); }
  .koka-hero #koka-welcome-title { font-size: clamp(26px, 3.55cqw, 36px); }
  .koka-hero__welcome .koka-hero__welcome-art--girl { bottom: 80px; right: 30%; width: 55%; height: 96%; }
  .koka-hero__welcome .koka-hero__welcome-art--boy { bottom: 80px; right: -12%; width: 55%; height: 96%; }
}
@media (max-width:767px) {
  .koka-hero__welcome .koka-hero__welcome-art--girl { right: 38%; width: 76%; }
  .koka-hero__welcome .koka-hero__welcome-art--boy { right: -19%; width: 76%; }
}
@media (max-height:560px) {
  .koka-hero__welcome .koka-hero__welcome-art--girl { right: 29%; width: 32%; }
  .koka-hero__welcome .koka-hero__welcome-art--boy { right: -5%; width: 32%; }
}

/* 各写真とタイトルを同じスライドにまとめ、表示を連動させる。 */
.koka-hero__slide--photo > picture { position: absolute; inset: 0; display: block; }
.koka-home .koka-hero__welcome-date { margin-bottom: 18px; }
.koka-hero #koka-welcome-title { font-size: clamp(34px, min(4.25cqw, 6.9cqh), 64px); line-height: 1.35; }
.koka-hero #koka-welcome-title > span + span { margin-top: .12em; }
.koka-hero #koka-welcome-title .koka-hero__welcome-emphasis { font-size: clamp(52px, min(8cqw, 12.6cqh), 114px); font-weight: 800; line-height: 1.2; font-style: normal; }
.koka-home a.koka-hero__welcome-cta { margin-top: 28px; }
/* 1枚目は専用テキスト。2〜4枚目の共通テキストは2枚目で左から入り、その後は固定。 */
@keyframes koka-hero-text-in {
  from { opacity: 0; transform: translateX(-32px); }
  to { opacity: 1; transform: translateX(0); }
}
.koka-hero.is-slideshow-ready .koka-hero__slide.is-active .koka-hero__welcome-date,
.koka-hero.is-slideshow-ready .koka-hero__slide.is-active #koka-welcome-title > span,
.koka-hero.is-slideshow-ready .koka-hero__slide.is-active .koka-hero__welcome-cta,
.koka-hero.is-photo-intro > .koka-hero__copy .koka-hero__lead,
.koka-hero.is-photo-intro > .koka-hero__copy .koka-hero__title-line > span,
.koka-hero.is-photo-intro > .koka-hero__copy .koka-hero__sub {
  animation: koka-hero-text-in .9s cubic-bezier(.22, 1, .36, 1) both;
}
.koka-hero.is-slideshow-ready .koka-hero__slide.is-active .koka-hero__welcome-date { animation-delay: .08s; }
.koka-hero.is-slideshow-ready .koka-hero__slide.is-active #koka-welcome-title > span:nth-child(1) { animation-delay: .18s; }
.koka-hero.is-slideshow-ready .koka-hero__slide.is-active #koka-welcome-title > span:nth-child(2) { animation-delay: .28s; }
.koka-hero.is-slideshow-ready .koka-hero__slide.is-active #koka-welcome-title > span:nth-child(3) { animation-delay: .38s; }
.koka-hero.is-slideshow-ready .koka-hero__slide.is-active .koka-hero__welcome-cta { animation-delay: .48s; }
.koka-hero.is-photo-intro > .koka-hero__copy .koka-hero__lead { animation-delay: .1s; }
.koka-hero.is-photo-intro > .koka-hero__copy .koka-hero__title-line:nth-child(1) > span { animation-delay: .2s; }
.koka-hero.is-photo-intro > .koka-hero__copy .koka-hero__title-line:nth-child(2) > span { animation-delay: .32s; }
.koka-hero.is-photo-intro > .koka-hero__copy .koka-hero__sub { animation-delay: .44s; }
@media (min-width:768px) and (max-width:1199px) {
  .koka-school__card { margin-top: max(-127px, calc(260px - 32.7857vw)); }
}
@media (min-width:768px) and (max-width:1023px) and (min-height:851px) {
  .koka-hero__welcome .koka-hero__welcome-art--girl,
  .koka-hero__welcome .koka-hero__welcome-art--boy { width: min(72%, 560px); bottom: 32px; }
}
@media (min-width:768px) and (max-width:1023px) and (min-height:561px) and (max-height:850px) {
  .koka-hero #koka-welcome-title { font-size: clamp(26px, 3.55cqw, 36px); }
}
@media (max-width:767px) {
  .koka-home .koka-hero__welcome-date { margin-bottom: 12px; }
  .koka-hero #koka-welcome-title { font-size: clamp(23px, 7.4cqw, 32px); line-height: 1.45; }
  .koka-hero #koka-welcome-title .koka-hero__welcome-emphasis { font-size: clamp(39px, 12.3cqw, 54px); }
  .koka-home a.koka-hero__welcome-cta { min-height: 44px; margin-top: 16px; padding-block: 9px; }
}
@media (max-height:560px) {
  .koka-home .koka-hero__welcome-date { margin-bottom: 8px; }
  .koka-hero #koka-welcome-title { font-size: clamp(19px, 2.95cqw, 30px); line-height: 1.3; }
  .koka-hero #koka-welcome-title .koka-hero__welcome-emphasis { font-size: clamp(28px, 4.45cqw, 44px); }
  .koka-home a.koka-hero__welcome-cta { min-height: 40px; margin-top: 10px; padding-block: 7px; }
}
/* 320px幅でも、縦書きの末尾を手前のカードで隠さない。 */
@media (max-width:359px) {
  .koka-school__catch { top: 8px; }
  .koka-school__catch > span { padding: 5px 4px; font-size: 13px; letter-spacing: 1.5px; line-height: 16px; }
}
/* 縦長の固定最小高を使わず、小さいスマホでも1画面内に収める。 */
@media (max-width:767px) and (max-height:700px) and (max-aspect-ratio:1/1) {
  .koka-hero__welcome-copy { top: 18px; }
  .koka-home .koka-hero__welcome-date { margin-bottom: 8px; font-size: clamp(18px, 5.7cqw, 22px); }
  .koka-hero #koka-welcome-title { font-size: clamp(19px, 5.9cqw, 24.5px); line-height: 1.3; }
  .koka-hero #koka-welcome-title .koka-hero__welcome-emphasis { font-size: clamp(33px, 10.4cqw, 44px); }
  .koka-home a.koka-hero__welcome-cta { min-height: 40px; margin-top: 12px; padding-block: 7px; }
  .koka-hero__welcome .koka-hero__welcome-art--girl { width: 65%; bottom: 72px; }
  .koka-hero__welcome .koka-hero__welcome-art--boy { width: 65%; bottom: 72px; }
  .koka-hero { --hero-events-bottom: 12px; }
  .koka-hero.is-announcement-slide .koka-hero__controls { bottom: 12px; }
}
@media (max-height:560px) and (min-aspect-ratio:3/2) {
  .koka-hero__welcome .koka-hero__welcome-art { height: calc(100% - 55px); }
  .koka-hero { --hero-events-right: 16px; --hero-events-bottom: 12px; --hero-events-gap: 12px; }
  .koka-hero .koka-event { width: 88px; height: 88px; padding: 8px 8px 6px; }
  .koka-hero .koka-event__title { min-height: 20px; height: 20px; font-size: 8.2px; line-height: 10px; }
  .koka-hero .koka-event__date { gap: 3px; margin-top: 2px; font-size: 18px; }
  .koka-hero .koka-event__weekday { width: 15px; height: 15px; font-size: 8px; }
  .koka-hero .koka-event__school { font-size: 10px; line-height: 13px; transform: translateY(-2px); }
  .koka-hero .koka-hero__copy { top: 7%; }
  .koka-hero .koka-hero__lead { font-size: 12px; }
  .koka-hero .koka-hero__title { margin: 4px 0 10px; font-size: clamp(32px, min(8cqw, 20cqh), 70px); }
  .koka-hero .koka-hero__sub { font-size: 12px; line-height: 1.2; }
}
@media (prefers-reduced-motion:reduce) {
  .koka-hero.is-slideshow-ready .koka-hero__slide.is-active .koka-hero__welcome-date,
  .koka-hero.is-slideshow-ready .koka-hero__slide.is-active #koka-welcome-title > span,
  .koka-hero.is-slideshow-ready .koka-hero__slide.is-active .koka-hero__welcome-cta,
  .koka-hero.is-photo-intro > .koka-hero__copy .koka-hero__lead,
  .koka-hero.is-photo-intro > .koka-hero__copy .koka-hero__title-line > span,
  .koka-hero.is-photo-intro > .koka-hero__copy .koka-hero__sub {
    animation: none; opacity: 1; transform: none;
  }
}

/* 1枚目の文章を左へ寄せて大きくする。狭いPC幅では人物との間隔を保つ。 */
@media (min-width:1024px) and (max-width:1199px) {
  .koka-hero #koka-welcome-title { font-size: clamp(34px, 3.57cqw, 44px); }
}

@media (max-height:560px) and (min-aspect-ratio:3/2) {
  .koka-hero.is-announcement-slide .koka-hero__controls { left: var(--hero-copy-left); bottom: 6px; }
}

/* 人物に近い画面幅では文字間を整え、大きくした文章を収める。 */
@media (min-width:768px) and (max-width:1199px) {
  .koka-hero #koka-welcome-title { letter-spacing: 0; }
}

/* 横向きの小さい画面では、左端をそろえたインジケーターと詳細ボタンの間隔を確保。 */
@media (max-height:560px) and (min-aspect-ratio:3/2) {
  .koka-hero__welcome-copy { top: 8px; }
  .koka-home .koka-hero__welcome-date { margin-bottom: 4px; line-height: 1.2; }
  .koka-hero #koka-welcome-title { line-height: 1.2; }
  .koka-hero #koka-welcome-title > span + span { margin-top: 0; }
  .koka-home a.koka-hero__welcome-cta { margin-top: 6px; }
}

/* 男女の間隔を広げ、PCの詳細ボタンを少し下へ配置。 */
@media (min-width:1024px) {
  .koka-hero__welcome .koka-hero__welcome-art--girl { right: 35%; width: 38%; height: 92.2%; }
  .koka-hero__welcome .koka-hero__welcome-art--boy { right: -4.6%; width: 44.3%; height: 98.9%; }
  .koka-home a.koka-hero__welcome-cta { position: relative; top: 14px; font-size: 18px; }
}
@media (min-width:1024px) and (max-width:1199px) {
  .koka-hero__welcome .koka-hero__welcome-art--girl { right: 35%; width: 38%; }
  .koka-hero__welcome .koka-hero__welcome-art--boy { right: -13.5%; width: 56.6%; }
}
@media (min-width:1024px) and (max-height:560px) {
  .koka-home a.koka-hero__welcome-cta { top: 8px; font-size: 17px; }
}
@media (min-width:768px) and (max-width:1023px) {
  .koka-hero__welcome .koka-hero__welcome-art--girl { right: 39.2%; width: 69.1%; height: 67.2%; }
  .koka-hero__welcome .koka-hero__welcome-art--boy { right: -16.3%; width: 74.2%; height: 72.1%; }
}
@media (min-width:768px) and (max-width:1023px) and (min-height:851px) {
  .koka-hero__welcome .koka-hero__welcome-art--girl { width: min(69.1%, 537.6px); }
  .koka-hero__welcome .koka-hero__welcome-art--boy { width: min(74.2%, 576.8px); }
}
@media (min-width:768px) and (max-width:1023px) and (min-height:561px) and (max-height:850px) {
  .koka-hero__welcome .koka-hero__welcome-art--girl { right: 31%; width: 52.8%; height: 92.2%; }
  .koka-hero__welcome .koka-hero__welcome-art--boy { right: -13.5%; width: 56.6%; height: 98.9%; }
}

/* スマホはブラウザの表示高からヘッダーと固定メニューを除いた1画面に収める。 */
@media (max-width:767px) {
  .koka-hero {
    height: calc(100vh - var(--koka-header-height) - 60px - env(safe-area-inset-bottom, 0px));
    height: calc(100dvh - var(--koka-header-height) - 60px - env(safe-area-inset-bottom, 0px));
    min-height: 0;
  }
}
@media (max-width:767px) and (max-aspect-ratio:1/1) {
  .koka-hero {
    --hero-girl-height: min(48cqh, 82vw);
    --hero-boy-height: min(52cqh, 86vw);
    --hero-event-size: clamp(68px, min(28cqw, 20cqh), 118px);
    --hero-events-bottom: 12px;
    --hero-events-right: 18px;
    --hero-events-gap: 12px;
  }
  .koka-hero__welcome-copy { top: clamp(12px, 3cqh, 28px); }
  .koka-home .koka-hero__welcome-date {
    margin-bottom: clamp(6px, 1.4cqh, 12px);
    font-size: clamp(18px, min(7cqw, 4.5cqh), 30px);
    line-height: 1.25;
  }
  .koka-hero #koka-welcome-title { font-size: clamp(18px, min(7.4cqw, 5cqh), 32px); line-height: 1.3; }
  .koka-hero #koka-welcome-title > span + span { margin-top: .08em; }
  .koka-hero #koka-welcome-title .koka-hero__welcome-emphasis { font-size: clamp(28px, min(12.3cqw, 8.5cqh), 54px); line-height: 1.1; }
  .koka-home a.koka-hero__welcome-cta {
    min-width: clamp(160px, 49cqw, 192px);
    min-height: clamp(32px, 7cqh, 44px);
    margin-top: clamp(16px, 3.8cqh, 28px);
    padding: 5px 18px;
    gap: 20px;
    font-size: clamp(12px, min(3.6cqw, 2.8cqh), 15px);
    line-height: 20px;
  }
  .koka-hero__welcome .koka-hero__welcome-art { top: auto; bottom: 0; width: auto; }
  .koka-hero__welcome .koka-hero__welcome-art--girl { height: var(--hero-girl-height); right: calc(75% - var(--hero-girl-height) * .4916201); }
  .koka-hero__welcome .koka-hero__welcome-art--boy { height: var(--hero-boy-height); right: calc(20% - var(--hero-boy-height) * .5569177); }

  /* アイコンは同じ位置のまま画面高に合わせて縮小し、下部メニューから離す。 */
  .koka-hero .koka-event { display: block; width: var(--hero-event-size); height: var(--hero-event-size); padding: 0; }
  .koka-hero .koka-event__title {
    position: absolute; top: 10%; left: 7%; width: 86%; min-height: 0; height: 27%;
    font-size: clamp(8px, calc(var(--hero-event-size) * .095), 12px); line-height: 1.15;
  }
  .koka-hero .koka-event__date {
    position: absolute; top: 35%; left: 0; width: 100%; height: 22%; margin: 0;
    justify-content: center; align-items: center; gap: calc(var(--hero-event-size) * .025);
    font-size: calc(var(--hero-event-size) * .21); line-height: 1; transform: none;
  }
  .koka-hero .koka-event__weekday { width: calc(var(--hero-event-size) * .16); height: calc(var(--hero-event-size) * .16); font-size: calc(var(--hero-event-size) * .09); }
  .koka-hero .koka-event__school {
    position: absolute; top: 65%; left: 0; width: 100%; margin: 0;
    font-size: clamp(8px, calc(var(--hero-event-size) * .11), 14px); line-height: 1.18; transform: none;
  }
  .koka-hero.is-announcement-slide .koka-hero__dot::before { background: rgb(255 255 255 / .55); }
  .koka-hero.is-announcement-slide .koka-hero__dot[aria-current='true']::before { background: #fff; }
  .koka-home .koka-hero.is-announcement-slide .koka-hero__dot:focus-visible { outline-color: #fff; }
}
@media (max-width:1023px) and (max-height:560px) and (min-aspect-ratio:3/2) {
  .koka-hero__welcome .koka-hero__welcome-art { top: auto; bottom: 0; }
  .koka-hero__welcome .koka-hero__welcome-art--girl { right: 24%; width: auto; height: 96%; }
  .koka-hero__welcome .koka-hero__welcome-art--boy { right: calc(6px - 39.0893cqh); width: auto; height: 120%; }
}

/* 最小の縦画面でも、広げた行間・ボタン余白と人物の間隔を保つ。 */
@media (max-width:767px) and (max-height:520px) and (max-aspect-ratio:1/1) {
  .koka-hero__welcome-copy { top: 8px; }
  .koka-home a.koka-hero__welcome-cta { margin-top: 10px; }
}

/* 共学化の1枚目：添付の雲、共創マーク、肩を補完した男女の一体イラスト。 */
.koka-hero__welcome {
  background: #d5f0fa url('/img/index/hero-coeducation-clouds.webp') center / cover no-repeat;
}
.koka-hero__welcome::before { content: none; }
.koka-hero__welcome .koka-hero__welcome-pair {
  position: absolute;
  z-index: 1;
  right: max(66px, 4cqw);
  bottom: 0;
  width: auto;
  height: min(94cqh, 58cqw);
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
  transform: none;
}
.koka-hero__welcome .koka-hero__welcome-mark {
  position: absolute;
  z-index: 2;
  top: 8%;
  left: 30%;
  width: clamp(88px, 8.5cqw, 140px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  transform: none;
}
.koka-hero__welcome-copy { z-index: 2; }
@media (min-width:768px) and (max-width:1023px) {
  .koka-hero__welcome .koka-hero__welcome-pair { right: 0; height: min(78cqh, 82cqw); }
  .koka-hero__welcome .koka-hero__welcome-mark { left: auto; right: 4%; width: clamp(72px, 9cqw, 96px); }
}
@media (max-width:767px) and (max-aspect-ratio:1/1) {
  .koka-hero { --hero-pair-size: min(52cqh, 90cqw); }
  .koka-hero__welcome { background-position: 80% center; }
  .koka-hero__welcome .koka-hero__welcome-pair {
    right: calc((100% - var(--hero-pair-size)) / 2);
    height: var(--hero-pair-size);
  }
  .koka-hero__welcome .koka-hero__welcome-mark {
    top: clamp(22px, 5cqh, 42px);
    right: 5%;
    left: auto;
    width: clamp(66px, min(20cqw, 15cqh), 96px);
  }
  .koka-hero.is-announcement-slide .koka-hero__dot::before { background: rgb(0 64 148 / .35); box-shadow: 0 0 0 1px rgb(255 255 255 / .8); }
  .koka-hero.is-announcement-slide .koka-hero__dot[aria-current='true']::before { background: #004094; }
  .koka-home .koka-hero.is-announcement-slide .koka-hero__dot:focus-visible { outline-color: #004094; }
}
@media (max-width:1023px) and (max-height:560px) and (min-aspect-ratio:3/2) {
  .koka-hero__welcome .koka-hero__welcome-pair { right: max(10px, 2cqw); height: min(107cqh, 58cqw); }
  .koka-hero__welcome .koka-hero__welcome-mark { top: 8px; right: auto; left: 52%; width: clamp(44px, 20cqh, 66px); }
}

/* 1枚目のPC構図：人物を中央の下へ、共創マークを右上へ。 */
@media (min-width:1024px) {
  /* アイコン2個と間隔を避け、人物の顔が隠れない大きさにする。 */
  .koka-hero { --hero-people-size: min(84cqh, 58cqw, calc((62.7cqw - 392px) / .86)); }
  .koka-hero__welcome .koka-hero__welcome-pair {
    right: auto;
    left: 30%;
    height: var(--hero-people-size);
    bottom: calc(var(--hero-people-size) * -.25);
  }
  .koka-hero__welcome .koka-hero__welcome-mark {
    left: auto;
    right: 15%;
    top: 28%;
    width: clamp(110px, 11cqw, 180px);
  }
}
@media (min-width:1280px) and (max-width:1499px) {
  .koka-hero { --hero-people-size: min(67cqh, 50cqw, calc((59.7cqw - 392px) / .86)); }
  .koka-hero__welcome .koka-hero__welcome-pair { left: 33%; }
}
@media (min-width:1024px) and (max-width:1279px) {
  .koka-hero { --hero-people-size: min(60cqh, 48cqw, calc((69.7cqw - 392px) / .86)); }
  .koka-hero__welcome .koka-hero__welcome-pair { left: 23%; bottom: calc(var(--hero-people-size) * -.28); }
}
@media (min-width:1024px) and (max-width:1679px) and (min-height:1000px) {
  .koka-hero__welcome .koka-hero__welcome-pair { bottom: calc(var(--hero-people-size) * -.35); }
}
/* スマホの縦画面は、画像の左端を画面端に合わせて切れ目を隠す。 */
@media (max-width:767px) and (max-aspect-ratio:1/1) {
  .koka-hero__welcome .koka-hero__welcome-pair { left: 0; right: auto; }
}

/* PC：人物と共創マークを少し大きくし、顔とイベントアイコンの間隔を保つ。 */
@media (min-width:1024px) {
  .koka-hero { --hero-people-size: min(115cqh, 64cqw); }
  .koka-hero__welcome .koka-hero__welcome-pair { left: 27%; bottom: calc(var(--hero-people-size) * -.255); }
  .koka-hero__welcome .koka-hero__welcome-mark {
    top: 20%;
    right: 8%;
    width: clamp(124px, 12.6cqw, 202px);
  }
}
@media (min-width:1280px) and (max-width:1359px) {
  .koka-hero__welcome .koka-hero__welcome-pair { left: 28%; bottom: calc(var(--hero-people-size) * -.245); }
}
@media (min-width:1360px) and (max-width:1499px) {
  .koka-hero__welcome .koka-hero__welcome-pair { left: 29%; }
}
@media (min-width:1280px) and (max-width:1679px) and (min-height:1000px) {
  .koka-hero { --hero-people-size: min(84cqh, 58cqw, calc((62.7cqw - 392px) / .86)); }
  .koka-hero__welcome .koka-hero__welcome-pair { left: 30%; bottom: calc(var(--hero-people-size) * -.35); }
}
@media (min-width:1024px) and (max-width:1279px) {
  .koka-hero { --hero-people-size: min(60cqh, 48cqw, calc((69.7cqw - 392px) / .86)); }
  .koka-hero__welcome .koka-hero__welcome-pair { left: 23%; bottom: calc(var(--hero-people-size) * -.28); }
}
@media (min-width:1024px) and (max-width:1279px) and (min-height:1000px) {
  .koka-hero__welcome .koka-hero__welcome-pair { bottom: calc(var(--hero-people-size) * -.35); }
}
/* スマホ：添付の構図に合わせ、左のタイトルと人物、右中央の共創マークを配置。 */
@media (max-width:767px) and (max-aspect-ratio:1/1) {
  .koka-hero__welcome-copy { top: clamp(24px, 7cqh, 48px); }
  .koka-hero__welcome .koka-hero__welcome-mark {
    top: 44.5%;
    right: 5%;
    width: clamp(72px, min(26cqw, 18cqh), 108px);
  }
}

/* 円の上部の内側にタイトルを収める。PC・スマホで同じ比率にする。 */
.koka-event { --event-title-diameter: 177px; }
.koka-event,
.koka-event__title,
.koka-event__title > span { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.koka-event.koka-event .koka-event__title {
  width: calc(var(--event-title-diameter) * .74);
  max-width: calc(var(--event-title-diameter) * .74);
  margin-inline: auto;
  font-size: calc(var(--event-title-diameter) * .08);
  line-height: 1.2;
}
.koka-event .koka-event__title > span {
  position: relative;
  top: calc(var(--event-title-diameter) * .02);
}
@media (max-width:767px) {
  .koka-event { --event-title-diameter: 125.12px; }
  .koka-junior .koka-junior-event,
  .koka-senior .koka-senior-event { --event-title-diameter: 144px; }
}
@media (max-width:767px) and (max-aspect-ratio:1/1) {
  .koka-hero .koka-event { --event-title-diameter: var(--hero-event-size); }
  .koka-hero .koka-event .koka-event__title {
    top: 12.5%;
    left: 13%;
    height: 23%;
  }
  .koka-hero .koka-event .koka-event__title > span { top: 0; }
}
@media (max-height:560px) and (min-aspect-ratio:3/2) {
  .koka-hero .koka-event { --event-title-diameter: 88px; }
}

/* 色付き部分を浅くし、タイトル・日付の白地に余白を確保する。 */
.koka-event.koka-event .koka-event__school {
  position: absolute;
  top: 68.5%;
  left: 0;
  width: 100%;
  margin: 0;
  transform: none;
  font-size: clamp(8px, calc(var(--event-title-diameter) * .10), 18px);
  line-height: 1.18;
}

/* Center the WordPress promotion, with separate desktop artwork. */
.koka-home .koka-promo ul {
  justify-content: flex-start;
  justify-content: safe center;
}
.koka-home .koka-promo a,
.koka-home .koka-promo picture,
.koka-home .koka-promo img {
  display: block;
}
@media (min-width: 768px) {
  .koka-home .koka-promo { margin-top: 80px; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
  .koka-home .koka-promo .koka-promo__responsive {
    flex: 0 0 min(800px, 100%);
    max-width: 800px;
  }
  .koka-home .koka-promo__responsive picture {
    overflow: hidden;
    border-radius: 8px;
  }
  .koka-home .koka-promo__responsive img {
    height: auto;
  }
}
@media (max-width: 767px) {
  .koka-home .koka-promo {
    padding-top: 40px;
    padding-bottom: 0;
  }
}

/* Keep every banner reachable in the horizontal strip. */
.koka-home .koka-promo ul {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 20px;
}
.koka-home .koka-promo li {
  flex-shrink: 0;
}
.koka-home .koka-promo li:only-child {
  margin-inline: auto;
}
.koka-home .koka-promo ul:focus-visible {
  outline: 2px solid var(--home-blue);
  outline-offset: 4px;
}

/* Match the banner scroll strip to the school blue palette. */
.koka-home .koka-promo ul {
  scrollbar-color: #5285bc #e4f1fa;
  scrollbar-width: thin;
}
.koka-home .koka-promo ul::-webkit-scrollbar {
  height: 8px;
}
.koka-home .koka-promo ul::-webkit-scrollbar-track {
  background: #e4f1fa;
  border-radius: 8px;
}
.koka-home .koka-promo ul::-webkit-scrollbar-thumb {
  background: #5285bc;
  border-radius: 8px;
}
.koka-home .koka-promo ul::-webkit-scrollbar-thumb:hover {
  background: #4073aa;
}

/* ------------------------------------------------------------
   TOPバナー：上下の余白をそろえる（2026/11/02 追記）
   ・バナーの上＝メインイメージの下、バナーの下＝中学校・高等学校エリアの上
   ・見た目の余白を上下とも同じにする（PC 60px／スマホ 40px）
   ・余白の大きさを変えたいときは、下の --promo-space の数字だけ変える
   ・必ず koka-home.css の「いちばん最後」に追記する（上書きでなく追記）
   ------------------------------------------------------------ */
.koka-home .koka-promo {
  --promo-space: 60px;
  margin-top: var(--promo-space);
  /* バナーの下には、スクロールバー用の余白 20px（ul の padding-bottom）が元からあるので、その分を引く */
  margin-bottom: calc(var(--promo-space) - 20px);
  padding-top: 0;
  padding-bottom: 0;
}
@media (max-width: 767px) {
  .koka-home .koka-promo {
    --promo-space: 40px;
  }
}
/* スマホ：バナーの直後に出る「中学校／高等学校」ボタンの上の余白を 0 にして、バナー下の余白を上と同じにする */
.koka-home .koka-promo + .koka-school-jump {
  margin-top: 0;
}
