/*
Theme Name: Matsudo Kokusai Gakuin
Theme URI: https://matsudo-kokusai.local
Author: Inclutia
Description: 松戸国際学院 公式サイト用カスタムテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: matsudo-kokusai
*/

:root {
  --color-main: #8EC82C;
  --color-sub: #03972F;
  --color-accent: #FF5E00;
  --color-accent-dark: #D94E00;
  /* ロゴの「浮かぶ円」から採用したサブカラー */
  --color-aqua: #B4D3D6;
  --color-blue: #7F9FCF;
  --color-white: #FFFFFF;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg-light: #F5F9EE;
  --color-border: #E0E0E0;
  --font-base: 'Noto Sans JP', sans-serif;
  --font-en: 'Open Sans', sans-serif;
  --max-width: 1100px;
  --header-height: 70px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-sub);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.75;
}

ul, ol {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--color-white);
  border-bottom: 3px solid var(--color-main);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
  /* ナビ項目が多いため、ヘッダーのみコンテナ幅を広げる */
  max-width: 1320px;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo:hover {
  opacity: 0.85;
}

.site-logo__img {
  height: 44px;
  width: auto;
}

/* フッター（濃色背景）用 */
.site-logo--footer .site-logo__img {
  height: 48px;
}

/* Navigation */
.global-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.global-nav__list {
  display: flex;
  align-items: center;
  gap: 0;
}

.global-nav__list a {
  display: block;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  transition: color 0.2s;
  white-space: nowrap;
}

.global-nav__list a:hover {
  color: var(--color-main);
  opacity: 1;
}

.header-cta {
  background: var(--color-main);
  color: #fff !important;
  padding: 10px 18px !important;
  border-radius: 4px;
  font-size: 13px !important;
  margin-left: 8px;
}

.header-cta:hover {
  background: var(--color-sub);
  opacity: 1 !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  /* 3本線が重なってもボタンの大きさが変わらないよう固定する */
  width: 40px;
  height: 40px;
  position: relative;
}

.hamburger span {
  display: block;
  position: absolute;
  left: 8px;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}

.hamburger span:nth-child(1) { top: 12px; }
.hamburger span:nth-child(2) { top: 19px; }
.hamburger span:nth-child(3) { top: 26px; }

/* 開いている間は「×」に変形する */
.hamburger.is-active span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

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

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  z-index: 999;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu__list a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu__cta {
  display: block;
  margin-top: 20px;
  text-align: center;
  background: var(--color-main);
  color: #fff !important;
  padding: 14px;
  border-radius: 6px;
  font-weight: 700;
}

/* ===== MAIN CONTENT ===== */
.site-main {
  margin-top: var(--header-height);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero.jpg');
  background-size: cover;
  background-position: center center;
  z-index: 0;
  /* ゆっくりズームインして「動き」を出す */
  animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg { animation: none; }
}

/* 写真をそのまま活かす。ごく薄い締めのみ */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      rgba(0, 20, 6, 0.22) 0%,
      rgba(0, 20, 6, 0.12) 34%,
      rgba(0, 20, 6, 0.00) 60%);
  z-index: 1;
}

/* --------------------------------------------------
   ヒーローの見せ方（比較用）
   body に付くクラスで切り替える：
     hero--panel  : 暗い膜をやめ、文字は白いすりガラスパネルに載せる
     hero--bright : 暗い膜をやめ、文字の背後だけごく淡く敷く
   -------------------------------------------------- */

/* 案B・C 共通：全面の暗い膜をなくす（レスポンシブ指定より後に効かせる） */
body.hero--panel .hero__overlay,
body.hero--bright .hero__overlay {
  background: none !important;
}

/* 案B：白いすりガラスのパネル */
body.hero--panel .hero__content {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 40px 44px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.16);
  border-top: 4px solid var(--color-main);
}

body.hero--panel .hero__title {
  color: var(--color-text);
  text-shadow: none;
}

body.hero--panel .hero__title span {
  color: var(--color-sub);
}

body.hero--panel .hero__desc {
  color: var(--color-text-light);
  text-shadow: none;
}

/* 案C：背景を敷かず、文字だけを写真の上に置く。
   読みやすさは文字の影だけで確保する */
body.hero--bright .hero__title {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 2px 10px rgba(0, 0, 0, 0.5),
    0 4px 24px rgba(0, 0, 0, 0.45),
    0 8px 46px rgba(0, 0, 0, 0.32);
}

body.hero--bright .hero__desc {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.6),
    0 2px 10px rgba(0, 0, 0, 0.55),
    0 4px 22px rgba(0, 0, 0, 0.42);
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 96px;
  padding-bottom: 96px;
  /* .hero が display:flex のため、min-width:auto で縮まず
     狭い画面で内容がはみ出していた。明示的に縮められるようにする */
  width: 100%;
  min-width: 0;
}

.hero__content {
  max-width: 620px;
}

