:root {
  --ink: #1b1f3b;
  --ink-deep: #121530;
  --ink-soft: #2d3262;
  --amber: #e0a526;
  --amber-deep: #a8740a;
  --paper: #f6f5f0;
  --line: #cfd1e0;
  --text: #20243f;
  --muted: #5a5f7d;
  --white: #ffffff;
  --header-h: 68px;
  --sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.9;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

a { color: #2a3b9b; text-underline-offset: 3px; }

a:hover { color: var(--amber-deep); }

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: break-word;
  line-height: 1.45;
  letter-spacing: .02em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber);
  color: var(--ink);
  padding: 8px 14px;
  z-index: 200;
}

.skip-link:focus { left: 8px; top: 8px; }

.container { width: min(1160px, 100% - 32px); margin: 0 auto; }

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid var(--amber);
  height: var(--header-h);
}

.header-inner {
  width: min(1240px, 100% - 24px);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  min-width: 0;
}

.brand strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.3;
  letter-spacing: .04em;
}

.brand small {
  display: block;
  font-size: .62rem;
  letter-spacing: .22em;
  color: var(--amber);
}

.brand-mark {
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--amber);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--amber);
  font-weight: 700;
  position: relative;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: rgba(224, 165, 38, .45);
}

.brand-mark::before { left: 50%; top: -5px; bottom: -5px; width: 1px; }

.brand-mark::after { top: 50%; left: -5px; right: -5px; height: 1px; }

.global-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
}

.global-nav a {
  display: block;
  padding: 8px 10px;
  color: #dfe1f2;
  text-decoration: none;
  font-size: .86rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.global-nav a:hover,
.global-nav a[aria-current="page"] {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

.global-nav a.is-compare::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  background: var(--amber);
  transform: rotate(45deg);
  vertical-align: middle;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(224, 165, 38, .6);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--amber);
  transition: transform .2s, opacity .2s;
}

.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.pr-notice {
  margin: 0;
  padding: 4px 16px;
  font-size: .72rem;
  line-height: 1.6;
  color: var(--muted);
  background: #ebebf2;
  text-align: center;
}

/* hero */
.hero-block {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  background: var(--ink-deep);
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-block::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(18, 21, 48, .15) 0%, rgba(18, 21, 48, .55) 55%, rgba(18, 21, 48, .88) 100%);
}

.hero-block::after {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 1;
  border: 1px solid rgba(224, 165, 38, .45);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1160px, 100% - 64px);
  margin: 0 auto;
  padding: 120px 0 52px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: .75rem;
  letter-spacing: .3em;
  color: var(--amber);
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3.9vw, 3.4rem);
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .75), 0 0 2px rgba(0, 0, 0, .8);
}

.hero-lead {
  margin: 0;
  max-width: 760px;
  color: #eceefa;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .8);
}

.hero-chips {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-chips a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--amber);
  color: #fff;
  background: rgba(27, 31, 59, .72);
  text-decoration: none;
  font-size: .84rem;
}

.hero-chips a:hover { background: var(--amber); color: var(--ink); }

/* layout */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  padding: 56px 0 72px;
}

.article {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 40px 44px;
  min-width: 0;
}

.article section { margin-bottom: 40px; }

.article h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin: 0 0 18px;
  padding: 0 0 12px 18px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.article h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 8px;
  height: 8px;
  background: var(--amber);
  transform: rotate(45deg);
}

.article h3 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
  color: var(--ink-soft);
  padding-left: 12px;
  border-left: 3px solid var(--amber);
}

.article h4 { font-size: 1.05rem; color: var(--ink-soft); }

.article p { margin: 0 0 1.2em; }

.article ul,
.article ol { padding-left: 1.4em; margin: 0 0 1.2em; }

.article li { margin-bottom: .4em; }

.updated {
  font-size: .82rem;
  color: var(--muted);
  margin: 0 0 18px;
}

.updated::before { content: "◇ "; color: var(--amber-deep); }

.note-box {
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  background: #faf9f3;
  padding: 14px 18px;
  margin: 0 0 1.4em;
  font-size: .94rem;
}

.source-box {
  border: 1px dashed var(--ink-soft);
  padding: 14px 18px;
  margin: 1.4em 0;
  font-size: .92rem;
  background: #f3f4fa;
}

.source-box strong { color: var(--ink); }

/* tables */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 12px;
  border: 1px solid var(--line);
}

.compare-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 1020px;
  font-size: .84rem;
  line-height: 1.65;
}

.compare-table th,
.compare-table td {
  border: 1px solid var(--line);
  padding: 9px 11px;
  vertical-align: top;
  text-align: left;
}

.compare-table thead th {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  border-color: #3b4180;
}

.compare-table tbody th {
  background: #eceefa;
  color: var(--ink);
  min-width: 130px;
}

.compare-table tbody tr:nth-child(even) td { background: #f7f7fb; }

.table-note {
  font-size: .82rem;
  color: var(--muted);
  margin: 0 0 1.6em;
}

.small-table { min-width: 640px; }

/* sidebar */
.sidebar { align-self: start; position: sticky; top: 84px; }

.sidebar nav {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 18px 20px;
  margin-bottom: 20px;
}

.sidebar h2 {
  font-size: .86rem;
  letter-spacing: .16em;
  margin: 0 0 10px;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--amber);
}

.sidebar ol,
.sidebar ul { margin: 0; padding-left: 1.2em; font-size: .88rem; line-height: 1.7; }

