/* ========== RESET & BASE ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  color: #271a49;
  background: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

/* ========== SCROLL ANIMATIONS ========== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

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

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes floatMedium {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.03); }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 60px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Noto Sans JP', sans-serif;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn .arrow {
  transition: transform 0.3s ease;
  display: inline-block;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn-primary {
  background: #1365c1;
  color: #fff;
  padding: 16px 34px;
  font-size: 18px;
  letter-spacing: 0.54px;
  box-shadow: 0 10px 12px rgba(19, 101, 193, 0.2);
  width: 240px;
  height: 56px;
}

.btn-primary:hover {
  background: #0f52a0;
  box-shadow: 0 14px 20px rgba(19, 101, 193, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: #fff;
  color: #1365c1;
  border: 2px solid #1365c1;
  padding: 16px 34px;
  font-size: 18px;
  letter-spacing: 0.54px;
  width: 240px;
  height: 56px;
}

.btn-outline:hover {
  background: #1365c1;
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-small {
  color: #1365c1;
  border: 2px solid #1365c1;
  border-radius: 27.5px;
  padding: 13px 40px;
  font-size: 14px;
  height: 55px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  flex-shrink: 0;
}

.btn-outline-small:hover {
  background: #1365c1;
  color: #fff;
  transform: translateY(-2px);
}

.btn-yellow {
  background: #fff100;
  color: #1365c1;
  padding: 20px 48px;
  font-size: 20px;
  letter-spacing: 0.6px;
  width: 320px;
  height: 64px;
  box-shadow: 0 10px 12px rgba(0, 40, 90, 0.18);
}

.btn-yellow:hover {
  background: #ecdf00;
  transform: translateY(-2px);
}

/* 申込期間外：ボタンは表示するがリンク無効。薄くして押せない見た目にする */
.btn-apply.is-closed {
  pointer-events: none;
  cursor: default;
  user-select: none;
  opacity: 0.45;
  box-shadow: none;
}

/* 黄色ボタンは半透明だと青背景と混ざって緑に見えるため、薄い色で表現する */
.btn-yellow.btn-apply.is-closed {
  opacity: 1;
  background: #f6f3c2;
  color: #93a9c9;
}

.apply-closed-note {
  color: #1365c1;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.4;
}

.apply-closed-note--on-blue {
  background: #fff;
  border-radius: 999px;
  padding: 3px 16px;
}

.cta-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.btn-primary-header {
  background: #1365c1;
  color: #fff;
  padding: 12px 26px;
  font-size: 16px;
  letter-spacing: 0.48px;
  height: 50px;
}

.btn-primary-header:hover {
  background: #0f52a0;
  transform: translateY(-1px);
}

.btn-outline-header {
  border: 2px solid #1365c1;
  color: #1365c1;
  padding: 12px 26px;
  font-size: 16px;
  letter-spacing: 0.48px;
  height: 50px;
}

.btn-outline-header:hover {
  background: #1365c1;
  color: #fff;
}

.btn-white {
  background: #fff;
  color: #1365c1;
  padding: 20px 48px;
  font-size: 18px;
  letter-spacing: 0.54px;
  width: 320px;
  height: 64px;
}

.btn-white:hover {
  background: #f0f7ff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline-white {
  border: 1px solid #fff;
  color: #fff;
  padding: 12px 24px;
  font-size: 14px;
  letter-spacing: 0.42px;
  height: 44px;
}

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

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}

.header-logo {
  /* ナビが詰まってもロゴを圧縮・歪ませない（VIアイソレーション保護） */
  flex-shrink: 0;
}

.header-logo img {
  transition: opacity 0.3s;
}

.header-logo:hover img {
  opacity: 0.7;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header-nav > a {
  font-size: 15px;
  font-weight: 700;
  color: #000228;
  position: relative;
  transition: color 0.3s;
}

.header-nav > a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #1365c1;
  transition: width 0.3s ease;
}

.header-nav > a:hover {
  color: #1365c1;
}

.header-nav > a:hover::after {
  width: 100%;
}

.header-buttons {
  display: flex;
  gap: 6px;
}

/* ========== MV (HERO) ========== */
.mv {
  position: relative;
  width: 100%;
  height: calc(809px * var(--mv-scale, 1));
  overflow: hidden;
  z-index: 1;
  display: flex;
  justify-content: center;
  /* Fixed sky background */
  background: url('assets/bg-hero.jpg') center top / cover no-repeat fixed;
}

