/*
Theme Name: 高野山高校 寺院後継者向けLP
Theme URI: https://www.koyasan-h.ed.jp/
Author: Koyasan High School
Author URI: https://www.koyasan-h.ed.jp/
Description: 寺院後継者向けランディングページ。仏教の格式と現代の学びを融合した高野山高校専用テーマ。
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Private
Text Domain: koyasan-lp
Tags: landing-page, japanese, buddhist, education
*/

/* ============================================================
   CSS Variables / Design Tokens
   ============================================================ */
:root {
  /* ベースカラー（ベージュ） */
  --color-base-1: #FBF9F4;
  --color-base-2: #F4EFE6;
  --color-base-3: #FDFBF7;

  /* メインカラー（紺） */
  --color-main-1: #1E293B;
  --color-main-2: #1A2E40;
  --color-main-3: #080c0f;

  /* アクセントカラー（金） */
  --color-accent-1: #D4AF37;
  --color-accent-2: #C5A059;
  --color-accent-3: #E5C158;

  /* テキスト */
  --color-text-primary: #1E293B;
  --color-text-secondary: #4A5568;
  --color-text-light: #718096;
  --color-white: #FFFFFF;

  /* フォント - 明朝体（アピール箇所） */
  --font-mincho: "Noto Serif JP", "BIZ UDP明朝", "ヒラギノ明朝 ProN W3", "MS P明朝", serif;
  /* フォント - ゴシック体（長文） */
  --font-gothic: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Meiryo", sans-serif;

  /* 余白 - PC版 */
  --spacing-outer-normal: 96px;
  --spacing-outer-dense: 128px;
  --spacing-inner: 32px;
  --spacing-button-icon: 16px;

  /* ブレイクポイント */
  --bp-tablet: 1024px;
  --bp-sp: 768px;

  /* シャドウ */
  --shadow-card: 0 2px 12px rgba(30, 41, 59, 0.08), 0 1px 4px rgba(30, 41, 59, 0.04);
  --shadow-card-hover: 0 8px 32px rgba(30, 41, 59, 0.14), 0 2px 8px rgba(30, 41, 59, 0.08);

  /* ボーダーラジアス */
  --radius-card: 8px;
  --radius-btn: 6px;
}

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

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

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

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

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

ul, ol {
  list-style: none;
}

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 40px;
}

.section {
  padding-block: var(--spacing-outer-normal);
}

.section--dense {
  padding-block: var(--spacing-outer-normal);
}

/* 奇数・偶数で背景色を切り替え */
.section--odd  { background-color: var(--color-base-1); }
.section--even { background-color: var(--color-base-2); }

#dormitory.section--even {
  background-color: var(--color-white);
}

#usp.section.section--dense {
  padding: 0;
  background: transparent;
}

#usp > .container {
  width: auto;
  max-width: none;
  padding-inline: 0;
}

/* ============================================================
   Section Heading
   ============================================================ */
.section-title {
  font-family: var(--font-mincho);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--color-main-1);
  line-height: 1.4;
  margin-bottom: 16px;
}

.section-lead {
  font-family: var(--font-gothic);
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.9;
  max-width: 640px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-lead {
  margin-inline: auto;
}

.section-header .section-lead .usp-highlight {
  font-size: 1.5em;
}

.section-header .section-lead .usp-highlight-black {
  font-size: 1.15em;
}

.section-header .section-lead .school-life-highlight {
  font-size: 1.5em;
}

.section-header .section-lead .school-life-highlight-black {
  font-size: 1.15em;
}

.section-header .section-lead .pc-nowrap {
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .section-header .section-lead .pc-nowrap {
    white-space: normal;
  }
}

/* 金のアクセントライン */
.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-1), var(--color-accent-3));
  margin-top: 16px;
}

.section-header .section-title::after {
  margin-inline: auto;
}

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-main-1);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding-block: 16px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  font-family: var(--font-mincho);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.site-logo span {
  color: var(--color-accent-3);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-family: var(--font-gothic);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--color-accent-3);
}

.header-btn {
  background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-2));
  color: var(--color-main-1) !important;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  font-size: 0.82rem;
  transition: opacity 0.2s, transform 0.2s !important;
  white-space: nowrap;
}

.header-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ヘッダーの折り返し対策（1024px〜1160px） */
@media (min-width: 1025px) and (max-width: 1160px) {
  .site-nav a {
    font-size: calc(0.85rem - 4px);
  }
}

/* ハンバーガー（SP用） */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ============================================================
   ① Hero Section
   ============================================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-color: var(--color-main-1);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 70% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(42, 52, 57, 0.8) 0%, transparent 50%);
  z-index: 1;
}

/* 和柄風背景パターン */
.hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: repeating-linear-gradient(
    45deg,
    var(--color-accent-1) 0px,
    var(--color-accent-1) 1px,
    transparent 1px,
    transparent 20px
  );
  z-index: 1;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.25;
  z-index: 1;
}

.hero__image--mobile {
  display: none;
}

@media (max-width: 500px) {
  .hero__image--desktop {
    display: none;
  }
  .hero__image--mobile {
    display: block;
  }
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero__content {
  transform: translateY(200px);
}

.hero__title {
  font-family: var(--font-mincho);
  font-size: clamp(3rem, 5vw, 6rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.35;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.hero__lead {
  font-family: var(--font-gothic);
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 2;
  margin-bottom: 40px;
  max-width: 480px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-button-icon);
  font-family: var(--font-gothic);
  font-weight: 700;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.06em;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-accent-1) 0%, var(--color-accent-2) 100%);
  color: var(--color-main-1);
  font-size: 1rem;
  padding: 16px 36px;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
  position: relative;
  overflow: hidden;
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}

/* ============================================================
   ② 問題提起 - お悩み訴求セクション
   ============================================================ */
.worry-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(48px, 7vw, 88px) 0;
}

.worry-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}

.worry-title {
  font-family: "Noto Serif JP", "BIZ UDP明朝", serif;
  text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.7;
  color: var(--color-main-1);
  margin-bottom: clamp(48px, 7vw, 88px);
}

/* お悩みグループ（キャラクター＋吹き出し） */
.worry-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(56px, 8vw, 100px);
  margin-bottom: clamp(56px, 8vw, 96px);
}

.worry-group {
  display: grid;
  grid-template-columns: clamp(210px, 19.5vw, 330px) 1fr;
  min-height: clamp(280px, 26vw, 380px);
}

.worry-group--down {
  grid-template-columns: 1fr clamp(210px, 19.5vw, 330px);
}

.worry-group__character {
  grid-row: 1;
  align-self: end;
}

.worry-group--up .worry-group__character {
  grid-column: 1;
  justify-self: start;
}

.worry-group--down .worry-group__character {
  grid-column: 2;
  justify-self: end;
}

.worry-group__character img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.2);
}

.worry-group--down img {
  transform: scale(1.5);
}

/* 吹き出し */
.worry-bubbles {
  grid-row: 1;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 26px);
  padding-top: clamp(8px, 2vw, 28px);
}

.worry-group--up .worry-bubbles {
  grid-column: 2;
  align-items: flex-start;
  padding-left: clamp(8px, 2vw, 24px);
}

.worry-group--down .worry-bubbles {
  grid-column: 1;
  align-items: flex-end;
  padding-right: clamp(8px, 2vw, 24px);
}

