/* 💡 【整理】CSS全体をHTMLのDOM階層順（上から下）に再配置しました */

:root {
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-serif: 'Noto Serif JP', serif;
  --font-en: 'Cinzel', serif;
  
  --color-dark: #1b1917;
  --color-light: #faf8f5;
  --paper-deep: #efebe2;
  --ink-soft: #5b584f;
  --clay-gold: #b78c30;
  --clay-deep: #7a5c3a;
  --moss-green: #4a5842;
  --line-light: rgba(0, 0, 0, 0.08);
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font-sans);
  background-color: var(--color-light);
  color: var(--color-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* =========================================================
   💡 1. 全画面メニュー (HTML: .menu-overlay)
   ========================================================= */
.menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background: var(--color-dark); z-index: 999;
  opacity: 0; pointer-events: none; transition: opacity 0.5s ease;
}
.menu-overlay.active { opacity: 1; pointer-events: auto; }
.menu-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.5s ease;
}
.menu-container {
  position: relative; z-index: 2; height: 100%;
  display: flex; padding: 100px 60px;
}
.menu-kids { flex: 2; display: flex; flex-direction: column; justify-content: center; gap: 30px; }
.menu-kids .menu-link {
  color: white; font-family: var(--font-serif); font-size: 3vw; text-decoration: none;
  transition: opacity 0.3s;
}
.menu-kids:hover .menu-link:not(:hover) { opacity: 0.35; }
.menu-parents {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  color: white; font-family: var(--font-serif); border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: 40px;
}
.parents-title { font-size: 13px; opacity: 0.5; margin-bottom: 20px; letter-spacing: 2px; }
.menu-parents ul { list-style: none; }
.menu-parents li { margin-bottom: 16px; }
.menu-parents a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 16px; transition: color 0.3s; }
.menu-parents a:hover { color: var(--clay-gold); }

/* =========================================================
   💡 2. ヘッダー・ロゴ・メニューボタン (HTML: .header)
   ========================================================= */
