/*
 * 記事ページ専用スタイル（ワイヤーフレーム 2b）
 * 本文の読みやすさ・目次・連載の次の1本・関連記事・越境導線・書き手カード
 */

/* ---------- 記事ヘッダー ---------- */
.nb-article__head { padding-top: 26px; }
.nb-article__title { font-size: 32px; line-height: 1.58; margin: 12px 0 14px; letter-spacing: .01em; font-weight: 700; }
.nb-article__lead { font-size: 14.5px; color: var(--nb-ink-soft); line-height: 1.95; margin-bottom: 16px; }
.nb-article__byline {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; border-top: 1px solid var(--nb-line); border-bottom: 1px solid var(--nb-line);
  font-size: 13px;
}
.nb-article__author { font-weight: 600; }
.nb-article__actions { margin-left: auto; display: flex; gap: 8px; }
.nb-article__figure { margin: 22px 0 4px; }
.nb-article__image { width: 100%; height: auto; border: 1px solid var(--nb-line); }
.nb-article__tags { margin: 24px 0 0; }

/* ---------- 目次 ---------- */
.nb-toc { border: 1px solid var(--nb-line); background: var(--nb-surface); padding: 16px 18px; margin: 26px 0; }
.nb-toc__label { font-size: 11px; letter-spacing: .16em; color: var(--nb-muted); margin-bottom: 10px; }
.nb-toc__list { counter-reset: nb-toc; display: flex; flex-direction: column; gap: 7px; }
.nb-toc__list li { font-size: 13.5px; line-height: 1.7; }
.nb-toc__list li.is-sub { padding-left: 18px; font-size: 13px; color: var(--nb-ink-soft); }
.nb-toc__list a:hover { color: var(--nb-accent); }