/* 1440px基準のステージ。JSが --mv-scale を設定し、タブレット幅では丸ごと縮小する */
.mv-stage {
  position: relative;
  width: 1440px;
  height: 809px;
  flex-shrink: 0;
  transform: scale(var(--mv-scale, 1));
  transform-origin: top center;
}

.mv-scene {
  position: absolute;
  inset: 0;
}

/* MV Glow effects (white radial gradients) */
.mv-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.mv-glow-1 {
  left: -228.5px;
  top: -201.5px;
  width: 1065px;
  height: 1065px;
  background: radial-gradient(circle, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.94) 50%, rgba(255,255,255,0) 71.15%);
  filter: blur(52px);
  z-index: 4;
}

/* Blue solid circle - bottom left */
.mv-blue-circle {
  position: absolute;
  left: -262px;
  top: 562px;
  width: 855px;
  height: 855px;
  border-radius: 50%;
  background: #1365c1;
  z-index: 8;
  pointer-events: none;
}

/* 青い円の下に敷く（上に載せると日時テキストが白飛びして読めなくなる） */
.mv-glow-2 {
  left: -365.5px;
  top: 458.5px;
  width: 1065px;
  height: 1065px;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.8) 40%, rgba(255,255,255,0) 70%);
  filter: blur(52px);
  z-index: 7;
}

/* MV Illustration layers */
.mv-layer {
  position: absolute;
  pointer-events: none;
  max-width: none;
  display: block;
}

/* Road - bottom center-right, horizontally flipped */
.mv-layer-road {
  width: 784px;
  height: 441.234px;
  /* Figma: left calc(50% + 325px) with -translate-x-1/2 → 720+325-392 = 653px */
  left: 653px;
  top: 606px;
  transform: scaleX(-1);
  z-index: 2;
}

/* Leaves - top right */
.mv-layer-leaves-right {
  width: 383px;
  height: 272.253px;
  right: -4px;
  top: 42px;
  z-index: 3;
}

/* Leaves - top left (same image, horizontally flipped) */
.mv-layer-leaves-left {
  width: 332px;
  height: 236px;
  left: -11px;
  top: 51px;
  transform: scaleX(-1);
  z-index: 3;
}

/* Balloons */
.mv-layer-balloons {
  width: 251px;
  height: 251px;
  left: 424px;
  top: 99.17px;
  z-index: 5;
}

/* Main building */
.mv-layer-building {
  width: 729.926px;
  height: 547.444px;
  left: 612.43px;
  top: 124px;
  z-index: 6;
}

/* Large crowd scene */
.mv-layer-crowd {
  width: 857.542px;
  height: 643.156px;
  left: 572.79px;
  top: 262.25px;
  z-index: 7;
}

/* Flag bunting (top right) */
.mv-layer-right {
  width: 438px;
  height: 328.5px;
  right: -63px;
  top: 41px;
  z-index: 11;
}

/* Food truck area */
.mv-layer-truck {
  width: 485.328px;
  height: 363.996px;
  left: 456.77px;
  top: 457.54px;
  z-index: 12;
}

/* People group (3 people talking) */
.mv-layer-group {
  width: 345.144px;
  height: 431.276px;
  left: 373.63px;
  top: 507.82px;
  z-index: 13;
}

/* Family (4 people) */
.mv-layer-family {
  width: 295.837px;
  height: 369.665px;
  left: 776.78px;
  top: 512.65px;
  z-index: 14;
}

/* Tent / booth area */
.mv-layer-tent {
  width: 403.151px;
  height: 503.759px;
  left: 1065.85px;
  top: 332.83px;
  z-index: 10;
}

/* MV Content */
.mv-content {
  position: absolute;
  left: 46px;
  top: 161.52px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 8.128px;
  width: 615.924px;
}

.mv-edition {
  color: #1365c1;
  font-weight: 700;
  line-height: 0;
  height: 72.708px;
  width: 132.196px;
}

.mv-edition-kanji {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 33.049px;
  line-height: 1.4;
}

.mv-edition-num {
  font-family: 'Teachers', sans-serif;
  font-weight: 700;
  font-size: 57.285px;
  line-height: 1.4;
}

.mv-title {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 70.505px;
  line-height: 1.2;
  color: #271a49;
  white-space: nowrap;
}

.mv-title-line1,
.mv-title-line2 {
  display: block;
}

.mv-title-line2 {
  letter-spacing: -5.6404px;
}