.header {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 64px);
  max-width: 1160px;
  height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  pointer-events: none;
  transition: top 1.2s cubic-bezier(0.19, 1, 0.22, 1), width 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.header-island {
  pointer-events: auto;
  height: 100%;
  display: flex;
  align-items: center;
  border-radius: 100px;
  background: rgba(250, 248, 245, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.logo-island { padding: 0 28px; }
.header-spacer { flex-grow: 1; transition: flex-grow 1.2s cubic-bezier(0.19, 1, 0.22, 1); }
.menu-island { width: 60px; justify-content: center; }

.header.is-scrolled {
  top: 14px;
  width: calc(100% - 80px);
}
.header.is-scrolled .header-island {
  background: rgba(247, 242, 232, 0.92);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.header.is-scrolled .header-spacer { flex-grow: 0; width: 0; }
.header.is-scrolled .logo-island { flex-grow: 1; margin-right: -16px; border-top-right-radius: 12px; border-bottom-right-radius: 12px; }
.header.is-scrolled .menu-island { width: 72px; border-top-left-radius: 12px; border-bottom-left-radius: 12px; }

.logo {
  font-family: var(--font-serif);
  font-size: 15px; font-weight: 600; letter-spacing: 2px;
  text-decoration: none; color: var(--color-dark); white-space: nowrap;
}
.header.menu-open .logo { color: var(--clay-gold); }

.menu-toggle {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 100%; height: 100%; z-index: 1001;
}
.menu-toggle span {
  display: block; width: 20px; height: 1.5px; background: var(--color-dark);
  transition: transform 0.3s, background-color 0.3s;
}

/* =========================================================
   💡 3. ヒーローセクション (HTML: .hero)
   ========================================================= */
.hero { 
  height: 100vh; position: sticky; top: 0; z-index: 1; overflow: hidden; 
}
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-content {
  position: absolute; bottom: 100px; left: 60px; color: white;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4); z-index: 2;
}
.hero-title { font-family: var(--font-serif); font-size: 4.2vw; line-height: 1.3; font-weight: 400; letter-spacing: 2px; text-shadow: 
    0 2px 4px rgba(120, 90, 40, 0.8),
    0 0 10px rgba(184, 134, 11, 0.6);}
.hero-subtitle { font-family: var(--font-sans); font-size: 24px; letter-spacing: 4px; margin-top: 16px; opacity: 0.9; text-shadow: 
    0 1px 3px rgba(120, 90, 40, 0.8);}

.hero-content.theme-light .hero-title {
  color: #ffffff;
  text-shadow: 
    0 2px 4px rgba(90, 60, 20, 0.75),
    0 0 12px rgba(184, 134, 11, 0.5);
}
.hero-content.theme-light .hero-subtitle {
  color: #ffffff;
  text-shadow: 
    0 1px 3px rgba(90, 60, 20, 0.8),
    0 0 8px rgba(184, 134, 11, 0.4);
}

.hero-content.theme-dark .hero-title {
  color:#4f4943; 
  text-shadow: 
    0 0 50px rgba(255, 255, 255, 1),
    0 0 30px rgba(255, 255, 255, 0.9),
    0 2px 6px rgba(0, 0, 0, 0.15);
  }
.hero-content.theme-dark .hero-subtitle {
  color:#4f4943;;
  text-shadow: 
    0 0 12px rgba(255, 255, 255, 1),
    0 0 20px rgba(255, 255, 255, 0.9),
    0 2px 4px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   💡 4. コンテンツレイヤー ＆ 霧演出 (HTML: .content-layer, .scroll-cloud-section)
   ========================================================= */
.content-layer {
  position: relative; z-index: 10;
  background-color: var(--color-light);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.12);
  border-top-left-radius: 28px; border-top-right-radius: 28px;
}

.scroll-cloud-section {
  position: relative;
  width: 100%;
  height: 300vh;
  background-color: var(--color-light);
  z-index: 5;
}

.scroll-cloud-section .sticky-container {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 雲が晴れた後に出現するコンテンツ */
.revealed-content {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  z-index: 1; opacity: 0;
  transform: scale(0.95) translateY(30px);
  pointer-events: none;
  transition: opacity 0.1s ease-out, transform 0.1s ease-out;
  background-image: linear-gradient(rgba(250, 248, 245, 0.76), rgba(250, 248, 245, 0.76)), url('./chapel2.jpg');
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.revealed-content.is-active { pointer-events: auto; }

.revealed-inner { max-width: 1100px; width: 100%; padding: 0 40px; display: flex; align-items: center; justify-content: center; }

.reveal-copy-switch { width: min(1040px, 100%); min-height: min(58vh, 640px); position: relative; display: flex; align-items: center; justify-content: center; text-align: center; }

.reveal-copy-panel {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(0.985); filter: blur(8px);
  transition: opacity 1.1s cubic-bezier(0.2, 0.7, 0.2, 1), transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 1.1s ease, filter 1.1s ease;
}

.reveal-copy-panel.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); filter: blur(0); }
.reveal-copy-panel.is-visible .reveal-title-serif { animation: copyFloat 2.2s ease-in-out 0.2s infinite alternate; }

.reveal-copy-panel .reveal-title-serif {
  max-width: 980px; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.62; font-weight: 500; margin: 0; color: var(--clay-gold);
}
.reveal-copy-panel .reveal-tag { display: inline-block; font-size: 11px; letter-spacing: 4px; margin-bottom: 24px; color: var(--clay-gold); }

@keyframes copyFloat {
  from { transform: translateY(0px); opacity: 0.98; }
  to { transform: translateY(-5px); opacity: 1; }
}

/* 霞 & フォグレイヤー */
.fog-layer-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }

.fog-backdrop {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(250, 248, 245, 0.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); 
  opacity: 0.4; will-change: opacity;
}

.fog-element {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 254, 250, 0.98) 0%, rgba(255, 253, 247, 0.8) 45%, rgba(255, 253, 247, 0.5) 60%, rgba(255, 253, 247, 0) 75%);
  filter: blur(40px); will-change: transform, opacity;
}

.fog-top-1 { width: 100vw; height: 50vh; bottom: -15vh; left: -15vw; opacity: 0.95; z-index: 10; }
.fog-top-2 { width: 120vw; height: 60vh; bottom: -25vh; right: -20vw; opacity: 0.9; z-index: 8; }
.fog-bottom-1 { width: 100vw; height: 50vh; top: -15vh; left: -15vw; opacity: 0.95; z-index: 10; }
.fog-bottom-2 { width: 120vw; height: 60vh; top: -25vh; right: -20vw; opacity: 0.9; z-index: 8; }

.fog-stream {
  position: absolute;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255, 254, 250, 0.85) 25%, rgba(255, 254, 250, 0.85) 75%, rgba(255,255,255,0) 100%);
  filter: blur(25px); will-change: transform, opacity; z-index: 11;
}

.fog-stream-1 { width: 120%; height: 180px; top: 25%; left: -10%; transform: rotate(-3deg); opacity: 0.8; }
.fog-stream-2 { width: 130%; height: 220px; bottom: 20%; left: -15%; transform: rotate(2deg); opacity: 0.75; }

@media (max-width: 900px) {
  .revealed-inner { padding: 0 24px; }
  .reveal-copy-switch { min-height: 48vh; }
  .reveal-copy-panel .reveal-title-serif { font-size: 24px; line-height: 1.5; }
}

