@charset "UTF-8";
/*
 * 公開サイトのスタイル
 * レイアウト・色調は旧 css/basic.css を踏襲（ヘッダー、左サイドメニュー、水色の見出し帯、ベージュの枠）。
 * ボタン・フォーム・表・ページ送りなどの部品は Bootstrap 5 のコンポーネントを使い、サイトの色に合わせている。
 * PC（992px以上）は「左サイドメニュー＋右本文」、それ未満は本文1カラム＋ハンバーガーメニュー。
 */

:root {
  --sums-blue: #006eaf;
  --sums-blue-dark: #005a8f;
  --sums-tag: #85bbfb;
  --sums-tag-border: #c4eafb;
  --sums-beige: #EEDBBB;
  --sums-beige-light: #fbf6ec;
  --sums-brown: #462819;
  --bs-body-font-family: verdana, "Hiragino Kaku Gothic Pro", "Hiragino Sans", "Noto Sans JP", Osaka, "MS PGothic", sans-serif;
  --bs-body-font-size: 14px;
  --bs-body-line-height: 1.8;
  --bs-body-color: #222;
  --bs-primary: #006eaf;
  --bs-primary-rgb: 0, 110, 175;
  --bs-link-color: #0b6bcb;
  --bs-link-color-rgb: 11, 107, 203;
  --bs-link-hover-color: #f60;
  --bs-link-hover-color-rgb: 255, 102, 0;
  --bs-border-radius: .45rem;
  --bs-focus-ring-color: rgba(0, 110, 175, .25);
}

html { scroll-padding-top: 1rem; }

body {
  background: #f2fafe url("/images/background.jpg") no-repeat;
  font-size: 14px;
  line-height: 1.8;
}

img { max-width: 100%; height: auto; border: 0; }
p { margin: 0; }
ul { margin: 20px 30px; padding: 0; }
em { color: #990000; font-style: normal; }

h3 {
  border-bottom: 1px solid #ccc;
  color: var(--sums-brown);
  font-size: 120%;
  font-weight: bold;
  margin: 0 0 15px;
  padding: 5px 0;
  line-height: 1.5;
}
h4 { font-size: 1em; font-weight: bold; margin: 0; line-height: 1.8; }

/* ========== Bootstrap 部品をサイトの色に合わせる ========== */
.btn { font-size: 14px; }
.btn-primary {
  --bs-btn-bg: var(--sums-blue);
  --bs-btn-border-color: var(--sums-blue);
  --bs-btn-hover-bg: var(--sums-blue-dark);
  --bs-btn-hover-border-color: var(--sums-blue-dark);
  --bs-btn-active-bg: #004c78;
  --bs-btn-active-border-color: #004c78;
  --bs-btn-disabled-bg: var(--sums-blue);
  --bs-btn-disabled-border-color: var(--sums-blue);
  --bs-btn-focus-shadow-rgb: 0, 110, 175;
}
.btn-outline-primary {
  --bs-btn-color: var(--sums-blue);
  --bs-btn-border-color: var(--sums-blue);
  --bs-btn-hover-bg: var(--sums-blue);
  --bs-btn-hover-border-color: var(--sums-blue);
  --bs-btn-active-bg: var(--sums-blue-dark);
  --bs-btn-active-border-color: var(--sums-blue-dark);
  --bs-btn-focus-shadow-rgb: 0, 110, 175;
}
.form-control, .form-select { font-size: 14px; }
.form-control:focus, .form-select:focus, .form-check-input:focus {
  border-color: #6fb3dc;
  box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color);
}
.form-check-input:checked { background-color: var(--sums-blue); border-color: var(--sums-blue); }
.form-label { font-weight: bold; color: #444; margin-bottom: .3rem; }
.pagination {
  --bs-pagination-color: var(--sums-blue);
  --bs-pagination-hover-color: var(--sums-blue-dark);
  --bs-pagination-active-bg: var(--sums-blue);
  --bs-pagination-active-border-color: var(--sums-blue);
  --bs-pagination-focus-box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color);
}

