/* =========================================================
   遺失物管理・ロスト&ファウンドレポート
   拾得物台帳&青インクスタンプ デザイン
   ========================================================= */
:root {
  --bg: #f3efe8;
  --surface: #fffdf8;
  --ink: #2e2a24;
  --muted: #6f6559;
  --accent: #175b63;
  --accent-deep: #0e3f46;
  --accent-2: #8c8378;
  --line: #d9d2c5;
  --stamp: #175b63;
  --font-head: "Zen Kaku Gothic Antique", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.45;
  text-wrap: balance;
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: break-word;
  color: var(--ink);
  margin: 2.2em 0 0.8em;
}

h1 {
  margin: 0.2em 0 0.6em;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  z-index: 100;
}

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

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px dashed var(--line);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  display: grid;
  place-items: center;
  background: var(--surface);
  flex: none;
}

.brand-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.brand-text small {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  white-space: nowrap;
}

.global-nav {
  margin-left: auto;
}

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

.global-nav a {
  display: block;
  padding: 6px 9px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.global-nav a:hover {
  border-bottom-color: var(--accent-2);
}

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

.global-nav a.is-compare {
  color: var(--accent);
}

.global-nav a.is-compare::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

/* 等幅の受付番号ラベル共用 */
.mono {
  font-family: var(--mono);
  letter-spacing: 0.06em;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  margin-left: auto;
  flex: none;
}

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

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- hero / 台帳紙＋スタンプ ---------- */
.hero-block {
  position: relative;
  padding: 44px 0 56px;
  background:
    repeating-linear-gradient(45deg, rgba(140, 131, 120, 0.05) 0 14px, transparent 14px 28px),
    var(--bg);
}

.hero-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(to right, rgba(23, 91, 99, 0.06) 0 1px, transparent 1px 96px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  gap: 28px;
  align-items: stretch;
}

.ledger-paper {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  padding: 30px 28px 30px 86px;
  overflow: hidden;
}

.ledger-paper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 46px,
    rgba(23, 91, 99, 0.1) 46px 47px
  );
  background-position: 0 84px;
  pointer-events: none;
}

.ledger-no {
  position: absolute;
  left: 26px;
  top: 30px;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  border-left: 1px solid var(--line);
  padding-left: 12px;
  height: 220px;
}

/* FOUND スタンプ風バッジ（青緑・二重線・回転） */
.stamp-badge {
  position: absolute;
  right: 22px;
  top: 20px;
  width: 96px;
  height: 96px;
  transform: rotate(-9deg);
  pointer-events: none;
}

.stamp-badge svg {
  display: block;
  width: 100%;
  height: 100%;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--accent-2);
  margin: 0 0 10px;
}

.hero-title {
  font-size: clamp(1.9rem, 3.9vw, 3.1rem);
  margin: 0.15em 0 0.5em;
}

.hero-lead {
  font-size: 1.02rem;
  margin: 0 0 1.4em;
  max-width: 34em;
}

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

.hero-chips a {
  display: inline-block;
  border: 1px solid var(--accent);
  border-radius: 0;
  padding: 5px 12px;
  font-size: 0.84rem;
  color: var(--accent);
  text-decoration: none;
  background: var(--surface);
}

.hero-chips a:hover {
  background: var(--accent);
  color: #fff;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: 0;
  padding: 12px 26px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--accent);
}

.btn:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn-outline {
  display: inline-block;
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 0;
  padding: 12px 26px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  margin-left: 10px;
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.hero-figure {
  position: relative;
  min-width: 0;
}

.hero-frame {
  position: relative;
  height: 100%;
  min-height: 300px;
}

.hero-figure picture,
.hero-figure img {
  border-radius: 16px;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
}

/* 写真右下の円形スタンプ */
.figure-stamp {
  position: absolute;
  right: 14px;
  bottom: 18px;
  width: 112px;
  height: 112px;
  transform: rotate(-10deg);
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(46, 42, 36, 0.25));
}