@media (max-width: 600px) {
  .fog-top-1, .fog-bottom-1 { width: 150vw; height: 35vh; left: -25vw; }
  .fog-top-2, .fog-bottom-2 { width: 160vw; height: 40vh; right: -30vw; }
  .fog-stream-1 { height: 100px; }
  .fog-stream-2 { height: 120px; }
}


/* =========================================================
   💡 セクション共通見出し (HTML内で複数回使用)
   ========================================================= */
.section-header-center { text-align: center; margin-bottom: 30px; }
.section-sub { font-family: var(--font-en); font-size: 11px; letter-spacing: 4px; color: var(--clay-gold); display: block; margin-bottom: 8px; }
.section-title-serif { font-family: var(--font-serif); font-size: 30px; font-weight: 600; letter-spacing: 2px; color: var(--color-dark); }
.title-divider { width: 30px; height: 1px; background-color: var(--clay-gold); margin: 16px auto 0; }


/* =========================================================
   💡 5. お知らせ (HTML: .news)
   ========================================================= */
.news { position: relative; padding: 40px 0 100px 0; }
.news-container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.news-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; }

.section-title { font-family: var(--font-serif); font-size: 28px; font-weight: 600; letter-spacing: 2px; }
.section-title .en { display: block; font-family: var(--font-en); font-size: 11px; letter-spacing: 3px; color: var(--clay-gold); margin-top: 4px; }

.news-archive-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--color-dark); font-size: 14px; letter-spacing: 1px; }
.news-archive-link .arrow-circle { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.news-archive-link:hover .arrow-circle { background: var(--color-dark); color: white; transform: translateX(4px); }

.news-filter-bar { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 0; border-bottom: 1px solid var(--line-light); padding-bottom: 16px; }
.tag-scroll-area { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.tag-chip, .modal-tag-btn { background: white; border: 1px solid rgba(0,0,0,0.1); padding: 6px 16px; border-radius: 100px; font-size: 12px; color: var(--ink-soft); cursor: pointer; transition: all 0.25s; }
.tag-chip.active, .modal-tag-btn.active { background: var(--color-dark); color: white; border-color: var(--color-dark); }

.tag-modal-trigger { background: var(--paper-deep); border: none; padding: 6px 14px; border-radius: 6px; font-size: 12px; color: var(--color-dark); cursor: pointer; display: flex; align-items: center; gap: 6px; }

.news-content { display: grid; grid-template-columns: 1fr 440px; gap: 48px; }
.news-right { position: sticky; top: 100px; }
.news-display-img { width: 100%; height: 420px; border-radius: 16px; background-size: cover; background-position: center; box-shadow: 0 10px 30px rgba(0,0,0,0.06); transition: background-image 0.4s ease; background-image: url('./chapel_sakura.png'); }

.news-list { list-style: none; }
.news-item.is-hidden { display: none; }
.news-link { display: block; padding: 20px 0; text-decoration: none; color: var(--color-dark); border-bottom: 1px solid var(--line-light); transition: padding 0.3s; }
.news-link:hover { padding-left: 8px; color: var(--clay-gold); }
.news-link:hover .news-title { color: var(--clay-gold); }
.news-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 0; }
.news-date { font-family: var(--font-en); font-size: 12px; color: #888; }
.tag-badge { font-size: 10px; color: var(--clay-gold); background: rgba(183, 140, 48, 0.08); padding: 2px 6px; border-radius: 4px; }
.news-title { font-size: 15px; font-weight: 500; line-height: 1.6; transition: color 0.3s ease; color: var(--color-dark); }

.tag-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.tag-modal.is-open { opacity: 1; pointer-events: auto; }
.tag-modal-backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); }
.tag-modal-dialog { position: relative; width: calc(100% - 40px); max-width: 520px; background: var(--color-light); border-radius: 16px; padding: 32px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.tag-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid var(--line-light); padding-bottom: 12px; }
.tag-modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #888; }
.tag-group { margin-bottom: 16px; }
.group-title { font-size: 11px; font-weight: 700; color: #888; display: block; margin-bottom: 8px; }
.group-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* =========================================================
   💡 6. 学びの特色 (HTML: .learning-feature-scroll)
   ========================================================= */
.learning-feature-scroll {
  min-height: 500vh;
  background: var(--color-light);
  position: relative;
}

.learning-feature-stage {
  position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 90px clamp(24px, 4vw, 86px); box-sizing: border-box;
}

.feature-header-block {
  position: absolute; top: 72px; left: clamp(40px, 6vw, 104px); right: clamp(40px, 6vw, 104px); z-index: 4; text-align: center;
}
.feature-header-block .section-title-serif {
  font-size: clamp(34px, 4.8vw, 50px); line-height: 1.05; margin-top: 10px;
}
.feature-header-block .title-divider {
  margin-top: 20px;
}

.feature-slide-rail {
  position: absolute; z-index: 5; left: clamp(20px, 2.7vw, 34px); top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 10px; color: var(--clay-gold);
}
.feature-slide-rail .feature-slide-number {
  display: inline-block; font-family: var(--font-en); font-size: clamp(34px, 4vw, 52px); line-height: 1; font-weight: 600; color: var(--clay-gold);
}
.feature-slide-rail .feature-slide-separator,
.feature-slide-rail .feature-slide-total {
  font-family: var(--font-en); font-size: 20px; color: rgba(35, 30, 19, 0.62);
}

.learning-slide-deck {
  position: relative; width: min(100%, 1180px); height: min(620px, 72vh); min-height: min(620px, 72vh); margin: 94px auto 0;
}

.learning-slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(250,244,233,0.95)); border: 1px solid rgba(90, 65, 15, 0.16);
  box-shadow: 0 30px 90px rgba(32, 28, 22, 0.12); opacity: 0; transform: translateX(12%) scale(0.98);
  transition: opacity 0.62s ease, transform 0.82s cubic-bezier(.2,.8,.2,1), filter 0.62s ease; filter: blur(8px); overflow: hidden;
}