.hero__title {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: 0.01em;
  color: #fff;
  margin-bottom: 24px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65), 0 3px 14px rgba(0, 0, 0, 0.5), 0 6px 36px rgba(0, 0, 0, 0.35);
}

.hero__title span {
  color: var(--color-main);
}

.hero__desc {
  font-size: 16px;
  color: #fff;
  margin-bottom: 40px;
  line-height: 1.95;
  max-width: 500px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 2px 12px rgba(0, 0, 0, 0.55), 0 4px 28px rgba(0, 0, 0, 0.35);
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ヒーローの2つ目のボタン：写真の上でも視認できるよう締める */
.hero .btn--white-outline {
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(4px);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero .btn--white-outline:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.25s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  opacity: 1;
}

.btn--outline {
  background: transparent;
  color: var(--color-main);
  border-color: var(--color-main);
}

.btn--outline:hover {
  background: var(--color-main);
  color: #fff;
  opacity: 1;
}

/* ===== SECTION ===== */
.section {
  padding: 80px 0;
}

.section--gray {
  background: var(--color-bg-light);
  position: relative;
  overflow: hidden;
}

/* ロゴの「浮かぶ円」をモチーフにした背景装飾 */
.section--gray::before,
.section--gray::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.section--gray::before {
  width: 220px;
  height: 220px;
  background: rgba(142, 200, 44, 0.10);
  top: -70px;
  right: -60px;
}

.section--gray::after {
  width: 130px;
  height: 130px;
  background: rgba(127, 159, 207, 0.10);
  bottom: -40px;
  left: -30px;
}

.section--gray > .container {
  position: relative;
  z-index: 1;
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

/* ロゴの2つの円（吹き出し）をモチーフにしたラベル */
.section__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-main);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section__label::before,
.section__label::after {
  content: '';
  border-radius: 50%;
  flex-shrink: 0;
}

.section__label::before {
  width: 9px;
  height: 9px;
  background: var(--color-main);
}

.section__label::after {
  width: 6px;
  height: 6px;
  background: var(--color-sub);
}

.section__title {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 16px;
}

.section__desc {
  font-size: 15px;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== FEATURES (Home: なぜ松戸国際学院) ===== */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow 0.25s;
}

.feature-card:hover {
  box-shadow: 0 8px 24px rgba(142,200,44,0.15);
}

.feature-card__icon {
  width: 64px;
  height: 64px;
  background: var(--color-bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 26px;
  color: var(--color-main);
}

.feature-card__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}

.feature-card__desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ===== FEATURES（10の特色 / トップページ） ===== */
.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
  list-style: none;
  padding: 0;
  margin: 0 0 48px;
}

.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 16px 18px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.feature-item:hover {
  border-color: rgba(142, 200, 44, 0.55);
  box-shadow: 0 6px 20px rgba(3, 151, 47, 0.08);
  transform: translateY(-2px);
}

.feature-item__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-main), var(--color-sub));
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  font-family: var(--font-en);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-item__text {
  line-height: 1.7;
  padding-top: 3px;
  font-size: 15px;
}

/* ===== 5つの教育体系（トップページ） ===== */
.systems {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px 36px;
  margin-bottom: 40px;
}

.systems__title {
  position: relative;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
}

.systems__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-main), var(--color-sub));
}

.systems__desc {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text-light);
  margin: 16px 0 22px;
}

.systems__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.system-item {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--color-bg-light);
  border-radius: 8px;
  padding: 14px 20px;
  transition: transform 0.25s ease;
}

.system-item:hover {
  transform: translateX(4px);
}

.system-item__num {
  flex-shrink: 0;
  width: 34px;
  font-size: 20px;
  font-weight: 900;
  font-family: var(--font-en);
  color: var(--color-main);
}

.system-item__text {
  line-height: 1.6;
  font-size: 15px;
}

@media (max-width: 768px) {
  .features__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .systems {
    padding: 24px 20px;
  }
  .system-item {
    padding: 12px 14px;
    gap: 12px;
  }
}

/* --------------------------------------------------
   10の特色・5つの教育体系の見せ方（比較用）
     feat--icon  : アイコン付きカード＋ステップ表示
     feat--stats : 数字で見る＋タイムライン
   既定（クラスなし）は従来のシンプルなリスト
   -------------------------------------------------- */

/* 既定ではアイコンと数字タイルを隠す */
.feature-item__icon,
.system-item__icon,
.stats {
  display: none;
}

/* ========== 案A：アイコン付きカード ＋ ステップ ========== */
body.feat--icon .features__grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: feat;
}

body.feat--icon .feature-item {
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 26px 22px 22px;
  border-radius: 14px;
  overflow: hidden;
}