.figure-stamp svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* 台帳受付番号風ラベル */
.hero-tegata {
  position: absolute;
  left: -14px;
  bottom: 40px;
  background: var(--accent-deep);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  pointer-events: none;
}

/* ---------- LATEST-COMMENTARY ---------- */
.latest-commentary {
  background: var(--surface);
  border-top: 2px dashed var(--accent-2);
  border-bottom: 2px dashed var(--accent-2);
  padding: 26px 0 30px;
}

.latest-commentary h2 {
  font-size: 1.18rem;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.latest-commentary h2::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  flex: none;
}

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

.latest-commentary-list li {
  font-size: 0.94rem;
  padding: 7px 0;
  border-bottom: 1px dotted var(--line);
}

.latest-commentary-list time {
  font-family: var(--mono);
  color: var(--accent);
  margin-right: 12px;
}

.latest-commentary-empty {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 10px;
}

.latest-commentary-more {
  font-size: 0.88rem;
  margin: 0;
}

/* 空のとき枠ごと隠す */
.latest-commentary:not(:has(li)) {
  display: none;
}

/* ---------- index sections ---------- */
.spacer-lg {
  height: 46px;
}

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

.section-lead {
  color: var(--muted);
  font-size: 0.96rem;
}

.intro-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 30px 30px 30px 34px;
  position: relative;
  overflow: hidden;
}

.intro-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background: repeating-linear-gradient(to bottom, var(--accent) 0 26px, transparent 26px 34px);
}

.index-section h2 {
  font-size: 1.55rem;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.index-section h2::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--line);
  flex: none;
  align-self: center;
}

.stage-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  counter-reset: stage;
}

.stage-list li {
  counter-increment: stage;
  padding: 10px 14px 10px 74px;
  border-bottom: 1px dashed var(--line);
  position: relative;
}

.stage-list li::before {
  content: counter(stage, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 10px;
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 700;
}

.after-list {
  color: var(--muted);
  font-size: 0.95rem;
}

.stance-title {
  font-size: 1.1rem;
  margin-top: 1.6em;
}

.stance-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.stance-list li {
  padding: 6px 0 6px 26px;
  position: relative;
  font-size: 0.94rem;
}

.stance-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
}

/* 7ページカード（台帳行風） */
.page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.page-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--line);
  border-radius: 0;
  padding: 40px 20px 18px;
  overflow: hidden;
}

.page-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--accent);
  opacity: 0.85;
}

.page-card .num {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent-2);
}

.page-card .card-label {
  position: absolute;
  top: 8px;
  left: 0;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  padding: 2px 10px 2px 14px;
}

.page-card .icon {
  color: var(--accent);
  margin-bottom: 8px;
}

.page-card h3 {
  font-size: 1.05rem;
  margin: 6px 0 8px;
  line-height: 1.5;
}

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

.page-card h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.page-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.page-card.is-compare {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  border-bottom-color: var(--accent-2);
}

.page-card.is-compare::before {
  background: #fff;
  opacity: 0.7;
}

.page-card.is-compare h3 a,
.page-card.is-compare p {
  color: #f4f1ea;
}

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

.page-card.is-compare .num,
.page-card.is-compare .card-label {
  color: #d8e4e2;
}

.page-card.is-compare .icon {
  color: #a7ccc8;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--bg);
  color: var(--accent-deep);
  border: 1px solid var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
}

.page-card.is-compare .badge {
  background: var(--accent-deep);
  color: #fff;
}

/* 関連サイト */
.related-sites {
  margin-top: 8px;
}

.related-sites ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  columns: 2;
  column-gap: 22px;
}

.related-sites li {
  break-inside: avoid;
  margin: 0 0 12px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 10px;
}

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

.related-sites a:hover strong {
  color: var(--accent);
}

.related-sites strong {
  display: block;
  font-size: 0.98rem;
}

