@charset "UTF-8";

/* =========================================================
   創立10周年記念誌専用スタイルシート
   ベースカラー: ディープバイオレット (#4a2e7c) / ゴールド (#d4af37)
========================================================= */

/* --- 1. 全体のリセットと基本設定 --- */
html {
  scroll-behavior: smooth; /* メニュークリックでスクロールさせる */
}

body.anniversary-10th {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  background-color: #fafafa;
  color: #333;
}

/* 記念誌ページでは標準のCocoonのヘッダー・フッターや余分な余白を非表示にする（念のため） */
.anniversary-10th #header,
.anniversary-10th #footer,
.anniversary-10th #sidebar {
  display: none !important;
}

/* 各コンテンツセクションの基本設定 */
.content-section {
  padding: 80px 20px; /* 上下に余白を取る */
  min-height: 100vh; /* 各セクションが最低でも画面の高さいっぱいになるように */
}

/* =========================================================
   見出し（h2）デザイン
========================================================= */

.content-section {
  text-align: center;
}

.content-section h2 {
  position: relative;
  font-size: 1.8rem;
  color: #2b1754; /* 濃く重厚感のある紫 */
  font-weight: 900; /* インパクトのある極太文字 */
  text-align: center;
  padding: 22px 20px;
  margin: 0 auto 50px auto;
  width: 100%;
  max-width: 1100px;
  box-sizing: border-box;
  
  /* 直線的な「すりガラス＋左右に溶け込むグラデーション」の帯 */
  background: linear-gradient(
    90deg, 
    rgba(255, 255, 255, 0) 0%,     /* 左端は完全に透明に溶かす */
    rgba(255, 255, 255, 0.9) 15%,   /* 中央に向かって薄い白のすりガラスに */
    rgba(255, 255, 255, 0.9) 85%,   /* 中央エリアを維持 */
    rgba(255, 255, 255, 0) 100%     /* 右端に向かって透明に溶かす */
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
  /* 直線的でシャープなゴールドのアクセントライン */
  border-top: 1px solid rgba(212, 175, 55, 0.4);
  border-bottom: 3px solid #d4af37;
  
  /* 文字が背景に負けないための微かなシャドウ */
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

/* Cocoon標準の見出し装飾を完全に無効化 */
.content-section h2::before, 
.content-section h2::after { 
  content: none !important; 
}

/* スマホ用の調整 */
@media (max-width: 768px) {
  .content-section h2 {
    font-size: 1.3rem;
    padding: 14px 15px;
    letter-spacing: 0.05em;
  }
}


/* =========================================================
   2. スマホ用レイアウト（初期設定はスマホファースト）
========================================================= */

/* スマホ時：メインコンテンツの余白 */
.anniversary-main-content {
  padding-bottom: 70px; /* ボトムナビでコンテンツが隠れないように下部に余白 */
}

/* PC用サイドバーはスマホでは非表示 */
.anniversary-sidebar-pc {
  display: none;
}

/* =========================================================
   スマホ用ボトムナビゲーション（完全アプリ仕様）
========================================================= */

.anniversary-bottom-nav-sp {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  /* 少し透明にして背景を透かす */
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* 上部に薄い影とゴールドのラインを入れて境界をハッキリさせる */
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  border-top: 2px solid rgba(212, 175, 55, 0.8);
  z-index: 9999;
  
  /* ★超重要: iPhoneのホームバー（画面下のスワイプ線）と被らないようにする魔法 */
  padding-bottom: env(safe-area-inset-bottom);
}

.anniversary-bottom-nav-sp ul {
  display: flex;
  justify-content: space-between; /* 均等に配置 */
  align-items: center;
  margin: 0;
  padding: 5px 10px; /* 左右に少し余白 */
  list-style: none;
}

.anniversary-bottom-nav-sp li {
  flex: 1; /* すべてのボタンを同じ幅にする */
}

/* タップするボタン（aタグ）のエリアを広げる */
.anniversary-bottom-nav-sp a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  color: #666; /* 基本はグレーで控えめに */
  text-decoration: none;
  transition: all 0.2s ease;
  /* タップした時に青い枠が出るのを防ぐ */
  -webkit-tap-highlight-color: rgba(0,0,0,0); 
}

/* アイコンの設定 */
.anniversary-bottom-nav-sp .nav-icon {
  font-size: 1.3rem;
  margin-bottom: 3px;
  filter: grayscale(100%); /* 最初は白黒っぽくしておく */
  opacity: 0.6;
  transition: all 0.2s ease;
}

/* テキストの設定 */
.anniversary-bottom-nav-sp .nav-text {
  font-size: 0.65rem;
  font-weight: bold;
}

/* ★タップした時（またはアクティブ時）の動き */
.anniversary-bottom-nav-sp a:active,
.anniversary-bottom-nav-sp a:focus {
  color: #4a2e7c; /* 紫色に光る */
}
.anniversary-bottom-nav-sp a:active .nav-icon,
.anniversary-bottom-nav-sp a:focus .nav-icon {
  filter: grayscale(0%); /* 絵文字の色が復活する */
  opacity: 1;
  transform: scale(1.1); /* 少しだけポチッと大きくなる */
}

/* PC（画面幅992px以上）ではボトムナビを隠す */
@media (min-width: 992px) {
  .anniversary-bottom-nav-sp {
    display: none;
  }
}

/* =========================================================
   3. PC用レイアウト（画面幅が992px以上の場合）
========================================================= */
@media (min-width: 992px) {
  
  /* スマホ用ボトムナビはPCでは非表示 */
  .anniversary-bottom-nav-sp {
    display: none;
  }

  /* PC用左側サイドバーの表示とスタイル */
  .anniversary-sidebar-pc {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px; /* サイドバーの幅 */
    height: 100vh;
    background-color: #4a2e7c; /* ディープバイオレット */
    color: #fff;
    padding: 20px 20px;
    box-sizing: border-box;
    z-index: 9999;
	overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  }
.anniversary-sidebar-pc::-webkit-scrollbar { width: 6px; }
  .anniversary-sidebar-pc::-webkit-scrollbar-track { background: transparent; }
  .anniversary-sidebar-pc::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); border-radius: 3px; }

  .sidebar-logo {
    text-align: center;
    margin-bottom: 10px; 
  }
  
  .sidebar-logo img { max-width: 100%; height: auto; }
  
  .sidebar-logo::before {
      content: "10th Anniversary\A 記念誌読者サイト";
      white-space: pre;
      font-size: 1.1rem; 
      font-weight: bold;
      color: #d4af37;
      text-align: center;
      display: block;
      margin-top: 10px; 
  }

  .sidebar-nav ul { list-style: none; padding: 0; margin: 0; }

  .sidebar-nav li {
    margin-bottom: 12px; 
  }

  .sidebar-nav a {
    color: #fff; text-decoration: none;
    font-size: 1.05rem; 
    display: block;
    padding: 8px 15px; /
    border-radius: 5px; transition: all 0.3s ease;
  }

  .sidebar-nav a:hover {
    background-color: rgba(212, 175, 55, 0.2);
    color: #d4af37; transform: translateX(5px);
  }

  .anniversary-main-content {
    margin-left: 250px; 
    padding: 80px 60px;
  }
}
/* =========================================================
   各教科の研究紹介（カード＆モーダル）
========================================================= */

