/* AIサイト仕上げノート 共通スタイル
   数値の根拠: products/site-factory/design-system/和文デザイン規則.md
   （本文 16px・行間 1.8・字間 0.04em・墨色・アクセント 1 色の点使い・8px グリッド） */

:root {
  --ink: #1e2530;
  --ink-sub: #4a5260;
  --line: #dcd8cf;
  --base: #ffffff;
  --paper: #f7f5f0;
  --accent: #c2410c;
  --accent-soft: #fdf1ea;
  --ok: #2f6b4f;
  --warn: #9a5b00;
  --ng: #b42318;
  --measure: 720px;
}

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

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

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

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

a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }

.container { margin-inline: auto; padding-inline: 24px; max-width: 1040px; }
.container--narrow { max-width: calc(var(--measure) + 48px); }

/* 告知バー（AI 運営・PR を常時表示） */
.notice-bar {
  background: var(--ink);
  color: #f2f0eb;
  font-size: 13px;
  line-height: 1.6;
  padding-block: 8px;
}

/* ヘッダー */
.site-header { border-bottom: 1px solid var(--line); padding-block: 16px; }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.site-logo { font-weight: 700; font-size: 18px; letter-spacing: 0.02em; text-decoration: none; }
.site-logo__dot { color: var(--accent); }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; }
.site-nav a { text-decoration: none; }

/* トップ: 冒頭 */
.hero { background: var(--paper); padding-block: 64px 56px; }
.hero__label { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.12em; }
.hero__label::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 0.1em; }
.hero__title { margin: 16px 0 0; font-size: clamp(28px, 4.6vw, 44px); line-height: 1.4; letter-spacing: -0.01em; }
.hero__lead { margin: 24px 0 0; max-width: 40em; color: var(--ink-sub); }

/* セクション */
.section { padding-block: 56px; }
.section--paper { background: var(--paper); }
.section__en { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; color: var(--accent); text-transform: uppercase; }
.section__title { margin: 8px 0 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.5; }
.section__lead { margin: 16px 0 0; color: var(--ink-sub); max-width: 40em; }

/* 困りごとの入口 */
.trouble-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.trouble-list__item { border: 1px solid var(--line); border-radius: 8px; background: var(--base); }
.trouble-list__link { display: block; padding: 24px; text-decoration: none; }
.trouble-list__q { display: block; font-weight: 700; line-height: 1.6; }
.trouble-list__a { display: block; margin-top: 8px; font-size: 14px; color: var(--ink-sub); }
.trouble-list__status { display: inline-block; margin-top: 16px; font-size: 12px; color: var(--ink-sub); border-top: 2px solid var(--accent); padding-top: 4px; }
.trouble-list__item--soon .trouble-list__link { color: var(--ink-sub); }
.trouble-list__item--soon .trouble-list__status { border-top-color: var(--line); }

/* 記事一覧 */
.article-list { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.article-list__item { border-bottom: 1px solid var(--line); padding-block: 16px; }
.article-list__no { display: inline-block; min-width: 3em; font-size: 13px; color: var(--accent); font-weight: 700; }
.article-list__soon { font-size: 12px; color: var(--ink-sub); margin-left: 8px; }

/* ツールへの導線（トップ・記事共通） */
.tool-cta { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 8px; padding: 24px; margin-block: 40px; }
.tool-cta__title { margin: 0; font-weight: 700; font-size: 18px; line-height: 1.6; }
.tool-cta__body { margin: 8px 0 0; font-size: 15px; }
.tool-cta__note { margin: 8px 0 0; font-size: 13px; color: var(--ink-sub); }

/* 簡易チェックへのリンク（ボタン 1 つ） */
.tool-link { margin: 24px 0 0; }
.tool-link__button { display: inline-block; padding: 12px 24px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; line-height: 1.6; }
.tool-link__button:hover { color: #fff; background: #9a3412; }
.tool-link__button::after { content: " →"; }

/* 記事 */
.breadcrumb { margin: 24px 0 0; font-size: 13px; color: var(--ink-sub); }
.article { padding-block: 24px 64px; }
.article__title { margin: 16px 0 0; font-size: clamp(24px, 3.6vw, 34px); line-height: 1.5; letter-spacing: -0.01em; }
.article__meta { margin: 8px 0 0; font-size: 13px; color: var(--ink-sub); }
.article__lead { margin: 24px 0 0; }
.article h2 { margin: 56px 0 0; padding-top: 16px; border-top: 2px solid var(--ink); font-size: clamp(20px, 2.6vw, 24px); line-height: 1.6; }
.article h3 { margin: 40px 0 0; font-size: 18px; line-height: 1.6; }
.article h3::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--accent); margin-right: 8px; vertical-align: 0.15em; }
.article .text { margin: 16px 0 0; }
.article ul.text, .article ol.text { padding-left: 1.5em; }
.article li + li { margin-top: 8px; }
.article code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }

