@charset "UTF-8";

/* ================================================================
   初心者が学ぶ測量士補 共通スタイル
   article-style2.css をベースに新サイト用クリーンアップ版
   固定幅 1040px → max-width 1040px 修正済み
   webkit専用プレフィックス削除済み
   カエレバ/ヨメレバ 不要スタイル削除済み
   ================================================================ */

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

/* 折り畳み式目次（旧型 checkbox 式） */
.toc-container { background: #f8f9fa; border: 2px solid #ccc; padding: 10px; margin-bottom: 20px; border-radius: 8px; box-shadow: 2px 2px 8px rgba(0,0,0,0.1); }
.toc-title { font-weight: bold !important; cursor: pointer !important; display: block !important; background: #e0e0e0 !important; padding: 8px !important; text-align: center !important; border-radius: 5px !important; color: #333 !important; }
.toc-list { list-style: none; padding: 10px; margin: 0; }
.toc-list li { padding: 5px 0; }
.toc-list a { text-decoration: none; color: #0073e6; font-weight: bold; }
.toc-checkbox { display: none; }
.toc-content { display: none; }
.toc-checkbox:checked + .toc-title + .toc-content { display: block; }

/* hover effect on images */
.figure img, .figure2 img { opacity: 1; transition: .3s ease-in-out; }
.figure:hover img, .figure2:hover img { opacity: .5; }

/* ================================================================
   Mobile (max-width: 950px)
   ================================================================ */
@media screen and (max-width: 950px) {
  .wrapper { overflow: hidden; }
  ol, ul { list-style: none; }
  html { font: 17px "メイリオ", Meiryo, Osaka, "ヒラギノ角ゴ Pro W3", "ＭＳ ゴシック", Arial, sans-serif; }
  section { display: block; }
  body { background: #fff; width: 100%; color: #313336; }
  header { width: 100%; overflow: hidden; }

  .topmenu { width: 100%; height: 80px; margin: 0 auto; background: #1e5c3a; font-family: 'Avenir','Helvetica Neue','Helvetica','Arial','Hiragino Sans','ヒラギノ角ゴシック',YuGothic,'Yu Gothic','メイリオ',Meiryo,'ＭＳ Ｐゴシック','MS PGothic'; }
  span a:link, span a:visited, span a:active { text-decoration: none; color: #ffffff; }
  span a { position: relative; display: inline-block; transition: .3s; font-size: 12px; }
  span a::after { position: absolute; bottom: 0; left: 50%; content: ''; width: 0; height: 1px; background-color: #ffffff; transition: .3s; transform: translateX(-50%); }
  span a:hover::after { width: 100%; }
  span { font-weight: bold; }

  .topmenu2 { padding: 0; margin-top: 10px; margin-left: 4%; margin-right: 4%; width: 100%; font-family: 'Avenir','Helvetica Neue','Helvetica','Arial','Hiragino Sans','ヒラギノ角ゴシック',YuGothic,'Yu Gothic','メイリオ',Meiryo,'ＭＳ Ｐゴシック','MS PGothic'; font-size: 12px; }
  .topmenu3 { width: 100%; height: 30px; margin: 0 auto; padding-top: 10px; text-align: center; }
  .sideul { border: 0; }
  .h_image { padding: 0; position: relative; background-color: #1e5c3a; margin: 0; text-align: center; }
  p { font-size: 17px; line-height: 1.7; color: #333333; margin-bottom: 1.0em; }
  section { padding: 15px 5px 15px 10px; margin: 0; }

  .arrow { position: relative; display: inline-block; padding: 0 0 0 17px; vertical-align: middle; text-decoration: none; font-size: 17px; }
  .arrow::before, .arrow::after { position: absolute; top: 0; bottom: 0; left: 0; margin: auto; content: ""; vertical-align: middle; }
  .sample4-3::before { width: 12px; height: 12px; border-radius: 25%; background: #0044CC; }
  .sample4-3::after { left: 5px; box-sizing: border-box; width: 3px; height: 3px; border: 3px solid transparent; border-left: 3px solid #fff; }

  a:link, a:visited, a:active { text-decoration: underline; color: #0044CC; }
  a:hover { text-decoration: underline; color: #0044CC; }

  .pan-list-inline { margin: 0; padding: 0; }
  .pan-list-inline li { display: inline; margin: 0; padding: 0; list-style-type: none; font-size: 6pt; }
  .contents4 { display: none; }
  .contents5 { float: left; width: 100%; background-color: #ffffff; margin-bottom: 0; margin-top: 10px; margin-left: 6px; border: 0; }
  * { margin: 0; padding: 0; }
  .contents1 { padding: 4% 5px 4% 10px; margin-left: 10px; margin-right: 10px; }
  .contents33 { padding: 4% 5px 4% 10px; margin-left: 10px; margin-right: 10px; }
  .contents35 { display: none; }

  h1 { font-family: "游ゴシック", YuGothic, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif; display: block; font-size: 1.5em; margin: 1em 0 0.5em; font-weight: bold; }
  h2 { position: relative; padding: .5em .75em; background-color: #1e5c3a; border-radius: 11px; margin-top: 2.5em; margin-bottom: 1.0em; color: #ffffff; display: block; }
  h2::after { position: absolute; top: 100%; left: 30px; content: ''; width: 0; height: 0; border: 10px solid transparent; border-top: 15px solid #1e5c3a; }
  h3 { font-size: 1.30em; font-family: "游ゴシック", YuGothic, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif; color: #3E3E3E; border-left: solid 6px #1e5c3a; padding: .7em 0 .7em .8em; margin-top: 2.5em; margin-bottom: 0.5em; font-weight: bold; }
  h4 { font-size: 17px; font-family: "游ゴシック", YuGothic, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif; color: #333333; margin: 2.0em 0 0.5em; font-weight: bold; padding: .5em .75em; background-color: whiteSmoke; border-radius: 6px; }
  h5 { font-size: 17px; color: #ffffff; font-weight: bold; padding: .5em .75em; background-color: #1e5c3a; border-radius: 6px; }

  ul { padding-left: 20px; padding-top: 5px; padding-bottom: 5px; margin-left: 20px; margin-bottom: 20px; margin-top: 10px; border: 2px skyblue dashed; list-style-type: none; font-size: 17px; }
  .sideul { border: 0; }
  table, td, th { border: 1px solid #595959; border-collapse: collapse; }
  td, th { padding: 3px; width: 150px; height: 25px; }
  th { background: #f0e6cc; }
}

/* ================================================================
   Desktop (min-width: 950px)
   ================================================================ */
@media screen and (min-width: 950px) {
  .wrapper { max-width: 1040px; margin: 0 auto; line-height: 1.5; }
  .main { max-width: 1040px; }
  a:link, a:visited, a:active { text-decoration: underline; color: #0044CC; }
  a:hover { text-decoration: underline; color: #0044CC; }

  .arrow { position: relative; display: inline-block; padding: 0 0 0 17px; color: #000; vertical-align: middle; text-decoration: none; font-size: 17px; }
  .arrow::before, .arrow::after { position: absolute; top: 0; bottom: 0; left: 0; margin: auto; content: ""; vertical-align: middle; }
  .sample4-3::before { width: 12px; height: 12px; border-radius: 25%; background: #0044CC; }
  .sample4-3::after { left: 5px; box-sizing: border-box; width: 3px; height: 3px; border: 3px solid transparent; border-left: 3px solid #fff; }

  body { font-family: 'Avenir','Helvetica Neue','Helvetica','Arial','Hiragino Sans','ヒラギノ角ゴシック',YuGothic,'Yu Gothic','メイリオ',Meiryo,'ＭＳ Ｐゴシック','MS PGothic'; }
  .header { width: 100%; height: 100%; background: #1e5c3a; }
  .h_image { padding: 0; position: relative; background-color: #1e5c3a; margin: 0; text-align: center; }

  .topmenu { max-width: 1040px; height: 50px; margin: 0 auto; background: #1e5c3a; font-family: 'Avenir','Helvetica Neue','Helvetica','Arial','Hiragino Sans','ヒラギノ角ゴシック',YuGothic,'Yu Gothic','メイリオ',Meiryo,'ＭＳ Ｐゴシック','MS PGothic'; }
  span a:link, span a:visited, span a:active { text-decoration: none; color: #ffffff; }
  span a { position: relative; display: inline-block; transition: .3s; }
  span a::after { position: absolute; bottom: 0; left: 50%; content: ''; width: 0; height: 1px; background-color: #ffffff; transition: .3s; transform: translateX(-50%); }
  span a:hover::after { width: 100%; }
  span { font-weight: bold; font-size: 0.90rem; }
  .topmenu2 { padding-right: 14px; padding-left: 14px; margin-top: 10px; }
  .topmenu3 { max-width: 1040px; height: 40px; margin: 0 auto; padding-top: 10px; }

  .contents1 { float: left; width: 680px; background-color: #ffffff; margin-top: 10px; margin-bottom: 10px; margin-left: 0; }
  .contents5 { float: left; width: 100%; background-color: #ffffff; margin-top: 10px; margin-bottom: 0; margin-left: 0; clear: both; }
  .pan-list-inline li.home { display: inline; margin: 0; padding: 0; list-style-type: none; font-size: 10pt; }
  .contents33 { float: right; width: 336px; margin-top: 5px; margin-bottom: 5px; margin-left: 15px; }
  .contents34 { float: right; width: 336px; margin-top: 10px; margin-bottom: 30px; margin-left: 15px; }
  .contents35 { float: right; width: 336px; margin-top: 10px; margin-bottom: 30px; margin-left: 15px; }

  .saitonaikou-top { float: left; width: 1038px; background-color: #ffffff; margin-bottom: 0; margin-top: 0; padding-bottom: 10px; padding-top: 10px; clear: both; }
  .saitonaikou { float: left; width: 1038px; background-color: #ffffff; border: 1px solid #dadada; margin-bottom: 10px; margin-top: 10px; padding-bottom: 0; padding-top: 10px; clear: both; }

  section { padding: 4% 5px 0 10px; margin-left: 10px; margin-right: 10px; }
  .footer { margin: auto; clear: both; max-width: 1065px; height: 100%; background-color: #1e5c3a; }
  .kasentaitoru { float: left; width: 990px; background-color: #ffffff; margin-top: 0; margin-bottom: 10px; margin-left: 0; clear: both; }

  h1, h2, p { margin: 0 1em; text-align: justify; text-justify: inter-ideograph; }
  p { font-size: 17px; line-height: 2.0; color: #080000; margin-bottom: 1.0em; }

  h1 { font-family: "游ゴシック", YuGothic, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif; display: block; font-size: 2em; font-weight: bold; border-bottom: solid 5px #1e5c3a; }
  h2 { position: relative; padding: .5em .75em; background-color: #1e5c3a; border-radius: 6px; margin-top: 2.5em; margin-bottom: 1.0em; color: #ffffff; display: block; }
  h3 { font-size: 1.30em; font-family: "游ゴシック", YuGothic, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif; color: #3E3E3E; border-left: solid 6px #1e5c3a; padding: .7em 0 .7em .8em; margin-top: 2.5em; margin-bottom: 0.5em; font-weight: bold; }
  h4 { font-size: 17px; font-family: "游ゴシック", YuGothic, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif; color: #333333; margin: 2.0em 0 0.5em; font-weight: bold; padding: .5em .75em; background-color: whiteSmoke; border-radius: 6px; }
  h5 { font-size: 17px; color: #ffffff; margin: 0; font-weight: bold; padding: .5em .75em; background-color: #1e5c3a; border-radius: 6px; }

  .pan-list-inline { margin: 0; padding: 0; }
  .pan-list-inline li { display: inline; margin: 0; padding: 0 0 0 18px; list-style-type: none; font-size: 9pt; }

  ul { padding-left: 20px; padding-top: 5px; padding-bottom: 5px; margin-left: 20px; margin-bottom: 20px; margin-top: 10px; border: 2px skyblue dashed; list-style-type: none; font-size: 17px; }
  .sideul { margin-top: 0; margin-bottom: 10px; margin-left: 0; border: 0; }

  table, td, th { border: 1px solid #595959; border-collapse: collapse; }
  td, th { padding: 3px; width: 150px; height: 25px; }
  th { background: #f0e6cc; }
  .even { background: #fbf8f0; }
  .odd { background: #fefcf9; }
}

/* ================================================================
   コンポーネントボックス（PC/Mobile共通）
   ================================================================ */

/* h1直下の要点ボックス */
.article-point-box { border: 1px solid #c2dccb; background: #f4fbf7; padding: 12px 14px; margin: 16px 1em 20px; border-radius: 6px; font-size: 15px; line-height: 1.8; }
.article-point-title, .admin-comment-title, .confusing-terms-title { font-size: 17px; font-weight: bold; margin: 0 0 10px; color: #333333; line-height: 1.6; }
.article-point-title { font-size: 16px; color: #1e5c3a; padding: 0 0 0 8px; border-left: 4px solid #1e5c3a; }
.article-point-box p, .admin-comment-box p, .confusing-terms-box p, .source-box p { margin: 0 0 8px; line-height: 1.8; }
.article-point-box p:last-child, .admin-comment-box p:last-child, .confusing-terms-box p:last-child, .source-box p:last-child { margin-bottom: 0; }

/* 管理人コメント */
.admin-comment-box { border-left: 5px solid #1e5c3a; background: #f5faf7; padding: 12px 14px; margin: 20px 1em; border-radius: 4px; font-size: 15px; line-height: 1.8; }

/* 混同しやすい用語 */
.confusing-terms-box { border: 1px solid #e1e1e1; background: #fbfbfb; padding: 12px 14px; margin: 20px 1em; border-radius: 6px; font-size: 15px; line-height: 1.8; }
.confusing-term-name { font-size: 16px; font-weight: bold; margin: 12px 0 4px; padding: .35em .6em; background: #f1f3f5; border-radius: 5px; color: #333333; }

/* 根拠・参考 */
.source-box { border: 1px solid #e2e2e2; background: #fafafa; padding: 12px 14px; margin: 18px 1em; border-radius: 6px; font-size: 14px; line-height: 1.8; }
.source-box-title { font-size: 17px; font-weight: bold; margin: 0 0 10px; color: #333333; line-height: 1.6; }

/* hタグが入っている旧HTMLへの応急リセット */
.admin-comment-box h3, .confusing-terms-box h3, .source-box h3 { font-size: 17px; margin: 0 0 10px; padding: 0; border-left: none; border-bottom: none; background: none; color: #333333; font-weight: bold; }
.confusing-terms-box h4 { font-size: 16px; margin: 12px 0 4px; padding: .35em .6em; background: #f1f3f5; border-radius: 5px; color: #333333; font-weight: bold; }

/* テキストサイトタイトル（ヘッダー画像なし） */
.site-header-title { display: block; color: #ffffff !important; font-size: 1.9rem; font-weight: bold; letter-spacing: 0.1em; padding: 22px 20px; text-decoration: none !important; text-align: center; line-height: 1.4; font-family: "游ゴシック", YuGothic, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif; }
.site-header-title:hover { opacity: 0.85; text-decoration: none !important; }

/* ソクタ吹き出し */
.sokuta-voice { display: flex; align-items: flex-start; gap: 14px; margin: 18px 1em 22px; }
.sokuta-voice-icon { width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0; }
.sokuta-voice-bubble { position: relative; background: #fff; border: 2px solid #1e5c3a; border-radius: 12px; padding: 10px 14px; font-size: 15px; line-height: 1.8; }
.sokuta-voice-bubble::before { content: ''; position: absolute; left: -16px; top: 14px; border: 8px solid transparent; border-right-color: #1e5c3a; }
.sokuta-voice-bubble::after { content: ''; position: absolute; left: -11px; top: 17px; border: 5px solid transparent; border-right-color: #fff; }
.sokuta-voice-name { font-size: 12px; font-weight: bold; color: #1e5c3a; margin: 0 0 5px !important; line-height: 1.4; }
.sokuta-voice-bubble p { margin: 0; }
.sokuta-answer { font-weight: bold; color: #1e5c3a; margin: 0 1em 14px; font-size: 16px; }
section > h2:first-child { margin-top: 0.8em; }

/* 一覧・目次ページ用の控えめ見出し（緑バナーを使わない）。contents1 に list-page を付けたページだけ適用 */
/* 一覧・記事ページ共通の見出し＝マーカー型（文字下40%に緑マーカー＋右へ延長） */
.list-page h2, .article-page h2 { display: inline-block; background: linear-gradient(transparent 58%, #bfe6d0 58%); color: #1a1a1a; border: 0; border-radius: 0; padding: 0 3em 0 .2em; margin: 1.6em 1em .7em; font-size: 1.2em; font-weight: bold; }
.list-page h2::after, .article-page h2::after { display: none; border: 0; }
/* 一覧ページのリストもハブ(index-kakomon)と同じ見た目に：緑の・/字下げ/矢印アイコン無し */
.list-page ul.sideul { list-style: disc; margin: .3em 1em 1.4em; padding-left: 2.2em; border: 0; }
.list-page ul.sideul li { margin: .2em 0; }
.list-page ul.sideul li::marker { color: #1e5c3a; }
.list-page ul.sideul .arrow { padding-left: 0; }
.list-page ul.sideul .arrow::before, .list-page ul.sideul .arrow::after { display: none; }
/* 記事ページ（個別問題など）の冒頭余白。contents1 に article-page を付けたページだけ適用 */
.article-page > p:first-of-type { margin-top: 1em; }
.article-page section { padding-top: 0; }
/* 過去問の前後ナビ（記事下部・カード型） */
.kakomon-prevnext { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 1em; }
.kakomon-prevnext a { box-sizing: border-box; min-width: 0; overflow-wrap: anywhere; flex: 0 1 calc(50% - 6px); display: flex; flex-direction: column; justify-content: center; border: 1px solid #1e5c3a; border-radius: 8px; padding: 12px 14px; background: #f5faf7; text-decoration: none; transition: background .2s; }
.kakomon-prevnext a:hover { background: #e3f0e8; text-decoration: none; }
.kakomon-prevnext .label { font-size: 12px; font-weight: bold; color: #1e5c3a; margin-bottom: 4px; }
.kakomon-prevnext .title { font-size: 15px; color: #222; line-height: 1.5; }
.kakomon-prevnext .next { text-align: right; margin-left: auto; }

/* ================================================================
   テキスト強調 使用ルール
   <b>               : キーワード・用語名・数値の一般的な強調（何箇所でもOK）
   <strong>          : 試験で絶対に間違えてはいけない警告・禁止事項（1記事0〜2箇所まで）
   .marker           : この記事の核心となる定義・結論文（1記事1〜2箇所）
   .marker-under     : 覚えるべき数値・許容値・公式（数値が出るたびに）
   .bold-red         : 試験で引っかかりやすいミス・「○○ではなく○○」の指摘（1記事1〜3箇所）
   .qa-kakomon       : 過去問ページの出題情報（暗赤・通常サイズ・太字）
   .kakomon-correct  : 過去問ページの正解表示（赤背景）
   .article-date-note: 記事末尾の確認日（グレー・小文字）
   ================================================================ */
.marker { background-color: #ff9; padding: 0 2px; font-size: inherit; }
.marker-under { background: linear-gradient(transparent 60%, #ff9 60%); padding: 0 2px; font-size: inherit; }
.bold-red { font-weight: bold; color: #e60033; font-size: inherit; }
.marker a:link, .marker a:visited, .marker a:active,
.marker-under a:link, .marker-under a:visited, .marker-under a:active { color: #0044CC; text-decoration: underline; }
.marker a:hover, .marker-under a:hover { color: #0044CC; text-decoration: underline; }
.qa-kakomon { color: #c0392b; font-weight: bold; }
.kakomon-correct { font-weight: bold; color: #c0392b; padding: 5px 10px; background: #fff0f0; border-radius: 4px; display: inline-block; margin: 4px 0; }
.article-date-note { font-size: 0.82em; color: #999; margin: 10px 1em 0; line-height: 1.6; }

/* テーブルヘッダー行（tr に緑背景指定）の th 白文字修正 */
tr[style*="background:#1e5c3a"] > th { background: #1e5c3a; color: #fff; }

/* 視線誘導文（article-guide-box） */
.article-guide-box { margin: 14px 1em 20px; padding: 4px 0; }
.article-guide-box p { margin: 0; font-size: 16px; line-height: 1.9; }

/* ザックリ言うと */
.simple-note { background: #f8fbff; border-left: 3px solid #0077b6; padding: 0.55em 0.9em; margin: 0.5em 1em 1.4em; font-size: 15px; line-height: 1.85; color: #333; }

/* ================================================================
   折り畳み式目次（details/summary 式）
   ================================================================ */
.toc-box { border: 1px solid #b8d4c4; background: #f4f9f6; border-radius: 6px; margin: 16px 0 20px; padding: 0; }
.toc-box summary { cursor: pointer; list-style: none; padding: 10px 14px; background: #d2eada; border-radius: 6px 6px 0 0; font-size: 0.88em; font-weight: bold; color: #1e5c3a; user-select: none; }
.toc-box summary::-webkit-details-marker { display: none; }
.toc-box summary::before { content: "▲ "; font-size: 0.82em; color: #1e5c3a; }
.toc-box details:not([open]) summary::before { content: "▼ "; }
.toc-box ol.toc-h2 { list-style-type: decimal !important; margin: 8px 14px 10px 32px; padding: 0; font-size: 0.87em; line-height: 1.75; }
.toc-box ol.toc-h2 > li { margin: 4px 0; color: #222; }
.toc-box ol.toc-h3 { list-style-type: decimal !important; margin: 4px 0 4px 18px; padding: 0; font-size: 0.92em; line-height: 1.7; color: #555; }
.toc-box ol.toc-h3 > li { margin: 3px 0; }
.toc-box a { color: #0044cc; text-decoration: none; font-weight: normal !important; }
.toc-box a:hover { text-decoration: underline; }

/* ================================================================
   著者ボックス
   ================================================================ */
.author-box { display: flex; gap: 16px; align-items: flex-start; border: 1px solid #b8d4c4; background: #f4f9f6; border-radius: 6px; padding: 16px 18px; margin: 24px 0 8px; }
.author-box-img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box-body { flex: 1; }
.author-box-label { font-size: 0.78em; color: #1e5c3a; font-weight: bold; letter-spacing: 0.05em; margin-bottom: 4px; }
.author-box-name { font-size: 1em; font-weight: bold; color: #222; margin-bottom: 2px; }
.author-box-org { font-size: 0.82em; color: #666; font-weight: normal; margin-left: 6px; }
.author-box-bio { font-size: 0.85em; line-height: 1.75; color: #444; margin-top: 6px; margin-bottom: 8px; }
.author-box-links { font-size: 0.82em; }
.author-box-links a { color: #0044cc; text-decoration: none; margin-right: 10px; }
.author-box-links a:hover { text-decoration: underline; }

/* ================================================================
   PC/Mobile 表示切り替え
   ================================================================ */
.mobile-site-title { display: none; }
.mobile-nav { display: none; }

@media screen and (max-width: 950px) {
  .h_image, #h_image { display: none !important; }
  .mobile-site-title { display: block; background: #1e5c3a; padding: 8px 10px 4px; text-align: center; }
  .mobile-site-title a { color: #ffffff; font-weight: bold; font-size: 14px; line-height: 1.4; text-decoration: none; }
  .nav-pc { display: none !important; }
  .mobile-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; background: #1e5c3a; padding: 6px 6px 8px; text-align: center; }
  .mobile-nav a { display: inline-block; color: #ffffff; font-size: 12px; font-weight: bold; line-height: 1.3; padding: 5px 7px; border-radius: 12px; background: rgba(255,255,255,0.12); text-decoration: none; white-space: nowrap; }
  .contents1 { margin-left: 0; margin-right: 0; padding: 10px 14px 20px; }
  h1 { font-size: 1.42em; line-height: 1.45; margin-top: 0.6em; margin-bottom: 0.45em; }
  .article-point-box { margin: 10px 0 14px; padding: 10px 12px; }
  .contents5 { float: none; width: auto; margin: 6px 10px 0; padding: 0; box-sizing: border-box; }
  .pan-list-inline li { display: block; font-size: 11px; line-height: 1.5; white-space: normal; overflow: visible; }
  .contents1 section > p, .contents1 > p { font-size: 15.5px; line-height: 1.9; margin-bottom: 1.05em; }
  .article-point-box p, .admin-comment-box p, .confusing-terms-box p, .source-box p, .article-guide-box p { font-size: 15px; line-height: 1.8; }
  .author-box { flex-direction: row; align-items: flex-start; gap: 12px; padding: 14px; }
  .author-box-img { width: 56px; height: 56px; }
  .author-box-bio { font-size: 0.83em; }
  .article-guide-box p { font-size: 15px; }
}

@media screen and (min-width: 951px) {
  .nav-pc { display: block; }
  .mobile-site-title { display: none !important; }
  .mobile-nav { display: none !important; }
}

/* ================================================================
   一問一答 プルタブ（details/summary）
   ================================================================ */
.qa-block { border: 1px solid #ddd; border-radius: 6px; margin: 10px 1em 16px; overflow: hidden; }
.qa-q { padding: 10px 14px 8px; background: #f8f9fa; border-bottom: 1px solid #ddd; }
.qa-q p { margin: 0 0 4px; font-size: 15.5px; line-height: 1.8; }
.qa-q p:last-child { margin-bottom: 0; }
details.qa-answer { }
details.qa-answer summary { cursor: pointer; list-style: none; padding: 7px 14px; font-size: 0.9em; font-weight: bold; color: #c0392b; background: #fff0f0; border-top: 1px solid #f5c6cb; user-select: none; display: block; }
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: 10px 14px 12px; font-size: 15px; line-height: 1.85; background: #fff; border-top: 1px solid #eee; }
.qa-answer-body p { margin: 0 0 6px; }
.qa-answer-body p:last-child { margin-bottom: 0; }

/* ================================================================
   過去問ページ：問題文の引用ボックス＋正解プルダウン（.article-page限定）
   ================================================================ */
/* 問題文の引用ボックス（note風：薄グレー背景＋グレー縦バー、文字は少し小さめ） */
.article-page .kakomon-question { position: relative; background: #f6f7f8; border-left: 4px solid #c9ced3; border-radius: 0 4px 4px 0; padding: 16px 18px 10px; margin: 1em 0 1.5em; font-size: 15px; }
.article-page .kakomon-question p { margin: 0 0 .9em; line-height: 1.85; }
.article-page .kakomon-question ol { margin: .6em 0 1em; padding-left: 1.9em; }
.article-page .kakomon-question ol li { margin: .25em 0; }
.article-page .kakomon-question table { margin: 12px 0; }
/* 図は公式PDF参照の注記 */
.article-page .kakomon-question .kakomon-zu-note { font-size: 13px; color: #b3402f; background: #fff; border: 1px dashed #d8a59a; border-radius: 4px; padding: 8px 10px; margin: 0 0 1em; line-height: 1.7; }
.article-page .kakomon-question .kakomon-zu-note a { color: #0044CC; }
/* 出典（ボックス内では左右マージンを詰める） */
.article-page .kakomon-question .article-date-note { margin: .4em 0 0; }

/* 正解プルダウン */
.article-page details.kakomon-answer-toggle { margin: 1.2em 1em 1.6em; border: 1px solid #1e5c3a; border-radius: 8px; overflow: hidden; background: #fff; }
.article-page details.kakomon-answer-toggle > summary { cursor: pointer; list-style: none; display: block; padding: 13px 16px; font-weight: bold; font-size: 16px; color: #1e5c3a; background: #eef6f1; user-select: none; }
.article-page details.kakomon-answer-toggle > summary::-webkit-details-marker { display: none; }
.article-page details.kakomon-answer-toggle > summary::before { content: "▶ 正解を見る"; }
.article-page details.kakomon-answer-toggle[open] > summary::before { content: "▼ 正解（解説は下に続きます）"; }
.article-page details.kakomon-answer-toggle[open] > summary { border-bottom: 1px solid #d7e7de; }
.article-page details.kakomon-answer-toggle .admin-comment-box { margin: 0; border-left: 0; border-radius: 0; background: #fff; }

/* ================================================================
   インデックスページ用カテゴリグリッド
   ================================================================ */
.category-grid { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 1em; clear: both; list-style: none; padding: 0; border: 0; }
.category-card { flex: 1 1 calc(33% - 12px); min-width: 200px; background: #f9f9f9; border: 1px solid #ccc; border-radius: 4px; padding: 16px; text-decoration: none; display: block; }
.category-card:hover { background: #f0f0f0; text-decoration: none; }
.category-card-title { color: #1e5c3a; font-weight: bold; font-size: 1em; margin-bottom: 6px; display: block; }
.category-card-desc { color: #555; font-size: 0.85em; line-height: 1.6; margin: 0; }

.featured-articles { margin: 16px 1em; }
.featured-articles ul { border: none; list-style: none; padding: 0; margin: 0; }
.featured-articles li { padding: 6px 0; border-bottom: 1px solid #eee; font-size: 15px; }

@media screen and (max-width: 950px) {
  .category-card { flex: 1 1 calc(50% - 12px); min-width: 140px; }
}
@media screen and (max-width: 480px) {
  .category-card { flex: 1 1 100%; }
}