.worry-bubble {
  position: relative;
  max-width: 32em;
  background: var(--color-base-3);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 18px;
  padding: clamp(16px, 1.8vw, 22px) clamp(20px, 2.4vw, 28px);
  font-family: var(--font-gothic);
  font-size: clamp(1.4rem, 1.5vw, 1.6rem);
  line-height: 1.85;
  color: var(--color-text-primary);
  box-shadow: var(--shadow-card);
}

/* 吹き出しのしっぽ（キャラクター側を指す） */
.worry-bubble::after {
  content: "";
  position: absolute;
  bottom: 18px;
  width: 18px;
  height: 18px;
  background: var(--color-base-3);
  transform: rotate(45deg);
}

.worry-group--up .worry-bubble::after {
  left: -9px;
  border-left: 1px solid rgba(212, 175, 55, 0.35);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}

.worry-group--down .worry-bubble::after {
  right: -9px;
  border-right: 1px solid rgba(212, 175, 55, 0.35);
  border-top: 1px solid rgba(212, 175, 55, 0.35);
}

/* あえて整然と並べず、吹き出しごとに少しずつずらす */
.worry-bubble--1 {
  margin-left: clamp(8px, 3vw, 40px);
}

.worry-bubble--2 {
  margin-left: clamp(32px, 6vw, 88px);
}

.worry-bubble--3 {
  margin-right: clamp(8px, 3vw, 40px);
}

.worry-bubble--4 {
  margin-right: clamp(32px, 6vw, 88px);
}

.sp-br {
  display: none;
}

/* 極小幅(~450px)のみ改行 */
.xs-br {
  display: none;
}

@media (max-width: 450px) {
  .xs-br {
    display: inline;
  }
}

/* 極小幅(~500px)のみ改行 */
.br-500 {
  display: none;
}

@media (max-width: 500px) {
  .br-500 {
    display: inline;
  }
}

/* 強調文字（金色の文字） */
.usp-highlight {
  color: #D4AF37; /* 金色 */
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 1.05em; /* 親文字に対してバランスの良い一回り大きいサイズに調整 */
  background: none;
}

.usp-highlight-black {
  font-size: 1.4em;
  font-weight: 600;
}

/* 強調文字（年間行事セクション用） */
.school-life-highlight {
  color: #D4AF37; /* 金色 */
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 1.05em;
  background: none;
}

.school-life-highlight-black {
  font-size: 1.4em;
  font-weight: 600;
}

.tablet-br {
  display: none;
}

/* 解決策の提案 */
.worry-solution {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.18) 0%, rgba(214, 224, 239, 0.1) 28%, rgba(16, 28, 46, 0) 65%),
    linear-gradient(135deg, rgba(34, 45, 66, 0.9) 0%, rgba(49, 63, 87, 0.86) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  padding: clamp(28px, 4vw, 48px) clamp(24px, 5vw, 64px);
  box-shadow: 0 22px 54px rgba(14, 20, 33, 0.16);
}

.worry-solution__text {
  font-family: "Noto Serif JP", "BIZ UDP明朝", serif;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  font-weight: 600;
  line-height: 2;
  color: rgba(255, 249, 237, 0.96);
  letter-spacing: 0.03em;
}

/* タブレットの折り返し対策（769px〜800px） */
@media (min-width: 769px) and (max-width: 800px) {
  .worry-solution__text {
    font-size: calc(1.05rem - 2px);
  }
}

.worry-solution__highlight {
  color: #D4AF37;
  font-weight: 700;
  font-size: 1.3em;
}


/* 解決策 */
.usp-solution-section {
  position: relative;
  padding: 56px 0 40px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  isolation: isolate;
}

.usp-solution-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.usp-title {
  text-align: center;
  font-size: clamp(2rem, 3vw, 3.2rem);
  margin-bottom: 18px;
}

.usp-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-1), var(--color-accent-3));
  margin: 16px auto 0;
}

/* 特徴セクション末尾のテキストまとめ */
.usp-summary {
  max-width: 1440px;
  margin: 0px auto 0;
  padding: 16px clamp(24px, 5vw, 40px);
  text-align: center;
  border-radius: 18px;
}

.usp-summary__text {
  font-family: var(--font-gothic);
  font-size: 1.45rem;
  line-height: 1.9;
  color: var(--color-text-primary);
  margin-bottom: 20px;
}

.usp-summary__coursetext {
  text-align: center;
  font-family: var(--font-gothic);
  font-size: 1.45rem;
  line-height: 1.9;
  color: var(--color-text-primary);
  margin-bottom: 40px;
}

.usp-summary__highlight {
  font-size: 1.9rem;
  font-weight: 700;
  color: #b89347;
  letter-spacing: 0.04em;
}

.usp-summary__list {
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.usp-summary__list li {
  position: relative;
  padding-left: 22px;
  font-family: var(--font-gothic);
  font-size: 1.0rem;
  line-height: 1.8;
  /* list-style-image: url('img/finger.webp'); */ /* 画像のパスを指定 */
}

.usp-summary__list li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.usp-block {
  --usp-badge-size: clamp(48px, 6vw, 88px);
  display: grid;
  margin-bottom: 56px;
  position: relative;
}

.usp-solution-container .usp-block:last-child {
  margin-bottom: 0;
}

/* 交互に反転させるクラス */
.usp-block-reverse {
}

.usp-image {
  grid-area: 1 / 1;
  align-self: start;
  justify-self: start;
  margin-top: 36px;
  width: 48%;
  min-width: 0;
  min-height: 0;
  height: auto;
  aspect-ratio: 10 / 7;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 42px rgba(42, 37, 24, 0.12);
}

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

.usp-block-reverse .usp-image {
  justify-self: end;
}

.usp-text {
  grid-area: 1 / 1;
  align-self: start;
  justify-self: end;
  margin-top: 220px;
  margin-right: 135px;
  width: 45%;
  min-width: 0;
  min-height: 230px;
  height: auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(185, 161, 104, 0.6);
  border-radius: 18px;
  padding: 28px 28px 22px;
  box-shadow: 0 14px 40px rgba(69, 54, 25, 0.08);
}

.usp-block-reverse .usp-text {
  justify-self: start;
  margin-left: 135px;
  direction: ltr;
}

.usp-number {
  width: var(--usp-badge-size);
  height: var(--usp-badge-size);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  color: #1e1e1e;
  background: linear-gradient(180deg, #f6c541 0%, #e3a80f 100%);
  box-shadow: 0 12px 28px rgba(126, 89, 8, 0.14);
  opacity: 1;
  font-weight: 500;
  position: absolute;
  top: 180px;
  left: 63%;
  transform: translateX(200%);
  line-height: 1;
  font-family: "Noto Serif JP", "BIZ UDP明朝", serif;
  z-index: 3;
}

.usp-block-reverse .usp-number {
  left: 0%;
  top: 180px;
}

.usp-text h3 {
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  margin: 18px 0 14px;
  position: relative;
  z-index: 1;
  line-height: 1.35;
}

.usp-text p {
  position: relative;
  z-index: 1;
  margin: 0;
  line-height: 1.9;
  font-size: 0.98rem;
}

.usp-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(1180px, 92vw);
  opacity: 0.18;
}

/* ============================================================
   ③ Solution Overview - 解決策の要約
   ============================================================ */
.solution-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  align-items: start;
}

