/* kaupedia — Brand 03「二つ折りの値札」 (docs/brand-v3/README.md)
   墨 writes the facts anyone can check; 朱 marks kaupedia's judgement (the conditions, who it suits,
   what to check) and the brand. A label that belongs to a thing is a small tag with a hole.
   Groups are made with space and planes, not rules. */

:root {
  --font-body: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic Medium', YuGothic, Meiryo, sans-serif;
  --shu: #cf3b28;
  --shu-ink: #b3321f;
  --shu-tint: #f7ddd4;
  --sumi: #17181c;
  --sumi-2: #34363c;
  --nezumi: #5b5d63;
  --usuzumi: #a3a4a8;
  --kami: #f5f2ea;
  --kinari: #ece7dc;
  --washi: #fbfaf6;
  --shiro: #fff;
  --ki: #ffd84a;
  --marker: #ffe57a;
  --ai-tint: #dde4ef;
  --content: 1248px;
  --reading: 720px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow: 0 18px 48px -20px rgb(23 24 28 / 28%);
  color: var(--sumi);
  background: var(--kami);
  font-family: var(--font-body);
  font-synthesis: none;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 18px;
  line-height: 32px;
  background: var(--kami);
  overflow-x: clip;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading), var(--font-body);
  margin: 0;
  overflow-wrap: anywhere;
  word-break: auto-phrase;
  text-wrap: pretty;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 44px;
  line-height: 60px;
  font-weight: 800;
}
h2 {
  font-size: 30px;
  line-height: 44px;
  font-weight: 800;
}
h3 {
  font-size: 21px;
  line-height: 33px;
  font-weight: 700;
}
p {
  margin: 0 0 24px;
}
a {
  color: inherit;
  text-decoration-color: var(--shu-ink);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}
@media (hover: hover) and (pointer: fine) {
  a:hover {
    color: var(--shu-ink);
  }
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
:is(button, a, input, select, summary) {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid var(--shu);
  outline-offset: 3px;
}
::selection {
  background: var(--marker);
}
img,
svg {
  max-width: 100%;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--sumi);
  color: var(--shiro);
}
.skip-link:focus {
  top: 12px;
}

/* ---------- containers ---------- */
.site-header,
.footer-inner,
.hero-copy,
.home-section,
.library,
.about-page,
.author-page,
.not-found {
  width: min(calc(100% - 80px), var(--content));
  margin-inline: auto;
}

/* ---------- small parts ---------- */
/* a section's small label is navigation, not judgement: 鼠, not 朱 */
.eyebrow {
  margin: 0 0 12px;
  color: var(--nezumi);
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
/* A label attached to an entry is a small tag: the symbol's 100° point and a hole, cut with a mask
   (public/brand/v3/tag-end.svg). Use it only for labels that belong to a thing: a category, a condition. */
.label {
  --tag-h: 26px;
  display: inline-flex;
  align-items: center;
  height: var(--tag-h);
  padding: 0 11px 0 calc(var(--tag-h) * 0.72);
  border-radius: 0 6px 6px 0;
  background: var(--kinari);
  color: var(--sumi);
  font-family: var(--font-heading), var(--font-body);
  font-size: 12.5px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
  -webkit-mask:
    url('/brand/v3/tag-end.svg') left center / auto 100% no-repeat,
    linear-gradient(#000 0 0) right center / calc(100% - var(--tag-h) * 0.6 + 1px) 100% no-repeat;
  mask:
    url('/brand/v3/tag-end.svg') left center / auto 100% no-repeat,
    linear-gradient(#000 0 0) right center / calc(100% - var(--tag-h) * 0.6 + 1px) 100% no-repeat;
}
a.label:hover {
  background: var(--sumi);
  color: var(--kami);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 700;
  text-decoration: none;
}
.button-dark {
  background: var(--sumi);
  color: var(--shiro);
}
.button-outline {
  background: var(--shiro);
  color: var(--sumi);
  box-shadow: inset 0 0 0 1.5px var(--sumi);
}
@media (hover: hover) and (pointer: fine) {
  .button-dark:hover {
    background: var(--shu);
    color: var(--shiro);
  }
  .button-outline:hover {
    color: var(--shu-ink);
    box-shadow: inset 0 0 0 1.5px var(--shu-ink);
  }
}
.empty {
  padding: 48px 36px;
  border-radius: 16px;
  background: var(--shiro);
}
.empty p {
  margin: 16px 0 24px;
}

/* ---------- brand marks (components/site/Brand.tsx) ---------- */
.brand-mark {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  --brand-shu: var(--shu);
}
/* ---------- header ---------- */
.header-main {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 92px;
}
.brand {
  display: inline-flex;
  flex: 0 0 auto;
  text-decoration: none;
}
.brand svg {
  display: block;
  width: auto;
  height: 34px;
  color: var(--sumi);
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
  line-height: 22px;
  font-weight: 700;
  white-space: nowrap;
}
.primary-nav a {
  padding: 12px 0;
  text-decoration: none;
}
.header-search {
  width: 300px;
  flex: 0 1 300px;
}

/* ---------- search: 事典を引く ---------- */
.site-search {
  position: relative;
  min-width: 0;
}
.site-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 18px;
  border-radius: 999px;
  background: var(--shiro);
  box-shadow: inset 0 0 0 1.5px #d6cfc0;
}
.site-search-field:focus-within {
  box-shadow: inset 0 0 0 2px var(--sumi);
}
.site-search-field input {
  flex: 1;
  width: 0;
  min-width: 0;
  height: 36px;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 15px;
}
.site-search-field input::placeholder {
  color: #8d8f94;
}
.site-search-key {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--kinari);
  color: var(--nezumi);
  font: 700 12px/1 var(--font-body), sans-serif;
}
.site-search-field button {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--sumi);
  color: var(--shiro);
  font-size: 13px;
  font-weight: 700;
}
.site-search-panel {
  position: absolute;
  z-index: 70;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  padding: 8px;
  border-radius: 16px;
  background: var(--shiro);
  box-shadow: var(--shadow);
}
.site-search-header .site-search-panel {
  left: auto;
  width: min(460px, calc(100vw - 40px));
}
.site-search-panel[hidden] {
  display: none;
}
.site-search-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 4px 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 22px;
  cursor: pointer;
}
.site-search-option .label {
  margin-top: 1px;
  font-size: 11px;
  line-height: 20px;
}
.site-search-option[aria-selected='true'] {
  background: var(--kami);
}
.site-search-option mark,
.results-heading mark {
  background: linear-gradient(transparent 55%, var(--marker) 55%);
  color: inherit;
}
.site-search-all,
.site-search-empty {
  display: block;
  margin: 4px 0 0;
  padding: 10px 12px;
  color: var(--shu-ink);
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
}
.site-search-empty {
  color: var(--nezumi);
  font-weight: 400;
}

/* ---------- thumb index: the dictionary's fore-edge ---------- */
.thumb-index {
  --tab-h: min(84px, calc((100vh - 240px) / var(--tabs) - 6px));
  display: none;
  position: fixed;
  z-index: 25;
  top: 50%;
  right: 0;
  width: 42px;
  height: calc(var(--tabs) * (var(--tab-h) + 6px));
  transform: translateY(-50%);
}
.thumb-tab {
  position: absolute;
  top: calc(var(--i) * (var(--tab-h) + 6px));
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: var(--tab-h);
  overflow: hidden;
  border-radius: 10px 0 0 10px;
  background: var(--kinari);
  color: var(--sumi-2);
  writing-mode: vertical-rl;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  transform: translateX(10px);
}
/* the current field is shown in 墨, like the current label: 朱 is kept for judgement and the logo */
.thumb-tab[aria-current] {
  background: var(--sumi);
  color: var(--kami);
  transform: none;
}
.has-current .thumb-tab:not([aria-current]) {
  opacity: 0;
  transform: translateX(100%);
}
.thumb-index:is(:hover, :focus-within) .thumb-tab:not([aria-current]) {
  opacity: 1;
  transform: translateX(10px);
}
.thumb-index .thumb-tab:is(:hover, :focus-visible) {
  background: var(--sumi);
  color: var(--kami);
  opacity: 1;
  transform: none;
}
@media (min-width: 1360px) and (hover: hover) and (pointer: fine) {
  .thumb-index {
    display: block;
  }
}