/* 背景に大きな連番を薄く敷く */
body.feat--icon .feature-item__num {
  position: absolute;
  top: -18px;
  right: 8px;
  width: auto;
  height: auto;
  background: none;
  color: rgba(142, 200, 44, 0.20);
  font-size: 84px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

body.feat--icon .feature-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(142,200,44,0.16), rgba(3,151,47,0.14));
  color: var(--color-sub);
  font-size: 22px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

body.feat--icon .feature-item:hover .feature-item__icon {
  background: linear-gradient(135deg, var(--color-main), var(--color-sub));
  color: #fff;
  transform: scale(1.06);
}

body.feat--icon .feature-item__text {
  padding-top: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

/* 5つの教育体系：横並びのステップ */
body.feat--icon .systems__list {
  flex-direction: row;
  gap: 0;
}

body.feat--icon .system-item {
  position: relative;
  flex: 1;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  background: none;
  padding: 0 10px;
}

/* ステップ同士をつなぐ線 */
body.feat--icon .system-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(50% + 34px);
  right: calc(-50% + 34px);
  height: 2px;
  background: linear-gradient(90deg, rgba(142,200,44,0.55), rgba(3,151,47,0.30));
}

body.feat--icon .system-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-main);
  color: var(--color-sub);
  font-size: 21px;
  position: relative;
  z-index: 1;
  order: -1;   /* アイコンを一番上に置き、つなぎ線と高さを合わせる */
  /* 文字が長い項目でアイコンが横に潰れないようにする */
  flex-shrink: 0;
}

/* アイコンの図柄ごとの大きさのばらつきを抑える */
body.feat--icon .system-item__icon i,
body.feat--icon .feature-item__icon i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  line-height: 1;
}

body.feat--icon .system-item__num {
  width: auto;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-main);
}

body.feat--icon .system-item__text {
  font-size: 13.5px;
  line-height: 1.65;
  font-weight: 700;
}

body.feat--icon .system-item:hover {
  transform: none;
}

/* ========== 案B：数字で見る ＋ タイムライン ========== */
body.feat--stats .stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 44px;
}

body.feat--stats .stat {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-main);
  border-radius: 12px;
  padding: 26px 18px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.feat--stats .stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(3, 151, 47, 0.10);
}

body.feat--stats .stat__num {
  font-family: var(--font-en);
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-main), var(--color-sub));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.feat--stats .stat__num span {
  font-size: 17px;
  margin-left: 3px;
}

body.feat--stats .stat__label {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-light);
}

body.feat--stats .feature-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  color: var(--color-sub);
  font-size: 16px;
}

/* 5つの教育体系：縦のタイムライン */
body.feat--stats .systems__list {
  position: relative;
  padding-left: 34px;
  gap: 18px;
}

body.feat--stats .systems__list::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-main), var(--color-sub));
}

body.feat--stats .system-item {
  position: relative;
  background: none;
  padding: 0;
}

body.feat--stats .system-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-main);
}

body.feat--stats .system-item__icon {
  display: inline-flex;
  width: 26px;
  color: var(--color-sub);
  font-size: 15px;
}

body.feat--stats .system-item:hover {
  transform: none;
}

@media (max-width: 900px) {
  body.feat--icon .features__grid { grid-template-columns: repeat(2, 1fr); }
  body.feat--icon .systems__list  { flex-direction: column; gap: 12px; }
  body.feat--icon .system-item {
    flex-direction: row;
    text-align: left;
    background: var(--color-bg-light);
    border-radius: 8px;
    padding: 12px 16px;
  }
  body.feat--icon .system-item:not(:last-child)::after { display: none; }
  body.feat--stats .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  body.feat--icon .features__grid { grid-template-columns: 1fr; }
}

/* ===== COURSES (Home preview) ===== */
.courses__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.course-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  display: flex;
  transition: box-shadow 0.25s;
}

.course-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.course-card__accent {
  width: 6px;
  background: linear-gradient(180deg, var(--color-main), var(--color-sub));
  flex-shrink: 0;
}

.course-card__body {
  padding: 24px;
  flex: 1;
}

.course-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-main);
  background: var(--color-bg-light);
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.course-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.course-card__desc {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 14px;
}

.course-card__meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
}

.course-card__meta span {
  color: var(--color-text-light);
}

.course-card__meta strong {
  color: var(--color-text);
}

.courses__more {
  text-align: center;
}

/* ===== NEWS ===== */
.news__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 40px;
}

.news-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0 20px 0;
  border-bottom: 1px solid var(--color-border);
  transition: padding-left 0.25s ease;
}

/* ホバー時にロゴ色のラインが伸びる */
.news-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 60%;
  background: linear-gradient(180deg, var(--color-main), var(--color-sub));
  border-radius: 2px;
  transition: width 0.25s ease;
}

.news-item:hover {
  padding-left: 16px;
}

.news-item:hover::before {
  width: 3px;
}

.news-item__date {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--color-text-light);
  font-family: var(--font-en);
  padding-top: 2px;
  min-width: 90px;
}

