/* ==========================================================================
   実家片付けレポート / decluttering-home-org
   デザイン: 分類ラベル・仕分けボード・付箋三分割
   ========================================================================== */
:root {
  --bg: #f2f4f6;
  --surface: #ffffff;
  --ink: #2a2e33;
  --muted: #5d646d;
  --accent: #5b6472;
  --accent-deep: #3f4650;
  --accent-2: #2f353d;
  --note-keep: #f6cf5d;
  --note-sell: #8fbf7f;
  --note-close: #e98a9e;
  --line: #dfe2e6;
  --footer-bg: #282c33;
  --font-head: "Klee One", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas",
    "Hiragino Kaku Gothic ProN", monospace;
}

*,
*::before,
*::after { 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.95;
  letter-spacing: 0.01em;
}

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

.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;
  text-wrap: balance;
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(1.9rem, 3.9vw, 3.3rem); letter-spacing: 0.05em; }
h2 { font-size: 1.58rem; letter-spacing: 0.04em; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

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

/* -------------------------------- header -------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(40, 44, 51, 0.97);
  color: #fff;
  border-bottom: 4px solid var(--note-keep);
  backdrop-filter: blur(4px);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -7px 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--note-keep) 0 33.4%,
    var(--note-sell) 33.4% 66.7%,
    var(--note-close) 66.7% 100%
  );
  opacity: 0.9;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  margin-right: auto;
  white-space: nowrap;
}
.brand-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--accent);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  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); }
.brand-text small {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-mono);
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  padding: 9px 10px;
  cursor: pointer;
}
.menu-toggle span { width: 20px; height: 2px; background: #fff; 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: 2px; flex-wrap: nowrap; }
.global-nav a {
  display: block;
  padding: 6px 9px;
  font-size: 0.86rem;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.88);
  border-radius: 4px;
}
.global-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.global-nav a[aria-current="page"] { color: var(--note-keep); }
.global-nav a.is-compare { color: var(--note-keep); }
.no-scroll { overflow: hidden; }

@media (max-width: 1279px) {
  .menu-toggle { display: flex; }
  .global-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 62px;
    height: calc(100vh - 62px);
    background: 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; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
}

/* -------------------------------- hero -------------------------------- */
.hero-block {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(91, 100, 114, 0.055) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, rgba(91, 100, 114, 0.055) 0 1px, transparent 1px 40px),
    var(--bg);
}
.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 54px 22px 64px;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 12px; background: var(--note-keep); border-radius: 2px; box-shadow: 26px 0 var(--note-sell), 52px 0 var(--note-close); }
.hero-lead { font-size: 1.02rem; 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(--accent);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.82rem;
  background: var(--surface);
}
.hero-chips li a:hover { background: var(--accent); color: #fff; }

/* 仕分けボード三分割＋写真 */
.hero-figure {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: stretch;
}
.sort-board {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(47, 53, 61, 0.08);
}
.sort-row {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 8px 9px;
  border-radius: 6px;
}
.sort-row.is-keep { background: var(--note-keep); }
.sort-row.is-sell { background: var(--note-sell); }
.sort-row.is-close { background: var(--note-close); }
.sort-row::after {
  content: "";
  position: absolute;
  top: -7px;
  left: -5px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 8px 0 0;
  border-color: var(--surface) transparent transparent transparent;
  opacity: 0.85;
}
.sort-label { color: #3a3f45; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.sort-code {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(58, 63, 69, 0.75);
}
.hero-frame {
  border-radius: 12px 12px 10px 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(47, 53, 61, 0.14);
  background: var(--surface);
}
.hero-image { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-figure > .hero-frame { min-height: 220px; }

/* 付箋キー（ヒーロー下） */
.note-key {
  max-width: 1140px;
  margin: -26px auto 0;
  padding: 0 22px;
  position: relative;
  z-index: 2;
}
.note-key ul {
  list-style: none;
  margin: 0;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(47, 53, 61, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.83rem;
  color: var(--muted);
}
.note-key li { display: flex; align-items: center; gap: 8px; }
.note-dot { width: 13px; height: 13px; border-radius: 3px; flex: none; transform: rotate(-3deg); box-shadow: 2px 2px 3px rgba(47, 53, 61, 0.18); }
.note-dot.d-keep { background: var(--note-keep); }
.note-dot.d-sell { background: var(--note-sell); }
.note-dot.d-close { background: var(--note-close); }

/* ------------------------------ page band (下層) ------------------------------ */
.page-band {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f7f8fa);
  position: relative;
}
.page-band::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--note-keep) 0 33.4%, var(--note-sell) 33.4% 66.7%, var(--note-close) 66.7% 100%);
  opacity: 0.55;
}
.page-band .container { padding-top: 30px; padding-bottom: 26px; }
.band-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  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(--note-keep);
  background: var(--surface);
  border-radius: 4px;
  padding: 3px 12px;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 18px;
}
.updated :is(time) { font-family: var(--font-mono); }
h2.sec { padding-left: 14px; position: relative; }
h2.sec::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 7px;
  height: 1.4em;
  border-radius: 2px;
  background: var(--note-keep);
}
.article h2.sec:nth-of-type(2)::before
{ background: var(--note-sell); }
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: #eef0f3;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
  margin: 10px 0;
}
.note strong { color: var(--ink); }

