/* むらむらぼ — 方眼ノートの実験ラボ */

:root {
  --paper: #f5f6fb;
  --surface: #ffffff;
  --ink: #1c2240;
  --muted: #5a6182;
  --line: #d8dcea;
  --grid: rgba(48, 66, 128, 0.07);
  --pink: #d92b66;
  --pink-ink: #b51d52;
  --pink-soft: #fde6ee;
  --focus: #2f5bd3;
  --radius-s: 6px;
  --radius-l: 14px;
  /* 本文は端末に入っている日本語フォントを使う（Webフォントを読み込まないので表示が速い） */
  --font-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "BIZ UDPGothic", Meiryo, sans-serif;
  --font-display: "Dela Gothic One", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #161a2c;
    --surface: #1e2339;
    --ink: #eceef8;
    --muted: #a3a9c4;
    --line: #30365a;
    --grid: rgba(255, 255, 255, 0.04);
    --pink: #ff5a8c;
    --pink-ink: #ff7aa2;
    --pink-soft: #3a1f33;
    --focus: #8ba8ff;
    color-scheme: dark;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt" 0;
  overflow-wrap: anywhere;
}

html.agegate-open body { overflow: hidden; }

a { color: var(--pink-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: var(--radius-s);
}
.skip:focus { top: 12px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 720px; }

/* ---------- PR表記・ヘッダー ---------- */

.pr-bar {
  margin: 0; padding: 4px 16px; text-align: center;
  font-size: 12px; line-height: 1.6; color: var(--muted);
  background: var(--surface); border-bottom: 1px solid var(--line);
}

.site-header { border-bottom: 2px solid var(--ink); background: var(--paper); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px;
}

.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.logo__mark { width: 30px; height: 30px; color: var(--ink); }
.logo__liquid { fill: var(--pink); }
.logo__text { font-family: var(--font-display); font-size: 24px; letter-spacing: 0.02em; line-height: 1; }

.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 6px 12px; border-radius: 999px;
}
.site-nav a:hover { background: var(--pink-soft); }
.site-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* ---------- ボタン ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 22px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1.4;
  text-decoration: none; cursor: pointer; border: 2px solid var(--ink);
}
.btn--primary { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn--primary:hover { background: var(--pink-ink); border-color: var(--pink-ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--surface); }

/* ---------- ヒーロー ---------- */

.hero { padding: 56px 0 64px; border-bottom: 1px solid var(--line); }
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 48px; align-items: center;
}
.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(34px, 5.6vw, 60px); line-height: 1.25; letter-spacing: 0.01em;
  margin: 0 0 20px;
}
.hero__lead { font-size: 17px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 採点カード（サイトの象徴） */
.scorecard {
  margin: 0; background: var(--surface); border: 2px solid var(--ink);
  border-radius: var(--radius-l); padding: 22px 24px 24px;
  box-shadow: 8px 8px 0 var(--ink);
}
.scorecard__cap {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-weight: 700; font-size: 14px; padding-bottom: 12px; border-bottom: 1px dashed var(--line);
}
.scorecard__cap span { font-weight: 500; font-size: 12px; color: var(--muted); }
.scorecard__total { display: flex; align-items: baseline; gap: 4px; margin: 14px 0 10px; }
.scorecard__num { font-family: var(--font-display); font-size: 84px; line-height: 1; color: var(--pink); }
.scorecard__unit { font-weight: 700; font-size: 18px; }
.scorecard__axes { margin: 0; display: grid; gap: 10px; }
.axis { display: grid; grid-template-columns: 4.5em 1fr; align-items: center; gap: 10px; }
.axis dt { font-weight: 700; font-size: 14px; }
.axis dd { margin: 0; display: grid; grid-template-columns: 1fr 2.2em; align-items: center; gap: 10px; }
.axis b { font-variant-numeric: tabular-nums; text-align: right; font-size: 15px; }
.bar {
  position: relative; display: block; height: 10px; border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--line) calc(10% - 1px) 10%),
    var(--paper);
  border: 1px solid var(--line); overflow: hidden;
}
.bar::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%);
  background: var(--ink); border-radius: 999px;
  transform-origin: left; animation: fill 0.9s cubic-bezier(.2,.7,.2,1) 0.2s both;
}
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- セクション ---------- */