/* ---------- home ---------- */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
  gap: 24px;
  width: min(calc(100% - 80px), var(--content));
  margin: 0 auto 72px;
}
.hero-object {
  margin: 0;
}
.hero-object img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-copy {
  position: relative;
  width: auto;
  margin: 0;
  padding-block: 56px 48px;
}
.hero-copy > * {
  max-width: 560px;
}
.hero-title {
  margin: 0;
}
.hero-wordmark {
  display: block;
  width: auto;
  height: clamp(66px, 7.4vw, 108px);
  color: var(--sumi);
}
.hero-reading {
  display: block;
  margin-top: 10px;
  color: var(--nezumi);
  font-family: var(--font-body), sans-serif;
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: 0.42em;
}
.hero-lead {
  margin: 28px 0 32px;
  color: var(--sumi-2);
  font-size: 18px;
  line-height: 32px;
}
.home-section {
  margin-bottom: 112px;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-heading > a,
.section-heading > span {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 22px;
  font-weight: 700;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.field-tab {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 156px;
  height: 100%;
  padding: 24px 26px 22px 24px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--shiro);
  text-decoration: none;
  transition: transform 180ms var(--ease);
}
.field-tab strong {
  font-family: var(--font-heading), var(--font-body);
  font-size: 20px;
  line-height: 30px;
  font-weight: 800;
}
.field-description {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: var(--nezumi);
  font-size: 13px;
  line-height: 21px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
/* a tab slides out of the right edge, like a dictionary's thumb index */
.field-tab::after {
  content: '';
  position: absolute;
  top: 24px;
  right: 0;
  width: 8px;
  height: 44px;
  border-radius: 8px 0 0 8px;
  background: var(--shu);
  transform: translateX(100%);
  transition: transform 200ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .field-tab:hover {
    color: inherit;
    transform: translateY(-3px);
  }
  .field-tab:hover::after {
    transform: none;
  }
}

.resource-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 44px 48px;
  border-radius: 24px;
  background: var(--shiro);
}
.resource-callout h2 {
  margin-bottom: 12px;
  font-size: 26px;
  line-height: 38px;
}
.resource-callout p:last-child {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--nezumi);
  font-size: 16px;
  line-height: 28px;
}
.resource-callout .button {
  flex-shrink: 0;
}

/* 凡例 */
.legend h2 {
  margin-bottom: 26px;
}
.legend-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 48px;
  margin: 0 0 28px;
}
.legend-list > div {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}
.legend-list dt {
  padding-top: 2px;
}
.legend-list dd {
  margin: 0;
  color: var(--sumi-2);
  font-size: 15px;
  line-height: 26px;
}
.legend-link {
  font-size: 15px;
  line-height: 26px;
  text-decoration: underline;
  text-decoration-color: var(--shu-ink);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}
.legend-marker {
  background: linear-gradient(transparent 60%, var(--marker) 60%, var(--marker) 92%, transparent 92%);
  color: inherit;
  font-size: 15px;
  font-weight: 700;
}
.legend-buy,
.legend-step {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 8px;
  background: var(--sumi);
  color: var(--shiro);
  font-size: 13px;
  line-height: 24px;
  font-weight: 700;
}
/* the parts of the tag, drawn as they appear in an entry */
.legend-verdict,
.legend-marks {
  color: var(--shu-ink);
  font-family: var(--font-heading), var(--font-body);
  font-size: 14px;
  line-height: 22px;
  font-weight: 800;
}
.legend-step {
  background: var(--shiro);
  color: var(--shu-ink);
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
}
.legend > a {
  font-size: 14px;
  font-weight: 700;
}

/* ---------- entry cards ---------- */
.featured-grid,
.post-grid {
  display: grid;
  gap: 48px 32px;
}
.featured-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.featured-grid-single {
  grid-template-columns: 1fr;
}
.post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.post-card-art {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: var(--shiro);
}
.post-card-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 360ms var(--ease);
}
.post-card-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  font-weight: 700;
}
.post-card-placeholder .brand-mark {
  width: 72px;
  color: var(--sumi);
}
.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 18px;
}
.card-meta {
  margin: 0 0 10px;
  line-height: 0;
}
.post-card h3 {
  font-size: 20px;
  line-height: 31px;
}
.post-card h3 a {
  text-decoration: none;
}
.post-card-body > p {
  display: -webkit-box;
  margin: 10px 0 18px;
  overflow: hidden;
  color: var(--nezumi);
  font-size: 14px;
  line-height: 24px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  font-size: 13px;
  line-height: 20px;
}
.card-bottom time {
  color: var(--nezumi);
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
}
.card-bottom > a {
  font-weight: 700;
  text-decoration: none;
}
.post-card-large h3 {
  font-size: 27px;
  line-height: 40px;
}
.featured-grid-single .post-card-large {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
@media (hover: hover) and (pointer: fine) {
  .post-card:hover .post-card-art img {
    transform: scale(1.025);
  }
  .post-card:hover h3 a {
    text-decoration: underline;
    text-decoration-color: var(--shu-ink);
  }
}

/* ---------- library / 索引 ---------- */
.library {
  padding-block: 40px 96px;
}
.library-head {
  margin-bottom: 36px;
}
.library-head h1 {
  font-size: 42px;
  line-height: 58px;
}
.library-head > p:not(.eyebrow, .library-jumps) {
  max-width: var(--reading);
  margin: 14px 0 22px;
  color: var(--nezumi);
}
.field-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.field-chips a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--shiro);
  font-size: 14px;
  line-height: 22px;
  font-weight: 700;
  text-decoration: none;
}
.field-chips span {
  color: var(--nezumi);
  font-size: 12px;
  font-weight: 400;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
}
.field-chips a[aria-current] {
  background: var(--sumi);
  color: var(--kami);
}
.field-chips a[aria-current] span {
  color: var(--usuzumi);
}
.library-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  font-size: 14px;
  line-height: 22px;
}
.library-filters {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
  padding: 28px 32px;
  border-radius: 20px;
  background: var(--shiro);
}
.library-filters label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
}
.library-filters input,
.library-filters select {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--kami);
  font-size: 16px;
}
.library-filters :is(input, select):focus-visible {
  outline-offset: 0;
}
.results-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 32px 0;
  font-size: 14px;
  line-height: 22px;
}
.results-heading p {
  margin: 0;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 56px;
  font-size: 14px;
  font-weight: 700;
}
#library-search {
  scroll-margin-top: 24px;
}
.reading-paths {
  margin-bottom: 36px;
  padding: 32px;
  border-radius: 20px;
  background: var(--shiro);
}
.reading-paths h2 {
  font-size: 24px;
  line-height: 36px;
}
.reading-paths > p {
  max-width: var(--reading);
  margin: 10px 0 24px;
  color: var(--nezumi);
  font-size: 14px;
  line-height: 24px;
}
.reading-path-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 28px;
}
.reading-path-groups h3 {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 24px;
}
.reading-path-groups ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.reading-path-groups a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
}
.reading-path-groups strong {
  font-size: 15px;
  line-height: 1.7;
}
.reading-path-detail {
  grid-column: 1;
  color: var(--nezumi);
  font-size: 13px;
  line-height: 1.7;
}
@media (hover: hover) and (pointer: fine) {
  .reading-path-groups a:hover {
    background: var(--kami);
    color: inherit;
  }
}
.article-index {
  margin-top: 96px;
  scroll-margin-top: 32px;
}
.article-index-group {
  margin-top: 36px;
}
.article-index-group h3 {
  font-size: 13px;
  line-height: 20px;
}
.article-index-group h3 a {
  display: inline-flex;
  padding: 1px 12px;
  border-radius: 999px;
  background: var(--sumi);
  color: var(--kami);
  line-height: 24px;
  text-decoration: none;
}
.article-index-group ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 0 40px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.article-index-group li a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  line-height: 1.8;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .article-index-group li a:hover {
    text-decoration: underline;
  }
}

