/* =========================================================
   ヒゲ脱毛 実数記録 — スタイルシート（メンズ誌エディトリアル）
   方針：大きなビジュアルとタイポグラフィで読ませる誌面。
         「実数記録」らしさ＝記録票・回数券・スタンプ・連載番号を意匠にする。
   1. トークン  2. ベース  3. 共通部品  4. マストヘッド／フッター
   5. 表紙  6. 連載ストリップ  7. 特集の棚  8. 記録票（カルテ）
   9. 回数券カード  10. 記事ページ  11. 本文・図版・表  12. 写真ブロック
   13. 一覧・固定ページ  14. ユーティリティ
   ========================================================= */

/* ---------- 1. トークン ---------- */
:root {
  /* 色：白と紙色の地 × ディープネイビー。ティールは第二色、マスタードはアクセント1色（小さな印だけ） */
  --c-bg: #ffffff;
  --c-paper: #f4f0e8;
  --c-paper-2: #ebe5d9;
  --c-ink: #121a23;
  --c-text: #26303a;
  --c-muted: #5b6570;
  --c-line: #d9dde1;
  --c-line-paper: #d6cfc1;
  --c-navy: #13365a;
  --c-navy-deep: #0c2238;
  --c-teal: #0e7c78;
  --c-teal-soft: #e3efee;
  --c-mustard: #d9a441;

  /* 書体 */
  --f-sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --f-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-en: "Oswald", "Noto Sans JP", sans-serif;

  /* 文字サイズ（モバイル基準 → 768px 以上で上書き） */
  --fs-en: 0.75rem;     /* 英字ラベル */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-h3: 1.25rem;
  --fs-h2: 1.5rem;
  --fs-h1: 1.875rem;
  --fs-sec: 1.75rem;    /* セクション見出し */
  --fs-cover: 2.25rem;  /* 表紙の見出し */
  --lh-body: 1.9;

  /* 余白 */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --band: 72px;

  /* 幅 */
  --w-text: 760px;
  --w-wide: 1200px;
  --gutter: 20px;
  --radius: 2px;
  --rule: 1px solid var(--c-line);
  --rule-ink: 1px solid var(--c-ink);
}
@media (min-width: 768px) {
  :root {
    --fs-base: 1.0625rem;
    --fs-h3: 1.375rem;
    --fs-h2: 1.875rem;
    --fs-h1: 2.5rem;
    --fs-sec: 2.5rem;
    --fs-cover: 3.5rem;
    --gutter: 40px;
    --band: 112px;
  }
}

/* ---------- 2. ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--s5); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font-family: var(--f-sans); font-size: var(--fs-base); line-height: var(--lh-body); letter-spacing: 0.03em; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
h1, h2, h3, h4 { margin: 0; color: var(--c-ink); }
p, ul, ol, dl, figure, blockquote { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--c-navy); text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
a:hover { color: var(--c-teal); }
:focus-visible { outline: 2px solid var(--c-teal); outline-offset: 2px; }
small { font-size: inherit; }
.skip-link { position: absolute; left: var(--s4); top: -100px; background: var(--c-ink); color: #fff; padding: var(--s2) var(--s4); z-index: 100; }
.skip-link:focus { top: var(--s2); color: #fff; }

/* ---------- 3. 共通部品 ---------- */
.container { width: 100%; max-width: calc(var(--w-wide) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--text { max-width: calc(var(--w-text) + var(--gutter) * 2); }
main { display: block; }
.band { padding: var(--band) 0; }
.band--paper { background: var(--c-paper); }

/* セクション見出し：英字ラベル＋日本語見出しの二段 */
.sec-head { margin-bottom: var(--s7); max-width: 44em; }
.sec-head__en { display: flex; align-items: center; gap: var(--s3); font-family: var(--f-en); font-size: var(--fs-en); font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--c-teal); line-height: 1.4; }
.sec-head__en::before { content: ""; width: 28px; height: 2px; background: var(--c-mustard); }
.sec-head__ja { margin-top: var(--s3); font-family: var(--f-serif); font-weight: 900; font-size: var(--fs-sec); line-height: 1.35; letter-spacing: 0.04em; }
.sec-head__lead { margin-top: var(--s4); color: var(--c-muted); font-size: var(--fs-sm); line-height: 1.9; }
.sec-head--sm { margin-bottom: var(--s5); }
.sec-head--sm .sec-head__ja { font-size: var(--fs-h3); }

.eyebrow-en { font-family: var(--f-en); font-size: var(--fs-en); font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--c-teal); }

.label { display: inline-block; font-family: var(--f-en); font-size: 0.6875rem; font-weight: 500; line-height: 1; letter-spacing: 0.16em; color: #fff; background: var(--c-navy); padding: 4px 7px 3px 8px; text-transform: uppercase; }

/* 記録 No. のバッジ（スタンプ風） */
.badge-rec { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; flex: none; min-width: 64px; padding: 6px 10px 5px; border: 2px solid var(--c-navy); color: var(--c-navy); font-family: var(--f-en); font-weight: 600; font-size: 1.375rem; line-height: 1; letter-spacing: 0.02em; background: var(--c-bg); position: relative; }
.badge-rec small { font-family: var(--f-sans); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.2em; margin-bottom: 4px; }
.badge-rec::after { content: ""; position: absolute; inset: 2px; border: 1px solid var(--c-navy); opacity: .35; pointer-events: none; }
.badge-rec--sm { min-width: 0; flex-direction: row; gap: 6px; font-size: 0.875rem; padding: 3px 7px 2px; border-width: 1.5px; }
.badge-rec--sm small { margin: 0; font-size: 0.625rem; letter-spacing: 0.1em; }
.badge-rec--sm::after { display: none; }

.text-link { font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0.06em; }
.text-link::after { content: "  →"; }
.more-link { margin-top: var(--s5); text-align: right; }
.note { font-size: var(--fs-xs); line-height: 1.85; color: var(--c-muted); }

/* PR表記（常に見える位置・十分なコントラストで） */
.pr-bar { background: var(--c-ink); color: #e9edf1; font-size: var(--fs-xs); line-height: 1.6; padding: var(--s2) 0; }
.pr-bar a { color: #fff; margin-left: var(--s2); display: inline-block; padding: 6px 0; margin-block: -6px; }
.pr-badge { display: inline-block; flex: none; font-family: var(--f-en); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; line-height: 1; border: 1px solid currentColor; padding: 3px 5px 2px; margin-right: var(--s2); vertical-align: 1px; }

/* ---------- 4. マストヘッド／フッター ---------- */
.masthead { background: var(--c-bg); }
.masthead__strip { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s3) 0; border-bottom: var(--rule-ink); font-family: var(--f-en); font-size: var(--fs-en); letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-ink); }
.masthead__issue { font-family: var(--f-sans); letter-spacing: 0.08em; text-transform: none; color: var(--c-muted); }
.masthead__logo { display: flex; flex-direction: column; align-items: center; padding: var(--s6) 0 var(--s5); text-decoration: none; color: var(--c-ink); }
.masthead__logo:hover { color: var(--c-ink); }
.masthead__pre { font-weight: 700; font-size: clamp(0.875rem, 1.4vw, 1.125rem); letter-spacing: 0.6em; padding-left: 0.6em; color: var(--c-navy); }
.masthead__name { font-family: var(--f-serif); font-weight: 900; font-size: clamp(3.25rem, 10vw, 7.5rem); line-height: 1.05; letter-spacing: 0.08em; padding-left: 0.08em; margin-top: var(--s2); }
.masthead__en { font-family: var(--f-en); font-size: var(--fs-en); letter-spacing: 0.42em; text-transform: uppercase; color: var(--c-muted); margin-top: var(--s3); padding-left: 0.42em; }
.gnav { border-top: 3px double var(--c-ink); border-bottom: var(--rule-ink); }
.gnav ul { list-style: none; display: flex; justify-content: center; gap: 0 var(--s6); overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.gnav ul::-webkit-scrollbar { display: none; }
.gnav a { display: block; padding: var(--s3) 0; font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0.1em; color: var(--c-ink); text-decoration: none; border-bottom: 2px solid transparent; }
.gnav a:hover, .gnav a[aria-current="page"] { border-bottom-color: var(--c-mustard); color: var(--c-ink); }
@media (max-width: 767px) { .gnav ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--s3); white-space: normal; overflow: visible; } .gnav li { text-align: center; } .gnav a { padding: var(--s3) 0; min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: 0.8125rem; letter-spacing: 0.06em; } }