/* --- カードのグリッド配置 --- */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 画面幅に合わせて自動整列 */
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.subject-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  border-top: 4px solid transparent;
  position: relative;
  z-index: 10;
}

.subject-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-top: 4px solid #d4af37; /* ホバーでゴールドのライン */
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.subject-card h3 {
  font-size: 1.2rem;
  color: #4a2e7c;
  margin: 0 0 10px 0;
}

.subject-card p {
  font-size: 0.9rem;
  color: #888;
  margin: 0;
}

/* --- モーダル（すりガラス効果） --- */
.subject-modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* ▼ここを修正（visibilityを追加して完全に隠す）▼ */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.subject-modal.is-active {
  /* ▼ここを修正（表示時はvisibilityをvisibleにする）▼ */
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
/* ここがすりガラス効果の要！ */
.modal-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(74, 46, 124, 0.4); /* テーマカラーの紫を透過 */
  backdrop-filter: blur(15px); /* 背景を強力にぼかす */
  -webkit-backdrop-filter: blur(15px); /* Safari対応 */
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 800px; /* 2000文字が読みやすい最大幅 */
  height: 85vh; /* 画面高の85% */
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  z-index: 10001;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 少し跳ねるようなリッチな動き */
}

.subject-modal.is-active .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 15px; right: 20px;
  background: none; border: none;
  font-size: 2rem; color: #333;
  cursor: pointer;
  z-index: 2;
}

