﻿/*
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;
}

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;
}


/* 金のアクセントライン */
.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;
}

/* ============================================================
   問題提起セクション
   ============================================================ */
.problem-section {
  padding-block: var(--spacing-outer-normal);
  background-color: var(--color-base-2);
}

.problem-layout {
  display: flex;
  flex-direction: column;
  gap: 100px;
  margin-inline: 15vw;
}

.problem-main {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 36px;
}

.problem-text {
  position: relative;
  z-index: 2;
  text-align: center;
}

.problem-text__main {
  font-family: var(--font-mincho);
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  font-weight: 300;
  line-height: 1.9;
  color: var(--color-main-1);
  margin-bottom: 0;
}

.problem-text__emphasis {
  font-size: 1.618em;
  font-weight: 700;
}

.problem-text__nowrap {
  white-space: nowrap;
}

.problem-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  column-gap: clamp(24px, 3vw, 48px);
  row-gap: 0;
  align-items: center;
}

.problem-text__sub {
  font-family: var(--font-gothic);
  font-size: clamp(1.15rem, 1.73vw, 1.96rem);
  font-weight: 700;
  line-height: 1.9;
  color: var(--color-main-1);
}

.problem-text__highlight {
  color: #D4AF37;
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 1.618em;
}

.problem-text__sub--top {
  grid-column: 1 / -1;
  grid-row: 1;
  text-align: center;
  padding-bottom: clamp(24px, 3vw, 48px);
}

.problem-text__sub--bottom {
  grid-column: 1 / -1;
  grid-row: 2;
  text-align: center;
}

/* kokoro card */
.kokoro-lead {
  font-family: var(--font-mincho);
  font-size: clamp(1.27rem, 2.3vw, 1.96rem);
  font-weight: 700;
  color: var(--color-main-1);
  line-height: 1.7;
  margin-bottom: 14px;
}

.kokoro-card {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  margin-inline: auto;
  width: fit-content;
}

.kokoro-card__visual {
  position: relative;
  width: clamp(120px, 22vw, 190px);
  height: clamp(100px, 18vw, 160px);
  flex-shrink: 0;
}

.kokoro-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  -webkit-mask-image: radial-gradient(circle, black 30%, transparent 85%);
  mask-image: radial-gradient(circle, black 30%, transparent 85%);
}

.kokoro-card__kanji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mincho);
  font-size: clamp(5rem, 13vw, 9rem);
  font-weight: 700;
  color: rgba(255, 252, 245, 0.92);
  -webkit-text-stroke: 2px #D4AF37;
  paint-order: stroke fill;
  line-height: 1;
}

.kokoro-card__body {
  flex: 1;
  padding: 12px 0 12px 20px;
  text-align: left;
}

.kokoro-card__sub {
  font-family: var(--font-mincho);
  font-size: clamp(1.09rem, 1.84vw, 1.5rem);
  color: var(--color-main-1);
  margin-bottom: 6px;
  line-height: 1.5;
}

.kokoro-card__main {
  font-family: var(--font-mincho);
  font-size: clamp(1.27rem, 2.3vw, 1.84rem);
  font-weight: 600;
  color: var(--color-main-1);
  line-height: 1.4;
}

.problem-text__decor {
  position: absolute;
  z-index: 1;
  width: clamp(124px, 13.5vw, 169px);
  left: -40%;
  bottom: 30%;
}

.problem-text__decor-boy {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.6);
}

.problem-text__decor-question {
  position: absolute;
  z-index: 1;
  width: 50%;
  top: -50%;
  right: -8%;
  transform: rotate(18deg);
  opacity: 0.9;
}

.problem-visual {
  position: absolute;
  z-index: 1;
  width: clamp(124px, 13.5vw, 169px);
  right: -35%;
  top: 5%;
}

.problem-visual__photo {
  display: block;
  width: 100%;
  height: auto;
}

.problem-visual__question {
  position: absolute;
  top: -28px;
  left: -28px;
  width: 90px;
  transform: rotate(-14deg);
  z-index: 2;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}


/* ============================================================
   世界遺産・高野山という学びの舞台
   ============================================================ */
.heritage-section {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
}