/* ---------- article ---------- */
.article-shell {
  --reading: 760px;
  width: min(calc(100% - 48px), var(--reading));
  margin-inline: auto;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-block: 24px 36px;
  color: var(--nezumi);
  font-size: 12px;
  line-height: 20px;
}
.breadcrumb a {
  text-decoration: none;
}
.article-header {
  margin-bottom: 28px;
}
.article-header .card-meta {
  margin-bottom: 18px;
}
.article-header h1 {
  font-size: 40px;
  line-height: 56px;
}
.title-head,
.title-gloss {
  display: block;
}
.title-gloss {
  margin-top: 10px;
  color: var(--sumi-2);
  font-size: 23px;
  line-height: 35px;
  font-weight: 700;
}
.article-description {
  margin: 22px 0 24px;
  color: var(--nezumi);
  font-size: 17px;
  line-height: 30px;
}
.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 22px;
}
.byline img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.byline a {
  font-weight: 700;
  text-decoration: none;
}
.byline time {
  color: var(--nezumi);
  font-size: 13px;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
}
.ad-disclosure {
  color: var(--nezumi);
  font-size: 12px;
  line-height: 20px;
}
.ad-disclosure p {
  max-width: var(--reading);
  margin: 12px 0 0;
}
summary {
  cursor: pointer;
}
summary::-webkit-details-marker {
  display: none;
}

/* 柱: the running head carries the current heading and the reading position */
.running-head {
  position: sticky;
  z-index: 30;
  top: 0;
  margin: 20px 0 28px;
}
/* the paper runs edge to edge behind the bar: a spread shadow on a pseudo-element (no scroll width),
   clipped on the pseudo-element only, so the 目次 panel that hangs below the bar is never cut off */
.running-head::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--kami);
  box-shadow: 0 0 0 100vmax var(--kami);
  clip-path: inset(0 -100vmax -28px);
}
.running-head.is-stuck::before {
  box-shadow:
    0 0 0 100vmax var(--kami),
    0 14px 22px -20px rgb(23 24 28 / 40%);
}
.running-head-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
}
.article-jump-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 14px 6px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--shiro);
  color: var(--sumi);
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
}
.article-jump-toggle[aria-expanded='true'] {
  background: var(--sumi);
  color: var(--kami);
}
.running-head-current {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  margin: 0;
  font-size: 13px;
  line-height: 20px;
}
.running-head-count {
  flex: 0 0 auto;
  color: var(--shu-ink);
  font-weight: 700;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
}
.running-head-count span {
  color: var(--usuzumi);
  font-weight: 400;
}
.running-head-label {
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.running-head-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--shu);
  transform-origin: left;
}
.article-jump-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  width: min(440px, 100%);
  max-height: min(62dvh, 540px);
  padding: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 16px;
  background: var(--shiro);
  box-shadow: var(--shadow);
}
.article-jump-panel[hidden] {
  display: none;
}
.article-jump-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 22px;
  text-decoration: none;
}
.article-jump-panel a[data-level='3'] {
  padding-left: 28px;
  font-size: 13px;
}
.article-jump-panel a[aria-current='location'] {
  background: var(--kami);
  font-weight: 700;
}
.article-jump-panel a[aria-current='location']::before {
  content: '';
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--shu);
}
.article-jump-panel a:is(:hover, :focus-visible) {
  background: var(--kami);
}

/* the fore-edge ticks: one per heading, the current one in 朱 */
.article-rail {
  position: fixed;
  z-index: 30;
  top: 50%;
  left: 18px;
  display: none;
  flex-direction: column;
  width: 44px;
  transform: translateY(-50%);
}
.article-rail-link {
  position: relative;
  display: flex;
  align-items: center;
  width: 44px;
  height: 26px;
  border-radius: 4px;
  text-decoration: none;
}
.article-rail-mark {
  display: block;
  width: 30px;
  height: 3px;
  margin-left: 8px;
  border-radius: 3px;
  background: #cdc7ba;
  transform: scaleX(0.55);
  transform-origin: left;
}
.article-rail-link[data-level='3'] .article-rail-mark {
  transform: scaleX(0.32);
}
.article-rail-link[aria-current='location'] .article-rail-mark {
  background: var(--shu);
  transform: scaleX(1);
}
.article-rail-label {
  position: absolute;
  top: 50%;
  left: 44px;
  width: max-content;
  max-width: min(320px, calc(100vw - 100px));
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--shiro);
  box-shadow: var(--shadow);
  color: var(--sumi);
  font-size: 13px;
  line-height: 21px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%);
}
.article-rail-link:is(:hover, :focus-visible) .article-rail-label {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.article-rail-link:is(:hover, :focus-visible) .article-rail-mark {
  background: var(--sumi);
  transform: scaleX(1);
}
@media (min-width: 1100px) and (hover: hover) and (pointer: fine) {
  .article-rail {
    display: flex;
  }
}

.article-cover {
  margin: 0 0 48px;
}
.article-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.article-layout {
  display: block;
}
.article-main {
  min-width: 0;
}
/* jumps land just below the sticky running head: the root's scroll-padding-top (88px) already
   clears it, and ArticleNavigator counts a heading as current from 96px, so no extra margin here */

/* ---------- article takeaways ---------- */
.fold {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 44px;
  border-radius: 20px;
  background: var(--shiro);
  overflow: hidden;
}
.fold-front {
  padding: 28px 32px 30px;
}
.product-section > h2,
.related-section h2,
.faq > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fold h2 {
  margin-bottom: 18px;
  font-size: 22px;
  line-height: 32px;
}
.fold ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fold li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}
.takeaway-number {
  color: var(--shu);
  font-family: var(--font-heading), var(--font-body);
  font-size: 17px;
  line-height: 30px;
  font-weight: 800;
}
.takeaway-text {
  font-size: 17px;
  line-height: 30px;
}