/* ------------------------------ index sections ------------------------------ */
.index-section { padding: 8px 0 30px; }
.intro-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px 32px;
  position: relative;
}
.intro-block::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 26px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 14px 14px 14px;
  border-color: transparent transparent var(--note-keep) transparent;
  transform: rotate(180deg);
}
.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, decimal-leading-zero);
  font-family: var(--font-mono);
  color: var(--accent-deep);
  flex: none;
}
.layer-list strong { flex: none; min-width: 184px; font-family: var(--font-head); font-weight: 600; }
.stance-title { font-size: 1.15rem; }
.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: 17px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  transform: rotate(3deg);
  background: var(--note-sell);
}
.stance-list li:nth-child(2n)::before { background: var(--note-keep); }
.stance-list li:nth-child(3n)::before { background: var(--note-close); }

/* カード: 折れ紙＋等幅番号 */
.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-top: 2px solid var(--accent);
  border-radius: 6px;
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.page-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 22px 22px 0;
  border-color: transparent #cdd3da transparent transparent;
}
.page-card:nth-child(3n + 1)::after { border-color: transparent var(--note-keep) transparent transparent; }
.page-card:nth-child(3n + 2)::after { border-color: transparent var(--note-sell) transparent transparent; }
.page-card:nth-child(3n)::after { border-color: transparent var(--note-close) transparent transparent; }
.page-card .num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent-deep); letter-spacing: 0.14em; }
.page-card .icon { color: var(--accent); width: 28px; height: 28px; }
.page-card h3 { border: none; padding: 0; font-size: 1.04rem; 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.68rem;
  letter-spacing: 0.18em;
  color: #6b4d10;
  background: var(--note-keep);
  border-radius: 3px;
  padding: 1px 8px;
  align-self: flex-start;
}
.page-card.is-compare { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.page-card.is-compare .num { color: var(--note-keep); }
.page-card.is-compare h3 a, .page-card.is-compare p { color: #fff; }
.page-card.is-compare .icon { color: var(--note-keep); }
.page-card.is-compare .badge { color: #3a3f45; }
.page-card.is-compare::after { border-color: transparent var(--note-keep) transparent transparent; }

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

/* ------------------------------ compare table ------------------------------ */
.table-card {
  background: var(--accent-2);
  color: #fff;
  border-radius: 8px;
  padding: 22px 18px 16px;
}
.table-card .table-note { color: #c9cfd8; font-size: 0.8rem; margin: 8px 0 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table {
  border-collapse: collapse;
  min-width: 880px;
  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); color: #fff; font-weight: 500; font-size: 0.82rem; }
.compare-table tbody tr:nth-child(even) td, .compare-table tbody tr:nth-child(even) th { background: #f3f5f7; }
.compare-table th[scope="row"] { font-weight: 500; white-space: nowrap; background: #eceef2; }
.profiles { margin: 26px 0 0; }
.profiles > article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 16px;
  display: flow-root;
}
.profiles h3 { border: none; font-size: 1.14rem; margin: 0 0 8px; }
.profiles > article:nth-child(3n + 1) { border-left-color: var(--note-keep); }
.profiles > article:nth-child(3n + 2) { border-left-color: var(--note-sell); }
.profiles > article:nth-child(3n) { border-left-color: var(--note-close); }

.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: 16px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--note-keep);
  transform: rotate(4deg);
}

/* ------------------------------ sidebar ------------------------------ */
.sidebar { min-width: 0; }
.sidebar nav, .sidebar .sb-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 6px;
  padding: 18px 18px 14px;
  margin-bottom: 20px;
}
.sidebar nav h2, .sidebar .sb-head {
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.sidebar nav h2::before, .sidebar .sb-head::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--note-keep);
  transform: rotate(-4deg);
  flex: none;
}
.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; }
.ad-slot { background: var(--surface); border: 1px solid var(--accent); border-radius: 6px; padding: 16px; margin-bottom: 20px; }
.ad-slot span { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.22em; color: var(--accent-deep); }
.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: #fff; border-radius: 8px; padding: 6px 13px; font-size: 0.84rem; }
.ad-slot a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--note-close); }

/* ------------------------------ related sites ------------------------------ */
.related-sites { padding: 6px 0 18px; }
.related-sites h2 { font-size: 1.4rem; }
.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: 4px solid var(--note-sell);
  border-radius: 6px;
  padding: 13px 16px;
}
.related-sites li:nth-child(3n + 1) a { border-left-color: var(--note-keep); }
.related-sites li:nth-child(3n) a { border-left-color: var(--note-close); }
.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); }
.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: 6px; 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); }

/* ------------------------------ buttons ------------------------------ */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 0.94rem;
  border: none;
  cursor: pointer;
}
.btn:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--note-close); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.btn.is-line { background: transparent; color: var(--accent-deep); border: 1px solid var(--accent); }
.btn.is-line:hover { background: var(--surface); text-decoration-color: var(--note-keep), var(--note-sell); }