.modal-scroll-area {
  padding: 40px;
  overflow-y: auto; /* 長文用にスクロール可能に */
  height: 100%;
}

.modal-title {
  color: #4a2e7c;
  font-size: 1.8rem;
  border-bottom: 2px solid #d4af37;
  padding-bottom: 10px;
  margin-top: 0;
}

.modal-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 30px 0;
}

.photo-placeholder {
  background: #eee;
  aspect-ratio: 4/3; /* 写真の縦横比 */
  display: flex; align-items: center; justify-content: center;
  color: #aaa; border-radius: 5px;
}

.modal-text {
  font-size: 1rem;
  line-height: 1.8; /* 読みやすい行間 */
  color: #444;
}
/* =========================================================
   作品ギャラリー（Swiperスライダー）
========================================================= */

.art-swiper {
  width: 100%;
  padding-bottom: 50px; /* 下のドットナビゲーション用のスペース */
}

/* 額縁（フレーム）のデザイン */
.art-frame {
  background: #fff;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: center;
  /* 少しだけ紫がかったグレーの枠線を付ける */
  border: 1px solid rgba(74, 46, 124, 0.1); 
}

/* 画像が入る場所の仮デザイン */
.art-image-placeholder {
  background: #f4f4f4;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  color: #bbb;
  margin-bottom: 15px;
}

.art-caption h4 {
  color: #4a2e7c;
  margin: 0 0 5px 0;
  font-size: 1.1rem;
}

.art-caption p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

/* Swiperのナビゲーション矢印とドットを「ゴールド」に変更 */
.art-swiper .swiper-button-next,
.art-swiper .swiper-button-prev {
  color: #d4af37; 
}
.art-swiper .swiper-pagination-bullet-active {
  background-color: #d4af37;
}
/* =========================================================
   フォトギャラリー（グリッドレイアウト）
========================================================= */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* スマホでは2列でスッキリ見せる */
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.photo-item {
  width: 100%;
}

.photo-box {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  aspect-ratio: 4/3; /* 全ての写真の縦横比を綺麗にタイル状に揃える */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.9rem;
  border: 1px solid rgba(74, 46, 124, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

/* マウスを乗せたときに少し浮き上がるプレミアムな演出 */
.photo-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* 実際に画像（img）を挿入する際のプロ仕様のスタイル */
.photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像が縦横に歪むのを防ぎ、綺麗に枠に収める */
}
.photo-caption {
  position: absolute; /* 写真の上に浮かせる */
  bottom: 0;          /* 一番下にくっつける */
  left: 0;
  width: 100%;
  background: rgba(74, 46, 124, 0.85); /* テーマカラーの紫を少し透過させる */
  color: #fff;
  font-size: 0.85rem;
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
  
  /* 最初は隠しておき、マウスを乗せた時にフワッと出す（アニメーション）*/
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

/* マウスが写真に乗った時にキャプションを表示する */
.photo-box:hover .photo-caption {
  opacity: 1;
  transform: translateY(0);
}

/* スマホ閲覧時（画面幅が992px未満）は、マウス操作がないため常にキャプションを表示しておく */
@media (max-width: 991px) {
  .photo-caption {
    opacity: 1;
    transform: translateY(0);
    padding: 6px;
    font-size: 0.75rem; /* スマホでは少し文字を小さく */
  }
}
/* PC（画面幅992px以上）では4列の美しいグリッドに変化させる */
@media (min-width: 992px) {
  .photo-grid {
    grid-template-columns: repeat(4, 1fr); /* PCでは4列 */
    gap: 20px;
  }
}
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9の比率を保つ */
  height: 0;
  overflow: hidden;
  border-radius: 10px; /* 角を少し丸める */
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.video-container iframe {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
}
/* =========================================================
   トップ動画セクション（2つ並べレイアウト）
========================================================= */

.video-grid {
  display: grid;
  grid-template-columns: 1fr; /* スマホでは縦に1列に並べる */
  gap: 30px; /* 動画と動画のスキマを30px空ける */
  max-width: 1000px; /* 2つ並べても大きくなりすぎないように制限 */
  margin: 0 auto; /* 中央揃えにする */
}

/* PC（画面幅992px以上）の場合のみ、横に2列に並べる */
@media (min-width: 992px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr); 
  }
}