/* 条件別の購入先: each choice is a small tag — the condition in 朱, then the product */
.intro-purchase {
  margin: 0 0 48px;
}
.intro-purchase-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--nezumi);
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
}
.intro-purchase-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.intro-purchase-choice {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  min-width: 0;
  padding: 36px 18px 18px;
  border-radius: 18px;
  background: var(--shiro);
}
.intro-purchase-choice:not(:has(.intro-purchase-image)) {
  grid-template-columns: minmax(0, 1fr);
}
.intro-purchase-image {
  margin: 0;
}
.intro-purchase-image img {
  display: block;
  width: 92px;
  height: 120px;
  object-fit: contain;
}
/* 横長の画像は、書影の枠ではなく幅で見せる（2026-10-04、オーナーの「ひと目で分かるように」） */
.intro-purchase-choice:has(.intro-purchase-image.landscape) {
  grid-template-columns: 132px minmax(0, 1fr);
}
.intro-purchase-image.landscape img {
  width: 132px;
  height: auto;
  border-radius: 8px;
}
.intro-purchase-image figcaption {
  margin-top: 8px;
  color: var(--nezumi);
  font-size: 11px;
  line-height: 17px;
}
.intro-purchase-copy {
  min-width: 0;
}
.intro-purchase-context {
  margin-bottom: 4px;
  color: var(--shu-ink);
  font-family: var(--font-heading), var(--font-body);
  font-size: 18px;
  line-height: 27px;
  font-weight: 800;
}
.intro-purchase-amount {
  font-size: 26px;
  line-height: 30px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.intro-purchase-name {
  margin-bottom: 12px;
  color: var(--nezumi);
  font-size: 13px;
  line-height: 20px;
}
.intro-purchase-copy > .purchase-link + .purchase-link {
  margin-top: 8px;
}
.intro-purchase-details {
  display: inline-block;
  margin-top: 10px;
  color: var(--nezumi);
  font-size: 12px;
  line-height: 20px;
}

/* the way to a shop is the tag's string: one calm ink button per shop, full width */
.purchase-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 10px 18px 10px 16px;
  border: 0;
  border-radius: 14px;
  background: var(--sumi);
  color: var(--shiro);
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .purchase-link:hover {
    background: var(--sumi-2);
    color: var(--shiro);
  }
}
.purchase-label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.purchase-label > img {
  flex-shrink: 0;
  width: 24px;
  height: 28px;
  object-fit: contain;
  filter: invert(1);
}
.purchase-label > span {
  min-width: 0;
}
/* 「見る」などの語の途中ではなく、語句の切れ目で折り返す。 */
.purchase-label strong,
.moshimo-ad > a {
  word-break: auto-phrase;
  overflow-wrap: normal;
}
.purchase-label strong {
  display: block;
  font-size: 16px;
  line-height: 24px;
}
.purchase-label small {
  display: block;
  font-size: 12px;
  line-height: 18px;
  opacity: 0.78;
}
.purchase-arrow {
  flex-shrink: 0;
  font-size: 20px;
}
.moshimo-ad {
  position: relative;
  display: block;
  padding: 0;
}
.moshimo-ad > a {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 10px 18px;
  border-radius: inherit;
  color: inherit;
  font-size: 14px;
  line-height: 22px;
  font-weight: 700;
  text-decoration: none;
}
.moshimo-ad > a:focus-visible {
  outline: 3px solid var(--shu);
  outline-offset: 3px;
}
.moshimo-ad > img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 1px;
}
.subscription-image img {
  padding: 8px;
  border-radius: 8px;
  background: var(--sumi);
}

/* ---------- prose ---------- */
.article-prose {
  font-size: 18px;
  line-height: 32px;
  overflow-wrap: break-word;
}
.article-prose > :is(p, ul, ol, blockquote, h2, h3, h4) {
  max-width: var(--reading);
}
.article-prose p {
  margin-bottom: 24px;
}
/* headings stay typographic: no marks in front of them (docs/brand-v3, 形をつくる操作) */
.article-prose h2 {
  margin: 76px 0 22px;
  font-size: 28px;
  line-height: 42px;
}
.article-prose h3 {
  margin: 44px 0 14px;
  font-size: 21px;
  line-height: 34px;
}
.article-prose h4 {
  margin: 32px 0 14px;
  font-size: 19px;
  line-height: 30px;
}
.article-prose :is(ul, ol) {
  margin: 0 0 24px;
  padding-left: 26px;
}
.article-prose li {
  margin-bottom: 10px;
  padding-left: 4px;
}
.article-prose li::marker {
  color: var(--shu);
  font-weight: 700;
}
.article-prose a {
  color: var(--sumi);
}
@media (hover: hover) and (pointer: fine) {
  .article-prose a:hover {
    color: var(--shu-ink);
  }
}
.article-prose strong {
  font-weight: 700;
  background-image: linear-gradient(
    transparent 60%,
    var(--marker) 60%,
    var(--marker) 92%,
    transparent 92%
  );
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.article-prose strong.marker-pending {
  background-size: 0% 100%;
}
.article-prose strong.marker-pending.is-marked {
  background-size: 100% 100%;
  transition: background-size 720ms var(--ease);
}
.article-prose blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  border-radius: 18px;
  background: var(--shiro);
  font-style: normal;
}
.article-prose blockquote p {
  margin-bottom: 14px;
}
.article-prose blockquote p:last-child {
  margin: 0;
}
.article-prose blockquote > p:first-child > strong:only-child {
  background: none;
}
.article-upload {
  width: 100%;
  margin: 44px 0;
}
.article-upload img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  border-radius: 14px;
}
.article-upload-portrait {
  max-width: 100%;
  margin-inline: 0;
}
.article-prose .image-source {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 14px 0 0;
  color: var(--nezumi);
  font-size: 13px;
  line-height: 22px;
}
.article-prose .image-source a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* comparison tables: candidates are told apart by the header colour, no grid lines */
.comparison-table {
  margin-block: 32px 40px;
}
.article-table-scroll-hint {
  min-height: 24px;
  margin: 0 0 8px !important;
  color: var(--nezumi);
  font-size: 12px;
  line-height: 18px;
}
.article-table-scroll {
  position: relative;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border-radius: 16px;
}
.article-prose table {
  width: 100%;
  min-width: 620px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 14px;
  line-height: 24px;
}
/* The rich-text converter supplies inline grid lines and 8px padding; override only those. */
.article-prose :is(td, th) {
  padding: 16px !important;
  border: 0 !important;
  vertical-align: top;
  background: var(--shiro);
  font-weight: 400;
}
.article-prose table p {
  margin: 0;
}
.article-prose tr:nth-child(odd):not(:first-child) > * {
  background: #faf8f3;
}
.article-prose tr > :first-child {
  position: sticky;
  z-index: 1;
  left: 0;
  width: 140px;
  background: var(--kinari) !important;
  font-weight: 700;
}
.article-prose tr:first-child > * {
  background: var(--ai-tint);
  font-weight: 700;
}
.article-prose tr:first-child > :nth-child(3) {
  background: var(--shu-tint);
}
.article-prose tr:first-child > :first-child {
  z-index: 2;
}
.article-prose table:has(tr:first-child > :nth-child(2):last-child) {
  min-width: 0;
}
.article-prose td .article-upload,
.article-prose th .article-upload {
  margin: 8px 0 12px;
}
.article-prose :is(td, th) .article-upload img {
  width: 180px;
  max-width: 100%;
  height: 112px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--shiro);
}
.article-prose :is(td, th):first-child .article-upload img {
  height: 66px;
}
.article-prose :is(td, th) .image-source {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.4;
}

/* ---------- body blocks (docs/playbook/visual.md「本文の部品」) ----------
   Drafts write them as tags (<Point>, <Calc>, …). 朱 marks kaupedia's judgement, 墨 the facts;
   the label is the brand's small tag with a hole. Values follow the editor's prototype. */
