body { font-size: 16px; }
:root { --panel: #ebe4d6; }
.num { font-family: "Inter", "Noto Sans JP", sans-serif; font-weight: 500; letter-spacing: -.01em; }
.eyebrow { color: var(--red-dark); font-size: 13px; font-weight: 800; letter-spacing: .08em; font-family: "Inter", "Noto Sans JP", sans-serif; }
.page-head { padding-top: clamp(28px, 3.5vw, 52px); padding-bottom: clamp(20px, 2.4vw, 34px); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(44px, 5.56vw, 80px); line-height: 1.1; letter-spacing: -.055em; margin-top: 6px; }
.blog-curve { display: block; width: 42%; height: 40px; margin-top: -8px; object-fit: fill; }
.tag { display: inline-block; background: var(--sand); color: var(--ink); font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 2px; line-height: 1.6; }
.filter { display: flex; flex-wrap: wrap; gap: 10px; padding-block: 22px; }
.filter a { border: 1px solid var(--ink); padding: 7px 16px; font-size: 14px; font-weight: 800; border-radius: 999px; background: transparent; }
.filter a.on { background: var(--ink); color: #fff; }
.featured { display: grid; grid-template-columns: 58% 1fr; gap: clamp(24px, 3.3vw, 48px); align-items: center; padding-block: clamp(20px, 2.5vw, 36px); border-bottom: 1px solid var(--rule); }
.featured h2 { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.35; letter-spacing: -.045em; margin-top: 12px; }
.featured p { margin-top: 14px; font-size: 16px; line-height: 1.9; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.readmore { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-weight: 900; border-bottom: 2px solid var(--red); padding-bottom: 4px; }
.readmore img { width: 18px; height: auto; }
.thumb { position: relative; aspect-ratio: auto; overflow: visible; background: var(--sand); padding: 10px; display: block; color: #17203399; font-size: 13px; font-weight: 800; }
.thumb::after { content: none; }
.thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: contain; box-shadow: 0 1px 2px #11111126, 0 2px 8px #1111110f; position: relative; z-index: 1; }
.thumb span { position: relative; z-index: 1; border: 1px dashed currentColor; padding: 4px 10px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.3vw, 48px) clamp(20px, 2.2vw, 32px); padding-block: clamp(28px, 3.3vw, 48px); }
.post-card .thumb { margin-bottom: 16px; }
.featured, .post-grid .post-card { background: var(--panel); border: 1px solid var(--rule); transition: background .15s, border-color .15s; }
.featured:hover, .post-card:hover { border-color: var(--ink); }
.featured:active, .post-card:active { background: var(--sand); }
.featured:focus-visible, .post-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.post-card h3, .post-card h2 { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; letter-spacing: -.035em; margin-top: 10px; }
.post-card p { margin-top: 8px; font-size: 14px; line-height: 1.8; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card:hover h2, .post-card:hover h3 { color: var(--red-dark); }
.empty { padding: 48px 0 64px; font-weight: 800; color: var(--muted); }
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; padding-bottom: clamp(40px, 4.5vw, 64px); }
.pager a, .pager span { min-width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--rule); font-family: Inter, "Noto Sans JP", sans-serif; font-weight: 500; }
.pager a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .txt { padding-inline: 16px; font-family: inherit; font-weight: 800; font-size: 14px; }
.pager span[aria-disabled="true"] { color: var(--muted); }
.crumb { font-size: 13px; color: var(--muted); padding-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumb b { color: var(--ink); font-weight: 700; }
.art-head { max-width: 880px; margin-inline: auto; padding-top: clamp(24px, 3vw, 44px); }
.art-head h1 { font-size: clamp(30px, 3.33vw, 48px); line-height: 1.35; letter-spacing: -.05em; margin-top: 14px; }
.art-head .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.art-eye { max-width: 1120px; margin: clamp(24px, 3vw, 40px) auto 0; padding-inline: var(--gutter); }
.art-eye img { display: block; width: 100%; height: auto; object-fit: contain; }
.art-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 64px; justify-content: center; padding-top: clamp(32px, 3.9vw, 56px); padding-bottom: 56px; }
.toc { position: sticky; top: 24px; align-self: start; font-size: 14px; border-top: 3px solid var(--ink); padding-top: 14px; }
.toc h2 { font-size: 13px; letter-spacing: .06em; margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--muted); }
.toc a:hover, .toc li.on a { color: var(--red-dark); }
.toc li.on { font-weight: 800; }
.toc li.sub { padding-left: 14px; font-size: 13px; }
.prose { font-size: 17px; line-height: 2; }
.prose > * + * { margin-top: 1.4em; }
.prose h2 { font-size: clamp(23px, 2vw, 28px); line-height: 1.45; letter-spacing: -.04em; margin-top: 2.4em; padding-left: 18px; position: relative; }
.prose h2::before { content: ""; position: absolute; left: 0; top: .25em; bottom: .25em; width: 5px; background: var(--red); }
.prose h3 { font-size: 20px; line-height: 1.5; letter-spacing: -.03em; margin-top: 2em; }
.prose a { color: var(--red-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { background: linear-gradient(transparent 60%, var(--highlight) 60%); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose ul li::marker { color: var(--red); }
.prose ol li::marker { font-family: Inter, "Noto Sans JP", sans-serif; color: var(--red-dark); font-weight: 500; }
.prose blockquote { margin: 1.6em 0; padding: 22px 26px; background: var(--quote); font-weight: 700; line-height: 1.9; transform: rotate(-.6deg); }
.prose blockquote p + p { margin-top: .6em; }
.prose :not(pre) > code { background: var(--sand); padding: 2px 6px; border-radius: 2px; font-size: .88em; font-family: ui-monospace, "DejaVu Sans Mono", monospace; }
.prose .emdash-image { max-width: 100%; margin: 1.6em 0; }
.prose .emdash-image img { display: block; width: 100%; max-width: 100%; height: auto; object-fit: contain; }
.prose .emdash-image figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }
.code-block { background: #1b1a17; color: #f3efe4; border-radius: 3px; }
.codelabel { display: block; font-size: 12px; color: #9a958a; padding: 14px 22px 0; font-family: ui-monospace, "DejaVu Sans Mono", monospace; }
.code-block pre { margin: 0; padding: 20px 22px; overflow: auto; font-size: 14px; line-height: 1.75; font-family: ui-monospace, "DejaVu Sans Mono", monospace; }
.code-block code { font-family: inherit; }
.share { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 18px 0; margin-top: 48px; font-size: 14px; font-weight: 800; }
.share a, .share button { width: 40px; height: 40px; border: 1px solid var(--ink); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; background: transparent; cursor: pointer; padding: 0; }
.inline-cta { margin-top: 40px; background: var(--red); color: #fff; padding: 28px 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.inline-cta h3 { font-size: 22px; line-height: 1.4; letter-spacing: -.04em; }
.inline-cta p { font-size: 14px; margin-top: 6px; color: #fff; font-weight: 700; }
.inline-cta a { background: var(--paper); color: var(--ink); padding: 12px 18px; font-weight: 900; white-space: nowrap; border-radius: 2px; }
.related { border-top: 1px solid var(--rule); padding-top: clamp(28px, 3vw, 44px); }
.related h2 { font-size: clamp(28px, 2.8vw, 40px); letter-spacing: -.045em; }
.related .post-grid { padding-top: 24px; }
.backlist { display: inline-flex; gap: 10px; align-items: center; font-weight: 900; border-bottom: 2px solid var(--red); padding-bottom: 4px; margin-bottom: 56px; }
.backlist.lone { margin-top: 28px; }

@media (max-width: 700px) {
  .page-head h1 { font-size: 44px; }
  .blog-curve { width: 80%; }
  .filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); padding-block: 16px; }
  .filter::-webkit-scrollbar { display: none; }
  .filter a { white-space: nowrap; font-size: 13px; padding: 6px 14px; }
  .featured { grid-template-columns: 1fr; gap: 0; padding: 0; margin-block: 20px 8px; border-bottom: 1px solid var(--rule); }
  .featured > div:last-child { padding: 16px 18px 18px; }
  .featured .thumb { padding: 14px; border-bottom: 1px solid var(--rule); }
  .featured h2 { font-size: 21px; line-height: 1.45; }
  .featured p { font-size: 14px; -webkit-line-clamp: 2; }
  .readmore { display: flex; justify-content: space-between; margin-top: 14px; padding: 12px 0 0; border-bottom: 0; border-top: 1px solid var(--rule); font-size: 15px; }
  .readmore::after { content: none; }
  .post-grid { grid-template-columns: 1fr; gap: 12px; padding-top: 12px; padding-bottom: 32px; }
  .post-grid .post-card { display: grid; grid-template-columns: 128px 1fr 16px; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid var(--rule); }
  .post-grid .post-card .thumb { margin: 0; aspect-ratio: auto; padding: 6px; align-self: center; height: auto; font-size: 10px; }
  .post-grid .post-card::after { content: ""; width: 9px; height: 9px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: rotate(45deg); justify-self: center; }
  .post-grid .post-card .thumb span { padding: 2px 4px; }
  .post-grid .post-card h2, .post-grid .post-card h3 { font-size: 15px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .post-grid .post-card p { display: none; }
  .post-grid .post-card .meta { font-size: 12px; gap: 8px; }
  .pager .hide-sp { display: none; }
  .art-head h1 { font-size: 26px; }
  .art-eye { max-width: none; margin-inline: 0; padding-inline: 0; }
  .art-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; }
  .toc { position: static; background: #ebe4d6; border-top: 0; padding: 16px 18px; }
  .toc li.sub { display: none; }
  .prose { font-size: 16px; line-height: 1.95; }
  .prose h2 { font-size: 21px; padding-left: 14px; }
  .prose h3 { font-size: 18px; }
  .prose .code-block { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; }
  .code-block pre { font-size: 12.5px; padding: 18px var(--gutter); }
  .prose blockquote { padding: 18px 20px; }
  .inline-cta { flex-direction: column; align-items: flex-start; padding: 24px 22px; }
  .inline-cta a { width: 100%; text-align: center; }
  .related .post-grid .post-card { grid-template-columns: 110px 1fr 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .prose blockquote { transform: none; }
}
/* The mobile list rule used to force 1/1 and crop 1200×630 eyecatches.
   Same specificity as `.post-grid .post-card .thumb { aspect-ratio: 1/1 }`, and later, so it wins. */
.post-grid .post-card .thumb { aspect-ratio: auto; }
@media (min-width: 701px) {
  .featured { padding: clamp(20px, 2.2vw, 32px); }
  .post-grid .post-card { padding: 0 0 22px; }
  .post-grid .post-card .thumb { margin-bottom: 18px; }
  .post-grid .post-card > div:last-child { padding-inline: clamp(18px, 1.7vw, 24px); }
}
