:root {
  /* ------------------------------------------------
     1. 変数定義 (基本設定)
     ------------------------------------------------ */
  /* 基準となるフォントサイズ */
  --base-fs: 16;

  /* インナー幅と余白 */
  --inner-width: 1200;
  --inner-width-min: 375;
  --padding-pc: 25;
  --padding-sp: 22;

  /* ------------------------------------------------
     2. 変数定義 (基本設定)
     ------------------------------------------------ */
  /* カラー */
  --black: #000;
  --black-300: #333;
  --white: #fff;
  --white-100: #F8F8F8;
  --white-200: #666666;
  --white-300: #f1f1f1;

  /* ブルー */
  --blue-100: #e2efff;
  --blue-300: #00c0fa;
  --blue-500: #1161bc;
  --blue-600: #01449b;
  --blue-700: #06346f;
  --blue-800: #002d61;

  /* グレー */
  --gray-200: #f6f6f6;
  --gray-300: #cccccc;
  --gray-400: #ededed;
  --gray-500: #eeeeee;

  /* レッド */
  --red-300: #c3181f;
  --red-400: #b12a23;
  --red-500: #fffbfb;

  /* イエロー */
  --yellow-500: #ffd113;

  /* エンジ */
  --en-side-nav: #af3341;
  --en-color: #af3243;

  /* フォント */

  /* メイン（ゴシック体）: 日本語はNoto Sans */
  --font-main: "Noto Sans JP", sans-serif;

  /* 日本語はNoto Serif */
  --font-serif: "Noto Serif JP", serif;

  /* 英語アクセント（見出し等） */
  --font-en: "Libre Baskerville", serif;

  /* 見出し用セリフ体 */
  --font-family-serif: var(--font-serif);

  --fs-xs: clamp(calc(12 * var(--r)),
      calc(12 * var(--r)) + ((14 - 12) * var(--fluid-rate)),
      calc(14 * var(--r)));

  --fs-sm: clamp(calc(12 * var(--r)),
      calc(12 * var(--r)) + ((16 - 12) * var(--fluid-rate)),
      calc(16 * var(--r)));

  --fs-base: clamp(calc(14 * var(--r)),
      calc(14 * var(--r)) + ((16 - 14) * var(--fluid-rate)),
      calc(16 * var(--r)));

  --fs-md: clamp(calc(16 * var(--r)),
      calc(16 * var(--r)) + ((18 - 16) * var(--fluid-rate)),
      calc(18 * var(--r)));

  --fs-lg: clamp(calc(16 * var(--r)),
      calc(16 * var(--r)) + ((20 - 16) * var(--fluid-rate)),
      calc(20 * var(--r)));

  /* ------------------------------------------------
     3. レスポンシブ可変範囲の設定
     ------------------------------------------------ */
  /* 画面幅がここから... */
  --vp-min: var(--inner-width-min);
  /* ここまで広がる間に、値を滑らかに変化させる */
  --vp-max: var(--inner-width);


  /* ------------------------------------------------
     4. 計算用係数・ロジック
     ------------------------------------------------ */
  /* rem変換係数 (1px = 0.0625rem) */
  --r: calc(1rem / var(--base-fs));

  /* vw変換係数 (従来の使い方用) */
  --v: calc(100vw / var(--vp-max));

  /* 進捗率 (Fluid Rate): 0 〜 1 で推移する係数 */
  --fluid-rate: calc((100vw - (var(--vp-min) * 1px)) / (var(--vp-max) - var(--vp-min)));
}

html {
  /* ------------------------------------------------
     5. デフォルト設定 (376px ~ 767px)
     ------------------------------------------------ */
  font-size: 100%;
  /* 一般的に16px */


  /* ------------------------------------------------
     6. スマホ用 (~ 375px)
     ロジック: vw(375, 16)
     ------------------------------------------------ */
  @media (max-width: 375px) {
    /* 16 / 375 * 100vw */
    font-size: calc(var(--base-fs) / var(--inner-width-min) * 100vw);
  }


  /* ------------------------------------------------
     7. PC可変エリア (768px ~ インナー幅限界)
     ロジック: vw($breakpointInner, 16)
     ------------------------------------------------ */
  /* 【重要】
     ここの 1040px (1000 + 20*2) だけは手計算して記述する必要があります。
  */
  @media (min-width: 768px) and (max-width: 1250px) {
    /* 計算式: 16 / (インナー幅 + 余白*2) * 100vw
       変数はプロパティ値の中なら使えるので、計算式は維持できます。
    */
    font-size: calc(var(--base-fs) / (var(--inner-width) + var(--padding-pc) * 2) * 100vw);
  }


  /* ------------------------------------------------
     8. PC固定エリア (インナー幅限界 ~)
     ------------------------------------------------ */
  /* ここも数値は手書きする必要があります */
  @media (min-width: 1251px) {
    font-size: 100%;
  }
}

.ly-inner {
  margin-inline: auto;
  max-width: calc(var(--inner-width) * 1px + var(--padding-pc) * 2 * 1px);

  /* SP(calc(20 * var(--r))) 〜 PC(calc(25 * var(--r))) まで滑らかに可変する余白 */
  padding-inline: clamp(calc(var(--padding-sp) * 1px),
      calc(var(--padding-sp) * 1px) + ((var(--padding-pc) - var(--padding-sp)) * var(--fluid-rate)),
      calc(var(--padding-pc) * 1px));
  width: 100%;
}

/* ========================================
   カードタイルセクション（Swiperループスライダー）
   参考: glory-shoei.ac.jp の p-banner-slider スタイル
   ======================================== */

.cards-section {
  overflow-x: clip;
  overflow-y: visible;
  padding-bottom: calc(60 * var(--r));
  padding-inline-end: 0;
  padding-inline-start: calc(var(--padding-pc) * var(--r));
  padding-top: calc(60 * var(--r));
}

/* PC: 右端までスライダーを伸ばし、右側のギャップを解消 */

@media (min-width: 768px) {
  .cards-section {
    box-sizing: border-box;
    margin-inline: 0;
    margin-left: 50%;
    max-width: none;
    transform: translateX(-50%);
    width: 100vw;
    width: 100dvw;
  }
}

.cards-slider-wrap {
  overflow: hidden;
  padding: calc(10 * var(--r)) 0;
}

/* SP: slidesPerView 1.2 により Swiper が幅を計算 */

/* PC(768px〜): slidesPerView auto のためコンテンツ幅に追随 */

@media (min-width: 768px) {
  .cards-slider-wrap .swiper-slide {
    width: auto;
  }
}

