/* トップの写真が画面いっぱい(100vh)で、お知らせが下に隠れるため、高さを控えめにする（トップページのみ） */
header .container-fluid { height: 62vh; min-height: 540px; background-position: 50% 75%; }
@media screen and (max-width: 575.98px) {
  header .container-fluid { height: 58vh; min-height: 440px; background-position: 50% 80%; }
}
/* スマホ・タブレット：三本線ボタンをやめ、メニューを丸いボタンで常に表示する（トップページのみ） */
@media screen and (max-width: 767.98px) {
  header .navbar { padding: 0; margin-bottom: 0 !important; }
  header .navbar-toggler { display: none; }
  header #Navbar { display: block !important; }
  header #Navbar ul { flex-direction: row; flex-wrap: wrap; justify-content: center !important; gap: 8px; padding: 6px 10px 2px; margin: 0; }
  header #Navbar ul li { display: block; background: #ffffff; border-radius: 999px; margin: 0; }
  header #Navbar ul li a { display: block; width: auto; height: auto; margin: 0; padding: 4px 16px; line-height: 1.7; font-weight: bold; color: #21489d !important; text-align: center; }
}
/* 施設紹介の案内図・配置図：PCでは横並び（スマホは縦のまま） */
.map-pair { max-width: 650px; }
@media screen and (min-width: 992px) {
  .map-pair { max-width: 1080px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; align-items: center; }
  .map-pair > .container { max-width: 100%; }
  .map-pair > .text-center:last-child { grid-column: 1 / -1; }
}
/* トップ（ようこそ欄）：お知らせ → よく使う入口 → 講座の案内 の順に整理。背景は左右いっぱい。スマホは縦並び */
.top-welcome { background: #EAF2F4; }
.tw-inner { max-width: 1040px; margin: 0 auto; }
.notice-card { background: #ffffff; border: 3px solid #21489d; border-radius: 10px; overflow: hidden; box-shadow: 0 3px 8px rgba(0,0,0,.15); text-align: left; margin: 0 auto 28px; }
.notice-card .nc-head { background: #21489d; color: #ffffff; font-weight: bold; padding: 6px 16px; letter-spacing: .08em; }
.notice-card .nc-body { padding: 14px 18px 16px; display: grid; gap: 12px 32px; }
.notice-card h2 { font-size: 1.3rem; font-weight: bold; color: #21489d; margin: 0 0 4px; line-height: 1.4; }
.notice-card .nc-lead { margin: 0 0 8px; font-weight: bold; }
.notice-card ul { list-style: none; margin: 0; padding: 0; }
.notice-card li { padding: 4px 0; border-bottom: 1px dotted #bbb; }
.notice-card li span { display: inline-block; min-width: 5.8em; padding: 0 4px; margin-right: 8px; background: #21489d; color: #fff; font-size: .8rem; font-weight: bold; text-align: center; border-radius: 3px; }
a.nc-btn, a.nc-btn:link, a.nc-btn:visited { display: block; text-align: center; font-size: 1.05rem; font-weight: bold; color: #ffffff; text-decoration: none; padding: 10px 16px; border-radius: 999px; background: linear-gradient(135deg, #ff7a18, #ff9a00); }
.nc-banner { display: block; text-align: center; margin: 0 0 10px; }
.nc-banner img { width: 234px; max-width: 100%; height: auto; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.notice-card .nc-note { margin: 8px 0 0; font-size: .85rem; color: #444; line-height: 1.7 !important; }
.quick-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 auto 32px; }
a.qt, a.qt:link, a.qt:visited { display: flex; flex-direction: column; align-items: center; text-align: center; background: #ffffff; color: #21489d; border: 2px solid #21489d; border-radius: 12px; padding: 16px 8px 12px; text-decoration: none; box-shadow: 0 2px 5px rgba(0,0,0,.1); }
a.qt:hover { background: #21489d; color: #ffffff; }
a.qt i { font-size: 1.9rem; margin-bottom: 6px; }
a.qt b { font-size: 1.05rem; line-height: 1.4; }
a.qt small { color: #444; font-size: .8rem; line-height: 1.5; margin-top: 4px; }
a.qt:hover small { color: #ffffff; }
a.qt.qt-insta, a.qt.qt-insta:link, a.qt.qt-insta:visited { color: #cc2366; border-color: #cc2366; }
a.qt.qt-insta:hover { background: #cc2366; color: #ffffff; }
.course-pair { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 0 auto 24px; }
.course-pair h3 { font-size: 1.1rem; font-weight: bold; color: #21489d; border-left: 6px solid #21489d; padding-left: 10px; margin: 0 0 8px; text-align: left; line-height: 1.5; }
.course-pair h3 small { display: block; font-weight: normal; color: #444; font-size: .8rem; }
.course-pair img { width: 100%; border: 3px solid #007bff; border-radius: 8px; }
.mgmt-note { text-align: center; font-size: .85rem; color: #444; margin: 16px 0 8px; }
@media screen and (min-width: 992px) {
  .notice-card .nc-body { grid-template-columns: 1.3fr 1fr; align-items: center; }
  .quick-tiles { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .course-pair { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ===== カテゴリ別ページ化で追加 ===== */
/* よく使う入口：6つ → PCは3列×2段 */
@media screen and (min-width: 992px) { .quick-tiles { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
/* 今いるページのメニュー */
header #Navbar li.is-current > a { font-weight: bold; border-bottom: 3px solid #21489d; }
@media screen and (max-width: 767.98px) { header #Navbar ul li.is-current { box-shadow: 0 0 0 3px #f2b400; } header #Navbar li.is-current > a { border-bottom: 0; } }
/* ご利用ページ上部のページ内メニュー */
.page-anchor a { display: inline-block; background: #fff; border: 2px solid #21489d; color: #21489d; border-radius: 999px; padding: 3px 14px; margin: 4px 6px; font-weight: bold; text-decoration: none; }
.page-anchor a:hover { background: #21489d; color: #fff; }
/* 最新のお知らせ（TOP・お知らせページ共通）：スマホで折り返しを読みやすく */
.content.w-100 .row { margin-left: 0; margin-right: 0; }