.section { padding: 56px 0; }
.section--tint { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__title, .page-title {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.35; margin: 0 0 8px;
}
.section__lead { color: var(--muted); margin: 0 0 28px; max-width: 40em; }
.section__more { margin: 24px 0 0; font-weight: 700; }

.measures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.measure { padding: 18px 20px 4px 0; }
.measure + .measure { padding-left: 20px; border-left: 1px solid var(--line); }
.measure h3 { margin: 0 0 6px; font-size: 20px; }
.measure p { margin: 0; color: var(--muted); font-size: 15px; }

.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.guide-item a {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 24px;
  padding: 18px 20px; background: var(--paper); border: 1px solid var(--line);
  border-left: 4px solid var(--pink); border-radius: var(--radius-s);
  color: var(--ink); text-decoration: none;
}
.section:not(.section--tint) .guide-item a { background: var(--surface); }
.guide-item a:hover { border-color: var(--ink); border-left-color: var(--pink); }
.guide-item h2, .guide-item h3 { margin: 0; font-size: 18px; line-height: 1.5; grid-column: 1; }
.guide-item p { margin: 0; color: var(--muted); font-size: 15px; grid-column: 1; }
.guide-item time { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 13px; color: var(--muted); white-space: nowrap; }

.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.promise { padding: 20px 0 0; border-top: 2px solid var(--ink); }
.promise h3 { margin: 0 0 6px; font-size: 18px; }
.promise p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- 記事 ---------- */

.article { padding: 32px 0 64px; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.article__head { padding-bottom: 20px; border-bottom: 2px solid var(--ink); margin-bottom: 28px; }
.article__head h1 { font-size: clamp(25px, 3.6vw, 32px); line-height: 1.45; margin: 0 0 12px; }
.article__lead { margin: 0 0 12px; font-size: 17px; color: var(--muted); }
.article__meta { margin: 0; display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 16px 20px; margin-bottom: 32px; }
.toc h2 { font-size: 15px; margin: 0 0 6px; }
.toc ol { margin: 0; padding-left: 1.4em; }
.toc li { font-size: 15px; }

.prose { font-size: 17px; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  font-size: 23px; line-height: 1.5; margin: 48px 0 16px; padding-left: 14px;
  border-left: 6px solid var(--pink);
}
.prose h3 { font-size: 19px; margin: 32px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose li { margin-bottom: 4px; }
.prose strong { background: linear-gradient(transparent 62%, var(--pink-soft) 62%); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface); white-space: nowrap; }
.prose td.num, .prose th.num { text-align: right; font-variant-numeric: tabular-nums; }
.prose blockquote, .note {
  margin: 0 0 22px; padding: 14px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-s); font-size: 15px;
}
.prose blockquote p:last-child, .note p:last-child { margin-bottom: 0; }
.prose code { font-size: 0.9em; background: var(--surface); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; }
.formula {
  margin: 0 0 22px; padding: 16px 18px; background: var(--ink); color: var(--paper);
  border-radius: var(--radius-s); font-weight: 700; text-align: center; line-height: 1.7;
}

/* 計算ツール */
.calc { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-l); padding: 20px; margin: 0 0 24px; }
.calc__row { display: grid; grid-template-columns: 1fr 9em; gap: 12px; align-items: center; margin-bottom: 12px; }
.calc label { font-weight: 700; font-size: 15px; }
.calc input {
  width: 100%; min-height: 44px; font: inherit; font-size: 17px; text-align: right;
  padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--paper); color: var(--ink);
}
.calc__result { margin: 8px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 16px; }
.calc__result b { font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--pink); }