.news-item__cat {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-main);
  background: var(--color-bg-light);
  padding: 2px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.news-item__title {
  font-size: 15px;
  color: var(--color-text);
}

.news-item__title a {
  color: var(--color-text);
}

.news-item__title a:hover {
  color: var(--color-main);
}

.news__more {
  text-align: center;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  position: relative;
  background: linear-gradient(135deg, var(--color-main) 0%, var(--color-sub) 100%);
  padding: 70px 0;
  text-align: center;
  overflow: hidden;
}

/* ロゴの「浮かぶ円」を白の透過で配置 */
.cta-banner::before,
.cta-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  pointer-events: none;
}

.cta-banner::before {
  width: 260px;
  height: 260px;
  top: -110px;
  left: -60px;
}

.cta-banner::after {
  width: 150px;
  height: 150px;
  bottom: -60px;
  right: 4%;
}

.cta-banner .container {
  position: relative;
  z-index: 1;
}

.cta-banner__title {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
}

.cta-banner__desc {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
}

.cta-banner__buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn--white {
  background: #fff;
  color: var(--color-main);
  border-color: #fff;
}

.btn--white:hover {
  background: rgba(255,255,255,0.9);
  opacity: 1;
}

.btn--white-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn--white-outline:hover {
  background: rgba(255,255,255,0.15);
  opacity: 1;
}

/* ===== PAGE HEADER ===== */
.page-header {
  position: relative;
  background: linear-gradient(135deg, var(--color-bg-light) 0%, #e8f5d4 100%);
  padding: 60px 0 50px;
  border-bottom: 3px solid var(--color-main);
  overflow: hidden;
}

/* ロゴの「浮かぶ円」を右上に配置 */
.page-header::before,
.page-header::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.page-header::before {
  width: 190px;
  height: 190px;
  background: rgba(142, 200, 44, 0.16);
  top: -60px;
  right: 6%;
}

.page-header::after {
  width: 84px;
  height: 84px;
  background: rgba(127, 159, 207, 0.18);
  top: 62px;
  right: 3%;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-main);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.page-header__label::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-main);
  flex-shrink: 0;
}

.page-header__title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 10px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 16px;
}

.breadcrumb a {
  color: var(--color-text-light);
}

.breadcrumb__sep {
  color: var(--color-border);
}

/* ===== CONTENT ===== */
.content-section {
  position: relative;
  padding: 70px 0;
  overflow: hidden;
}

/* ロゴの「浮かぶ円」がゆっくり漂う背景装飾 */
.content-section::before,
.content-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.content-section::before {
  width: 260px;
  height: 260px;
  background: rgba(142, 200, 44, 0.07);
  top: 8%;
  left: -110px;
  animation: floatSlow 16s ease-in-out infinite;
}

.content-section::after {
  width: 170px;
  height: 170px;
  background: rgba(127, 159, 207, 0.07);
  bottom: 12%;
  right: -70px;
  animation: floatSlow 20s ease-in-out infinite reverse;
}

@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(22px, -26px); }
}

.content-section > .container {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .content-section::before,
  .content-section::after {
    animation: none;
  }
}

.content-box {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 36px;
  margin-bottom: 30px;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.content-box:hover {
  border-color: rgba(142, 200, 44, 0.5);
  box-shadow: 0 6px 24px rgba(3, 151, 47, 0.07);
}

.content-box__title {
  position: relative;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
}

/* 下線をロゴの2色グラデーションで表現。表示時に左から伸びる */
.content-box__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-main), var(--color-sub));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

/* fade-in 対象になっていない場合も考慮し、既定は表示状態 */
.content-box__title::after {
  transform: scaleX(1);
}

.content-box.fade-in .content-box__title::after {
  transform: scaleX(0);
}

.content-box.fade-in.is-visible .content-box__title::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .content-box__title::after {
    transition: none;
    transform: scaleX(1);
  }
}