.solution-overview-card {
  text-align: center;
}

.solution-overview-link {
  display: block;
}

.solution-overview-media {
  width: min(100%, 680px);
  margin: 0 auto 22px;
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
}

.solution-overview-media img,
.solution-overview-media .img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.solution-overview-media--diagonal::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.solution-overview-media__pane {
  position: absolute;
  inset: 0;
}

.solution-overview-media__pane--primary {
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.solution-overview-media__pane--secondary {
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.solution-overview-media__pane .img-placeholder {
  height: 100%;
}

.solution-overview-media .img-placeholder {
  color: rgba(255, 255, 255, 0.26);
}

.solution-overview-title {
  font-family: var(--font-mincho);
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  font-weight: 700;
  color: var(--color-main-1);
  margin-bottom: 14px;
}

.solution-overview-text {
  font-family: var(--font-gothic);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-primary);
  max-width: 30ch;
  margin: 0 auto;
}

/* ============================================================
   ③ Dormitory Section - 寮生活の価値
   ============================================================ */
.dorm-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.dorm-image-wrap {
  position: relative;
}

.dorm-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.dorm-collage {
  min-height: calc(42.9vw + 121px);
  isolation: isolate;
}

.dorm-collage::before,
.dorm-collage::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

.dorm-collage::before {
  width: 78%;
  height: 54%;
  top: 18px;
  left: 6%;
  background: radial-gradient(circle at 30% 30%, rgba(240, 231, 206, 0.7), rgba(240, 231, 206, 0.12) 68%, rgba(240, 231, 206, 0) 100%);
}

.dorm-collage::after {
  width: 68%;
  height: 40%;
  left: 14%;
  bottom: 10px;
  background: linear-gradient(135deg, rgba(229, 214, 173, 0.48), rgba(229, 214, 173, 0.06));
  filter: blur(2px);
}

.dorm-collage__item {
  position: absolute;
  overflow: hidden;
  background: #f3eee2;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.7),
                0 5px 15px -3px rgba(0, 0, 0, 0.5),
                /* 内側の影（内側の輪郭を強調して境界を出す） */
                inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  z-index: 1;
}

.dorm-collage__item--primary {
  top: 10px;
  left: 8%;
  width: 70%;
  aspect-ratio: 1.54;
  border-radius: 18px;
}

.dorm-collage__item--secondary {
  top: 118px;
  right: 0;
  width: 36%;
  aspect-ratio: 0.92;
  border-radius: 16px;
  z-index: 2;
}

.dorm-collage__item--tertiary {
  left: 0;
  bottom: 98px;
  width: 50%;
  aspect-ratio: 1.24;
  border-radius: 16px;
}

.dorm-collage__item--quaternary {
  left: 42%;
  bottom: 30px;
  width: 45%;
  aspect-ratio: 1.06;
  border-radius: 16px 16px 42px 16px;
  z-index: 2;
}

/* 画像プレースホルダー */
.img-placeholder {
  width: 100%;
  height: 480px;
  background: linear-gradient(135deg, var(--color-main-2) 0%, var(--color-main-3) 100%);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-gothic);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.dorm-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dorm-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.dorm-feature__number {
  flex-shrink: 0;
  min-width: 2.2rem;
  font-family: "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: #C5A059;
  line-height: 1;
  margin-right: 15px;
  display: inline-block;
  text-align: center;
  letter-spacing: 0.02em;
}

.dorm-feature__title {
  font-family: var(--font-mincho);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-main-1);
  margin-bottom: 4px;
}

.dorm-feature__text {
  font-family: var(--font-gothic);
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* ============================================================
   ④ Growth Points - 寺院後継者としての成長ポイント
   ============================================================ */
.growth-focus-section {
  background-color: #fbfaf5;
  padding: 96px 24px;
  font-family: var(--font-mincho);
}

.growth-container {
  max-width: 1080px;
  margin: 0 auto;
}

.growth-header {
  text-align: center;
  margin-bottom: 72px;
}

.growth-header__title {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  color: #0c1a30;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.growth-header__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-1), var(--color-accent-3));
  margin: 16px auto 0;
}

.growth-header__lead {
  font-family: var(--font-gothic);
  font-size: 1rem;
  line-height: 1.95;
  color: #4a5568;
}

.growth-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.growth-timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 20px;
  width: 1px;
  background-color: #e1d7be;
  z-index: 1;
}

.growth-card {
  display: flex;
  position: relative;
  z-index: 2;
  align-items: stretch;
}

.growth-card__indicator {
  flex: 0 0 132px;
  position: relative;
  z-index: 1;
  padding-top: 28px;
}

.growth-card__node {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background-color: #0c1a30;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transform: translateX(-7%);
}

.growth-card__node span {
  color: #e1d7be;
  font-family: var(--font-gothic);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.growth-card__body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  align-items: stretch;
  margin-left: -44px;
  position: relative;
  z-index: 2;
}

.growth-card__media {
  background-color: #f6f1e6;
  border: 1px solid #e1d7be;
  border-right: none;
  min-height: 100%;
  overflow: hidden;
}

.growth-card__media img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
}

.growth-card__content {
  flex: 1;
  background-color: #faf9f5;
  padding: 32px 36px;
  border: 1px solid #e1d7be;
  box-shadow: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.growth-card__title {
  font-size: 1.45rem;
  color: #0c1a30;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: 0.05em;
}

.growth-card__text {
  font-family: var(--font-gothic);
  font-size: 1rem;
  line-height: 1.9;
  color: #4a5568;
  margin: 0;
}

@media (min-width: 768px) {
  .growth-card__content {
    padding: 36px 40px;
  }
}

@media (max-width: 767px) {
  .growth-focus-section {
    padding: 64px 18px;
  }

  .growth-header {
    margin-bottom: 40px;
  }

  .growth-timeline::before {
    display: block;
    top: 18px;
    bottom: 18px;
    left: 16px;
  }

  .growth-card {
    display: block;
    position: relative;
    padding-left: 20px;
  }

  .growth-card__indicator {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    padding-top: 18px;
  }

  .growth-card__node {
    width: 64px;
    height: 64px;
    transform: translateX(0);
  }

  .growth-card__node span {
    font-size: 24px;
  }

  .growth-card__body {
    grid-template-columns: 1fr;
    margin-left: 28px;
  }

  .growth-card__media {
    border-right: 1px solid #e1d7be;
    border-bottom: none;
    position: relative;
    z-index: 2;
  }

  .growth-card__media img {
    min-height: 240px;
  }

  .growth-card__content {
    padding: 24px 20px;
    position: relative;
    z-index: 1;
  }
}

/* ============================================================
   ⑤ School Life - 学校生活
   ============================================================ */
.events-section {
  margin-top: 24px;
}

.timeline-container {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 40px;
  gap: 14px;
}

.timeline-scroll-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.timeline-scroll-wrap::before,
.timeline-scroll-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 2;
  pointer-events: none;
}