/* チェックボックスをボタン型にした選択肢（分類・科目など） */
.chip-group { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-group .btn {
  --bs-btn-padding-y: .2rem;
  --bs-btn-padding-x: .7rem;
  --bs-btn-font-size: 13px;
  --bs-btn-color: #444;
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #cfd8df;
  --bs-btn-hover-color: var(--sums-blue);
  --bs-btn-hover-bg: #eef6fb;
  --bs-btn-hover-border-color: #9cc6e0;
  border-radius: 50rem;
}
.chip-group .btn-check:checked + .btn {
  color: #fff;
  background: var(--sums-blue);
  border-color: var(--sums-blue);
}
.chip-group .btn-check:checked + .btn::before {
  content: "\F26E"; /* bi-check */
  font-family: "bootstrap-icons";
  margin-right: .2em;
  vertical-align: -.1em;
}

/* ========== 全体の枠：ヘッダー・本文・フッターを独立したパーツにする ========== */
.site-shell {
  width: 100%;
  max-width: 1010px;
  margin: 0 auto;
  padding: 16px 12px 8px;
}
.site-bar,
.site-panel {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0, 60, 100, .06), 0 8px 24px rgba(0, 60, 100, .08);
}
.site-panel { padding: 20px; margin-bottom: 16px; }

#header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  margin-bottom: 16px;
}
#header .hd-univ { flex: 0 0 auto; width: 80px; }
#header .hd-title { flex: 0 1 530px; min-width: 0; }
#header img { display: block; }
.hd-links { margin-left: auto; gap: 8px; }

.menu-toggle {
  margin-left: auto;
  flex: 0 0 auto;
  border: 1px solid #c4dced;
  background: #f2fafe;
  color: var(--sums-blue);
  border-radius: 6px;
  padding: 6px 10px 4px;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
  position: relative;
}
.menu-toggle-bars::before { position: absolute; top: -6px; }
.menu-toggle-bars::after { position: absolute; top: 6px; }
.menu-toggle-bars { margin: 6px 0; }
.menu-toggle-label { font-size: 9px; letter-spacing: .1em; font-weight: bold; }

/* ========== 本文とサイドメニュー ========== */
#content { display: block; }
#main { min-width: 0; }

@media (min-width: 992px) {
  #content { display: flex; align-items: flex-start; gap: 0 20px; }
  #main { order: 2; flex: 1 1 auto; }
  #sidemenu { order: 1; flex: 0 0 185px; width: 185px; }
  #sidemenu .offcanvas-body { display: block !important; }
}

/* ページ見出し：サイトの青のグラデーション＋装飾の円＋ページごとのアイコン */
#tag {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 76px;
  margin: 0 0 6px;
  padding: 18px 96px 18px 24px;
  border-radius: 14px;
  background: linear-gradient(120deg, #0a86cf 0%, #006eaf 55%, #0b5a8c 100%);
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: .14em;
  line-height: 1.35;
  box-shadow: 0 6px 18px rgba(0, 90, 150, .22);
}
#tag::before,
#tag::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .09);
  pointer-events: none;
}
#tag::before { width: 180px; height: 180px; right: -40px; top: -70px; }
#tag::after { width: 110px; height: 110px; right: 70px; bottom: -70px; background: rgba(255, 255, 255, .07); }
#tag .tag-text { position: relative; z-index: 1; }
#tag .tag-text::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .75);
}
#tag .tag-icon {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 38px;
  color: rgba(255, 255, 255, .85);
  z-index: 1;
}

#sidemenu a {
  font-size: 14px;
  display: block;
  padding: 5px;
  border-bottom: 1px dotted #ccc;
  margin: 5px 0;
  text-decoration: none;
  color: #777;
  letter-spacing: 0.1em;
}
#sidemenu a:hover,
#sidemenu a:focus-visible { color: #000; background: #eee; }
#sidemenu a.current { color: #000; }
#sidemenu .offcanvas-title { font-weight: bold; color: var(--sums-blue); letter-spacing: .1em; }

