@charset "UTF-8";

/* ================================================================
   ゼロから始める建築施工管理 共通スタイル
   テーマカラー: #2a4073（深紺 / kentiku-kouzou.jp 姉妹サイト統一色）
   h2デザイン: 塗りつぶし背景＋下三角（mobile）/ 塗りつぶし背景（desktop）
   ================================================================ */

img { max-width: 100%; height: auto; }
/* インラインSVG（自作概念図）：viewBoxのみでサイズが無いと表示されないため本文幅に拡大 */
svg { max-width: 100%; height: auto; }
.contents1 figure svg { width: 100%; height: auto; max-width: 600px; display: block; margin: 0 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: #2a4073; 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; 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: 15px; }
  .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: #1e3a6a; 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 #1e3a6a; }
  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 #1e3a6a; 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: #1e3a6a; 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: 15px; }
  .sideul { border: 0; }
  table { width: 100%; border-collapse: collapse; }
  table, td, th { border: 1px solid #595959; }
  td, th { padding: 8px 10px; text-align: left; vertical-align: top; line-height: 1.6; }
  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: 15px; }
  .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'; background: #fff; }
  .header { width: 100%; height: 100%; }
  .h_image { padding: 0; position: relative; margin: 0; text-align: center; }

  .topmenu { max-width: 1040px; height: 50px; margin: 0 auto; background: #2a4073; 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: 28px; padding-left: 28px; margin-top: 10px; width: 100px; }
  .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: #2a4073; }
  .kasentaitoru { float: left; width: 990px; background-color: #ffffff; margin-top: 0; margin-bottom: 10px; margin-left: 0; clear: both; }

  h2, p { margin: 0 1em; text-align: justify; text-justify: inter-ideograph; }
  h1 { 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; margin: 0; border-bottom: none; }
  h2 { position: relative; padding: .5em .75em; background-color: #1e3a6a; 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 #1e3a6a; 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: #1e3a6a; 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: 15px; }
  .sideul { margin-top: 0; margin-bottom: 10px; margin-left: 0; border: 0; }

  table { width: 100%; margin: 1em 0; border-collapse: collapse; }
  table, td, th { border: 1px solid #595959; }
  td, th { padding: 8px 10px; text-align: left; vertical-align: top; line-height: 1.6; }
  th { background: #f0e6cc; }
  .even { background: #fbf8f0; }
  .odd { background: #fefcf9; }
}

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

/* h1直下の要点ボックス */
.article-point-box { border: 1px solid #d8e4ef; background: #f9fcff; 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: #1e3a6a; padding: 0 0 0 8px; border-left: 4px solid #1e3a6a; }
.article-point-box p, .confusing-terms-box p, .source-box p { margin: 0 0 8px; line-height: 1.8; }
.article-point-box p:last-child, .confusing-terms-box p:last-child, .source-box p:last-child { margin-bottom: 0; }
.admin-comment-box p { margin: 0 0 0.9em; line-height: 1.85; }
.admin-comment-box p:last-child { margin-bottom: 0; }

/* 一言でいうと */
.simple-note { background: #f7f9fc; border-left: 3px solid #1e3a6a; padding: 0.55em 0.9em; margin: 0.5em 1em 1.4em; font-size: 15px; line-height: 1.85; color: #333; }

/* 管理人コメント */
.admin-comment-box { border-left: 5px solid #1e3a6a; background: #f7f9fc; 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; }

/* サイトタイトルリンクの下線なし */
.header h1 a { text-decoration: none !important; }

/* 後方互換：旧p.h_image形式も残す */
.site-header-title { display: block; color: #ffffff !important; font-size: 1.9rem; font-weight: bold; letter-spacing: 0.08em; padding: 16px 20px 8px; 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; }
.site-header-sub { display: block; font-size: 0.55em; font-weight: normal; letter-spacing: 0.06em; opacity: 0.92; margin-top: 3px; }

/* もちごめ吹き出し */
.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 #1e3a6a; 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: #1e3a6a; }
.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: #1e3a6a; margin: 0 0 5px !important; line-height: 1.4; }
.sokuta-voice-bubble p { margin: 0; }
.sokuta-answer { font-weight: bold; color: #1e3a6a; margin: 0 1em 14px; font-size: 16px; }
section > h2:first-child { margin-top: 0.8em; }

/* テキスト強調 */
.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; }
/* 本文中のspan内リンクが白文字になる不具合の対策（トップメニュー用の span a{color:#fff} が本文の .marker / .marker-under 内リンクにも効くため、本文エリアだけ通常のリンク色に戻す） */
.contents1 span a:link, .contents1 span a:visited, .contents1 span a:active, .contents1 span a:hover { color: #0044CC; text-decoration: underline; }

/* 視線誘導文（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; }

/* ================================================================
   折り畳み式目次（details/summary 式）
   ================================================================ */
.toc-box { border: 1px solid #c8d4e8; background: #f5f7fb; border-radius: 6px; margin: 16px 0 20px; padding: 0; }
.toc-box summary { cursor: pointer; list-style: none; padding: 10px 14px; background: #d8e3f0; border-radius: 6px 6px 0 0; font-size: 0.88em; font-weight: bold; color: #1e3a6a; user-select: none; }
.toc-box summary::-webkit-details-marker { display: none; }
.toc-box summary::before { content: "▲ "; font-size: 0.82em; color: #1e3a6a; }
.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 #c8d4e8; background: #f5f7fb; 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: #1e3a6a; 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; }

/* ================================================================
   kansan.jp型カテゴリナビ（PC/Mobile共通）
   ================================================================ */
.sekou-nav {
  border-top: 2px solid #2a4073;
  border-bottom: 1px solid #ddd;
  padding: 7px 12px;
  background: #fafafa;
  font-size: 15px;
  line-height: 2;
  overflow-x: auto;
  white-space: nowrap;
}
.sekou-nav a { color: #1a6fd0; text-decoration: none; }
.sekou-nav a:hover { text-decoration: underline; color: #2a4073; }

@media screen and (max-width: 950px) {
  .h_image, #h_image { display: none !important; }
  .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; }
  .sokuta-voice { flex-direction: row; gap: 10px; padding: 12px; margin: 0 0 12px; }
  .sokuta-voice-icon { width: 46px; height: 46px; }
  .sokuta-answer { margin: -4px 0 16px; }
}

/* ================================================================
   インデックスページ用カテゴリグリッド
   ================================================================ */
.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: #dce6f5; text-decoration: none; }
.category-card-title { color: #1e3a6a; 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%; }
}

/* ================================================================
   ○×クイズ ブロック（年度別過去問ページ用）
   ================================================================ */
.qa-block { border: 1px solid #c8d4e8; border-radius: 6px; margin: 10px 1em; overflow: hidden; }
.qa-header { display: flex; align-items: baseline; gap: 8px; padding: 6px 12px; background: #f0f4fa; border-bottom: 1px solid #c8d4e8; }
.qa-no { font-size: 0.88em; font-weight: bold; color: #1e3a6a; white-space: nowrap; flex-shrink: 0; }
.qa-topic-label { font-size: 0.88em; color: #666; }
.qa-q { padding: 9px 12px 7px; margin: 0 !important; font-size: 15.5px; line-height: 1.8; }
details.qa-answer summary { cursor: pointer; list-style: none; padding: 5px 12px; font-size: 0.9em; font-weight: bold; color: #1e3a6a; background: #f7f7f7; border-top: 1px solid #c8d4e8; user-select: none; }
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: 9px 12px 11px; font-size: 15px; line-height: 1.85; background: #fff; border-top: 1px solid #eee; }
.qa-answer-body p { margin: 0 0 6px !important; font-size: 15px !important; line-height: 1.85 !important; }
.qa-answer-body p:last-child { margin-bottom: 0 !important; }
.qa-maru { color: #c0392b; font-weight: bold; font-size: 1.1em; }
.qa-batu { color: #1e3a6a; font-weight: bold; font-size: 1.1em; }
.qa-kakomon { color: #c0392b; font-weight: bold; font-size: 13px; }

/* 年度別ページのカテゴリ誘導リンク */
.year-cat-link { margin: 14px 0 20px; font-size: 14px; }
.year-cat-link a { color: #0044cc; }

/* 記事本文内のul要素：枠線なし・本文と同サイズに統一 */
.contents1 ul { border: none; font-size: 17px; line-height: 1.9; }
@media screen and (max-width: 950px) {
  .contents1 ul { font-size: 15.5px; }
}

/* ================================================================
   法令確認日 / リスク・罰則ノート
   ================================================================ */
.article-date-note { font-size: 0.82em; color: #999; margin: 10px 1em 0; line-height: 1.6; }
.penalty-note { border-left: 4px solid #c0392b; background: #fff8f8; padding: 10px 14px; margin: 20px 1em 4px; border-radius: 0 4px 4px 0; font-size: 15px; line-height: 1.8; }
.penalty-note p { margin: 0; }

/* ================================================================
   同カテゴリ関連記事ボックス
   ================================================================ */
.related-category-box { border: 1px solid #c8d4e8; border-radius: 6px; margin: 16px 1em 20px; overflow: hidden; }
.related-category-title { cursor: pointer; list-style: none; padding: 9px 14px; background: #eef2f9; font-size: 0.88em; font-weight: bold; color: #1e3a6a; user-select: none; }
.related-category-title::-webkit-details-marker { display: none; }
.related-category-list { list-style: none !important; border: none !important; margin: 0 !important; padding: 6px 14px 10px !important; }
.related-category-list li { padding: 4px 0; border-bottom: 1px solid #eef2f9; font-size: 14px; }
.related-category-list li:last-child { border-bottom: none; }
.related-category-list a { color: #0044cc; text-decoration: none; }
.related-category-list a:hover { text-decoration: underline; }

/* ================================================================
   過去問解説ブロック（4択オリジナル問題）
   ================================================================ */
.kakomon-block { border: 2px solid #1e3a6a; border-radius: 8px; margin: 24px 0; overflow: hidden; }
.kakomon-header { background: #1e3a6a; padding: 7px 14px; display: flex; align-items: center; gap: 12px; }
.kakomon-no { color: #fff; font-size: 0.85em; font-weight: bold; white-space: nowrap; }
.kakomon-topic { color: rgba(255,255,255,0.75); font-size: 0.8em; }
.kakomon-q { padding: 12px 14px 8px; font-size: 16px; line-height: 1.8; font-weight: bold; margin: 0 !important; }
.kakomon-choices { list-style: none !important; border: none !important; margin: 0 !important; padding: 4px 14px 14px !important; font-size: 15px !important; line-height: 1.85 !important; }
.kakomon-choices li { padding: 5px 0 5px 2.2em; text-indent: -2.2em; border-bottom: 1px solid #eef2f9; }
.kakomon-choices li:last-child { border-bottom: none; }
details.kakomon-answer summary { cursor: pointer; list-style: none; padding: 7px 14px; font-size: 0.85em; font-weight: bold; color: #fff; background: #2a5298; user-select: none; }
details.kakomon-answer summary::-webkit-details-marker { display: none; }
details.kakomon-answer summary::before { content: "▼ 解答・解説を見る"; }
details.kakomon-answer[open] summary::before { content: "▲ 閉じる"; }
.kakomon-answer-body { padding: 12px 14px 14px; background: #f8f9ff; font-size: 14px; line-height: 1.85; border-top: 1px solid #c8d4e8; }
.kakomon-correct { font-weight: bold; color: #c0392b; padding: 5px 10px; background: #fff0f0; border-radius: 4px; display: inline-block; margin: 4px 0; }
.kakomon-answer-body p { margin: 0 0 7px !important; font-size: 14px !important; line-height: 1.85 !important; }
.kakomon-answer-body p:last-child { margin-bottom: 0 !important; }
@media screen and (max-width: 950px) {
  .kakomon-q { font-size: 15px; }
  .kakomon-choices { font-size: 14px !important; }
}
.kakomon-section { font-size: 0.82em; font-weight: bold; color: #888; letter-spacing: 0.05em; margin: 28px 0 8px; padding-left: 2px; text-transform: uppercase; }

/* 過去問 新型フォーマット（2026-06-06ロック・建築士試験解説ノートより移植） */
/* あわせて読みたいボックス */
.related-study-box{background:#eef2f7;border:1px solid #d8dee8;border-left:4px solid #3f5878;
  border-radius:6px;padding:11px 14px;margin:18px 0 6px;font-size:15px;line-height:1.85;}
.related-study-box>p{margin:0 0 7px;}
.related-study-box ul{margin:0;}

/* 前後リンク（過去問の連番ナビ）。各ボタンは常に半幅固定 */
.kakomon-prevnext{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0;}
.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 #3f5878;border-radius:8px;padding:12px 14px;background:#f5f7fa;text-decoration:none;}
.kakomon-prevnext a:hover{background:#e7ecf3;}
.kakomon-prevnext .label{font-size:12px;font-weight:bold;color:#3f5878;margin-bottom:4px;}
.kakomon-prevnext .title{font-size:15px;color:#222;line-height:1.5;}
.kakomon-prevnext .next{text-align:right;margin-left:auto;}

/* ================================================================
   書籍アフィリエイト コンポーネント（2026-06-23 移植）
   姉妹サイト「測量士補」の .book-card / .aff-cta を施工管理(紺)へ移植。
   設計：CTAは暖色固定（サイト紺と同化させない＝行動色）。
        静的サイトのため価格・星評価は載せない（Amazon規約・鮮度リスク）。
   ================================================================ */
/* PR表記（記事最上部・本文前に必須／ステマ規制2023.10〜景表法） */
.pr-note { font-size: 12px; color: #888; margin: 6px 1em 16px; line-height: 1.7; }

/* 選び方の基準ボックス */
.kijun { background: #f5f8fd; border: 1px solid #c3cde0; border-left: 6px solid #2a4073; border-radius: 8px; padding: 13px 16px; margin: 16px 1em; }
.kijun h3 { margin: 0 0 8px; font-size: 16px; color: #2a4073; border: 0; padding: 0; }
.kijun ol { margin: 0; padding-left: 1.3em; }

/* 書籍カード本体 */
.book-card { display: flex; gap: 16px; align-items: flex-start; border: 1px solid #d8e0ec; border-radius: 8px; padding: 16px; margin: 18px 1em; background: #fff; box-shadow: 0 2px 8px rgba(30,50,90,.06); }
.book-card-cover { flex: 0 0 110px; }
.book-card-cover img { width: 110px; height: auto; border: 1px solid #ddd; }
.book-card-body { flex: 1; min-width: 0; }
.book-card-title { font-size: 16px; font-weight: bold; color: #222; margin: 0 0 6px; line-height: 1.5; }
.book-card-meta { font-size: 13px; color: #666; margin: 0 0 10px; line-height: 1.65; }
.book-card-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.book-card-btns .aff-cta { font-size: 14px; padding: 10px 18px; }

/* 順位バッジ／ラベル（1位=橙・2位=銀・3位=銅） */
.rank-badge { display: inline-block; font-size: .62em; font-weight: bold; letter-spacing: .03em; padding: .25em .7em; border-radius: 4px; margin-right: .55em; vertical-align: middle; color: #fff; background: #2a4073; }
.rank-badge-top { background: #f15a24; }
.rank-badge-silver { background: #7c8aa3; }
.rank-badge-bronze { background: #a9763f; }

/* CTAボタン（暖色＝行動色。Amazon=黄橙／楽天=赤／汎用=ディープ橙） */
.aff-cta { display: inline-block; position: relative; overflow: hidden; z-index: 0; background: #f15a24; padding: 14px 28px; border-radius: 8px; font-weight: bold; font-size: 16px; line-height: 1.5; box-shadow: 0 3px 0 #b8400f; transition: transform .12s ease, background .12s ease, box-shadow .12s ease; }
.aff-cta::before { content: ""; position: absolute; top: 50%; left: -120px; width: 80px; height: 200px; transform: translateY(-50%) rotate(25deg); background-image: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.5) 80%, rgba(255,255,255,0)); pointer-events: none; }
.aff-cta:hover::before { left: 110%; transition: left .5s ease-in-out; }
.aff-cta:link, .aff-cta:visited, .aff-cta:active { color: #fff; text-decoration: none; }
.aff-cta:hover { background: #ff6f3d; color: #fff; text-decoration: none; transform: translateY(2px); box-shadow: 0 1px 0 #b8400f; }
.aff-cta-amazon { background: #ff9900; box-shadow: 0 3px 0 #c77400; }
.aff-cta-amazon:link, .aff-cta-amazon:visited, .aff-cta-amazon:active { color: #1a1a1a; }
.aff-cta-amazon:hover { background: #ffad33; color: #1a1a1a; box-shadow: 0 1px 0 #c77400; }
.aff-cta-rakuten { background: #bf0000; box-shadow: 0 3px 0 #800000; }
.aff-cta-rakuten:link, .aff-cta-rakuten:visited, .aff-cta-rakuten:active { color: #fff; }
.aff-cta-rakuten:hover { background: #d62020; color: #fff; box-shadow: 0 1px 0 #800000; }
.aff-cta-yahoo { background: #ff0033; box-shadow: 0 3px 0 #c4002a; }
.aff-cta-yahoo:link, .aff-cta-yahoo:visited, .aff-cta-yahoo:active { color: #fff; }
.aff-cta-yahoo:hover { background: #ff3358; color: #fff; box-shadow: 0 1px 0 #c4002a; }

/* ボタン直下マイクロコピー（不安消し） */
.cta-micro { font-size: 12px; color: #777; margin: 8px 1em 0; line-height: 1.6; }
/* 書籍カードの補足（メリット/デメリット・こんな人におすすめ） */
.book-extra { margin: 2px 0 12px; padding: 10px 14px; background: #f7f9fc; border: 1px solid #e2e8f2; border-radius: 8px; font-size: 14px; line-height: 1.75; }
.book-extra ul { list-style: none; margin: 0; padding: 0; }
.book-pros li::before { content: "\ff0b\00a0"; font-weight: bold; }
.book-cons li::before { content: "\ff0d\00a0"; font-weight: bold; }
.book-cons { margin-top: 4px; }
.book-for { margin: 8px 0 0; font-weight: bold; color: #2a4073; }
/* 口コミ吹き出し（受験者の声・アフィ記事用・再利用可） */
.kuchikomi { display: flex; align-items: flex-start; gap: 12px; margin: 12px 1em; }
.kuchikomi-ava { width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0; object-fit: contain; background: #fff; border: 2px solid #2a4073; }
.kuchikomi.neg .kuchikomi-ava { border-color: #b9737a; }
.kuchikomi-bubble { position: relative; background: #fff; border: 2px solid #2a4073; border-radius: 12px; padding: 8px 13px; font-size: 14px; line-height: 1.75; }
.kuchikomi.neg .kuchikomi-bubble { border-color: #b9737a; }
.kuchikomi-bubble::before { content: ''; position: absolute; left: -16px; top: 13px; border: 8px solid transparent; border-right-color: #2a4073; }
.kuchikomi.neg .kuchikomi-bubble::before { border-right-color: #b9737a; }
.kuchikomi-bubble::after { content: ''; position: absolute; left: -11px; top: 16px; border: 5px solid transparent; border-right-color: #fff; }
.kuchikomi-name { font-size: 12px; font-weight: bold; color: #2a4073; display: block; margin-bottom: 3px; }
.kuchikomi.neg .kuchikomi-name { color: #a23; }
/* トップのカテゴリ一覧の説明文（測量士補式の簡素リスト用） */
.cat-d { display: block; font-size: 13px; color: #666; margin: 2px 0 10px; line-height: 1.65; }

/* アフィ記事本文のul（水色点線枠を外す＝紺disc）。contents1 に aff-article を付けた記事のみ */
.aff-article ul:not(.sideul) { border: 0; list-style: disc; margin-left: 1.4em; padding-left: .4em; }
.aff-article ul:not(.sideul) > li::marker { color: #2a4073; }

/* 箇条書きを測量士補と同じ「・」黒丸＋行間ゆとりに統一（インラインのlist-style:noneより優先・水色点線枠も廃止）2026-06-27 */
ul:not(.sideul):not(.category-grid) {
  border: 0 !important;
  list-style: disc !important;
  padding-left: 1.5em !important;
  margin: .7em 1em 1.4em !important;
}
ul:not(.sideul):not(.category-grid) > li { margin: .45em 0; line-height: 1.9; }
ul.sideul > li { margin: .4em 0; line-height: 1.85; }

/* 比較表（◎○△） */
.cmp { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.cmp th, .cmp td { border: 1px solid #9aa7b8; padding: 8px 6px; text-align: center; }
.cmp thead th { background: #1e3a6a; color: #fff; }
.cmp tbody th { background: #eef2f8; text-align: left; white-space: nowrap; }
.cmp-yes { color: #1e3a6a; font-weight: bold; }
.cmp-ok { color: #1b6ca8; font-weight: bold; }
.cmp-mid { color: #c77400; font-weight: bold; }
.cmp .stars, .stars { color: #f5a623; letter-spacing: 1px; white-space: nowrap; }
.cmp .star-off, .star-off { color: #ddd; letter-spacing: 1px; }

@media screen and (max-width: 950px) {
  .book-card { flex-direction: column; align-items: center; text-align: center; }
  .book-card-btns { justify-content: center; }
}

/* ================================================================
   おすすめ参考書への誘導（2026-06-23）
   サイドバー固定ウィジェット＋記事末CTA。中身は参考書記事への内部リンク
   （直接アフィリンクではない＝広告密度を上げずアドセンス審査セーフ）。
   ================================================================ */
/* サイドバー（contents33）ウィジェット */
.reco-sidebar { border: 0; background: none; padding: 8px 4px; margin: 4px 0 16px; }
.reco-sidebar-title { background: none; color: #2a4073; font-weight: bold; font-size: 16px; margin: 0 0 8px; padding: 0 0 4px; border-bottom: 2px solid #2a4073; }
.reco-sidebar ul { list-style: none; margin: 0; padding: 0; border: 0; font-size: 16px; line-height: 1.9; }
.reco-sidebar li { padding: 0; border: 0; line-height: 1.9; }
.reco-sidebar a { color: #1a6fd0; text-decoration: underline; font-weight: normal; }
.reco-sidebar a:hover { color: #0d4f9e; }
.reco-sidebar-note { font-size: 13px; color: #888; margin: 8px 0 0; padding: 0; }

/* 記事末CTA */
.reco-endcta { border: 1px solid #c3cde0; border-left: 6px solid #2a4073; background: #f5f8fd; border-radius: 8px; padding: 13px 16px; margin: 24px 1em; }
.reco-endcta-title { font-size: 16px; font-weight: bold; color: #2a4073; margin: 0 0 6px; }
.reco-endcta p { margin: 0 0 6px; font-size: 15px; line-height: 1.8; }
.reco-endcta p:last-child { margin-bottom: 0; }
.reco-endcta-links { font-weight: bold; }
.reco-endcta-links a { color: #1b3a6b; }

/* ================================================================
   本文の締め直し（間延び解消）2026-06-30
   ①PC本文 行間2.0→1.8・17→16px ②スマホ本文 15.5px/1.9に締め直し
   ③見出し前の余白 margin-top 2.5em→2.0em
   ※ .contents1 > p の子セレクタで本文だけを対象に（box内のpは15pxのまま温存）
   ================================================================ */
.contents1 h2 { margin-top: 2.0em; }
.contents1 h3 { margin-top: 2.0em; }
@media screen and (min-width: 950px) {
  .contents1 > p, .contents1 section > p { font-size: 17px; line-height: 1.8; }
}
@media screen and (max-width: 950px) {
  .contents1 { margin-left: 0; margin-right: 0; padding: 10px 14px 20px; }
  .contents1 > p, .contents1 section > 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 { font-size: 15px; line-height: 1.8; }
}

/* ================================================================
   回遊サイドバー（contents33）2026-06-30
   著者ミニカード＋おすすめ記事＋カテゴリ＋教材CTA（全て内部リンク・審査セーフ）
   ※ .contents33 ul.side-list を最後に置き、全ulの disc!important に勝たせる
   ================================================================ */
.contents33 .side-card { border: 0; border-radius: 0; padding: 0; margin: 0 0 22px; background: none; }
.contents33 .side-card-title { font-size: 15px; font-weight: bold; color: #2a4073; margin: 0 0 9px; padding: 0 0 5px; border-bottom: 1px solid #cfd8e6; }
.contents33 ul.side-list { list-style: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; font-size: 16px; line-height: 1.7; }
.contents33 ul.side-list > li { margin: 0 0 9px !important; padding: 0 0 0 15px; position: relative; border: 0; line-height: 1.6; }
.contents33 ul.side-list > li::before { content: "\203A"; position: absolute; left: 2px; top: -1px; color: #2a4073; font-weight: bold; }
.contents33 ul.side-list > li:last-child { margin-bottom: 0 !important; }
.contents33 ul.side-list a { color: #1a6fd0; text-decoration: none; }
.contents33 ul.side-list a:hover { text-decoration: underline; }
.contents33 .side-author { text-align: center; background: #f7f9fc; }
.contents33 .side-author-img { width: 62px; height: 62px; border-radius: 50%; background: #fff; border: 2px solid #d8e0ec; }
.contents33 .side-author-name { font-size: 15px; font-weight: bold; color: #333; margin: 6px 0 4px; }
.contents33 .side-author-bio { font-size: 12.5px; color: #555; line-height: 1.6; margin: 0 0 6px; text-align: left; }
.contents33 .side-author-link { font-size: 12.5px; margin: 0; }
.contents33 .side-author-link a { color: #1a6fd0; text-decoration: none; }
.contents33 .side-cta { border-color: #c3cde0; border-left: 6px solid #2a4073; background: #f5f8fd; }
.contents33 ul.side-cat { display: flex; flex-wrap: wrap; gap: 0 10px; }
.contents33 ul.side-cat > li { flex: 0 0 calc(50% - 9px); box-sizing: border-box; }
/* サイドバーCTAボタン（参考書・過去問・転職＝内部リンクの収益導線・審査セーフ） */
.contents33 .side-cta-box { border: 2px solid #2a4073; border-radius: 8px; padding: 0; margin: 0 0 16px; background: #fff; overflow: hidden; }
.contents33 .side-cta-head { background: #2a4073; color: #fff; font-size: 14.5px; font-weight: bold; margin: 0; padding: 9px 12px; line-height: 1.4; }
.contents33 .side-cta-inner { padding: 12px; }
.contents33 .side-cta-btn { display: block; text-align: center; background: #f15a24; color: #fff !important; font-weight: bold; font-size: 14.5px; padding: 12px 8px; border-radius: 8px; text-decoration: none !important; box-shadow: 0 3px 0 #b8400f; margin: 0 0 9px; line-height: 1.4; }
.contents33 .side-cta-btn.btn-navy { background: #2a4073; box-shadow: 0 3px 0 #16264a; }
.contents33 .side-cta-btn:active { transform: translateY(2px); box-shadow: none; }
.contents33 .side-cta-box .side-cta-btn:last-of-type { margin-bottom: 0; }
.contents33 .side-cta-note { font-size: 11.5px; color: #777; margin: 9px 0 0; line-height: 1.5; }


/* ================= 給水装置サイト固有の追加（お手本 sekou-style.css の意匠に合わせる） ================= */

/* 法令・一次資料の引用ボックス（.admin-comment-box と同じ寸法系で色だけ変える） */
.law-box {
  border-left: 5px solid #2a4073;
  background: #f5f8fd;
  border-top: 1px solid #c3cde0;
  border-right: 1px solid #c3cde0;
  border-bottom: 1px solid #c3cde0;
  padding: 12px 14px;
  margin: 20px 1em;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.8;
}
.law-label {
  font-size: 0.82em;
  font-weight: bold;
  color: #2a4073;
  letter-spacing: 0.05em;
  margin: 0 0 6px;
  line-height: 1.6;
}
.law-box p { margin: 0 0 8px; line-height: 1.8; }
.law-box p:last-child { margin-bottom: 0; }

/* 免責・所管への確認をうながす注記 */
.disclaimer-box {
  border: 1px solid #e2e2e2;
  background: #fafafa;
  padding: 11px 14px;
  margin: 18px 1em;
  border-radius: 6px;
  font-size: 13px;
  color: #666;
  line-height: 1.75;
}
.disclaimer-box p { margin: 0; }

/* 横に広い表をスマホで溢れさせない */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 10px 0; }
.table-scroll table { margin: 0; min-width: 520px; }
