/*
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.0.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: #2A3439;

  /* アクセントカラー（金） */
  --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;
}

    transition: transform 0.2s ease, box-shadow 0.2s ease;
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;
}

/* ============================================================
   Typography Utilities
   ============================================================ */
.font-mincho { font-family: var(--font-mincho); }
.font-gothic  { font-family: var(--font-gothic); }

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
  width: 100%;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  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);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
  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-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-cta {
  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-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ハンバーガー（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(100px);
}

.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;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--color-accent-3);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 20px;
}

/* ============================================================
   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;
}

.btn--secondary {
  background: transparent;
  color: var(--color-white);
  font-size: 0.9rem;
  padding: 14px 28px;
  border: 1px solid rgba(255,255,255,0.4);
}

.btn--secondary:hover {
  border-color: var(--color-accent-3);
  color: var(--color-accent-3);
}

.btn--dark {
  background: var(--color-main-1);
  color: var(--color-white);
  font-size: 1rem;
  padding: 16px 36px;
}

.btn--dark:hover {
  background: var(--color-main-3);
  transform: translateY(-2px);
}

.btn-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  line-height: 1;
}

/* ============================================================
   ② USP Section - 高野山高校の価値
   ============================================================ */
.usp-section {
  position: relative;
  padding: 40px 0 64px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  isolation: isolate;
}

.usp-section.section--odd,
.usp-section.section--even,
.usp-solution-section.section--odd,
.usp-solution-section.section--even {
  background-color: transparent;
}

.usp-section.section--odd::before,
.usp-section.section--even::before,
.usp-solution-section.section--odd::before,
.usp-solution-section.section--even::before {
  display: none;
}

.usp-section.section--odd::before,
.usp-solution-section.section--odd::before {
  background-color: var(--color-base-1);
}

.usp-section.section--even::before,
.usp-solution-section.section--even::before {
  background-color: var(--color-base-2);
}

.usp-section.section--odd,
.usp-solution-section.section--odd {
  background-color: var(--color-base-1);
}

.usp-section.section--even,
.usp-solution-section.section--even {
  background-color: var(--color-base-2);
}

.usp-section .usp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative; /* 縦書きコピーや画像を重ねる基準点 */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: clamp(340px, 37.1vw, 520px);
}

/* 1. 縦書きキャッチコピー */
.usp-vertical-copy {
  position: relative;
  font-family: "Noto Serif JP", "BIZ UDP明朝", serif; /* 設計書フォント */
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.55;
  color: #D4AF37; /* アクセントカラーの金 */
  writing-mode: vertical-rl; /* 縦書きの魔法のコード */
  text-combine-upright: digits 2;
  letter-spacing: 0.12em;
  z-index: 2;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* 2. メインのネイビーボックス（スポットライト＆グラデーション） */
.usp-feature-card {
  width: min(100%, 1080px);
  background: 
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2) 0%, rgba(214, 224, 239, 0.12) 24%, rgba(95, 117, 149, 0.06) 40%, rgba(16, 28, 46, 0) 64%),
    linear-gradient(135deg, rgba(34, 45, 66, 0.88) 0%, rgba(49, 63, 87, 0.82) 100%);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0 clamp(20px, 4.86vw, 68px) 0 0;
  box-shadow: 0 22px 54px rgba(14, 20, 33, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  overflow: visible;
  z-index: 2;

  /* ⭕️ 横並びのレイアウト基盤 */
  display: grid;
  grid-template-columns: clamp(80px, 10vw, 140px) minmax(0, 1fr);
  align-items: center;
  min-height: clamp(280px, 31.4vw, 440px);
}

.usp-feature-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0px;
  border-radius: 10px 0 0 10px;
  background: rgba(184, 205, 196, 0.22);
  z-index: 0;
}

/* 縦書きのすぐ右側を走る極細の縦線 */
.usp-feature-card::after {
  content: "";
  position: absolute;
  left: clamp(24px, 3vw, 42px);
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: rgba(227, 238, 232, 0.56);
  z-index: 1;
}

/* ⭕️ 左側の縦書きテキストのスタイリングを追加 */
.usp-vertical-copy {
  writing-mode: vertical-rl;
  font-family: "Noto Serif JP", "BIZ UDP明朝", serif;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 600;
  color: #D4AF37; /* カンプ画像に合わせた上品なゴールド */
  letter-spacing: 0.18em;
  line-height: 1.5;
  padding-left: clamp(14px, 2vw, 28px); /* 縦線との絶妙な間隔 */
  justify-self: center; /* 140pxのグリッド枠内の中央に配置 */
}

/* ⭕️ 右側の横書きコンテンツ（開始位置を右へずらしました） */
.usp-copy-content {
  position: relative;
  z-index: 1;
  /* 左側のパディングを 52px → 92px に広げ、文字の開始位置を→へ押し出しました */
  padding: clamp(40px, 5.43vw, 76px) 0 clamp(44px, 6vw, 84px) clamp(48px, 6.57vw, 92px);
  max-width: 880px;
}