.mv-subtitle {
  font-family: 'Teachers', sans-serif;
  font-weight: 700;
  font-size: 41.862px;
  line-height: 1.4;
  color: #1365c1;
}

.mv-catchcopy {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 26.439px;
  line-height: 1.4;
  color: #271a49;
  width: 740px;
}

/* MV Info (Date / Time / Place) */
.mv-info {
  position: absolute;
  left: 46px;
  top: 586.12px;
  z-index: 20;
}

.mv-date {
  font-family: 'Teachers', sans-serif;
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  white-space: nowrap;
}

.mv-date-year {
  font-size: 31.056px;
}

.mv-date-day {
  font-size: 75.761px;
}

.mv-date-dow {
  font-size: 31.056px;
}

.mv-time {
  font-family: 'Teachers', sans-serif;
  font-weight: 600;
  font-size: 50.507px;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  margin-bottom: 6px;
}

.mv-place {
  margin-top: 0;
  position: relative;
  padding-left: 2.1px;
}

.mv-place-text {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 22.429px;
  color: #fff;
  line-height: 1.4;
  white-space: nowrap;
  border-top: 1.052px solid #fff;
  border-bottom: 1.052px solid #fff;
  padding: 9px 0;
  display: inline-block;
}

/* 画面下部に追従するCTAバー（SPのみ表示） */
.mv-cta-sp {
  display: none;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  border: 1px solid #fff;
  font-family: 'Noto Sans JP', sans-serif;
  z-index: 900;
}

.mv-cta-sp-btn {
  flex: 1 0 0;
  min-width: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 8px;
  /* iPhoneのホームインジケーター分の余白 */
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.48px;
  line-height: 1.2;
  white-space: nowrap;
}

.mv-cta-sp-btn .arrow {
  font-size: 14px;
  letter-spacing: 0.42px;
}

.mv-cta-sp-plan {
  background: #fff;
  color: #1365c1;
}

.mv-cta-sp-apply {
  background: #1365c1;
  color: #fff;
}

/* 追従バー内の無効ボタンは半透明だと下のコンテンツが透けるため、薄い色で表現する */
.mv-cta-sp-apply.is-closed {
  opacity: 1;
  background: #86abd6;
  color: rgba(255, 255, 255, 0.9);
}

/* ========== THEME SECTION ========== */
.theme-section {
  position: relative;
  z-index: 2;
  padding: 80px 160px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  background: #fff;
}

.theme-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 1148px;
  height: 1148px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 40%, rgba(255, 255, 255, 0) 60%);
  filter: blur(52px);
  z-index: 1;
  pointer-events: none;
}

.theme-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.theme-deco img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.theme-deco-left-top {
  left: -205px;
  top: -100px;
  width: 523px;
  height: 392px;
  transform: rotate(-30deg);
  animation: floatSlow 9s ease-in-out infinite;
}

.theme-deco-right-top {
  right: -210px;
  top: -100px;
  width: 523px;
  height: 392px;
  transform: scaleX(-1) rotate(-150deg);
  animation: floatSlow 9s ease-in-out infinite 1s;
}

.theme-deco-left {
  /* 中央基準で配置し、画面幅が狭いほど外側へ逃がしてテキストとの重なりを防ぐ (1440pxで65px) */
  left: calc(50% - 655px);
  top: 241px;
  width: 273px;
  height: 341px;
  z-index: 4;
  animation: floatSlow 7s ease-in-out infinite;
}

.theme-deco-right {
  /* 同上 (1440pxで80px) */
  right: calc(50% - 640px);
  top: 128px;
  width: 269px;
  height: 336px;
  z-index: 4;
  animation: floatSlow 8s ease-in-out infinite 1s;
}

.theme-deco-confetti-left {
  left: -200px;
  top: -50px;
  width: 500px;
  height: 340px;
  opacity: 0.6;
}

.theme-deco-confetti-right {
  right: -200px;
  top: -50px;
  width: 500px;
  height: 340px;
  opacity: 0.6;
  transform: scaleY(-1);
}

.theme-card {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 15px;
  padding: 60px 40px;
}

.theme-heading {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 52px;
  line-height: 1.2;
  color: #1a214d;
  text-align: center;
}

.theme-description {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: #404759;
  text-align: center;
  line-height: 2.1;
}

.theme-description p {
  margin: 0;
}

/* 先着500名様 記念グッズチケット */
.theme-ticket {
  position: relative;
  width: 482px;
  max-width: 92%;
  margin: 4px 0 10px;
  transform: rotate(-4deg);
}

