/* ========== 1.全体設定 ========== */
body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Arial, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, sans-serif;
  background-color: #fcfcfc;
  color: #333333;
  line-height: 1.7;
}

/* 全体共通のリンクスタイルリセット */
a {
  color: inherit;
  text-decoration: none;
}

/* ========== 2.タイトルヘッダー部分 ========== */
.site-header {
  background-color: #eff7ff;
  color: #00608d;
  padding: 20px 0 0 0; /* 上の余白 */
  border-bottom: 4px solid #6c9bd2;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 0 24px;
}

/* タイトルリンクエリア */
.header-logo-link {
  display: inline-block;
  cursor: pointer;
}
.header-logo-link:hover h1 {
  opacity: 0.8;
}

.site-header h1 {
  font-size: 2.2rem;
  margin: 0 0 10px 0;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.site-header h1 .en-title {
  font-size: 2.4rem;       /* 英語タイトルをさらにひと回り大きく強調 */
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  font-weight: 500;        /* 文字の太さ */
  letter-spacing: 0.8px;
}

.site-header h2 {
  font-size: 1.1rem;
  margin: 0 0 0 0;
  font-weight: 400;
}

/* ヘッダーメインメニュー */
.header-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex; /* 横並びにする */
  margin-left: -5px;
}

.header-nav li {
  margin-right: 2px;
}

.header-nav a {
  display: block;
  padding: 10px 24px;
  background-color: #8ec6ff;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.2s;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.header-nav a:hover {
  background-color: #6c9bd2; /* ホバー時にアクセントカラーに変更 */
  color: #ffffff;
}

/* ========== 3.パンくずリスト ========== */

.breadcrumb-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

/* 全体を横並びにして、箇条書きの黒丸を消す */
.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 15px 0 -30px 0;      /* 上・右・下・左に隙間を設定 */
  font-size: 14px;
}

/* 各メニューの右側に自動で「 > 」を表示する */
.breadcrumb li::after {
  content: ">";
  margin: 0 10px;
  color: #888888;
}

/* 一番最後（現在地）の項目の右側には「 > 」を出さない */
.breadcrumb li:last-child::after {
  content: "";
}

/* リンク（HOMEなど）の文字色と下線の設定 */
.breadcrumb a {
  color: #333333;
  text-decoration: underline;
}

/* リンクにマウスを乗せたときの動き */
.breadcrumb a:hover {
  text-decoration: none;
  color: #0066cc;
}

/* ========== 4.シングルカラム（ページ説明）========== */
.intro-container {
  max-width: 1200px;
  margin: 40px auto 0 auto;
  padding: 0 20px;
}

/* ページ説明内のボックスだけ、背景と枠線を少しマイルドに変更 */
.intro-container .info-block {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: none;
}

.intro-container .info-block h2 {
  font-size: 1.8rem;
  padding-left: 0;
}

.intro-container .info-block h2::before {
  display: none;
}

/* もしタイトル単体（後ろに本文がない）なら、タイトルの下の余白をゼロにする */
.intro-container .info-block h2:last-child {
  margin-bottom: 0;
}

/* ========== 5.レイアウト（2カラム構造） ========== */
.container {
  max-width: 1200px;
  margin: 20px auto 40px auto;
  padding: 0 20px;
  display: flex; /* サイドバーとメインコンテンツを横並びにする */
  gap: 40px;     /* カラム間の隙間 */
}

/* 左サイドバー */
.sidebar {
  width: 260px;
  flex-shrink: 0; /* 画面が狭まっても幅を維持 */
}

.sidebar-block {
  background-color: #f9fcff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sidebar-block h3 {
  margin: 0 0 15px 0;
  font-size: 1.1rem;
  border-bottom: 2px solid #1a365d;
  padding-bottom: 6px;
  color: #1a365d;
}

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