.timeline-scroll-wrap::before {
  left: 0;
  background: linear-gradient(90deg, #fbf9f4 12%, rgba(251, 249, 244, 0));
}

.timeline-scroll-wrap::after {
  right: 0;
  background: linear-gradient(270deg, #fbf9f4 12%, rgba(251, 249, 244, 0));
}

.timeline-hint {
  margin-left: 30px;
  margin-bottom: 10px;
  padding-left: 10px;
  font-family: var(--font-gothic);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8c7440;
}

.timeline-scroll-area {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 20px 10px;
  width: 100%;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}

@media (min-width: 1025px) {
  .timeline-scroll-area {
    justify-content: safe center;
  }
}

.timeline-scroll-area::-webkit-scrollbar {
  display: none;
}

.timeline-scroll-area:active {
  cursor: grabbing;
}

.timeline-nav {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(184, 134, 11, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0c1a30;
  box-shadow: 0 8px 20px rgba(30, 41, 59, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.timeline-nav span {
  font-size: 1.5rem;
  line-height: 1;
}

.timeline-nav:hover {
  transform: translateY(-1px);
  background: #fffaf0;
  border-color: rgba(184, 134, 11, 0.48);
}

.timeline-item,
.month-card {
  appearance: none;
  flex: 0 0 clamp(130px, 14.5vw, 160px);
  width: clamp(130px, 14.5vw, 160px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  cursor: pointer;
  text-align: center;
  transition: transform 0.3s ease;
}

.timeline-item:hover,
.month-card:hover {
  transform: translateY(-2px);
}

.event-date,
.month-card__month {
  display: block;
  font-family: var(--font-gothic);
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.event-dot {
  width: 12px;
  height: 12px;
  background: #cbd5e1;
  border-radius: 50%;
  position: relative;
  margin-bottom: 14px;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.event-dot::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  height: 2px;
  background: #cbd5e1;
  z-index: -1;
}

.timeline-item:last-child .event-dot::after,
.month-card:last-child .event-dot::after {
  display: none;
}

.event-name-badge,
.month-card__name {
  font-family: var(--font-mincho);
  font-size: 0.9rem;
  line-height: 1.45;
  color: #1e293b;
  font-weight: 600;
  white-space: normal;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  min-height: 58px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.timeline-item:hover .event-date,
.timeline-item.active .event-date,
.month-card:hover .month-card__month,
.month-card.active .month-card__month {
  color: #b8860b;
}

/* 強調行事（個別相談会・体験入学・体験入寮など）: PC版は4px大きく */
.month-card--highlight .event-date,
.month-card--highlight .month-card__month {
  font-size: calc(0.82rem + 4px);
  color: #1d244c;
  font-weight: 800;
}

.month-card--highlight .event-name-badge,
.month-card--highlight .month-card__name {
  font-size: calc(0.9rem + 4px);
  color: #1d244c;
  font-weight: 800;
}

.timeline-item:hover .event-dot,
.timeline-item.active .event-dot,
.month-card:hover .event-dot,
.month-card.active .event-dot {
  background: #b8860b;
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.2);
}

.timeline-item:hover .event-name-badge,
.timeline-item.active .event-name-badge,
.month-card:hover .month-card__name,
.month-card.active .month-card__name {
  background: #0c1a30;
  color: #fff;
  border-color: #0c1a30;
}

.event-stage {
  position: relative;
  min-height: 520px;
  max-width: 1100px;
  margin: 0 auto;
}

/* PC幅では画面の横幅に応じて伸縮させつつ、右側固定CTAと被らない範囲・
   元デザインの上限(1100px)に収める。スクロール領域の横幅と揃えるため、
   ナビボタン分(44px×2＋gap14px×2＝116px)を差し引く */
@media (min-width: 1025px) {
  .timeline-container {
    max-width: clamp(700px, 68vw, 1100px);
  }

  .event-stage {
    max-width: clamp(584px, calc(68vw - 116px), 984px);
  }
}

.event-panel {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.event-panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.event-stage__media {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  overflow: hidden;
  border-radius: 18px;
  background: #f5f1e7;
  box-shadow: 0 20px 48px rgba(32, 39, 52, 0.12);
}

.event-stage__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-stage__media.img-placeholder {
  color: rgba(255, 255, 255, 0.28);
}

/* 声のカード */
.voice-card {
  background: var(--color-main-1);
  border-radius: var(--radius-card);
  padding: 36px 40px;
  margin-top: 48px;
  position: relative;
}

.voice-card::before {
  content: "\201C";
  font-family: var(--font-mincho);
  font-size: 6rem;
  color: rgba(212, 175, 55, 0.2);
  position: absolute;
  top: -10px;
  left: 24px;
  line-height: 1;
}

.voice-card__text {
  font-family: var(--font-mincho);
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.9;
  margin-bottom: 16px;
  padding-left: 16px;
}

.voice-card__author {
  font-family: var(--font-gothic);
  font-size: 0.82rem;
  color: var(--color-accent-3);
  font-weight: 600;
  padding-left: 16px;
}

/* ============================================================
   ⑥ Career / 卒業後の進路
   ============================================================ */
.career-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95), rgba(251, 250, 245, 0.9) 60%, rgba(236, 228, 212, 0.58) 100%),
    var(--color-base-1);
  padding: 72px 24px;
}

.career-section::before,
.career-section::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(184, 147, 71, 0.7);
  pointer-events: none;
}

.career-section::after {
  inset: 24px;
  border-color: rgba(184, 147, 71, 0.38);
}

.career-container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
}

.career-section__header {
  margin-bottom: 60px;
}

.career-section .section-title {
  margin-bottom: 18px;
}

.career-section .section-title::after {
  width: 220px;
  height: 1px;
  margin-top: 20px;
  background: linear-gradient(90deg, rgba(184, 147, 71, 0), rgba(184, 147, 71, 0.85) 20%, rgba(184, 147, 71, 0.85) 80%, rgba(184, 147, 71, 0));
}

.career-section__lead {
  max-width: 860px;
  font-family: var(--font-mincho);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 2;
  color: var(--color-main-1);
}

.career-section__lead-emphasis {
  display: inline-block;
  margin: 0 4px;
  font-size: 1.28em;
  font-weight: 700;
  color: #b89347;
  letter-spacing: 0.04em;
}

.career-accordion {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 26px;
}

.career-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(184, 147, 71, 0.45);
  box-shadow: 0 12px 28px rgba(30, 41, 59, 0.06);
  overflow: hidden;
  isolation: isolate;
}

.career-panel::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, transparent 49%, #c7a250 50%);
}

.career-panel[open]::after {
  width: 22px;
  height: 22px;
}

.career-panel__summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 72px 28px 32px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mincho);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: var(--color-main-1);
}

.career-panel__summary::-webkit-details-marker {
  display: none;
}

.career-panel__summary::after {
  content: ">";
  position: absolute;
  top: 50%;
  right: 28px;
  transform: translateY(-50%);
  font-family: var(--font-gothic);
  font-size: 2rem;
  font-weight: 400;
  color: var(--color-main-1);
  transition: transform 0.25s ease;
}

.career-panel[open] .career-panel__summary::after {
  transform: translateY(-50%) rotate(90deg);
}

.career-panel__bullet {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  background: var(--color-main-1);
}

.career-panel__title {
  letter-spacing: 0.06em;
}

.career-panel__content {
  padding: 0 32px 32px;
}

.career-panel__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3列に変更 */
  gap: 24px;
  padding-top: 4px;
}