.masthead--compact .masthead__strip { display: none; }
.masthead--compact .masthead__logo { flex-direction: row; align-items: baseline; justify-content: center; gap: var(--s3); padding: var(--s4) 0; }
.masthead--compact .masthead__pre { font-size: var(--fs-xs); letter-spacing: 0.3em; }
.masthead--compact .masthead__name { font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 0; }
.masthead--compact .masthead__en { display: none; }
.masthead--compact .gnav { border-top-width: 1px; border-top-style: solid; }

.site-footer { background: var(--c-navy-deep); color: #b9c6d3; font-size: var(--fs-xs); line-height: 1.9; padding: var(--s8) 0 var(--s6); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer__top { display: grid; gap: var(--s6); padding-bottom: var(--s6); border-bottom: 1px solid rgba(255,255,255,.18); }
@media (min-width: 768px) { .site-footer__top { grid-template-columns: 1.3fr 1fr; gap: var(--s8); } }
.masthead__logo--footer { align-items: flex-start; padding: 0 0 var(--s4); color: #fff; }
.masthead__logo--footer:hover { color: #fff; }
.masthead__logo--footer .masthead__pre { color: #b9c6d3; font-size: var(--fs-xs); }
.masthead__logo--footer .masthead__name { font-size: 2.25rem; }
.site-footer__brand p { max-width: 32em; }
.site-footer__nav ul { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s5); }
.site-footer__nav a { display: block; padding: 10px 0; }
.copy { padding-top: var(--s5); font-family: var(--f-en); letter-spacing: 0.14em; }

/* ---------- 5. 表紙 ---------- */
.cover { background: var(--c-teal-soft); border-bottom: var(--rule-ink); overflow: hidden; }
.cover__inner { display: grid; gap: var(--s6); padding-top: var(--s7); padding-bottom: var(--s7); }
@media (min-width: 1024px) {
  .cover__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); align-items: center; padding-top: var(--s8); padding-bottom: var(--s8); }
}
.cover__title { margin-top: var(--s4); font-family: var(--f-serif); font-weight: 900; font-size: var(--fs-cover); line-height: 1.3; letter-spacing: 0.04em; color: var(--c-ink); }
.cover__lead { margin-top: var(--s5); font-size: var(--fs-sm); line-height: 2; }
.coverlines { list-style: none; padding: 0; margin-top: var(--s6); border-top: var(--rule-ink); }
.coverlines a { display: grid; grid-template-columns: 2.6em minmax(0, 1fr); gap: 0 var(--s3); padding: var(--s3) 0; border-bottom: 1px solid rgba(18,26,35,.2); color: var(--c-ink); text-decoration: none; }
.coverlines__no { grid-row: span 2; font-family: var(--f-en); font-size: 1.75rem; font-weight: 500; line-height: 1.1; color: var(--c-teal); }
.coverlines__title { font-family: var(--f-serif); font-weight: 900; font-size: var(--fs-md); letter-spacing: 0.06em; line-height: 1.5; }
.coverlines__lead { font-size: var(--fs-xs); color: var(--c-muted); line-height: 1.7; }
.coverlines a:hover .coverlines__title { text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
.cover__visual { position: relative; margin-right: calc(var(--gutter) * -1); }
@media (min-width: 1024px) { .cover__visual { margin-right: calc((100vw - min(100vw, calc(var(--w-wide) + var(--gutter) * 2))) / -2 - var(--gutter)); } }
.cover__visual img { display: block; width: 100%; height: auto; background: #fff; border: var(--rule-ink); border-right: 0; }
.cover__seal { position: absolute; left: -18px; top: -18px; width: 108px; height: 108px; border-radius: 50%; background: var(--c-navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-10deg); box-shadow: 0 0 0 4px var(--c-teal-soft), 0 0 0 5px var(--c-navy); text-align: center; line-height: 1.1; }
.cover__seal span { font-family: var(--f-en); font-size: 0.625rem; letter-spacing: 0.2em; text-transform: uppercase; }
.cover__seal span:last-child { font-family: var(--f-sans); letter-spacing: 0.08em; font-size: 0.6875rem; color: var(--c-mustard); margin-top: 4px; }
.cover__seal b { font-family: var(--f-en); font-weight: 600; font-size: 1.75rem; letter-spacing: 0.02em; margin-top: 2px; }
@media (max-width: 1023px) { .cover__seal { left: auto; right: 12px; top: -24px; width: 92px; height: 92px; } .cover__seal b { font-size: 1.5rem; } }

/* ---------- 6. 連載ストリップ ---------- */
.strip { --slots: 18; }
.strip__slots, .strip__row { display: grid; grid-template-columns: repeat(var(--slots), minmax(0, 1fr)); gap: 4px; }
.strip__slots { list-style: none; padding: 0; }
.strip__slot { position: relative; aspect-ratio: 3 / 4; display: flex; }
.strip__slot > * { flex: 1; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12%; font-family: var(--f-en); font-weight: 500; font-size: clamp(0.6875rem, 1.6vw, 1.125rem); line-height: 1; text-decoration: none; border: 1.5px solid var(--c-navy); }
.strip__slot.is-done > * { background: var(--c-navy); color: #fff; }
.strip__slot.is-owned > * { border-style: dashed; color: var(--c-navy); background: transparent; }
.strip__slot.has-record > * { background: var(--c-mustard); color: var(--c-ink); border-color: var(--c-ink); }
.strip__slot.has-record a:hover { background: var(--c-ink); color: #fff; }
.strip__slot.has-record::before { content: "記録"; position: absolute; top: -1.6em; left: 50%; transform: translateX(-50%); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em; color: var(--c-ink); white-space: nowrap; }
.strip__row { margin-top: var(--s2); font-size: var(--fs-xs); line-height: 1.5; }
.strip__courses span { border-top: 2px solid var(--c-navy); padding-top: 6px; color: var(--c-ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip__cream span { background: var(--c-teal-soft); border-left: 3px solid var(--c-teal); padding: 4px 8px; color: var(--c-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip__cream span.is-none { background: transparent; border-left-color: var(--c-line-paper); color: var(--c-muted); }
.strip__axis { margin-top: var(--s3); display: flex; justify-content: space-between; gap: var(--s4); font-size: var(--fs-xs); color: var(--c-muted); }
.strip__legend { list-style: none; padding: 0; margin-top: var(--s4); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: var(--fs-xs); color: var(--c-muted); }
.strip__legend li { display: flex; align-items: center; gap: var(--s2); }
.strip__legend i { width: 14px; height: 18px; border: 1.5px solid var(--c-navy); }
.strip__legend i.is-done { background: var(--c-navy); }
.strip__legend i.is-owned { border-style: dashed; }
.strip__legend i.has-record { background: var(--c-mustard); border-color: var(--c-ink); }
@media (max-width: 599px) { .strip__slot.has-record::before { display: none; } .strip__courses span, .strip__cream span { font-size: 0.625rem; } }

/* 通院の経過：受けた回のスタンプ（.strip--stamps）。他の図版の .strip（回数券型）はそのまま */
.strip--stamps .strip__slots { gap: 6px; }
.strip--stamps .strip__slot { aspect-ratio: 1; }
.strip--stamps:not(.strip--detail) .strip__slot { aspect-ratio: auto; flex-direction: column; gap: 4px; }
.strip--stamps:not(.strip--detail) .strip__slot > a, .strip--stamps:not(.strip--detail) .strip__slot > span { flex: none; aspect-ratio: 1; }
.strip--stamps .strip__slot > .strip__date { flex: none; display: block; padding: 0; border: 0 !important; border-radius: 0; background: none !important; box-shadow: none !important; transform: none !important; text-decoration: none !important; font-family: var(--f-en); font-weight: 400; font-size: clamp(0.6875rem, 1vw, 0.75rem); line-height: 1.25; color: var(--c-muted); text-align: center; letter-spacing: 0; white-space: nowrap; }
.strip--stamps .strip__date i { display: block; font-style: normal; color: var(--c-ink); font-weight: 500; min-height: 1.25em; }
.strip__source { margin-top: var(--s2); font-size: var(--fs-xs); color: var(--c-muted); }
.strip--stamps .strip__slot > * { align-items: center; padding: 0; border-radius: 50%; border-width: 1.5px; font-size: clamp(0.75rem, 1.5vw, 1.0625rem); }
.strip--stamps .strip__slot.is-done > * { background: transparent; color: var(--c-navy); border: 2px solid var(--c-navy); box-shadow: inset 0 0 0 2px var(--c-bg), inset 0 0 0 3px rgba(19, 54, 90, .35); transform: rotate(-8deg); }
.strip--stamps .strip__slot.is-done:nth-child(3n) > * { transform: rotate(6deg); }
.strip--stamps .strip__slot.is-done:nth-child(3n+1) > * { transform: rotate(-3deg); }
.strip--stamps .strip__slot.is-owned > * { color: var(--c-muted); border-color: var(--c-line-paper); border-style: dashed; }
.strip--stamps .strip__slot.has-record > * { background: var(--c-mustard); color: var(--c-ink); border-color: var(--c-ink); text-decoration: underline; text-underline-offset: 2px; }
.strip--stamps .strip__slot.has-record a:hover { background: var(--c-ink); color: #fff; }
.strip--stamps .strip__slot.has-record::before { content: none; }
.strip--stamps .strip__legend i { width: 16px; height: 16px; border-radius: 50%; }
.strip--stamps .strip__legend i.is-done { background: transparent; border-width: 2px; }
.strip--stamps .strip__legend i.is-owned { border-color: var(--c-line-paper); }
@media (max-width: 599px) {
  .strip--stamps:not(.strip--detail) .strip__slots { grid-template-columns: repeat(9, minmax(0, 1fr)); row-gap: 10px; }
  .strip--detail .strip__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 4px 2px 8px; }
  .strip--detail .strip__scroll > * { min-width: 620px; }
  .strip--detail .strip__hint { display: block; }
  .strip--stamps .strip__axis { flex-direction: column; gap: 2px; }
}

/* 連載の棚：6回コース1冊ずつ */
.serial-block { margin-top: var(--s8); padding-top: var(--s7); border-top: 3px double var(--c-ink); }
.vols { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .vols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vol { display: flex; flex-direction: column; background: var(--c-bg); border: var(--rule-ink); border-left: 6px solid var(--c-navy); }
.vol.is-current { border-left-color: var(--c-mustard); }
.vol__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s4); align-items: start; padding: var(--s5); border-bottom: 1px solid var(--c-line-paper); }
.vol__no { font-family: var(--f-en); font-weight: 600; font-size: 2.25rem; line-height: 1; color: var(--c-navy); }
.vol__no span { display: block; font-size: var(--fs-en); letter-spacing: 0.2em; color: var(--c-teal); margin-bottom: 4px; }
.vol__title { font-family: var(--f-serif); font-weight: 900; font-size: var(--fs-h3); color: var(--c-ink); line-height: 1.4; }
.vol__title span { margin-left: var(--s2); font-family: var(--f-sans); font-weight: 500; font-size: var(--fs-sm); color: var(--c-muted); }
.vol__meta { margin-top: var(--s1); font-size: var(--fs-xs); font-weight: 700; color: var(--c-ink); }
.vol__note { font-size: var(--fs-xs); color: var(--c-muted); line-height: 1.7; }
.vol__list { list-style: none; padding: 0; margin: 0; }
.prose .vol__list, .article .vol__list { padding-left: 0; }
.vol__list li + li { border-top: 1px solid var(--c-line-paper); margin-top: 0; }
.vol__item { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: var(--s3); padding: var(--s4) var(--s5); color: var(--c-ink); text-decoration: none; font-size: var(--fs-sm); line-height: 1.7; }
a.vol__item:hover { background: var(--c-paper-2); }
a.vol__item:hover .vol__item-title { text-decoration: underline; }
.vol__item-no { font-family: var(--f-en); font-weight: 500; color: var(--c-teal); }
.vol__item-title { font-family: var(--f-serif); font-weight: 700; }
.vol__item-title .badge-rec { margin-right: var(--s2); vertical-align: 2px; }
.vol__item.is-current { background: var(--c-paper); }
.vol__item.is-current small { font-family: var(--f-sans); font-weight: 400; color: var(--c-muted); font-size: var(--fs-xs); }
.vol__empty { padding: var(--s4) var(--s5); font-size: var(--fs-xs); color: var(--c-muted); }
.article-serial .vols { margin-top: var(--s4); }
.article-serial .vols { grid-template-columns: 1fr; }
.article-serial__sub { margin-top: var(--s7); }
.article-serial .strip { margin-top: var(--s4); }

/* ---------- 7. 特集の棚 ---------- */
.shelf__grid { display: grid; gap: var(--s6); }
@media (min-width: 960px) {
  .shelf__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s7); align-items: start; }
  .shelf--alt .shelf__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .shelf--alt .shelf__lead { order: 2; }
}
.shelf__lead { display: flex; flex-direction: column; text-decoration: none; color: var(--c-text); }
.shelf__image, .shelf__plate { display: block; aspect-ratio: 1200 / 630; border: var(--rule-ink); }
.shelf__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shelf__image--spot { position: relative; }
.shelf__image-tag { position: absolute; left: 0; top: 0; background: var(--c-ink); color: #fff; font-family: var(--f-en); font-size: var(--fs-en); letter-spacing: 0.2em; text-transform: uppercase; padding: 4px 10px; }
.shelf__plate { position: relative; background: var(--c-navy); color: #fff; overflow: hidden; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 24px 24px; }
.shelf__plate-label { position: absolute; left: var(--s5); top: var(--s5); font-family: var(--f-en); font-size: var(--fs-en); letter-spacing: 0.3em; }
.shelf__plate-label::after { content: ""; display: block; width: 28px; height: 2px; background: var(--c-mustard); margin-top: var(--s2); }
.shelf__plate-no { position: absolute; right: var(--s5); bottom: var(--s3); font-family: var(--f-en); font-weight: 500; font-size: clamp(3rem, 8vw, 6rem); line-height: 1; letter-spacing: 0.02em; color: rgba(255,255,255,.92); }
.band--paper .shelf__plate { border-color: var(--c-ink); }
.shelf__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-top: var(--s5); font-family: var(--f-en); font-size: var(--fs-xs); letter-spacing: 0.12em; color: var(--c-navy); }
.shelf__title { margin-top: var(--s3); font-family: var(--f-serif); font-weight: 900; font-size: var(--fs-h2); line-height: 1.5; letter-spacing: 0.04em; color: var(--c-ink); }
.shelf__desc { margin-top: var(--s3); font-size: var(--fs-sm); color: var(--c-muted); line-height: 1.9; }
.shelf__lead:hover .shelf__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
.shelf__list { list-style: none; padding: 0; border-top: var(--rule-ink); }
.shelf__list li { border-bottom: var(--rule); }
.band--paper .shelf__list li { border-bottom-color: var(--c-line-paper); }
.shelf__list a { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--s3); padding: var(--s5) 0; text-decoration: none; color: var(--c-text); }
.shelf__no { font-family: var(--f-en); font-weight: 500; font-size: 1.75rem; line-height: 1; color: var(--c-teal); }
.shelf__item { display: flex; flex-direction: column; }
.shelf__item-meta { display: flex; align-items: center; gap: var(--s3); font-family: var(--f-en); font-size: 0.6875rem; letter-spacing: 0.2em; color: var(--c-muted); }
.shelf__item-title { margin-top: var(--s2); font-family: var(--f-serif); font-weight: 600; font-size: var(--fs-md); line-height: 1.6; color: var(--c-ink); letter-spacing: 0.03em; }
.shelf__item-desc { margin-top: var(--s2); font-size: var(--fs-xs); color: var(--c-muted); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shelf__list a:hover .shelf__item-title { text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 1px; }

/* ---------- 8. 記録票（カルテ） ---------- */
.record-grid { display: grid; gap: var(--s5); }
@media (min-width: 960px) { .record-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s8); align-items: start; } .record-grid .sec-head { margin-bottom: 0; } .record-grid .note { margin-top: var(--s5); } }
.karte { background: var(--c-bg); border: 2px solid var(--c-ink); }
.karte__head, .sheet__head { display: flex; justify-content: space-between; align-items: center; padding: var(--s2) var(--s4); background: var(--c-ink); color: #fff; font-family: var(--f-en); font-size: var(--fs-en); letter-spacing: 0.22em; text-transform: uppercase; line-height: 1.6; }
.karte__table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); line-height: 1.75; }
.karte__table th, .karte__table td { padding: var(--s3) var(--s4); border-bottom: var(--rule); text-align: left; vertical-align: top; }
.karte__table tr:last-child > * { border-bottom: 0; }
.karte__table th { width: 8em; background: var(--c-paper); border-right: var(--rule); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; color: var(--c-navy); white-space: nowrap; }
.karte__table td { color: var(--c-ink); }
@media (max-width: 479px) { .karte__table th { width: 5.5em; padding: var(--s3) var(--s2); } }

/* ---------- 9. 回数券カード（コース購入履歴） ---------- */
.profile { display: grid; gap: var(--s7); }
@media (min-width: 960px) { .profile { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.profile__name { font-family: var(--f-serif); font-weight: 900; font-size: 2rem; letter-spacing: 0.12em; color: var(--c-ink); line-height: 1.3; margin-bottom: var(--s4); }
.profile__name span { font-family: var(--f-sans); font-size: var(--fs-xs); font-weight: 400; letter-spacing: 0.08em; color: var(--c-muted); margin-left: var(--s3); }
.profile__text > p:not([class]), .author-card__text > p:not([class]) { font-size: var(--fs-sm); line-height: 1.95; }
.profile__text .text-link, .author-card .text-link { display: inline-block; margin-top: var(--s4); }
.profile__cards-title { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; color: var(--c-ink); padding-bottom: var(--s2); margin-bottom: var(--s4); border-bottom: var(--rule-ink); }
.tickets { list-style: none; padding: 0; display: grid; gap: var(--s3); }
@media (min-width: 600px) { .tickets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ticket { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 5.5em; background: var(--c-bg); border: 1.5px solid var(--c-navy); }
.ticket::before, .ticket::after { content: ""; position: absolute; right: calc(5.5em - 9px); width: 16px; height: 16px; border-radius: 50%; background: var(--c-paper); border: 1.5px solid var(--c-navy); }
.ticket::before { top: -9px; clip-path: inset(50% 0 0 0); }
.ticket::after { bottom: -9px; clip-path: inset(0 0 50% 0); }
.band:not(.band--paper) .ticket::before, .band:not(.band--paper) .ticket::after { background: var(--c-bg); }
.ticket__main { padding: var(--s3) var(--s4); }
.ticket__kind { font-family: var(--f-en); font-size: var(--fs-en); letter-spacing: 0.16em; color: var(--c-teal); display: flex; gap: var(--s3); }
.ticket__kind span { font-family: var(--f-sans); letter-spacing: 0.06em; color: var(--c-muted); }
.ticket__name { font-size: var(--fs-xs); font-weight: 700; color: var(--c-ink); line-height: 1.6; margin-top: 2px; }
.ticket__punch { list-style: none; padding: 0; display: flex; gap: 5px; margin-top: var(--s2); }
.ticket__punch li { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--c-navy); }
.ticket__punch li.is-used { background: var(--c-navy); }
.ticket__stub { border-left: 1.5px dashed var(--c-navy); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--s2); text-align: center; }
.ticket__count { font-family: var(--f-en); font-weight: 600; font-size: 1.5rem; line-height: 1; color: var(--c-navy); }
.ticket__count small { font-size: 0.875rem; color: var(--c-muted); }
.ticket__state { margin-top: 6px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; color: var(--c-ink); }
.ticket.is-complete .ticket__state { color: var(--c-teal); }
.ticket:not(.is-complete) .ticket__state { background: var(--c-mustard); padding: 1px 6px; }

/* ---------- 10. 記事ページ ---------- */
.article-top { background: var(--c-paper); border-bottom: var(--rule-ink); }
.breadcrumb { padding: var(--s5) 0 0; font-size: var(--fs-xs); color: var(--c-muted); }
.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; row-gap: var(--s1); }
.breadcrumb li { display: inline-flex; align-items: center; min-width: 0; }
.breadcrumb li + li::before { content: "/"; margin: 0 var(--s3); color: var(--c-line-paper); }
.breadcrumb a { color: var(--c-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-ink); text-decoration: underline; }
.breadcrumb [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 28em; }
.article-header { padding: var(--s6) 0 var(--s7); }
.pr-inline { display: flex; align-items: center; font-size: var(--fs-xs); line-height: 1.6; color: var(--c-ink); padding: var(--s2) var(--s3); background: var(--c-bg); border: var(--rule-ink); width: fit-content; max-width: 100%; margin-bottom: var(--s6); }
.article-header__badges { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s5); }
.article-header__meta { display: flex; flex-direction: column; gap: 2px; }
.article-header__series { font-family: var(--f-serif); font-weight: 900; font-size: var(--fs-md); color: var(--c-ink); letter-spacing: 0.1em; }
.article-header__feature { font-family: var(--f-en); font-size: var(--fs-en); letter-spacing: 0.18em; color: var(--c-teal); text-transform: uppercase; }
.article-header h1 { font-family: var(--f-serif); font-weight: 900; font-size: var(--fs-h1); line-height: 1.45; letter-spacing: 0.04em; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) 0; margin-top: var(--s5); font-size: var(--fs-xs); color: var(--c-muted); font-variant-numeric: tabular-nums; }
.meta .label { margin-right: var(--s3); }
.meta__sep { width: 1px; height: 0.9em; background: var(--c-line-paper); margin: 0 var(--s3); }

.article-eyecatch { display: block; margin-top: var(--s7); aspect-ratio: 1200 / 630; border: var(--rule-ink); }
.article-eyecatch img { display: block; width: 100%; height: 100%; }
.illustration-pending { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--c-line-paper); color: var(--c-muted); font-size: var(--fs-xs); padding: var(--s4); text-align: center; }

.price-note, .doctor-note { position: relative; margin-top: var(--s7); padding: var(--s4) var(--s5) var(--s4) calc(var(--s5) + 3.5em); border-top: var(--rule-ink); border-bottom: var(--rule); font-size: var(--fs-xs); line-height: 1.9; color: var(--c-text); }
.price-note::before, .doctor-note::before { position: absolute; left: 0; top: var(--s4); font-family: var(--f-en); font-size: var(--fs-en); letter-spacing: 0.2em; color: var(--c-teal); }
.price-note::before { content: "PRICE"; }
.doctor-note::before { content: "NOTE"; }
.doctor-note { margin-top: var(--s8); }

.toc { margin-top: var(--s6); background: var(--c-paper); padding: var(--s5) var(--s5) var(--s4); }
.toc__title { display: flex; align-items: baseline; gap: var(--s3); font-family: var(--f-serif); font-weight: 900; font-size: var(--fs-md); color: var(--c-ink); letter-spacing: 0.1em; padding-bottom: var(--s3); border-bottom: var(--rule-ink); }
.toc__en { font-family: var(--f-en); font-weight: 500; font-size: var(--fs-en); letter-spacing: 0.24em; color: var(--c-teal); text-transform: uppercase; }
.toc ol { list-style: none; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; display: flex; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--c-line-paper); font-size: var(--fs-sm); line-height: 1.6; }
.toc li:last-child { border-bottom: 0; }
.toc li::before { content: counter(toc, decimal-leading-zero); flex: none; width: 1.8em; font-family: var(--f-en); font-weight: 500; font-size: 1rem; color: var(--c-teal); }
.toc a { color: var(--c-ink); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.article-serial { margin-top: var(--s8); padding: var(--s6) var(--s5); background: var(--c-paper); }
.author-card { margin-top: var(--s7); display: grid; gap: var(--s5); padding: var(--s6) 0; border-top: 3px double var(--c-ink); border-bottom: var(--rule-ink); }

.author-card__title { font-family: var(--f-serif); font-weight: 900; font-size: var(--fs-h3); color: var(--c-ink); margin: var(--s2) 0 var(--s4); letter-spacing: 0.06em; }
.author-card .profile__name { font-size: 1.5rem; margin-bottom: var(--s3); }

.hub-link { margin-top: var(--s6); padding: var(--s4) var(--s5); background: var(--c-navy); color: #c9d6e3; }
.hub-link p { font-size: var(--fs-xs); margin-bottom: var(--s1); }
.hub-link a { color: #fff; font-family: var(--f-serif); font-weight: 600; line-height: 1.7; }
.hub-link a:hover { color: var(--c-mustard); }

.pager { display: grid; margin-top: var(--s7); border-top: var(--rule-ink); border-bottom: var(--rule-ink); }
@media (min-width: 640px) { .pager { grid-template-columns: 1fr 1fr; } .pager__item--next { border-left: var(--rule); } }
.pager__item { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s4); text-decoration: none; color: var(--c-ink); }
.pager__item--prev { padding-left: 0; }
.pager__item--next { text-align: right; grid-column: -2; padding-right: 0; }
@media (max-width: 639px) { .pager__item--next { grid-column: auto; border-top: var(--rule); padding-left: 0; } }
.pager__item:hover .pager__title { text-decoration: underline; text-underline-offset: 0.3em; }
.pager__dir { font-family: var(--f-en); font-size: var(--fs-en); letter-spacing: 0.2em; color: var(--c-teal); }
.pager__item--prev .pager__dir::before { content: "← "; }
.pager__item--next .pager__dir::after { content: " →"; }
.pager__title { font-family: var(--f-serif); font-weight: 600; font-size: var(--fs-sm); line-height: 1.7; }

.related { margin-top: var(--s8); }
.related ol { list-style: none; padding: 0; border-top: var(--rule-ink); }
.related li { display: flex; gap: var(--s4); padding: var(--s3) 0; border-bottom: var(--rule); font-size: var(--fs-sm); line-height: 1.7; }
.related li[aria-current] { color: var(--c-muted); }
.related__no { flex: none; width: 2em; font-family: var(--f-en); font-weight: 500; font-size: 1rem; color: var(--c-teal); }
.related a { color: var(--c-ink); text-decoration: none; font-family: var(--f-serif); font-weight: 600; }
.related a:hover { text-decoration: underline; }
main > .container--text:last-child, main > .container:last-child { padding-bottom: var(--s9); }

/* ---------- 11. 本文・図版・表 ---------- */
.prose { margin-top: var(--s7); counter-reset: sec; }
.prose > * + * { margin-top: 1.3em; }
.prose h2 { counter-increment: sec; position: relative; font-family: var(--f-serif); font-weight: 900; font-size: var(--fs-h2); line-height: 1.5; letter-spacing: 0.05em; margin-top: var(--s9); padding-top: var(--s6); border-top: 3px double var(--c-ink); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s4); align-items: baseline; }
.prose h2::before { content: counter(sec, decimal-leading-zero); font-family: var(--f-en); font-weight: 500; font-size: 0.85em; color: var(--c-teal); letter-spacing: 0; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--f-serif); font-weight: 900; font-size: var(--fs-h3); line-height: 1.6; margin-top: var(--s7); padding-left: var(--s4); border-left: 3px solid var(--c-mustard); }
.prose h2 + *, .prose h3 + * { margin-top: var(--s5); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: var(--s2); }
.prose ul li::marker { color: var(--c-teal); }
.prose strong { color: var(--c-ink); }
.prose blockquote { padding: var(--s4) var(--s5); background: var(--c-paper); border-left: 3px solid var(--c-navy); }
.prose hr { border: 0; border-top: var(--rule); margin: var(--s7) 0; }
.prose .note { font-size: var(--fs-xs); }
.prose .qa { margin-top: var(--s5); padding: var(--s4) var(--s5); background: var(--c-paper); }
.prose .qa strong { display: block; margin-bottom: var(--s2); font-family: var(--f-serif); font-weight: 900; color: var(--c-navy); }
.prose .qa + .qa { margin-top: var(--s3); }
.page .prose { margin-top: 0; }