.learning-slide.is-active {
  opacity: 1; transform: translateX(0) scale(1); filter: blur(0);
}

.learning-slide-content {
  position: relative; z-index: 1; width: 100%; height: 100%; min-height: min(620px, 72vh);
  display: grid; grid-template-columns: minmax(420px, 1fr) minmax(320px, 0.88fr); align-items: stretch;
}

.slide-copy {
  display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 4vw, 88px);
}
.slide-copy h3 {
  font-family: var(--font-serif); font-size: clamp(36px, 4.1vw, 58px); line-height: 1.03; letter-spacing: 1px; color: var(--color-dark); margin: 12px 0 22px;
}
.slide-kicker {
  display: inline-block; font-family: var(--font-en); font-size: 12px; letter-spacing: 3px; color: var(--clay-gold);
}
.slide-lead {
  font-size: clamp(20px, 2.2vw, 28px); line-height: 1.55; margin-bottom: 24px; color: var(--color-dark);
}
.slide-body-text {
  max-width: 560px; font-size: 16px; line-height: 2; color: rgba(35, 30, 19, 0.82);
}

.slide-image-panel {
  position: relative; min-height: 100%; background: var(--color-sage-soft);
}
.slide-image-panel:after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent, rgba(255,255,255,0.18)); pointer-events: none;
}
.slide-image-wrap {
  position: absolute; inset: 26px; overflow: hidden; border-radius: 16px;
}
.slide-image {
  width: 100%; height: 100%; object-fit: cover;
}