/* テキストスタイル */
.usp-lead {
  font-family: "Noto Serif JP", "BIZ UDP明朝", serif;
  font-size: clamp(1.5rem, 2.45vw, 2.144rem);
  font-weight: 600;
  color: rgba(255, 249, 237, 0.96);
  line-height: 1.85;
  margin: 0 0 clamp(20px, 3vw, 42px) 0;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
}

.usp-lead__indent {
  display: block;        /* 1つの塊にして改行を発生させる */
  padding-left: 8em;   /* 💡 文字の開始位置を「2.5文字分」右（→）にずらす */
  margin: 0;       /* 上下の行間を少しだけ広げてゆとりを持たせる */
}

.usp-lead__emphasis {
  display: inline-block; /* サイズや文字間を綺麗に安定させる */
  font-size: 1.15em;      /* 💡 親の文字サイズ（clamp）に対して「1.15倍」大きくする */
  font-weight: 700;      /* 太さを1段階アップさせてより強調 */
  color: #ffffff;        /* 文字色をパキッとした完全な白にして視線を惹きつける */
  letter-spacing: 0.05em; /* 文字が大きくなった分、少しだけ文字間を広げて読みやすく */
  margin-top: 4px;       /* 上の行（わかっているけれど）との詰まり感を微調整 */
}

.usp-message {
  font-family: "Noto Serif JP", "BIZ UDP明朝", serif;
  font-size: clamp(1.25rem, 2.1vw, 1.838rem);
  font-weight: 500;
  color: rgba(255, 248, 234, 0.94);
  line-height: 1.9;
  margin: 0;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
}

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

/* 3. 右下の蓮の華（装飾） */
.usp-bg-flower {
  position: absolute;
  right: 0px;
  transform: translateX(150px);
  bottom: -120px;
  width: min(420px, 38%);
  pointer-events: none;
  z-index: 10;
}

.usp-bg-flower img {
  width: 80%;
  height: auto;
  display: block;
}

.pc-only {
  display: inline;
}

.tablet-br {
  display: none;
}

.sp-br {
  display: none;
}


/* 解決策 */
.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-intro {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
  font-family: var(--font-gothic);
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-text-secondary);
}

.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: 46%;
  min-width: 0;
  min-height: 0;
  height: auto;
  aspect-ratio: 16 / 10;
  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: 165px;
  margin-right: 150px;
  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: 150px;
  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: 120px;
  left: 65%;
  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: 120px;
}

.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;
  box-shadow: 0 22px 48px rgba(49, 43, 26, 0.14);
  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;
}

.events-title {
  font-family: var(--font-mincho);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-main-1);
  margin-bottom: 28px;
  text-align: center;
}

.events-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;
}

.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;
}

.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 {
  display: block;
  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;
}

.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;
}

.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);
}

.event-stage__caption {
  margin-top: 18px;
}

.event-stage__month {
  font-family: var(--font-gothic);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent-2);
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}

.event-stage__title {
  font-family: var(--font-mincho);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  color: var(--color-main-1);
  font-weight: 700;
}

/* 声のカード */
.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-main-1);
  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.1), 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.06), transparent 70%);
}

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

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

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

.cta-section .section-lead {
  color: rgba(255,255,255,0.75);
  margin-inline: auto;
  margin-bottom: 24px;
}

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

.cta-card {
  position: relative;
  display: grid;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-card);
  padding: 0;
  text-align: center;
  color: inherit;
  text-decoration: none;
  transform-origin: center;
  box-shadow: 0 12px 28px rgba(9, 18, 34, 0.12);
  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 {
  background: rgba(255,255,255,0.1);
  border-color: rgba(212, 175, 55, 0.5);
  transform: scale(1.02);
  box-shadow: 0 18px 36px rgba(9, 18, 34, 0.2);
}

.cta-card__media {
  grid-area: 1 / 1;
  z-index: 0;
  width: 100%;
  aspect-ratio: 1906 / 852;
  background: rgba(255,255,255,0.04);
  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__icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.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-card__text {
  font-family: var(--font-gothic);
  font-size: 0.83rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 20px;
}

.cta-note {
  font-family: var(--font-gothic);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-top: 20px;
}

/* 追従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 {
    gap: 20px;
  }

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

  .usp-section .usp-container {
    min-height: 0;
    padding: 0 24px;
  }

  .usp-feature-card {
    grid-template-columns: 1fr; /* 縦並びに変更 */
    padding: 40px 24px;
    min-height: auto;
  }
  
  .usp-feature-card::after {
    display: none; /* スマホでは縦線を消してシンプルに */
  }
  
  .usp-vertical-copy {
    writing-mode: horizontal-tb; /* スマホでは読みやすく横書きに展開 */
    padding-left: 0;
    margin-bottom: 24px;
    text-align: center;
  }
  
  .usp-copy-content {
    padding: 0; /* 左側の大きな余白をスマホ用にリセット */
    text-align: left;
  }

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

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

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

  .usp-intro {
    margin-bottom: 22px;
    font-size: 0.95rem;
  }

  .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%);
  }
  
  .pc-only {
    display: none; /* スマホの改行を有効化 */
  }

  .usp-lead {
    font-size: clamp(1.65rem, 3vw, 2.3rem);
    line-height: 1.7;
    margin-bottom: 24px;
  }

  .usp-message {
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    line-height: 1.8;
  }

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

  .usp-bg-flower {
    width: min(250px, 35%);
    right: -8px;
    bottom: -50px;
    transform: none;
  }

  .dorm-layout {
    gap: 36px;
  }

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

  .solution-overview-media {
    aspect-ratio: auto;
    height: 280px;
  }

  .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%;
  }

  .sticky-cta {
    right: 12px;
  }

  .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: 470px;
  }

  /* 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;
  }

}

/* ============================================================
   Responsive - SP (~850px)
   ============================================================ */