.related { margin-top: 48px; padding-top: 20px; border-top: 2px solid var(--ink); }
.related h2 { font-size: 18px; margin: 0 0 8px; }
.related ul { margin: 0; padding-left: 1.2em; }

.notfound { text-align: center; }
.notfound__code { font-family: var(--font-display); font-size: 96px; line-height: 1; margin: 16px 0 8px; color: var(--pink); }
.notfound .hero__actions { justify-content: center; margin-top: 24px; }

/* ---------- フッター ---------- */

.site-footer { border-top: 2px solid var(--ink); background: var(--surface); padding: 36px 0 28px; font-size: 14px; }
.site-footer__brand p { margin: 6px 0 0; color: var(--muted); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 20px 0; }
.site-footer__nav a { color: var(--ink); font-weight: 500; }
.site-footer__notes { color: var(--muted); font-size: 13px; }
.site-footer__notes p { margin: 0 0 4px; }
.site-footer__copy { margin: 16px 0 0; color: var(--muted); font-size: 12px; }

/* ---------- 年齢確認 ---------- */

.agegate {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.agegate[hidden] { display: none; }
.agegate__box {
  width: 100%; max-width: 440px; background: var(--surface); border: 2px solid var(--ink);
  border-radius: var(--radius-l); padding: 28px 24px; text-align: center; box-shadow: 8px 8px 0 var(--ink);
}
.agegate__logo { font-family: var(--font-display); font-size: 26px; margin: 0 0 10px; }
.agegate__box h2 { font-size: 20px; margin: 0 0 8px; }
.agegate__box p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.agegate__actions { display: grid; gap: 10px; }

/* ---------- スマホ ---------- */

@media (max-width: 860px) {
  .hero { padding: 36px 0 44px; }
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .measures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .measure:nth-child(3) { padding-left: 0; border-left: 0; }
  .measure:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 14px; }
  .promises { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .logo__text { font-size: 21px; }
  .site-nav a { padding: 5px 10px; font-size: 14px; }
  .measures { grid-template-columns: 1fr; }
  .measure, .measure + .measure { padding: 16px 0 0; border-left: 0; }
  .measure + .measure { border-top: 1px solid var(--line); margin-top: 14px; }
  .guide-item a { grid-template-columns: 1fr; }
  .guide-item time { grid-column: 1; grid-row: auto; }
  .scorecard { box-shadow: 5px 5px 0 var(--ink); }
  .calc__row { grid-template-columns: 1fr; gap: 4px; }
  .prose { font-size: 16px; }
  .prose table { -webkit-overflow-scrolling: touch; }
  .prose th, .prose td { min-width: 7.5em; padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .bar::after { animation: none; }
}

/* ---------- 作品ページ ---------- */

.draft-banner {
  margin: 0 0 20px; padding: 10px 14px; border: 2px dashed var(--pink); border-radius: var(--radius-s);
  background: var(--pink-soft); font-weight: 700; font-size: 14px;
}
.item { padding: 24px 0 64px; }
.item__head { margin-bottom: 24px; }
.item__badges { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.badge {
  display: inline-block; padding: 2px 10px; border: 1px solid var(--ink); border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 1.6; background: var(--surface);
}
.badge--ink { background: var(--ink); color: var(--paper); }
.item__title { font-size: clamp(22px, 3.2vw, 30px); line-height: 1.5; margin: 0 0 6px; }
.placeholder {
  display: inline-block; padding: 2px 10px; border: 1px dashed var(--muted); border-radius: var(--radius-s);
  color: var(--muted); font-weight: 500; font-size: 0.8em;
}
.item__product { margin: 0 0 8px; font-weight: 700; color: var(--pink-ink); }
.item__meta { margin: 0; display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }

.item__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; margin-bottom: 40px; }
.item__image {
  aspect-ratio: 3 / 2; display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(45deg, var(--surface) 0 12px, var(--paper) 12px 24px);
  border: 1px solid var(--line); border-radius: var(--radius-l); color: var(--muted); font-size: 14px;
}
.item__buy { margin-top: 16px; }
.item__price { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 10px; }
.item__price span { color: var(--muted); font-size: 14px; }
.item__price b { font-family: var(--font-display); font-weight: 400; font-size: 28px; }
.btn--block { width: 100%; }
.btn.is-disabled { opacity: 0.45; cursor: not-allowed; }
.item__buy-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.scorecard--item .scorecard__num { font-size: 96px; }
.scorecard__rank { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); font-weight: 700; font-size: 14px; }

.item__body { margin: 0 auto; }
.summary {
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-l);
  padding: 18px 22px; margin-bottom: 40px;
}
.summary h2 { font-size: 19px; margin: 0 0 8px; }
.summary ul { margin: 0; padding-left: 1.2em; }
.summary li { margin-bottom: 6px; }
.item-section { margin-bottom: 44px; }
.item-section > h2 {
  font-size: 22px; line-height: 1.5; margin: 0 0 14px; padding-left: 14px; border-left: 6px solid var(--pink);
}
.item-section table { width: 100%; border-collapse: collapse; font-size: 15px; }
.item-section th, .item-section td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.item-section thead th { background: var(--surface); white-space: nowrap; font-size: 13px; }
.item-section tbody th { white-space: nowrap; }
.item-section .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.specs th { width: 9em; background: var(--surface); }
.verdict { margin-top: 14px; }
.verdict p { margin: 0 0 8px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare tr.is-current { background: var(--pink-soft); }
.compare__name { min-width: 11em; white-space: normal !important; }
.compare__name small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.compare .here { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; background: var(--pink); color: #fff; font-size: 11px; vertical-align: 1px; }
.faq h3 { font-size: 17px; margin: 18px 0 4px; }
.faq h3::before { content: "Q. "; color: var(--pink-ink); }
.faq p { margin: 0; }
.note--empty { color: var(--muted); }
.checklist { margin: 0; padding-left: 1.2em; }
.checklist li { margin-bottom: 8px; }
.item__source { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }

@media (max-width: 860px) {
  .item__top { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 520px) {
  .item-section th, .item-section td { padding: 8px; font-size: 14px; }
  .specs th { width: 6.5em; }
  .breakdown thead th:nth-child(4), .breakdown td:nth-child(4) { display: none; }
}

/* ---------- 作品ページ：追加セクション ---------- */

.sample-tag {
  display: inline-block; margin-left: 8px; padding: 0 7px; border-radius: 4px;
  background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 700; line-height: 1.7;
  vertical-align: 2px; letter-spacing: 0.04em;
}
.item-section h3.sub { font-size: 17px; margin: 26px 0 10px; }
.item-section > h2 + h3.sub { margin-top: 4px; }
.stat-line { margin: 0 0 12px; }
.stat-line b { font-size: 20px; }
.fine { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.trends { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.trend { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 16px; }
.trend h4 { margin: 0 0 6px; font-size: 15px; }
.trend ul { margin: 0; padding-left: 1.2em; font-size: 15px; }
.trend--good { border-top: 4px solid var(--ink); }
.trend--bad { border-top: 4px solid var(--pink); }
.xposts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.xpost-placeholder {
  display: grid; place-items: center; min-height: 160px; padding: 16px; text-align: center;
  border: 1px dashed var(--muted); border-radius: var(--radius-l); background: var(--surface);
  font-weight: 700; font-size: 15px; color: var(--muted);
}
.xpost-placeholder small { font-weight: 500; font-size: 12px; }
.xposts .twitter-tweet { margin: 0 !important; }

.buy-chip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 12px;
  padding: 8px 12px; border-radius: var(--radius-s); font-size: 14px; background: var(--surface); border: 1px solid var(--line);
}
.buy-chip b { font-size: 16px; }
.buy-chip a { margin-left: auto; font-size: 13px; }
.buy-chip--wait { border-left: 5px solid var(--pink); }
.buy-chip--buy { border-left: 5px solid var(--ink); }
.buy-box { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-l); padding: 16px 20px; margin-bottom: 16px; }
.buy-box p { margin: 0 0 6px; }
.buy-box p:last-child { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.buy-box__verdict { font-size: 15px; }
.buy-box__verdict b { font-family: var(--font-display); font-weight: 400; font-size: 26px; margin-left: 4px; }
.buy-box--wait .buy-box__verdict b { color: var(--pink-ink); }

.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chart-box { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px 6px; }
.chart-box figcaption { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart__grid { stroke: var(--line); stroke-width: 1; }
.chart__tick { fill: var(--muted); font-size: 12px; font-family: var(--font-body); }
.chart__line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart__dot { fill: var(--pink); stroke: var(--surface); stroke-width: 2; }
.chart__end { fill: var(--ink); font-size: 13px; font-weight: 700; font-family: var(--font-body); }
.chart__hit { fill: transparent; cursor: default; }
.chart__hit:hover { fill: color-mix(in srgb, var(--pink) 18%, transparent); }
.chart-table { margin-top: 10px; font-size: 14px; }
.chart-table summary { cursor: pointer; font-weight: 700; color: var(--pink-ink); }
.chart-table table { margin-top: 8px; }
.verdict-inline { margin: 10px 0 0; }

.tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.sample-movie {
  aspect-ratio: 16 / 9; display: grid; place-items: center; margin-bottom: 12px; border-radius: var(--radius-l);
  background: var(--ink); color: var(--paper); font-size: 14px; text-align: center; padding: 16px;
}
.sample-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sample-thumb {
  aspect-ratio: 3 / 2; display: grid; place-items: center; border-radius: var(--radius-s); font-size: 12px; color: var(--muted);
  background: repeating-linear-gradient(45deg, var(--surface) 0 10px, var(--paper) 10px 20px); border: 1px solid var(--line);
}
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.related-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.related-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.related-list b { font-variant-numeric: tabular-nums; }
.item .toc { margin-bottom: 40px; }

@media (max-width: 640px) {
  .trends, .xposts, .charts, .related-grid { grid-template-columns: 1fr; }
  .sample-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 作品カード・一覧 ---------- */

.day-group { margin-top: 32px; }
.day-group__title { display: flex; align-items: baseline; gap: 10px; font-size: 20px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.day-group__title span { font-size: 14px; color: var(--muted); font-weight: 500; }
.icards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.icard__link {
  display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: start;
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s);
  color: var(--ink); text-decoration: none;
}
.icard__link:hover { border-color: var(--ink); }
.icard__score { text-align: center; padding-top: 2px; }
.icard__score b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1; color: var(--pink); }
.icard__score span { font-size: 12px; font-weight: 700; }
.icard__badges { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 4px; }
.icard__badges .badge { font-size: 11px; padding: 0 8px; }
.icard__name { margin: 0 0 4px; font-size: 16px; line-height: 1.5; }
.icard__meta, .icard__axes { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; color: var(--muted); }
.icard__axes { margin-top: 4px; color: var(--ink); }
.icard__axes b { font-variant-numeric: tabular-nums; }
.icard__code { font-size: 12px; }
.icard__buy { display: inline-block; margin: 8px 0 0; padding: 1px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--paper); border: 1px solid var(--line); }
.icard__buy--wait { border-color: var(--pink); color: var(--pink-ink); }
@media (max-width: 520px) {
  .icard__link { grid-template-columns: 60px 1fr; gap: 12px; }
  .icard__score b { font-size: 32px; }
}

.preview-bar { margin: 0; padding: 6px 16px; text-align: center; font-size: 13px; font-weight: 700; background: var(--pink); color: #fff; }