.learning-slide:nth-child(1) .slide-image-panel { background: linear-gradient(120deg, #ded6b4, #efe8d5); }
.learning-slide:nth-child(2) .slide-image-panel { background: linear-gradient(120deg, #bfcaaa, #ecead9); }
.learning-slide:nth-child(3) .slide-image-panel { background: linear-gradient(120deg, #b9b09b, #f3eadc); }
.learning-slide:nth-child(4) .slide-image-panel { background: linear-gradient(120deg, #b2b2a9, #e9e6df); }
.learning-slide:nth-child(5) .slide-image-panel { background: linear-gradient(120deg, #d1d1bd, #efe9d6); }

/* =========================================================
   💡 学びの特色：プログラムリスト (追加)
   ========================================================= */
.slide-program-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.program-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* スマホで長くなった時に綺麗に折り返す */
  gap: 4px;
  margin-bottom: 6px;
}

.program-badge {
  font-family: var(--font-serif);
  color: var(--clay-gold);
  font-weight: 600;
  font-size: 15px;
  margin-left: -6px; /* 「【」の左側の余白を少し詰めて視覚的に揃える */
}

.program-title {
  font-weight: 500;
  color: var(--color-dark);
  font-size: 15px;
}

.program-desc {
  font-size: 13px;
  color: rgba(35, 30, 19, 0.82);
  line-height: 1.6;
  margin: 0;
  padding-left: 12px;
  border-left: 1px solid rgba(183, 140, 48, 0.3); /* ゴールドの細線をあしらう */
}

/* =========================================================
   💡 「世界人たれ」スライドの画像飛び出し演出用
   ========================================================= */
#sekaijin-wrap {
  overflow: visible !important; /* 画像が枠からはみ出せるようにする */
  position: relative;
  z-index: 100; /* テキストや他の要素よりも手前に持ってくる */
}

#sekaijin-img {
  transform-origin: center center; /* 画像の中心を基準に拡大する */
  will-change: transform, opacity; /* アニメーションを滑らかにするおまじない */
}
/* =========================================================
   💡 スライド5「世界人たれ」の画像全表示 ＆ 枠超えアニメーション設定
   ========================================================= */

/* 1. 画像が見切れないように全体を表示 (cover から contain へ変更) */
article[data-slide-index="4"] .slide-image {
  object-fit: contain !important;
}

/* 2. カードコンテナの「はみ出し制限」を解除して飛び出せるようにする */
article[data-slide-index="4"],
article[data-slide-index="4"] .learning-slide-content,
article[data-slide-index="4"] .slide-image-panel,
article[data-slide-index="4"] .slide-image-wrap {
  overflow: visible !important;
}

/* 3. 飛び出した画像が他の要素（次のセクションなど）の裏に隠れないように最前面へ設定 */
article[data-slide-index="4"] {
  position: relative;
  z-index: 100;
}

article[data-slide-index="4"] .slide-image {
  position: relative;
  z-index: 9999;
}

@media (max-width: 900px) {
  .learning-feature-stage { padding-inline: 12px; }
  .learning-slide-deck { margin-top: 120px; }
  .learning-slide-content { grid-template-columns: 1fr; }
  .slide-image-panel { min-height: 250px; }
  .slide-image-wrap { position: relative; inset: auto; min-height: 250px; }
  .slide-copy { padding: 34px 24px; }
  .feature-slide-rail { top: 120px; transform: none; }
}

/* =========================================================
   💡 「3つの芸術をリンクした学び」余白＆パララックス準備
   ========================================================= */
.gs-topics-section {
  position: relative;
  z-index: 5;
  margin-top: 140px;
  padding-top: 40px; /* 直前の演出からの切り替えのためのゆとり */
  padding-bottom: 120px;
}

/* アニメーションの描画を滑らかにする設定 */
.section-header-center,
.gs-topic-card-wrapper {
  will-change: transform, opacity;
}

@media (max-width: 768px) {
  .gs-topics-section {
    padding-top: 100px;
    padding-bottom: 80px;
  }
}

/* --- 共通のホバーアクション（動きや線の色など） --- */
.topic-card-wrapper:hover .card-deco-layer {
  transform: translate(4px, 4px);
  border-color: rgba(183, 140, 48, 0.8);
}

/* --- 1枚目のカードのホバー時の塗りつぶし色 --- */
.topic-card-wrapper:nth-child(1):hover .card-deco-layer {
  background-color: #E8A87C; /* 例：温かみのあるテラコッタ系 */
}

/* --- 2枚目のカードのホバー時の塗りつぶし色 --- */
.topic-card-wrapper:nth-child(2):hover .card-deco-layer {
  background-color: #85CDCA; /* 例：爽やかなブルーグリーン系 */
}

/* --- 3枚目のカードのホバー時の塗りつぶし色 --- */
.topic-card-wrapper:nth-child(3):hover .card-deco-layer {
  background-color: #C38D9E; /* 例：落ち着いたモーヴ・ピンク系 */
}


/* =========================================================
   💡 7. 3つの芸術トピック (HTML: .topics, .card-container)
   ========================================================= */


.three-arts-grid { 
  display: grid !important; 
  grid-template-columns: repeat(3, 1fr) !important; 
  gap: 40px !important;
  width: min(100%, 1180px);
  max-width: 1180px;
  margin: 0 auto;
  box-sizing: border-box;
  padding-inline: clamp(16px, 3vw, 40px);
  will-change: transform, opacity;
}

@media (max-width: 768px) {
  .gs-topics-section {
    margin-top: 80px;
    padding-bottom: 80px;
  }
}

.topic-card-wrapper {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  cursor: pointer;
  filter: grayscale(1) saturate(0.8);
  transition: filter 0.55s ease, transform 0.55s ease, opacity 0.55s ease;
  padding-right: 12px;
  padding-bottom: 12px;
}

.topic-card-wrapper:hover,
.topic-card-wrapper:focus-within {
  filter: grayscale(0) saturate(1.1);
}

.card-deco-layer {
  position: absolute;
  top: 12px;
  left: 12px;
  width: calc(100% - 12px); 
  height: calc(100% - 12px);
  border: 1px solid rgba(183, 140, 48, 0.4); 
  border-radius: 16px; 
  z-index: 0;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.topic-card {
  position: relative;
  z-index: 1; 
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease;
  background: #1b1917;
}

.topic-card-wrapper:hover .topic-card {
  transform: translateY(-8px); 
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.topic-card-wrapper:hover .card-deco-layer {
  transform: translate(4px, 4px); 
  border-color: rgba(183, 140, 48, 0.8);
}

.card-media { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
.parallax-img-wrapper { width: 100%; height: 100%; overflow: hidden; }
.gs-parallax-inner { width: 100%; height: 130%; transform: translateY(-15%); }
.hover-scale-img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }

.topic-card-wrapper:hover .hover-scale-img {
  transform: scale(1.06); 
}

.media-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(27, 25, 23, 0) 30%, rgba(27, 25, 23, 0.4) 60%, rgba(27, 25, 23, 0.9) 100%);
  transition: opacity 0.6s ease;
}
.topic-card-wrapper:hover .media-overlay { opacity: 0.7; }

.card-content { position: absolute; bottom: 30px; left: 30px; right: 30px; color: white; z-index: 2; pointer-events: none; }
.badge-subtle { display: inline-block; font-family: var(--font-en); font-size: 10px; letter-spacing: 2px; padding: 5px 12px; border-radius: 100px; margin-bottom: 12px; }
.card-content h3 { font-size: 20px; margin-bottom: 8px; }
.card-desc { font-size: 13px; transform: translateY(8px); }
.card-kicker { font-size: 11px; margin-top: 6px; }
/* =========================================================
   💡 8. 創立の思い
   ========================================================= */
.three-arts { 
  padding: 120px 0; 
  background-color: var(--color-light); /* 元の背景色 */
  transition: background-color 1.5s ease; /* 💡 1.5秒かけて滑らかに色を変える */
}

/* 💡 スクロールして画面に入った時に付与されるクラス */
.three-arts.is-active-bg {
  /* 演出したい背景色を指定（例：少し深みのあるダークグレーなど） */
  background-color: #aca8a2; 
}

.three-arts-container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

.art-card {
  position: relative; height: 70vh; min-height: 500px; margin-bottom: 40px;
  border-radius: 20px; overflow: hidden; display: flex; align-items: flex-end; padding: 60px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}
.art-card:last-child { margin-bottom: 0; }
.art-media { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; }
.parallax-img { width: 100%; height: 120%; object-fit: cover; }
.art-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 20%, rgba(15,13,11,0.85) 100%);
}

.art-content {
  position: relative; z-index: 2; color: white; display: flex; justify-content: space-between;
  align-items: flex-end; width: 100%; gap: 40px;
}
.art-tag { display: inline-block; font-family: var(--font-en); font-size: 11px; letter-spacing: 3px; color: var(--clay-gold); margin-bottom: 12px; }
.art-title-serif { font-family: var(--font-serif); font-size: 3vw; font-weight: 400; line-height: 1.35; letter-spacing: 2px; }
.art-philosophy { flex: 0 0 380px; background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 28px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.15); }
.art-philosophy h4 { font-family: var(--font-serif); font-size: 16px; margin-bottom: 8px; color: var(--clay-gold); letter-spacing: 1px; }
.art-philosophy p { font-size: 13px; line-height: 1.7; opacity: 0.9; font-weight: 300; }

/* =========================================================
   🔘 ボタン化とホバーアクションの追加
   ========================================================= */

/* --- ボタンとしての基本設定 --- */
.art-philosophy.art-link-btn {
  display: block; /* クリック範囲を広げる */
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  /* 💡元のすりガラスデザインを活かすため、背景色やpaddingの上書きは行いません */
}

/* --- ホバー（マウスカーソルを乗せたとき）のアクション --- */
.art-philosophy.art-link-btn:hover {
  transform: translateY(-4px); /* 少し上に浮く */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); /* 背景が暗いので、影は少し濃いめに設定 */
  background: rgba(255, 255, 255, 0.15); /* 💡ベタ塗りにせず、すりガラスのまま少し明るくしてホバー感を出す */
  border-color: var(--clay-gold, #b78c30); /* 枠線をテーマカラーに変化させる */
}

/* --- リンクであることを示す矢印アイコン --- */
.art-philosophy.art-link-btn::after {
  content: '→';
  position: absolute;
  bottom: 28px; /* 💡元のpadding(28px)に合わせて位置を微調整 */
  right: 28px;
  font-size: 18px;
  color: var(--clay-gold, #b78c30);
  
  /* 初期状態では少し左にずらして透明にする */
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- ホバー時に矢印をスライド表示 --- */
.art-philosophy.art-link-btn:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* =========================================================
   💡 9. 学院だより (HTML: .journal)
   ========================================================= */
.journal { padding: 120px 0; background: var(--paper-deep); }
.journal-container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.journal-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 50px; border-bottom: 1px solid rgba(0,0,0,0.08); padding-bottom: 24px; }
.journal-intro { font-size: 13px; color: var(--ink-soft); max-width: 420px; line-height: 1.7; }

.journal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.journal-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.04); transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer; }
.journal-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(0,0,0,0.08); }

.journal-thumb { position: relative; height: 220px; overflow: hidden; }
.journal-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.journal-card:hover .journal-thumb img { transform: scale(1.05); }

.journal-category { position: absolute; top: 16px; left: 16px; background: rgba(255, 255, 255, 0.9); font-size: 11px; padding: 4px 10px; border-radius: 4px; color: var(--color-dark); font-weight: 500; }
.journal-body { padding: 24px; }
.journal-date { font-family: var(--font-en); font-size: 11px; color: #999; display: block; margin-bottom: 8px; }
.journal-title { font-family: var(--font-serif); font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--color-dark); }

/* =========================================================
   💡 10. フッター (HTML: .footer)
   ========================================================= */
.footer { background: var(--color-dark); color: white; position: relative; padding-top: 60px; }
.footer-top { position: absolute; top: -28px; left: 50%; transform: translateX(-50%); }

.back-to-top {
  width: 56px; height: 56px; background: var(--clay-gold); color: white; border: none; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,0.2); transition: transform 0.3s, background-color 0.3s;
}
.back-to-top:hover { transform: translateY(-4px); background: #c89c3a; }
.top-arrow { font-size: 14px; line-height: 1; }
.top-text { font-family: var(--font-en); font-size: 9px; letter-spacing: 1px; margin-top: 2px; }

.footer-container { max-width: 1160px; margin: 0 auto; padding: 60px 32px; display: flex; justify-content: space-between; gap: 60px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-title { font-family: var(--font-serif); font-size: 18px; font-weight: 400; line-height: 1.6; margin-bottom: 16px; letter-spacing: 1px; }
.footer-address { font-size: 13px; opacity: 0.6; line-height: 1.8; font-weight: 300; }

.footer-nav { display: flex; gap: 60px; }
.footer-col-ttl { font-family: var(--font-serif); font-size: 13px; color: var(--clay-gold); display: block; margin-bottom: 16px; letter-spacing: 1px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 13px; transition: color 0.3s; }
.footer-col a:hover { color: white; }

.footer-bottom { padding: 24px 32px; text-align: center; }
.copyright { font-family: var(--font-en); font-size: 11px; opacity: 0.4; letter-spacing: 1px; }

/* =========================================================
   💡 右下追従トップへ戻るボタン (追加)
   ========================================================= */
.floating-back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 56px;
  height: 56px;
  background: var(--clay-gold);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s, background-color 0.3s;
}

/* スクロールして表示された時の状態 */
.floating-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ホバー時の浮き上がり効果 */
.floating-back-to-top.is-visible:hover {
  transform: translateY(-4px);
  background: #c89c3a;
}

@media (max-width: 900px) {
  .floating-back-to-top {
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
  }
}

/* スマホ等レスポンシブ最適化の一括まとめ（トピック以降） */
@media (max-width: 900px) {
  /* ニュース */
  .news-content { grid-template-columns: 1fr; }
  .news-right { display: none; }
  /* トピックカード */
  .three-arts-grid { grid-template-columns: 1fr; gap: 24px; }
  .topic-card-wrapper { max-width: 400px; margin: 0 auto; }
  .topic-card { height: 360px; }
  .card-content { bottom: 24px; left: 24px; right: 24px; }
  /* 三つの柱 */
  .art-card { height: auto; padding: 40px 24px; }
  .art-content { flex-direction: column; align-items: flex-start; }
  .art-title-serif { font-size: 24px; }
  .art-philosophy { flex: none; width: 100%; margin-top: 24px; }
  /* フッター周辺 */
  .journal-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-container { flex-direction: column; gap: 40px; }
  .footer-nav { flex-direction: column; gap: 30px; }
}

/* =========================================================
   💡 --- 右下固定のフローティングバナー --- 
   ========================================================= */
/* --- バナーの大枠と非表示設定 --- */
.floating-banner {
  position: fixed;
  bottom: 100px; /* TOPへ戻るボタン（右下）の上に配置する想定の数値 */
  right: 30px;
  z-index: 100;
  
  /* 最初は透明にして隠しておく */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  
  background-color: #ffffff; /* 白背景でサムネイルを際立たせる */
  border: 2px solid var(--clay-gold, #b78c30); /* サイトカラーで枠線 */
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 12px;
  width: max-content;

/* 💡 ここから追加：方眼紙の模様を描画する */
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
  background-size: 10px 10px; /* 1マスの大きさを指定（10px四方） */


}

/* --- スクロールして出現した時の状態（JSでこのクラスを付与します） --- */
.floating-banner.is-visible {
  opacity: 1;
  visibility: visible;
  /* 3秒かけて上下に動くアニメーションを無限に繰り返す */
  animation: float-animation 3s ease-in-out infinite;
}

/* --- ふわふわ浮遊するアニメーションの定義 --- */
@keyframes float-animation {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); /* 8px上に浮く */ }
  100% { transform: translateY(0); }
}

/* --- バナーの中身のレイアウト --- */
.banner-content {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: #333;
}

/* --- サムネイル画像 --- */
.banner-thumb {
  width: 100px;
  height: 100px;
  object-fit: cover; /* 画像の縦横比を保ちつつトリミング */
  border-radius: 8px; /* 画像の角を少し丸く */
}

/* --- テキスト --- */
.banner-text {
  font-weight: bold;
  font-size: 14px;
  line-height: 1.4;
  /* 💡ここから追加：左側に薄い罫線を入れる */
 /* border-left: 1px solid #e0e0e0; /* 薄いグレーの線 */
  /*padding-left: 15px; /* 線とテキストの間に余白を持たせる */

  /* 💡ここから追加：下部に薄い罫線を入れる */
 /* border-bottom: 1px solid #ccc; /* 薄いグレーの下線 */
 /* padding-bottom: 2px; /* 文字と線の間の余白 */

}

/* --- 閉じる(X)ボタン --- */
.banner-close-btn {
  position: absolute;
  top: -12px;   /* バナーの少し外側（右上）にはみ出させる */
  right: -12px;
  width: 26px;
  height: 26px;
  background-color: #555;
  color: #fff;
  border: none;
  border-radius: 50%; /* まん丸にする */
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background-color 0.2s;
}

.banner-close-btn:hover {
  background-color: #333;
}

/* --- スマホ用の微調整 --- */
@media (max-width: 768px) {
  .floating-banner {
    bottom: 80px;
    right: 20px;
    padding: 10px;
  }
  .banner-thumb {
    width: 50px;
    height: 50px;
  }
  .banner-text {
    font-size: 12px;
  }
}

/* =========================================================
   💡 3つの芸術 モーダル＆カルーセル（完全統合版）
   ========================================================= */

/* 1. モーダル全体構造 */
.art-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* JavaScriptで開いた時に表示される設定 */
.art-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.art-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 13, 11, 0.75);
  backdrop-filter: blur(8px);
}

