:root{
  --ink:#1c2733;
  --navy:#1d3a5f;
  --navy-deep:#12253d;
  --steel:#41607e;
  --gold:#b8863b;
  --gold-deep:#8f661f;
  --paper:#f4f6f8;
  --white:#fff;
  --line:#dbe2e9;
  --muted:#5c6b7a;
  --sans:"Zen Kaku Gothic New","Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:9.5rem}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.9;letter-spacing:.01em;overflow-x:hidden}
img{display:block;max-width:100%;height:auto}
a{color:var(--navy);text-underline-offset:.2em}
a:hover{color:var(--gold-deep)}
.skip-link{position:fixed;left:1rem;top:-5rem;background:#fff;padding:.6rem 1.1rem;z-index:999;border-radius:4px}
.skip-link:focus{top:1rem}

/* PR notice */
.pr-notice{margin:0;background:#eef2f6;color:var(--muted);font-size:.72rem;text-align:center;padding:.5rem 1rem;border-bottom:1px solid var(--line)}

/* header */
.site-header{position:sticky;top:0;z-index:100;background:rgba(244,246,248,.94);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.brand-row{max-width:1180px;min-height:72px;margin:auto;padding:10px 26px;display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--navy-deep);line-height:1.2}
.brand-mark{display:grid;place-items:center;width:38px;height:38px;border:2px solid var(--gold);border-radius:4px;font-size:1.05rem;font-weight:700;color:var(--gold-deep);background:#fff}
.brand strong{font-size:1.08rem;letter-spacing:.03em;font-weight:700}
.brand small{display:block;color:var(--muted);font-size:.53rem;letter-spacing:.14em;margin-top:4px}
.menu-toggle{display:none;width:44px;height:40px;padding:8px;border:1px solid var(--line);background:#fff;border-radius:4px;cursor:pointer}
.menu-toggle span{display:block;height:2px;background:var(--navy-deep);margin:6px 0;transition:transform .2s,opacity .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)}
.global-nav{border-top:1px solid var(--line)}
.global-nav ul{max-width:1180px;margin:auto;padding:0 18px;display:flex;justify-content:center;list-style:none;flex-wrap:wrap}
.global-nav a{display:block;padding:11px 11px;color:var(--ink);font-size:.74rem;text-decoration:none;border-bottom:3px solid transparent;white-space:nowrap}
.global-nav a:hover,.global-nav a[aria-current=page]{border-color:var(--gold);color:var(--navy)}

/* hero */
.hero-block{position:relative;max-width:1440px;margin:auto;background:var(--navy-deep);min-height:440px;display:grid;align-items:end;overflow:hidden}
.hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.55}
.hero-block:after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,rgba(10,22,38,.94),rgba(18,37,61,.62) 55%,rgba(18,37,61,.2))}
.hero-copy{position:relative;z-index:1;color:#fff;width:min(1120px,calc(100% - 48px));margin:0 auto;padding:70px 0 54px}
.eyebrow{margin:0 0 14px;color:#f3d9a8;font-size:.72rem;font-weight:700;letter-spacing:.22em}
.hero-copy h1{font-size:clamp(1.9rem,4vw,3.3rem);font-weight:800;line-height:1.5;letter-spacing:.02em;margin:0 0 18px;max-width:920px;text-shadow:0 3px 18px rgba(0,0,0,.6),0 1px 3px rgba(0,0,0,.65)}
.hero-copy>p:last-child{max-width:760px;font-size:1.02rem;margin:0;text-shadow:0 2px 10px rgba(0,0,0,.55)}

.container{width:min(1120px,calc(100% - 48px));margin:auto}
.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:60px;align-items:start;padding-top:70px;padding-bottom:90px}
.article{min-width:0}
.article>section{margin:0 0 62px}
.article h2{font-size:clamp(1.35rem,2.2vw,1.75rem);font-weight:800;line-height:1.6;letter-spacing:.01em;margin:0 0 22px;padding-left:20px;border-left:5px solid var(--gold)}
.article h3{font-size:1.1rem;font-weight:700;line-height:1.6;margin:1.7em 0 .7em;color:var(--navy-deep)}
.article p{margin:0 0 1.3em}
.article ul,.article ol{margin:0 0 1.3em;padding-left:1.4em}
.article li{margin-bottom:.5em}
.updated{font-size:.82rem;color:var(--muted);margin:0 0 1.6em}
.notice-box{background:#eef2f6;border:1px solid var(--line);border-left:4px solid var(--gold);padding:18px 20px;margin:0 0 1.6em;font-size:.9rem;border-radius:2px}
.notice-box strong{display:block;margin-bottom:.4em;color:var(--navy-deep)}

/* compare table */
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 0 1em;border:1px solid var(--line);border-radius:6px}
.compare-table{width:100%;min-width:920px;border-collapse:collapse;font-size:.86rem;background:#fff}
.compare-table caption{text-align:left;padding:10px 14px;font-size:.8rem;color:var(--muted);border-bottom:1px solid var(--line)}
.compare-table th,.compare-table td{border:1px solid var(--line);padding:.7em .85em;text-align:left;vertical-align:top}
.compare-table thead th{background:var(--navy);color:#fff;font-weight:700;white-space:nowrap}
.compare-table tbody th[scope=row]{background:#eef2f6;font-weight:700;color:var(--navy-deep);white-space:nowrap}
.compare-table tbody tr:nth-child(even) td,.compare-table tbody tr:nth-child(even) th[scope=row]{background:#f7f9fb}
.table-note{font-size:.78rem;color:var(--muted);margin:0 0 1.8em}
.article table:not(.compare-table){width:100%;border-collapse:collapse;margin:0 0 1.6em;font-size:.9rem}
.article table:not(.compare-table) th,.article table:not(.compare-table) td{border:1px solid var(--line);padding:.7em .8em;text-align:left;vertical-align:top}
.article table:not(.compare-table) th{background:#eef2f6;font-weight:700}

/* sidebar */
.sidebar{position:sticky;top:150px;display:grid;gap:22px}
.sidebar nav,.ad-slot{background:#fff;border:1px solid var(--line);padding:22px;border-radius:6px}
.sidebar h2{font-size:.98rem;font-weight:800;margin:0 0 14px;color:var(--navy-deep)}
.sidebar ol{margin:0;padding-left:1.15rem}
.sidebar li+li{margin-top:9px}
.sidebar a{font-size:.83rem}
.ad-slot span{display:block;color:var(--muted);font-size:.58rem;letter-spacing:.16em;border-bottom:1px solid var(--line);margin-bottom:14px}
.ad-slot strong{display:block;line-height:1.55;color:var(--navy-deep);font-weight:800}
.ad-slot p{font-size:.78rem;line-height:1.65}
.ad-slot>a{display:inline-block;background:var(--navy);color:#fff;padding:9px 16px;text-decoration:none;border-radius:3px;margin-top:4px}
.ad-slot>a:hover{background:var(--gold-deep)}
.sidebar-links{margin:0;padding:0;list-style:none;display:grid;gap:10px}
.sidebar-links a{display:block;font-size:.83rem}

/* related */
.related{border-top:1px solid var(--line);padding-top:52px}
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.related-grid article{background:#fff;border:1px solid var(--line);padding:22px;border-radius:6px}
.related-grid h3{font-size:1rem;margin:0 0 10px;font-weight:700}
.related-grid p{font-size:.8rem;line-height:1.65;margin:0;color:var(--muted)}
.related-sites{background:#eef2f6;padding:30px;margin-top:48px;border-radius:6px}
.related-sites ul{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.related-sites a{display:flex;align-items:baseline;gap:16px;text-decoration:none}
.related-sites strong{min-width:130px;color:var(--navy-deep)}
.related-sites span{font-size:.78rem;color:var(--muted)}

/* index page cards */
.intro-block{max-width:820px;margin:0 auto 12px}
.intro-block h2{font-size:clamp(1.4rem,2.4vw,1.9rem);font-weight:800}
.page-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-top:28px}
.page-grid article{background:#fff;border-top:4px solid var(--gold);padding:22px;border-radius:2px 6px 6px 2px;position:relative}
.page-grid article.is-compare{border-top-color:var(--navy)}
.page-grid .badge{display:inline-block;font-size:.62rem;letter-spacing:.08em;color:#fff;background:var(--navy);padding:3px 8px;border-radius:3px;margin-bottom:8px}
.page-grid span.num{font-size:.68rem;color:var(--muted);letter-spacing:.1em;display:block}
.page-grid h3{margin:6px 0 10px;font-size:1.05rem;font-weight:800}
.page-grid p{font-size:.85rem;line-height:1.75;margin:0;color:#425163}

/* disclaimer */
.site-disclaimer{background:#eef2f6;border-top:1px solid var(--line)}
.site-disclaimer p{max-width:1120px;margin:0 auto;padding:14px 24px;font-size:.74rem;color:var(--muted);line-height:1.8}

/* footer */
.site-footer{background:var(--navy-deep);color:#dbe6ee;padding:54px 24px 22px}
.footer-grid{max-width:1120px;margin:auto;display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:56px}
.footer-grid h2{font-size:1rem;font-weight:800;color:#fff;margin:0 0 14px}
.footer-grid p{font-size:.78rem;max-width:380px;color:#b9c9d6}
.footer-grid nav{display:flex;flex-direction:column;align-items:flex-start}
.footer-grid a{color:#dbe6ee;font-size:.8rem;margin-bottom:8px;text-decoration:none}
.footer-grid a:hover{color:#fff;text-decoration:underline}
.footer-note{max-width:1120px;margin:26px auto 0;font-size:.72rem;color:#a9bccb;line-height:1.9;border-top:1px solid #294967;padding-top:18px}
.footer-links{max-width:1120px;margin:20px auto 0;padding-top:18px;border-top:1px solid #294967;display:flex;flex-wrap:wrap;gap:1rem}
.footer-links a{color:#dbe6ee;font-size:.78rem;text-decoration:none}
.footer-links a:hover{color:#fff;text-decoration:underline}
.copyright{max-width:1120px;margin:18px auto 0;font-size:.65rem;color:#8ba0b2}
.no-scroll{overflow:hidden}

@media(max-width:800px){
  html{scroll-padding-top:6rem}
  .brand-row{min-height:64px;padding:9px 18px}
  .brand strong{font-size:.9rem}
  .brand small{font-size:.46rem}
  .menu-toggle{display:block}
  .global-nav{display:none;position:fixed;left:0;right:0;top:64px;height:calc(100vh - 64px);background:var(--paper);overflow:auto}
  .global-nav.is-open{display:block}
  .global-nav ul{display:block;padding:14px 22px}
  .global-nav a{font-size:.92rem;padding:14px 7px;border-bottom:1px solid var(--line)}
  .hero-block{min-height:400px}
  .hero-copy{width:calc(100% - 36px);padding:60px 0 40px}
  .hero-copy h1{font-size:clamp(1.6rem,8vw,2.2rem);overflow-wrap:anywhere}
  .hero-copy>p:last-child{font-size:.9rem}
  .container{width:calc(100% - 36px)}
  .content-layout{grid-template-columns:1fr;gap:40px;padding-top:46px;padding-bottom:60px}
  .article>section{margin-bottom:50px}
  .article h2{font-size:1.3rem}
  .sidebar{position:static;grid-row:1}
  .related-grid,.page-grid{grid-template-columns:1fr}
  .related-sites{padding:22px}
  .related-sites a{display:block}
  .related-sites strong,.related-sites span{display:block}
  .footer-grid{grid-template-columns:1fr;gap:28px}
  .footer-grid p{margin-bottom:0}
}
@media(max-width:420px){
  body{font-size:15px}
  .brand-mark{display:none}
  .hero-block{min-height:380px}
  .hero-copy{padding-top:52px}
  .sidebar nav,.ad-slot{padding:18px}
  .article h2{padding-left:14px}
}

/* 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 */

/* HEADING-WRAP:START 見出し最終行孤立文字対策 (AGENTS.md NoGo) */
h1,h2,h3,h4,.hero-title,.page-title,.card-title{text-wrap:balance;word-break:auto-phrase;line-break:strict;overflow-wrap:break-word}
/* HEADING-WRAP:END */
