/* ============================================================
   実験動物研究教育センター 共通スタイルシート
   編集時の注意：このファイルを変更すると全ページに反映されます
   ============================================================ */

/* ===== リセット・ベース ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 14px;
  color: #1A1A1A;
  background: #fff;
  min-width: 900px;
}
a { color: #DE0039; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== ヘッダー ===== */
.site-header {
  background: #DE0039;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-logo-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.03em;
  display: block;
  font-family: 'IBM Plex Sans JP', "Hiragino Kaku Gothic ProN", sans-serif;
}
.site-logo-sub {
  font-size: 11px;
  color: #FFAEC4;
  margin-top: 1px;
  display: block;
}
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  font-size: 12px;
  color: #FFD0DC;
  padding: 8px 11px;
  border-radius: 4px;
  white-space: nowrap;
}
.site-nav a:hover { background: rgba(255,255,255,0.15); color: #fff; text-decoration: none; }
.site-nav a.current { color: #fff; background: rgba(255,255,255,0.2); }
.nav-intra {
  margin-left: 10px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff !important;
  border-radius: 4px;
  padding: 6px 13px !important;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-intra:hover { background: rgba(255,255,255,0.28) !important; text-decoration: none !important; }
.nav-apply {
  margin-left: 6px;
  background: #fff;
  border: 1px solid #fff;
  color: #DE0039 !important;
  border-radius: 4px;
  padding: 6px 13px !important;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-apply:hover { background: #FFF0F0 !important; text-decoration: none !important; }

/* ===== ページヘッダー（内部ページ共通） ===== */
.page-header {
  background: #F7F5F2;
  border-bottom: 1px solid #E5E5E5;
  padding: 28px 32px 24px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #999;
  margin-bottom: 10px;
}
.breadcrumb a { color: #999; }
.breadcrumb a:hover { color: #DE0039; text-decoration: none; }
.breadcrumb i { font-size: 12px; }
.page-title {
  font-size: 24px;
  font-weight: 600;
  color: #1A1A1A;
  font-family: 'IBM Plex Sans JP', "Hiragino Kaku Gothic ProN", sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-title i { color: #DE0039; font-size: 26px; }

/* ===== セクション見出し（内部ページ共通） ===== */
.section-heading {
  font-size: 16px;
  font-weight: 600;
  color: #1A1A1A;
  font-family: 'IBM Plex Sans JP', "Hiragino Kaku Gothic ProN", sans-serif;
  padding-bottom: 10px;
  border-bottom: 2px solid #DE0039;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-heading i { color: #DE0039; font-size: 18px; }

/* ===== サイドナビ（introduction / laws / inspection 共通） ===== */
.content-wrap {
  display: grid;
  grid-template-columns: 200px 1fr;
  max-width: 1100px;
  margin: 0 auto;
  border-left: 1px solid #E5E5E5;
  border-right: 1px solid #E5E5E5;
  min-height: calc(100vh - 160px);
}
.side-nav {
  border-right: 1px solid #E5E5E5;
  padding: 24px 0;
  background: #FAFAFA;
}
.side-nav-title {
  font-size: 11px;
  font-weight: 600;
  color: #999;
  letter-spacing: 0.08em;
  padding: 0 18px 10px;
  border-bottom: 1px solid #E5E5E5;
  margin-bottom: 8px;
}
.side-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 12px;
  color: #444;
  border-left: 3px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
  line-height: 1.5;
}
.side-nav-item:hover { background: #F0F0F0; color: #DE0039; text-decoration: none; }
.side-nav-item.active { border-left-color: #DE0039; color: #DE0039; background: #FFF5F7; font-weight: 500; }
.side-nav-item i { font-size: 15px; flex-shrink: 0; }

/* ===== メインコンテンツ（内部ページ共通） ===== */
.main-content { padding: 32px 36px 52px; }
.section-block { margin-bottom: 44px; }
.section-block:last-child { margin-bottom: 0; }

/* ===== メインコンテンツ（サイドナビなしページ） ===== */
.main-content-full {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 36px 52px;
  border-left: 1px solid #E5E5E5;
  border-right: 1px solid #E5E5E5;
  min-height: calc(100vh - 160px);
}

/* ===== フッター ===== */
.site-footer {
  background: #2A2A2A;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy { font-size: 11px; color: #888; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { font-size: 11px; color: #AAA; }
.footer-links a:hover { color: #fff; text-decoration: none; }

/* ===== ヒーロー（index.html専用） ===== */
.hero {
  position: relative;
  height: 210px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: #B8C9D1;
  overflow: hidden;
}

/* SVG幾何学図形 - 大きな半円（右側） */
.hero-bg::before {
  content: '';
  position: absolute;
  right: -120px;
  top: -40px;
  width: 380px;
  height: 280px;
  background: radial-gradient(circle at center, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
}

/* SVG幾何学図形 - 複数の小さな円 */
.hero-bg::after {
  content: '';
  position: absolute;
  right: 80px;
  bottom: 40px;
  width: 200px;
  height: 200px;
  background: 
    radial-gradient(circle at 30% 30%, rgba(100, 200, 220, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
  border-radius: 50%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.01) 60%, rgba(0,0,0,0.0) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 36px 30px;
  flex: 1;
}
.hero-accent {
  display: inline-block;
  width: 26px;
  height: 3px;
  background: #DE0039;
  border-radius: 2px;
  margin-bottom: 10px;
}
.hero-tag {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.hero-title {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 6px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
  font-family: 'IBM Plex Sans JP', "Hiragino Kaku Gothic ProN", sans-serif;
}
.hero-sub { font-size: 12px; color: rgba(255,255,255,0.8); }
.hero-badges {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 28px 30px 0;
  flex-shrink: 0;
}
.hero-badge {
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 9px 18px;
  text-align: center;
  min-width: 115px;
}
.hero-badge-num { font-size: 17px; font-weight: 600; color: #fff; line-height: 1; }
.hero-badge-label { font-size: 10px; color: rgba(255,255,255,0.75); margin-top: 3px; }

/* ===== クイックナビ（index.html専用） ===== */
.quick-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #E5E5E5;
  background: #fff;
}
.quick-nav-item {
  padding: 15px 12px;
  text-align: center;
  border-right: 1px solid #E5E5E5;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  display: block;
  color: #555;
}
.quick-nav-item:last-child { border-right: none; }
.quick-nav-item:hover { background: #FFF5F7; text-decoration: none; }
.quick-nav-icon { font-size: 22px; color: #DE0039; margin-bottom: 5px; display: block; }
.quick-nav-label { font-size: 12px; color: #444; font-weight: 500; }

/* ===== お知らせ（index.html専用） ===== */
.main-wrap {
  display: grid;
  grid-template-columns: 1fr 268px;
  max-width: 1100px;
  margin: 0 auto;
  border-left: 1px solid #E5E5E5;
  border-right: 1px solid #E5E5E5;
}
.news-col { padding: 24px 28px; border-right: 1px solid #E5E5E5; }
.section-title {
  font-size: 14px;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 14px;
  padding-bottom: 9px;
  border-bottom: 2px solid #DE0039;
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-title i { color: #DE0039; font-size: 17px; }
.news-tabs { display: flex; gap: 5px; margin-bottom: 14px; }
.tab-btn {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  border: 1px solid #CCC;
  color: #666;
  background: transparent;
  font-family: inherit;
  transition: all 0.15s;
}
.tab-btn.active { background: #DE0039; color: #fff; border-color: #DE0039; }
.tab-btn:hover:not(.active) { border-color: #DE0039; color: #DE0039; }
.news-list { list-style: none; }
.news-item {
  display: grid;
  grid-template-columns: 36px 76px auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #F0F0F0;
}
.news-item:last-child { border-bottom: none; }
.news-new-col { display: flex; align-items: center; justify-content: center; }
.news-date { font-size: 11px; color: #999; white-space: nowrap; }
.news-cat { font-size: 10px; padding: 2px 7px; border-radius: 10px; white-space: nowrap; min-width: 65px; text-align: center; }
.news-cat.center { background: #FFE5EC; color: #9B0028; }
.news-cat.iacuc { background: #E6F1FB; color: #0C447C; }
.news-text { font-size: 13px; color: #1A1A1A; line-height: 1.55; }
.news-text a { color: #DE0039; }
.badge-new {
  display: inline-block;
  font-size: 9px;
  background: #DE0039;
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  vertical-align: middle;
  font-weight: 600;
}
.news-group.hidden { display: none; }

/* ===== サイドバー（index.html専用） ===== */
.side-col { padding: 20px 16px; }
.update-list { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-bottom: 24px; }
.update-item a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 6px;
  background: #F7F7F7;
  font-size: 12px;
  color: #333;
  transition: background 0.15s;
}
.update-item a:hover { background: #FFE5EC; text-decoration: none; }
.update-item i { font-size: 16px; color: #888; flex-shrink: 0; }
.contact-card {
  background: #F7F7F7;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 8px;
}
.contact-card-title {
  font-size: 12px;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.contact-card-title i { color: #DE0039; }
.contact-mail { font-size: 12px; color: #DE0039; display: block; margin-bottom: 5px; word-break: break-all; }
.contact-hours { font-size: 11px; color: #666; line-height: 1.6; }

/* ===== 汎用ユーティリティ ===== */
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }

/* ============================================================
   introduction.html 固有スタイル
   ============================================================ */
.history-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.history-table th { background: #F7F5F2; padding: 9px 16px; text-align: left; font-weight: 600; color: #555; border-bottom: 1px solid #E5E5E5; font-size: 12px; }
.history-table td { padding: 9px 16px; border-bottom: 1px solid #F0F0F0; color: #333; line-height: 1.6; }
.history-table tr:last-child td { border-bottom: none; }
.history-table tr:hover td { background: #FFF5F7; }
.history-table .year-col { white-space: nowrap; color: #888; font-size: 12px; min-width: 110px; }

.director-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.director-table th { background: #F7F5F2; padding: 9px 16px; text-align: left; font-weight: 600; color: #555; border-bottom: 1px solid #E5E5E5; font-size: 12px; }
.director-table td { padding: 9px 16px; border-bottom: 1px solid #F0F0F0; color: #333; }
.director-table tr:last-child td { border-bottom: none; }
.director-table tr:hover td { background: #FFF5F7; }
.director-table .gen-col { color: #999; font-size: 12px; min-width: 60px; }
.director-table .current-row td { background: #FFE5EC; color: #9B0028; font-weight: 500; }

.staff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.staff-card { border: 1px solid #E5E5E5; border-radius: 8px; overflow: hidden; }
.staff-card-header { background: #F7F5F2; padding: 10px 16px; font-size: 12px; font-weight: 600; color: #555; border-bottom: 1px solid #E5E5E5; }
.staff-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.staff-table td { padding: 9px 16px; border-bottom: 1px solid #F0F0F0; color: #333; }
.staff-table tr:last-child td { border-bottom: none; }
.staff-table .role-col { color: #888; font-size: 12px; min-width: 90px; }

/* ============================================================
   report.html 固有スタイル
   ============================================================ */
.latest-banner {
  display: flex; align-items: center; justify-content: space-between;
  background: #FFE5EC; border: 1px solid #FFAEC4; border-radius: 8px;
  padding: 18px 24px; margin-bottom: 36px;
}
.latest-label { font-size: 11px; font-weight: 600; color: #9B0028; letter-spacing: 0.06em; margin-bottom: 4px; }
.latest-title { font-size: 18px; font-weight: 600; color: #1A1A1A; font-family: 'IBM Plex Sans JP', "Hiragino Kaku Gothic ProN", sans-serif; }
.latest-date { font-size: 12px; color: #888; margin-top: 3px; }
.btn-download {
  display: inline-flex; align-items: center; gap: 7px;
  background: #DE0039; color: #fff; padding: 10px 20px; border-radius: 6px;
  font-size: 13px; font-weight: 500; white-space: nowrap; flex-shrink: 0;
}
.btn-download:hover { background: #B8002F; text-decoration: none; color: #fff; }
.btn-download i { font-size: 17px; }

.report-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 40px; }
.report-card {
  border: 1px solid #E5E5E5; border-radius: 8px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
  transition: all 0.15s; text-decoration: none; color: inherit;
}
.report-card:hover { border-color: #DE0039; background: #FFF5F7; text-decoration: none; }
.report-num { font-size: 11px; color: #DE0039; font-weight: 600; }
.report-year { font-size: 13px; font-weight: 500; color: #1A1A1A; }
.report-icon { margin-top: 6px; font-size: 13px; color: #BBB; display: flex; align-items: center; gap: 4px; }
.report-icon i { font-size: 15px; }
.report-card.pdf .report-icon { color: #DE0039; }
.report-card.html .report-icon { color: #888; }

/* ============================================================
   laws.html 固有スタイル
   ============================================================ */
.law-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.law-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border: 1px solid #E5E5E5; border-radius: 8px; gap: 16px;
  transition: border-color 0.15s, background 0.15s;
}
.law-item:hover { border-color: #FFAEC4; background: #FFF5F7; }
.law-name { font-size: 13px; color: #1A1A1A; line-height: 1.55; flex: 1; }
.law-badge-intra { font-size: 10px; background: #E6F1FB; color: #0C447C; padding: 2px 7px; border-radius: 10px; white-space: nowrap; flex-shrink: 0; }
.law-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; padding: 5px 12px; border: 1px solid #E5E5E5; border-radius: 6px;
  color: #555; white-space: nowrap; flex-shrink: 0; transition: all 0.15s;
}
.law-link:hover { border-color: #DE0039; color: #DE0039; text-decoration: none; }
.law-link i { font-size: 14px; }
.law-link.pdf { color: #DE0039; border-color: #FFAEC4; }
.law-link.pdf:hover { background: #FFE5EC; }

/* 同一リンク先の項目をまとめるグループ表示 */
.law-group {
  border: 1px solid #E5E5E5; border-radius: 8px;
  padding: 12px 16px; transition: border-color 0.15s, background 0.15s;
}
.law-group:hover { border-color: #FFAEC4; background: #FFF5F7; }
.law-group-items { list-style: none; display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.law-group-items li {
  font-size: 13px; color: #1A1A1A; line-height: 1.55;
  padding-left: 14px; position: relative;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.law-group-items li::before { content: '\2022'; position: absolute; left: 0; color: #CCC; }
.law-group-footer { display: flex; justify-content: flex-end; }

/* ============================================================
   inspection.html 固有スタイル
   ============================================================ */
.inspection-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 24px; }
.inspection-table th { background: #DE0039; color: #fff; padding: 9px 16px; text-align: center; font-weight: 600; font-size: 12px; }
.inspection-table th:first-child { text-align: left; }
.inspection-table td { padding: 8px 16px; border-bottom: 1px solid #F0F0F0; font-size: 12px; }
.inspection-table td:not(:first-child) { text-align: center; }
.inspection-table tr:last-child td { border-bottom: none; }
.inspection-table tr:hover td { background: #FFF5F7; }
.check { color: #DE0039; font-size: 16px; font-weight: 700; }

.cell-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.cell-table th { background: #DE0039; color: #fff; padding: 9px 14px; text-align: left; font-weight: 600; font-size: 12px; vertical-align: middle; }
.cell-table td { padding: 10px 14px; border-bottom: 1px solid #F0F0F0; vertical-align: top; line-height: 1.7; }
.cell-table tr:last-child td { border-bottom: none; }
.cell-table tr:hover td { background: #FFF5F7; }
.cell-label { font-weight: 600; color: #444; white-space: nowrap; }

.info-box { background: #F7F5F2; border: 1px solid #E5E5E5; border-radius: 8px; padding: 14px 18px; margin-bottom: 20px; font-size: 13px; color: #555; line-height: 1.7; }
.info-box a { color: #DE0039; }
.section-desc { font-size: 13px; color: #555; line-height: 1.7; margin-bottom: 20px; }

/* ============================================================
   access.html 固有スタイル
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 12px; max-width: 640px; }
.contact-grid-with-address { grid-template-columns: 2fr 1fr 1fr; max-width: none; }
.contact-card-value-sm { font-size: 12.5px; font-weight: 400; line-height: 1.6; }
.contact-note { font-size: 12px; color: #888; margin-bottom: 40px; }
.contact-card-access { border: 1px solid #E5E5E5; border-radius: 8px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.contact-card-icon { font-size: 22px; color: #DE0039; margin-bottom: 4px; }
.contact-card-label { font-size: 11px; color: #999; font-weight: 600; letter-spacing: 0.05em; }
.contact-card-value { font-size: 14px; color: #1A1A1A; font-weight: 500; }
.contact-card-value a { color: #DE0039; }
.contact-address {
  background: #F7F5F2; border: 1px solid #E5E5E5; border-radius: 8px;
  padding: 16px 20px; margin-bottom: 24px; font-size: 13px; color: #333; line-height: 1.8;
  display: flex; align-items: flex-start; gap: 12px;
}
.contact-address i { color: #DE0039; font-size: 20px; margin-top: 2px; flex-shrink: 0; }

.map-wrap { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start; }
.map-img { width: 100%; border: 1px solid #E5E5E5; border-radius: 8px; display: block; }
.map-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.map-table th { background: #F7F5F2; padding: 7px 12px; text-align: left; font-weight: 600; color: #555; border-bottom: 1px solid #E5E5E5; font-size: 11px; }
.map-table td { padding: 7px 12px; border-bottom: 1px solid #F0F0F0; color: #333; }
.map-table tr:last-child td { border-bottom: none; }
.map-table tr:hover td { background: #FFF5F7; }
.map-table .num-col { color: #DE0039; font-weight: 600; text-align: center; width: 36px; }
.map-table tr.highlight td { background: #FFE5EC; font-weight: 500; color: #9B0028; }
.gmap-wrap { margin-top: 32px; }
.gmap-wrap iframe { width: 100%; height: 360px; border: 1px solid #E5E5E5; border-radius: 8px; display: block; }

/* ============================================================
   links.html 固有スタイル
   ============================================================ */
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.link-card {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border: 1px solid #E5E5E5; border-radius: 8px;
  font-size: 13px; color: #1A1A1A; transition: all 0.15s; text-decoration: none;
}
.link-card:hover { border-color: #DE0039; background: #FFF5F7; color: #DE0039; text-decoration: none; }
.link-card i { font-size: 16px; color: #CCC; flex-shrink: 0; transition: color 0.15s; }
.link-card:hover i { color: #DE0039; }
.link-card.featured { border-color: #FFAEC4; background: #FFF5F7; }
.link-card.featured i { color: #DE0039; }