.article-prose > :is(.k-point, .k-calc, .k-voices, .k-paths, .k-timeline, .k-steps, .k-score) {
  max-width: var(--reading);
}
.article-prose .k-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  /* long labels (dates, conditions) wrap inside the column instead of widening the page */
  max-width: 100%;
  min-height: 26px;
  padding: 4px 11px 4px 9px;
  border-radius: 4px 9px 9px 4px;
  background: var(--shu);
  color: #fff;
  font: 700 13px/18px var(--font-heading), var(--font-body);
  letter-spacing: 0.04em;
  word-break: auto-phrase;
}
.article-prose .k-tag::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--kami);
}
.article-prose .k-tag--sumi {
  background: var(--sumi);
}
.article-prose .k-point {
  margin: 32px 0;
  padding: 22px 26px 6px;
  border-radius: 18px;
  background: var(--shiro);
}
.article-prose .k-point .k-tag {
  margin-bottom: 12px;
}
.article-prose .k-point p {
  margin-bottom: 16px;
}
.article-prose .k-point--caution {
  background: var(--kinari);
}
.article-prose .k-calc {
  margin: 32px 0;
  padding: 22px 26px 20px;
  border-radius: 18px;
  background: var(--washi);
}
.article-prose .k-calc .k-tag {
  margin-bottom: 14px;
}
.article-prose .k-calc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  font: 700 26px/38px var(--font-heading), var(--font-body);
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
}
.article-prose .k-calc-row small {
  margin-left: 2px;
  color: var(--nezumi);
  font: 700 15px/1 var(--font-heading), var(--font-body);
}
.article-prose .k-calc-op {
  color: var(--usuzumi);
  font-weight: 500;
}
.article-prose .k-calc-result {
  color: var(--shu);
  font-size: 34px;
  background: none;
}
.article-prose .k-calc-note {
  margin: 10px 0 0;
  color: var(--nezumi);
  font-size: 15px;
  line-height: 26px;
}
/* voices: summaries of what users said, never portraits */
.article-prose .k-voices {
  display: grid;
  gap: 18px;
  margin: 32px 0;
}
.article-prose .k-voice {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0 14px;
  align-items: start;
}
.article-prose .k-voice-who {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--kinari);
  color: var(--sumi);
  font: 800 15px/1 var(--font-heading), var(--font-body);
}
.article-prose .k-voice-body {
  position: relative;
  padding: 14px 20px 12px;
  border-radius: 4px 18px 18px 18px;
  background: var(--shiro);
}
.article-prose .k-voice-body::before {
  content: '';
  position: absolute;
  top: 14px;
  left: -9px;
  border: 9px solid transparent;
  border-right: 9px solid var(--shiro);
  border-left: 0;
}
.article-prose .k-voice-ctx {
  margin: 0 0 4px;
  color: var(--nezumi);
  font: 700 14px/22px var(--font-heading), var(--font-body);
}
.article-prose .k-voice-text {
  margin: 0;
  font-size: 17px;
  line-height: 30px;
}
.article-prose .k-voice-src {
  grid-column: 2;
  margin: 6px 0 0 4px;
  color: var(--nezumi);
  font-size: 13px;
  line-height: 20px;
}
.article-prose .k-timeline {
  position: relative;
  margin: 32px 0;
  padding: 0;
  list-style: none;
}
.article-prose .k-timeline::before {
  content: '';
  position: absolute;
  top: 14px;
  bottom: 24px;
  left: 107px;
  width: 4px;
  border-radius: 2px;
  background: var(--kinari);
}
.article-prose .k-tl {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0 28px;
  margin: 0;
  padding: 0 0 22px;
}
.article-prose .k-tl::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 103px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sumi);
  box-shadow: 0 0 0 4px var(--kami);
}
.article-prose .k-tl-when {
  font: 800 17px/30px var(--font-heading), var(--font-body);
  text-align: right;
  white-space: nowrap;
}
.article-prose .k-tl-what {
  padding: 2px 0 0;
}
.article-prose .k-tl-what b {
  display: block;
  font: 700 18px/30px var(--font-heading), var(--font-body);
}
.article-prose .k-tl-what span {
  display: block;
  color: var(--nezumi);
  font-size: 16px;
  line-height: 28px;
}
.article-prose .k-tl--goal::before {
  top: 8px;
  left: 101px;
  width: 16px;
  height: 16px;
  background: var(--shu);
}
.article-prose .k-tl--goal .k-tl-when {
  color: var(--shu);
}
/* up to three paths sit side by side; more stack like on phones */
.article-prose .k-paths {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: 14px;
  margin: 32px 0;
}
.article-prose .k-paths:has(> :nth-child(4)) {
  grid-auto-flow: row;
}
.article-prose .k-path {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: var(--shiro);
}
.article-prose .k-path-if {
  color: var(--shu);
  font: 700 15px/24px var(--font-heading), var(--font-body);
}
.article-prose .k-path-if .k-tag {
  margin-right: 6px;
  vertical-align: 1px;
}
.article-prose .k-path-do {
  margin: 0;
  font: 700 18px/28px var(--font-heading), var(--font-body);
  word-break: auto-phrase;
  text-wrap: pretty;
}
.article-prose .k-path-meta {
  margin: auto 0 0;
  color: var(--nezumi);
  font-size: 14px;
  line-height: 22px;
}
.article-prose .k-steps {
  margin: 32px 0;
  padding: 8px;
  border-radius: 18px;
  background: var(--washi);
  list-style: none;
  counter-reset: step;
}
.article-prose .k-step {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 0 14px;
  align-items: start;
  margin: 0;
  padding: 14px;
  border-radius: 12px;
}
.article-prose .k-step + .k-step {
  margin-top: 2px;
}
.article-prose .k-step::before {
  content: counter(step);
  counter-increment: step;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sumi);
  color: #fff;
  font: 800 17px/1 var(--font-heading), var(--font-body);
}
.article-prose .k-step b {
  display: block;
  font: 700 18px/30px var(--font-heading), var(--font-body);
  word-break: auto-phrase;
}
.article-prose .k-step span {
  display: block;
  color: var(--nezumi);
  font-size: 15px;
  line-height: 26px;
}
.article-prose .k-step-time {
  align-self: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--kinari);
  font: 700 14px/24px var(--font-heading), var(--font-body);
  white-space: nowrap;
}
.article-prose .k-score {
  margin: 32px 0;
  padding: 22px 26px 18px;
  border-radius: 18px;
  background: var(--shiro);
}
.article-prose .k-score-cap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px 12px;
  margin-bottom: 14px;
}
.article-prose .k-score-cap b {
  font: 700 16px/24px var(--font-heading), var(--font-body);
  word-break: auto-phrase;
}
.article-prose .k-score-cap span {
  color: var(--nezumi);
  font-size: 13px;
}
.article-prose .k-score-bar {
  display: flex;
  gap: 3px;
  height: 44px;
}
.article-prose .k-score-seg {
  display: flex;
  flex: var(--w);
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--kinari);
  color: var(--sumi);
  font: 800 15px/1 var(--font-heading), var(--font-body);
}
.article-prose .k-score-seg.is-key {
  background: var(--shu);
  color: #fff;
}
.article-prose .k-score-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 12px 0 0;
  padding: 0;
  color: var(--nezumi);
  font-size: 14px;
  line-height: 22px;
  list-style: none;
}
.article-prose .k-score-legend li {
  margin: 0;
  padding: 0;
}
.article-prose .k-score-legend b {
  color: var(--sumi);
  font-family: var(--font-heading), var(--font-body);
}
.article-prose .k-score-note {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 22px;
}
@media (max-width: 640px) {
  .article-prose .k-paths {
    grid-auto-flow: row;
  }
  .article-prose .k-calc-row {
    font-size: 22px;
    line-height: 34px;
  }
  .article-prose .k-calc-result {
    font-size: 28px;
  }
  .article-prose .k-timeline::before {
    left: 6px;
  }
  .article-prose .k-tl {
    grid-template-columns: 1fr;
    padding-bottom: 18px;
    padding-left: 30px;
  }
  .article-prose .k-tl::before {
    top: 9px;
    left: 2px;
  }
  .article-prose .k-tl--goal::before {
    top: 7px;
    left: 0;
  }
  .article-prose .k-tl-when {
    font-size: 15px;
    line-height: 26px;
    text-align: left;
  }
  .article-prose .k-step {
    grid-template-columns: 36px minmax(0, 1fr);
  }
  /* on phones the time label sits under the step; long labels wrap instead of widening the page */
  .article-prose .k-step-time {
    grid-column: 2;
    justify-self: start;
    max-width: 100%;
    margin-top: 6px;
    border-radius: 14px;
    white-space: normal;
  }
  .article-prose .k-score {
    padding: 18px 16px 14px;
  }
  .article-prose :is(.k-point, .k-calc) {
    padding-right: 20px;
    padding-left: 20px;
  }
}