.sidebar li { margin-bottom: 6px; }

.sidebar-links { list-style: none; padding-left: 0 !important; }

.ad-slot {
  border: 1px solid var(--ink-soft);
  background: var(--ink);
  color: #e8eaf8;
  padding: 18px 20px;
  margin-bottom: 20px;
  text-align: center;
}

.ad-slot span {
  display: inline-block;
  font-size: .66rem;
  letter-spacing: .3em;
  color: var(--amber);
}

.ad-slot strong { display: block; margin: 4px 0 6px; font-size: 1rem; color: #fff; }

.ad-slot p { margin: 0 0 8px; font-size: .82rem; line-height: 1.7; }

.ad-slot a { color: var(--amber); font-size: .86rem; }

/* index */
.index-section { padding: 56px 0 8px; }

.index-section h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin: 0 0 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.section-lead { color: var(--muted); margin: 0 0 24px; }

.intro-block h3 { margin: 2em 0 .8em; color: var(--ink-soft); }

.layer-list,
.stance-list { padding-left: 1.3em; }

.page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.page-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px 22px 20px;
}

.page-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--amber);
}

.page-card .num {
  position: absolute;
  right: 16px;
  top: 10px;
  font-size: 2rem;
  font-weight: 300;
  color: #d4d6e8;
  letter-spacing: .06em;
}

.page-card h3 { font-size: 1.05rem; margin: 6px 0 10px; padding-right: 44px; }

.page-card h3 a { color: var(--ink); text-decoration: none; }

.page-card p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.8; }

.page-card.is-compare { background: var(--ink); border-color: var(--ink); }

.page-card.is-compare h3 a { color: #fff; }

.page-card.is-compare p { color: #cfd2ea; }

.page-card.is-compare .num { color: rgba(224, 165, 38, .5); }

.badge {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .12em;
  padding: 1px 10px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
}

.latest-commentary { padding: 48px 0 0; }

.latest-commentary h2 { font-size: 1.4rem; color: var(--ink); margin: 0 0 14px; }

.latest-commentary-list { list-style: none; padding: 0; margin: 0; }

.latest-commentary-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }

.latest-commentary-list time { color: var(--muted); font-size: .84rem; margin-right: 12px; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.related-grid article { border: 1px solid var(--line); padding: 14px 16px; background: #fafafd; }

.related-grid h3 { margin: 0 0 6px; font-size: .9rem; border-left: 0; padding-left: 0; }

.related-grid p { margin: 0; font-size: .84rem; color: var(--muted); line-height: 1.7; }

.related-sites ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.related-sites li { margin: 0; }

.related-sites a {
  display: block;
  border: 1px solid var(--line);
  padding: 12px 16px;
  background: var(--white);
  text-decoration: none;
  height: 100%;
}

.related-sites a:hover { border-color: var(--amber); }

.related-sites strong { display: block; color: var(--ink); font-size: .95rem; }

.related-sites span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.6; }

.index-section .related-sites { margin-bottom: 56px; }

/* disclaimer / footer */
.site-disclaimer {
  background: #ebebf2;
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.site-disclaimer p {
  width: min(1160px, 100% - 32px);
  margin: 0 auto;
  font-size: .76rem;
  line-height: 1.8;
  color: var(--muted);
}

.site-footer {
  background: var(--ink-deep);
  color: #cfd2ea;
  padding: 44px 16px 24px;
  border-top: 3px solid var(--amber);
}

.footer-grid {
  width: min(1160px, 100%);
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.site-footer h2 { font-size: .9rem; letter-spacing: .12em; color: #fff; margin: 0 0 10px; }

.site-footer p { font-size: .84rem; line-height: 1.8; margin: 0 0 8px; }

.site-footer nav a {
  display: block;
  color: #cfd2ea;
  text-decoration: none;
  font-size: .86rem;
  padding: 3px 0;
}

.site-footer nav a:hover { color: var(--amber); }

.footer-note {
  width: min(1160px, 100%);
  margin: 0 auto 14px;
  font-size: .76rem !important;
  color: #9ea2c4;
}

.footer-links {
  width: min(1160px, 100%);
  margin: 0 auto 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  border-top: 1px solid rgba(224, 165, 38, .35);
  padding-top: 14px;
}

.footer-links a { color: #fff; font-size: .84rem; }

.copyright { text-align: center; font-size: .74rem !important; color: #8e92b6; }

/* responsive */
@media (max-width: 1100px) {
  .global-nav a { padding: 8px 7px; font-size: .8rem; }
  .brand small { display: none; }
}

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .global-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--ink);
    padding: 12px 20px 40px;
  }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; gap: 0; }
  .global-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(224, 165, 38, .25);
    font-size: 1rem;
  }
  .content-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sidebar { position: static; }
  .page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-block { min-height: 400px; }
  .hero-copy { width: calc(100% - 44px); padding: 100px 0 36px; }
  .article { padding: 24px 18px; }
  .page-grid,
  .related-grid,
  .related-sites ul { grid-template-columns: minmax(0, 1fr); }
  .content-layout { padding: 28px 0 48px; }
}

/* 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(--text, #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. */
html body aside.sidebar:not(.sidebar--sticky-fit){position:static;max-height:none;overflow:visible}
@media (min-width:1201px){
html body aside.sidebar.sidebar--sticky-fit{position:sticky;top:var(--sidebar-sticky-top,104px);align-self:start}
}
