/* 環境表示コンプライアンス・レポート — 監査ドキュメント／校閲の紙面デザイン */
:root {
  --bg: #fbfbf8;
  --surface: #ffffff;
  --ink: #141414;
  --muted: #55554f;
  --accent: #0f766e;
  --accent-2: #d9480f;
  --accent-2-ink: #b23a0a;
  --marker: #fde68a;
  --line: #e2e2dc;
  --paper-rule: #eceee6;
  --font-head: "M PLUS 1", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-body: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-note: "Klee One", "Yu Mincho", serif;
  --header-h: 66px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: .02em;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

a {
  color: var(--accent);
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent-2-ink);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  text-wrap: balance;
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: break-word;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  background: #fff;
  padding: .6rem 1.1rem;
  z-index: 999;
  border: 2px solid var(--ink);
}

.skip-link:focus {
  top: 1rem;
}

.icon {
  display: inline-block;
  width: 1.35em;
  height: 1.35em;
  flex: none;
  vertical-align: -.28em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.header-inner {
  max-width: 1260px;
  height: var(--header-h);
  margin: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.3;
  min-width: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent-2);
  color: var(--accent-2-ink);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: 0;
  transform: rotate(-8deg);
}

.brand-mark:before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid var(--accent-2);
  border-radius: 50%;
}

.brand strong {
  display: block;
  white-space: nowrap;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .03em;
}

.brand small {
  display: block;
  color: var(--muted);
  font-family: var(--font-note);
  font-weight: 600;
  font-size: .62rem;
  letter-spacing: .16em;
}

.menu-toggle {
  display: none;
  flex: none;
  width: 46px;
  height: 42px;
  padding: 9px;
  border: 2px solid var(--ink);
  background: var(--surface);
  border-radius: 4px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform .2s, opacity .2s;
}

.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);
}

.global-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
}

.global-nav a {
  display: block;
  padding: 8px 8px;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 2px;
}

.global-nav a:hover {
  background: var(--marker);
  color: var(--ink);
}

.global-nav a[aria-current=page] {
  background: var(--ink);
  color: #fff;
}

.global-nav a.is-compare:not([aria-current=page]) {
  text-decoration: underline wavy var(--accent-2);
  text-decoration-thickness: 1.5px;
  text-underline-offset: .32em;
}

/* ---------- notices ---------- */
.pr-notice {
  margin: 0;
  background: #f1f1ec;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .03em;
  text-align: center;
  padding: .45em 1em;
  border-bottom: 1px solid var(--line);
}

.site-disclaimer {
  background: #f3f3ee;
  border-top: 1px solid var(--line);
}

.site-disclaimer p {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
  font-size: .74rem;
  line-height: 1.9;
  color: var(--muted);
}

.source-note {
  position: relative;
  margin: 0 0 1.6em;
  padding: 14px 18px 14px 20px;
  background: #fffbe8;
  border: 1px solid #ecdc9a;
  font-family: var(--font-note);
  font-weight: 600;
  font-size: .9rem;
  line-height: 1.85;
  color: #4a4320;
}

.source-note:before {
  content: "校閲メモ";
  position: absolute;
  top: -.8em;
  left: 12px;
  padding: 0 8px;
  background: var(--accent-2-ink);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .1em;
  line-height: 1.6;
}

.updated {
  margin: 0 0 1.4em;
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .04em;
}

.updated time {
  font-weight: 700;
}

/* ---------- hero (index: 紙面型) ---------- */
.hero-block {
  position: relative;
  max-width: 1260px;
  margin: 0 auto;
  padding: 56px 28px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38%;
  gap: 48px;
  align-items: center;
  background: var(--bg);
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 2px 10px;
  border: 1.5px solid var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .22em;
}

.hero-block h1 {
  margin: 0 0 22px;
  font-weight: 800;
  font-size: clamp(1.9rem, 3.9vw, 3.4rem);
  line-height: 1.4;
  letter-spacing: .01em;
}

.hl {
  background: linear-gradient(transparent 62%, var(--marker) 62%);
  padding: 0 .08em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-lead {
  margin: 0 0 24px;
  max-width: 600px;
  font-size: 1rem;
  line-height: 1.9;
}

.hero-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 600px;
}

