@charset "UTF-8";

:root {
  --nihs-blue: #bbccff;
  --nihs-blue-dark: #2f4a9e;
  --nihs-blue-deep: #1f3270;
  --nihs-blue-pale: #eef2ff;
  --nihs-blue-line: #d6e0ff;
  --on-theme: #1f3270;
  --text: #222;
  --text-sub: #555;
  --bg: #f5f8fb;
  --surface: #fff;
  --border: #d9e2ea;
  --pdf-red: #c62828;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "BIZ UDPGothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
a { color: var(--nihs-blue-dark); }
a:hover { color: var(--nihs-blue-deep); }
a:focus-visible, .btn-back:focus-visible, .pdf-link:focus-visible {
  outline: 3px solid #f0a500;
  outline-offset: 2px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #fff; padding: 8px 12px; z-index: 10;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ヘッダー */
.site-header {
  background: var(--nihs-blue);
  color: var(--on-theme);
  border-bottom: 4px solid var(--nihs-blue-dark);
}
.site-header .inner {
  max-width: 960px; margin: 0 auto; padding: 22px 16px 18px;
  text-align: center;
}
.site-header .series {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
}
.site-header .series-sub,
.site-header .nowrap { display: inline-block; }
.site-header .series-en {
  margin: 6px 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.site-header a { color: var(--on-theme); text-decoration: none; }
.site-header a:hover { text-decoration: underline; }

/* パンくず */
.breadcrumb {
  max-width: 960px; margin: 0 auto; padding: 10px 16px 0;
  font-size: 0.8rem; color: var(--text-sub);
}
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "›"; margin: 0 0.5em; color: #999; }

main {
  max-width: 960px; margin: 0 auto; padding: 16px 16px 40px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 32px;
  margin-bottom: 24px;
}

/* タイトル */
.page-title {
  margin: 0 0 6px;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--nihs-blue-deep);
  padding-left: 14px;
  border-left: 6px solid var(--nihs-blue);
}
.page-title .vol { display: inline-block; }
.issue-meta {
  margin: 0 0 4px; padding-left: 20px; font-size: 0.9rem; color: var(--text-sub);
}

/* 見出し */
h2 {
  font-size: 1.2rem;
  color: var(--on-theme);
  background: var(--nihs-blue);
  margin: 28px 0 16px;
  padding: 6px 14px;
  border-radius: 3px;
  letter-spacing: 0.1em;
}
h3 {
  font-size: 1.05rem;
  color: var(--nihs-blue-deep);
  margin: 20px 0 10px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--nihs-blue-line);
}
h4 {
  font-size: 1rem; margin: 16px 0 8px; color: var(--nihs-blue-dark);
}

/* 目次 */
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list li {
  position: relative;
  padding: 12px 14px 12px 30px;
  background: var(--nihs-blue-pale);
  border-left: 4px solid var(--nihs-blue);
  border-radius: 0 4px 4px 0;
}
.toc-list li::before {
  content: ""; position: absolute; left: 13px; top: 1.35em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--nihs-blue-dark);
}

/* PDF */
.pdf-area { text-align: center; margin: 32px 0 8px; }
.pdf-link {
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  text-decoration: none; color: var(--text);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.pdf-link:hover {
  border-color: var(--nihs-blue);
  box-shadow: 0 4px 14px rgba(47, 74, 158, 0.18);
  transform: translateY(-1px);
  color: var(--text);
}
.pdf-link .pdf-icon { display: block; width: 64px; height: 80px; }
.pdf-link .label { font-weight: 700; color: var(--nihs-blue-dark); }
.pdf-link .sub { font-size: 0.8rem; color: var(--text-sub); }

/* リンク情報 */
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.link-list a {
  display: block; padding: 12px 16px 12px 40px; position: relative;
  border: 1px solid var(--nihs-blue-line); border-radius: 4px;
  background: #fff; text-decoration: none;
}
.link-list a::before {
  content: ""; position: absolute; left: 16px; top: 50%;
  width: 8px; height: 8px; margin-top: -5px;
  border-top: 2px solid var(--nihs-blue-dark); border-right: 2px solid var(--nihs-blue-dark);
  transform: rotate(45deg);
}
.link-list a:hover { background: var(--nihs-blue-pale); }
.link-list .title { display: block; font-weight: 700; }
.link-list .url { display: block; font-size: 0.8rem; color: var(--text-sub); }

/* 注記 */
.notes {
  background: #f7f9fb;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 18px 22px;
  font-size: 0.88rem;
  color: #333;
}
.notes p { margin: 0 0 8px; }
.notes p:last-child { margin-bottom: 0; }
.notes .caution { color: #8a1c1c; font-weight: 700; }

/* 戻るボタン */
.back-area { text-align: center; margin: 32px 0 0; }
.btn-back {
  display: inline-block;
  min-width: 260px;
  padding: 12px 28px;
  background: var(--nihs-blue);
  color: var(--on-theme);
  border: 1px solid var(--nihs-blue-dark);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: background .2s;
}
.btn-back::before { content: "‹"; margin-right: 0.6em; font-size: 1.2em; line-height: 1; }
.btn-back:hover { background: var(--nihs-blue-deep); color: #fff; }

/* フッター */
.site-footer {
  background: var(--nihs-blue-deep);
  color: #fff;
  text-align: center;
  padding: 20px 16px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}
.site-footer p { margin: 0; }

/* モバイル */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .card { padding: 20px 16px; border-radius: 4px; }
  .site-header .inner { padding: 16px 16px 14px; }
  .site-header .series { font-size: 1.4rem; }
  .site-header .series-en { font-size: 0.8rem; }
  .page-title { font-size: 1.25rem; padding-left: 10px; border-left-width: 5px; }
  .issue-meta { padding-left: 15px; }
  h2 { font-size: 1.05rem; }
  .btn-back { min-width: 0; width: 100%; }
}

@media print {
  .site-header, .breadcrumb, .back-area, .skip-link { display: none; }
  body { background: #fff; }
  .card { border: none; padding: 0; }
}

/* 補助クラス */
.mt-0 { margin-top: 0; }

/* 目次：出典の刊行物名（Drug Safety Update 等）、複数項目の間隔 */
.toc-source {
  margin: 14px 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.toc-list li + li { margin-top: 8px; }