.art-modal-dialog {
  position: relative;
  width: min(92vw, 1000px);
  height: min(85vh, 650px);
  background: var(--color-light);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.art-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 20;
  background: rgba(27, 25, 23, 0.6);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.3s;
}
.art-modal-close:hover {
  background: var(--clay-gold);
}

/* 2. カルーセル構造 */
.art-carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.art-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.art-slide {
  min-width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  box-sizing: border-box;
}

.art-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 3. テキストコンテンツ（固定位置＆矢印回避の余白） */
.art-slide-content {
  padding: 60px 70px 60px 40px; /* 右パディング70pxで矢印の被りを防止 */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* 上揃えで固定 */
  overflow-y: auto;
  background: var(--color-light);
}

.art-slide-tag {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--clay-gold);
  margin-bottom: 12px;
  line-height: 1.2;
}

.art-slide-title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 26px);
  margin-bottom: 20px;
  color: var(--color-dark);
  line-height: 1.4;
  min-height: 2.8em; /* タイトルの行数差による本文位置のズレを防止 */
  display: flex;
  align-items: flex-start;
}

.art-slide-text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-soft);
}

/* 4. カルーセル操作ボタン・ドット */
.art-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 16px;
  color: var(--color-dark);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.art-carousel-nav:hover {
  background: var(--clay-gold);
  color: #ffffff;
  border-color: var(--clay-gold);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.art-carousel-nav.prev { left: 16px; }
.art-carousel-nav.next { right: 16px; }

.art-carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.art-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.art-dot.is-active {
  background: var(--clay-gold);
  width: 24px;
  border-radius: 10px;
}

/* 5. レスポンシブ */
@media (max-width: 768px) {
  .art-slide {
    grid-template-columns: 1fr;
    grid-template-rows: 220px 1fr;
  }
  .art-slide-content {
    padding: 30px 20px 60px 20px;
  }
  .art-slide-title {
    min-height: auto;
  }
  .art-carousel-nav {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
  .art-carousel-nav.prev { left: 8px; }
  .art-carousel-nav.next { right: 8px; }
}