/* 公害防止管理者 独学ノート — kougai-houki-style.css
   構造法規サイト(houki-style.css)のデザインを移植・navy=#26364f・アフィリエイト無し */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; }
body {
  font-family: '游ゴシック', YuGothic, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'BIZ UDPGothic', sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.85;
}
a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
strong { font-weight: 700; }

/* ===== テキスト強調 ===== */
.marker { background: linear-gradient(transparent 0, #ff9 0); padding: 1px 2px; }
.marker-under { background: linear-gradient(transparent 60%, #ff9 60%); padding: 0 2px; font-weight: 700; }
.bold-red { font-weight: 700; color: #e60033; }

/* ===== レイアウト ===== */
.site-wrapper { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* ===== ヘッダー ===== */
.site-header { border-bottom: 3px solid #26364f; padding: 20px 0 14px; }
.site-title { font-size: 1.55em; font-weight: 700; letter-spacing: 0.05em; color: #1a1a1a; margin-bottom: 2px; }
.site-title a { color: inherit; }
.site-subtitle { font-size: 0.78em; color: #5a6a7a; margin-top: 4px; letter-spacing: 0.06em; }

/* ===== ナビ ===== */
.site-nav { background: #26364f; margin: 0 -20px; padding: 0 20px; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 10px 14px; color: #cdd9e8; font-size: 0.83em; letter-spacing: 0.04em; }
.site-nav a:hover { background: #3a4f73; text-decoration: none; color: #fff; }

/* ===== パンくず ===== */
.breadcrumb { font-size: 0.78em; color: #7a8a9a; margin: 12px 0 20px; }
.breadcrumb a { color: #7a8a9a; }
.breadcrumb span { margin: 0 4px; }
/* 旧contents5/pan-list-inline（移行した記事のパンくず） */
.contents5 { margin: 12px 0 6px; }
.pan-list-inline { list-style: none; margin: 0; padding: 0; font-size: 0.78em; color: #7a8a9a; }
.pan-list-inline li, .pan-list-inline li.home { display: inline; }
.pan-list-inline a { color: #7a8a9a; }

/* ===== 記事ヘッダー ===== */
.article-header { margin-bottom: 28px; }
h1.article-title {
  font-size: 1.42em;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #0f1f35;
  border-left: 4px solid #26364f;
  padding-left: 12px;
  margin-bottom: 8px;
}
.article-meta { font-size: 0.76em; color: #7a8a9a; }

/* ===== 見出し ===== */
h1 { font-size: 1.5em; font-weight: 700; color: #0f1f35; line-height: 1.5; margin: 8px 0 16px; letter-spacing: 0.02em; }
h2 {
  font-size: 1.22em;
  font-weight: 700;
  color: #0f1f35;
  border-bottom: 2px solid #26364f;
  padding-bottom: 5px;
  margin: 36px 0 13px;
  letter-spacing: 0.04em;
}
h3 {
  font-size: 1.1em;
  font-weight: 700;
  color: #1a1a1a;
  margin: 22px 0 8px;
  padding-left: 10px;
  border-left: 3px solid #c5d2de;
}

/* ===== 本文 ===== */
p { margin-bottom: 1em; font-size: 1em; }
ul, ol { margin: 0.4em 0 1em 1.6em; font-size: 1em; }
li { margin-bottom: 0.25em; }

/* ===== テーブル ===== */
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 1em; }
th { background: #26364f; color: #fff; padding: 8px 10px; font-weight: 600; letter-spacing: 0.04em; text-align: left; }
td { border: 1px solid #c5d2de; padding: 7px 10px; vertical-align: top; }
tr:nth-child(even) td { background: #f0f5fa; }

/* ===== 条文・参考ボックス ===== */
.law-box {
  background: #f0f5fa;
  border: 1px solid #c5d2de;
  border-left: 4px solid #26364f;
  padding: 13px 16px;
  margin: 20px 0;
  font-size: 1em;
}
.law-box .law-label {
  font-size: 0.84em;
  font-weight: 700;
  color: #26364f;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

/* ===== 出典ボックス ===== */
.source-box {
  border-top: 1px solid #c5d2de;
  padding-top: 12px;
  margin-top: 28px;
  font-size: 0.80em;
  color: #5a6a7a;
}
.source-box .source-title, .source-box .source-box-title {
  font-weight: 700;
  font-size: 0.9em;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
  color: #3a4a5a;
}
.source-box ul { margin-left: 1.2em; }

/* ===== 免責ボックス ===== */
.disclaimer-box {
  border: 1px solid #c5d2de;
  padding: 11px 14px;
  margin: 24px 0;
  font-size: 0.80em;
  color: #5a6a7a;
  background: #f8f9fb;
}

/* ===== 著者ボックス ===== */
.author-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-top: 1px solid #c5d2de;
  border-bottom: 1px solid #c5d2de;
  padding: 14px 0;
  margin: 28px 0;
}
.author-box-body { flex: 1; font-size: 0.86em; }
.author-box-label { font-size: 0.76em; color: #7a8a9a; margin-bottom: 2px; letter-spacing: 0.04em; }
.author-box-name { font-weight: 700; font-size: 1em; margin-bottom: 4px; }
.author-box-bio { color: #3a4a5a; line-height: 1.75; }

/* ===== 関連記事 ===== */
.related-box { border: 1px solid #c5d2de; margin: 28px 0; }
.related-box-title {
  background: #f0f5fa;
  padding: 8px 14px;
  font-size: 0.84em;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #26364f;
  border-bottom: 1px solid #c5d2de;
}
.related-link-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 8px 14px !important;
  font-size: 0.86em;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.related-link-list li::before { content: "→ "; color: #26364f; }

/* ===== フッター ===== */
.site-footer {
  border-top: 2px solid #26364f;
  padding: 16px 0;
  margin-top: 48px;
  font-size: 0.76em;
  color: #7a8a9a;
  text-align: center;
  letter-spacing: 0.05em;
}
.site-footer a { color: #7a8a9a; }

/* ===== 2カラムレイアウト ===== */
.page-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
  margin-top: 24px;
  align-items: start;
}
.page-sidebar {
  border-left: 1px solid #c5d2de;
  padding-left: 20px;
}
.sidebar-title {
  font-size: 0.88em;
  font-weight: 700;
  color: #26364f;
  letter-spacing: 0.06em;
  border-bottom: 1px solid #c5d2de;
  padding-bottom: 5px;
  margin-bottom: 10px;
}
.sidebar-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.88em;
}
.sidebar-list li { margin-bottom: 6px; }
.sidebar-list li::before { content: "›"; color: #26364f; margin-right: 4px; }
.sidebar-list a { color: #0066cc; }
.sidebar-list a:hover { color: #004499; text-decoration: underline; }

/* ===== インデックスページ専用 ===== */
.index-intro {
  font-size: 0.92em;
  line-height: 1.9;
  margin: 0 0 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid #c5d2de;
  color: #2a3a4a;
}
.index-category { margin: 22px 0; }
.index-category:first-child { margin-top: 0; }
.index-category-title {
  font-size: 1.02em;
  font-weight: 700;
  color: #0f1f35;
  background: #e8eef5;
  border-left: 4px solid #26364f;
  padding: 7px 12px;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.index-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 0 0 4px !important;
  font-size: 1em;
}
.index-list li { margin-bottom: 5px; display: table; }
.index-list li::before { content: "›"; color: #26364f; margin-right: 6px; font-weight: 700; }
.index-list a { color: #0066cc; }
.index-list a:hover { color: #004499; text-decoration: underline; }
.index-note { font-size: 0.92em; color: #2a3a4a; padding-left: 4px; }

/* ===== 記事本文の器（新記事=article.page-main／移行記事=.contents1 両対応） ===== */
.contents1 { } /* 旧記事のラッパー。page-main と同様にフル幅で流す */
article.page-main svg, .contents1 svg { display: block; width: 100%; height: auto; max-width: 600px; margin: 10px auto; }
figure { margin: 18px 0; }
figure img { width: 100%; height: auto; display: block; }
figcaption { font-size: 0.78em; color: #5a6a7a; margin-top: 6px; text-align: center; }

/* ===== 吹き出し（sokuta-voice｜短い1問・名前ラベルは任意） ===== */
.sokuta-voice { display: flex; gap: 14px; align-items: flex-start; margin: 20px 0 28px; }
.sokuta-voice-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 6px; }
.sokuta-voice-bubble { background: #f0f5fa; border: 1px solid #c5d2de; border-radius: 0 10px 10px 10px; padding: 10px 14px; position: relative; font-size: 1em; }
.sokuta-voice-bubble::before { content: ''; position: absolute; left: -9px; top: 12px; border: 8px solid transparent; border-right-color: #c5d2de; border-left: none; border-top: none; }
.sokuta-voice-bubble::after { content: ''; position: absolute; left: -7px; top: 13px; border: 7px solid transparent; border-right-color: #f0f5fa; border-left: none; border-top: none; }
.sokuta-voice-name { font-size: 0.84em; font-weight: 700; color: #26364f; margin-bottom: 4px !important; letter-spacing: 0.04em; }
.sokuta-voice-bubble p:last-child { margin-bottom: 0; }

/* ===== 要点box ===== */
.article-point-box { background: #f0f5fa; border: 1px solid #c5d2de; border-left: 4px solid #26364f; padding: 13px 16px; margin: 20px 0; }
.article-point-title { font-size: 0.86em; font-weight: 700; color: #26364f; letter-spacing: 0.06em; margin-bottom: 6px; }
.article-point-box ul { margin: 6px 0 0 1.4em; }

/* ===== 視線誘導・かみ砕き（任意） ===== */
.article-guide-box { background: #f0f5fa; border: 1px solid #c5d2de; padding: 10px 14px; margin: 14px 0; }
.simple-note { background: #f8f9fb; border: 1px solid #dde3ea; padding: 10px 14px; margin: 14px 0; font-size: 0.95em; }

/* ===== 混同しやすい用語box ===== */
.confusing-terms-box { background: #fffbf3; border: 1px solid #e6d2a8; border-left: 4px solid #b8860b; padding: 13px 16px; margin: 22px 0; }
.confusing-terms-title { font-size: 0.86em; font-weight: 700; color: #8a6410; letter-spacing: 0.06em; margin-bottom: 6px; }
.confusing-term-name { font-weight: 700; color: #0f1f35; margin: 6px 0 4px; }

/* ===== 注意box（まちがえやすいポイント＝試験ポイント相当） ===== */
.admin-comment-box { background: #fff5f5; border: 1px solid #e6b8b8; border-left: 4px solid #c0392b; padding: 13px 16px; margin: 22px 0; }
.admin-comment-title { font-size: 0.86em; font-weight: 700; color: #c0392b; letter-spacing: 0.06em; margin-bottom: 6px; }
.kakomon-ref { color: #c0392b; font-weight: 700; }

/* ===== 理解度チェック（qa-block／一問一答） ===== */
.qa-block { margin-bottom: 12px; }
.qa-header { display: flex; gap: 7px; align-items: baseline; }
.qa-no { font-weight: 700; color: #26364f; }
.qa-q { font-weight: 700; margin-bottom: 4px; }
details.qa-answer { margin-bottom: 4px; }
details.qa-answer summary { cursor: pointer; list-style: none; display: inline-block; padding: 2px 10px; font-size: 0.80em; font-weight: 700; color: #4a5568; background: #eef0f4; border-radius: 3px; user-select: none; margin: 2px 0 4px; }
details.qa-answer summary::-webkit-details-marker { display: none; }
details.qa-answer summary::before { content: "▼ 答えを見る"; }
details.qa-answer[open] summary::before { content: "▲ 閉じる"; }
.qa-answer-body { padding: 4px 0 0 1em; }
.qa-answer-body p { margin-bottom: 0.5em; }

/* ===== 確認日 ===== */
.article-date-note { font-size: 0.78em; color: #7a8a9a; margin: 18px 0 0; }

/* ===== 関連リンク（contents4／sideul） ===== */
.contents4 { margin: 28px 0 0; }
.contents4 h4 { font-size: 0.9em; font-weight: 700; color: #26364f; border-bottom: 1px solid #c5d2de; padding-bottom: 5px; margin: 22px 0 10px; letter-spacing: 0.04em; }
.sideul { list-style: none !important; margin: 0 !important; padding: 0 !important; font-size: 0.9em; }
.sideul li { margin-bottom: 5px; }
.sideul li::before { content: "›"; color: #26364f; margin-right: 5px; font-weight: 700; }

/* ===== レスポンシブ ===== */
@media (max-width: 680px) {
  .page-body { grid-template-columns: 1fr; }
  .page-sidebar { border-left: none; border-top: 1px solid #c5d2de; padding-left: 0; padding-top: 20px; }
  h1.article-title { font-size: 1.2em; }
  .site-nav a { padding: 8px 10px; font-size: 0.80em; }
  table { font-size: 0.82em; }
}