.heritage-container {
  position: relative;
  display: grid;
  width: 100%;
  max-width: none;
  margin: 0;
}

.heritage-bg {
  grid-area: 1 / 1;
  z-index: 0;
}

.heritage-bg picture {
  display: block;
  height: 100%;
}

.heritage-bg__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.8;
  -webkit-mask-image: linear-gradient(135deg, transparent 0%, transparent 12%, rgba(0, 0, 0, 0.85) 100%);
  mask-image: linear-gradient(135deg, transparent 0%, transparent 12%, rgba(0, 0, 0, 0.85) 100%);
}

.heritage-text {
  grid-area: 1 / 1;
  align-self: start;
  justify-self: start;
  position: relative;
  z-index: 2;
  width: calc(60% - clamp(100px, 10vw, 160px));
  padding: clamp(32px, 4vw, 56px) clamp(24px, 3.5vw, 48px);
  margin-left: clamp(100px, 10vw, 160px);
}

.heritage-text__body {
  max-width: 680px;
}

.heritage-text__title {
  font-family: var(--font-mincho);
  font-size: clamp(1.6rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-main-1);
  margin-bottom: clamp(16px, 2.5vw, 28px);
}

.heritage-text__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 16px;
  background: linear-gradient(90deg, var(--color-accent-1), var(--color-accent-3));
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

/* PC のみ：タイトルを画像の少し内側まで広げる */

.heritage-text__body p {
  font-family: var(--font-gothic);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.9;
  color: var(--color-text-primary);
  margin-bottom: 1.6em;
}

.heritage-text__body p:last-child {
  margin-bottom: 0;
}

.heritage-text__abroad-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 0 20px 6px rgba(255, 255, 255, 0.55);
}

.heritage-section .heritage-text__item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 2em;
}

.heritage-section .heritage-text__item:last-child {
  margin-bottom: 0;
}

.heritage-section .heritage-text__item p {
  margin-bottom: 0;
}

.heritage-section .heritage-text__num {
  flex-shrink: 0;
  font-family: var(--font-mincho);
  font-size: clamp(1.6rem, 2.6vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--color-main-1);
  letter-spacing: 0;
}

.heritage-section .heritage-text__lead {
  display: block;
  white-space: normal;
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.9rem);
  color: var(--color-main-1);
  margin-bottom: 12px;
}

.heritage-text__item-inner {
  flex: 1;
}

.heritage-text__item-body {
  display: grid;
  grid-template-columns: 1fr clamp(80px, 14vw, 200px);
  gap: clamp(12px, 2vw, 24px);
  align-items: start;
}

.heritage-text__item-body > p {
  flex: 1;
  margin-bottom: 0;
}

/* 反転バリエーション：テキストを右下に、グラデーションを右下が最も透明に */
.heritage-section--reverse .heritage-text {
  align-self: end;
  justify-self: end;
  margin-right: clamp(100px, 10vw, 160px);
}

.heritage-section--reverse .heritage-text__body {
  margin-left: 0;
}

.heritage-section--reverse .heritage-bg__photo {
  -webkit-mask-image: linear-gradient(315deg, transparent 0%, transparent 12%, rgba(0, 0, 0, 0.85) 100%);
  mask-image: linear-gradient(315deg, transparent 0%, transparent 12%, rgba(0, 0, 0, 0.85) 100%);
}

.heritage-section + .heritage-section {
  margin-top: -24px;
}




/* ============================================================
   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);
}

/* ヘッダーの折り返し対策（1024px〜1250px） */

/* ハンバーガー（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;
}


.hero .container {
  position: relative;
  z-index: 2;
}

.hero__content {
  transform: translateY(175px);
}

.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;
}

/* ============================================================
   ② USP Section - 高野山高校の価値
   ============================================================ */
.usp-solution-section.section--odd::before,
.usp-solution-section.section--even::before {
  display: none;
}

.usp-solution-section.section--odd::before {
  background-color: var(--color-base-1);
}

.usp-solution-section.section--even::before {
  background-color: var(--color-base-2);
}

.usp-solution-section.section--odd {
  background-color: var(--color-base-1);
}

