/* ==========================================================================
   和文化サロン事業誌 / traditional-arts-salon
   デザイン: 和紙白・墨黒・朱赤、掛軸フレーム、筆致のアクセント
   ========================================================================== */
:root {
  --bg: #f6f2e8;
  --surface: #fffdf7;
  --ink: #1e1b19;
  --muted: #6b6459;
  --accent: #b23a2e;
  --accent-soft: #f0d9d2;
  --accent-2: #2b2622;
  --line: #ddd5c4;
  --footer-bg: #211d1a;
  --header-h: 64px;
  --font-head: "Shippori Mincho", "Noto Serif JP", serif;
  --font-body: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { overflow-x: clip; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 8%, rgba(178, 58, 46, 0.045), transparent 26%),
    radial-gradient(circle at 88% 24%, rgba(43, 38, 34, 0.035), transparent 30%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.015em;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.spacer-lg { height: 46px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.045em;
  text-wrap: balance;
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(1.9rem, 3.9vw, 3.4rem); line-height: 1.45; }
h2 { font-size: 1.58rem; }
h3 { font-size: 1.18rem; }
h4 { font-size: 1.05rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 99;
  background: var(--accent-2);
  color: var(--surface);
  padding: 10px 18px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ------------------------------ header ------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background:
    repeating-linear-gradient(90deg, rgba(30, 27, 25, 0.018) 0 1px, transparent 1px 6px),
    rgba(255, 253, 247, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(178, 58, 46, 0.28), 0 6px 16px rgba(30, 27, 25, 0.04);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  white-space: nowrap;
}
.brand-mark {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 4px;
  background: var(--surface);
  border: 1.5px solid var(--accent);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.04rem; font-family: var(--font-head); letter-spacing: 0.06em; }
.brand-text small {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-family: var(--font-mono);
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 9px 10px;
  cursor: pointer;
}
.menu-toggle span { width: 20px; height: 2px; background: var(--ink); transition: transform 0.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 { list-style: none; margin: 0; padding: 0; display: flex; gap: 1px; flex-wrap: nowrap; }
.global-nav a {
  display: block;
  padding: 6px 8px;
  font-size: 0.82rem;
  white-space: nowrap;
  color: var(--ink);
  border-radius: 2px;
  border-bottom: 2px solid transparent;
}
.global-nav a:hover { color: var(--accent); border-bottom-color: var(--accent-soft); }
.global-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.global-nav a.is-compare { color: var(--accent); }
.no-scroll { overflow: hidden; }

@media (max-width: 1279px) {
  .menu-toggle { display: flex; }
  .global-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
    background:
      repeating-linear-gradient(0deg, rgba(255, 253, 247, 0.02) 0 1px, transparent 1px 6px),
      var(--accent-2);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    padding: 16px 20px 32px;
  }
  .global-nav.is-open { transform: translateX(0); box-shadow: -8px 0 24px rgba(0, 0, 0, 0.35); }
  .global-nav ul { flex-direction: column; }
  .global-nav a { padding: 12px 10px; font-size: 1rem; color: var(--surface); border-bottom: 1px solid rgba(255, 253, 247, 0.14); }
  .global-nav a[aria-current="page"], .global-nav a.is-compare { color: #f0b9ae; }
}

/* ------------------------------ hero ------------------------------ */
.hero-block {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 18%, rgba(178, 58, 46, 0.06), transparent 26%),
    repeating-linear-gradient(0deg, rgba(43, 38, 34, 0.022) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #f9f5ec 0%, #f3ecdc 100%);
}
.hero-block::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 5px;
  background: repeating-linear-gradient(90deg, var(--accent-2) 0 54px, var(--accent) 54px 60px);
  pointer-events: none;
}
.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 54px 22px 66px;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 42px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 30px; height: 4px; border-radius: 4px 1px 4px 1px; background: var(--accent); transform: rotate(-2deg); }
.hero-copy { position: relative; }
.hero-lead { font-size: 1.01rem; color: var(--muted); margin: 16px 0 22px; }
.hero-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chips li a {
  display: block;
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 6px 13px;
  font-size: 0.8rem;
  background: var(--surface);
}
.hero-chips li a:hover { background: var(--accent); border-color: var(--accent); color: var(--surface); }

.hero-figure { position: relative; padding: 18px 0; }
.scroll-frame {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 15px;
  box-shadow: 0 16px 34px rgba(43, 38, 34, 0.16);
}
.scroll-frame::before,
.scroll-frame::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  height: 13px;
  border-radius: 7px;
  background: linear-gradient(180deg, #5a4a3b, #2b2622 55%, #4a3d31);
  box-shadow: 0 2px 5px rgba(30, 27, 25, 0.3);
}
.scroll-frame::before { top: -13px; }
.scroll-frame::after { bottom: -13px; }
.hero-image { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.seal {
  position: absolute;
  z-index: 2;
  left: 2px;
  bottom: -4px;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff8ec;
  font-family: var(--font-head);
  font-size: 1.45rem;
  border-radius: 5px;
  letter-spacing: 0;
  transform: rotate(-4deg);
  box-shadow: 0 4px 10px rgba(178, 58, 46, 0.3);
}
.seal-note {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: -18px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2px 8px;
}

/* compact hero for lower pages */
.hero-compact .hero-inner { padding-top: 38px; padding-bottom: 46px; }
.hero-compact h1 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
.hero-compact .hero-lead { margin-bottom: 8px; }

/* ------------------------------ page band (下層) ------------------------------ */
.page-band {
  border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(0deg, rgba(43, 38, 34, 0.02) 0 1px, transparent 1px 7px),
    var(--surface);
}
.page-band .container { padding-top: 28px; padding-bottom: 24px; }
.band-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  border-bottom: 3px solid var(--accent);
  display: inline-block;
  padding-bottom: 6px;
}
.page-band .eyebrow { margin-bottom: 6px; }

/* ------------------------------ layout ------------------------------ */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 42px;
  padding-top: 40px;
  padding-bottom: 56px;
}
.article { min-width: 0; }
.article > section { margin-bottom: 40px; }
.updated {
  display: inline-block;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 2px;
  padding: 3px 12px;
  font-size: 0.82rem;
  color: var(--muted);
}
h2.sec { border-left: 5px solid var(--accent); padding-left: 14px; }
h2.sec::after { content: ""; display: block; height: 3px; width: 46px; background: var(--accent-2); margin-top: 10px; border-radius: 2px; }
h3 { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.section-lead { color: var(--muted); }
.note, .source-note {
  font-size: 0.84rem;
  color: var(--muted);
  background: #f3ecde;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px 14px;
}
.brush-divider { display: flex; align-items: center; gap: 12px; margin: 6px 0 20px; }
.brush-divider::before { content: ""; width: 48px; height: 6px; background: var(--accent); border-radius: 6px 1px 6px 2px; transform: rotate(-2deg); }
.brush-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.figure-frame { border-radius: 2px; overflow: hidden; border: 1px solid var(--line); position: relative; background: var(--surface); padding: 8px; }
.figure-frame img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.caption-strip {
  display: flex;
  gap: 18px;
  border-top: 1px solid var(--line);
  background: var(--accent-2);
  color: #efe8d8;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}
.caption-strip b { color: #efb4a8; font-weight: 500; }

/* ------------------------------ index sections ------------------------------ */
.index-section { padding: 8px 0 30px; }
.intro-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 2px;
  padding: 30px 32px;
  box-shadow: 0 8px 22px rgba(43, 38, 34, 0.05);
}
.layer-list { list-style: none; counter-reset: layer; margin: 20px 0; padding: 0; }
.layer-list li { counter-increment: layer; display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); position: relative; }
.layer-list li::before {
  content: counter(layer, cjk-ideographic);
  font-family: var(--font-head);
  color: var(--accent);
  flex: none;
  min-width: 22px;
  text-align: center;
}
.layer-list strong { flex: none; min-width: 172px; font-family: var(--font-head); font-weight: 600; }
.stance-title { font-size: 1.14rem; }
.stance-list { list-style: none; padding: 0; margin: 14px 0 0; }
.stance-list li { padding: 4px 0 4px 20px; position: relative; font-size: 0.94rem; }
.stance-list li::before { content: ""; position: absolute; left: 0; top: 16px; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); transform: rotate(3deg); }

.page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.page-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 2px;
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 6px 16px rgba(43, 38, 34, 0.05);
}
.page-card .num { font-family: var(--font-head); font-size: 0.82rem; color: var(--accent); letter-spacing: 0.16em; }
.page-card .icon { color: var(--accent-2); width: 28px; height: 28px; }
.page-card h3 { border: none; padding: 0; font-size: 1.03rem; margin: 0; }
.page-card p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.page-card .badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 1px 8px;
  align-self: flex-start;
}
.page-card.is-compare { background: var(--accent-2); border-color: var(--accent-2); border-left-color: var(--accent); color: #efe8d8; }
.page-card.is-compare .num { color: #efb4a8; }
.page-card.is-compare h3 a, .page-card.is-compare p { color: #efe8d8; }
.page-card.is-compare .icon { color: #efb4a8; }
.page-card.is-compare .badge { color: #efb4a8; border-color: #efb4a8; }
.page-card.is-compare a:hover { color: #fff; }

.latest-commentary { background: var(--surface); border-top: 2px solid var(--accent); border-bottom: 1px solid var(--line); }
.latest-commentary .container { padding-top: 26px; padding-bottom: 26px; }
.latest-commentary h2 { font-size: 1.3rem; }
.latest-commentary-list { list-style: none; margin: 10px 0 12px; padding: 0; }
.latest-commentary-list li { display: flex; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.latest-commentary-list time { font-family: var(--font-mono); color: var(--accent); flex: none; }
.latest-commentary:not(:has(li)) { display: none; }

/* ------------------------------ compare table ------------------------------ */
.table-card {
  background: var(--accent-2);
  color: #efe8d8;
  border-radius: 2px;
  padding: 22px 18px 16px;
}
.table-card .table-note { color: #cbc2b0; font-size: 0.8rem; margin: 8px 0 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table {
  border-collapse: collapse;
  min-width: 860px;
  width: 100%;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.7;
}
.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(--accent-2); color: #efe8d8; font-weight: 500; font-size: 0.82rem; }
.compare-table tbody tr:nth-child(even) td, .compare-table tbody tr:nth-child(even) th { background: #f7f1e4; }
.compare-table th[scope="row"] { font-weight: 500; white-space: nowrap; background: #f1e9d9; }
.player-h { font-size: 1.12rem; }
.player-list { list-style: none; margin: 12px 0 0; padding: 0; }
.player-list li { padding: 5px 0 5px 20px; position: relative; }
.player-list li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }

/* ------------------------------ sidebar ------------------------------ */
.sidebar { min-width: 0; }
.sidebar nav {
  background: linear-gradient(180deg, #fffdf7, #f7f1e4);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 2px;
  padding: 18px 18px 14px;
  margin-bottom: 20px;
}
.sidebar nav h2, .sidebar .sb-head { font-size: 1rem; border-left: 4px solid var(--accent-2); padding-left: 10px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.sidebar nav ul, .sidebar nav ol { margin: 0; padding: 0 0 0 4px; list-style: none; }
.sidebar nav li { padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 0.88rem; }
.sidebar nav li:last-child { border-bottom: none; }
.sidebar .ad-slot { background: var(--surface); border: 1px solid var(--accent); border-radius: 2px; padding: 16px; margin-bottom: 20px; }
.ad-slot span { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.2em; color: var(--accent); }
.ad-slot strong { display: block; margin: 4px 0 6px; font-size: 1rem; font-family: var(--font-head); font-weight: 600; }
.ad-slot p { margin: 0 0 10px; font-size: 0.86rem; color: var(--muted); }
.ad-slot a { display: inline-block; background: var(--accent); color: var(--surface); border-radius: 2px; padding: 6px 13px; font-size: 0.84rem; }
.ad-slot a:hover { background: var(--accent-2); color: var(--surface); }

/* ------------------------------ related sites ------------------------------ */
.related-sites { padding: 6px 0 18px; }
.related-sites h2 { font-size: 1.38rem; }
.related-sites ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.related-sites li a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
  padding: 13px 16px;
}
.related-sites li a strong { display: block; font-size: 0.96rem; }
.related-sites li a span { font-size: 0.84rem; color: var(--muted); }
.related-sites li a:hover { border-left-color: var(--accent-2); }
.related-pages { list-style: none; margin: 14px 0 0; padding: 0; }
.related-pages li { padding: 8px 0; border-bottom: 1px dashed var(--line); }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.related-grid article { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 2px; padding: 14px 16px; }
.related-grid h3 { border: none; padding: 0; margin: 0 0 6px; font-size: 1rem; }
.related-grid p { margin: 0; font-size: 0.86rem; color: var(--muted); }

/* ------------------------------ disclaimer / footer ------------------------------ */
.site-disclaimer { background: #efe8d8; border-top: 1px solid var(--line); }
.site-disclaimer p { max-width: 1140px; margin: 0 auto; padding: 18px 22px; font-size: 0.82rem; color: #5d5647; }
.site-footer { background: var(--footer-bg); color: #efe8d8; position: relative; }
.site-footer::before {
  content: "";
  display: block;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 34px, #8f2d24 34px 38px, var(--accent-2) 38px 74px, #332c27 74px 78px);
}
.footer-grid { max-width: 1140px; margin: 0 auto; padding: 40px 22px 10px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
.footer-grid h2 { font-size: 1.02rem; color: #fff; border-left: 3px solid var(--accent); padding-left: 10px; }
.footer-grid p { font-size: 0.86rem; color: #c9c0ae; }
.footer-grid nav { display: flex; flex-direction: column; }
.footer-grid nav a { padding: 6px 0; font-size: 0.88rem; color: #efe8d8; border-bottom: 1px dashed rgba(255, 255, 255, 0.12); }
.footer-grid nav a:hover { color: #efb4a8; }
.footer-note { max-width: 1140px; margin: 0 auto; padding: 8px 22px 18px; font-size: 0.78rem; color: #a99f8c; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 24px; max-width: 1140px; margin: 0 auto; padding: 6px 22px; font-size: 0.84rem; }
.footer-links a { color: #efe8d8; }
.footer-links a:hover { color: #efb4a8; }
.copyright { text-align: center; padding: 14px 22px 22px; margin: 0; font-size: 0.78rem; color: #8f8677; font-family: var(--font-mono); }

/* ------------------------------ blog list ------------------------------ */
.blog-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 2px; overflow: hidden; display: flex; flex-direction: column; }
.blog-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; display: block; }
.blog-card .card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card time { font-family: var(--font-mono); font-size: 0.76rem; color: var(--accent); }
.blog-card h2, .blog-card h3 { margin: 0; font-size: 1.05rem; }
.blog-card p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.blog-more { text-align: right; font-size: 0.8rem; color: var(--muted); }

/* ------------------------------ article extras ------------------------------ */
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.84rem; color: var(--muted); margin-bottom: 12px; }
.post-meta span { border: 1px solid var(--line); border-radius: 2px; padding: 1px 10px; background: var(--surface); }
.article-eyecatch { border: 1px solid var(--line); border-radius: 2px; overflow: hidden; margin: 18px 0; background: var(--surface); padding: 8px; }
.article-eyecatch img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-content { font-size: 0.97rem; }
.article-content section { margin: 0 0 34px; }
.article-content h2 { font-size: 1.38rem; border-left: 5px solid var(--accent); padding-left: 12px; }
.article-content h3 { font-size: 1.06rem; }
.article-content ul, .article-content ol { padding-left: 22px; }
.share-box { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 2px; padding: 16px 18px; margin-bottom: 28px; }
.share-box h2 { font-size: 1.04rem; margin: 0 0 10px; }
.share-links { display: flex; gap: 12px; flex-wrap: wrap; }
.share-links a { border: 1px solid var(--accent-2); border-radius: 2px; padding: 6px 16px; font-size: 0.86rem; }
.share-links a:hover { background: var(--accent-2); color: var(--surface); }

/* ------------------------------ responsive ------------------------------ */
@media (max-width: 1023px) {
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .page-grid, .blog-cards { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .hero-inner { grid-template-columns: 1fr; gap: 26px; padding: 34px 16px 48px; }
  .hero-figure { order: -1; }
  .article-content { padding-left: 16px; padding-right: 16px; }
  .page-grid, .blog-cards, .related-sites ul { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .related-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(1.6rem, 5.4vw, 2.1rem); }
  .brand-text strong { font-size: 0.92rem; }
  .brand-text small { display: none; }
  .layer-list li { flex-direction: column; gap: 2px; }
  .layer-list strong { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

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