/* （※以下は先ほど追加した設定なので、もし既に書いてあればそのままでOKです） */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9の比率を保つ */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.video-container iframe {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
}
/* =========================================================
   学校行事（タイムライン）超・進化版
========================================================= */
.events-intro {
  text-align: center;
  max-width: 1000px; /* 見出しの幅とバランスを取るために少し広げる */
  margin: 0 auto 60px auto;
  font-size: 1.1rem;
  line-height: 1.9;
  color: #222;
  font-weight: bold;
  padding: 20px 30px;
  
  /* ▼ 丸い枠をなくし、見出しと同じ「左右に溶け込むグラデーション」に変更 ▼ */
  background: linear-gradient(
    90deg, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.7) 15%,  /* 見出しより少しだけ透明度を高く（薄く）する */
    rgba(255, 255, 255, 0.7) 85%, 
    rgba(255, 255, 255, 0) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  
  /* 丸みと影をなくし、見出しのシャープさに合わせる */
  border-radius: 0;
  box-shadow: none;
}

/* スマホ用の調整 */
@media (max-width: 768px) {
  .events-intro {
    font-size: 0.95rem;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7); /* スマホ画面では横幅いっぱいになるため単色にする */
  }
}

/* タイムラインの全体枠 */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

/* ▼ 画面中央を貫くゴールドの光るライン ▼ */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  /* 上下は消え入り、中央が濃くなるグラデーション */
  background: linear-gradient(to bottom, rgba(212,175,55,0) 0%, rgba(212,175,55,0.8) 10%, rgba(212,175,55,0.8) 90%, rgba(212,175,55,0) 100%);
  border-radius: 2px;
}

/* 各行事のブロック */
.timeline-item {
  position: relative;
  width: 50%;
  margin-bottom: 60px;
  /* スクロールアニメーション用の初期状態（透明＆少し下に配置） */
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* JSでこのクラスが付与されるとフワッと現れる */
.timeline-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ▼ PC版：左右交互（ジグザグ）に配置 ▼ */
.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 50px;
}
.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 50px;
}