/* 表：記録票の体裁（見出し帯＋罫＋ラベル列） */
.sheet { margin-top: var(--s6) !important; border: 2px solid var(--c-ink); background: var(--c-bg); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); line-height: 1.75; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: var(--s3) var(--s4); text-align: left; vertical-align: top; border-bottom: var(--rule); }
.data-table tr:last-child > * { border-bottom: 0; }
.data-table thead th { background: var(--c-paper); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; color: var(--c-navy); white-space: nowrap; border-bottom: 1.5px solid var(--c-ink); }
.data-table tbody tr:nth-child(even) { background: #fbfaf7; }
.data-table tbody .col-key { background: var(--c-paper); border-right: var(--rule); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; color: var(--c-navy); }
.data-table.cols-2 tbody .col-key { width: 32%; }
.data-table .num { text-align: right; white-space: nowrap; font-family: var(--f-en); font-size: 1rem; letter-spacing: 0.02em; }
.data-table.cols-3, .data-table.cols-4, .data-table.cols-5 { min-width: 520px; }
.data-table.cols-3 tbody .col-key, .data-table.cols-4 tbody .col-key { white-space: nowrap; }
@media (max-width: 479px) { .data-table th, .data-table td { padding: var(--s3); } .data-table.cols-2 tbody .col-key { width: 36%; } }

/* 図版 */
.figure { margin-top: var(--s6) !important; padding: var(--s6) var(--s5) var(--s5); background: var(--c-paper); border-top: 2px solid var(--c-ink); }
.figure__cap { display: flex; align-items: baseline; gap: var(--s3); font-family: var(--f-serif); font-weight: 900; font-size: var(--fs-sm); color: var(--c-ink); line-height: 1.6; margin-bottom: var(--s7); }
.figure__cap span { flex: none; font-family: var(--f-en); font-weight: 500; font-size: var(--fs-en); letter-spacing: 0.16em; color: #fff; background: var(--c-ink); padding: 2px 8px; }
.figure__note { margin-top: var(--s4); font-size: var(--fs-xs); color: var(--c-muted); line-height: 1.8; }

/* ---------- 12. 写真ブロック（限定解除の併記） ---------- */
.case-record { margin-top: var(--s6) !important; border: 2px solid var(--c-ink); background: var(--c-bg); }
.case-record::before { content: "Photo record — 施術情報の併記"; display: block; padding: var(--s2) var(--s4); background: var(--c-ink); color: #fff; font-family: var(--f-en); font-size: var(--fs-en); letter-spacing: 0.2em; }
.case-photos { display: grid; gap: var(--s4); grid-template-columns: 1fr; padding: var(--s5); background: var(--c-paper); }
@media (min-width: 600px) { .case-photos { grid-template-columns: 1fr 1fr; } }
.case-photos figure { margin: 0; background: var(--c-bg); padding: var(--s2) var(--s2) var(--s3); border: var(--rule); }
.case-photos img { width: 100%; height: auto; display: block; }
.case-photos figcaption { font-size: var(--fs-xs); line-height: 1.7; color: var(--c-text); margin-top: var(--s2); }
.photo-pending { border: 1px dashed var(--c-line-paper); display: flex; align-items: center; justify-content: center; min-height: 160px; color: var(--c-muted); font-size: var(--fs-sm); padding: var(--s3); text-align: center; background: var(--c-bg); }
.case-body { padding: var(--s4) var(--s5) 0; }
.case-label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; color: var(--c-ink); padding-bottom: var(--s2); border-bottom: 1.5px solid var(--c-ink); }
.case-info { display: grid; grid-template-columns: 1fr; margin: 0; font-size: var(--fs-sm); line-height: 1.75; }
.case-info dt { font-weight: 700; color: var(--c-navy); padding: var(--s3) 0 0; font-size: var(--fs-xs); letter-spacing: 0.06em; }
.case-info dd { margin: 0; padding: var(--s1) 0 var(--s3); border-bottom: var(--rule); color: var(--c-ink); }
@media (min-width: 600px) {
  .case-info { grid-template-columns: 10em 1fr; }
  .case-info dt, .case-info dd { padding: var(--s3) 0; border-bottom: var(--rule); }
  .case-info dd { padding-left: var(--s4); }
}
.case-note { margin: 0; padding: var(--s3) var(--s5) var(--s5); font-size: var(--fs-sm); line-height: 1.75; color: var(--c-ink); }
.case-extra { padding: 0 var(--s5) var(--s5); }

/* ---------- 13. 一覧・固定ページ ---------- */
.page-header { padding: var(--s7) 0 var(--s5); border-bottom: 3px double var(--c-ink); margin-bottom: var(--s6); }
.page-header h1 { font-family: var(--f-serif); font-weight: 900; font-size: var(--fs-h1); letter-spacing: 0.06em; }
.page-header .kicker { font-family: var(--f-en); font-size: var(--fs-en); letter-spacing: 0.24em; color: var(--c-teal); text-transform: uppercase; display: block; margin-bottom: var(--s2); }
.index-list { list-style: none; padding: 0; }
.index-list__item { border-bottom: var(--rule); }
.index-list__link { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--s1) var(--s4); padding: var(--s5) 0; text-decoration: none; color: var(--c-text); }
@media (min-width: 768px) { .index-list__link { grid-template-columns: 4rem minmax(0, 1fr) 7em; gap: var(--s6); } }
.index-list__no { font-family: var(--f-en); font-weight: 500; font-size: 1.75rem; line-height: 1.1; color: var(--c-teal); }
.index-list__main { display: flex; flex-direction: column; min-width: 0; }
.index-list__label { font-family: var(--f-en); font-size: 0.6875rem; letter-spacing: 0.2em; color: var(--c-muted); }
.index-list__title { font-family: var(--f-serif); font-weight: 600; font-size: var(--fs-md); line-height: 1.6; color: var(--c-ink); margin-top: var(--s1); }
.index-list__desc { margin-top: var(--s2); font-size: var(--fs-xs); line-height: 1.8; color: var(--c-muted); }
.index-list__date { font-size: var(--fs-xs); color: var(--c-muted); font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { .index-list__date { text-align: right; } }
@media (max-width: 767px) { .index-list__date { grid-column: 2; } }
.index-list__link:hover .index-list__title { text-decoration: underline; text-underline-offset: 0.3em; }

/* ---------- 14. ユーティリティ ---------- */
.small { font-size: var(--fs-sm); color: var(--c-muted); }
.cta { margin-top: var(--s6); }
.cta a { display: block; text-align: center; background: var(--c-navy); color: #fff; text-decoration: none; padding: var(--s4); border-radius: var(--radius); font-weight: 700; letter-spacing: 0.06em; }
.cta a:hover { background: var(--c-ink); color: #fff; }
.placeholder { border: 1px dashed var(--c-line-paper); padding: var(--s3) var(--s4); color: var(--c-muted); font-size: var(--fs-sm); }

/* 見出しは文節（助詞の後ろ）でだけ改行する。長すぎる語は最後の手段で折り返す */
.cover__title, .article-header h1, .shelf__title, .shelf__item-title, .vol__item-title, .prose h2 { word-break: keep-all; overflow-wrap: anywhere; }
.sec-head__sub { display: block; font-size: 0.5em; letter-spacing: 0.06em; margin-top: var(--s2); color: var(--c-navy); }
/* 本文内に置く図版のリストは本文のリスト書式を受けない */
.prose .strip ol, .prose .strip ul { padding-left: 0; }
.prose .strip li + li { margin-top: 0; }
.prose .figure > * + * { margin-top: 0; }
@media (max-width: 1023px) { .cover__visual { order: -1; margin-top: var(--s4); } .cover__inner { padding-top: var(--s5); } }

/* ---------- 15. 図版の部品（棒・積み上げ・時間軸・波長・段階） ---------- */
.prose .figure ol, .prose .figure ul { padding-left: 0; }
.prose .figure li + li { margin-top: 0; }
.dg-sub { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; color: var(--c-ink); margin-bottom: var(--s3) !important; }
.dg-sub + * { margin-bottom: var(--s6); }

/* 横棒：ラベル｜棒｜値。--ref に基準線（破線）を引く */
.dg-bars { position: relative; display: grid; gap: var(--s4); --lab: 8.5em; --val: 6.5em; }
.dg-bar { display: grid; grid-template-columns: var(--lab, 8.5em) minmax(0, 1fr) var(--val, 6.5em); align-items: center; gap: var(--s3); }
.dg-bar__label { font-size: var(--fs-sm); font-weight: 700; color: var(--c-ink); line-height: 1.35; }
.dg-bar__label small { display: block; font-size: 0.6875rem; font-weight: 400; color: var(--c-muted); margin-top: 2px; }
.dg-bar__track { position: relative; height: 28px; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 6 - 1px), var(--c-line-paper) calc(100% / 6 - 1px) calc(100% / 6)); border-left: 2px solid var(--c-ink); }
.dg-bar__track i { position: absolute; inset: 4px auto 4px 0; width: var(--v); background: var(--c-navy); }
.dg-bar__val { font-family: var(--f-en); font-weight: 500; font-size: var(--fs-md); color: var(--c-ink); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dg-bars[style*="--ref"] .dg-bar__track::after { content: ""; position: absolute; top: -10px; bottom: -10px; left: var(--ref); border-left: 2px dashed var(--c-mustard); }
.dg-bars__ref { margin-left: calc(var(--lab) + var(--s3)); margin-right: calc(var(--val) + var(--s3)); position: relative; height: 1.6em; font-size: 0.6875rem; font-weight: 700; color: var(--c-ink); }
.dg-bars__ref span { position: absolute; left: var(--ref); bottom: 0; transform: translateX(-50%); white-space: nowrap; background: var(--c-mustard); padding: 2px 8px; }
.dg-bar--thin .dg-bar__track { height: 18px; }
.dg-bar--thin .dg-bar__track i { inset: 3px auto 3px 0; }
.dg-bar--thin .dg-bar__label { font-weight: 500; font-size: var(--fs-xs); }
.dg-bar--thin .dg-bar__val { font-size: var(--fs-sm); }
.dg-bar--teal .dg-bar__track i { background: var(--c-teal); }
.dg-bar--accent .dg-bar__track i { background: var(--c-mustard); }
.dg-bar--accent .dg-bar__label { font-weight: 700; }
.dg-groups { display: grid; gap: var(--s5); }
.dg-group { display: grid; gap: var(--s2); padding-top: var(--s3); border-top: var(--rule-ink); --lab: 7em; --val: 4.5em; }
.dg-group .dg-bar { grid-template-columns: var(--lab) minmax(0, 1fr) var(--val); }
.dg-group__title { font-family: var(--f-serif); font-weight: 900; font-size: var(--fs-md); color: var(--c-ink); }
@media (min-width: 700px) { .dg-groups { grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s6); } }

/* 積み上げ棒 */
.dg-stacks { display: grid; gap: var(--s6); }
.dg-stack__label { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); font-size: var(--fs-sm); font-weight: 700; color: var(--c-ink); margin-bottom: var(--s2); }
.dg-stack__label b { font-family: var(--f-en); font-weight: 500; font-size: var(--fs-lg); white-space: nowrap; }
.dg-stack__track { display: flex; height: 44px; border-left: 2px solid var(--c-ink); }
.dg-stack__track i { flex: 0 0 var(--v); display: flex; align-items: center; padding: 0 var(--s2); font-style: normal; font-family: var(--f-en); font-size: var(--fs-xs); color: #fff; overflow: hidden; white-space: nowrap; border-right: 2px solid var(--c-paper); }
.dg-stack__track i.is-navy, .dg-legend i.is-navy { background: var(--c-navy); }
.dg-stack__track i.is-teal, .dg-legend i.is-teal { background: var(--c-teal); }
.dg-stack__track i.is-accent, .dg-legend i.is-accent { background: var(--c-mustard); color: var(--c-ink); }
.dg-legend i { border: 0; }

/* 時間軸（レーン） */
.dg-time { display: grid; gap: var(--s5); }
.dg-time__lane { display: grid; gap: var(--s2); }
.dg-time__label { font-size: var(--fs-sm); font-weight: 700; color: var(--c-ink); }
.dg-time__label span { margin-left: var(--s3); font-size: var(--fs-xs); font-weight: 400; color: var(--c-muted); }
.dg-time__track { position: relative; height: 30px; border-left: 2px solid var(--c-ink); background: linear-gradient(var(--c-line-paper), var(--c-line-paper)) center / 100% 1px no-repeat; }
.dg-time__span { position: absolute; top: 5px; bottom: 5px; left: var(--from); right: calc(100% - var(--to)); background: var(--c-navy); }
.dg-time__pin { position: absolute; left: var(--at); top: 0; bottom: 0; width: 0; }
.dg-time__pin::before { content: ""; position: absolute; left: -9px; top: 6px; width: 18px; height: 18px; background: var(--c-mustard); border: 2px solid var(--c-ink); transform: rotate(45deg); }
.dg-time__axis { position: relative; height: 1.6em; border-top: 1px solid var(--c-ink); margin-top: calc(var(--s2) * -1); margin-left: 2px; font-size: 0.6875rem; color: var(--c-muted); }
.dg-time__axis span { position: absolute; left: var(--at); top: 4px; transform: translateX(-50%); white-space: nowrap; }
.dg-time__axis span:first-child { transform: none; }
.dg-time__axis span:last-child { transform: translateX(-100%); }

/* 波長スケール */
.dg-scale { position: relative; height: 92px; margin: 0 var(--s5) var(--s6); }
.dg-scale__line { position: absolute; left: 0; right: 0; top: 54px; height: 6px; background: linear-gradient(90deg, #b11d1d22, var(--c-navy) 15%, var(--c-teal) 90%); }
.dg-scale__tick { white-space: nowrap; position: absolute; left: var(--at); top: 66px; transform: translateX(-50%); font-family: var(--f-en); font-size: 0.6875rem; color: var(--c-muted); }
.dg-scale__tick::before { content: ""; position: absolute; left: 50%; top: -8px; height: 6px; border-left: 1px solid var(--c-ink); }
.dg-scale__pin { position: absolute; left: var(--at); top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; font-size: var(--fs-xs); font-weight: 700; color: var(--c-ink); white-space: nowrap; }
.dg-scale__pin b { font-family: var(--f-en); font-weight: 500; font-size: var(--fs-lg); line-height: 1.1; color: var(--c-navy); }
.dg-scale__pin--teal b { color: var(--c-teal); }
.dg-scale__pin::after { content: ""; width: 2px; height: 12px; background: var(--c-ink); margin-top: 2px; }

/* 照射の段階（18マスの格子に乗せる） */
.dg-phase { display: grid; grid-template-columns: repeat(var(--slots), minmax(0, 1fr)); gap: var(--s2) 4px; }
.dg-phase__seg { grid-row: 1; display: flex; align-items: center; min-height: 40px; padding: 0 var(--s2); font-size: var(--fs-xs); font-weight: 700; line-height: 1.3; overflow: hidden; }
.dg-phase__seg--alex { background: var(--c-navy); color: #fff; }
.dg-phase__seg--mid { background: repeating-linear-gradient(135deg, var(--c-teal-soft) 0 8px, #fff 8px 16px); border: 1.5px dashed var(--c-teal); color: var(--c-ink); justify-content: center; text-align: center; }
.dg-phase__seg--yag { background: var(--c-teal); color: #fff; }
.dg-phase__course { grid-row: 2; border-top: 2px solid var(--c-ink); padding-top: 4px; font-size: 0.6875rem; color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 部位ごとのレーン（ストリップの縮小版） */
.dg-lanes { display: grid; gap: var(--s5); }
.dg-lane__label { font-size: var(--fs-sm); font-weight: 700; color: var(--c-ink); margin-bottom: var(--s2); }
.dg-lane__label span { display: block; font-size: var(--fs-xs); font-weight: 400; color: var(--c-muted); }
.strip--mini .strip__slot { aspect-ratio: 3 / 4; }
.strip--mini .strip__slot > * { font-size: clamp(0.5625rem, 1.3vw, 0.875rem); }
.strip__slot.is-teal > * { background: var(--c-teal); border-color: var(--c-teal); }

/* 回数券を図版内に並べる */
.dg-tickets .tickets { grid-template-columns: 1fr; }
@media (min-width: 700px) { .dg-tickets .tickets { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dg-tickets .ticket { grid-template-columns: minmax(0, 1fr) 4.5em; } }

/* 段階（年表） */
.dg-steps { list-style: none; display: grid; gap: 0; counter-reset: none; }
.dg-steps li { position: relative; padding: 0 0 var(--s5) var(--s6); border-left: 2px solid var(--c-navy); margin-left: 8px; font-size: var(--fs-sm); color: var(--c-text); }
.dg-steps li::before { content: ""; position: absolute; left: -9px; top: 2px; width: 16px; height: 16px; background: var(--c-navy); border: 2px solid var(--c-paper); }
.dg-steps li b { display: block; font-family: var(--f-serif); font-weight: 900; font-size: var(--fs-md); color: var(--c-ink); line-height: 1.4; }
.dg-steps li.is-now { border-left-style: dashed; padding-bottom: 0; }
.dg-steps li.is-now::before { background: var(--c-mustard); border-color: var(--c-ink); }
@media (min-width: 760px) {
  .dg-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .dg-steps li { margin-left: 0; padding: var(--s5) var(--s3) 0 0; border-left: 0; border-top: 2px solid var(--c-navy); }
  .dg-steps li::before { left: 0; top: -9px; }
  .dg-steps li.is-now { border-top-style: dashed; }
}
@media (max-width: 599px) {
  .dg-bars { --lab: 5.5em; --val: 5.2em; }
  .dg-bar__val { font-size: var(--fs-sm); }
  .dg-group { --lab: 6em; --val: 3.6em; }
  .dg-phase__seg { font-size: 0.625rem; padding: 0 4px; }
  .dg-scale { margin-left: var(--s4); margin-right: var(--s6); }
}
/* 写真は読み込みまでの間も紙色で枠を保つ */
.case-photos img { background: var(--c-paper-2); }
.prose .figure .figure__note, .prose .figure .strip__legend { margin-top: var(--s5); }
.dg-time__note { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-xs); font-weight: 700; color: var(--c-ink); }
.dg-time__note i { width: 10px; height: 10px; background: var(--c-mustard); border: 1.5px solid var(--c-ink); transform: rotate(45deg); flex: none; }
.dg-time__axis { margin-top: 0; }

/* ---------- 16. 固定ページ・記事一覧 ---------- */
.page-top .sec-head__en { margin-bottom: var(--s4); }
.page-top__lead { margin-top: var(--s4); font-size: var(--fs-sm); color: var(--c-muted); line-height: 1.9; max-width: 40em; }
.page-top__jump { list-style: none; padding: 0; margin-top: var(--s6); display: grid; gap: 0; border-top: var(--rule-ink); }
.page-top__jump li { border-bottom: 1px solid var(--c-line-paper); }
.page-top__jump a { display: flex; align-items: baseline; gap: var(--s4); padding: var(--s3) 0; text-decoration: none; font-family: var(--f-serif); font-weight: 900; color: var(--c-ink); }
.page-top__jump a::after { content: "↓"; margin-left: auto; font-family: var(--f-en); color: var(--c-teal); }
.page-top__jump span { font-family: var(--f-en); font-weight: 500; font-size: var(--fs-en); letter-spacing: 0.16em; color: var(--c-teal); text-transform: uppercase; min-width: 13em; }
@media (min-width: 768px) { .page-top__jump { grid-template-columns: repeat(3, 1fr); gap: 0 var(--s5); border-top: 0; } .page-top__jump li { border-top: var(--rule-ink); } .page-top__jump a { flex-direction: column; gap: var(--s1); } .page-top__jump a::after { display: none; } }
.index-shelf { padding: var(--s8) 0 0; }
.index-shelf:last-child { padding-bottom: var(--s9); }
.index-shelf .index-list { border-top: var(--rule-ink); }
.index-list__label { display: flex; align-items: center; gap: var(--s3); }
.page .article-serial, .page .author-card { margin-top: var(--s8); }
.shelf__image picture { display: block; height: 100%; }

/* ---------- 2026-12-06 点検対応 ---------- */
.strip__hint { display: none; margin-top: var(--s2); font-size: var(--fs-xs); color: var(--c-muted); }
.strip__hint::before { content: "← "; } .strip__hint::after { content: " →"; }
/* 表紙の3つの数字 */
.cover__facts { margin-top: var(--s5); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--c-ink); border-bottom: 1px solid rgba(18,26,35,.2); }
.cover__facts > div { padding: var(--s3) var(--s3) var(--s3) 0; }
.cover__facts > div + div { padding-left: var(--s3); border-left: 1px solid rgba(18,26,35,.2); }
.cover__facts dt { font-size: 0.6875rem; line-height: 1.5; color: var(--c-muted); letter-spacing: 0.04em; }
.cover__facts dd { margin: 4px 0 0; color: var(--c-ink); line-height: 1.1; white-space: nowrap; }
.cover__facts b { font-family: var(--f-en); font-weight: 600; font-size: clamp(1.5rem, 5.6vw, 2.125rem); letter-spacing: 0.01em; }
.cover__facts > div:last-child b { font-family: var(--f-serif); font-weight: 900; font-size: clamp(1.25rem, 4.6vw, 1.75rem); }
.cover__facts small { font-size: var(--fs-sm); font-weight: 700; margin-left: 2px; }
.cover__credit { position: absolute; right: 8px; bottom: 8px; margin: 0; padding: 2px 8px; font-size: 0.6875rem; line-height: 1.6; color: #fff; background: rgba(18,26,35,.62); letter-spacing: 0.04em; }
/* 実績サマリー横のコース購入履歴 */
.record-grid__cards { margin-top: var(--s2); }
@media (min-width: 960px) { .record-grid .sec-head { grid-column: 1; grid-row: 1; } .record-grid .karte { grid-column: 2; grid-row: 1 / span 2; } .record-grid__cards { grid-column: 1; grid-row: 2; } }
.cover__facts dt { white-space: nowrap; }
.cover__facts-note { margin-top: var(--s2); font-size: 0.6875rem; color: var(--c-muted); line-height: 1.6; }
.record-grid__cards .tickets { grid-template-columns: 1fr; }