.hero-checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 9px 0;
  border-top: 1px solid var(--ink);
  font-weight: 700;
  font-size: .93rem;
  line-height: 1.6;
}

.hero-checks li:last-child {
  border-bottom: 1px solid var(--ink);
}

.hero-checks .icon {
  color: var(--accent);
  width: 1.5em;
  height: 1.5em;
  stroke-width: 2.6;
}

.hero-checks a {
  color: var(--ink);
  text-decoration-color: var(--accent-2);
  text-decoration-thickness: 2px;
}

.hero-photo {
  position: relative;
  margin: 0;
  padding: 12px 12px 40px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(20, 20, 20, .16), 0 2px 4px rgba(20, 20, 20, .08);
  transform: rotate(1.5deg);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.hero-photo figcaption {
  position: absolute;
  left: 16px;
  bottom: 10px;
  font-family: var(--font-note);
  font-weight: 600;
  font-size: .82rem;
  color: var(--muted);
}

.hanko {
  position: absolute;
  right: -18px;
  top: -20px;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 3px solid var(--accent-2);
  border-radius: 50%;
  color: var(--accent-2);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .86rem;
  line-height: 1.25;
  text-align: center;
  letter-spacing: .04em;
  transform: rotate(-14deg);
  background: rgba(255, 255, 255, .55);
  pointer-events: none;
}

.hanko:before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px solid var(--accent-2);
  border-radius: 50%;
}

/* 下層ページの見出し帯(ヒーローの縮小版) */
.page-band {
  padding: 34px 28px 30px;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 40px;
  border-bottom: 1px solid var(--line);
}

.page-band h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  margin-bottom: 14px;
}

.page-band .hero-lead {
  margin: 0;
  font-size: .95rem;
}

.page-band .eyebrow {
  margin-bottom: 12px;
}

.page-band .hero-photo {
  padding: 8px 8px 26px;
}

.page-band .hero-photo .hanko {
  width: 58px;
  height: 58px;
  font-size: .6rem;
  right: -14px;
  top: -14px;
  border-width: 2px;
}

.page-band .hero-photo .hanko:before {
  inset: 3px;
  border-width: 1px;
}

.page-band .hero-photo figcaption {
  font-size: .68rem;
  left: 12px;
  bottom: 6px;
}

.spacer-lg {
  height: 12px;
}

/* ---------- layout ---------- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.index-section {
  padding: 44px 0;
}

.index-section h2 {
  margin: 0 0 20px;
  font-weight: 800;
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  line-height: 1.5;
}

.index-section h2:after,
.article h2:after {
  content: "";
  display: block;
  width: 88px;
  height: 9px;
  margin-top: 6px;
  background: var(--marker);
  transform: skewX(-18deg);
}

.section-lead {
  margin: -6px 0 28px;
  color: var(--muted);
  font-size: .93rem;
}

.intro-block {
  padding: 34px 38px 30px;
  background-color: var(--surface);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, var(--paper-rule) 35px, var(--paper-rule) 36px);
  border: 1px solid var(--ink);
  box-shadow: 6px 6px 0 var(--marker);
}

.intro-block > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.intro-block > h2 .icon {
  color: var(--accent);
  width: 1.2em;
  height: 1.2em;
}

.stage-list {
  list-style: none;
  counter-reset: stage;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 24px 0;
  padding: 0;
}

.stage-list li {
  position: relative;
  counter-increment: stage;
  padding: 26px 12px 12px;
  background: #fff;
  border: 1px solid var(--ink);
  font-size: .8rem;
  line-height: 1.7;
}

.stage-list li:before {
  content: "STEP " counter(stage);
  position: absolute;
  top: -10px;
  left: 10px;
  padding: 0 7px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .64rem;
  letter-spacing: .1em;
  line-height: 1.7;
}

.stage-list strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-head);
  font-size: .9rem;
}

.after-list {
  margin-bottom: 0;
}

.stance-title {
  margin: 28px 0 10px;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stance-title .icon {
  color: var(--accent-2);
}

.stance-list {
  margin: 0;
  padding-left: 1.3rem;
}

.stance-list li {
  margin-bottom: .45em;
}

/* ---------- cards ---------- */
.page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 24px;
  margin-top: 36px;
}