/* ===== 学院長挨拶 ===== */
.principal {
  display: flex;
  gap: 34px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.principal__photo {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 6px 22px rgba(3, 151, 47, 0.14);
  border: 4px solid var(--color-white);
  outline: 2px solid rgba(142, 200, 44, 0.35);
  outline-offset: -6px;
}

.principal__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.principal__body {
  flex: 1;
  min-width: 280px;
}

@media (max-width: 600px) {
  .principal {
    gap: 22px;
    justify-content: center;
  }
  .principal__photo {
    width: 170px;
    height: 170px;
  }
}

/* ===== TABLE ===== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.info-table th,
.info-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.info-table th {
  background: var(--color-bg-light);
  font-weight: 700;
  color: var(--color-text);
  width: 30%;
  white-space: nowrap;
}

/* メールやURLが枠を越えないようにする */
.info-table td {
  overflow-wrap: anywhere;
}

/* --------------------------------------------------
   スマホでの基本情報テーブルの見せ方（比較用）
     tbl--stack : ラベルを上、値を下に縦積み
     tbl--card  : 1項目を1枚のカードに
   既定（クラスなし）は従来の2列表
   -------------------------------------------------- */
@media (max-width: 600px) {

  /* 案A：縦積み */
  body.tbl--stack .info-table,
  body.tbl--stack .info-table tbody,
  body.tbl--stack .info-table tr,
  body.tbl--stack .info-table th,
  body.tbl--stack .info-table td {
    display: block;
    width: auto;
  }

  body.tbl--stack .info-table tr {
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
  }

  body.tbl--stack .info-table tr:last-child {
    border-bottom: none;
  }

  body.tbl--stack .info-table th {
    background: none;
    white-space: normal;
    padding: 0 0 4px;
    border-bottom: none;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--color-sub);
    letter-spacing: 0.03em;
  }

  body.tbl--stack .info-table td {
    padding: 0;
    border-bottom: none;
    font-size: 15px;
    line-height: 1.75;
  }

  /* 案B：カード型 */
  body.tbl--card .info-table,
  body.tbl--card .info-table tbody,
  body.tbl--card .info-table tr,
  body.tbl--card .info-table th,
  body.tbl--card .info-table td {
    display: block;
    width: auto;
  }

  body.tbl--card .info-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  body.tbl--card .info-table tr {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-main);
    border-radius: 8px;
    padding: 12px 14px;
  }

  body.tbl--card .info-table th {
    background: none;
    white-space: normal;
    padding: 0 0 5px;
    border-bottom: none;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-light);
    letter-spacing: 0.04em;
  }

  body.tbl--card .info-table td {
    padding: 0;
    border-bottom: none;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.7;
  }
}

/* ===== STAFF GRID ===== */
/* スタッフ一覧のセクション見出し */
.staff-section__title {
  position: relative;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
}

.staff-section__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-main), var(--color-sub));
}

.staff-section__title--second {
  margin-top: 56px;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 3列グリッドで最終行が1枚だけになる場合は中央に置く */
.staff-grid > .staff-card:last-child:nth-child(3n + 1) {
  grid-column: 2;
}

.staff-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: box-shadow 0.25s;
}

.staff-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.staff-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-main);
  font-size: 48px;
  overflow: hidden;
}

.staff-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.staff-card__body {
  padding: 20px;
}

.staff-card__role {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-main);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.staff-card__name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.staff-card__qual {
  font-size: 13px;
  color: var(--color-text-light);
}

/* 学院長カードから教育理念ページへのリンク */
.staff-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-sub);
}

.staff-card__link i {
  font-size: 11px;
  transition: transform 0.25s ease;
}

.staff-card__link:hover {
  opacity: 1;
  color: var(--color-main);
}

.staff-card__link:hover i {
  transform: translateX(4px);
}

/* ===== ラジオボタン・チェックボックス（指で押しやすく） ===== */
.wpcf7-form .wpcf7-radio,
.wpcf7-form .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.wpcf7-form .wpcf7-list-item {
  margin: 0;
}

.wpcf7-form .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 9px;
  /* 指で押せる大きさを確保する */
  min-height: 46px;
  padding: 0 18px 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: var(--color-white);
  cursor: pointer;
  font-size: 15px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.wpcf7-form .wpcf7-list-item label:hover {
  border-color: var(--color-main);
}

.wpcf7-form .wpcf7-list-item input[type="radio"],
.wpcf7-form .wpcf7-list-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--color-sub);
  flex-shrink: 0;
}

/* 選択中の項目を分かりやすくする */
.wpcf7-form .wpcf7-list-item label:has(input:checked) {
  border-color: var(--color-main);
  background: var(--color-bg-light);
  font-weight: 700;
}

.wpcf7-form .wpcf7-list-item-label {
  line-height: 1.4;
}

/* ===== お問い合わせ：電話・メールのカード ===== */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  margin-bottom: 0;
  color: var(--color-text);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.contact-card:hover {
  opacity: 1;
  color: var(--color-text);
  border-color: rgba(142, 200, 44, 0.55);
  box-shadow: 0 8px 24px rgba(3, 151, 47, 0.10);
  transform: translateY(-2px);
}

.contact-card__icon {
  font-size: 34px;
  margin-bottom: 12px;
  color: var(--color-main);
}

.contact-card__label {
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-card__value {
  font-size: 22px;
  font-weight: 900;
  color: var(--color-main);
  overflow-wrap: anywhere;
}

.contact-card__value--mail {
  font-size: 15px;
  font-weight: 700;
}

.contact-card__note {
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 8px;
}

/* スマホでは横に潰さず縦積みにする */
@media (max-width: 600px) {
  .contact-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-card {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    text-align: left;
    gap: 4px 14px;
    padding: 18px 18px;
  }

  .contact-card__icon {
    margin-bottom: 0;
    font-size: 26px;
    width: 34px;
    flex-shrink: 0;
  }

  .contact-card__label {
    margin-bottom: 0;
    font-size: 13px;
    color: var(--color-text-light);
    flex: 1;
  }

  .contact-card__value,
  .contact-card__note {
    width: 100%;
    padding-left: 48px;
  }

  .contact-card__value {
    font-size: 21px;
  }

  .contact-card__value--mail {
    font-size: 16px;
  }

  .contact-card__note {
    margin-top: 2px;
  }
}

/* ===== FORM ===== */
.contact-form .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}