.usp-bg-flower {
  
}

/* ============================================================
   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;
  }

  /* ヘッダー */
  .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;
  }

  .site-header {
    position: sticky;
  }

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

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

  .hero__title {
    font-size: 1.9rem;
  }

  /* USP */
  .usp-section {
    padding: 56px 0 72px;
  }

  .usp-section .usp-container {
    min-height: 0;
    padding: 0 20px;
    justify-content: center;
  }

  .usp-vertical-copy {
    writing-mode: vertical-rl;
    font-size: 1.1rem;
    line-height: 1.45;
    padding-left: 12px;
    text-align: center;
    margin-bottom: 0;
  }

  .usp-feature-card {
    width: 100%;
    min-height: 0;
    grid-template-columns: 76px minmax(0, 1fr);
    padding: 0 24px 0 0;
  }

  .usp-feature-card::before {
    width: 0;
  }

  .usp-feature-card::after {
    display: block;
    left: 26px;
    top: 12px;
    bottom: 12px;
  }

  .usp-copy-content {
    padding: 34px 0 40px 28px;
  }

  .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-lead {
    font-size: 1.45rem;
    line-height: 1.75;
    margin-bottom: 22px;
  }

  .usp-message {
    font-size: 1.28rem;
    line-height: 1.8;
  }

  .usp-bg-flower {
    width: min(190px, 42%);
    right: -2px;
    bottom: -28px;
  }

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

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

  .usp-lead__indent {
    padding-left: 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%;
  }

  .pc-only {
    display: none;
  }

  /* 寮 */
  .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;
  }

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

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

  .event-stage__title {
    font-size: 1.25rem;
  }

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

  /* 追従CTA → 画面下部固定 */
  .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;
    gap: 28px;
  }

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

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

/* ============================================================
   Responsive - Sticky CTA overlap fix (tablet / PC)
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  .tablet-br {
    display: inline;
  }
}

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

@media (min-width: 769px) {
  .timeline-container,
  .event-stage {
    padding-right: 90px;
  }

  .dorm-layout > div:last-child {
    padding-right: 90px;
  }

  .growth-card__content {
    padding-left: 44px;
    padding-right: 90px;
  }
}

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

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

  .hero__title { 
    
  }
  .hero__lead { 

  }

  /* ② 問いから始まる（USP feature card）- 最小14px */
  .usp-section .usp-container {
    padding: 0 12px;
  }
  .usp-feature-card {
    grid-template-columns: clamp(52px, 13vw, 68px) minmax(0, 1fr);
    padding: 0 12px 0 0;
  }
  .usp-feature-card::after {
    left: 16px;
  }
  .usp-vertical-copy {
    font-size: 0.85rem;
    padding-left: 8px;
  }
  .usp-copy-content {
    padding: 20px 0 24px 14px;
  }
  .usp-lead {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0 0 10px 0;
  }
  .usp-lead__emphasis {
    font-size: 1em;
  }
  .usp-message {
    font-size: 1rem; /* 14px（最小値）*/
    line-height: 1.75;
  }
  .usp-highlight {
    font-size: 1em;
  }

  /* ③ 高野山高校の特徴（USP blocks）*/
  .usp-title { }
  .usp-intro { font-size: 0.9rem; }
  .usp-text h3 { font-size: 1.15rem; }
  .usp-text p { font-size: 0.9rem; }

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

  /* ④ 解決策サマリー */
  .solution-overview-title { }
  .solution-overview-text { }

  /* ⑤ 寺院後継者を目指すための学び（オーバーレイ数字縮小） */
  .growth-header__title { }
  .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__title { }
  .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;
  }
  .event-stage__title { }

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

  /* ⑨ CTA */
  .cta-card__title { }
  .cta-card__text { }
  .cta-note { }

}

/* ============================================================
   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; }
.animate-in.delay-3 { animation-delay: 0.35s; }
.animate-in.delay-4 { animation-delay: 0.5s; }

/* 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);
}

/* ============================================================
   Utility
   ============================================================ */
.text-center { text-align: center; }
.text-gold   { color: var(--color-accent-1); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