/* 月を表示する丸いアイコン（超リッチ仕様） */
.timeline-month {
  position: absolute;
  top: 20px; /* カードの上部に合わせる */
  width: 64px;
  height: 64px;
  /* 深い紫のグラデーション */
  background: linear-gradient(135deg, #4a2e7c, #2b1754);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.9rem;
  line-height: 1.2;
  text-align: center;
  /* 白枠とゴールドの影で立体感を演出 */
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px #d4af37, 0 10px 20px rgba(0,0,0,0.2);
  z-index: 2;
}

/* アイコンの位置（左側カードは右端へ、右側カードは左端へ） */
.timeline-item:nth-child(odd) .timeline-month { right: -32px; }
.timeline-item:nth-child(even) .timeline-month { left: -32px; }

/* 行事のテキストカード */
.timeline-content {
  background: #fff;
  padding: 35px 30px;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
  border-top: 6px solid #d4af37;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
/* マウスオーバーでカードが少し浮き上がる */
.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(74, 46, 124, 0.15);
}

.timeline-content h4 {
  color: #2b1754;
  margin: 0 0 15px 0;
  font-size: 1.3rem;
  font-weight: 900;
  border-bottom: 2px dashed #eee;
  padding-bottom: 15px;
}
.timeline-content p { margin: 0 0 10px 0; line-height: 1.8; font-size: 1rem; color: #555; }
.timeline-content p:last-child { margin-bottom: 0; }

/* =========================================================
   スマホ・タブレット用の調整（縦一列レイアウトに戻す）
========================================================= */
@media (max-width: 991px) {
  .timeline::before { left: 40px; transform: none; }
  
  .timeline-item { width: 100%; left: 0 !important; padding-left: 90px !important; padding-right: 0 !important; margin-bottom: 40px; }
  
  .timeline-month { left: 8px !important; right: auto !important; width: 56px; height: 56px; font-size: 0.8rem; }
  
  .timeline-content { padding: 25px 20px; }
}
/* =========================================================
   ヒーローウェルカムセクション（超・厳か＆インパクト特化版）
========================================================= */

/* 1. 全体配置（変更なし） */
.hero-welcome-section {
  position: relative;
  margin: -80px -60px 80px -60px;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 2. 背景（変更なし） */
.hero-background {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  /* ★実際の画像URLを入れてください */
  background-image: url('https://www2.hyogo-c.ed.jp/weblog2/nkobek-sn/wp-content/uploads/2026/08/背景にしたい画像のURL.jpg'); 
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
}

/* 3. 背景の紫フィルターを少しだけ濃くして、白いカードを際立たせる */
.hero-background::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(50, 30, 90, 0.85) 0%, rgba(20, 10, 40, 0.6) 100%);
}

/* 4. 白いカードと【厳かなフェードイン】 */
.welcome-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  padding: 70px 50px; /* パディングを広くして堂々とした佇まいに */
  border-radius: 15px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5); /* 影を濃くして重厚感を */
  max-width: 850px;
  width: 90%;
  border-top: 8px solid #d4af37; /* ゴールドラインも少し太く */
  text-align: center;
  /* ★変更：時間を2.5秒に伸ばし、映画のような動きに変更 */
  animation: majesticFadeIn 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* 5. 文字の【インパクト最大化】 */
.welcome-card p, .welcome-title { text-align: center !important; }
.welcome-title { margin-top: 0; margin-bottom: 20px; border-bottom: none !important; }

.welcome-title .title-en { 
  display: block;
  font-size: 1.8rem; /* 1.4 → 1.8へ大幅UP */
  color: #d4af37; 
  letter-spacing: 0.3em; /* 文字間隔を広げて高級感 */
  font-family: 'Times New Roman', serif;
  margin-bottom: 10px;
  text-shadow: 0 2px 5px rgba(212, 175, 55, 0.3); /* ゴールドの微かな発光 */
}

.welcome-title .title-ja { 
  display: block;
  font-size: 2.8rem; /* 2.2 → 2.8へ大幅UP */
  color: #2b1754; /* より深い紫で重厚に */
  font-weight: 900; /* 極太に */
  letter-spacing: 0.15em; 
  line-height: 1.4; 
  text-shadow: 0 4px 10px rgba(0,0,0,0.08); /* わずかな影で立体感 */
}

.welcome-subtitle { 
  color: #4a2e7c; /* グレーから紫に変更して印象を強く */
  font-size: 1.2rem; 
  margin-bottom: 35px; 
  font-weight: bold;
  letter-spacing: 0.05em;
}

.welcome-divider {
  width: 80px; 
  height: 4px; 
  background-color: #d4af37;
  margin: 0 auto 35px;
  box-shadow: 0 2px 5px rgba(212, 175, 55, 0.4);
}