/* ------------------------------ disclaimer / footer ------------------------------ */
.site-disclaimer { background: #e9ebee; border-top: 1px solid var(--line); }
.site-disclaimer p { max-width: 1140px; margin: 0 auto; padding: 18px 22px; font-size: 0.82rem; color: #464c55; }
.site-footer { background: var(--footer-bg); color: #e4e6ea; position: relative; }
.site-footer::before {
  content: "";
  display: block;
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--note-keep) 0 46px, var(--note-sell) 46px 92px, var(--note-close) 92px 138px);
}
.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; font-weight: 600; }
.footer-grid p { font-size: 0.86rem; color: #b9bec6; }
.footer-grid nav { display: flex; flex-direction: column; }
.footer-grid nav a { padding: 6px 0; font-size: 0.88rem; color: #e4e6ea; border-bottom: 1px dashed rgba(255, 255, 255, 0.12); }
.footer-grid nav a:hover { color: var(--note-keep); }
.footer-note { max-width: 1140px; margin: 0 auto; padding: 8px 22px 18px; font-size: 0.78rem; color: #a4aab3; 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: #e4e6ea; }
.footer-links a:hover { color: var(--note-keep); }
.copyright { text-align: center; padding: 14px 22px 22px; margin: 0; font-size: 0.78rem; color: #8d939c; font-family: var(--font-mono); }

/* ------------------------------ blog list ------------------------------ */
.blog-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.blog-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 20px 20px 0;
  border-color: transparent transparent transparent transparent;
}
.blog-card:nth-child(3n + 1)::after { border-color: transparent var(--note-keep) transparent transparent; }
.blog-card:nth-child(3n + 2)::after { border-color: transparent var(--note-sell) transparent transparent; }
.blog-card:nth-child(3n)::after { border-color: transparent var(--note-close) transparent transparent; }
.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-deep); }
.blog-card h2, .blog-card h3 { margin: 0; font-size: 1.06rem; }
.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: 3px; padding: 1px 10px; background: var(--surface); }
.article-eyecatch { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 18px 0; }
.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.4rem; padding-left: 14px; position: relative; }
.article-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 7px;
  height: 1.4em;
  border-radius: 2px;
  background: var(--note-keep);
}
.article-content section:nth-of-type(2n) h2::before { background: var(--note-sell); }
.article-content h3 { font-size: 1.08rem; }
.article-content ul, .article-content ol { padding-left: 22px; }
.share-box { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; margin-bottom: 28px; }
.share-box h2 { font-size: 1.05rem; margin: 0 0 10px; }
.share-links { display: flex; gap: 12px; flex-wrap: wrap; }
.share-links a { border: 1px solid var(--accent); border-radius: 8px; padding: 6px 16px; font-size: 0.86rem; }
.share-links a:hover { background: var(--accent); color: #fff; }

/* ------------------------------ 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; }
  .hero-figure { grid-template-columns: 76px 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .hero-inner { grid-template-columns: 1fr; gap: 26px; padding: 34px 16px 46px; }
  .hero-figure { order: -1; grid-template-columns: 1fr; }
  .sort-board { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); }
  .sort-label { font-size: 0.82rem; }
  .note-key { margin-top: -18px; padding: 0 16px; }
  .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; }
  h1 { font-size: clamp(1.6rem, 5.4vw, 2.1rem); }
  .brand-text strong { font-size: 0.9rem; }
  .brand-text small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* compact hero (下層) */
.hero-compact .hero-inner { padding-top: 40px; padding-bottom: 44px; grid-template-columns: 1.05fr 0.95fr; }
.hero-compact h1 { font-size: clamp(1.55rem, 2.9vw, 2.2rem); }
.hero-compact .hero-lead { margin: 14px 0 0; }
.meter-strip {
  display: flex;
  gap: 18px;
  border-top: 1px solid var(--line);
  background: var(--accent-2);
  color: #fff;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}
.meter-strip b { color: var(--note-keep); font-weight: 500; }

/* BLOG-HIGHLIGHTS:START */
.blog-highlights {
  padding: 3rem 0;
}
:where(.blog-highlights .container) {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}
.blog-highlights h2 {
  margin-bottom: 1.25rem;
}
.blog-highlights-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.blog-highlights-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);
}
.blog-highlights-list time {
  flex: 0 0 auto;
  color: var(--muted, #666);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.blog-highlights-list a {
  flex: 1 1 16rem;
  min-width: 0;
  color: var(--ink, #222);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.blog-highlights-list a:hover {
  color: var(--accent-deep, #444);
  text-decoration: underline;
}
.blog-highlights-more {
  margin-top: 1.25rem;
}
.blog-highlights-more a {
  color: var(--accent-deep, #444);
  text-decoration: none;
  font-weight: 600;
}
.blog-highlights-more a:hover {
  text-decoration: underline;
}
@media (max-width: 600px) {
  .blog-highlights-list li {
    flex-direction: column;
    gap: 0.2rem;
  }
  .blog-highlights-list a,
  .blog-highlights-list time {
    flex: 0 0 auto;
  }
}
/* BLOG-HIGHLIGHTS:END */

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