.theme-ticket img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 20px rgba(19, 101, 193, 0.12));
}

.theme-cta {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.theme-note {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #97a2bd;
  text-align: center;
  line-height: 2.1;
}

/* ========== SECTION HEADERS ========== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 26px 0;
}

.section-title-ja {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 46px;
  color: #271a49;
}

.section-title-en {
  font-family: 'Teachers', sans-serif;
  font-weight: 700;
  font-size: 116px;
  color: rgba(19, 101, 193, 0.06);
  line-height: 1;
}

/* ========== NEWS SECTION ========== */
.news-section {
  position: relative;
  z-index: 2;
  padding: 70px 160px;
  background: #fff;
}

.news-content {
  display: flex;
  gap: 40px;
  align-items: flex-end;
}

.news-list {
  flex: 1;
  background: #fff;
  border-radius: 20px;
  padding: 0 20px;
  overflow: hidden;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 32px;
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.news-item--last {
  border-bottom: none;
}

.news-item:hover {
  background: #f8fafc;
}

.news-date {
  font-family: 'Teachers', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #1365c1;
  width: 120px;
  flex-shrink: 0;
}

.news-text {
  flex: 1;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #000;
  line-height: 1.6;
}

.news-arrow {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border: 2px solid #1365c1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.news-item:hover .news-arrow {
  background: #1365c1;
  transform: translateX(3px);
}

.news-item:hover .news-arrow svg {
  stroke: #fff;
}

/* ========== OVERVIEW SECTION ========== */
.overview-section {
  position: relative;
  z-index: 2;
  padding: 70px 160px;
  min-height: 807px;
  background: url('assets/bg-hero.jpg') center / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  overflow: hidden;
}

.overview-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 585px;
  background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0));
  opacity: 0.7;
  z-index: 0;
}

.overview-bg-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 107px;
  background: #f4f1e7;
  z-index: 0;
}