/* cross-reference preview */
.entry-preview {
  position: fixed;
  z-index: 80;
  display: grid;
  gap: 6px;
  width: min(360px, calc(100vw - 32px));
  padding: 16px 18px 18px;
  border-radius: 16px;
  background: var(--shiro);
  box-shadow: var(--shadow);
  pointer-events: none;
}
.entry-preview.is-above {
  transform: translateY(-100%);
}
.entry-preview .label {
  justify-self: start;
}
.entry-preview strong {
  margin-top: 4px;
  font-family: var(--font-heading), var(--font-body);
  font-size: 15px;
  line-height: 24px;
  font-weight: 800;
}
.entry-preview p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--nezumi);
  font-size: 13px;
  line-height: 22px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* ---------- products ---------- */
.product-section {
  margin: 72px 0;
}
.section-note {
  margin: 14px 0 24px;
  color: var(--nezumi);
  font-size: 14px;
  line-height: 22px;
}
.purchase-card-grid {
  display: grid;
  gap: 24px;
}
.purchase-card-grid.multiple {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.product-card {
  position: relative;
  min-width: 0;
  padding: 44px 28px 28px;
  border-radius: 20px;
  background: var(--shiro);
}
.product-card::before,
.intro-purchase-choice::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--kami);
  box-shadow: inset 0 1px 2px rgb(23 24 28 / 14%);
}
.product-purchase-main {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 0 18px;
}
.product-purchase-main:not(:has(.product-cover)) {
  grid-template-columns: minmax(0, 1fr);
}
.product-purchase-copy {
  display: contents;
}
.product-cover {
  grid-column: 1;
  grid-row: 1 / span 4;
  width: 90px;
  margin: 0;
}
.product-cover .product-image {
  display: block;
  width: 90px;
  height: 136px;
  object-fit: contain;
}
.product-cover figcaption {
  margin-top: 8px;
  color: var(--nezumi);
  font-size: 12px;
  line-height: 18px;
}
.cover-creator {
  display: block;
  margin-top: 4px;
}
.product-purchase-copy > :is(.eyebrow, h3, .product-verdict, .product-reference-price) {
  grid-column: 2;
}
.product-purchase-main:not(:has(.product-cover)) .product-purchase-copy > * {
  grid-column: 1;
}
.product-purchase-copy > :is(.purchase-options, .source-link) {
  grid-column: 1 / -1;
}
.product-purchase-copy .eyebrow {
  margin-bottom: 6px;
  color: var(--nezumi);
  letter-spacing: 0.04em;
}
.product-purchase-copy h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 30px;
}
.product-verdict {
  margin-bottom: 18px;
  color: var(--shu-ink);
  font-family: var(--font-heading), var(--font-body);
  font-size: 15px;
  line-height: 24px;
  font-weight: 800;
}
.product-reference-price {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 22px;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
}
.product-reference-price > span {
  display: block;
  margin-bottom: 4px;
  color: var(--nezumi);
  font-size: 12px;
}
.purchase-options {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}
.source-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--nezumi);
  font-size: 12px;
  line-height: 20px;
}
/* ○ 向く人 / △ 確認すること — the marks of a Japanese comparison table */
.product-assessment,
.product-facts {
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 24px;
}
.product-assessment > div,
.product-facts > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.product-assessment dt,
.product-facts dt {
  font-weight: 700;
}
.product-assessment dt::before {
  display: inline-block;
  width: 1.3em;
  color: var(--shu);
  font-weight: 800;
}
.product-assessment > div:nth-child(1) dt::before {
  content: '○';
}
.product-assessment > div:nth-child(2) dt::before {
  content: '△';
}
.product-assessment dd,
.product-facts dd {
  margin: 0;
}
.product-details {
  margin-top: 20px;
  color: var(--nezumi);
  font-size: 13px;
  line-height: 20px;
}
.product-purchase-goods {
  grid-template-columns: minmax(0, 1fr);
}
.product-purchase-goods .product-cover {
  grid-row: auto;
  width: 100%;
  margin-bottom: 20px;
}
.product-purchase-goods .product-cover .product-image {
  width: 100%;
  height: 160px;
}
.product-purchase-goods .product-purchase-copy > * {
  grid-column: 1;
}
.book-format-note {
  margin-top: -24px;
}
:is(.product-details, .faq) summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  list-style: none;
}
:is(.product-details, .faq) summary::after {
  content: '+';
  flex: 0 0 20px;
  font-size: 20px;
  text-align: center;
}
:is(.product-details, .faq) details[open] > summary::after,
.product-details[open] > summary::after {
  content: '−';
}

/* よくある質問: 問 and 答 */
.faq {
  max-width: var(--reading);
  margin: 72px 0;
}
.faq > h2 {
  margin-bottom: 22px;
}
.faq details {
  margin-top: 12px;
  padding: 10px 22px;
  border-radius: 16px;
  background: var(--shiro);
}
.faq summary {
  justify-content: flex-start;
  font-weight: 700;
}
.faq summary::after {
  margin-left: auto;
}
.faq p {
  display: flex;
  gap: 12px;
  margin: 8px 0 12px;
  font-size: 16px;
  line-height: 29px;
}
.faq-mark {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--sumi);
  color: var(--kami);
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}
.faq p .faq-mark {
  background: var(--shu);
  color: var(--shiro);
}
.faq summary .faq-mark {
  margin-top: 0;
}
.article-contact {
  margin: 48px 0 24px;
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- author ---------- */
.author-profile {
  margin-top: 64px;
  padding-top: 8px;
}
.author-profile-heading {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 22px;
}
.author-profile-heading img,
.author-mark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}
.author-mark {
  display: grid;
  place-items: center;
  background: var(--shu);
  color: var(--shiro);
  font-weight: 800;
}
.author-profile h2 {
  font-size: 22px;
  line-height: 34px;
}
.author-profile h2 a {
  text-decoration: none;
}
.author-expertise {
  margin: 8px 0 0;
  color: var(--nezumi);
  font-size: 14px;
  line-height: 24px;
}
.author-bio {
  max-width: var(--reading);
  font-size: 16px;
  line-height: 28px;
}
.author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}
.author-articles-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
}
.author-page {
  padding-block: 48px 96px;
}
.author-page > .author-profile {
  margin-top: 0;
  padding-top: 0;
}
.author-page .section-heading {
  margin-top: 64px;
}
.related-section {
  margin-block: 96px;
}
.article-shell .related-section .post-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ---------- about / policy ---------- */
.about-page {
  padding-block: 48px 96px;
}
.about-hero {
  max-width: 900px;
  margin-bottom: 64px;
}
.about-hero h1 {
  margin-bottom: 26px;
}
.about-hero p:not(.eyebrow),
.policy-section > p {
  max-width: var(--reading);
}
.about-tag {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  margin-bottom: 96px;
}
.about-tag-photo {
  margin: 0;
}
.about-tag-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}
.about-tag h2 {
  margin-bottom: 18px;
}
.about-tag p {
  color: var(--sumi-2);
}
.policy-section {
  margin: 72px 0;
}
.policy-section > h2 {
  margin-bottom: 20px;
}
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.principle-grid li {
  position: relative;
  padding: 28px 28px 30px;
  border-radius: 20px;
  background: var(--shiro);
}
.principle-number {
  color: var(--shu);
  font-family: var(--font-heading), var(--font-body);
  font-size: 20px;
  line-height: 28px;
  font-weight: 800;
}
.principle-grid h3 {
  margin: 18px 0 12px;
  font-size: 18px;
  line-height: 29px;
}
/* the home page's cards have no number above the heading */
.principle-grid h3:first-child {
  margin-top: 0;
}
.principle-grid p {
  margin: 0;
  color: var(--sumi-2);
  font-size: 15px;
  line-height: 27px;
}
.advertising-policy {
  padding: 36px 40px 12px;
  border-radius: 24px;
  background: var(--shiro);
}
.about-page > .button {
  margin-top: 8px;
}

