@charset "utf-8";
/* ================================================================
   conbu.jp 流入・シェア型の記事用スタイル
   元サンプルの本文幅・文字サイズ・配色を継承
   方針: 文字を大きく、行間を広く、1行を短く。装飾は種類を絞って一貫させる
   ================================================================ */

:root {
  /* PR表示: noneで非表示、inline-flexで表示。記事別の指定は末尾の例を参照。 */
  --pr-display: none;

  /* 文字 */
  --fs-base: 17px;
  --lh: 1.9;
  --ls: .02em;

  /* カラム幅（本文は1行35～40字に収める） */
  --col-text: min(720px, 92vw);
  --col-wide: min(960px, 92vw);

  /* 色 */
  --fg: #1c1f1d;
  --muted: #5a635e;
  --accent: #0b8f5a;
  --accent-dark: #076f45;
  --accent-weak: #e7f4ee;
  --border: #dfe4e0;
  --bg: #ffffff;
  --bg-soft: #f6f8f6;
  --cta: #e2661f;
  --cta-dark: #c4520f;
  --alert: #c0392b;
  --alert-weak: #fdf0ee;
}

html {
  color-scheme: light;               /* OSダークモードでの意図しない反転を防ぐ */
  font-size: var(--fs-base);         /* remの基準をここに置く。見出し・表・注記が本文サイズに追従する */
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Meiryo, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: var(--lh);
  letter-spacing: var(--ls);
}

@media (min-width: 768px) {
  :root { --fs-base: 18px; }
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent-dark);
  text-decoration: underline;        /* 色だけに頼らない */
  text-underline-offset: .2em;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: #fff; color: var(--fg);
  padding: 10px 16px; border: 2px solid var(--accent); border-radius: 6px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: var(--col-text); margin-inline: auto; }
.wrap-wide { width: var(--col-wide); margin-inline: auto; }

/* ---------- ヘッダー ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  padding: 12px 0;
}
.site-header__inner {
  width: var(--col-wide); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.site-header__name {
  margin: 0;
  font-size: 1.45rem; font-weight: 700; line-height: 1.4; letter-spacing: -.045em; font-family: Arial, sans-serif;
}
.site-header__name a { color: var(--fg); text-decoration: none; }
.pr-badge {
  display: var(--pr-display, none);
  flex: none;
  border: 1px solid var(--border); border-radius: 4px;
  padding: 3px 10px;
  color: var(--muted); font-size: .75rem; letter-spacing: .08em;
}

/* ---------- パンくず ---------- */
.breadcrumb {
  width: var(--col-wide); margin: 14px auto 0;
  color: var(--muted); font-size: .8rem; line-height: 1.7;
}
.breadcrumb ol { list-style: none; margin: 0; padding: 0; }
.breadcrumb li { display: inline; }
.breadcrumb li + li::before { content: "›"; margin: 0 .5em; }

/* ---------- 記事ヘッダー ---------- */
.article-head { margin: 22px 0 0; }
.article-head h1 {
  margin: 0 0 16px;
  font-size: 1.62rem; line-height: 1.5; letter-spacing: .01em;
}
@media (min-width: 768px) {
  .article-head h1 { font-size: 1.9rem; }
}
.content .article-meta {
  margin: 0 0 22px;
  color: var(--muted); font-size: .82rem; line-height: 1.7;
}