.usp-solution-section.section--even {
  background-color: var(--color-base-2);
}

/* 強調文字（金色の文字） */
.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;
}

.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 {
  margin-inline: 15vw;
  padding: 0;
  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-intro--large {
  max-width: none;
  margin: 0 auto 80px;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  line-height: 2.1;
}

.gakuryoku-ningensei-img {
  display: inline-block;
  max-width: clamp(200px, 40%, 400px);
  height: auto;
  vertical-align: middle;
}

/* ============================================================
   ③ 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 自身の幅(横)・高さ(縦)に対する%で指定しているため、
   どの画面幅でも縦横比・重なり方が一定に保たれる。
   width を dvh 基準の上限で頭打ちにすることで、4枚合計がおよそ
   画面の90dvh程度に収まるようにしている。 */
.dorm-collage {
  width: min(100%, 83dvh);
  aspect-ratio: 0.924;
  isolation: isolate;
}

.dorm-collage::before,
.dorm-collage::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

.dorm-collage::before {
  width: 70%;
  height: 46%;
  top: 0;
  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: 60%;
  height: 32%;
  left: 10%;
  bottom: 0;
  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;
}

/* 左上：サイズ10（基準） */
.dorm-collage__item--primary {
  top: 0;
  left: 0;
  width: 62%;
  aspect-ratio: 1.54;
  border-radius: 18px;
  z-index: 1;
}

/* 右上：サイズ6。左上と横10%重ね、縦に少し下へずらす */
.dorm-collage__item--secondary {
  top: 6.2%;
  left: 58.3%;
  width: 37.2%;
  aspect-ratio: 0.92;
  border-radius: 16px;
  z-index: 2;
}

/* 左下：サイズ5の約1.65倍(1.5×1.1)。上段との間のマージンは半分に縮小 */
.dorm-collage__item--tertiary {
  top: 53.9%;
  left: 0;
  width: 51.2%;
  aspect-ratio: 1.24;
  border-radius: 16px;
  z-index: 1;
}

/* 右下：左下と同じく約1.65倍。左下と横15%重ね、縦に少し下へずらす */
.dorm-collage__item--quaternary {
  top: 59.9%;
  left: 43.5%;
  width: 51.2%;
  aspect-ratio: 1.06;
  border-radius: 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;
}

.br-500 {
  display: none;
}


.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;
}



/* ============================================================
   ⑤ 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;
}


.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;
}

/* 強調行事（個別相談会・体験入学・体験入寮など）: 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)を差し引く */

.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;
}


/* ============================================================
   ⑦ 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-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;
}


/* ============================================================
   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);
}

/* ============================================================
   Utility
   ============================================================ */
.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;
}

/* ============================================================
   Responsive — Min-width (PC & Tablet)
   ============================================================ */

@media (min-width: 768px) {
  .growth-card__content {
    padding: 36px 40px;
  }
}

@media (min-width: 769px) and (max-width: 813px) {
  .problem-text__main {
    font-size: 0.95rem;
  }
}

@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);
  }

  .problem-text__decor {
    width: clamp(80px, 13vw, 124px);
    left: calc(-13vw - 4px);
  }

  .problem-visual {
    width: clamp(80px, 13vw, 124px);
    right: calc(-13vw - 4px);
  }
}

@media (min-width: 1025px) {
  .timeline-scroll-area {
    justify-content: safe center;
  }

  .timeline-container {
    max-width: clamp(700px, 68vw, 1100px);
  }

  .event-stage {
    max-width: clamp(584px, calc(68vw - 116px), 984px);
  }
}

@media (min-width: 1025px) and (max-width: 1250px) {
  .site-logo {
    font-size: calc(1.05rem - 2px);
  }

  .site-nav a {
    font-size: calc(0.85rem - 2px);
  }
}

@media (min-width: 1025px) and (max-width: 1650px) {
  .heritage-section--reverse .heritage-text {
    align-self: start;
    justify-self: start;
    margin-right: 0;
    margin-left: clamp(100px, 10vw, 160px);
    width: calc(60% - clamp(100px, 10vw, 160px));
  }

  .heritage-section--reverse .heritage-bg__photo {
    -webkit-mask-image: linear-gradient(135deg, transparent 0%, transparent 12%, rgba(0, 0, 0, 0.85) 100%);
    mask-image: linear-gradient(135deg, transparent 0%, transparent 12%, rgba(0, 0, 0, 0.85) 100%);
  }

  .heritage-section--reverse .heritage-text__lead {
    white-space: normal;
  }
}