.card-tile {
  border-radius: calc(6 * var(--r));
  color: var(--black-300);
  display: block;
  overflow: hidden;
  text-decoration: none;
  transition: scale 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.card-tile:hover {
  scale: 1.05;
}

.card-tile:focus-visible {
  outline: 3px solid var(--main-color);
  outline-offset: 4px;
}

.card-tile-img {
  background-color: var(--gray-400);
  height: calc(400 * var(--r));
  overflow: hidden;
  width: calc(250 * var(--r));
}

.card-tile-img img {
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

@media (max-width: 768px) {
  .cards-section {
    box-sizing: border-box;
    margin-inline: calc(50% - 50vw);
    max-height: 100dvh;
    max-width: none;
    padding-bottom: clamp(24px, 6vw, 40px);
    padding-inline-end: 0;
    padding-inline-start: calc(var(--padding-sp) * var(--r));
    padding-top: clamp(24px, 6vw, 40px);
    /* 右端までスライダーを伸ばし、親要素の余白による右側のギャップを解消 */
    width: 100vw;
    width: 100dvw;
  }

  .cards-slider-wrap {
    padding: 0.5rem 0;
  }

  /* slidesPerView: auto のため、CSSでスライド幅250pxを指定 */
  .cards-slider-wrap .swiper-slide {
    display: flex;
    width: calc(250 * var(--r));
  }

  .card-tile {
    min-width: 0;
  }

  /* width: 100% なしで画像の見た目を維持。fit-content でコンテンツ幅に */
  .card-tile-img {
    flex-shrink: 0;
    max-height: min(400px, calc(100dvh - 140px));
    max-width: 100%;
    width: -moz-fit-content;
    width: fit-content;
  }
}

@media (max-width: 600px) {
  .card-tile-img {
    height: calc(250 * var(--r));
  }

  .cards-slider-wrap .swiper-slide {
    width: calc(160 * var(--r));
  }
}

/* ========================================
   フッター（画像デザイン準拠）
   ======================================== */

.footer {
  background: var(--white-100);
  border-radius: calc(100 * var(--r)) calc(100 * var(--r)) 0 0;
  color: var(--black-300);
  padding: calc(48 * var(--r)) 0 calc(32 * var(--r));
}

.footer-inner {
  margin: 0 auto;
  max-width: calc((var(--inner-width) + var(--padding-pc) * 2) * var(--r));
}

/* トップバー */

.footer-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding-bottom: calc(24 * var(--r));
}

.footer-brand {
  align-items: center;
  display: flex;
  gap: calc(16 * var(--r));
}

.footer-logo-img {
  height: calc(56 * var(--r));
  width: auto;
}

.footer-school-name {
  display: flex;
  flex-direction: column;
  gap: calc(4 * var(--r));
}

.footer-name-ja {
  color: var(--black-300);
  font-size: calc(24 * var(--r));
  font-weight: bold;
}

.footer-name-en {
  color: var(--black-300);
  font-size: calc(12 * var(--r));
  letter-spacing: 0.02em;
}

.footer-contact {
  align-items: center;
  display: flex;
  gap: calc(24 * var(--r));
}

.footer-tel {
  align-items: center;
  display: flex;
  height: calc(40 * var(--r));
  width: calc(360 * var(--r));
}

.footer-tel-icon {
  color: var(--red-300);
  flex-shrink: 0;
  height: calc(24 * var(--r));
  width: calc(24 * var(--r));
}

.footer-btns {
  display: flex;
}

.footer-btn {
  align-items: center;
  color: var(--white) !important;
  display: inline-flex;
  font-size: calc(14 * var(--r));
  font-weight: 500;
  gap: calc(8 * var(--r));
  padding: calc(10 * var(--r)) calc(20 * var(--r));
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-btn--access {
  background: var(--red-300);
  border-bottom-left-radius: calc(8 * var(--r));
  border-top-left-radius: calc(8 * var(--r));
}

.footer-btn--contact {
  background: var(--red-400);
  border-bottom-right-radius: calc(8 * var(--r));
  border-top-right-radius: calc(8 * var(--r));
}

.footer-btn img {
  filter: brightness(0) invert(1);
  height: calc(18 * var(--r));
  width: calc(18 * var(--r));
}

.footer-btn:hover {
  opacity: 0.9;
}

/* 住所・FAX */

.footer-address-row {
  background: var(--white);
  border-radius: calc(10 * var(--r)) calc(10 * var(--r)) 0 0;
  color: var(--black-300);
  display: flex;
  font-size: calc(22 * var(--r));
  justify-content: space-between;
  padding: calc(20 * var(--r)) calc(24 * var(--r));
  position: relative;
}

.footer-address-row::after {
  background: var(--gray-300);
  bottom: 0;
  content: "";
  height: 1px;
  left: calc(24 * var(--r));
  position: absolute;
  right: calc(24 * var(--r));
}

.footer-address-col {
  align-items: center;
  display: flex;
  font-size: calc(18 * var(--r));
  gap: calc(24 * var(--r));
  justify-content: space-between;
}

/* メイン: ナビ + 情報パネル */

.footer-main {
  align-items: flex-start;
  background: var(--white);
  border-radius: 0 0 calc(10 * var(--r)) calc(10 * var(--r));
  display: flex;
  gap: calc(60 * var(--r));
  padding: calc(32 * var(--r)) calc(24 * var(--r));
}

.footer-nav-cols {
  display: flex;
  flex: 1;
  gap: calc(30 * var(--r));
  min-width: 0;
}

.footer-nav-col {
  min-width: 0;
  width: calc(35% - 20 * var(--r));
}

.footer-nav-ttl {
  color: var(--black-300);
  font-size: calc(16 * var(--r));
  font-weight: bold;
  margin-bottom: calc(20 * var(--r));
}

.footer-nav-ttl--red {
  color: var(--red-300);
}

.footer-nav-list {
  list-style: none;
}

.footer-nav-list li {
  margin-top: calc(10 * var(--r));
}

.footer-nav-list a {
  align-items: center;
  color: var(--black-300);
  display: flex;
  font-size: calc(14 * var(--r));
  justify-content: space-between;
  padding-right: calc(8 * var(--r));
  text-decoration: none;
}

.footer-nav-list a:hover {
  color: var(--red-300);
}

.footer-arrow {
  color: var(--red-300);
  font-size: calc(12 * var(--r));
}

/* 赤い情報パネル */

.footer-info-panel {
  background: var(--red-300);
  border-radius: calc(10 * var(--r));
  display: grid;
  flex: 1;
  gap: calc(16 * var(--r));
  grid-template-columns: 1fr 1fr;
  min-width: 0;
  padding: calc(24 * var(--r));
}

/* 左カード: 3リンク（縦に並ぶ・高さ2行分） */

.footer-info-card--links {
  align-items: stretch;
  background: var(--white);
  border-radius: calc(8 * var(--r));
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: flex-start;
  padding: calc(24 * var(--r));
}

.footer-info-link {
  align-items: center;
  border-bottom: 1px solid var(--gray-400);
  color: var(--black-300);
  display: flex;
  font-size: calc(12 * var(--r));
  font-weight: 400;
  justify-content: space-between;
  padding: calc(18 * var(--r)) 0;
  text-decoration: none;
  transition: color 0.2s;
  width: 100%;
}

.footer-info-link:last-child {
  border-bottom: none;
}

.footer-info-link:hover {
  color: var(--red-300);
}

.footer-info-btn {
  align-items: center;
  background: var(--red-300);
  border-radius: 50%;
  color: var(--white) !important;
  display: inline-flex;
  flex-shrink: 0;
  font-size: calc(10 * var(--r));
  font-weight: normal;
  height: calc(20 * var(--r));
  justify-content: center;
  line-height: 1;
  margin-left: auto;
  width: calc(20 * var(--r));
}

/* SWELL icomoon（swell-icons.css の .icon-chevron-right と同じ \e921） */
.footer-info-btn::before {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: icomoon !important;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
}

/* 右側カードラップ（記念式典・同窓会） */

.footer-info-card-wrap {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: calc(20 * var(--r));
  min-height: 0;
}

/* 記念式典カード */

.footer-info-card {
  border-radius: calc(8 * var(--r));
}

.footer-info-card--alumni {
  border-radius: calc(10 * var(--r));
  display: block;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.footer-info-card--alumni img {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
  -o-object-fit: cover;
  display: block;
  object-fit: cover;
}

/* ボトムバー */

.footer-bottom {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding-top: calc(24 * var(--r));
}

.footer-privacy {
  color: var(--black-300);
  font-size: calc(12 * var(--r));
  text-decoration: underline;
}

.footer-privacy:hover {
  color: var(--red-300);
}

.footer-bottom-right {
  align-items: center;
  display: flex;
  gap: calc(16 * var(--r));
}

.footer-copy {
  color: var(--black-300);
  font-size: calc(12 * var(--r));
}

.footer-scroll-top {
  align-items: center;
  background: var(--black-300);
  border: none;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: flex;
  height: calc(40 * var(--r));
  justify-content: center;
  transition: opacity 0.2s;
  width: calc(40 * var(--r));
}

.footer-scroll-top:hover {
  opacity: 0.9;
}

@media (max-width: 767px) {
  .footer-logo-img {
    height: calc(40 * var(--r));
  }

  .footer-tel {
    width: calc(240 * var(--r));
  }

  .footer-address-row {
    align-items: center;
    flex-direction: column;
    font-size: calc(14 * var(--r));
    gap: calc(20 * var(--r));
    text-align: center;
  }

  .footer-address-col {
    flex-direction: column;
    font-size: calc(14 * var(--r));
    gap: 0;
  }

  .footer-main {
    align-items: center;
    flex-direction: column;
    gap: calc(20 * var(--r));
  }

  .footer-nav-cols {
    gap: 0;
    margin-inline: calc(100 * var(--r));
    width: calc(100% - 200 * var(--r));
  }

  .footer-nav-col {
    width: 100%;
  }

  .footer-info-panel {
    margin-inline: calc(80 * var(--r));
    padding: calc(10 * var(--r));
    width: calc(100% - 60 * var(--r));
  }

  .footer-nav-ttl {
    font-size: calc(12 * var(--r));
  }

  .footer-nav-list a {
    font-size: calc(12 * var(--r));
  }
}

@media (max-width: 700px) {
  .footer-main {
    gap: calc(16 * var(--r));
    padding: calc(24 * var(--r)) calc(16 * var(--r));
  }

  .footer-nav-cols {
    flex-direction: column;
    gap: calc(16 * var(--r));
    margin-inline: 0;
    width: calc(300 / 375 * 100vw);
    width: min(calc(400 * var(--r)), calc(300 / 375 * 100vw));
  }

  .footer-nav-col {
    width: 100%;
  }

  .footer-nav-ttl {
    font-size: calc(11 * var(--r));
    margin-bottom: calc(12 * var(--r));
  }

  .footer-nav-list {
    display: grid;
    gap: calc(10 * var(--r));
  }

  .footer-nav-list li {
    margin-top: 0;
  }

  .footer-nav-list a {
    font-size: calc(14 * var(--r));
    padding-right: calc(4 * var(--r));
  }

  .footer-arrow {
    font-size: calc(10 * var(--r));
  }

  .footer-info-panel {
    gap: calc(20 * var(--r));
    grid-template-columns: 1fr;
    margin-inline: 0;
    width: min(calc(400 * var(--r)), calc(300 / 375 * 100vw));
  }

  .footer-info-card-wrap {
    min-height: auto;
  }

  .footer-info-card--alumni {
    flex: none;
    min-height: calc(80 * var(--r));
  }

  .footer-info-card--alumni img {
    height: auto;
  }
}

@media (max-width: 510px) {
  .footer-top {
    flex-direction: column;
    gap: calc(10 * var(--r));
  }

  .footer-logo-img {
    height: calc(32 * var(--r));
  }

  .footer-tel {
    width: calc(180 * var(--r));
  }

  .footer-address-col {
    font-size: calc(12 * var(--r));
  }

  .footer-btn {
    font-size: calc(12 * var(--r));
    padding: calc(5 * var(--r)) calc(15 * var(--r));
  }

  .footer-bottom {
    flex-direction: column;
    gap: calc(5 * var(--r));
    justify-content: center;
  }

  .footer-bottom-right {
    gap: calc(60 * var(--r));
  }

  .footer-privacy {
    font-size: calc(10 * var(--r));
  }

  .footer-copy {
    font-size: calc(10 * var(--r));
  }
}

.footer-info-card-anniversary,
.footer-info-card-alumni {
  align-items: center;
  background-color: var(--white);
  border-radius: calc(8 * var(--r));
  display: grid;
  grid-template-columns: calc(80 * var(--r)) 1fr;
  padding-block: calc(12 * var(--r));
  padding-inline: calc(12 * var(--r));
}

.footer-info-card-alumni {
  align-items: stretch;
  gap: calc(10 * var(--r));
  grid-template-columns: calc(105 * var(--r)) 1fr;
  overflow: hidden;
  padding: 0;

  @media (min-width: 768px) {
    gap: calc(6 * var(--r));
    grid-template-columns: calc(135 * var(--r)) 1fr;
  }
}

.footer-info-card-number {
  align-items: center;
  background-color: var(--yellow-500);
  border-radius: 50%;
  color: var(--black);
  display: flex;
  font-size: calc(32 * var(--r));
  font-weight: 900;
  height: calc(80 * var(--r));
  justify-content: center;
  position: relative;
}

.footer-info-card-number::after {
  bottom: calc(10 * var(--r));
  content: 'th';
  font-size: calc(20 * var(--r));
  font-weight: 400;
  position: absolute;
  right: 0;
}

.footer-info-card-text {
  color: var(--black);
  font-size: calc(28 * var(--r));
  font-weight: 900;
  text-align: center;
}

.footer-info-card-icon-img {
  margin-left: auto;
  width: calc(70 * var(--r));
}

.footer-info-card-icon-img img {
  -o-object-fit: contain;
  height: 100%;
  object-fit: contain;
}

.footer-info-card-alumni-class-box {
  align-items: center;
  display: grid;
  grid-template-columns: calc(60 * var(--r)) 1fr;

  @media (min-width: 768px) {
    grid-template-columns: calc(30 * var(--r)) 1fr;
  }
}

.footer-info-card-alumni-img img {
  -o-object-fit: cover;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.footer-info-card-alumni-class-img img {
  -o-object-fit: contain;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.footer-info-card-alumni-text {
  color: var(--black);
  font-size: calc(18 * var(--r));
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

/* ========================================
   フォトギャラリー（学校生活）
   ======================================== */

/* .innerのpaddingを無効化し、gallery-tracksを画面幅いっぱいに */

.gallery-section.inner {
  padding-inline: 0;
}

.gallery-section {
  margin-inline: calc((100vw - 100%) / 2);
  max-width: 100%;
  overflow-x: clip;
  overflow-y: visible;
  padding-bottom: calc(60 * var(--r));
  padding-top: calc(60 * var(--r));
  width: 100vw;
  width: 100dvw;
}

.gallery-section .section-heading {
  margin-bottom: calc(40 * var(--r));
}

.gallery-tracks {
  display: flex;
  flex-direction: column;
  gap: calc(16 * var(--r));
  overflow: hidden;
}

.gallery-track {
  overflow: hidden;
  width: 100%;
}

.gallery-track-inner {
  display: flex;
  gap: calc(16 * var(--r));
  width: -moz-max-content;
  width: max-content;
  will-change: transform;
}

.gallery-track .gallery-item {
  aspect-ratio: 4 / 3;
  background-color: var(--gray-400);
  background-position: center;
  background-size: cover;
  border-radius: calc(8 * var(--r));
  flex-shrink: 0;
  min-width: calc(200 * var(--r));
  width: calc(280 * var(--r));
}

@media (max-width: 768px) {
  .gallery-track .gallery-item {
    min-width: calc(100 * var(--r));
    width: calc(120 * var(--r));
  }
}

/* ========================================
   NANKO GUIDE
   ======================================== */

.guide-section {
  margin: 0 auto;
  padding-bottom: calc(60 * var(--r));
  padding-top: calc(60 * var(--r));
  position: relative;
}

.guide-section::before {
  background: var(--red-500);
  border-bottom-left-radius: calc(24 * var(--r));
  border-top-left-radius: calc(24 * var(--r));
  content: "";
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  width: 90%;
  z-index: -1;
}

.guide-inner {
  margin-inline: auto;
  padding-inline: calc(20 * var(--r));
  width: min(100%, calc(1700 * var(--r)));

  @media (max-width: 768px) {
    padding-inline: calc(25 * var(--r));
  }
}

.guide-header {
  margin-bottom: calc(40 * var(--r));
  text-align: center;
}

.guide-heading-en {
  color: var(--black-300);
  font-size: calc(64 * var(--r));
  letter-spacing: 0.05em;
  margin-bottom: calc(8 * var(--r));
}

.guide-heading-ja {
  color: var(--red-400);
  font-size: calc(14 * var(--r));
  font-weight: bold;
}

.guide-grid {
  align-items: stretch;
  display: flex;
  gap: calc(24 * var(--r));
  margin-inline: auto;
  max-width: calc(1200 * var(--r));
}

.guide-card {
  border-radius: calc(12 * var(--r));
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: block;
  flex: 1 1 calc((100% - 48 * var(--r)) / 3);
  min-width: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.guide-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.guide-card-img {
  aspect-ratio: 17 / 10;
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

.guide-card-img img {
  height: 100%;
  min-width: 0;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  display: block;
  object-position: center;
}

@media (max-width: 768px) {
  .guide-heading-en {
    font-size: calc(48 * var(--r));
  }

  .guide-grid {
    flex-direction: column;
    gap: calc(30 * var(--r));
  }

  .guide-card {
    box-shadow: none;
  }

  .guide-card-img {
    margin: 0 auto;
    max-width: calc(400 * var(--r));
    width: 100%;
  }
}

@media (max-width: 510px) {
  .guide-heading-en {
    font-size: calc(32 * var(--r));
  }

  .guide-heading-ja {
    font-size: calc(14 * var(--r));
  }
}

/* ヘッダーレイアウト */

.header {
  align-items: center;
  background: transparent;
  display: flex;
  height: calc(100 * var(--r));
  justify-content: space-between;
  left: 0;
  padding: calc(20 * var(--r)) calc(40 * var(--r));
  position: fixed;
  top: 0;
  transition: background 0.3s ease;
  width: 100%;
  z-index: 10;
}

.header.is-scrolled {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.logo img {
  height: calc(100 * var(--r));
  width: calc(300 * var(--r));
}

/* PC: nav-overlayは通常フロー */

.nav-overlay {
  display: block;
}

.nav-overlay-inner {
  display: contents;
}

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

/* SPメニューヘッダー（768px以上では非表示） */

.p-spmenu-header {
  display: none;
}

.nav-container {
  margin-bottom: calc(20 * var(--r));
  text-align: right;
}

.top-links {
  display: flex;
  justify-content: flex-end;
  margin-top: calc(20 * var(--r));
}

.link-item {
  align-items: center;
  color: var(--white);
  display: inline-flex;
  font-size: calc(12 * var(--r));
  gap: calc(6 * var(--r));
  height: calc(30 * var(--r));
  justify-content: center;
  padding: 0 calc(18 * var(--r));
  text-decoration: none;
  white-space: nowrap;
}

.link-item .icon,
.link-item img {
  height: calc(16 * var(--r));
  width: auto;
  -o-object-fit: contain;
  flex-shrink: 0;
  object-fit: contain;
}

.link-item.red {
  background-color: var(--red-300);
  border-radius: calc(4 * var(--r)) 0 0 calc(4 * var(--r));
}

.link-item.red2 {
  background-color: var(--red-400);
}

.link-item.red3 {
  background-color: var(--red-300);
  border-radius: 0 calc(4 * var(--r)) calc(4 * var(--r)) 0;
}

.main-nav {
  display: flex;
  gap: calc(30 * var(--r));
  list-style: none;
  margin-top: calc(10 * var(--r));
  position: relative;
}

.main-nav a,
.main-nav .p-spmenu-nav-trigger {
  color: var(--black-300);
  font-size: calc(18 * var(--r));
  font-weight: bold;
  text-decoration: none;
}

.main-nav .p-spmenu-nav-trigger {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.main-nav .p-spmenu-nav-bullet,
.main-nav .p-spmenu-nav-chevron {
  display: none;
}

.main-nav a._underline {
  position: relative;
}

.main-nav a._underline::after {
  background: var(--red-400);
  content: "";
  height: 2px;
  left: 0;
  margin-top: 5px;
  position: absolute;
  top: 100%;
  transition: width 0.3s ease;
  width: 0;
}

.main-nav a._underline:hover::after {
  width: 100%;
}

/* p-spmenu-nav-link: ホバーで左→右に赤下線 */

.p-spmenu-nav-link {
  position: relative;
}

.p-spmenu-nav-link::after {
  background: var(--red-400);
  content: "";
  height: 2px;
  left: 0;
  margin-top: calc(5 * var(--r));
  position: absolute;
  top: 100%;
  transition: width 0.3s ease;
  width: 0;
}

.p-spmenu-nav-link:hover::after {
  width: 100%;
}

/* 岡谷南高校について ホバードロップダウン（PC表示のみ） */

.p-header-nav-trigger {
  cursor: pointer;
}

.p-header-dropdown {
  background: var(--white);
  border-radius: 0 0 calc(8 * var(--r)) calc(8 * var(--r));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
  left: 0;
  margin: 0;
  min-width: 640px;
  opacity: 0;
  padding: calc(24 * var(--r));
  position: absolute;
  top: 100%;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
  visibility: hidden;
  z-index: 100;
}

/* ナビからドロップダウンへのマウス移動時の隙間防止 */

.p-header-dropdown::before {
  content: "";
  height: calc(24 * var(--r));
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transform: translateY(-100%);
}

/* PC: 全ドロップダウンを「岡谷南高校について」の直下に統一、背景は画面幅いっぱい */

@media (min-width: 768px) {
  .p-header-dropdown {
    left: var(--p-dropdown-left, 0);
    min-width: 640px;
    padding: calc(24 * var(--r));
    position: fixed;
    right: auto;
    top: calc(100 * var(--r));
    width: auto;
  }

  /* 画面幅いっぱいの白背景 */
  .p-header-dropdown::after {
    background: var(--white);
    border-radius: 0 0 calc(8 * var(--r)) calc(8 * var(--r));
    content: "";
    left: 0;
    min-height: 250px;
    pointer-events: none;
    position: fixed;
    top: calc(100 * var(--r));
    width: 100vw;
    z-index: -1;
  }
}

.p-header-nav-item--has-dropdown {
  position: relative;
}

.p-header-nav-item--has-dropdown:hover .p-header-dropdown,
.p-header-nav-item--has-dropdown.is-dropdown-open .p-header-dropdown,
.p-spmenu-nav-item--accordion.is-dropdown-open .p-header-dropdown {
  opacity: 1;
  visibility: visible;
}

.p-header-dropdown-inner {
  display: grid;
  gap: calc(20 * var(--r));
  grid-template-columns: repeat(3, 200px);
}

.p-header-dropdown-col {
  display: flex;
  flex-direction: column;
}

.p-header-dropdown-col a,
.p-spmenu-subnav a {
  align-items: center;
  border-bottom: 1px solid var(--gray-400);
  color: var(--black-300);
  display: flex;
  font-size: calc(14 * var(--r));
  justify-content: space-between;
  padding: calc(12 * var(--r)) 0;
  position: relative;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* .news-more a と同じ矢印（PCのみ） */

@media (min-width: 768px) {

  .p-header-dropdown-col a::before,
  .p-spmenu-subnav a::before {
    align-items: center;
    background: var(--red-400);
    border-radius: 50%;
    content: "";
    display: flex;
    height: calc(20 * var(--r));
    justify-content: center;
    order: 1;
    position: relative;
    width: calc(20 * var(--r));
  }

  .p-header-dropdown-col a::after,
  .p-spmenu-subnav a::after {
    border-right: 2px solid var(--white);
    border-top: 2px solid var(--white);
    content: "";
    height: calc(8 * var(--r));
    order: 1;
    position: absolute;
    right: calc(6 * var(--r));
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: calc(8 * var(--r));
    z-index: 1;
  }
}

.p-header-dropdown-col a:hover,
.p-spmenu-subnav a:hover {
  color: var(--red-300);
}

/* PC: p-spmenu-subnav をグリッド表示（各列200px） */

.p-header-dropdown.p-spmenu-subnav {
  display: grid;
  gap: 0 calc(20 * var(--r));
  grid-template-columns: repeat(3, 200px);
}

.p-header-dropdown.p-spmenu-subnav a {
  border-bottom: 1px solid var(--gray-400);
  grid-column: span 1;
}

/* ハンバーガーボタン（PCでは非表示） */

.hamburger-btn {
  align-items: center;
  background: var(--red-400);
  border: none;
  border-radius: calc(4 * var(--r));
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: calc(5 * var(--r));
  height: calc(48 * var(--r));
  justify-content: center;
  padding: 0;
  width: calc(48 * var(--r));
}

.hamburger-btn span {
  background: var(--white);
  display: block;
  height: calc(2 * var(--r));
  width: calc(24 * var(--r));
}

/* レスポンシブ対応（スマホ用） */

@media (max-width: 767px) {
  .header {
    align-items: center;
    height: calc(80 * var(--r));
    padding: calc(12 * var(--r)) 100px calc(12 * var(--r)) calc(20 * var(--r));
    position: fixed;
  }

  .logo {
    flex-shrink: 0;
    padding-left: calc(20 * var(--r));
    width: calc(280 * var(--r));
  }

  .logo img {
    height: 100%;
    width: 100%;
    -o-object-fit: contain;
    object-fit: contain;
  }

  .hamburger-btn {
    border-radius: 0 0 0 calc(20 * var(--r));
    display: flex;
    gap: calc(8 * var(--r));
    height: calc(80 * var(--r));
    position: absolute;
    right: 0;
    top: 0;
    width: calc(80 * var(--r));
  }

  .hamburger-btn span {
    height: calc(2 * var(--r));
    width: calc(20 * var(--r));
  }

  /* スライドインメニュー（768px以下） */
  .nav-overlay {
    height: 100%;
    left: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    transition: visibility 0.3s ease;
    visibility: hidden;
    width: 100%;
    z-index: 1000;
  }

  .nav-overlay::before {
    background: rgba(0, 0, 0, 0.4);
    content: "";
    height: 100%;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    transition: opacity 0.3s ease;
    width: 100%;
  }

  .nav-overlay-inner {
    background: var(--white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: calc(24 * var(--r)) calc(24 * var(--r)) calc(40 * var(--r));
    position: absolute;
    right: 0;
    top: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    width: min(320px, 85%);
  }

  /* SPメニューヘッダー（ロゴ＋閉じるボタン）上部固定 */
  .nav-overlay .p-spmenu-header {
    align-items: flex-start;
    display: flex;
    flex-shrink: 0;
    justify-content: space-between;
    margin-bottom: calc(24 * var(--r));
    position: relative;
  }

  .nav-overlay-inner .nav-container {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .p-spmenu-logo {
    align-items: center;
    color: inherit;
    display: flex;
    flex: 1;
    gap: calc(12 * var(--r));
    text-decoration: none;
  }

  .p-spmenu-logo img {
    height: auto;
    min-height: calc(36 * var(--r));
    width: calc(160 * var(--r));
    -o-object-fit: contain;
    object-fit: contain;
  }

  .p-spmenu-logo-text {
    display: flex;
    flex-direction: column;
  }

  .p-spmenu-logo-text-main {
    color: var(--black-300);
    font-size: calc(18 * var(--r));
    font-weight: bold;
  }

  .p-spmenu-logo-text-en {
    color: var(--black-300);
    font-size: calc(10 * var(--r));
    opacity: 0.8;
  }

  /* 閉じるボタン（hamburger-btnと同じ・nav-overlay直下でパディングの影響を受けない） */
  .nav-overlay .p-spmenu-close-btn,
  .nav-overlay .nav-close-btn {
    align-items: center;
    background: var(--red-400);
    border: none;
    border-radius: 0 0 0 calc(20 * var(--r));
    cursor: pointer;
    display: flex !important;
    flex-direction: column;
    height: calc(80 * var(--r));
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: calc(80 * var(--r));
    z-index: 1001;
  }

  .nav-overlay .p-spmenu-close-btn span,
  .nav-overlay .nav-close-btn span {
    background: var(--white);
    height: calc(3 * var(--r));
    left: 50%;
    position: absolute;
    top: 50%;
    width: calc(40 * var(--r));
  }

  .nav-overlay .p-spmenu-close-btn span:nth-child(1),
  .nav-overlay .nav-close-btn span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .nav-overlay .p-spmenu-close-btn span:nth-child(2),
  .nav-overlay .nav-close-btn span:nth-child(2) {
    display: none;
  }

  .nav-overlay .p-spmenu-close-btn span:nth-child(3),
  .nav-overlay .nav-close-btn span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .nav-overlay.is-open {
    pointer-events: auto;
    visibility: visible;
  }

  .nav-overlay.is-open::before {
    opacity: 1;
  }

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

  .nav-overlay .nav-container {
    display: block;
    text-align: left;
  }

  .nav-overlay .top-links.p-spmenu-top-links {
    display: flex;
    flex-direction: column;
    gap: calc(8 * var(--r));
    margin-bottom: calc(28 * var(--r));
    margin-top: 0;
  }

  .nav-overlay .link-item {
    border-radius: calc(4 * var(--r));
    font-size: calc(16 * var(--r));
    height: calc(40 * var(--r));
    justify-content: flex-start;
    margin-bottom: 0;
    padding-left: calc(16 * var(--r));
    width: 100%;
  }

  .nav-overlay .link-item.red2 {
    border-radius: calc(4 * var(--r));
  }

  .nav-overlay .link-item.red3 {
    border-radius: calc(4 * var(--r));
  }

  .nav-overlay .main-nav {
    border-top: 1px solid var(--gray-400);
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    padding-top: calc(20 * var(--r));
  }

  .nav-overlay .main-nav li {
    border-bottom: 1px solid var(--gray-400);
  }

  /* SP: PCドロップダウンをアコーディオン表示に上書き（初期は閉じる） */
  .nav-overlay .p-header-dropdown.p-spmenu-subnav {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    display: none !important;
    grid-template-columns: 1fr;
    margin: 0;
    min-width: auto;
    opacity: 1;
    padding: 0 0 0 calc(32 * var(--r));
    position: static;
    visibility: visible;
  }

  .nav-overlay .p-header-dropdown.p-spmenu-subnav.is-open {
    display: flex !important;
    flex-direction: column;
    gap: 0;
  }

  .nav-overlay .p-header-dropdown.p-spmenu-subnav a {
    border-bottom: none;
    font-size: calc(14 * var(--r));
    justify-content: flex-start;
    padding: calc(5 * var(--r)) 0;
  }

  /* SP: ナビゲーションボタン・リンクのスタイル */
  .nav-overlay .p-spmenu-nav-bullet {
    background: var(--red-400);
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
    height: calc(6 * var(--r));
    width: calc(6 * var(--r));
  }

  /* SWELL icomoon（swell-icons.css）: .icon-chevron-right → \e921、開いたときは下向き \e910（.icon-chevron-down と同じ） */
  .nav-overlay .main-nav .p-spmenu-nav-chevron {
    align-items: center;
    background: var(--red-300);
    border-radius: 50%;
    color: var(--white);
    display: inline-flex !important;
    flex-shrink: 0;
    font-size: calc(12 * var(--r));
    font-weight: normal;
    height: calc(24 * var(--r));
    justify-content: center;
    line-height: 1;
    margin-left: auto;
    min-height: 24px;
    min-width: 24px;
    transform: translateZ(0);
    transition: transform 0.2s ease;
    width: calc(24 * var(--r));
  }

  .nav-overlay .main-nav .p-spmenu-nav-chevron::before {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: icomoon !important;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
  }

  .nav-overlay .main-nav .p-spmenu-nav-item--accordion.is-open .p-spmenu-nav-chevron::before {
    content: "\e910" !important;
  }

  .nav-overlay .p-spmenu-nav-trigger {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-size: calc(16 * var(--r));
    gap: calc(12 * var(--r));
    min-height: 44px;
    padding: calc(16 * var(--r)) 0;
    text-align: left;
    touch-action: manipulation;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
  }

  .nav-overlay .p-spmenu-nav-link {
    align-items: center;
    color: var(--black-300);
    display: flex;
    font-size: calc(16 * var(--r));
    gap: calc(12 * var(--r));
    padding: calc(16 * var(--r)) 0;
    text-decoration: none;
  }

  .nav-overlay .p-spmenu-nav-link .p-spmenu-nav-bullet {
    display: block;
  }

  .nav-overlay .main-nav a.p-spmenu-nav-link {
    padding: calc(16 * var(--r)) 0;
  }
}

@media (max-width: 600px) {
  .header {
    height: calc(80 * var(--r));
  }

  .logo {
    height: 100%;
    padding-left: calc(10 * var(--r));
    width: calc(200 * var(--r));
  }

  .logo img {
    height: 100%;
    width: 100%;
    -o-object-fit: contain;
    object-fit: contain;
  }

  .hamburger-btn {
    height: calc(70 * var(--r));
    width: calc(70 * var(--r));
  }

  .nav-overlay .p-spmenu-close-btn,
  .nav-overlay .nav-close-btn {
    height: calc(80 * var(--r));
    width: calc(80 * var(--r));
  }

  .nav-overlay .p-spmenu-close-btn span,
  .nav-overlay .nav-close-btn span {
    height: calc(2 * var(--r));
    width: calc(20 * var(--r));
  }
}

/* ========================================
   ヒーローセクション（Swiper fade + ホバースケール）
   ======================================== */

/* section.hero 外に出した .hero-blog-parts の絶対配置の基準 */
.hero-layout {
  position: relative;
  width: 100%;
}

.hero {
  align-items: center;
  display: flex;
  height: calc(800 * var(--r));
  /* height: calc(860 * var(--r)); */
  overflow: hidden;
  position: relative;
  width: 100%;
}


/* フロント：ヒーロー左下ブログパーツ（参考UIに合わせたフローティングボックス） */
.hero {
  position: relative;
}

/* ヒーロースライダー：動画スライド（画像と同様にトリミング表示） */
.hero-slider .swiper-slide.swiper-slide--video {
  position: relative;
  overflow: hidden;
}

.hero-slider .swiper-slide--video .hero-slider__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-blog-parts {
  position: absolute;
  z-index: 5;
  left: clamp(12px, 3vw, 28px);
  bottom: clamp(12px, 3vw, 32px);
  bottom: 0;
  max-width: min(380px, calc(100% - 24px));
  padding: 14px 40px 14px 14px;
  background: #fff;
  border: 2px solid #ddd;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14);
  box-sizing: border-box;
  border-radius: 0.3em;
}

.hero-blog-parts.is-dismissed {
  display: none !important;
}

.hero-blog-parts__close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(0, 0, 0, 0.55);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.hero-blog-parts__close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #111;
}

.hero-blog-parts__close:focus-visible {
  outline: 2px solid #2271b1;
  outline-offset: 2px;
}

.hero-blog-parts__close-x {
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  pointer-events: none;
}

.hero-blog-parts a {
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-size: 0.7rem;
}

.hero-blog-parts a:hover {
  text-decoration: underline;
}

.hero-blog-parts p,
.hero-blog-parts li {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #1a1a1a;
}

.hero-blog-parts p+p,
.hero-blog-parts p+ul {
  margin-top: 8px;
}

/* 先頭の1行を「白いラベル」風に（★スタッフ募集 等） */
.hero-blog-parts>*:first-child p:first-of-type,
.hero-blog-parts>p:first-of-type {
  display: inline-block;
  background: #fff;
  color: #111;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-blog-parts>p:first-of-type {
  margin-bottom: 10px;
}

.hero-blog-parts ul {
  margin: 0;
  padding-left: 1.15em;
  list-style: disc;
}

.hero-blog-parts li+li {
  margin-top: 2px;
}

.hero-blog-parts .swell-block-blog_parts,
.hero-blog-parts .p-blogParts {
  margin: 0;
}

@media (max-width: 600px) {
  .hero-blog-parts {
    max-width: calc(60% - 20px);
    padding: 12px 40px 12px 12px;
    bottom: -50px;
  }

  .hero-blog-parts p,
  .hero-blog-parts li {
    font-size: 0.8125rem;
  }
}



















/* 左側のコンテンツエリア */

.hero-content {
  left: 0;
  padding-left: clamp(30px, 10vw, 10%);
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  width: clamp(280px, 50%, 50%);
  z-index: 5;
}

.catchphrase {
  font-family: var(--font-family-serif);
  font-size: clamp(24px, 5vw, calc(90 * var(--r)));
  font-weight: 900;
  line-height: 1.6;
  text-shadow: 0 10px 10px var(--white);
}

.catchphrase span {
  color: var(--black);
  font-weight: 900;
}

.school-abbr {
  height: clamp(30px, 5vw, calc(50 * var(--r)));
  margin-top: clamp(20px, 3vw, calc(60 * var(--r)));
  width: clamp(100px, 15vw, calc(250 * var(--r)));
}

.school-abbr img {
  height: calc(30 * var(--r));
  width: 100%;
  -o-object-fit: contain;
  object-fit: contain;
}

/* 右側のスライダー（Swiper） */

.hero-slider {
  border-bottom-left-radius: clamp(40px, 8vw, calc(100 * var(--r)));
  height: 100%;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 0;
  width: clamp(50%, 70%, 70%);
}

.hero-slider .swiper-slide {
  overflow: hidden;
}

.hero-slider .swiper-slide img {
  height: 100%;
  max-width: 100%;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: 20% center;
  object-position: 20% center;
}

/* ヒーロースライダー：右下ナビ（前後＋ドット） */
.hero-slider__nav {
  align-items: center;
  /* -webkit-backdrop-filter: blur(6px); */
  /* backdrop-filter: blur(6px); */
  /* background: rgb(220 171 171 / 42%); */
  border-radius: 999px;
  bottom: clamp(10px, 2vw, 22px);
  box-sizing: border-box;
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  position: absolute;
  right: clamp(10px, 2vw, 22px);
  z-index: 6;
}

.hero-slider__nav-btn {
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  height: 32px;
  justify-content: center;
  margin: 0;
  padding: 0;
  transition: background 0.2s ease, opacity 0.2s ease;
  width: 32px;
  display: none;
}

.hero-slider__nav-btn:hover {
  background: rgba(255, 255, 255, 0.32);
}

.hero-slider__nav-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hero-slider__nav-btn.swiper-button-disabled {
  cursor: not-allowed;
  opacity: 0.35;
  pointer-events: none;
}

.hero-slider__nav-prev::after,
.hero-slider__nav-next::after {
  border-style: solid;
  content: "";
  display: block;
  height: 0;
  width: 0;
}

.hero-slider__nav-prev::after {
  border-color: transparent #fff transparent transparent;
  border-width: 5px 8px 5px 0;
  margin-left: -2px;
}

.hero-slider__nav-next::after {
  border-color: transparent transparent transparent #fff;
  border-width: 5px 0 5px 8px;
  margin-right: -2px;
}

.hero-slider__pagination.swiper-pagination-horizontal {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: center;
  position: static;
  width: auto;
}

.hero-slider__pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  height: 7px;
  margin: 0;
  opacity: 1;
  width: 7px;
}

.hero-slider__pagination .swiper-pagination-bullet-active {
  background: #c3181f;
}

/* 768px以下：キャッチフレーズ上側・hero-slider下・一列横並び */

@media (max-width: 767px) {
  .hero {
    align-items: stretch;
    flex-direction: column;
    height: auto;
    min-height: auto;
    min-width: 0;
    overflow-x: hidden;
  }

  .hero-content {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0;
    left: auto;
    min-width: 0;
    order: 1;
    padding: clamp(12px, 3vw, 24px) clamp(12px, 4vw, 24px) clamp(16px, 4vw, 20px);
    position: relative;
    top: auto;
    transform: none;
    translate: none;
    width: 100%;
  }

  .catchphrase {
    display: flex;
    font-size: clamp(18px, 9vw, calc(24 * var(--r)));
    line-height: 1.5;
    margin: 0;
    overflow-wrap: break-word;
    text-align: center;
    word-wrap: break-word;
  }

  .catchphrase .p-hero__br-pc {
    display: none;
  }

  .catchphrase .bg-white {
    display: block;
  }

  .school-abbr {
    flex-shrink: 0;
    height: clamp(14px, 4vw, calc(20 * var(--r)));
    margin: 0;
    width: clamp(50px, 16vw, calc(60 * var(--r)));
  }

  .hero-slider {
    align-self: flex-end;
    border-radius: 0 0 0 clamp(16px, 5vw, 48px);
    box-sizing: border-box;
    height: clamp(280px, 55vh, 520px);
    margin: 0 0 0 auto;
    max-width: 100%;
    min-height: clamp(280px, 55vh, 520px);
    min-width: 0;
    order: 2;
    position: relative;
    width: calc(100% - clamp(16px, 5vw, 32px));
  }

  .hero-slider .swiper-slide img {
    max-width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: 10% center;
    object-position: 10% center;
  }
}

@media (max-width: 500px) {
  .hero-slider {
    border-bottom-left-radius: 16px;
    height: clamp(200px, 48vh, 260px);
    min-height: clamp(200px, 48vh, 260px);
    width: calc(100% - 24px);
  }
}

/* 360px以下：極小画面での崩れ防止 */

@media (max-width: 360px) {
  .hero-content {
    padding: 12px 12px 12px 12px;
  }

  .catchphrase {
    font-size: clamp(18px, 6vw, 24px);
  }
}

/* ========================================
   NEWS セクション（画像デザイン準拠）
   左：縦書き見出し＋フィルターリスト
   右：ニュース一覧
   ======================================== */

.news-section {
  margin: 0 auto;
  padding-bottom: calc(60 * var(--r));
  padding-top: calc(60 * var(--r));
}

.news-inner {
  display: flex;
  gap: calc(100 * var(--r));
  justify-content: center;
  margin-inline: auto;
}

/* 左カラム：見出し＋フィルター */

.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: calc(24 * var(--r));
  width: calc(160 * var(--r));
}

.news-heading {
  align-items: flex-start;
  display: flex;
  gap: calc(10 * var(--r));
  margin: 0;
}

.news-heading-en {
  color: var(--black-300);
  font-size: calc(60 * var(--r));
  font-weight: bold;
  letter-spacing: 0.1em;
  margin-bottom: calc(70 * var(--r));
  writing-mode: vertical-rl;
}

.news-heading-ja {
  color: var(--red-400);
  font-size: calc(20 * var(--r));
  font-weight: bold;
  writing-mode: vertical-rl;
}

.news-filters {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-filters li {
  margin-bottom: calc(8 * var(--r));
}

.news-filter {
  align-items: center;
  background: transparent;
  border: none;
  color: var(--white-200);
  cursor: pointer;
  display: flex;
  font-size: calc(14 * var(--r));
  gap: calc(8 * var(--r));
  padding: 0;
  transition: color 0.2s;
}

.news-filter::before {
  background: transparent;
  border-radius: 50%;
  content: "";
  flex-shrink: 0;
  height: calc(6 * var(--r));
  width: calc(6 * var(--r));
}

.news-filter.active {
  color: var(--red-400);
  font-weight: bold;
}

.news-filter.active::before {
  background: var(--red-400);
}

.news-filter:hover {
  color: var(--red-400);
}

.news-student-link {
  align-items: center;
  align-self: flex-start;
  color: var(--black-300);
  display: inline-flex;
  font-size: calc(14 * var(--r));
  font-weight: bold;
  gap: calc(8 * var(--r));
  margin-top: calc(8 * var(--r));
  position: relative;
  text-decoration: none;
}

.news-student-link::before {
  align-items: center;
  background: var(--red-400);
  border-radius: 50%;
  content: "";
  display: flex;
  height: calc(24 * var(--r));
  justify-content: center;
  order: 1;
  position: relative;
  width: calc(24 * var(--r));
}

.news-student-link::after {
  border-right: 2px solid var(--white);
  border-top: 2px solid var(--white);
  content: "";
  height: calc(8 * var(--r));
  margin-left: calc(-2 * var(--r));
  order: 1;
  position: absolute;
  right: calc(8 * var(--r));
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: calc(8 * var(--r));
  z-index: 2;
}

.news-student-link:hover {
  opacity: 0.8;
}

/* 右カラム：ニュース一覧（flex:1で常に一定幅を維持） */

.news-content {
  flex: 1;
  min-width: 0;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  transform: translateX(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
  width: 100%;
}

.news-empty {
  color: var(--white-200);
  font-size: calc(14 * var(--r));
  margin: 0;
  padding: calc(24 * var(--r)) calc(16 * var(--r));
  transform: translateX(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.news-content.is-transitioning .news-list,
.news-content.is-transitioning .news-empty {
  opacity: 0;
  transform: translateX(calc(16 * var(--r)));
}

@media (prefers-reduced-motion: reduce) {

  .news-list,
  .news-empty {
    transition: none;
  }
}

.news-list li {
  border-bottom: 1px solid var(--gray-400);
}

.news-list li.is-hidden {
  display: none;
}

.news-empty[hidden] {
  display: none;
}

.news-list li a {
  align-items: center;
  color: var(--black-300);
  display: flex;
  flex-wrap: wrap;
  font-size: calc(16 * var(--r));
  gap: calc(25 * var(--r));
  padding: calc(24 * var(--r)) calc(16 * var(--r));
  text-decoration: none;
  transition: background 0.2s;
}

.news-list li a:hover {
  background: rgba(116, 61, 188, 0.06);
}

.news-date {
  color: var(--white-200);
  font-size: calc(13 * var(--r));
  min-width: calc(90 * var(--r));
}

.news-cat {
  background: #edbeba;
  border-radius: calc(20 * var(--r));
  color: var(--black-300);
  display: inline-block;
  font-size: calc(12 * var(--r));
  min-width: calc(80 * var(--r));
  padding: calc(2 * var(--r)) calc(10 * var(--r));
  text-align: center;
}

.news-title {
  flex: 1;
  min-width: 0;
}

.news-more {
  margin: calc(24 * var(--r)) 0 0;
  text-align: right;
}

.news-more a {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: calc(4 * var(--r));
  color: var(--black-300);
  display: inline-flex;
  font-size: calc(16 * var(--r));
  font-weight: bold;
  gap: calc(80 * var(--r));
  padding: calc(10 * var(--r)) calc(40 * var(--r));
  position: relative;
  text-decoration: none;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.news-more a:hover {
  background: rgba(177, 42, 35, 0.04);
  border-color: var(--red-400);
}

.news-more a::before {
  align-items: center;
  background: var(--red-400);
  border-radius: 50%;
  content: "";
  display: flex;
  height: calc(20 * var(--r));
  justify-content: center;
  order: 1;
  position: relative;
  width: calc(20 * var(--r));
}

.news-more a::after {
  border-right: 2px solid var(--white);
  border-top: 2px solid var(--white);
  content: "";
  height: calc(8 * var(--r));
  margin-left: calc(-2 * var(--r));
  order: 1;
  position: absolute;
  right: calc(46 * var(--r));
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: calc(8 * var(--r));
  z-index: 1;
}

@media (max-width: 768px) {
  .news-inner {
    flex-direction: column;
    gap: calc(24 * var(--r));
  }

  .news-sidebar {
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
  }

  .news-heading {
    align-items: center;
  }

  .news-heading-en {
    margin-bottom: 0;
    writing-mode: horizontal-tb;
  }

  .news-heading-ja {
    writing-mode: horizontal-tb;
  }

  .news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: calc(8 * var(--r));
  }

  .news-filters li {
    margin: 0;
  }

  .news-more a {
    gap: calc(30 * var(--r));
  }
}

@media (max-width: 510px) {
  .news-sidebar {
    gap: calc(10 * var(--r));
  }

  .news-heading-en {
    font-size: calc(40 * var(--r));
  }

  .news-heading-ja {
    font-size: calc(16 * var(--r));
  }

  .news-list li a {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: calc(8 * var(--r));
    padding: calc(10 * var(--r)) calc(8 * var(--r));
  }

  .news-date,
  .news-cat {
    flex: 0 0 auto;
    min-width: auto;
  }

  .news-title {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* ========================================
   OPEN CLASSES（公開授業・体験入学）
   ======================================== */

.open-class-section {
  align-items: center;
  background-color: var(--red-500);
  display: flex;
  flex-direction: column;
  gap: calc(40 * var(--r));
  overflow-x: clip;
  padding: calc(60 * var(--r)) calc(20 * var(--r));
}

@media (min-width: 768px) {
  .open-class-section {
    flex-direction: row;
    gap: calc(150 * var(--r));
    justify-content: center;
    max-width: none !important;
    padding: calc(100 * var(--r)) 0;
    width: 100%;
  }
}

.open-class-visuals {
  aspect-ratio: 1 / 1;
  flex: 1;
  max-width: calc(450 * var(--r));
  min-height: calc(280 * var(--r));
  min-width: calc(280 * var(--r));
  overflow: visible;
  position: relative;
  width: 100%;
}

.open-class-img {
  aspect-ratio: 1 / 1;
  background-position: center;
  background-size: cover;
  border-radius: calc(20 * var(--r));
}

.open-class-img--bg {
  height: auto;
  max-width: calc(450 * var(--r));
  position: relative;
  width: 70%;
  z-index: 1;
}

.open-class-img--fg {
  height: auto;
  max-width: calc(400 * var(--r));
  position: absolute;
  transform: translateX(90%) translateY(-60%);
  width: 58%;
  z-index: 2;
}

.open-class-content {
  align-items: flex-start;
  display: flex;
  flex: 1;
  flex-direction: column;
  max-width: 530px;
  text-align: left;
}

.open-class-heading-en {
  color: var(--black-300);
  font-size: calc(64 * var(--r));
  letter-spacing: 0.1em;
}

.open-class-heading-ja {
  color: var(--red-400);
  font-size: calc(32 * var(--r));
  font-weight: bold;
  margin-top: calc(20 * var(--r));
}

.open-class-desc {
  color: var(--black-300);
  font-size: calc(16 * var(--r));
  line-height: 1.8;
  margin-top: calc(20 * var(--r));
}

.open-class-btn {
  align-items: center;
  align-self: flex-end;
  background-color: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: calc(8 * var(--r));
  color: var(--black-300);
  display: inline-flex;
  gap: calc(12 * var(--r));
  justify-content: space-between;
  margin-top: calc(100 * var(--r));
  padding: calc(15 * var(--r)) calc(24 * var(--r));
  position: relative;
  text-decoration: none;
  transition: all 0.3s ease;
}

.open-class-btn::before {
  align-items: center;
  background: var(--red-300);
  border-radius: 50%;
  content: "";
  display: flex;
  flex-shrink: 0;
  height: calc(28 * var(--r));
  justify-content: center;
  order: 1;
  position: relative;
  width: calc(28 * var(--r));
}

.open-class-btn::after {
  border-right: 2px solid var(--white);
  border-top: 2px solid var(--white);
  content: "";
  height: calc(8 * var(--r));
  margin-left: calc(-2 * var(--r));
  order: 1;
  position: absolute;
  right: calc(34 * var(--r));
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: calc(8 * var(--r));
  z-index: 1;
}

.open-class-btn:hover {
  background-color: var(--gray-300);
  transform: translateY(-2px);
}

@media (min-width: 1312px) {
  .open-class-heading-en {
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  .open-class-section {
    flex-direction: column;
    gap: 0;
    padding: calc(60 * var(--r)) calc(20 * var(--r));
  }

  .open-class-heading-en {
    font-size: calc(42 * var(--r));
  }

  .open-class-heading-ja {
    font-size: calc(24 * var(--r));
  }

  .open-class-desc {
    font-size: calc(18 * var(--r));
  }

  .open-class-btn {
    font-size: calc(14 * var(--r));
    margin-top: calc(40 * var(--r));
    padding: calc(10 * var(--r)) calc(16 * var(--r));
  }

  .open-class-btn::after {
    right: calc(26 * var(--r));
  }

  .open-class-visuals {
    aspect-ratio: 4 / 3;
    min-height: calc(250 * var(--r));
    min-width: 0;
  }

  .open-class-img--bg {
    max-width: none;
    width: 50%;
  }

  .open-class-img--fg {
    max-width: none;
    width: 40%;
  }
}

@media (max-width: 510px) {
  .open-class-heading-en {
    font-size: calc(32 * var(--r));
  }

  .open-class-heading-ja {
    font-size: calc(20 * var(--r));
  }

  .open-class-desc {
    font-size: calc(16 * var(--r));
  }
}

@media (max-width: 430px) {
  .open-class-heading-en {
    font-size: calc(32 * var(--r));
  }

  .open-class-heading-ja {
    font-size: calc(20 * var(--r));
  }

  .open-class-desc {
    font-size: calc(14 * var(--r));
  }

  .open-class-btn {
    font-size: calc(12 * var(--r));
    margin-top: calc(40 * var(--r));
    padding: calc(10 * var(--r)) calc(16 * var(--r));
  }

  .open-class-btn::after {
    right: calc(26 * var(--r));
  }
}

/* 360px以下: 極小画面 */

@media (max-width: 360px) {
  .open-class-visuals {
    min-height: calc(200 * var(--r));
  }
}

.p-block__cards {
  display: grid;
  font-size: 40px;
  gap: var(--child-spacing-md);
  grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
}

.p-block__card__description {
  color: var(--child-gray-400);
}

.p-mv {
  background-color: var(--color_main, var(--child-blue-500));
  padding: var(--child-spacing-3xl) 0;
  text-align: center;
}

.p-mv__title {
  color: var(--child-white);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
}

.p-mv__description {
  color: var(--child-gray-400);
  font-size: clamp(0.9rem, 2.5vw, 1.125rem);
}

/* ========================================
   PROGRAM
   ======================================== */

.program-section {
  margin-top: calc(100 * var(--r));
  max-width: 100%;
  overflow-x: clip;
  padding-bottom: calc(60 * var(--r));
  padding-top: calc(60 * var(--r));
}

.program-inner {
  align-items: flex-start;
  display: flex;
  gap: calc(48 * var(--r));
  justify-content: space-between;
}

.program-header {}

.program-heading-en {
  color: var(--black-300);
  font-size: calc(48 * var(--r));
  font-weight: bold;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.program-heading-ja {
  color: var(--red-300);
  font-size: calc(16 * var(--r));
  font-weight: 500;
  margin-top: calc(8 * var(--r));
}

.program-grid {
  display: grid;

  @media (min-width: 768px) {
    grid-template-columns: 1fr calc(600 * var(--r));
  }
}

.program-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.program-desc {
  color: var(--black-300);
  font-size: calc(16 * var(--r));
  line-height: 1.9;
  margin-top: calc(30 * var(--r));
  max-width: calc(460 * var(--r));
}

.program-body {
  align-items: flex-start;
  display: flex;
  gap: calc(40 * var(--r));
  justify-content: space-between;
  position: relative;
}

.program-list {
  flex: 1;
  list-style: none;
  margin-top: calc(40 * var(--r));
  max-width: calc(460 * var(--r));
  min-width: 0;
}

.program-list li {
  margin-bottom: 0;
}

.program-list a {
  align-items: center;
  border-bottom: 1px solid var(--gray-300);
  color: var(--black-300);
  display: flex;
  font-size: calc(16 * var(--r));
  font-weight: 500;
  justify-content: space-between;
  line-height: 1.6;
  padding: calc(18 * var(--r)) 0;
  position: relative;
  text-decoration: none;
  transition: color 0.2s;
}

.program-list a:hover {
  color: var(--red-300);
}

.program-list li:last-child a {
  border-bottom: none;
}

.program-list a::before {
  align-items: center;
  background: var(--red-300);
  border-radius: 50%;
  content: "";
  display: flex;
  flex-shrink: 0;
  height: calc(28 * var(--r));
  justify-content: center;
  margin-left: calc(16 * var(--r));
  order: 1;
  position: relative;
  width: calc(28 * var(--r));
}

.program-list a::after {
  border-right: 2px solid var(--white);
  border-top: 2px solid var(--white);
  content: "";
  height: calc(8 * var(--r));
  margin-left: calc(-2 * var(--r));
  order: 1;
  position: absolute;
  right: calc(10 * var(--r));
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: calc(8 * var(--r));
  z-index: 1;
}

.program-visual {
  aspect-ratio: 1 / 1;
  border-bottom-left-radius: calc(50 * var(--r));
  border-top-left-radius: calc(50 * var(--r));
  flex-shrink: 0;
  height: calc(600 * var(--r));
  margin-top: calc(-100 * var(--r));
  overflow: hidden;
  right: calc(-60 * var(--r));
  width: calc(600 * var(--r));
}

.program-visual2 {
  border-bottom-left-radius: calc(50 * var(--r));
  border-top-left-radius: calc(50 * var(--r));
  margin-right: calc(50% - 50vw);
  margin-top: calc(60 * var(--r));
  overflow: hidden;
  width: calc(100% + calc(50vw - 50%));

  @media (min-width: 768px) {
    height: calc(600 * var(--r));
    margin-top: 0;
  }
}

.program-visual2 img {
  -o-object-fit: cover;
  height: 100%;
  object-fit: cover;
  translate: calc(-160 * var(--r));
  width: 100%;

  @media (max-width: 767px) {
    translate: 0;
  }
}

.program-visual img {
  display: block;
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
}

@media (max-width: 767px) {
  .program-section {
    margin-inline: 0;
    overflow-x: clip;
    padding-right: 0;
    width: 100%;
  }

  .program-inner {
    flex-direction: column;
    gap: 0;
  }

  .program-content {
    margin-left: 0;
    width: 100%;
  }

  .program-header {
    text-align: center;
  }

  .program-heading-en {
    font-size: calc(32 * var(--r));
  }

  .program-heading-ja {
    font-size: calc(14 * var(--r));
    margin-top: calc(8 * var(--r));
  }

  .program-desc {
    font-size: calc(14 * var(--r));
    margin-left: auto;
    margin-right: auto;
    margin-top: calc(20 * var(--r));
    max-width: none;
  }

  .program-body {
    flex-direction: row;
    gap: calc(20 * var(--r));
    position: static;
  }

  .program-body2 {
    margin-inline: auto;
    max-width: calc(460 * var(--r));
  }

  .program-list {
    flex: 1;
    min-width: calc(160 * var(--r));
  }

  .program-list a {
    font-size: calc(14 * var(--r));
    padding: calc(14 * var(--r)) 0;
  }

  .program-list a::before {
    height: calc(24 * var(--r));
    width: calc(24 * var(--r));
  }

  .program-list a::after {
    right: calc(8 * var(--r));
  }

  .program-visual {
    aspect-ratio: 4 / 4;
    border-radius: calc(12 * var(--r));
    height: 35%;
    margin-right: 0;
    margin-top: calc(80 * var(--r));
    min-width: calc(150 * var(--r));
    position: static;
    width: 35%;
  }
}

@media (max-width: 510px) {
  .program-section {
    overflow-x: hidden;
  }

  .program-heading-en {
    font-size: calc(28 * var(--r));
  }

  .program-desc {
    font-size: calc(13 * var(--r));
    margin-top: calc(16 * var(--r));
    text-align: center;
  }

  .program-body {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: calc(12 * var(--r));
    margin-top: calc(20 * var(--r));
  }

  .program-list {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
  }

  .program-list a {
    font-size: calc(12 * var(--r));
    gap: calc(8 * var(--r));
    overflow-wrap: break-word;
    padding: calc(10 * var(--r)) 0;
  }

  .program-list a::before {
    height: calc(22 * var(--r));
    margin-left: calc(8 * var(--r));
    width: calc(22 * var(--r));
  }

  .program-list a::after {
    right: calc(7 * var(--r));
  }

  .program-visual {
    aspect-ratio: 1 / 1;
    border-radius: calc(5 * var(--r));
    flex: 0 0 32%;
    margin-top: calc(60 * var(--r));
    max-width: calc(150 * var(--r));
    min-width: calc(100 * var(--r));
    width: 32%;
  }
}

@media (max-width: 360px) {
  .program-body {
    gap: calc(8 * var(--r));
  }

  .program-visual {
    flex: 0 0 28%;
    max-width: calc(120 * var(--r));
    min-width: calc(80 * var(--r));
    width: 28%;
  }

  .program-list a {
    font-size: calc(11 * var(--r));
    padding: calc(8 * var(--r)) 0;
  }
}

/**
 * トップページ用ボタン
 */

.el-btn {
  align-items: center;
  border-radius: 4px;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 600;
  justify-content: center;
  padding: var(--child-spacing-sm) var(--child-spacing-lg);
  transition: opacity 0.25s;
}

.el-btn._primary {
  background-color: var(--color_main, var(--child-blue-500));
  color: var(--child-white);
}

.el-btn._primary:hover {
  opacity: 0.9;
}

.el-btn._outline {
  background-color: transparent;
  border: 1px solid currentColor;
  border-radius: 9999px;
  color: var(--child-purple-500);
  font-size: calc(14 * var(--r));
  font-weight: 400;
  gap: calc(8 * var(--r));
  padding: calc(8 * var(--r)) calc(20 * var(--r));
}

.el-btn._outline:hover {
  opacity: 0.7;
}

.u-desktop {
  display: none;

  @media (min-width: 768px) {
    display: block;
  }
}

/* フォーカス表示：キーボード操作時のみ（:focus-visible）。マウス操作時は非表示 */

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--red-400);
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

.u-mobile {
  display: block;

  @media (min-width: 768px) {
    display: none;
  }
}

/* スキップリンク：キーボード・スクリーンリーダー用。通常は視覚的に非表示、フォーカス時に表示 */

.u-skip-link {
  background: var(--red-400);
  border-radius: 0 0 calc(4 * var(--r)) 0;
  color: var(--white);
  font-size: calc(14 * var(--r));
  font-weight: bold;
  left: 0;
  padding: calc(12 * var(--r)) calc(20 * var(--r));
  position: fixed;
  text-decoration: none;
  top: 0;
  transform: translateY(-100%);
  transition: transform 0.2s ease;
  z-index: 10000;
}

.u-skip-link:focus {
  outline: 2px solid var(--white);
  outline-offset: 2px;
  transform: translateY(0);
}

/* SP: 全ページでヘッダー高さ分（フロントページ含む） */

.wp-child-theme-swell-child {
  margin-top: calc(80 * var(--r));
  /* SPヘッダー高さ */
}

@media (min-width: 768px) {

  /* PC: フロントページでは margin-top なし */
  .wp-child-theme-swell-child.home,
  .wp-child-theme-swell-child.page-template-front-page {
    margin-top: 0;
  }

  /* PC: フロントページ以外でヘッダー高さ分 */
  .wp-child-theme-swell-child:not(.home):not(.page-template-front-page) {
    margin-top: calc(100 * var(--r));
    /* PCヘッダー高さ */
  }
}

.-sidebar-on {
  display: flex;
  flex-wrap: wrap;
  gap: calc(40 * var(--r));
  padding-inline: calc(60 * var(--r));
}

.p-breadcrumb {
  width: 100%;
}

/* フルブリード要素（カード・ギャラリー等）の100vwによる横スクロールを防止 */

html {
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
  font-family: "Noto Sans JP", "Noto Serif JP", sans-serif;
  margin: 0;
  padding: 0;
}

/* フルブリード要素（カード等）の100vwによる横スクロールを防止 */

html,
body {
  overflow-x: hidden;
}

/* 100vw 使用時の横スクロール・右側ギャップ防止 */

html,
body {
  overflow-x: hidden;
}

/* 100vw使用時の横スクロール抑制（カード・ギャラリーのフルブリード対策） */

html,
body {
  overflow-x: hidden;
}

/* 100vw使用時のスクロールバー幅による横スクロール・右余白の発生を防止 */

html,
body {
  overflow-x: hidden;
}

/* 画像を画面幅に合わせて縮小（コンテナ内で object-fit 指定のある画像は上書きされる） */

img {
  height: auto;
  max-width: 100%;
  vertical-align: middle;
}

.inner {
  padding-inline: calc(60 * var(--r));
}

.sp-only {
  display: none;
}

.sp-only-470px {
  display: none;
}

@media (max-width: 767px) {
  .inner {
    padding-inline: calc(20 * var(--r));
  }

  .sp-only {
    display: revert;
  }
}

@media (max-width: 470px) {
  .sp-only-470px {
    display: revert;
  }
}

/* 画像エリアのプレースホルダー（画像未設定時はグラデーション表示） */

.card-tile-img,
.program-visual,
.open-class-img,
.gallery-item {
  background-color: var(--gray-400);
  background-position: center;
  background-size: cover;
}