:root {
  --navy: #1d2d50;
  --navy-deep: #131f3a;
  --mint: #bfeadb;
  --mint-soft: #e8f6f0;
  --mint-line: #9ad4be;
  --ink: #1f2937;
  --muted: #5b6577;
  --paper: #f5faf8;
  --line: #d5e2dd;
  --header-h: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  font-size: 16px;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: #0f5e8a; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  color: var(--navy);
  line-height: 1.5;
  text-wrap: balance;
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: break-word;
}
.container { width: min(1180px, 100% - 32px); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--navy);
  border-bottom: 3px solid var(--mint);
}
.header-inner {
  width: min(1180px, 100% - 32px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand strong { display: block; font-family: "Noto Serif JP", serif; font-size: 1.05rem; line-height: 1.3; }
.brand small { display: block; font-size: 0.62rem; letter-spacing: 0.14em; color: var(--mint); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 6px; background: var(--mint); color: var(--navy);
  display: grid; place-items: center; font-family: "Noto Serif JP", serif; font-weight: 700; font-size: 1.1rem;
}
.global-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.global-nav a {
  display: block; padding: 8px 10px; color: #dbe5f5; text-decoration: none; font-size: 0.86rem; border-radius: 4px; white-space: nowrap;
}
.global-nav a:hover, .global-nav a[aria-current="page"] { background: rgba(191, 234, 219, 0.18); color: #fff; }
.global-nav a.is-compare { color: var(--mint); font-weight: 700; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,0.4); background: transparent; border-radius: 6px; cursor: pointer; padding: 10px;
}
.menu-toggle span { display: block; height: 2px; background: #fff; margin: 6px 0; transition: transform 0.2s, opacity 0.2s; }
.menu-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.pr-notice { margin: 0; padding: 4px 16px; background: var(--mint-soft); color: var(--muted); font-size: 0.72rem; text-align: center; }
.hero-block { position: relative; min-height: 360px; display: flex; align-items: flex-end; overflow: hidden; background: var(--navy-deep); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-block::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,31,58,0.15) 0%, rgba(19,31,58,0.72) 100%); }
.hero-copy { position: relative; z-index: 1; width: min(1180px, 100% - 32px); margin: 0 auto; padding: 56px 0 40px; color: #fff; }
.eyebrow { margin: 0 0 8px; font-size: 0.75rem; letter-spacing: 0.2em; color: var(--mint); font-weight: 700; }
.hero-copy h1 {
  margin: 0 0 12px; color: #fff; font-size: clamp(1.9rem, 3.9vw, 3.4rem);
  text-shadow: 0 2px 14px rgba(0,0,0,0.65), 0 0 2px rgba(0,0,0,0.7);
}
.hero-lead { margin: 0; max-width: 46em; font-size: 1rem; color: #eef6f2; text-shadow: 0 1px 8px rgba(0,0,0,0.7); }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; padding: 40px 0 64px; align-items: start; }
.article { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 32px 36px; min-width: 0; }
.article section { margin-bottom: 36px; }
.article h2 { font-size: 1.5rem; margin: 0 0 16px; padding: 4px 0 4px 14px; border-left: 6px solid var(--mint-line); }
.article h3 { font-size: 1.15rem; margin: 26px 0 8px; color: #24407a; }
.article p { margin: 0 0 1.1em; }
.updated { font-size: 0.82rem; color: var(--muted); }
.medical-note { padding: 12px 16px; background: var(--mint-soft); border-left: 4px solid var(--navy); font-size: 0.9rem; }
.article ul, .article ol { padding-left: 1.4em; }
.article li { margin-bottom: 0.4em; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0 8px; border: 1px solid var(--line); border-radius: 4px; }
.compare-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 0.86rem; line-height: 1.65; }
.compare-table caption { text-align: left; padding: 10px 12px; font-weight: 700; color: var(--navy); background: var(--mint-soft); }
.compare-table th, .compare-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.compare-table thead th { background: var(--navy); color: #fff; white-space: nowrap; }
.compare-table tbody th { background: #eef3fa; color: var(--navy); min-width: 8em; }
.compare-table tbody tr:nth-child(even) td { background: #f6fbf9; }
.table-note { font-size: 0.8rem; color: var(--muted); }
.sidebar { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 18px; }
.sidebar > nav, .toc { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; }
.sidebar h2 { font-size: 0.95rem; margin: 0 0 8px; }
.sidebar ol, .sidebar-links { margin: 0; padding-left: 1.2em; font-size: 0.86rem; line-height: 1.7; }
.sidebar-links { list-style: none; padding: 0; }
.sidebar-links li { margin-bottom: 6px; }
.ad-slot { border: 1px dashed var(--mint-line); background: var(--mint-soft); border-radius: 6px; padding: 16px; text-align: center; font-size: 0.82rem; }
.ad-slot span { display: block; font-size: 0.65rem; letter-spacing: 0.2em; color: var(--muted); }
.ad-slot strong { display: block; color: var(--navy); margin: 4px 0; }
.ad-slot p { margin: 0 0 8px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.related-grid article { border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; background: #fbfdfc; }
.related-grid h3 { margin: 0 0 6px; font-size: 1rem; }
.related-grid p { margin: 0; font-size: 0.84rem; color: var(--muted); }
.related-sites ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.related-sites a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; background: #fff; height: 100%; }
.related-sites strong { display: block; color: var(--navy); }
.related-sites span { font-size: 0.8rem; color: var(--muted); }
.page-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 16px; }
.page-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.page-card.is-compare { border-color: var(--navy); box-shadow: 0 0 0 2px var(--mint); }
.page-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.page-card div { padding: 14px 16px 18px; }
.page-card .tag { display: inline-block; font-size: 0.7rem; background: var(--navy); color: var(--mint); padding: 1px 8px; border-radius: 3px; margin-bottom: 6px; }
.page-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.page-card h3 a { color: var(--navy); text-decoration: none; }
.page-card p { margin: 0; font-size: 0.86rem; color: var(--muted); }
.home-section { width: min(1180px, 100% - 32px); margin: 0 auto; padding: 40px 0 8px; }
.home-section h2 { font-size: 1.6rem; border-left: 6px solid var(--mint-line); padding-left: 14px; }
.latest-commentary { width: min(1180px, 100% - 32px); margin: 0 auto; }
.site-disclaimer { background: #eef3fa; border-top: 1px solid var(--line); padding: 14px 16px; }
.site-disclaimer p { width: min(1180px, 100% - 32px); margin: 0 auto; font-size: 0.78rem; color: var(--muted); line-height: 1.7; }
.site-footer { background: var(--navy-deep); color: #cdd8ec; padding: 40px 0 24px; }
.footer-grid { width: min(1180px, 100% - 32px); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.site-footer h2 { color: #fff; font-size: 1rem; margin: 0 0 10px; }
.site-footer a { color: var(--mint); display: block; margin-bottom: 6px; font-size: 0.88rem; text-decoration: none; }
.site-footer p { font-size: 0.84rem; }
.footer-note, .footer-links, .copyright { width: min(1180px, 100% - 32px); margin: 18px auto 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { display: inline; }
.copyright { font-size: 0.75rem; color: #8fa0c0; }
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .global-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100vh - var(--header-h));
    background: var(--navy-deep); transform: translateX(100%); transition: transform 0.25s; overflow-y: auto; padding: 16px;
  }
  .global-nav.is-open { transform: translateX(0); }
  .global-nav ul { flex-direction: column; gap: 4px; }
  .global-nav a { padding: 14px 12px; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .article { padding: 20px 16px; }
  .hero-block { min-height: 300px; }
  .hero-copy { padding: 40px 0 28px; }
  .article h2 { font-size: 1.28rem; }
}

/* LATEST-COMMENTARY:START */
.latest-commentary {
  padding: 3rem 0;
}
/* .container を持たないサイトでも端に張り付かないための保険。
   :where() は詳細度0なので、サイト側の .container 定義が常に優先される。 */
:where(.latest-commentary .container) {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}
.latest-commentary h2 {
  margin-bottom: 1.25rem;
}
.latest-commentary-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.latest-commentary-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line, #e5e5e5);
}
.latest-commentary-list time {
  flex: 0 0 auto;
  color: var(--muted, #666);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.latest-commentary-list a {
  flex: 1 1 16rem;
  min-width: 0;
  color: var(--ink, #222);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.latest-commentary-list a:hover {
  color: #0b5;
  text-decoration: underline;
}
.latest-commentary-more {
  margin-top: 1.25rem;
}
.latest-commentary-more a {
  color: #0b5;
  text-decoration: none;
  font-weight: 600;
}
.latest-commentary-more a:hover {
  text-decoration: underline;
}
@media (max-width: 600px) {
  .latest-commentary-list li {
    flex-direction: column;
    gap: 0.2rem;
  }
  /* 縦積み時に flex-basis(16rem) が高さに効かないよう auto に戻す */
  .latest-commentary-list a,
  .latest-commentary-list time {
    flex: 0 0 auto;
  }
}
/* LATEST-COMMENTARY:END */

/* Keep the sidebar in document flow unless its full contents fit the viewport (JS adds .sidebar--sticky-fit). */
html body aside.sidebar{position:static;max-height:none}
@media (min-width:1201px){
html body aside.sidebar.sidebar--sticky-fit{position:sticky;top:var(--sidebar-sticky-top,80px);align-self:start}
}