/* ---------- resources (付録) ---------- */
.resources-heading {
  max-width: 820px;
  padding-block: 24px 40px;
}
.resources-heading p:last-of-type {
  color: var(--nezumi);
}
.resource-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 24px;
  font-size: 15px;
  font-weight: 700;
}
.resource-entry {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 56px;
  margin-bottom: 32px;
  padding: 48px;
  border-radius: 24px;
  background: var(--shiro);
}
.resource-preview {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.resource-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.resource-preview-sheet {
  max-width: 390px;
  margin-inline: auto;
  box-shadow: var(--shadow);
}
.resource-details h2 {
  margin-top: 8px;
}
.resource-details > p,
.resource-next > p {
  line-height: 1.9;
}
.resource-format {
  color: var(--nezumi);
  font-size: 13px;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
}
.resource-steps {
  margin-block: 24px;
  padding-left: 1.5em;
  line-height: 1.8;
}
.resource-steps li + li {
  margin-top: 8px;
}
.resource-steps li::marker {
  color: var(--shu);
  font-weight: 700;
}
.resource-details .button {
  text-align: center;
  white-space: normal;
}
.resource-note {
  margin-top: 20px;
  color: var(--nezumi);
  font-size: 13px;
}
.resource-related {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}
.resource-related a {
  line-height: 1.7;
  text-underline-offset: 4px;
}
.editions-group {
  max-width: 820px;
  padding-block: 24px;
  scroll-margin-top: 24px;
}
.editions-list {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.editions-item {
  padding-block: 20px;
  border-top: 1px solid var(--kinari);
}
.editions-item h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}
.editions-item h3 a {
  text-underline-offset: 4px;
}
.editions-versions {
  margin: 4px 0 0;
  color: var(--nezumi);
  font-size: 14px;
}
.editions-versions span {
  display: block;
}
.editions-changes {
  margin: 10px 0 0;
  padding-left: 1.2em;
  font-size: 15px;
  line-height: 1.7;
}
.editions-verdict {
  display: flex;
  gap: 10px;
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.7;
}
.editions-verdict strong {
  flex: none;
  color: var(--shu-ink);
}
.resource-file-list {
  display: grid;
  gap: 4px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.resource-file-list li {
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--kami);
}
.resource-file-list span {
  color: var(--nezumi);
  font-size: 14px;
}
.resource-next {
  max-width: 820px;
  padding-block: 40px 16px;
}
.desk-fit {
  max-width: 920px;
  margin-bottom: 32px;
  padding: 48px;
  border-radius: 24px;
  background: var(--shiro);
}
.desk-fit > p {
  max-width: 720px;
}
.desk-fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  margin-block: 32px;
}
.desk-fit-grid label {
  display: grid;
  align-content: start;
  gap: 6px;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 700;
}
.desk-fit-grid input,
.desk-fit-grid select {
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--usuzumi);
  border-radius: 8px;
  background: var(--shiro);
  font-size: 16px;
  font-weight: 400;
}
.desk-fit-result {
  padding: 24px;
  border-radius: 12px;
  background: var(--washi);
}
.desk-fit-result strong {
  display: block;
  color: var(--shu-ink);
  font-size: 23px;
  line-height: 1.5;
}
.desk-fit-result p {
  margin: 0;
}
.desk-fit .resource-related {
  max-width: 720px;
}
@media (max-width: 760px) {
  .desk-fit {
    padding: 24px;
  }
  .desk-fit-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 404 ---------- */
.not-found {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  padding-block: 96px;
}
.not-found-mark {
  width: 200px;
  color: var(--sumi);
  transform-origin: 50% 22%;
}
.not-found h1 {
  margin-bottom: 20px;
  font-size: 36px;
  line-height: 50px;
}

/* ---------- banners ---------- */
.preview-banner,
.visibility-banner {
  padding: 12px 20px;
  background: var(--ki);
  font-size: 14px;
  line-height: 24px;
  text-align: center;
}
.preview-banner a {
  margin-left: 16px;
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: 96px;
  padding-block: 48px 32px;
  background: var(--shiro);
}
.footer-primary {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}
.footer-primary .brand svg {
  height: 36px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px 24px;
  max-width: 700px;
  font-size: 14px;
  line-height: 22px;
}
.footer-links a {
  text-decoration: none;
}
.footer-bottom {
  color: var(--nezumi);
  font-size: 12px;
  line-height: 18px;
}
.amazon-disclosure {
  margin: 20px 0 0;
  color: var(--nezumi);
  font-size: 12px;
  line-height: 20px;
}

/* ---------- motion ---------- */
:is(.button, .purchase-link, .site-search button, .article-jump-toggle) {
  touch-action: manipulation;
}
/* a hung tag settles: a small swing about its hole, then rest */
@keyframes tag-hang {
  0% {
    opacity: 0;
    transform: rotate(-7deg);
  }
  55% {
    opacity: 1;
    transform: rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes running-head-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}
@media (prefers-reduced-motion: no-preference) {
  :is(.button, .purchase-link, .site-search button):active:not(:focus-visible) {
    transform: scale(0.98);
  }
  :is(.button, .purchase-link, .site-search button):not(:focus-visible) {
    transition:
      transform 140ms var(--ease),
      background-color 160ms var(--ease);
  }
  .running-head.is-stuck .running-head-label {
    animation: running-head-in 220ms var(--ease);
  }
  .site-search-panel:not([hidden]),
  .article-jump-panel:not([hidden]),
  .entry-preview {
    animation: rise-in 160ms var(--ease);
  }
  .thumb-tab {
    transition:
      transform 200ms var(--ease),
      opacity 200ms var(--ease),
      background-color 160ms var(--ease);
  }
  .article-rail-mark {
    transition: transform 140ms var(--ease);
  }
  .article-rail-label {
    transition: opacity 125ms ease;
  }
  .running-head-progress {
    transition: transform 120ms linear;
  }
  @supports (animation-timeline: view()) {
    .not-found-mark {
      animation: tag-hang linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 38%;
    }
  }
}
:is(.button, .purchase-link, .site-search button):focus-visible,
.article-rail-link:focus-visible :is(.article-rail-mark, .article-rail-label) {
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  :is(.button, .purchase-link, .site-search button):active {
    transform: none;
  }
  .article-prose strong.marker-pending {
    background-size: 100% 100%;
  }
}

/* ---------- tablet ---------- */
@media (max-width: 1199px) {
  .header-main {
    flex-wrap: wrap;
    gap: 16px 24px;
    padding-block: 20px;
  }
  .header-search {
    flex: 1 0 100%;
    width: 100%;
  }
  .site-search-header .site-search-panel {
    right: 0;
    left: 0;
    width: auto;
  }
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .field-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .principle-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .legend-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- phone ---------- */
@media (max-width: 767px) {
  .site-header,
  .footer-inner,
  .hero-copy,
  .home-section,
  .library,
  .about-page,
  .author-page,
  .not-found {
    width: calc(100% - 40px);
  }
  body {
    font-size: 17px;
    line-height: 30px;
  }
  h1 {
    font-size: 30px;
    line-height: 44px;
  }
  h2 {
    font-size: 24px;
    line-height: 36px;
  }
  h3 {
    font-size: 19px;
    line-height: 30px;
  }
  .header-main {
    gap: 12px 16px;
    padding-block: 16px;
    min-height: 0;
  }
  .brand svg {
    height: 28px;
  }
  .primary-nav {
    gap: 16px;
    font-size: 13px;
  }
  .site-search-field input {
    font-size: 16px;
  }
  .home-hero {
    display: flex;
    flex-direction: column-reverse;
    gap: 0;
    width: calc(100% - 40px);
    margin-bottom: 48px;
  }
  .hero-object {
    width: 78%;
    margin: 0 auto -24px;
  }
  .hero-copy {
    width: 100%;
    padding-block: 0 8px;
  }
  .hero-wordmark {
    height: 60px;
  }
  .hero-lead {
    margin: 20px 0 24px;
    font-size: 16px;
    line-height: 28px;
  }
  .home-section {
    margin-bottom: 72px;
  }
  .section-heading {
    align-items: end;
    gap: 12px;
    margin-bottom: 22px;
  }
  .section-heading > a {
    font-size: 13px;
  }
  .featured-grid,
  .post-grid,
  .featured-grid-single .post-card-large,
  .article-shell .related-section .post-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .post-card-large h3 {
    font-size: 23px;
    line-height: 35px;
  }
  .post-card h3 {
    font-size: 19px;
    line-height: 30px;
  }
  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .field-tab {
    min-height: 124px;
    padding: 18px 18px 16px;
    border-radius: 16px;
  }
  .field-tab strong {
    font-size: 17px;
    line-height: 26px;
  }
  .field-description {
    display: none;
  }
  .resource-callout {
    display: block;
    padding: 28px 24px;
  }
  .resource-callout .button {
    margin-top: 24px;
  }
  .legend-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .library {
    padding-block: 28px 64px;
  }
  .library-head h1 {
    font-size: 32px;
    line-height: 46px;
  }
  .library-filters {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 22px;
  }
  .results-heading {
    align-items: start;
    gap: 16px;
  }
  .results-heading > a {
    flex-shrink: 0;
    font-size: 12px;
  }
  .reading-paths {
    padding: 22px 16px;
  }
  .article-shell {
    width: calc(100% - 40px);
  }
  .breadcrumb {
    margin-block: 16px 24px;
    font-size: 11px;
    line-height: 18px;
  }
  .article-header h1 {
    font-size: 27px;
    line-height: 40px;
  }
  .title-gloss {
    margin-top: 8px;
    font-size: 18px;
    line-height: 29px;
  }
  .article-description {
    font-size: 15px;
    line-height: 27px;
  }
  .byline {
    font-size: 13px;
  }
  .running-head {
    margin: 16px 0 22px;
  }
  .running-head-bar {
    min-height: 52px;
  }
  .article-cover {
    margin-bottom: 36px;
  }
  .article-cover img,
  .article-upload img {
    border-radius: 10px;
  }
  .article-prose {
    font-size: 17px;
    line-height: 30px;
  }
  .article-prose h2 {
    margin-top: 56px;
    font-size: 23px;
    line-height: 35px;
  }
  .article-prose h3 {
    margin-top: 36px;
    font-size: 19px;
    line-height: 30px;
  }
  .article-prose :is(td, th) {
    padding: 14px 12px !important;
  }
  .article-prose tr > :first-child {
    width: 96px;
    min-width: 96px;
  }
  .article-prose table {
    min-width: 536px;
  }
  .fold-front {
    padding: 24px 20px 26px;
  }
  .takeaway-text {
    font-size: 16px;
    line-height: 28px;
  }
  .intro-purchase-choice {
    grid-template-columns: 76px minmax(0, 1fr);
    padding: 34px 14px 14px;
  }
  .intro-purchase-image img {
    width: 76px;
    height: 100px;
  }
  /* スマートフォンでは横長の画像を上に置き、見出しとボタンに幅を使う */
  .intro-purchase-choice:has(.intro-purchase-image.landscape) {
    grid-template-columns: minmax(0, 1fr);
  }
  .intro-purchase-image.landscape img {
    width: 168px;
    height: auto;
  }
  .intro-purchase-context {
    font-size: 17px;
    line-height: 26px;
  }
  .intro-purchase-amount {
    font-size: 24px;
    line-height: 28px;
  }
  .purchase-card-grid.multiple {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-section,
  .faq {
    margin-block: 56px;
  }
  .product-card {
    padding: 22px;
  }
  .product-assessment > div,
  .product-facts > div {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .author-profile {
    margin-top: 48px;
  }
  .author-profile-heading {
    gap: 18px;
  }
  .author-profile-heading img {
    width: 64px;
    height: 64px;
  }
  .related-section {
    margin-block: 64px;
  }
  .about-page,
  .author-page {
    padding-block: 32px 64px;
  }
  .about-tag {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    margin-bottom: 64px;
  }
  .advertising-policy {
    padding: 26px 22px 6px;
  }
  .resource-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 24px;
  }
  .resource-entry .resource-details {
    order: -1;
  }
  .resource-preview-sheet {
    max-width: 260px;
  }
  .not-found {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-block: 48px;
  }
  .not-found-mark {
    width: 120px;
  }
  .not-found h1 {
    font-size: 26px;
    line-height: 38px;
  }
  .site-footer {
    margin-top: 72px;
    padding-top: 40px;
  }
  .footer-primary {
    display: block;
    margin-bottom: 32px;
  }
  .footer-links {
    justify-content: start;
    gap: 12px 20px;
    margin-top: 28px;
  }
}

.article-summary-video {
  width: 62%;
  max-width: 320px;
  margin: 1.5rem auto;
}
.article-prose .article-summary-video h2 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.article-summary-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
}

@media (max-width: 480px) {
  /* 説明は画像の横、購入先は両列の下。広い画面のDOMと配置は保つ。 */
  .intro-purchase-choice {
    row-gap: 0;
  }
  .intro-purchase-image {
    grid-row: 1 / span 2;
  }
  .intro-purchase-copy {
    display: contents;
  }
  .intro-purchase-copy > :is(.intro-purchase-context, .intro-purchase-name) {
    grid-column: 2;
  }
  .intro-purchase-copy > :is(.purchase-link, .intro-purchase-details) {
    grid-column: 1 / -1;
  }
  .intro-purchase-choice:not(:has(.intro-purchase-image)) .intro-purchase-copy > *,
  .intro-purchase-choice:has(.intro-purchase-image.landscape) .intro-purchase-copy > * {
    grid-column: 1;
  }
  .intro-purchase-image.landscape {
    grid-row: auto;
    margin-bottom: 16px;
  }
  .intro-purchase-copy > .purchase-link {
    margin-top: 12px;
  }
}

/* One shop at the decision point; reuse the existing purchase button. */
.article-prose .inline-purchase {
  display: grid;
  gap: 8px;
  max-width: 420px;
  margin: 24px 0;
}
.inline-purchase-name {
  color: var(--nezumi);
  font-size: 13px;
  line-height: 20px;
}
.article-prose .inline-purchase .purchase-link,
.article-prose .inline-purchase .moshimo-ad > a {
  color: var(--shiro);
  text-decoration: none;
}
.article-prose .inline-purchase-details {
  width: fit-content;
  font-size: 12px;
  line-height: 20px;
}

.article-prose .inline-purchase .purchase-label strong {
  background-image: none;
}