.career-panel__group {
  background: rgba(251, 249, 244, 0.78);
  border: 1px solid rgba(184, 147, 71, 0.22);
  padding: 22px 22px 20px;
}

.career-panel__group-title {
  margin-bottom: 12px;
  font-family: var(--font-mincho);
  font-size: 1.08rem;
  color: var(--color-main-1);
}

.career-panel__list {
  list-style: none;
}

.career-panel__item {
  position: relative;
  padding-left: 14px;
  font-family: var(--font-gothic);
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.career-panel__item::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b89347;
}

.career-section__note {
  font-family: var(--font-gothic);
  font-size: 0.82rem;
  color: var(--color-main-1);
  opacity: 0.65;
  margin-top: 12px;
  letter-spacing: 0.05em;
}

@media (max-width: 767px) {
  .career-section {
    padding: 56px 18px;
  }

  .career-section::before {
    inset: 10px;
  }

  .career-section::after {
    inset: 18px;
  }

  .career-section .section-title::after {
    width: 160px;
  }

  .career-section__lead {
    font-size: 1rem;
    line-height: 1.9;
  }

  .career-accordion {
    max-width: 100%;
    gap: 16px;
  }

  .career-panel__summary {
    gap: 14px;
    padding: 20px 52px 20px 20px;
    font-size: 1.05rem;
  }

  .career-panel__summary::after {
    right: 20px;
    font-size: 1.65rem;
  }

  .career-panel__content {
    padding: 0 20px 20px;
  }

  .career-panel__grid {
    grid-template-columns: 1fr; /* タブレット・スマホでは縦1列に落とす */
    gap: 16px;
  }

  .career-panel__group {
    padding: 16px 14px 14px;
  }
}

/* ============================================================
   ⑦ CTA Section
   ============================================================ */
.cta-section {
  background: var(--color-white);
  padding-block: var(--spacing-outer-dense);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.14), transparent 70%);
}

.cta-section::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.1), transparent 70%);
}

.cta-section .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-section .section-title {
  color: var(--color-main-1);
}

.cta-section .section-title::after {
  background: linear-gradient(90deg, var(--color-accent-1), var(--color-accent-3));
}

.cta-section .section-lead {
  color: var(--color-text-secondary);
  margin-inline: auto;
  margin-bottom: 24px;
}

/* 資料請求フォーム／公式HPカードへのスムーズスクロールボタン */
.cta-jump-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.cta-jump-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-main-1);
  background: var(--color-white);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 999px;
  padding: 14px 32px;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cta-jump-link:hover,
.cta-jump-link:focus-visible {
  border-color: var(--color-accent-1);
  transform: translateY(2px);
  box-shadow: var(--shadow-card-hover);
}

.cta-jump-link__caret {
  display: inline-block;
  line-height: 1;
  color: var(--color-accent-2);
  transform: rotate(180deg);
}

.cta-subsection-title {
  font-family: var(--font-mincho);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 700;
  color: var(--color-main-1);
  text-align: center;
  margin-bottom: 20px;
}

.cta-form {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: left;
  background: var(--color-white);
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
}

.cta-form .wpcf7-form {
  display: block;
}

.cta-form .form-row {
  border-top: 1px solid #e5e5e5;
}

.cta-form .form-row:last-of-type {
  border-bottom: 1px solid #e5e5e5;
}

/* ラベル｜入力欄の2カラム（functions.php の wpcf7_form_elements フィルタで
   生成される .form-row__field と組み合わせて表組み風に見せる） */
.cta-form .form-row > p:first-child {
  display: flex;
  align-items: stretch;
  margin: 0;
}

.cta-form .form-row > p:first-child > br {
  display: none;
}

.cta-form .form-row label {
  flex: 0 0 168px;
  display: flex;
  align-items: center;
  padding: 16px 18px;
  background: #f4f4f4;
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #333;
}

.cta-form .form-row__field {
  flex: 1 1 auto;
  display: block;
  padding: 16px 20px;
  background: var(--color-white);
}

/* お問い合わせ項目のように補足文・textareaがラベル無しで続く行 */
.cta-form .form-row > p:not(:first-child) {
  margin: 0;
  padding: 0 20px 16px 188px;
  background: var(--color-white);
  font-family: var(--font-gothic);
  font-size: 0.82rem;
  color: #888;
}

.cta-form .form-row__field .note,
.cta-form .form-row > p:not(:first-child) {
  font-size: 0.78rem;
  color: #999;
}

/* お問い合わせ項目：チェックボックス〜テキスト入力欄までの縦幅いっぱいに
   ラベルを伸ばし、その中央に「お問い合わせ項目」を配置する */
.cta-form .form-row:has([data-name="inquiry-type"]) {
  display: grid;
  grid-template-columns: 168px 1fr;
}

.cta-form .form-row:has([data-name="inquiry-type"]) > p:first-child {
  display: contents;
}

.cta-form .form-row:has([data-name="inquiry-type"]) label {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: stretch;
  justify-content: center;
  text-align: center;
}

.cta-form .form-row:has([data-name="inquiry-type"]) .form-row__field,
.cta-form .form-row:has([data-name="inquiry-type"]) > p:not(:first-child) {
  grid-column: 2;
  padding-left: 20px;
}

.cta-form .wpcf7-form-control {
  width: 100%;
  font-family: var(--font-gothic);
  font-size: 0.95rem;
  color: var(--color-text-primary);
  background: var(--color-white);
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px 12px;
  transition: border-color 0.2s ease;
}

.cta-form .wpcf7-form-control.short {
  width: 90px;
}

.cta-form .wpcf7-form-control::placeholder {
  color: #aaa;
}

.cta-form .wpcf7-form-control:focus {
  outline: none;
  border-color: var(--color-accent-2);
}

.cta-form textarea.wpcf7-form-control {
  min-height: 120px;
  resize: vertical;
}

/* チェックボックス・ラジオボタン：枠なし、丸/四角＋テキストのみ */
.cta-form [data-name="course"] .wpcf7-form-control,
.cta-form [data-name="inquiry-type"] .wpcf7-form-control {
  display: grid;
  gap: 10px 20px;
  width: auto;
  border: none;
  padding: 0;
  background: none;
}

.cta-form [data-name="course"] .wpcf7-form-control {
  grid-template-columns: repeat(2, 1fr);
}

.cta-form [data-name="inquiry-type"] .wpcf7-form-control {
  grid-template-columns: repeat(3, 1fr);
}

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

.cta-form .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 0;
  background: none;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--color-text-primary);
}

.cta-form .wpcf7-list-item input[type="checkbox"],
.cta-form .wpcf7-list-item input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent-2);
  flex: none;
}

.cta-form select.wpcf7-form-control {
  background: var(--color-white);
  color: var(--color-text-primary);
}

.cta-form .wpcf7-submit-wrap,
.cta-form .wpcf7-form > p:last-of-type {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 24px 20px;
}

/* JSが挿入するスピナーが中央揃えの基準をずらさないよう、
   通常のフローから外して送信ボタンだけを中央に固定する */
.cta-form .wpcf7-spinner {
  position: absolute;
}

.cta-form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 220px;
  background: linear-gradient(135deg, var(--color-accent-1) 0%, var(--color-accent-2) 100%);
  color: var(--color-main-1);
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 36px;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-form .wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.45);
}