.related-sites span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- content layout（下層2カラム） ---------- */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 34px;
  padding-top: 26px;
  padding-bottom: 44px;
  align-items: start;
}

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

.article > section {
  margin-bottom: 42px;
}

.article h2 {
  font-size: 1.42rem;
  padding-left: 16px;
  border-left: 6px solid var(--accent);
}

.article h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  background: var(--accent-2);
  margin-top: 8px;
}

.article h3 {
  font-size: 1.14rem;
  color: var(--accent-deep);
}

.article h4 {
  font-size: 1rem;
}

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

.article ul,
.article ol {
  padding-left: 1.5em;
}

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

.updated {
  font-size: 0.85rem;
  color: var(--muted);
  margin: -0.6em 0 1.4em;
}

.updated time {
  font-family: var(--mono);
}

.source-note {
  background: var(--bg);
  border: 1px dotted var(--accent-2);
  border-radius: 0;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 12px 16px;
  margin-bottom: 1.6em;
}

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

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

.sidebar h2 {
  font-size: 0.98rem;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
}

.sidebar ol,
.sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar ol li {
  border-bottom: 1px dotted var(--line);
}

.sidebar ol a {
  display: block;
  padding: 7px 0;
  font-size: 0.88rem;
  text-decoration: none;
}

.sidebar ol a:hover {
  color: var(--accent);
}

.sidebar ul.related-links li {
  padding: 6px 0;
  font-size: 0.88rem;
  border-bottom: 1px dotted var(--line);
}

.sidebar-links li {
  padding: 6px 0;
  font-size: 0.88rem;
  border-bottom: 1px dotted var(--line);
}

.ad-slot span {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--accent-2);
  border: 1px solid var(--accent-2);
  padding: 1px 8px;
  margin-bottom: 8px;
}

.ad-slot strong {
  display: block;
  font-size: 0.96rem;
  margin-bottom: 4px;
}

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

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

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

.compare-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 820px;
  font-size: 0.85rem;
  background: var(--surface);
}

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

.compare-table thead th {
  background: var(--accent-deep);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.compare-table tbody th[scope="row"] {
  background: #ede8de;
  font-family: var(--head-jp, var(--font-head));
  font-weight: 700;
  white-space: nowrap;
}

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

.table-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: -0.6em 0 1.8em;
}

/* ---------- franchise / compare cards ---------- */
.compare-card {
  border-top: 3px solid var(--accent);
  background: #faf7f1;
  padding: 2px 18px 22px;
  margin-bottom: 26px;
}

.compare-card h3 {
  font-size: 1.1rem;
  margin: 18px 0 10px;
}

.compare-card h3 .no {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.85rem;
  margin-right: 8px;
}

.compare-card .fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.compare-card .fact-row .fact {
  border-bottom: 1px solid var(--line);
}

.compare-card .fact-row .fact strong {
  color: var(--accent-deep);
}

/* ---------- page band ---------- */
.page-band {
  background:
    repeating-linear-gradient(to right, rgba(23, 91, 99, 0.05) 0 1px, transparent 1px 96px),
    var(--surface);
  border-bottom: 3px solid var(--accent);
  padding: 30px 0 26px;
}

.band-inner {
  display: flex;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
}

.band-image {
  flex: 0 1 360px;
  width: 30%;
  min-width: 220px;
  border-radius: 12px;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.band-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  margin: 0;
}

/* ---------- blog ---------- */
.blog-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 0 16px;
  border-bottom: 3px solid var(--accent-2);
}

.blog-card .card-label {
  display: block;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  padding: 2px 10px 2px 14px;
  width: max-content;
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.blog-card .blog-card-body {
  padding: 12px 16px 0;
}

.blog-card time {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent-2);
}

.blog-card h3 {
  font-size: 1rem;
  margin: 6px 0 8px;
  line-height: 1.5;
}

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

.blog-card h3 a:hover {
  color: var(--accent);
}

.blog-card p {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0 0 8px;
}