/* ---------- 本文 ---------- */
.nb-entry { padding: 8px 0 4px; font-size: 15.5px; line-height: 2.05; color: var(--nb-ink); }
.nb-entry > * + * { margin-top: 1.5em; }
.nb-entry h2 {
  font-size: 20px; margin-top: 2.4em; padding-bottom: .5em;
  border-bottom: 1px solid var(--nb-line-strong); scroll-margin-top: 84px;
}
.nb-entry h3 { font-size: 17px; margin-top: 2em; scroll-margin-top: 84px; }
.nb-entry h4 { font-size: 15.5px; margin-top: 1.8em; }
.nb-entry p { line-height: 2.05; }
.nb-entry a { color: var(--nb-accent); text-decoration: underline; text-underline-offset: 3px; }
.nb-entry ul, .nb-entry ol { padding-left: 1.4em; }
.nb-entry ul { list-style: disc; }
.nb-entry ol { list-style: decimal; }
.nb-entry li { margin-top: .5em; }
.nb-entry blockquote {
  border-left: 2px solid var(--nb-accent); background: var(--nb-surface);
  padding: 14px 18px; color: var(--nb-ink-soft); font-size: 14.5px;
}
.nb-entry img { margin: 0 auto; border: 1px solid var(--nb-line); }
.nb-entry figcaption { font-size: 12px; color: var(--nb-muted); text-align: center; margin-top: 8px; }
.nb-entry table { width: 100%; border-collapse: collapse; font-size: 13.5px; display: block; overflow-x: auto; }
.nb-entry th, .nb-entry td { border: 1px solid var(--nb-line); padding: 8px 12px; text-align: left; }
.nb-entry th { background: var(--nb-surface-alt); font-weight: 600; }
.nb-entry code {
  background: var(--nb-surface-alt); padding: 2px 6px; border-radius: 2px;
  font-size: 13px; font-family: ui-monospace, Menlo, Consolas, monospace;
}
.nb-entry pre { background: var(--nb-ink); color: #f4f2ec; padding: 16px; overflow-x: auto; font-size: 13px; }
.nb-entry pre code { background: none; color: inherit; padding: 0; }
.nb-entry hr { border: none; border-top: 1px solid var(--nb-line); margin: 2.4em 0; }
/* 参考文献：本文より一段小さく・淡く。読みの流れを止めない */
.nb-entry .nb-references__title {
  font-size: 13px; font-weight: 600; letter-spacing: .06em;
  color: var(--nb-muted); border-bottom: none; margin-top: 2.8em; padding-bottom: 0;
}
.nb-entry .nb-references,
.nb-entry .article-references {
  font-size: 12.5px; line-height: 1.9; color: var(--nb-muted);
  border-top: 1px solid var(--nb-line); padding-top: 12px; margin-top: 8px;
}
.nb-entry .nb-references p,
.nb-entry .nb-references li { font-size: 12.5px; line-height: 1.9; }
.nb-entry .nb-references > * + * { margin-top: .8em; }
.nb-entry .nb-references a { color: var(--nb-muted); }
.nb-entry .nb-references a:hover { color: var(--nb-accent); }
.nb-entry--intro { padding-top: 24px; }

/* ---------- 連載：次の1本 ---------- */
.nb-nextup { background: var(--nb-surface); border: 1px solid var(--nb-line); padding: 18px 20px; margin-top: 36px; }
.nb-nextup__label { font-size: 13.5px; font-weight: 600; margin-bottom: 14px; }
.nb-nextup__label a { color: var(--nb-accent); text-decoration: underline; text-underline-offset: 3px; }
.nb-nextup__label .nb-meta { font-weight: 400; margin-left: 4px; }
.nb-nextup__card .nb-row__link { display: flex; gap: 14px; align-items: center; }
.nb-nextup__btn { flex: none; }

/* ---------- 関連記事（横スクロール） ---------- */
.nb-related { margin-top: 36px; }
.nb-scroller { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.nb-scroller__item { flex: none; width: 168px; scroll-snap-align: start; }
.nb-scroller__link { display: block; }
.nb-thumb--scroller { aspect-ratio: 3 / 2; margin-bottom: 8px; }
.nb-scroller__title { display: block; font-family: var(--nb-font-serif); font-size: 13.5px; line-height: 1.65; margin-top: 4px; }
.nb-scroller__link:hover .nb-scroller__title { color: var(--nb-accent); }

/* ---------- 越境導線 ---------- */
.nb-cross {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: #eef1f1; padding: 16px 20px; margin-top: 28px;
}
.nb-cross__title { font-family: var(--nb-font-serif); font-size: 15px; font-weight: 600; line-height: 1.6; }

/* ---------- 投げ銭（応援） ---------- */
.nb-tip {
  text-align: center;
  background: var(--nb-surface);
  border: 1px solid var(--nb-line);
  border-radius: var(--nb-radius);
  padding: 26px 24px;
  margin-top: 36px;
}
.nb-tip__label {
  font-family: var(--nb-font-serif);
  font-style: italic;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--nb-accent);
  margin-bottom: 12px;
}
.nb-tip__message {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--nb-ink-soft);
  margin-bottom: 18px;
}
.nb-tip__amounts {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 14px;
}
.nb-tip__amount {
  font-family: var(--nb-font-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--nb-ink);
  background: #fff;
  border: 1.5px solid var(--nb-line-strong);
  border-radius: var(--nb-radius);
  padding: 9px 18px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(35, 33, 30, 0.10);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.nb-tip__amount:hover {
  background: var(--nb-ink);
  color: #fff;
}
.nb-tip__amount.is-selected {
  background: var(--nb-ink);
  color: #fff;
  box-shadow: 0 2px 6px rgba(35, 33, 30, 0.28);
}
.nb-tip__custom {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 14px;
}
.nb-tip__custom input {
  width: 8rem;
  padding: 7px 10px;
  border: 1px solid var(--nb-line-strong);
  border-radius: var(--nb-radius);
  font-family: var(--nb-font-serif);
  font-size: 14px;
  text-align: right;
  background: #fff;
}
.nb-tip__unit { font-size: 13px; color: var(--nb-ink-soft); }
.nb-tip__btn { min-width: 200px; cursor: pointer; }
.nb-tip__note {
  font-size: 11px;
  color: var(--nb-muted);
  letter-spacing: .02em;
  margin-top: 12px;
}
.nb-tip__thanks {
  font-family: var(--nb-font-serif);
  font-size: 15px;
  color: var(--nb-accent);
  letter-spacing: .06em;
  padding: 12px 0;
}
.nb-tip__error {
  color: #c0392b;
  font-size: 12.5px;
  margin-top: 10px;
}
#tip-checkout { margin-top: 18px; text-align: left; }

/* ---------- 書き手カード ---------- */
.nb-authorcard {
  display: flex; gap: 18px; align-items: flex-start;
  border-top: 1px solid var(--nb-line); margin-top: 32px; padding: 24px 0 8px;
}
.nb-authorcard__avatar img, .nb-authorcard__img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.nb-authorcard__name { font-family: var(--nb-font-serif); font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.nb-authorcard__desc { font-size: 13px; color: var(--nb-ink-soft); line-height: 1.9; margin-bottom: 12px; }

@media (max-width: 900px) {
  .nb-article__title { font-size: 22px; }
  .nb-entry { font-size: 15px; }
  .nb-nextup__card .nb-row__link { flex-wrap: wrap; }
  .nb-nextup__btn { width: 100%; margin-top: 10px; }
  .nb-cross { flex-direction: column; align-items: flex-start; gap: 12px; }
}