.cta-form .wpcf7-not-valid-tip {
  color: #d64545;
  font-size: 0.8rem;
  margin-top: 4px;
}

.cta-form .wpcf7-response-output {
  margin: 0 20px 20px !important;
  color: var(--color-text-primary);
  border-radius: var(--radius-btn);
}

.cta-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  margin-bottom: 40px;
}

.cta-cards--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 560px;
  margin-inline: auto;
}

.cta-card {
  position: relative;
  display: grid;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-card);
  padding: 0;
  text-align: center;
  color: inherit;
  text-decoration: none;
  transform-origin: center;
  box-shadow: var(--shadow-card);
  transition: background 0.2s, border-color 0.2s, transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 18, 34, 0.24), rgba(9, 18, 34, 0.78));
  z-index: 1;
}

.cta-card:hover,
.cta-card:focus-visible {
  border-color: var(--color-accent-1);
  transform: scale(1.02);
  box-shadow: var(--shadow-card-hover);
}

.cta-card__media {
  grid-area: 1 / 1;
  z-index: 0;
  width: 100%;
  aspect-ratio: 1906 / 852;
  background: var(--color-base-2);
  overflow: hidden;
}

.cta-card__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.cta-card__image:not([src]),
.cta-card__image[src=""] {
  display: none;
}

.cta-card__body {
  grid-area: 1 / 1;
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 32px 28px;
}

.cta-card__title {
  font-family: var(--font-mincho);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.45;
  text-shadow: 0 6px 12px rgba(0, 0, 0, 0.42), 0 6px 18px rgba(0, 0, 0, 0.32);
  margin-bottom: 8px;
}

.cta-note {
  font-family: var(--font-gothic);
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-top: 20px;
}