.overview-deco-left {
  position: absolute;
  /* 中央基準で配置し、超ワイド画面でもカードとの位置関係を保つ (1440pxで-190px相当) */
  left: calc(50% - 910px);
  bottom: 42px;
  width: 580px;
  /* 校舎基部より下に残る水彩の空の帯(下約30px)をボックスで切り落とす */
  height: 405px;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.overview-deco-left img {
  width: 100%;
  /* ボックスより30px高くして下端をクリップする */
  height: 435px;
  object-fit: cover;
  /* 画像内の水彩の空の矩形エッジを背景に馴染ませる */
  -webkit-mask-image: radial-gradient(130% 130% at 30% 75%, #000 55%, transparent 82%);
  mask-image: radial-gradient(130% 130% at 30% 75%, #000 55%, transparent 82%);
}

.overview-deco-right {
  position: absolute;
  /* 同上 (1440pxで-20px相当) */
  right: calc(50% - 740px);
  /* 画像の描画が膝下で切れているため、切れ目がセクション下端と一致する位置まで下げる
     (透明余白 約23% ≒ 172px を差し引いた描画下端がセクション外に出る値) */
  bottom: -185px;
  width: 1000px;
  height: 750px;
  z-index: 0;
  pointer-events: none;
}

.overview-deco-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overview-header {
  position: relative;
  z-index: 1;
  text-align: center;
}

.section-title-en-overlay {
  font-family: 'Teachers', sans-serif;
  font-weight: 700;
  font-size: 116px;
  color: rgba(19, 101, 193, 0.1);
  line-height: 1;
  display: block;
}

.section-title-ja-overlay {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 46px;
  color: #271a49;
  margin-top: -40px;
  position: relative;
}

.overview-table {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid #d9e6f7;
  border-radius: 20px;
  padding: 20px;
  width: 700px;
  overflow: hidden;
}

.overview-row {
  display: flex;
  gap: 24px;
  padding: 24px 32px;
  align-items: flex-start;
}

.overview-row--border {
  border-bottom: 1px solid #e2e8f0;
}

.overview-label {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: #1365c1;
  width: 160px;
  flex-shrink: 0;
}

.overview-value {
  flex: 1;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: #271a49;
  line-height: 1.6;
}

.overview-value p {
  margin: 0;
}

.overview-cta {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: center;
  padding: 32px 32px 16px;
}

/* ========== PROGRAM SECTION ========== */
.program-section {
  position: relative;
  z-index: 2;
  padding: 70px 160px 60px;
  background: #fff;
}

.program-note {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: #404759;
  line-height: 1.45;
}

.program-note p {
  margin: 0;
}

/* ========== COUNTDOWN / JOIN SECTION ========== */
.alumni-section {
  position: relative;
  z-index: 2;
  padding: 80px 160px;
  overflow: hidden;
  background: #f8fafc;
}

.alumni-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.alumni-deco img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.alumni-deco-bunting {
  right: -169px;
  top: -180px;
  width: 649px;
  height: 601px;
  transform: scaleX(-1) rotate(-150deg);
}

.alumni-deco-confetti {
  right: -525px;
  top: 184px;
  width: 1005px;
  height: 670px;
  z-index: 2;
}

.alumni-card {
  position: relative;
  z-index: 1;
  background: #1365c1;
  border: 1px solid #fff;
  border-radius: 30px;
  padding: 60px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  overflow: hidden;
}

.alumni-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.alumni-main-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

/* カウントダウン */
.countdown {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 6px 16px;
}

.countdown-label {
  background: #fff;
  color: #1365c1;
  border-radius: 5px;
  padding: 4px 12px;
  font-family: 'Teachers', 'Zen Kaku Gothic New', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.5;
  white-space: nowrap;
}

.countdown-num {
  font-family: 'Teachers', 'Zen Kaku Gothic New', sans-serif;
  font-weight: 600;
  font-size: 30px;
  color: #fff;
  opacity: 0.95;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
  min-width: 1.25em;
  text-align: center;
}

.countdown-unit {
  font-family: 'Teachers', 'Zen Kaku Gothic New', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #fff;
  opacity: 0.95;
  line-height: 1.7;
}

.alumni-heading {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 52px;
  color: #fff;
  text-align: center;
  line-height: 1.4;
}

.alumni-date {
  font-family: 'Teachers', 'Zen Kaku Gothic New', sans-serif;
  font-weight: 600;
  font-size: 30px;
  color: #fff;
  opacity: 0.95;
  line-height: 1.7;
  text-align: center;
}

.alumni-main-cta .apply-closed-note {
  margin-top: 10px;
}

.alumni-main-cta .btn-yellow {
  margin-top: 2px;
}

/* 同窓会を開催しよう サブカード */
.alumni-sub-card {
  position: relative;
  z-index: 1;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 26px 24px;
}

.alumni-beer {
  width: 134px;
  height: 134px;
  flex-shrink: 0;
}

.alumni-beer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.alumni-sub-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 448px;
}

.alumni-sub-heading {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 52px;
  color: #fff;
  opacity: 0.95;
  line-height: 1.25;
  white-space: nowrap;
  /* 「同」1文字分だけ左へ寄せる */
  margin-left: -1em;
}

.alumni-sub-excl {
  /* 「！」を「同」と同じサイズに */
  font-size: 1em;
}

.alumni-sub-text {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  opacity: 0.95;
  line-height: 1.7;
}

.alumni-sub-note {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

/* 人物イラスト（カード左下に重ねる） */
.alumni-people {
  position: absolute;
  left: 66px;
  bottom: 40px;
  width: 289px;
  z-index: 2;
  pointer-events: none;
}

.alumni-people img {
  width: 100%;
  height: auto;
}

/* ========== ACCESS SECTION ========== */
.access-section {
  position: relative;
  z-index: 2;
  padding: 70px 160px;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 100%), #fff;
}

.access-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  gap: 24px;
}

.access-map {
  flex: 1;
  min-width: 0;
}

.access-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.access-info {
  flex: 1;
  min-width: 0;
}

.access-info-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.access-name h3 {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #271a49;
  margin-bottom: 8px;
}

.access-divider {
  height: 1px;
  background: #e2e8f0;
}

.access-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #271a49;
  line-height: 1.6;
}

.access-details p {
  margin: 0;
}

.access-note {
  font-size: 13px;
  color: #767f93;
}

.access-embed {
  border-radius: 15px;
  overflow: hidden;
  height: 300px;
}

.access-embed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.access-link {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #271a49;
  text-decoration: underline;
  transition: color 0.3s;
}

.access-link:hover {
  color: #1365c1;
}