/* blog article */
.post-meta {
  display: flex;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.post-meta time {
  font-family: var(--mono);
  color: var(--accent);
}

.article-eyecatch {
  margin: 16px 0 10px;
}

.article-eyecatch img {
  width: 100%;
  border: 1px solid var(--line);
}

.article-content h2 {
  padding-left: 16px;
  border-left: 6px solid var(--accent);
}

.share-box {
  border-top: 1px dashed var(--accent-2);
  border-bottom: 1px dashed var(--accent-2);
  padding: 14px 0;
  margin: 30px 0;
}

.share-links {
  display: flex;
  gap: 12px;
}

.share-links a {
  display: inline-block;
  border: 1px solid var(--accent);
  padding: 6px 14px;
  font-size: 0.85rem;
  text-decoration: none;
}

.share-links a:hover {
  background: var(--accent);
  color: #fff;
}

/* ---------- disclaimer / footer ---------- */
.site-disclaimer {
  background: var(--accent-deep);
  color: #e8eae6;
  padding: 16px 0;
}

.site-disclaimer p {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 0.8rem;
  line-height: 1.7;
}

.site-footer {
  background: #1c272b;
  color: #e9e7e0;
  border-top: 3px solid var(--accent);
  padding: 44px 0 24px;
  font-size: 0.9rem;
}

.site-footer .container {
  display: block;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 24px;
}

.site-footer h2 {
  font-size: 1rem;
  color: #fff;
  margin: 0 0 12px;
  border-bottom: 1px solid #3a4a50;
  padding-bottom: 8px;
}

.footer-grid nav a {
  display: block;
  padding: 4px 0;
  color: #cfd6d4;
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-grid section p {
  font-size: 0.84rem;
  color: #b9c1bf;
  margin: 0;
}

.footer-grid nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-note {
  font-size: 0.78rem;
  color: #a7b0ae;
  border-top: 1px dashed #3a4a50;
  padding-top: 16px;
  margin: 0 0 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 14px;
}

.footer-links a {
  color: #cfd6d4;
  font-size: 0.84rem;
}

.copyright {
  font-size: 0.78rem;
  color: #8b9694;
  margin: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 1279px) {
  .menu-toggle {
    display: block;
  }

  .global-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: calc(100vh - 60px);
    margin-top: 60px;
    width: min(320px, 84vw);
    background: var(--surface);
    border-left: 1px dashed var(--accent-2);
    transform: translateX(100%);
    transition: transform 0.25s;
    overflow-y: auto;
    z-index: 60;
    box-shadow: -4px 0 18px rgba(46, 42, 36, 0.12);
  }

  body.nav-open .global-nav {
    transform: translateX(0);
  }

  .global-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
  }

  .global-nav a {
    padding: 12px 22px;
    font-size: 0.95rem;
    border-bottom: none;
  }

  .global-nav a[aria-current="page"] {
    background: #edecea;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-figure {
    order: -1;
  }

  .hero-frame {
    min-height: 0;
  }

  .hero-image {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .hero-tegata {
    left: 8px;
  }

  .page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .sidebar {
    position: static;
  }

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

@media (max-width: 768px) {
  .page-grid {
    grid-template-columns: 1fr;
  }

  .band-image {
    display: none;
  }

  .blog-cards {
    grid-template-columns: 1fr;
  }

  .article {
    padding: 24px 18px 30px;
  }

  .intro-block {
    padding: 24px 20px 24px 26px;
  }

  .ledger-paper {
    padding-left: 62px;
  }

  .ledger-no {
    left: 12px;
  }

  .hero-title {
    font-size: clamp(1.5rem, 6.4vw, 2rem);
  }

  .related-sites ul {
    columns: 1;
  }

  .stamp-badge {
    width: 76px;
    height: 76px;
  }

  .figure-stamp {
    width: 92px;
    height: 92px;
  }

  .article-content {
    padding-left: 16px;
    padding-right: 16px;
  }
}

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