/* ブログ・利用規約などの下層ページ（styles.css のトークンを使う） */
.doc-page .footer { padding-right: 0; }
.bmain { background: var(--white); padding: 28px 0 96px; }
.bwrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.bwrap--narrow { max-width: 820px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--sub); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--orange); }
.crumbs em { color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }

/* ---------- blog index ---------- */
.bhead { margin: 32px 0 36px; }
.bhead__title { margin-top: 12px; font-size: 36px; font-weight: 900; color: var(--head); line-height: 1.45; }
.bcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bcard a { display: block; text-decoration: none; color: inherit; }
.bcard img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); transition: opacity .15s; }
.bcard a:hover img { opacity: .85; }
.bcard a:hover .bcard__title { color: var(--orange); }
.bcard__cat { margin-top: 12px; display: inline-block; font-size: 11px; font-weight: 700; color: var(--orange); border: 1.5px solid var(--orange); border-radius: 4px; padding: 0 8px; }
.bcard__title { margin-top: 8px; font-size: 17px; font-weight: 900; color: var(--head); line-height: 1.55; }
.bcard__date { margin-top: 6px; font-size: 12px; color: var(--sub); }
.bindex__offer { margin-top: 56px; max-width: 520px; }

/* ---------- post ---------- */
.blayout { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
.post__cat { display: inline-block; font-size: 12px; font-weight: 700; color: var(--orange); border: 1.5px solid var(--orange); border-radius: 4px; padding: 1px 10px; }
.post__title { margin-top: 12px; font-size: 32px; font-weight: 900; color: var(--head); line-height: 1.5; }
.post__meta { margin-top: 12px; display: flex; gap: 16px; font-size: 13px; color: var(--sub); }
.post__eye { margin-top: 24px; width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.toc { margin-top: 32px; background: var(--gray); border-radius: 12px; padding: 20px 24px; }
.toc__title { font-size: 14px; font-weight: 900; color: var(--head); }
.toc ol { margin-top: 8px; padding: 0; list-style: none; display: grid; gap: 4px; }
.toc li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.6; }
.toc li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--orange); text-decoration: underline; }

/* 本文 */
.prose { margin-top: 32px; font-size: 16px; line-height: 2; color: var(--ink); }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { margin-top: 2.6em; padding: 0 0 10px; border-bottom: 2px solid var(--head); font-size: 24px; font-weight: 900; color: var(--head); line-height: 1.5; scroll-margin-top: calc(var(--header) + 16px); }
.prose h3 { margin-top: 2em; padding-left: 12px; border-left: 4px solid var(--orange); font-size: 19px; font-weight: 900; color: var(--head); line-height: 1.5; }
.prose p { margin-top: 1.2em; }
.prose strong { font-weight: 700; background: var(--orange-pale); padding: 0 2px; }
.prose a { color: var(--orange); font-weight: 500; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--orange); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.prose th { background: var(--gray); font-weight: 700; color: var(--head); white-space: nowrap; }
.doc__end { margin-top: 3em !important; text-align: right; color: var(--muted); }

/* 記事末のCTA */
.postcta { margin-top: 56px; display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; border: 2px solid var(--head); border-radius: 16px; padding: 28px; }
.postcta img { width: 180px; }
.postcta__badge { display: inline-block; font-size: 12px; font-weight: 900; color: var(--white); background: var(--orange); border-radius: 4px; padding: 2px 10px; }
.postcta__title { margin-top: 10px; font-size: 20px; font-weight: 900; color: var(--head); line-height: 1.5; }
.postcta__text { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.8; }
.postcta__btns { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; }
.postcta__btns .cta { min-height: 52px; font-size: 15px; padding: 8px 22px; }
.postcta__btns .cta--line b { font-size: 15px; }

/* サイドバー */
.bside { position: sticky; top: calc(var(--header) + 20px); display: grid; gap: 24px; }
.offercard { border: 2px solid var(--orange); border-radius: 14px; padding: 20px; background: var(--white); }
.offercard__badge { display: inline-block; font-size: 12px; font-weight: 900; color: var(--white); background: var(--orange); border-radius: 4px; padding: 2px 10px; }
.offercard__title { margin-top: 10px; font-size: 18px; font-weight: 900; color: var(--head); line-height: 1.5; }
.offercard__text { margin: 8px 0 16px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.offercard .cta { min-height: 50px; font-size: 15px; }
.bside__title { font-size: 14px; font-weight: 900; color: var(--head); padding-bottom: 8px; border-bottom: 2px solid var(--head); }
.bside__list li { border-bottom: 1px solid var(--line); }
.bside__list a { display: block; padding: 12px 0; font-size: 13.5px; font-weight: 700; line-height: 1.6; color: var(--ink); text-decoration: none; }
.bside__list a:hover { color: var(--orange); }

.related { margin-top: 80px; }
.related__title { font-size: 22px; font-weight: 900; color: var(--head); margin-bottom: 20px; }

/* ---------- 固定ページ ---------- */
.doc { margin-top: 24px; }
.doc__title { font-size: 32px; font-weight: 900; color: var(--head); line-height: 1.5; }
.doc__updated { margin-top: 8px; font-size: 13px; color: var(--sub); }
.doc .prose { font-size: 15px; line-height: 1.95; }
.doc .prose h2 { font-size: 19px; margin-top: 2.4em; }
.doc .prose ol ol { margin-top: .4em; list-style: lower-roman; }
.nf { text-align: center; padding-top: 48px; }
.nf__code { font-family: var(--en); font-weight: 800; font-size: 96px; color: var(--orange); line-height: 1; }
.nf p { margin-top: 12px; color: var(--muted); }
.nf__links { margin-top: 32px !important; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .blayout { grid-template-columns: 1fr; }
  .bside { position: static; }
  .bcards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .bmain { padding: 20px 0 72px; }
  .bwrap { padding: 0 16px; }
  .bhead__title, .doc__title { font-size: 26px; }
  .post__title { font-size: 23px; }
  .bcards { grid-template-columns: 1fr; }
  .prose { font-size: 15px; }
  .prose h2 { font-size: 20px; }
  .prose h3 { font-size: 17px; }
  .postcta { grid-template-columns: 1fr; padding: 22px 18px; text-align: center; }
  .postcta img { margin: 0 auto; width: 150px; }
  .postcta__btns { justify-content: center; }
  .footer__inner { padding-bottom: 96px; }
}