.toc { margin: 32px 0 0; padding: 24px; background: var(--paper); border-radius: 8px; }
.toc__title { margin: 0; font-weight: 700; font-size: 15px; }
.toc__list { margin: 8px 0 0; padding-left: 1.5em; font-size: 15px; }

.code-block { margin: 16px 0 0; padding: 16px; background: #222a35; color: #eef0f3; border-radius: 8px; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.7; letter-spacing: 0; overflow-wrap: normal; white-space: pre; }

.check-card { margin: 24px 0 0; border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.check-card__head { display: flex; align-items: baseline; gap: 12px; }
.check-card__no { flex: none; font-weight: 700; color: var(--accent); font-size: 14px; }
.check-card__title { margin: 0; font-size: 18px; line-height: 1.6; }
.check-card__body { margin: 8px 0 0; }
.check-card__how { margin: 16px 0 0; padding: 16px; background: var(--paper); border-radius: 4px; font-size: 15px; }
.check-card__how-label { display: block; font-weight: 700; font-size: 13px; color: var(--ink-sub); }

.note { margin: 24px 0 0; padding: 16px; border: 1px solid var(--line); border-radius: 4px; font-size: 14px; color: var(--ink-sub); }

.table-scroll { margin: 16px 0 0; overflow-x: auto; }
.data-table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.data-table th, .data-table td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.data-table th { background: var(--paper); }

.sources { margin: 56px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-sub); }
.sources__title { margin: 0; font-weight: 700; }
.sources__list { margin: 8px 0 0; padding-left: 1.5em; }

.related { margin: 40px 0 0; }
.related__title { margin: 0; font-weight: 700; }

/* フッター */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px; font-size: 13px; color: var(--ink-sub); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer__copy { margin: 16px 0 0; }

@media (max-width: 600px) {
  .container { padding-inline: 16px; }
  .hero { padding-block: 40px; }
  .section { padding-block: 40px; }
  .check-card { padding: 16px; }
}
.notice-bar__text { margin-block: 0; }
/* pre の中の code には本文用の淡い背景・枠を付けない（黒い箱の上で文字が潰れるため） */
.article .code-block code { background: none; border: 0; border-radius: 0; padding: 0; font-size: inherit; color: inherit; }
/* 確認カードの見出しは記事の h3 の余白・印を使わない（カード上端に余白が空くため） */
.article .check-card__title { margin: 0; }
.article .check-card__title::before { content: none; }
/* 表の中のコード（og:title 等）は途中で折らない。body の overflow-wrap: anywhere が継承されると列の最小幅が 1 文字まで縮み、
   自動の列幅で 1 列目が狭く割り当てられて語の途中で折れていた（2026-11-18 SP360 で実測）。表は横スクロールの箱に入っているのではみ出さない */
.data-table code { overflow-wrap: normal; white-space: nowrap; }