/* お問い合わせフォーム：SP版はラベルを上、入力欄を下に縦積み */
@media (max-width: 768px) {
  .cta-form .form-row > p:first-child {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-form .form-row label {
    flex: none;
    width: 100%;
    white-space: nowrap;
  }

  .cta-form .form-row:has([data-name="inquiry-type"]) {
    display: block;
  }

  .cta-form .form-row:has([data-name="inquiry-type"]) label {
    grid-row: auto;
    grid-column: auto;
    justify-content: flex-start;
    text-align: left;
  }

  .cta-form .form-row:has([data-name="inquiry-type"]) .form-row__field,
  .cta-form .form-row:has([data-name="inquiry-type"]) > p:not(:first-child) {
    grid-column: auto;
    padding-left: 20px;
  }

  .cta-form [data-name="course"] .wpcf7-form-control,
  .cta-form [data-name="inquiry-type"] .wpcf7-form-control {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 追従CTA（PC: 右サイド固定） */
.sticky-cta {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  padding: 10px 10px 10px;
  background: #141c25;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 10px;
  box-shadow: 0 18px 36px rgba(5, 10, 18, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sticky-cta:hover,
.sticky-cta:focus-within {
  transform: translate(-6px, -50%);
  box-shadow: 0 22px 40px rgba(5, 10, 18, 0.4);
}

.sticky-cta__icon-frame {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding: 12px;
  transform: translate(-50%, -50%);
}

.sticky-cta__icon-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
  border: none !important;
  outline: none !important;
}

.sticky-cta__btn {
  position: relative;
  z-index: 1;
  writing-mode: vertical-rl;
  background: linear-gradient(180deg, var(--color-accent-1), var(--color-accent-2));
  color: var(--color-main-1);
  font-family: var(--font-gothic);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 20px 20px;
  border-radius: 8px;
  border: 1px solid rgba(229, 193, 88, 0.8);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  display: block;
}

.sticky-cta__btn--sub {
  background: linear-gradient(180deg, #f2e8ca, #d9c287);
}

.sticky-cta__btn:hover {
  background: linear-gradient(180deg, #e5c158, #d4af37);
  border-color: rgba(255, 228, 145, 0.95);
}

.sticky-cta__btn--sub:hover {
  background: linear-gradient(180deg, #f6edd5, #e2cea0);
  border-color: rgba(255, 236, 179, 0.95);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: #141C25;
  padding-block: 48px 32px;
}

.site-footer .container {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr 0.85fr 1.35fr;
  gap: 32px;
  margin-bottom: 40px;
  align-items: start;
}

.footer-brand__logo {
  font-family: var(--font-mincho);
  font-size: 1rem;
  color: var(--color-white);
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand__text {
  font-family: var(--font-gothic);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.85;
}

.footer-nav__title {
  font-family: var(--font-gothic);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav ul a {
  font-family: var(--font-gothic);
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.footer-nav ul a:hover {
  color: var(--color-accent-3);
}

.footer-map {
  min-width: 0;
}

.footer-map__frame {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.footer-map__frame iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
  filter: grayscale(0.12) contrast(1.02);
}

.footer-map__link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-gothic);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.72);
  transition: color 0.2s;
}

.footer-map__link:hover {
  color: var(--color-accent-3);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-family: var(--font-gothic);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}

/* ============================================================
   Responsive - Tablet (768px ~ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --spacing-outer-normal: 80px;
    --spacing-outer-dense: 100px;
  }

  .container {
    padding-inline: 32px;
  }

  /* ヘッダー（タブレットもスマホと同様にハンバーガーメニュー化） */
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-main-1);
    flex-direction: column;
    padding: 24px 20px;
    gap: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .worry-section {
    padding: 56px 0 72px;
  }

  .worry-container {
    padding: 0 24px;
  }

  .worry-groups {
    gap: 48px;
  }

  .worry-bubble {
    font-size: 1rem;
  }

  .usp-solution-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .usp-solution-section {
    padding: 40px 0 0;
  }

  .usp-title {
    margin-bottom: 16px;
  }

  .usp-block,
  .usp-block-reverse {
    display: flex;
    flex-direction: column;
    margin-bottom: 32px;
    padding-top: 0;
  }

  .usp-image {
    align-self: stretch;
    margin-top: 0;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .usp-block-reverse .usp-image {
    align-self: stretch;
  }

  .usp-text {
    position: relative;
    align-self: stretch;
    margin: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 44px 22px 24px;
  }

  .usp-block-reverse .usp-text {
    margin: 0;
  }

  .usp-number {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .usp-block-reverse .usp-number {
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
  }
  
  .dorm-layout {
    gap: 36px;
  }

  .solution-overview-grid {
    gap: 28px;
  }

  .solution-overview-media {
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .dorm-collage {
    min-height: calc(42.9vw + 128px);
  }

  .dorm-collage__item--primary {
    width: 72%;
    left: 4%;
  }

  .dorm-collage__item--secondary {
    width: 38%;
  }

  .dorm-collage__item--tertiary {
    width: 42%;
  }

  .dorm-collage__item--quaternary {
    width: 35%;
    left: 41%;
  }

  /* タブレット版はSP版と同じ画面下部固定表示にする */
  .sticky-cta {
    position: fixed;
    right: auto;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    padding: 18px 10px calc(env(safe-area-inset-bottom, 0px) + 10px);
    border-radius: 18px 18px 0 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .sticky-cta:hover,
  .sticky-cta:focus-within {
    transform: translateX(-6px);
  }

  .sticky-cta__icon-frame {
    top: 0;
    left: 13px;
    width: 70px;
    height: 70px;
    padding: 8px;
    transform: translateY(0%);
  }

  .sticky-cta__btn {
    writing-mode: horizontal-tb;
    flex: 1;
    text-align: center;
    padding: 14px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
  }

  .site-footer .container {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-map {
    grid-column: 1 / -1;
  }

  .timeline-container {
    gap: 10px;
    margin-bottom: 32px;
  }

  .timeline-scroll-wrap::before,
  .timeline-scroll-wrap::after {
    width: 28px;
  }

  .event-stage {
    min-height: 380px;
  }

  /* 強調行事: タブレット版は太字部分が折り返してしまうため2px小さく */
  .month-card--highlight .event-date,
  .month-card--highlight .month-card__month {
    font-size: calc(0.82rem - 2px);
  }

  .month-card--highlight .event-name-badge,
  .month-card--highlight .month-card__name {
    font-size: calc(0.9rem - 2px);
  }

  /* Growth cards - body を縦1列に（インジケーターはPC版と同デザイン） */
  .growth-card__body {
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  }

  .growth-card__media {
    border-right: none;
    border-bottom: none;
  }

  .growth-card__media img {
    min-height: 240px;
  }

  .growth-card__content {
    padding: 32px 36px;
  }

  .usp-highlight {
    font-size: 1.75rem;
  }

  .usp-highlight-black {
    font-size: 1.4em;
  }

  .school-life-highlight {
    font-size: 1.75rem;
  }

  .school-life-highlight-black {
    font-size: 1.4em;
  }

}

/* ============================================================
   Responsive - SP (~768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --spacing-outer-normal: 64px;
    --spacing-outer-dense: 80px;
    --spacing-inner: 24px;
  }

  html { font-size: 14px; }

  .container {
    padding-inline: 20px;
  }

  /* 見出し（h2）のサイズをSP全体で統一 */
  .section-title,
  .growth-header__title {
    font-size: 1.6rem;
  }

  /* ヘッダー */
  .site-header {
    position: sticky;
  }

  /* ヒーロー */
  .hero {
    min-height: 85vh;
    padding-block: 60px 80px;
  }

  .hero__image {
    object-position: 45% center;
  }

  .hero__title {
    font-size: 1.9rem;
  }

  /* 問題提起 */
  .worry-section {
    padding: 40px 0 56px;
  }

  .worry-container {
    padding: 0 20px;
  }

  .worry-title {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 40px;
  }

  .worry-groups {
    gap: 40px;
    margin-bottom: 48px;
  }

  .worry-group {
    grid-template-columns: clamp(96px, 30vw, 150px) 1fr;
    min-height: 0;
  }

  .worry-group--down {
    grid-template-columns: 1fr clamp(96px, 30vw, 150px);
  }

  .worry-group__character {
    align-self: center;
  }

  .worry-bubbles {
    align-self: center;
    gap: 12px;
    padding-top: 4px;
  }

  .worry-group--up .worry-bubbles {
    padding-left: 12px;
  }

  .worry-group--down .worry-bubbles {
    padding-right: 12px;
  }

  .worry-bubble {
    max-width: 100%;
    font-size: 0.95rem;
    padding: 14px 16px;
  }

  .worry-bubble--1 {
    margin-left: 0;
  }

  .worry-bubble--2 {
    margin-left: clamp(8px, 4vw, 24px);
  }

  .worry-bubble--3 {
    margin-right: 0;
  }

  .worry-bubble--4 {
    margin-right: clamp(8px, 4vw, 24px);
  }

  .sp-br {
    display: inline;
  }

  .worry-solution__text {
    font-size: 1.05rem;
    line-height: 1.9;
  }

  /* 高野山高校の特徴 */
  .usp-title {
    margin-bottom: 2px;
  }

  .usp-summary {
    margin-top: 2px;
  }

  .usp-summary__text,
  .usp-summary__coursetext {
    font-size: calc(1.45rem - 2px);
  }

  .usp-summary__highlight {
    font-size: calc(1.9rem - 2px);
  }

  .solution-overview-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .solution-overview-media {
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .solution-overview-title {
    font-size: 1.55rem;
  }

  .solution-overview-text {
    font-size: 0.95rem;
    max-width: 28ch;
  }

  .usp-text {
    padding: 44px 22px 24px;
  }

  .usp-block-reverse .usp-text {
    margin: 0;
  }

  .usp-number {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .usp-block-reverse .usp-number {
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
  }

  .usp-text h3 {
    font-size: 1.35rem;
    margin-top: 8px;
  }

  .usp-bg-img {
    background-size: 160vw;
    background-position: center 42%;
  }

  /* 寮 */
  .dorm-layout {
    grid-template-columns: 1fr;
  }

  .dorm-layout > div:last-child {
    text-align: center;
  }

  .dorm-layout > div:last-child .section-title::after {
    margin-inline: auto;
  }

  .dorm-image-wrap {
    order: 2;
  }

  .dorm-collage {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .dorm-collage::before,
  .dorm-collage::after {
    display: none;
  }

  .dorm-collage__item {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
  }

  .dorm-image-wrap .img-placeholder {
    height: 280px;
  }

  .dorm-features {
    align-items: center;
  }

  .dorm-feature {
    justify-content: center;
    max-width: 32rem;
    width: 100%;
  }

  /* 学びセクション */
  .growth-focus-section {
    padding: 64px 18px;
  }

  .growth-header {
    margin-bottom: 40px;
  }

  .growth-timeline {
    gap: 24px;
  }

  .growth-timeline::before {
    display: block;
    top: 18px;
    bottom: 18px;
    left: 16px;
  }

  .growth-card {
    display: flex;
    align-items: flex-start;
  }

  .growth-card__indicator {
    padding-top: 18px;
  }

  .growth-card__node {
    width: 64px;
    height: 64px;
    transform: translateX(0);
  }

  .growth-card__node span {
    font-size: 24px;
  }

  .growth-card__body {
    grid-template-columns: 1fr;
    margin-left: 28px;
  }

  .growth-card__media {
    border-right: 1px solid #e1d7be;
    border-bottom: none;
  }

  .growth-card__media img {
    min-height: 240px;
  }

  .growth-card__content {
    padding: 24px 20px;
  }

  .growth-card__title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .growth-card__text {
    font-size: 0.92rem;
    line-height: 1.8;
  }

  /* 学校生活 */
  .timeline-container {
    gap: 8px;
    margin-bottom: 24px;
  }

  .timeline-hint {
    font-size: 0.7rem;
    padding-left: 6px;
  }

  .timeline-scroll-area {
    gap: 16px;
    padding: 16px 6px 18px;
  }

  .timeline-nav {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .timeline-nav span {
    font-size: 1.2rem;
  }

  .timeline-item,
  .month-card {
    flex-basis: 136px;
    width: 136px;
  }

  .timeline-scroll-wrap::before {
    background: linear-gradient(90deg, #fbf9f4 6%, rgba(251, 249, 244, 0));
  }

  .timeline-scroll-wrap::after {
    right: 0;
    background: linear-gradient(270deg, #fbf9f4 6%, rgba(251, 249, 244, 0));
  }

  .event-date,
  .month-card__month {
    font-size: 0.76rem;
  }

  .event-name-badge,
  .month-card__name {
    font-size: 0.82rem;
    min-height: 54px;
    padding: 8px 10px;
  }

  /* 強調行事: スマホ版は2px大きく */
  .month-card--highlight .event-date,
  .month-card--highlight .month-card__month {
    font-size: calc(0.76rem + 2px);
  }

  .month-card--highlight .event-name-badge,
  .month-card--highlight .month-card__name {
    font-size: calc(0.82rem + 2px);
  }

  .event-stage {
    min-height: 280px;
  }

  .event-stage__media,
  .event-stage__media.img-placeholder {
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
  }

  /* CTA */
  .cta-cards {
    grid-template-columns: 1fr;
  }

  /* フッター */
  .site-footer .container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-map__frame iframe {
    height: 240px;
  }

  .voice-card {
    padding: 28px 24px;
  }
}

/* ============================================================
   PC（1024px〜）: 右側固定CTAとの重なり防止
   デザイン・レイアウトは変更せず、CTAボタン分の左右余白を追加し
   コンテンツ全体を比例縮小して見せる。1024px付近で最大140pxの
   余白を確保し、画面幅が広がるにつれて約1800px付近まで段階的に
   余白を減らしながら元の値（40px/20px/0px）へ滑らかに戻す。
   ============================================================ */
@media (min-width: 1025px) {
  .cta-section .container {
    padding-inline: clamp(40px, calc(272px - 13vw), 140px);
  }

  /* 画像カードが container 端いっぱいまで広がるため、他セクションより
     大きめに左右余白を確保（目安: 約20vw）し、右側固定CTAと被らないようにする */
  #solution-overview .container {
    padding-inline: clamp(40px, 20vw, 220px);
  }

  /* 1024〜1300px付近は右側CTAよりわずかに余裕がある程度の最小限の
     余白（110px）に抑え、1300px以降は10vw（左右合計20vw）で
     画面幅に比例して余白を確保し続ける（広い画面でもCTAと被らない） */
  #dormitory .container,
  .site-footer .container {
    padding-inline: max(110px, 10vw);
  }

  .career-container {
    padding-inline: clamp(20px, calc(300px - 15.5vw), 140px);
  }

  /* 左右合計7dvw分、他セクションより幅を広く見せる */
  .growth-container {
    padding-inline: clamp(0px, calc(325px - 18vw - 3.5dvw), calc(140px - 3.5dvw));
  }

  .worry-container {
    padding-inline: 130px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .tablet-br {
    display: inline;
  }

  /* タブレット幅では年間行事のtimelineと画像を画面幅に比例して縮小し、
     右側固定CTAと被らないようにする（PC版の縮小ロジックをタブレットにも適用） */
  .timeline-container {
    max-width: clamp(470px, 62vw, 640px);
  }

  .event-stage {
    max-width: clamp(362px, calc(62vw - 108px), 532px);
  }
}

/* ============================================================
   Responsive - 小型SP (~499px)
   ============================================================ */
@media (max-width: 499px) {

  /* ① ヒーロー */
  .hero__content {
    transform: translateY(200px);
  }

  .hero__title { 
    
  }
  .hero__lead { 

  }

  /* ② 問題提起 - 最小サイズ調整 */
  .worry-title {
    font-size: 1.25rem;
  }
  .worry-bubble {
    font-size: 0.9rem;
    padding: 14px 16px;
  }
  .worry-solution {
    padding: 24px 20px;
  }
  .worry-solution__text {
    font-size: 0.98rem;
  }

  .usp-highlight {
    font-size: 1.25rem;
  }
  .usp-highlight-black {
    font-size: 1.4em;
  }

  .school-life-highlight {
    font-size: 1.25rem;
  }
  .school-life-highlight-black {
    font-size: 1.4em;
  }

  /* ③ 高野山高校の特徴（USP blocks）*/
  .usp-title {
    margin-bottom: 2px;
  }
  .usp-text h3 { font-size: 1.15rem; }
  .usp-text p { font-size: 0.9rem; }
  .usp-summary {
    margin-top: 2px;
    padding: 24px 20px;
  }
  .usp-summary__text,
  .usp-summary__coursetext {
    font-size: calc(0.9rem + 1px);
  }
  .usp-summary__list li {
    font-size: 0.9rem;
  }
  .usp-summary__highlight {
    font-size: calc(0.9rem + 5px);
  }

  /* 偶数ブロックの番号位置修正（499px用） */
  .usp-block-reverse .usp-number {
    left: 50%;
    top: -28px;
    transform: translateX(-50%);
  }

  /* ⑤ 寺院後継者を目指すための学び（オーバーレイ数字縮小） */
  .growth-header__lead { font-size: 0.9rem; }
  .growth-card__node {
    width: 56px;
    height: 56px;
    transform: translateX(-12%);
  }
  .growth-card__node span {
    font-size: 21px;
  }
  .growth-card__indicator {
    padding-top: 14px;
  }
  .growth-card__body {
    grid-template-columns: 1fr;
    margin-left: 24px;
  }
  .growth-card__media img {
    min-height: 200px;
  }
  .growth-card__content {
    padding: 16px 14px;
    position: relative;
    z-index: 1;
  }
  .growth-card__title { font-size: 1.05rem; }
  .growth-card__text { font-size: 0.9rem; }

  /* ⑥ 寮がもたらす4つの成長 */
  .dorm-feature__text { font-size: 0.88rem; }

  /* ⑦ 年間行事（タイムライン縮小） */
  .timeline-hint { font-size: 0.68rem; }
  .timeline-item,
  .month-card {
    flex-basis: 110px;
    width: 110px;
  }
  .event-date,
  .month-card__month {
    font-size: 0.72rem;
  }
  .event-name-badge,
  .month-card__name {
    font-size: 0.78rem;
    min-height: 48px;
    padding: 6px 8px;
  }

  /* 強調行事: スマホ版は2px大きく */
  .month-card--highlight .event-date,
  .month-card--highlight .month-card__month {
    font-size: calc(0.72rem + 2px);
  }
  .month-card--highlight .event-name-badge,
  .month-card--highlight .month-card__name {
    font-size: calc(0.78rem + 2px);
  }

  /* ⑧ 卒業後の進路 */
  .career-panel__summary { font-size: 0.95rem; }
  .career-panel__item { font-size: 0.9rem; }

}

/* ============================================================
   Responsive - SP (~500px)
   ============================================================ */
@media (max-width: 500px) {
  .sticky-cta__icon-frame {
    top: 0;
    left: 8px;
    width: 65px;
    height: 65px;
    padding: 8px;
    transform: translateY(4%);
  }
}

/* ============================================================
   Responsive - SP (~400px)
   ============================================================ */
@media (max-width: 400px) {
  .sticky-cta__icon-frame {
    top: 0;
    left: 10px;
    width: 50px;
    height: 50px;
    padding: 8px;
    transform: translateY(32%);
  }
}

/* ============================================================
   Responsive - 極小SP (~350px)
   ============================================================ */
@media (max-width: 350px) {
  .hero__title {
    font-size: calc(1.9rem - 2px);
  }

  .hero__lead {
    font-size: calc(1rem - 2px);
  }
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}

.animate-in.delay-1 { animation-delay: 0.1s; }
.animate-in.delay-2 { animation-delay: 0.2s; }

/* IntersectionObserver で .is-visible を付与 */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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