.form-group label .required {
  color: #e53e3e;
  margin-left: 4px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 15px;
  font-family: var(--font-base);
  transition: border-color 0.2s;
  background: var(--color-white);
}

/* セレクトの矢印を自前のものに差し替え、右端から少し内側に配置する
   （ブラウザ標準の矢印は位置を指定できないため） */
.form-group select,
.wpcf7-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' fill='none' stroke='%23666666' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 12px 8px;
  padding-right: 46px;
  cursor: pointer;
}

.form-group select:hover,
.wpcf7-form select:hover {
  border-color: var(--color-main);
}

/* IE/Edge レガシーの標準矢印を隠す */
.form-group select::-ms-expand,
.wpcf7-form select::-ms-expand {
  display: none;
}

.form-group input:focus,
.form-group textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--color-main);
}

.form-group textarea,
.wpcf7-form textarea {
  min-height: 150px;
  resize: vertical;
}

.wpcf7-submit {
  background: var(--color-main);
  color: #fff;
  border: none;
  padding: 16px 40px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s;
  width: 100%;
  max-width: 320px;
  display: block;
  margin: 0 auto;
}

.wpcf7-form p:last-of-type {
  text-align: center;
}

.wpcf7-submit:hover {
  background: var(--color-sub);
}

/* ===== FOOTER ===== */
/* フッター配色。--footer-theme を切り替えると白系／黒系が入れ替わる */
.site-footer {
  --footer-bg:     #1a1a1a;
  --footer-text:   rgba(255,255,255,0.8);
  --footer-muted:  rgba(255,255,255,0.6);
  --footer-faint:  rgba(255,255,255,0.4);
  --footer-line:   rgba(255,255,255,0.1);
  --footer-accent: var(--color-main);

  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 0;
}

/* 白系フッター：body に footer--light を付けると適用される */
body.footer--light .site-footer {
  --footer-bg:     #F7F9F3;
  --footer-text:   var(--color-text);
  --footer-muted:  var(--color-text-light);
  --footer-faint:  #8a8a8a;
  --footer-line:   var(--color-border);
  --footer-accent: var(--color-sub);

  border-top: 3px solid var(--color-main);
}

/* 白系のときはロゴを通常版（濃色）に差し替える */
body.footer--light .site-logo--footer .site-logo__img {
  content: url('assets/logo.png');
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--footer-line);
}

.footer__desc {
  font-size: 13px;
  line-height: 1.8;
  margin-top: 16px;
  color: var(--footer-muted);
}

.footer__nav-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--footer-accent);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__nav-list a {
  display: inline-block;
  font-size: 13px;
  color: var(--footer-muted);
}

.footer__nav-list a:hover {
  color: var(--footer-accent);
  opacity: 1;
}

/* SNSアイコン */
.footer__sns {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.footer__sns a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 16px 0 13px;
  border-radius: 20px;
  border: 1px solid var(--footer-line);
  background: transparent;
  color: var(--footer-muted);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

/* アイコンだけ Instagram のブランドカラーにする */
.footer__sns a i {
  font-size: 19px;
  line-height: 1;
  background: radial-gradient(circle at 30% 107%,
      #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer__sns a:hover {
  opacity: 1;
  color: var(--color-text);
  border-color: rgba(214, 36, 159, 0.45);
  background: rgba(214, 36, 159, 0.05);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 12px;
  color: var(--footer-faint);
}

.footer__bottom-links {
  display: flex;
  gap: 20px;
}

.footer__bottom-links a {
  color: var(--footer-faint);
  font-size: 12px;
}

/* ===== LANG SWITCHER ===== */
.lang-switcher {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}

.lang-switcher a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-light);
  padding: 4px 7px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* 国旗（SVG）。絵文字と違い全OSで同じ見た目になる */
.lang-switcher .flag {
  width: 18px;
  height: 12px;
  display: block;
  flex-shrink: 0;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.10);
}

/* スマホのメニュー内：国旗＋母語表記 */
.lang-switcher--mobile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.lang-switcher--mobile a {
  justify-content: flex-start;
  gap: 9px;
  font-size: 14px;
  padding: 0 12px;
  min-height: 48px;
  border-radius: 8px;
}

.lang-switcher--mobile .flag {
  width: 24px;
  height: 16px;
}

.lang-switcher a:hover,
.lang-switcher a.current {
  background: var(--color-main);
  color: #fff;
  border-color: var(--color-main);
  opacity: 1;
}