.sidebar-list li {
  border-bottom: 1px dashed #cbd5e1;
}
.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list a {
  display: block;
  padding: 10px 5px;
  font-size: 0.9rem;
  font-weight: 600;
  /* letter-spacing: 0.03em; */
  color: #4a5568;
  transition: color 0.2s;
/* オプション：英字が綺麗に見えるフォント環境をサイドバーに強制適用 */
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

.sidebar-list a:hover {
  color: #3182ce;
  text-decoration: underline;
}

/* サイドバーの2個目のボックス（SUB MENU）用の隙間設定 */
.sidebar-block + .sidebar-block {
  margin-top: 20px;
}

/* ========== サイドバー用お知らせ欄の設定 ========== */
.news-scroll-area {
  max-height: 150px;      /* お知らせエリアの最大高さ（はみ出るとスクロール） */
  overflow-y: auto;       /* 縦方向のスクロールバーを自動表示 */
  padding-right: 5px;     /* スクロールバーと文字の重なり防止 */
}

/* お知らせリスト内の文字サイズと余白の調整 */
.news-scroll-area .sidebar-list li {
  padding: 8px 0;
  font-size: 0.85rem;
  color: #4a5568;
}

/* 日付部分のスタイル */
.news-date-sub {
  font-size: 0.75rem;
  font-weight: bold;
  color: #718096;
}

/* ========== 6.メインコンテンツ（枠線なし・1ページ集約型） ========== */
.main-content {
  flex-grow: 1; /* 残りの横幅をすべて使う */
  min-width: 0;  /* レスポンシブ時の崩れ防止 */
}

/* ページ全体の自動スムーズスクロール設定 */
html {
  scroll-behavior: smooth;   /* ページ内リンククリック時に滑らかに動く */
  scroll-padding-top: 20px;  /* ジャンプした時の上部余白 */
}

/* ①・②・③の各大セクション（学生紹介、スケジュール、セミナー案内） */
.content-section {
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 2px dashed #cbd5e1; /* セクション間の控えめな区切り線（不要ならこの1行を削除） */
}

.content-section:last-child {
  border-bottom: none;
}

/* 大見出し（h2：学生紹介、年間スケジュール、セミナー案内） */
.section-title {
  font-size: 1.6rem;
  color: #1a365d;
  margin: 0 0 25px 0;
  padding-left: 12px;
  border-left: 5px solid #3182ce; /* 左側の青い縦線アクセント */
  position: relative;
}

/* 年度・日付ごとのサブセクション（h3の親要素） */
.sub-section {
  margin-bottom: 35px;
  padding-top: 10px;
}

/* 中見出し（h3：2027年度、2026.07.28 など） */
.sub-title {
  font-size: 1.25rem;
  color: #2d3748;
  margin: 0 0 15px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0; /* 見出し下の薄い下線 */
}

/* 各コンテンツ内の文章・リスト表現 */
.sub-section p {
  margin: 0 0 12px 0;
  color: #333333;
}

.sub-section ul {
  list-style-type: disc;
  margin: 10px 0 15px 0;
  padding-left: 20px;
}

.sub-section li {
  margin-bottom: 6px;
  color: #4a5568;
}

/* チラシ画像用スタイル */
.flyer-image-area {
  width: 100%;
  margin: 15px 0;
  text-align: left;
}

.flyer-img {
  width: 100%;
  max-width: 550px;
  height: auto;     /* 縦横比を維持 */
  border: 1px solid #e2e8f0; /* 薄い枠線（不要ならこの1行を削除） */
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* 軽く影をつけると紙っぽさが出ます */
}

/* ========== 学生紹介用テーブルのスタイル ========== */
.member-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
}

/* ヘッダー行 */
.member-table th {
  background-color: #f1f5f9;
  color: #1a365d;
  font-weight: 600;
  text-align: left;
  padding: 12px 15px;
  border-bottom: 2px solid #cbd5e1;
  font-size: 0.95rem;
}

/* データ行 */
.member-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle; /* 縦方向中央揃え */
  font-size: 0.95rem;
}

.member-table tbody tr:last-child td {
  border-bottom: none; /* 最後の行の下線を消す */
}

/* 行ごとに背景色を交互に変えて見やすくする */
.member-table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

/* 各列の幅と文字設定 */
.col-name {
  width: 160px;
  font-weight: bold;
  color: #1e293b;
}

.col-grade {
  width: 110px;
}

.col-theme {
  color: #334155;
  /* 残りの幅を自動割り当て */
}

/* 学年ラベルの装飾 */
.member-grade {
  display: inline-block;
  font-size: 0.8rem;
  background-color: #e2e8f0;
  color: #475569;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap; /* 途中で改行させない */
}

/* ========== 7.フッター部分 ========== */
.site-footer {
  background-color: #d1e8ff;
  color: #00608d;
  padding: 40px 0;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

/* フッターナビゲーション */
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  justify-content: center; /* 中央揃え */
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.9rem;
  text-decoration: underline;
}

.footer-nav a:hover {
  color: #ffffff;
  text-decoration: none;
}

.copyright {
  margin: 0;
  font-size: 0.8rem;
}

/* ========== 8. トップへ戻るボタン ========== */
.page-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background-color: #3182ce; /* サイトのテーマカラーに合わせた青 */
  color: #ffffff;
  border: none;
  border-radius: 50%; /* 丸いボタンにする */
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  
  /* 初期状態は非表示（透明） */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background-color 0.2s, transform 0.2s;
  z-index: 1000;
}

/* ホバー時の効果 */
.page-top-btn:hover {
  background-color: #1a365d; /* 少し濃い青に変更 */
  transform: translateY(-3px); /* 軽く上に浮き上がる */
}

/* JavaScriptでスクロール時に付与するクラス */
.page-top-btn.is-active {
  opacity: 1;
  visibility: visible;
}