.page-card {
  position: relative;
  padding: 30px 22px 22px;
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: 0;
}

.page-card .num {
  position: absolute;
  top: -13px;
  left: 16px;
  padding: 2px 12px 1px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .08em;
  box-shadow: 2px 2px 0 rgba(20, 20, 20, .25);
  transform: rotate(-2deg);
}

.page-card .card-icon {
  display: block;
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
  color: var(--accent);
}

.page-card h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.6;
}

.page-card h3 a {
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(transparent 70%, var(--marker) 70%);
}

.page-card h3 a:hover {
  background: var(--marker);
}

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

.page-card .badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 0 8px;
  border: 1.5px solid currentColor;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--accent-2-ink);
}

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

.page-card.is-compare .num {
  background: var(--accent-2-ink);
}

.page-card.is-compare .card-icon {
  color: var(--marker);
}

.page-card.is-compare .badge {
  color: var(--marker);
}

.page-card.is-compare h3 a {
  color: #fff;
  background: none;
  text-decoration: underline;
  text-decoration-color: var(--accent-2);
  text-decoration-thickness: 3px;
  text-underline-offset: .28em;
}

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

/* ---------- article layout ---------- */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  padding-top: 44px;
  padding-bottom: 72px;
  align-items: start;
}

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

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

.article h2 {
  margin: 2.2em 0 1em;
  font-weight: 800;
  font-size: clamp(1.4rem, 2.3vw, 1.75rem);
  line-height: 1.55;
}

.article section:first-child > h2 {
  margin-top: 0;
}

.article h3 {
  margin: 2em 0 .7em;
  padding-left: 12px;
  border-left: 5px solid var(--accent);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.6;
}

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

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

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

.article strong {
  background: linear-gradient(transparent 68%, rgba(253, 230, 138, .7) 68%);
}

.player-profile {
  margin: 0 0 1.8em;
  padding: 4px 0 4px 20px;
  border-left: 1px solid var(--ink);
}

.player-profile h3 {
  margin-top: .6em;
}

.source-list {
  font-size: .9rem;
}

.compare-note {
  font-size: .82rem;
  color: var(--muted);
}

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

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

.compare-table.wide {
  min-width: 1120px;
}

.compare-table thead th {
  background: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 4px solid var(--accent-2);
  white-space: nowrap;
}

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

.compare-table tbody th {
  min-width: 11em;
  font-family: var(--font-head);
  font-weight: 700;
  background: #f6f6f1;
}

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

/* ---------- sidebar ---------- */
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  display: grid;
  gap: 20px;
}

.sidebar nav,
.sidebar .ad-slot {
  padding: 18px 18px 16px;
  background: var(--surface);
  border: 1px solid var(--ink);
}

.sidebar h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
  font-weight: 800;
  font-size: .98rem;
}

.sidebar h2 .icon {
  color: var(--accent-2);
}

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

.sidebar ul {
  list-style: none;
  padding-left: 0;
}

.sidebar li + li {
  margin-top: 8px;
}

.ad-slot span {
  display: inline-block;
  padding: 0 8px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .66rem;
  letter-spacing: .16em;
}

.ad-slot strong {
  display: block;
  margin: 8px 0 4px;
  font-family: var(--font-head);
}

.ad-slot p {
  margin: 0 0 8px;
  font-size: .8rem;
  line-height: 1.7;
  color: var(--muted);
}

.ad-slot a {
  font-size: .82rem;
  font-weight: 700;
}