/* ============================================================
   PC（1024px〜）: 右側固定CTAとの重なり防止
   デザイン・レイアウトは変更せず、CTAボタン分の左右余白を追加し
   コンテンツ全体を比例縮小して見せる。1024px付近で最大140pxの
   余白を確保し、画面幅が広がるにつれて約1800px付近まで段階的に
   余白を減らしながら元の値（40px/20px/0px）へ滑らかに戻す。
   ============================================================ */
@media (min-width: 1025px) {
  #solution-overview .container,
  .cta-section .container {
    padding-inline: clamp(40px, calc(272px - 13vw), 140px);
  }

  /* 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));
  }
}


/* ============================================================
   Responsive — Max-width (Tablet → SP)
   ============================================================ */

@media (max-width: 1024px) {
  .section-header .section-lead .pc-nowrap {
    white-space: normal;
  }

  .heritage-section--reverse .heritage-text {
    margin-right: 0;
  }

  .heritage-section + .heritage-section {
    margin-top: -28px;
  }

  .heritage-container {
    display: block;
    position: relative;
  }

  .heritage-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
  }

  .heritage-bg picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  .heritage-bg__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 70%;
    -webkit-mask-image: linear-gradient(160deg, transparent 0%, transparent 28%, rgba(0, 0, 0, 0.85) 100%);
    mask-image: linear-gradient(160deg, transparent 0%, transparent 28%, rgba(0, 0, 0, 0.85) 100%);
  }

  .heritage-section--reverse .heritage-bg__photo {
    -webkit-mask-image: linear-gradient(160deg, transparent 0%, transparent 28%, rgba(0, 0, 0, 0.85) 100%);
    mask-image: linear-gradient(160deg, transparent 0%, transparent 28%, rgba(0, 0, 0, 0.85) 100%);
  }

  .heritage-text {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-left: 0;
    padding: 32px 24px;
  }

  .heritage-section .heritage-text__lead {
    white-space: normal;
  }

  :root {
    --spacing-outer-normal: 80px;
    --spacing-outer-dense: 100px;
  }

  .problem-section {
    padding-top: 60px;
    padding-bottom: 20px;
  }

  .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;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .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-intro--large {
    font-size: clamp(0.95rem, 2.5vw, 1.3rem);
    line-height: 1.95;
    margin-bottom: 56px;
  }

  .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;
  }

  .dorm-layout {
    gap: 36px;
  }

  .solution-overview-grid {
    gap: 28px;
  }

  .solution-overview-media {
    aspect-ratio: auto;
    height: 280px;
  }

  /* 追従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 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;
  }
}

@media (max-width: 768px) {
  .problem-text__sub {
    font-size: clamp(1.2rem, 5.5vw, 1.6rem);
  }

  .problem-sub {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .problem-text__decor {
    width: 10vw;
    left: calc(-10vw - 4px);
  }

  .problem-visual {
    width: 10vw;
    right: calc(-10vw - 4px);
  }

  .problem-text__sub--top {
    order: 1;
    padding-bottom: 0;
  }

  .problem-text__sub--bottom {
    order: 3;
  }

  .heritage-text {
    width: 100%;
    margin-left: 0;
    padding: 28px 20px;
  }

  .heritage-section--reverse .heritage-text {
    margin-right: 0;
    align-self: start;
    justify-self: start;
  }

  .heritage-section + .heritage-section {
    margin-top: 0;
  }

  .heritage-section .heritage-text__lead {
    white-space: normal;
  }

  .heritage-bg__photo {
    object-position: center 70%;
  }

  .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;
  }

  .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;
  }

  :root {
    --spacing-outer-normal: 64px;
    --spacing-outer-dense: 80px;
    --spacing-inner: 24px;
  }

  html { font-size: 14px; }

  .container {
    padding-inline: 20px;
  }

  .site-header {
    position: sticky;
  }

  /* ヒーロー */
  .hero {
    min-height: 85vh;
    padding-block: 60px 80px;
  }

  .hero__image {
    object-position: center center;
  }

  .hero__content {
    transform: translateY(230px);
  }

  .hero__title {
    font-size: 1.9rem;
  }

  .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;
  }

  /* 寮 */
  .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;
    margin-inline: auto;
  }

  .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;
  }

  .sp-br {
    display: inline;
  }
}