/* --------------------------------------------------
   スマホ・タブレットでのタップ領域の確保
   （指で押せる目安 44px に近づける）
   -------------------------------------------------- */

/* 言語切替のタップ領域は .lang-switcher--mobile 側で確保している
   （国旗＋母語表記・最低48px）。ここでは余白のみ調整する */
@media (max-width: 900px) {
  .lang-switcher {
    margin-left: 0;
  }
}

/* iPad・小さめのPCではヘッダーに4言語分の幅がないため、
   略号を隠して国旗だけにする（1001〜1180px） */
@media (min-width: 1001px) and (max-width: 1180px) {
  .global-nav .lang-switcher {
    gap: 5px;
    margin-left: 10px;
  }

  .global-nav .lang-switcher a {
    padding: 5px 7px;
  }

  .global-nav .lang-switcher__code {
    /* 画面には出さず、読み上げソフトには残す */
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .global-nav .lang-switcher .flag {
    width: 22px;
    height: 15px;
  }

  /* ナビの左右の余白も少し詰める */
  .global-nav__list a {
    padding: 8px 8px;
  }
}

@media (max-width: 600px) {
  /* フッターのメニュー */
  .footer__nav-list {
    gap: 0;
  }

  .footer__nav-list a {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
  }

  /* フッター下部のリンク */
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 0 20px;
  }

  .footer__bottom-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    font-size: 13px;
  }

  /* パンくず */
  .breadcrumb {
    gap: 6px;
    margin-top: 8px;
  }

  .breadcrumb a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }
}

/* ===== PDF LIST ===== */
.pdf-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pdf-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.pdf-item:first-child {
  border-top: 1px solid var(--color-border);
}

.pdf-item__info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.pdf-item__icon {
  font-size: 28px;
  color: #e53e3e;
  flex-shrink: 0;
}