/* ========== FOOTER ========== */
.footer {
  position: relative;
  z-index: 2;
  background: #1e4580;
  padding: 60px 120px 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo img {
  width: 293px;
  height: auto;
}

.footer-info {
  text-align: right;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #fff;
  line-height: 1.6;
  letter-spacing: 0.75px;
}

.footer-info p {
  margin: 0;
}

.footer-info a {
  color: #fff;
  text-decoration: underline;
  transition: opacity 0.3s;
}

.footer-info a:hover {
  opacity: 0.7;
}

.footer-divider {
  height: 1px;
  background: #fff;
  opacity: 0.2;
}

.footer-copyright {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #fff;
  opacity: 0.6;
}

/* ========== NEWS ARTICLE PAGE (WordPress化までの仮テンプレート) ========== */
.article-page {
  background: #fff;
  min-height: 100vh;
}

.article-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 150px 24px 80px;
}

.article-breadcrumb {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 13px;
  color: #767f93;
  margin-bottom: 32px;
}

.article-breadcrumb a {
  color: #1365c1;
}

.article-breadcrumb a:hover {
  text-decoration: underline;
}

.article-header {
  padding-bottom: 24px;
  border-bottom: 2px solid #1365c1;
  margin-bottom: 40px;
}

.article-date {
  font-family: 'Teachers', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #1365c1;
  display: block;
  margin-bottom: 12px;
}

.article-title {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.5;
  color: #271a49;
}

.article-body {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 2;
  color: #404759;
}

.article-body p {
  margin: 0 0 1.5em;
}

.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: #271a49;
  border-left: 4px solid #1365c1;
  padding-left: 14px;
  margin: 2.5em 0 1em;
  line-height: 1.5;
}

.article-body img {
  border-radius: 12px;
  margin: 1.5em 0;
}

.article-body ul {
  padding-left: 1.5em;
  margin: 0 0 1.5em;
}

.article-back {
  display: flex;
  justify-content: center;
  margin-top: 64px;
}

/* ========== RESPONSIVE ========== */
section[id] {
  scroll-margin-top: 90px;
}

.header-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.header-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1365c1;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-menu-btn.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header-menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.header-menu-btn.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---- Tablet & below ---- */
@media (max-width: 1280px) {
  .theme-section,
  .news-section,
  .overview-section,
  .program-section,
  .access-section {
    padding-left: 60px;
    padding-right: 60px;
  }

  .alumni-section {
    padding: 80px 60px;
  }

  .alumni-card {
    padding: 60px 60px;
  }

  .alumni-people {
    left: 12px;
    width: 220px;
    bottom: 20px;
  }

  .section-title-en {
    font-size: 90px;
  }
}

@media (max-width: 1024px) {
  .header-nav {
    gap: 18px;
  }

  .header-nav > a {
    font-size: 14px;
  }

  .btn-primary-header,
  .btn-outline-header {
    padding: 10px 16px;
    font-size: 14px;
    height: 44px;
  }

  .alumni-heading {
    font-size: 42px;
  }

  .alumni-sub-heading {
    font-size: 40px;
  }

  .alumni-people {
    display: none;
  }
}