/* ---------- related ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

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

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

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

.related-sites li {
  margin: 0;
}

.related-sites a {
  display: block;
  height: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
}

.related-sites a:hover {
  background: #fffbe8;
}

.related-sites strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-head);
  font-size: .95rem;
  background: none;
}

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

.article .related-sites {
  margin-top: 2.4em;
}

.article .related-sites > h2 {
  margin-top: 0;
}

.article ul.related-links,
.sidebar .related-links {
  list-style: none;
}

/* ---------- buttons ---------- */
.btn,
.button {
  display: inline-block;
  padding: 10px 22px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.btn.secondary {
  background: #fff;
  color: var(--ink);
}

/* ---------- latest commentary ---------- */
.latest-commentary {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f6f6f1;
}

.latest-commentary h2 {
  margin: 0 0 16px;
  font-weight: 800;
  font-size: 1.35rem;
}

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

.latest-commentary-list li {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed #b9b9b0;
  font-size: .93rem;
  line-height: 1.7;
}

.latest-commentary-list time {
  flex: none;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: .04em;
}

.latest-commentary-list a {
  color: var(--ink);
}

.latest-commentary-more {
  margin: 14px 0 0;
  text-align: right;
}

/* ---------- footer (白地・上辺4px黒罫) ---------- */
.site-footer {
  background: var(--surface);
  color: var(--ink);
  border-top: 4px solid var(--ink);
  padding: 44px 24px 28px;
}

.footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
}

.footer-grid h2 {
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent-2);
  font-weight: 800;
  font-size: 1rem;
}

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

.footer-grid nav a {
  display: block;
  padding: 3px 0;
  color: var(--ink);
  font-size: .86rem;
}

.footer-note {
  max-width: 1120px;
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .76rem;
  line-height: 1.85;
  color: var(--muted);
}

.footer-links {
  max-width: 1120px;
  margin: 14px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: .8rem;
}

.footer-links a {
  color: var(--ink);
}

.copyright {
  max-width: 1120px;
  margin: 14px auto 0;
  font-size: .74rem;
  color: var(--muted);
}

/* ---------- ad boxes ---------- */
.amazon-banner {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: .82rem;
  line-height: 1.6;
}

.amazon-banner a {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

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

@media (max-width: 1279px) {
  html,
  body {
    overflow-x: clip;
  }

  .menu-toggle {
    display: block;
  }

  .header-inner {
    padding: 0 16px;
  }

  .global-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 12px 16px 40px;
    background: var(--surface);
    border-top: 2px solid var(--ink);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .22s ease, visibility .22s;
  }

  .global-nav.is-open {
    transform: none;
    visibility: visible;
  }

  .global-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .global-nav a {
    padding: 14px 8px;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
    white-space: normal;
  }

}

@media (max-width: 960px) {
  .hero-block,
  .page-band {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 34px 20px 36px;
  }

  .hero-photo {
    max-width: 520px;
    transform: none;
    margin-right: 16px;
  }

  .page-band .hero-photo {
    max-width: 300px;
  }

  .content-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .sidebar {
    position: static;
  }

  .page-grid,
  .related-grid,
  .related-sites ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .stage-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .intro-block {
    padding: 26px 18px 22px;
    box-shadow: 4px 4px 0 var(--marker);
  }

  .article {
    padding: 24px 16px 28px;
  }

  .index-section {
    padding: 34px 0;
  }
}

@media (max-width: 600px) {
  .page-grid,
  .related-grid,
  .related-sites ul,
  .stage-list {
    grid-template-columns: 1fr;
  }

  .latest-commentary-list li {
    flex-direction: column;
    gap: 2px;
  }

  .hanko {
    right: -8px;
    top: -16px;
    width: 70px;
    height: 70px;
    font-size: .74rem;
  }
}

@media (max-width: 480px) {
  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: .68rem;
  }

  .brand strong {
    font-size: .82rem;
    letter-spacing: 0;
  }

  .brand small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .global-nav,
  .menu-toggle span {
    transition: none;
  }
}

/* HEADING-WRAP:START 見出し最終行孤立文字対策 */
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 */

/* 最新コメンタリーが空の間は帯ごと非表示 */
.latest-commentary:has(.latest-commentary-list:empty) {
  display: none;
}

/* 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: var(--accent, #0b5);
  text-decoration: underline;
}
.latest-commentary-more {
  margin-top: 1.25rem;
}
.latest-commentary-more a {
  color: var(--accent, #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}
@media (min-width:1201px){
html body{overflow-x:clip!important}
html body aside.sidebar.sidebar--sticky-fit{position:sticky;top:var(--sidebar-sticky-top,84px);align-self:start}
}