.pdf-item__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.pdf-item__desc {
  font-size: 13px;
  color: var(--color-text-light);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .pdf-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .pdf-item__btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== SCROLL ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card.fade-in:nth-child(2) { transition-delay: 0.1s; }
.feature-card.fade-in:nth-child(3) { transition-delay: 0.2s; }
.course-card.fade-in:nth-child(2)  { transition-delay: 0.1s; }
.staff-card.fade-in:nth-child(2)   { transition-delay: 0.1s; }
.staff-card.fade-in:nth-child(3)   { transition-delay: 0.2s; }

/* グリッド内のカードが順に現れる */
.level-card.fade-in:nth-child(2)  { transition-delay: 0.07s; }
.level-card.fade-in:nth-child(3)  { transition-delay: 0.14s; }
.level-card.fade-in:nth-child(4)  { transition-delay: 0.21s; }
.level-card.fade-in:nth-child(5)  { transition-delay: 0.28s; }

.event-card.fade-in:nth-child(2)  { transition-delay: 0.06s; }
.event-card.fade-in:nth-child(3)  { transition-delay: 0.12s; }
.event-card.fade-in:nth-child(4)  { transition-delay: 0.18s; }
.event-card.fade-in:nth-child(5)  { transition-delay: 0.24s; }
.event-card.fade-in:nth-child(6)  { transition-delay: 0.30s; }
.event-card.fade-in:nth-child(7)  { transition-delay: 0.36s; }
.event-card.fade-in:nth-child(8)  { transition-delay: 0.42s; }

.course-full-card.fade-in:nth-child(even) { transition-delay: 0.1s; }

/* 10の特色が順に現れる */
.feature-item.fade-in:nth-child(2)  { transition-delay: 0.05s; }
.feature-item.fade-in:nth-child(3)  { transition-delay: 0.10s; }
.feature-item.fade-in:nth-child(4)  { transition-delay: 0.15s; }
.feature-item.fade-in:nth-child(5)  { transition-delay: 0.20s; }
.feature-item.fade-in:nth-child(6)  { transition-delay: 0.25s; }
.feature-item.fade-in:nth-child(7)  { transition-delay: 0.30s; }
.feature-item.fade-in:nth-child(8)  { transition-delay: 0.35s; }
.feature-item.fade-in:nth-child(9)  { transition-delay: 0.40s; }
.feature-item.fade-in:nth-child(10) { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== RESPONSIVE ===== */
/* 1000px 以下はヘッダーに横並びナビが収まらないためハンバーガーに切り替える */
@media (max-width: 1000px) {
  .global-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 900px) {

  /* タブレット：わずかに締めて可読性を確保 */
  .hero__overlay {
    background:
      linear-gradient(115deg,
        rgba(0, 20, 6, 0.30) 0%,
        rgba(0, 20, 6, 0.20) 45%,
        rgba(0, 20, 6, 0.10) 75%,
        rgba(0, 20, 6, 0.04) 100%);
  }

  .features__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .courses__grid {
    grid-template-columns: 1fr;
  }

  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 2列時は中央寄せの指定を解除 */
  .staff-grid > .staff-card:last-child:nth-child(3n + 1) {
    grid-column: auto;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .info-table th {
    width: 40%;
  }
}

@media (max-width: 600px) {
  :root {
    --header-height: 60px;
  }

  .site-logo__img {
    height: 36px;
  }

  /* SPでは装飾の円を控えめに */
  .page-header::after {
    display: none;
  }

  .page-header::before {
    width: 130px;
    height: 130px;
    top: -45px;
    right: -20px;
  }

  .hero {
    padding: 48px 0;
    min-height: 520px;
  }

  /* SPは横グラデーションが効かないため、縦方向で最低限の可読性を確保 */
  .hero__overlay {
    background:
      linear-gradient(180deg,
        rgba(0, 20, 6, 0.18) 0%,
        rgba(0, 20, 6, 0.30) 50%,
        rgba(0, 20, 6, 0.40) 100%);
  }

  .hero .container {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .hero__desc {
    font-size: 15px;
    margin-bottom: 32px;
  }

  .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 50px 0;
  }

  .staff-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .news-item {
    flex-direction: column;
    gap: 8px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .content-box {
    padding: 24px 16px;
  }

  .info-table {
    display: block;
    overflow-x: auto;
  }

  .cta-banner__buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ========================================
   コース紹介ページ（8コース）
   ======================================== */
.courses-full__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.course-full-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s, transform 0.3s;
}

.course-full-card:hover {
  box-shadow: 0 6px 20px rgba(142,200,44,0.2);
  transform: translateY(-4px);
}

.course-full-card__head {
  background: linear-gradient(135deg, var(--color-main), var(--color-sub));
  color: var(--color-white);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.course-full-card__head i {
  font-size: 24px;
  opacity: 0.9;
  flex-shrink: 0;
}

.course-full-card__head h2 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.course-full-card__body {
  padding: 20px 24px;
}

.course-full-card__body p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-light);
}

@media (max-width: 1024px) and (min-width: 769px) {
  .courses__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* レベル別到達目標 */
.level-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.level-card {
  background: var(--color-bg-light);
  border-radius: 8px;
  padding: 18px 14px;
  text-align: center;
}

.level-card__label {
  font-size: 15px;
  font-weight: 900;
  color: var(--color-sub);
  font-family: var(--font-en);
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--color-main);
}

.level-card__goal {
  font-size: 13px;
  line-height: 1.75;
  color: var(--color-text-light);
  text-align: left;
}

@media (max-width: 900px) {
  .level-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .level-grid {
    grid-template-columns: 1fr;
  }

  .level-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
    padding: 14px 16px;
  }

  .level-card__label {
    flex-shrink: 0;
    width: 76px;
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
    border-right: 2px solid var(--color-main);
    padding-right: 12px;
    text-align: left;
  }
}

/* 学生生活カードの画像 */
.life-card__photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.life-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.life-card:hover .life-card__photo img {
  transform: scale(1.05);
}

/* --------------------------------------------------
   学生生活の3カードのレイアウト（比較用）
     life--three : 3列に並べて1行に収める
     life--split : 写真とテキストを左右に、段ごとに交互
   -------------------------------------------------- */

/* 案B：3列 */
body.life--three .courses-full__grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

body.life--three .life-card__photo {
  aspect-ratio: 4 / 3;
}

/* 案C：写真＋テキストを左右に、交互に配置 */
body.life--split .courses-full__grid {
  grid-template-columns: 1fr;
  gap: 28px;
}

body.life--split .life-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  grid-template-areas:
    "photo head"
    "photo body";
  align-content: start;
}

body.life--split .life-card__photo {
  grid-area: photo;
  height: 100%;
  aspect-ratio: auto;
  min-height: 260px;
}

body.life--split .life-card .course-full-card__head { grid-area: head; }
body.life--split .life-card .course-full-card__body { grid-area: body; }

/* 偶数番目は写真を右に */
body.life--split .life-card:nth-child(even) {
  grid-template-columns: 1fr 1.05fr;
  grid-template-areas:
    "head photo"
    "body photo";
}

@media (max-width: 768px) {
  body.life--three .courses-full__grid {
    grid-template-columns: 1fr;
  }

  body.life--split .life-card,
  body.life--split .life-card:nth-child(even) {
    grid-template-columns: 1fr;
    grid-template-areas:
      "photo"
      "head"
      "body";
  }

  body.life--split .life-card__photo {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
}

/* イベント紹介ギャラリー */
.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.event-card__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
}

.event-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.event-card:hover .event-card__photo img {
  transform: scale(1.06);
}

.event-card__title {
  margin-top: 8px;
  font-size: 13px;
  text-align: center;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .courses-full__grid {
    grid-template-columns: 1fr;
  }

  .course-full-card__head {
    padding: 16px 18px;
  }

  .course-full-card__body {
    padding: 16px 18px;
  }
}