/* ---- Mobile ---- （820→900px: 821〜874pxでPCナビがロゴのアイソレーション領域を侵食するため、ハンバーガー切替を早める。JSのMV_MOBILE_BREAKPOINTと必ず一致させること） */
@media (max-width: 900px) {
  section[id] {
    scroll-margin-top: 74px;
  }

  /* Header: hamburger */
  .header {
    height: 64px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .header-logo img {
    width: 120px;
    height: auto;
  }

  .header-menu-btn {
    display: flex;
  }

  .header-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
  }

  .header-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .header-nav > a {
    font-size: 15px;
    padding: 14px 4px;
    border-bottom: 1px solid #ebeef5;
  }

  .header-nav > a::after {
    display: none;
  }

  .header-buttons {
    flex-direction: column;
    gap: 10px;
    padding-top: 18px;
  }

  .header-buttons .btn {
    width: 100%;
    height: 48px;
  }

  /* MV: 393px基準のSPステージを丸ごとスケール (Figma SPデザイン準拠)
     CTAバーが追従化して下部の余白が不要になったため高さは733→690に詰めている */
  .mv {
    height: calc(690px * var(--mv-scale, 1));
    background: url('assets/bg-hero.jpg') center top / cover no-repeat;
  }

  .mv-stage {
    width: 393px;
    height: 690px;
  }

  /* SPで使わないレイヤー */
  .mv-glow-2,
  .mv-layer-leaves-left {
    display: none;
  }

  .mv-glow-1 {
    left: -21px;
    top: -26px;
    width: 435px;
    height: 435px;
    z-index: 2;
  }

  .mv-blue-circle {
    left: -274px;
    top: 569px;
    width: 952px;
    height: 952px;
    z-index: 13;
  }

  /* レイヤー配置 (Figma 393px基準の実寸) */
  .mv-layer-right {
    width: 209px;
    height: 156px;
    left: auto;
    right: -49px;
    top: 266px;
    z-index: 1;
  }

  .mv-layer-road {
    width: 335px;
    height: 189px;
    left: 68px;
    top: 482px;
    z-index: 3;
  }

  .mv-layer-balloons {
    width: 107px;
    height: 107px;
    left: -10px;
    top: 305px;
    z-index: 4;
  }

  .mv-layer-building {
    width: 311px;
    height: 233px;
    left: 43px;
    top: 291px;
    z-index: 5;
  }

  .mv-layer-crowd {
    width: 366px;
    height: 274px;
    left: 34px;
    top: 336px;
    z-index: 6;
  }

  .mv-layer-truck {
    width: 208px;
    height: 155px;
    left: -16px;
    top: 419px;
    z-index: 7;
  }

  .mv-layer-family {
    width: 119px;
    height: 149px;
    left: 126px;
    top: 440px;
    z-index: 8;
  }

  .mv-layer-group {
    width: 147px;
    height: 184px;
    left: -12px;
    top: 450px;
    z-index: 9;
  }

  .mv-layer-tent {
    width: 170px;
    height: 212px;
    left: 236px;
    top: 409px;
    z-index: 10;
  }

  .mv-layer-leaves-right {
    width: 245px;
    height: auto;
    right: 0;
    top: 46px;
    z-index: 11;
  }

  /* コピー */
  .mv-content {
    left: 20.5px;
    top: 79px;
    width: 352px;
    gap: 4px;
    z-index: 12;
  }

  .mv-edition {
    height: auto;
    width: auto;
  }

  .mv-edition-kanji {
    font-size: 20.444px;
  }

  .mv-edition-num {
    font-size: 35.436px;
  }

  .mv-title {
    font-size: 42px;
  }

  .mv-title-line2 {
    letter-spacing: -3.36px;
  }

  .mv-subtitle {
    font-size: 25px;
  }

  .mv-catchcopy {
    font-size: 16px;
    width: auto;
  }

  /* 日時・場所 (青円の上) */
  .mv-info {
    left: 39px;
    top: 587px;
    width: 316px;
    height: 81px;
    z-index: 14;
  }

  .mv-date {
    position: absolute;
    left: 0;
    top: 0;
    line-height: 1.4;
  }

  .mv-date-year,
  .mv-date-dow {
    font-size: 17.279px;
  }

  .mv-date-day {
    font-size: 42.151px;
  }

  .mv-time {
    position: absolute;
    left: 162px;
    top: 15px;
    font-size: 28.101px;
    line-height: 1.4;
    margin-bottom: 0;
  }

  .mv-place {
    position: absolute;
    left: 0;
    top: 56px;
    width: 315px;
    padding-left: 0;
  }

  .mv-place-text {
    display: block;
    text-align: center;
    font-size: 12.479px;
    border-top: 0.585px solid #fff;
    border-bottom: 0.585px solid #fff;
    padding: 3px 0;
  }

  /* 画面下部追従CTAバー */
  .mv-cta-sp {
    display: flex;
  }

  /* 追従バーでフッター最下部が隠れないよう余白を確保 (記事ページはバーが無いので除外) */
  .footer {
    padding-bottom: calc(28px + 52px + env(safe-area-inset-bottom));
  }

  .article-page .footer {
    padding-bottom: 28px;
  }

  /* Theme */
  .theme-section {
    padding: 56px 20px 32px;
  }

  .theme-card {
    padding: 40px 20px;
    gap: 22px;
  }

  .theme-heading {
    /* 360px幅で11文字+「！」がカード内幅に収まるサイズ。
       それでも折り返す極小幅では balance で1文字だけの孤立行を防ぐ */
    font-size: clamp(18px, 6.3vw, 34px);
    text-wrap: balance;
  }

  .theme-description {
    font-size: 14px;
    line-height: 2;
  }

  .theme-ticket {
    width: min(100%, 420px);
  }

  .theme-cta {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
  }

  .cta-col {
    width: 100%;
  }

  .theme-cta .btn,
  .overview-cta .btn {
    width: min(100%, 300px);
  }

  .theme-note {
    font-size: 11px;
    line-height: 1.8;
  }

  .theme-deco-left,
  .theme-deco-right {
    display: none;
  }

  .theme-deco-left-top,
  .theme-deco-right-top {
    width: 300px;
    height: 225px;
  }

  .theme-deco-left-top {
    left: -140px;
    top: -60px;
  }

  .theme-deco-right-top {
    right: -140px;
    top: -60px;
  }

  /* Section headers */
  .section-header {
    padding: 12px 0;
    position: relative;
  }

  .section-title-ja {
    font-size: 28px;
    white-space: nowrap;
    position: relative;
    z-index: 1;
  }

  .section-title-en {
    font-size: 52px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
  }

  /* News */
  .news-section {
    padding: 48px 20px;
  }

  .news-content {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .news-list {
    padding: 0 4px;
  }

  .news-item {
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 8px;
  }

  .news-date {
    width: auto;
    font-size: 14px;
    order: 1;
  }

  .news-arrow {
    order: 2;
    margin-left: auto;
    width: 34px;
    height: 34px;
  }

  .news-arrow svg {
    width: 16px;
    height: 16px;
  }

  .news-text {
    order: 3;
    width: 100%;
    flex: none;
    font-size: 15px;
  }

  .news-content > .btn-outline-small {
    align-self: center;
  }

  /* Overview */
  .overview-section {
    padding: 48px 20px;
    min-height: 0;
  }

  .section-title-en-overlay {
    font-size: 64px;
  }

  .section-title-ja-overlay {
    font-size: 28px;
    margin-top: -24px;
  }

  .overview-table {
    width: 100%;
    padding: 8px;
  }

  .overview-row {
    flex-direction: column;
    gap: 4px;
    padding: 16px;
  }

  .overview-label {
    width: auto;
    font-size: 16px;
  }

  .overview-value {
    font-size: 17px;
  }

  .overview-cta {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 8px 16px;
  }

  .overview-deco-right {
    width: 600px;
    height: 450px;
  }

  /* Program */
  .program-section {
    padding: 48px 20px 40px;
  }

  .program-note {
    font-size: 14px;
    line-height: 1.7;
  }

  /* Countdown / Join */
  .alumni-section {
    padding: 48px 20px;
  }

  .alumni-card {
    padding: 36px 20px;
    border-radius: 20px;
    gap: 28px;
  }

  .countdown {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding: 8px 10px;
  }

  .countdown-label {
    font-size: 12px;
    padding: 3px 8px;
    margin-right: 4px;
  }

  .countdown-num {
    font-size: 19px;
  }

  .countdown-unit {
    font-size: 12px;
  }

  .alumni-heading {
    font-size: clamp(22px, 6.4vw, 30px);
  }

  .alumni-date {
    font-size: clamp(16px, 4.8vw, 22px);
  }

  .btn-yellow {
    width: min(100%, 300px);
    height: 56px;
    font-size: 17px;
  }

  .alumni-sub-card {
    flex-direction: column;
    gap: 16px;
    padding: 28px 20px;
  }

  .alumni-beer {
    width: 104px;
    height: 104px;
  }

  .alumni-sub-cta {
    align-items: center;
    text-align: center;
    max-width: none;
  }

  .alumni-sub-heading {
    font-size: clamp(24px, 7vw, 34px);
    white-space: normal;
    /* SPは中央寄せなので左ずらしは解除 */
    margin-left: 0;
  }

  .alumni-sub-text {
    font-size: 14px;
  }

  .alumni-sub-note {
    font-size: 11px;
  }

  .alumni-deco-bunting {
    right: -220px;
    top: -220px;
  }

  /* SPでは紙吹雪がカード内のテキスト・ボタンに被るため背面に回す */
  .alumni-deco-confetti {
    z-index: 0;
  }

  /* Access */
  .access-section {
    padding: 48px 20px;
  }

  .access-card {
    flex-direction: column;
    padding: 16px;
    gap: 20px;
  }

  .access-embed {
    height: 220px;
  }

  /* Footer */
  .footer {
    padding: 40px 24px 28px;
  }

  .footer-inner {
    gap: 28px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-logo img {
    width: 200px;
  }

  .footer-info {
    text-align: left;
    font-size: 13px;
  }

  .footer-copyright {
    font-size: 11px;
  }

  /* Article page */
  .article-main {
    padding: 110px 20px 56px;
  }

  .article-title {
    font-size: 24px;
  }

  .article-body {
    font-size: 15px;
  }
}