.eyecatch { margin: 0 0 26px; }
/* アイキャッチは横長。解説図には下の .article-figure を使い、切り抜かない。 */
.eyecatch img {
  width: 100%; height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

/* ---------- 本文 ---------- */
.content p { margin: 0 0 1.25em; }
.content strong { font-weight: 700; background: linear-gradient(transparent 62%, #ffeaa7 62%); }

.content h2 {
  margin: 2.6em 0 .9em;
  padding: .1em 0 .1em .7em;
  border-left: 5px solid var(--accent);
  font-size: 1.32rem; line-height: 1.55;
}
.content h3 {
  margin: 2.1em 0 .8em;
  padding-bottom: .35em;
  border-bottom: 1px dashed var(--border);
  font-size: 1.1rem; line-height: 1.6;
}
@media (min-width: 768px) {
  .content h2 { font-size: 1.45rem; }
  .content h3 { font-size: 1.15rem; }
}

.content ul, .content ol { margin: 0 0 1.5em; padding-left: 1.4em; }
.content li { margin-bottom: .7em; }
.content .list-head { font-weight: 700; }

.content ol.steps { list-style: none; counter-reset: step; padding-left: 0; }
.content ol.steps > li {
  position: relative;
  margin-bottom: 1em; padding-left: 2.6em;
  counter-increment: step;
}
.content ol.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: .25em;
  width: 1.9em; height: 1.9em;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: .85rem; font-weight: 700; line-height: 1;
}

/* ---------- 表 ---------- */
.table-wrap { margin: 0 0 1.6em; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.content table {
  width: 100%; min-width: 0;
  border-collapse: collapse;
  font-size: .95rem; line-height: 1.7;
}
.content th, .content td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-align: left; vertical-align: top;
}
.content thead th, .content tbody th {
  background: var(--accent-weak);
  font-weight: 700; white-space: normal;
}
.content .table-note { margin: -1.2em 0 1.8em; color: var(--muted); font-size: .8rem; line-height: 1.7; }

/* ---------- 装飾ボックス（用途を限定して使う） ---------- */
.info-box, .tip-box, .data-box, .alert-box {
  margin: 0 0 1.6em; padding: 16px 18px;
  border-radius: 8px; font-size: .96rem;
}
.info-box  { background: var(--bg-soft); border: 1px solid var(--border); }
.tip-box   { background: #fff; border: 2px dashed var(--accent); }
.data-box  { background: var(--accent-weak); border: 1px solid #bfe0d0; }
.alert-box { background: var(--alert-weak); border: 1px solid #f0c9c2; }
.info-box p:last-child, .tip-box p:last-child,
.data-box p:last-child, .alert-box p:last-child { margin-bottom: 0; }
.box-head {
  display: block; margin-bottom: .5em;
  font-weight: 700; font-size: .88rem; letter-spacing: .04em;
}
.tip-box   .box-head { color: var(--accent-dark); }
.data-box  .box-head { color: var(--accent-dark); }
.alert-box .box-head { color: var(--alert); }

.quote-box {
  margin: 0 0 1.6em; padding: 14px 18px;
  border-left: 4px solid var(--border); background: var(--bg-soft);
  font-size: .96rem;
}
.quote-box cite { display: block; margin-top: .6em; color: var(--muted); font-size: .82rem; font-style: normal; }

/* ---------- 目次 ---------- */
.toc {
  margin: 0 0 2.4em; padding: 4px 18px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--bg-soft);
}
.toc summary {
  padding: 14px 0; cursor: pointer;
  font-weight: 700; font-size: 1rem;
}
.toc ol { margin: 0 0 14px; padding-left: 1.3em; font-size: .95rem; }
.toc li { margin-bottom: .5em; }
.toc ol ol { margin: .5em 0 0; font-size: .93rem; }
.toc a { color: var(--fg); }

/* ---------- FAQ ---------- */
.faq { margin-top: 2.6em; }
.faq-item { margin: 0 0 18px; padding: 0 0 18px; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.content .faq-q {
  margin: 0 0 .6em; padding-left: 1.9em; position: relative;
  font-size: 1.02rem; font-weight: 700; line-height: 1.6;
}
.faq-q::before {
  content: "Q"; position: absolute; left: 0; top: 0;
  width: 1.5em; height: 1.5em; display: grid; place-items: center;
  border-radius: 50%; background: var(--accent); color: #fff;
  font-size: .78rem; line-height: 1;
}
.content .faq-a { margin: 0; padding-left: 1.9em; font-size: .96rem; }

/* ---------- 関連記事 ---------- */
.related { margin-top: 2.6em; }
.related h2 { font-size: 1.15rem; }
.content .related-list { list-style: none; margin: 0; padding: 0; }
.related-list > li {
  margin: 0 0 12px; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--bg-soft);
}
.related-list a { display: block; font-weight: 700; font-size: 1rem; line-height: 1.55; }
.related-list span { display: block; margin-top: .35em; color: var(--muted); font-size: .86rem; line-height: 1.75; }

/* ---------- 参照元 ---------- */
.sources { margin-top: 2.6em; font-size: .88rem; }
.sources h2 { font-size: 1.05rem; border-left-width: 4px; }
.sources ul { padding-left: 1.3em; }
.sources li { margin-bottom: .5em; word-break: break-all; }

/* ---------- フッター ---------- */
.site-footer {
  margin-top: 56px; padding: 28px 0 40px;
  border-top: 1px solid var(--border); background: var(--bg-soft);
  color: var(--muted); font-size: .82rem; line-height: 1.9;
}
.site-footer__inner { width: var(--col-wide); margin-inline: auto; }
.site-footer p { margin: 0 0 .9em; }
.site-footer nav a { margin-right: 1.2em; color: var(--muted); }
.site-footer__copy { margin: 1em 0 0; }

/* ---------- 流入・シェア型の追加部品 ---------- */
html { scroll-behavior: smooth; }
h2[id], h3[id] { scroll-margin-top: 24px; }
.content { overflow-wrap: anywhere; }
.content .article-meta { display: flex; flex-wrap: wrap; gap: .25em 1.2em; }
.article-figure { margin: 0 0 1.6em; }
.article-figure img { width: 100%; height: auto; border-radius: 8px; }
.article-figure figcaption { margin-top: .5em; color: var(--muted); font-size: .8rem; line-height: 1.7; }
.content .table-wrap--wide table { min-width: 640px; }
.content table caption { text-align: left; font-weight: 700; margin-bottom: .5em; }
.table-hint { color: var(--muted); font-size: .8rem; }
.article-share { margin: 2em 0; padding-block: 1em; border-block: 1px solid var(--border); }
.share-button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--accent-dark); border-radius: 6px; background: #fff; color: var(--accent-dark); font: inherit; font-size: .88rem; cursor: pointer; }
.share-button:focus-visible, summary:focus-visible, .table-wrap:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.share-status { display: block; margin-top: .5em; color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.share-status { white-space: pre-line; }
.content .share-heading { margin-bottom: .75em; font-size: .95rem; font-weight: 700; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.share-actions a.share-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.share-button[aria-disabled="true"] { opacity: .55; cursor: default; }
.share-button:hover { background: var(--accent-weak); }
.article-author { margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--border); font-size: .88rem; color: var(--muted); }
.content .article-author__name { margin-bottom: .5em; font-weight: 700; color: var(--fg); }
.article-author p:last-child { margin-bottom: 0; }
.content .update-note p:last-child { margin-bottom: 0; }
.content .sources li { word-break: normal; overflow-wrap: anywhere; }
.content .toc a { display: inline-block; padding-block: .15em; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5em 1.2em; }
.site-footer nav a { margin-right: 0; }
@media (max-width: 479px) {
  .toc { padding-inline: 12px; }
  .content th, .content td { padding: 9px 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .article-share, .skip-link { display: none; }
  .wrap { width: 100%; }
  .table-wrap { overflow: visible; }
  .content .table-wrap--wide table { min-width: 0; }
}
/* 記事別にPRを表示する場合は、その記事のdata-article値で指定する。
body[data-article="対象記事のスラッグ"] { --pr-display: inline-flex; }
共有CSSの :root を変更すると、このCSSを使う全記事が対象になる。 */