/* バーチャルスライドのサブメニュー：PCはホバーで横に表示 */
.menu1 { position: relative; }
.submenu a {
  color: #000 !important;
  font-weight: bold;
  border: 0 !important;
  border-bottom: 1px dotted #ccc !important;
  padding: 7px !important;
  margin: 0 !important;
}
@media (min-width: 992px) {
  .submenu {
    display: none;
    position: absolute;
    left: 150px;
    top: -10px;
    width: 245px;
    padding: 10px;
    border: 2px solid #ccc;
    background: rgba(255, 255, 255, .95);
    line-height: 1.0;
    z-index: 1000;
  }
  .menu1:hover .submenu,
  .menu1:focus-within .submenu { display: block; }
}
@media (max-width: 991.98px) {
  #sidemenu { --bs-offcanvas-width: 280px; }
  .submenu { padding-left: 1em; }
  .submenu a { font-weight: normal; color: #555 !important; }
  .menu1 > a.has-sub { pointer-events: none; }
}

#footer { padding: 18px 22px 12px; margin-bottom: 8px; font-size: 13px; }
#footer .footer-main { display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: space-between; align-items: flex-start; }
#footer .footer-org strong { font-size: 14px; color: var(--sums-blue); }
#footer a.tel { color: inherit; text-decoration: none; font-weight: bold; }
#footer .footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; max-width: 460px; }
#footer .footer-links a { color: #555; text-decoration: none; }
#footer .footer-links a:hover { color: var(--sums-blue); text-decoration: underline; }
#footer .footer-copy { border-top: 1px solid #edf1f4; margin-top: 12px; padding-top: 8px; text-align: center; color: #888; }

/* ========== 汎用 ========== */
.clear { clear: both; }
.space15c { clear: both; margin-bottom: 15px; }
.blue-heading { color: #0080ff; }
.kakomi { border: 1px solid #ccc; border-radius: var(--bs-border-radius); padding: 10px 15px; margin: 10px 0; }

/* ベージュ枠のカード（検索フォーム・お問い合わせなど） */
.sums-card {
  border: 2px solid var(--sums-beige);
  border-radius: var(--bs-border-radius);
  background: #fff;
}
.sums-card > .card-header {
  background: var(--sums-beige-light);
  border-bottom: 1px solid var(--sums-beige);
  font-weight: bold;
  color: var(--sums-brown);
}

/* 検索フォームの項目（PCは左ラベル・右入力、スマホは縦積み） */
.field-row { padding: .6rem 0; border-bottom: 1px solid #f1e7d4; }
.field-row:last-child { border-bottom: 0; }
.field-row > .field-label { font-weight: bold; color: #444; padding-top: .3rem; }

/* ========== トップページ ========== */
#slideshow { margin: 0 0 20px; border-radius: 10px; overflow: hidden; }
#slideshow img { width: 100%; height: auto; display: block; }

.home-cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.home-left { flex: 1 1 480px; min-width: 0; max-width: 100%; }
.home-right { flex: 0 0 230px; }
.home-right a { display: block; margin-bottom: 10px; }
.home-right img { display: block; width: 100%; transition: opacity .15s; }
.home-right a:hover img { opacity: .85; }
@media (max-width: 767.98px) {
  .home-cols { flex-direction: column; }
  .home-left, .home-right { flex: 1 1 auto; width: 100%; }
  .home-right { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .home-right a { margin: 0; }
}

.section-banner { display: block; margin: 0 0 15px; }
.section-banner img { display: block; width: 100%; max-width: 480px; }

#entry_top { margin: 10px 0 20px; }
.news-list .list-group-item { display: flex; gap: 12px; align-items: baseline; padding: .6rem .25rem; border-left: 0; border-right: 0; }
.news-list .date { color: #888; white-space: nowrap; font-size: 13px; }
.news-list a { text-decoration: none; }
.news-list a:hover { text-decoration: underline; }

/* ========== 収蔵資料データベース ========== */
.item-card { border: 1px solid #e3e3e3; transition: box-shadow .15s, transform .15s, border-color .15s; color: inherit; overflow: hidden; }
.item-card:hover { border-color: #9cc6e0; box-shadow: 0 .4rem 1rem rgba(0, 110, 175, .12); transform: translateY(-2px); color: inherit; }
.item-thumb { background: #f4f6f8; }
.item-thumb img { object-fit: cover; }
.item-cat { background: var(--sums-beige-light); color: var(--sums-brown); border: 1px solid var(--sums-beige); }
.item-name { font-weight: bold; color: var(--sums-blue); line-height: 1.5; }
.item-card:hover .item-name { text-decoration: underline; }
.item-desc { font-size: 12px; color: #777; line-height: 1.5; margin-top: .25rem; }

/* ========== 詳細 ========== */
.detail-head small { color: gray; }
.detail-cols { display: flex; gap: 15px; align-items: flex-start; }
#detail_img { flex: 0 0 320px; max-width: 100%; }
#detail_explain { flex: 1 1 auto; min-width: 0; }
.detail_main a, .detail_main > img { display: block; margin-bottom: 10px; }
.detail_main img { border: 3px solid #ddd; border-radius: 4px; width: 100%; }
.detail_sub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.detail_sub a { display: block; aspect-ratio: 1; overflow: hidden; border: 1px solid #ddd; border-radius: 4px; }
.detail_sub img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.detail_sub a:hover img { transform: scale(1.05); }
.item-title { font-size: 1.35rem; font-weight: bold; color: var(--sums-brown); border-bottom: 1px solid #ccc; padding-bottom: .4rem; margin: 0; }
.info-list .info-row { display: flex; border-bottom: 1px solid #f1e7d4; }
.info-list .info-row:last-child { border-bottom: 0; }
.info-list dt { flex: 0 0 140px; padding: .55rem .75rem; font-weight: normal; color: #666; background: #fdfaf4; }
.info-list dd { flex: 1 1 auto; min-width: 0; padding: .55rem .75rem; margin: 0; word-break: break-word; }
.qr-img { width: 110px; height: 110px; border: 3px solid #eee; border-radius: 4px; background: #fff; }
.video-box { text-align: center; margin: 20px 0; }
.video-box iframe, .video-box object, .video-box embed { max-width: 100%; }
@media (max-width: 767.98px) {
  .detail-cols { flex-direction: column; align-items: stretch; }
  #detail_img { flex: none; width: 100%; max-width: 420px; margin: 0 auto; }
  #detail_explain { width: 100%; }
  .info-list dt { flex-basis: 110px; }
}

/* ========== お知らせ ========== */
.news-date { color: #888; font-size: 13px; }

/* ========== お問い合わせ ========== */
.hp-field { position: absolute !important; left: -9999px !important; top: -9999px !important; height: 0; overflow: hidden; }
.confirm-list dt { font-weight: bold; color: #555; }
.confirm-list dd { margin-bottom: .8rem; padding-bottom: .8rem; border-bottom: 1px dotted #ddd; }

/* ========== 拡大表示 ========== */
#lightbox .modal-body img { max-height: 80vh; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  border: 0; background: rgba(0, 0, 0, .35); color: #fff;
  font-size: 34px; line-height: 1; width: 44px; height: 60px; border-radius: 4px;
}
.lb-nav:hover { background: rgba(0, 0, 0, .6); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }

/* ========== スマホ ========== */
@media (max-width: 575.98px) {
  .site-shell { padding: 8px 8px 4px; }
  .site-panel { padding: 14px 12px; border-radius: 12px; margin-bottom: 10px; }
  #header { padding: 4px 10px; margin-bottom: 10px; border-radius: 12px; gap: 6px; }
  #header .hd-univ { width: 46px; }
  #footer { padding: 14px; }
  #tag { font-size: 18px; min-height: 62px; padding: 14px 70px 14px 16px; letter-spacing: .1em; border-radius: 12px; }
  #tag .tag-icon { font-size: 28px; right: 18px; }
  ul { margin: 15px 0 15px 20px; }
}

/* ========== お問い合わせの進行表示 ========== */
.contact-steps { display: flex; list-style: none; margin: 0 0 1.25rem; padding: 0; gap: 0; counter-reset: step; }
.contact-steps li {
  flex: 1 1 0; text-align: center; position: relative; color: #999; font-size: 13px; padding-top: 2px;
}
.contact-steps li::before {
  content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: #ddd; z-index: 0;
}
.contact-steps li:first-child::before { display: none; }
.contact-steps .num {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin: 0 auto 4px; border-radius: 50%; background: #e9ecef; color: #888; font-weight: bold;
}
.contact-steps li.active, .contact-steps li.done { color: var(--sums-blue); font-weight: bold; }
.contact-steps li.active .num, .contact-steps li.done .num { background: var(--sums-blue); color: #fff; }
.contact-steps li.done::before, .contact-steps li.active::before { background: var(--sums-blue); }

/* ========== 詳細：項目タイル ========== */
.spec-heading {
  font-size: 13px; font-weight: bold; color: var(--sums-blue); letter-spacing: .08em;
  display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem;
}
.spec-heading::after { content: ""; flex: 1; height: 1px; background: #dbe8f1; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; }
@media (max-width: 575.98px) { .spec-grid { grid-template-columns: 1fr 1fr; } .spec-icon { display: none; } }
.spec-tile {
  display: flex; gap: .65rem; align-items: flex-start;
  padding: .65rem .75rem; border: 1px solid #e6eef4; border-radius: .6rem; background: #f8fbfd;
}
.spec-icon {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #e3f0f8; color: var(--sums-blue); font-size: 15px;
}
.spec-label { font-size: 11px; color: #7a8a96; line-height: 1.4; }
.spec-value { font-weight: bold; color: #333; line-height: 1.5; word-break: break-word; }
.min-w-0 { min-width: 0; }
.qr-box {
  display: flex; gap: 1rem; align-items: center;
  padding: .75rem; border: 1px dashed #c9d6df; border-radius: .6rem; background: #fff;
}
.qr-box .qr-img { width: 96px; height: 96px; }

/* ========== セクション見出し（トップページ） ========== */
.section-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--sums-brown);
  letter-spacing: .08em;
  margin: 0 0 .9rem;
  padding-bottom: .55rem;
  border-bottom: 2px solid #e6eef4;
  position: relative;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 64px;
  height: 2px;
  background: var(--sums-blue);
}
.section-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2b8fd0, var(--sums-blue));
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 3px 8px rgba(0, 110, 175, .25);
}

/* ========== お知らせカード ========== */
.news-cards { display: flex; flex-direction: column; gap: 10px; }
.news-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #e6eef4;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.news-card:hover {
  border-color: #9cc6e0;
  box-shadow: 0 .4rem 1rem rgba(0, 110, 175, .12);
  transform: translateY(-1px);
  color: inherit;
}
.news-cal {
  flex: 0 0 64px;
  text-align: center;
  border-radius: 10px;
  background: #eef6fb;
  padding: 6px 0;
  line-height: 1.2;
}
.news-cal .y { display: block; font-size: 11px; color: #6a8597; letter-spacing: .05em; }
.news-cal .md { display: block; font-size: 18px; font-weight: bold; color: var(--sums-blue); }
.news-text { flex: 1 1 auto; min-width: 0; }
.news-title { font-weight: bold; color: #333; line-height: 1.5; }
.news-card:hover .news-title { color: var(--sums-blue); }
.news-new { background: #f60; color: #fff; font-size: 10px; vertical-align: .15em; margin-right: .3em; }
.news-excerpt { font-size: 13px; color: #777; line-height: 1.6; margin-top: 4px; }
.news-meta { display: flex; gap: 12px; font-size: 12px; color: #8a9aa6; margin-top: 4px; }
.news-thumb { flex: 0 0 96px; width: 96px; height: 72px; border-radius: 8px; overflow: hidden; background: #f1f4f6; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-arrow { flex: 0 0 auto; color: #b9c8d2; transition: transform .15s, color .15s; }
.news-card:hover .news-arrow { color: var(--sums-blue); transform: translateX(3px); }
.news-card.is-compact { padding: 8px 12px; }
.news-card.is-compact .news-cal { flex-basis: 56px; padding: 4px 0; }
.news-card.is-compact .news-cal .md { font-size: 15px; }
@media (max-width: 575.98px) {
  .news-card { gap: 10px; padding: 10px; }
  .news-thumb { flex-basis: 72px; width: 72px; height: 56px; }
  .news-arrow { display: none; }
}

/* ========== お知らせ詳細 ========== */
.news-article {
  border: 1px solid #e6eef4;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.news-article-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #f5fafd, #fff);
  border-bottom: 1px solid #e6eef4;
}
.news-article-head .news-cal { flex: 0 0 72px; padding: 8px 0; }
.news-article-head .news-cal .md { font-size: 20px; }
.news-article-title { font-size: 1.3rem; font-weight: bold; color: var(--sums-brown); line-height: 1.5; margin: 0 0 4px; }
.news-article-body { padding: 20px; }
.news-article-body .news-body { font-size: 15px; line-height: 2; margin: 0; }
.news-article-image { margin: 0 0 18px; }
.news-article-image img { border-radius: 10px; max-height: 460px; width: auto; box-shadow: 0 4px 14px rgba(0, 60, 100, .12); }
.news-attachment {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid #e6eef4;
  border-radius: 12px;
  background: #f8fbfd;
  color: inherit;
  text-decoration: none;
  max-width: 480px;
  transition: border-color .15s, box-shadow .15s;
}
.news-attachment:hover { border-color: #9cc6e0; box-shadow: 0 .3rem .8rem rgba(0, 110, 175, .12); color: var(--sums-blue); }
.news-attachment-icon {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: #fdecec; color: #d63939; font-size: 1.2rem;
}
.news-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.news-pager-link {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px; border: 1px solid #e6eef4; border-radius: 12px;
  color: inherit; text-decoration: none; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.news-pager-link:hover { border-color: #9cc6e0; box-shadow: 0 .3rem .8rem rgba(0, 110, 175, .12); color: inherit; }
.news-pager-link.next { text-align: right; grid-column: 2; }
.news-pager-title { font-weight: bold; color: var(--sums-blue); line-height: 1.5; }
@media (max-width: 575.98px) {
  .news-article-head { padding: 14px; gap: 12px; }
  .news-article-head .news-cal { flex-basis: 60px; }
  .news-article-title { font-size: 1.1rem; }
  .news-article-body { padding: 14px; }
  .news-pager { grid-template-columns: 1fr; }
  .news-pager-link.next { grid-column: auto; }
}

/* ========== メディカルミュージアム ========== */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.feature-card {
  display: flex; gap: 12px; align-items: center;
  padding: 14px; border: 1px solid #e6eef4; border-radius: 12px; background: #f8fbfd;
}
.feature-icon {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: #e3f0f8; color: var(--sums-blue); font-size: 1.3rem;
}
.feature-label { font-size: 12px; color: #6a8597; letter-spacing: .05em; }
.feature-text { font-weight: bold; color: #333; line-height: 1.5; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery-card {
  position: relative; display: block; overflow: hidden;
  border: 1px solid #e6eef4; border-radius: 12px; background: #fff;
  color: inherit; text-decoration: none;
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.gallery-card:hover { border-color: #9cc6e0; box-shadow: 0 .4rem 1rem rgba(0, 110, 175, .12); transform: translateY(-2px); color: inherit; }
.gallery-card img { object-fit: cover; transition: transform .25s; }
.gallery-card:hover img { transform: scale(1.04); }
.gallery-caption { display: block; padding: 8px 10px; font-size: 12px; color: #555; line-height: 1.6; }
.gallery-zoom {
  position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .9); color: var(--sums-blue); font-size: 13px;
  opacity: 0; transition: opacity .15s;
}
.gallery-card:hover .gallery-zoom { opacity: 1; }

.empty-state {
  text-align: center; color: #8a9aa6; padding: 36px 16px;
  border: 1px dashed #c9d6df; border-radius: 12px; background: #fbfdfe;
}
.empty-state i { display: block; font-size: 2.2rem; margin-bottom: 6px; color: #b9c8d2; }

.cta-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 16px 18px; border-radius: 12px;
  background: linear-gradient(135deg, #eef6fb, #f8fbfd); border: 1px solid #d7e7f2;
}

/* ========== センターについて ========== */
.lead-card {
  padding: 20px 22px;
  border: 1px solid #e6eef4;
  border-left: 4px solid var(--sums-blue);
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  line-height: 2;
}
.lead-card p + p { margin-top: .9em; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 14px; border-radius: 50rem;
  background: #eef6fb; color: var(--sums-blue); border: 1px solid #d7e7f2;
  font-size: 13px; font-weight: bold;
}
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.service-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border: 1px solid #e6eef4; border-radius: 12px; background: #fff;
  color: inherit; text-decoration: none;
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.service-card:hover { border-color: #9cc6e0; box-shadow: 0 .4rem 1rem rgba(0, 110, 175, .12); transform: translateY(-2px); color: inherit; }
.service-name { display: block; font-weight: bold; color: var(--sums-blue); line-height: 1.4; }
.service-desc { display: block; font-size: 12px; color: #777; line-height: 1.5; margin-top: 2px; }
.service-arrow { margin-left: auto; color: #b9c8d2; transition: transform .15s, color .15s; }
.service-card:hover .service-arrow { color: var(--sums-blue); transform: translateX(3px); }
@media (max-width: 575.98px) {
  .lead-card { padding: 14px 16px; font-size: 14px; }
}

/* ========== 備品貸出 ========== */
.feature-grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.condition-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.condition-card {
  padding: 16px 18px; border-radius: 12px; text-align: center;
  background: linear-gradient(135deg, #eef6fb, #f8fbfd); border: 1px solid #d7e7f2;
}
.condition-label { font-size: 13px; color: #6a8597; font-weight: bold; }
.condition-value { font-size: 1.8rem; font-weight: bold; color: var(--sums-blue); line-height: 1.4; margin: 2px 0; }
.condition-note { font-size: 12px; color: #777; }

.step-flow {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  list-style: none; margin: 0; padding: 0; counter-reset: none;
}
.step-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 18px 14px 14px; border: 1px solid #e6eef4; border-radius: 12px; background: #fff;
}
.step-card:not(:last-child)::after {
  content: "\F285"; /* bi-chevron-right */
  font-family: "bootstrap-icons";
  position: absolute; right: -18px; top: 50%; transform: translateY(-50%);
  color: #9cc6e0; font-size: 1.1rem;
}
.step-num {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--sums-blue); color: #fff; font-size: 12px; font-weight: bold;
  display: flex; align-items: center; justify-content: center;
}
.step-name { font-weight: bold; color: var(--sums-brown); }
.step-desc { font-size: 12px; color: #777; line-height: 1.6; margin-bottom: 6px; }
@media (max-width: 767.98px) {
  .step-flow { grid-template-columns: 1fr; gap: 30px; }
  .step-card:not(:last-child)::after { content: "\F282"; /* bi-chevron-down */ right: auto; left: 50%; top: auto; bottom: -27px; transform: translateX(-50%); }
}

/* ========== アクセス ========== */
.access-place { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 14px; align-items: start; }
.access-address { word-break: keep-all; overflow-wrap: anywhere; padding: 18px; border: 1px solid #e6eef4; border-left: 4px solid var(--sums-blue); border-radius: 12px; background: #fff; line-height: 1.9; }
.access-map { position: relative; display: block; border: 1px solid #e6eef4; border-radius: 12px; overflow: hidden; background: #fff; }
.access-map img { display: block; width: 100%; height: auto; transition: transform .25s; }
.access-map:hover img { transform: scale(1.03); }
.access-map:hover .gallery-zoom { opacity: 1; }

.route { list-style: none; margin: 0 0 14px; padding: 0; display: flex; gap: 0; }
.route-stop {
  position: relative; flex: 1 1 0; display: flex; gap: 10px; align-items: center;
  padding: 12px 14px; border: 1px solid #e6eef4; border-radius: 12px; background: #f8fbfd;
}
.route-stop + .route-stop { margin-left: 26px; }
.route-stop + .route-stop::before {
  content: "\F285"; font-family: "bootstrap-icons";
  position: absolute; left: -20px; top: 50%; transform: translateY(-50%); color: #9cc6e0;
}
.route-stop.is-goal { background: #eef6fb; border-color: #b8d6ea; }
.route-icon {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--sums-blue); border: 1px solid #d7e7f2; font-size: 1.1rem;
}
.route-stop.is-goal .route-icon { background: var(--sums-blue); color: #fff; border-color: var(--sums-blue); }
.route-name { font-weight: bold; color: #333; line-height: 1.4; }
.route-note { font-size: 12px; color: #777; }

.note-list { list-style: none; margin: 0 0 12px; padding: 0; }
.note-list li { position: relative; padding-left: 1.3em; margin-bottom: .3em; font-size: 13px; color: #555; }
.note-list li::before { content: "\F431"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: var(--sums-blue); }

@media (max-width: 767.98px) {
  .access-place { grid-template-columns: 1fr; }
  .route { flex-direction: column; }
  .route-stop + .route-stop { margin-left: 0; margin-top: 22px; }
  .route-stop + .route-stop::before { content: "\F282"; left: 30px; top: -20px; transform: none; }
}

/* ========== セミナー・出張講義 ========== */
.lecture-card {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px; border: 1px solid #e6eef4; border-radius: 12px; background: #f8fbfd;
}
.lecture-title { font-weight: bold; color: #333; line-height: 1.5; margin-bottom: 4px; }
.service-grid.grid-fill { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ========== ページ内タブ（バーチャルスライドなど） ========== */
.sub-tabs { gap: 6px; flex-wrap: wrap; }
.sub-tabs .nav-link {
  border: 1px solid #d7e7f2; border-radius: 50rem; color: var(--sums-blue);
  padding: .35rem .95rem; font-size: 13px; background: #fff;
}
.sub-tabs .nav-link:hover { background: #eef6fb; }
.sub-tabs .nav-link.active { background: var(--sums-blue); border-color: var(--sums-blue); color: #fff; }

/* ========== 収蔵資料について ========== */
.category-list { display: flex; flex-direction: column; gap: 12px; }
.category-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 14px; border: 1px solid #e6eef4; border-radius: 12px; background: #fff;
  color: inherit; text-decoration: none;
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.category-card:hover { border-color: #9cc6e0; box-shadow: 0 .4rem 1rem rgba(0, 110, 175, .12); transform: translateY(-2px); color: inherit; }
.category-img { flex: 0 0 200px; border-radius: 8px; overflow: hidden; border: 1px solid #eee; }
.category-img img { display: block; width: 100%; height: auto; }
.category-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.category-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.category-name { font-size: 17px; font-weight: bold; color: var(--sums-brown); }
.category-count { background: #eef6fb; color: var(--sums-blue); border: 1px solid #d7e7f2; font-weight: normal; }
.category-desc { font-size: 13px; color: #555; line-height: 1.7; }
.category-more { margin-top: 2px; font-size: 13px; font-weight: bold; color: var(--sums-blue); }
.category-more i { transition: transform .15s; display: inline-block; }
.category-card:hover .category-more i { transform: translateX(3px); }
@media (max-width: 575.98px) {
  .category-card { gap: 10px; padding: 12px; }
  .category-img { flex: 0 0 110px; }
  .category-name { font-size: 15px; }
  .category-desc { font-size: 12px; }
}

/* ========== お問い合わせフォーム ========== */
.form-panel { border: 1px solid #e6eef4; border-radius: 12px; overflow: hidden; background: #fff; }
.form-panel > .card-body { padding: 20px; }
.form-panel > .card-footer { background: #f8fbfd; border-top: 1px solid #e6eef4; padding: 12px 20px; }
.form-panel .form-control { background: #fbfdfe; }
.form-panel .form-control:focus { background: #fff; }
.access-address.h-auto { height: auto; }

/* ========== 収蔵資料データベース：検索・分類タブ・条件チップ ========== */
.quick-search .input-group { box-shadow: 0 2px 10px rgba(0, 60, 100, .08); border-radius: 12px; }
.quick-search .input-group > :first-child { border-top-left-radius: 12px; border-bottom-left-radius: 12px; }
.quick-search .input-group > :last-child { border-top-right-radius: 12px; border-bottom-right-radius: 12px; }
.quick-search .form-control, .quick-search .input-group-text { border-color: #d7e7f2; font-size: 15px; }

.cat-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 50rem; border: 1px solid #d7e7f2; background: #fff;
  color: #445; font-size: 13px; text-decoration: none; transition: background .15s, border-color .15s;
}
.cat-tab:hover { background: #eef6fb; border-color: #9cc6e0; color: var(--sums-blue); }
.cat-tab.active { background: var(--sums-blue); border-color: var(--sums-blue); color: #fff; }
.cat-count { font-size: 11px; padding: 0 6px; border-radius: 50rem; background: #eef6fb; color: var(--sums-blue); }
.cat-tab.active .cat-count { background: rgba(255, 255, 255, .25); color: #fff; }

.result-head { display: flex; align-items: center; gap: 8px; }
.result-count { margin-left: auto; font-size: 1.4rem; color: var(--sums-blue); letter-spacing: 0; }
.result-count small { font-size: 13px; margin-left: 2px; color: #6a8597; }

.filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px 6px 3px 12px; border-radius: 50rem; background: #eef6fb; border: 1px solid #d7e7f2;
  color: var(--sums-blue); font-size: 12px; text-decoration: none;
}
.filter-chip i { font-size: 16px; line-height: 1; opacity: .6; }
.filter-chip:hover { background: #fdecec; border-color: #f3c4c4; color: #c03030; }
.filter-chip:hover i { opacity: 1; }
.filter-clear { font-size: 12px; margin-left: 4px; color: #888; }

.item-noimg {
  display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #b9c8d2; background: linear-gradient(135deg, #f4f8fb, #eaf1f6);
}
.item-noimg i { font-size: 2rem; }
.item-noimg small { font-size: 11px; color: #9aabb7; }