.welcome-text p { color: #222; line-height: 2.2; font-size: 1.1rem; margin-bottom: 15px; font-weight: 500; }

.welcome-author p { 
  margin-top: 40px; 
  font-weight: 900; 
  color: #2b1754; 
  font-size: 1.2rem; 
  text-align: right !important; 
}

/* 6. スクロールアイコン */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  animation: fadeInScroll 2.5s ease forwards 1.5s; /* 挨拶が落ち着いた頃にスッと出す */
  opacity: 0;
}
.scroll-indicator .arrow-down {
  width: 2px;
  height: 40px;
  background-color: rgba(255,255,255,0.3);
  margin: 10px auto 0;
  position: relative;
  overflow: hidden;
}
.scroll-indicator .arrow-down::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: #d4af37;
  animation: scrollDownAnim 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

/* シネマティック・アニメーション */
@keyframes majesticFadeIn {
  0% { 
    opacity: 0; 
    transform: translateY(60px) scale(0.95); /* 下から＆少し小さい状態から */
    filter: blur(10px); /* 最初はピントが合っていない状態 */
  }
  100% { 
    opacity: 1; 
    transform: translateY(0) scale(1); /* 定位置でピントが合う */
    filter: blur(0);
  }
}
@keyframes fadeInScroll { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes scrollDownAnim { 0% { transform: translateY(-100%); } 50% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* スマホ用調整 */
@media (max-width: 991px) {
  .hero-welcome-section { margin: 0; padding: 20px; } 
  .welcome-card { padding: 40px 20px; }
  .welcome-title .title-ja { font-size: 1.8rem; }
  .welcome-title .title-en { font-size: 1.2rem; }
  .welcome-text p { font-size: 1rem; }
}

/* =========================================================
   モーダル内の原稿書式（社会自立に向けた学習の紹介フォーマット）
========================================================= */

/* 表題（中央揃え・重厚感のある太字・下にゴールドの線） */
.research-title {
  font-size: 1.4rem;
  color: #2b1754;
  font-weight: 900;
  text-align: center;
  margin: 10px 0 15px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #d4af37;
  line-height: 1.5;
}

/* 執筆者名・副題など（右寄せ） */
.research-author {
  text-align: right;
  font-size: 0.95rem;
  color: #555;
  font-weight: bold;
  margin-bottom: 40px; /* 本文との間に少し広めの余白を取る */
}
.modal-text {
  font-size: 1rem;
  line-height: 1.8; /* 読みやすい行間 */
  color: #444;
  text-align: left; /* 親要素の中央揃えをリセットして左揃えに強制 */
}
/* １ 見出し１（大項目：左に紫の太線、下に細線） */
.research-h4 {
  font-size: 1.15rem;
  color: #2b1754;
  font-weight: bold;
  margin: 40px 0 15px 0;
  padding: 8px 10px;
  border-left: 5px solid #4a2e7c;
  border-bottom: 1px solid #eee;
  background-color: #fafafa;
}

/* （１） 見出し２（中項目：ゴールドの下線、少し字下げ） */
.research-h5 {
  font-size: 1.05rem;
  color: #4a2e7c;
  font-weight: bold;
  margin: 30px 0 10px 1em; /* 1文字分インデント */
  padding-bottom: 5px;
  border-bottom: 1px dashed #d4af37;
}

/* ③ 見出し３（小項目：さらに字下げ） */
.research-h6 {
  font-size: 1rem;
  color: #333;
  font-weight: bold;
  margin: 20px 0 10px 2em; /* 2文字分インデント */
}

/* ・箇条書き */
.research-list {
  margin: 15px 0 20px 2em;
  padding-left: 1em;
  color: #444;
  line-height: 1.8;
}
.research-list li {
  margin-bottom: 5px;
}

/* 強調段落（薄いゴールドの背景ボックス） */
.research-highlight {
  background-color: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 5px;
  padding: 20px;
  margin: 30px 0;
  color: #2b1754;
  font-weight: bold;
}
.research-highlight p {
  margin: 0; /* ボックス内の余計な余白を消す */
}