@media (max-width: 500px) {
  .problem-layout {
    margin-inline: 5vw;
  }

  .problem-main {
    padding-inline: 0;
    padding-top: clamp(40px, 8vw, 60px);
    padding-bottom: 16px;
  }

  .problem-text__decor {
    width: clamp(60px, 9vw, 110px);
    left: 25%;
    bottom: 0;
  }

  .problem-visual {
    width: clamp(60px, 9vw, 110px);
    right: 25%;
    top: 0;
  }

  .problem-text__main {
    font-size: clamp(0.95rem, 5vw, 1.15rem);
    line-height: 1.7;
  }

  .problem-text__emphasis {
    font-size: 1.618em;
  }

  .problem-text__nowrap {
    white-space: normal;
  }

  .problem-visual__question {
    width: 46px;
    top: -14px;
    left: -14px;
  }

  .heritage-text {
    padding: 24px 18px;
  }

  .heritage-text__title {
    font-size: 1.65rem;
  }

  .heritage-text__body p {
    font-size: 1rem;
  }

  .hero__image--desktop {
    display: none;
  }
  .hero__image--mobile {
    display: block;
  }

  .br-500 {
    display: inline;
  }

  .sticky-cta__icon-frame {
    top: 0;
    left: 8px;
    width: 65px;
    height: 65px;
    padding: 8px;
    transform: translateY(4%);
  }
}

@media (max-width: 499px) {

  /* ① ヒーロー */
  .hero__content {
    transform: translateY(-110px);
  }

  /* ② 問いから始まる */
  .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-intro { font-size: 0.9rem; }
  .usp-intro--large { font-size: clamp(0.9rem, 4.5vw, 1.1rem); line-height: 1.85; margin-bottom: 40px; }

  /* ⑤ 寺院後継者を目指すための学び（オーバーレイ数字縮小） */
  .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; }
}

@media (max-width: 400px) {
  .sticky-cta__icon-frame {
    top: 0;
    left: 10px;
    width: 50px;
    height: 50px;
    padding: 8px;
    transform: translateY(32%);
  }
}

@media (max-width: 377px) {
  .usp-solution-container {
    margin-inline: 8px;
  }

  .usp-intro--large .problem-text__highlight {
    font-size: 1.35em;
  }
}

@media (max-width: 350px) {
  .hero__title {
    font-size: calc(1.9rem - 2px);
  }

  .hero__lead {
    font-size: calc(1rem - 2px);
  }
}

/* SP版（768px以下）: mondaiteiki1 を左下に半透明背景配置、mondaiteiki2 は非表示 */
@media (max-width: 768px) {
  .problem-text__decor {
    width: 75%;
    left: -15%;
    bottom: 0%;
    z-index: 0;
    transform: none;
  }

  .problem-text__decor-boy {
    transform: none;
    opacity: 0.17;
    filter: grayscale(1) brightness(1.8) contrast(0.9);
  }

  .problem-text__decor-question {
    display: block;
    opacity: 0.17;
  }

  .problem-visual {
    display: none;
  }

  .problem-text__main {
    color: #2D2D2D;
  }

  .problem-text__emphasis {
    font-weight: 700;
    color: #9A6F2A;
  }

  .problem-main {
    padding-bottom: 0px;
  }

  .problem-section {
    padding-top: 56px;
    padding-bottom: 16px;
  }

  .problem-layout {
    gap: 56px;
  }
}

@media (max-width: 624px) {
  .problem-layout {
    margin: 0;
  }
}

@media (max-width: 500px) {
  .problem-text__decor {
    width: 145%;
    left: -50%;
    bottom: 15%;
  }
}

