/* ============================================================
   shared.css — guide / privacy / disclaimer 共通スタイル
   ============================================================ */

:root {
  --bg: #f5f2ed;
  --panel-bg: #fdfcfa;
  --accent: #8b6f47;
  --accent-dark: #6b5335;
  --accent-light: #d4b896;
  --text: #2c2218;
  --text-muted: #7a6a58;
  --border: #d4c9b8;
  --radius: 8px;
  --font-serif: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --font-sans: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic UI', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.9;
}

/* ヘッダー */
.header {
  background: var(--accent-dark);
  color: #fff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 76px;
}
.header-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  color: #fff;
  margin: 0;
  margin-block: 0;
  padding: 0;
  display: block;
  line-height: 1.2;
}
.header-sub {
  font-size: 13px;
  opacity: .8;
  margin-top: 3px;
  letter-spacing: .04em;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .header-sub { display: none; }
  .header-title { font-size: 17px; }
}

/* ツールを開くボタン */
.btn-tool {
  background: #fff;
  color: var(--accent-dark);
  border: none;
  padding: 9px 20px;
  border-radius: 6px;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .04em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: .2s;
  white-space: nowrap;
}
.btn-tool:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* ============================================================
   ガイドサブナビ（guide-nav.js により全ガイドページに自動挿入）
   ============================================================ */
.guide-subnav {
  background: var(--panel-bg);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.guide-subnav::-webkit-scrollbar { display: none; }
.guide-subnav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.guide-subnav-link:hover { color: var(--accent-dark); border-bottom-color: var(--accent-light); }
.guide-subnav-link.active { color: var(--accent-dark); border-bottom-color: var(--accent); }
@media (max-width: 768px) {
  .guide-subnav { padding: 0 12px; }
  .guide-subnav-link { padding: 9px 12px; font-size: 12px; }
}

/* ============================================================
   ガイドページ共通レイアウト・コンポーネント
   新規ページ追加時は shared.css を読み込むだけでOK
   ページ固有スタイルのみ各 <style> ブロックに記述する
   ============================================================ */

/* ページラッパー */
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 56px 48px 80px; }

/* パンくず */
.breadcrumb { font-size: 14px; color: var(--text-muted); margin-bottom: 36px; display: flex; align-items: center; gap: 6px; }
.breadcrumb a { color: var(--accent-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { opacity: .5; }

/* ページタイトル・リード */
.page-title { font-family: var(--font-serif); font-size: 30px; font-weight: 700; color: var(--accent-dark); letter-spacing: .06em; margin-bottom: 12px; line-height: 1.4; }
.page-lead { color: var(--text-muted); line-height: 1.9; margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }

/* 目次 */
.toc { background: var(--panel-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 48px; }
.toc-title { font-family: var(--font-serif); font-size: 15px; font-weight: 700; color: var(--text-muted); letter-spacing: .1em; margin-bottom: 10px; }
.toc ol { list-style: none; display: flex; flex-direction: column; gap: 6px; counter-reset: toc; }
.toc li { counter-increment: toc; display: flex; gap: 8px; }
.toc li::before { content: counter(toc) "."; color: var(--accent); font-weight: 700; flex-shrink: 0; min-width: 18px; }
.toc a { color: var(--accent-dark); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* セクション */
.section { margin-bottom: 56px; }
.section-heading { font-family: var(--font-serif); font-weight: 700; color: var(--accent-dark); letter-spacing: .06em; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--accent-light); display: flex; align-items: center; gap: 10px; }
.section-heading .num { background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* 本文・共通フォントサイズ（ここを変更すれば全ガイドページに反映） */
p { font-size: 17px; line-height: 2.0; color: var(--text-muted); margin-bottom: 18px; }
.page-lead { font-size: 17px; }
.toc li { font-size: 16px; }
.section-heading { font-size: 22px; }

/* ステップリスト（複数ページで共用） */
.steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 14px; }
.steps li { counter-increment: step; display: flex; align-items: flex-start; gap: 14px; line-height: 1.85; color: var(--text-muted); }
.steps li::before { content: counter(step); background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.steps li { font-size: 17px; }

/* 注意ボックス */
.note-box { background: #fdf8f2; border: 1px solid var(--accent-light); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 20px 0; color: var(--text-muted); line-height: 1.8; }
.note-box { font-size: 16px; }
.note-box strong { color: var(--accent-dark); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 22px; }
.faq-q { font-weight: 700; color: var(--text); margin-bottom: 6px; display: flex; gap: 8px; align-items: flex-start; }
.faq-q::before { content: 'Q'; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; width: 20px; height: 20px; border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.faq-a { line-height: 2.0; color: var(--text-muted); padding-left: 28px; }
.faq-q { font-size: 17px; }
.faq-a { font-size: 16.5px; }

/* 関連リンク */
.related-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.related-link { display: inline-flex; align-items: center; gap: 6px; background: var(--panel-bg); border: 1px solid var(--border); color: var(--accent-dark); padding: 9px 16px; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none; transition: .2s; }
.related-link:hover { border-color: var(--accent); background: var(--accent-light); }
/* JS自動生成「関連ページ」ブロック */
.guide-related { margin-top: 48px; margin-bottom: 8px; }
.guide-related-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.guide-related .related-links { margin-top: 0; }

/* CTAバナー */
.cta-banner { background: var(--accent-dark); color: #fff; border-radius: 12px; padding: 32px 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 64px; flex-wrap: wrap; }
.cta-text h2 { font-family: var(--font-serif); font-size: 20px; font-weight: 700; margin-bottom: 6px; letter-spacing: .05em; }
.cta-text p { font-size: 15px; opacity: .8; margin: 0; color: #fff; line-height: 1.6; }
.btn-cta { background: #fff; color: var(--accent-dark); border: none; padding: 14px 32px; border-radius: 8px; font-family: var(--font-serif); font-size: 17px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; transition: .2s; display: inline-block; }
.btn-cta:hover { background: var(--accent-light); transform: translateY(-1px); }

/* フッター */
.footer { background: var(--panel-bg); border-top: 1px solid var(--border); padding: 24px 32px; text-align: center; }
.footer-nav { display: flex; gap: 4px 16px; justify-content: center; flex-wrap: wrap; font-size: 12px; margin-bottom: 10px; }
.footer-nav a { color: var(--text-muted); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; color: var(--accent-dark); }
.footer-nav span { color: var(--border); }
.footer-copy { font-size: 11px; color: var(--text-muted); opacity: .6; }

/* ページ固有フォントサイズ（特殊コンポーネント） */
.info-list li { font-size: 15.5px; }
.compare-table { font-size: 15px; }
.pattern-item { font-size: 16px; }
.tl-body { font-size: 17px; }
.cl-table { font-size: 15px; }
.source-table { font-size: 15px; }
.pattern-table { font-size: 15px; }

/* レスポンシブ（全ガイドページ共通） */
@media (max-width: 768px) {
  .page-wrap { padding: 28px 16px 56px; }
  .breadcrumb { font-size: 12px; }
  .page-title { font-size: 22px; }
  .section-heading { font-size: 18px; }
  .cta-banner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 20px; }
  .btn-cta { width: 100%; text-align: center; }
  .footer { padding: 20px 16px; }
  .footer-nav { gap: 4px 10px; }
}
