/* 法律総合解説板（仮称）決定案 = ぎっしり案5「分野カラー」（2026-10-17 決定）
   共通の骨組み（ぎっしり共通/base.css）＋分野カラーの見た目（ぎっしり案5/style.css）を1つにまとめたもの */

/* 法律総合解説板（仮称）ぎっしり案 共通の骨組み
   行間は詰める（一覧 1.3 前後・本文 1.5 前後）。色・書体は各案の style.css で決める */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-size: 13px; line-height: 1.35; }
.page { max-width: 1280px; margin: 0 auto; padding: 6px 10px 24px; }
h2, h3, h4, p, ul, ol, dl, dd, table { margin: 0; }
ul, ol { padding-left: 1.4em; }
.small { font-size: 11px; opacity: .8; margin-top: 3px; }
.cnt { font-size: 11px; opacity: .7; white-space: nowrap; }
.lv { display: inline-block; font-size: 10px; font-weight: normal; padding: 0 4px; margin-right: 4px; border: 1px solid currentColor; border-radius: 2px; vertical-align: 1px; opacity: .85; }

/* ===== 見出し ===== */
.hd { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand tag search" "stats stats stats"; gap: 2px 14px; align-items: center; padding: 6px 8px; }
.brand { grid-area: brand; }
.brand .name { font-size: 24px; font-weight: bold; text-decoration: none; letter-spacing: .04em; }
.brand .kari { font-size: 11px; margin-left: 6px; opacity: .75; }
.tagline { grid-area: tag; font-size: 12px; }
.search { grid-area: search; display: flex; gap: 4px; }
.search input { width: 220px; font-size: 12px; padding: 2px 4px; }
.search button { font-size: 12px; }
.stats { grid-area: stats; font-size: 11px; opacity: .8; }

.tabs { display: flex; flex-wrap: wrap; gap: 2px; margin: 4px 0; }
.tabs a { display: block; padding: 3px 9px; font-size: 13px; font-weight: bold; text-decoration: none; }

.notice { font-size: 12px; padding: 4px 8px; margin: 4px 0; }

.ticker { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; padding: 4px 8px; margin: 4px 0; }
.ticker b { white-space: nowrap; }
.ticker ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0 16px; }
.ticker .d { margin-right: 4px; opacity: .7; }

/* ===== 3段組 ===== */
.layout { display: grid; grid-template-columns: 200px minmax(0, 1fr) 240px; grid-template-areas: "l m r"; gap: 8px; align-items: start; }
.side-l { grid-area: l; }
.main { grid-area: m; min-width: 0; }
.side-r { grid-area: r; }
.side-l, .side-r, .main { display: flex; flex-direction: column; gap: 8px; }

.box { padding: 0 0 5px; }
.box > h3 { font-size: 13px; padding: 3px 7px; margin-bottom: 4px; }
.box > *:not(h3) { margin-left: 6px; margin-right: 6px; }

.tree { list-style: none; padding: 0; font-size: 12px; }
.tree > li { margin-bottom: 4px; }
.tree .mj { font-weight: bold; }
.tree ul { list-style: none; padding-left: 6px; }
.tree ul li { border-left: 3px solid var(--c, #999); padding-left: 5px; margin: 1px 0; }
.subs-tree ul li { border-left-color: #bbb; }

.directory .dir-mj { margin-bottom: 6px; font-size: 12px; }
.directory .mj { display: block; font-weight: bold; font-size: 13px; margin-bottom: 1px; }
.directory p { border-left: 3px solid var(--c); padding-left: 5px; margin: 2px 0; line-height: 1.35; }
.directory p a { font-weight: bold; }
.directory p span { opacity: .85; }

.tbl { width: calc(100% - 12px); border-collapse: collapse; font-size: 11.5px; }
.tbl th, .tbl td { border: 1px solid; padding: 2px 4px; vertical-align: top; text-align: left; }
.tbl .law { font-size: 10.5px; }
.tbl .k { white-space: nowrap; }
.tbl.list td { border-width: 0 0 1px; }
.tbl.list .d, .tbl.list .s { white-space: nowrap; font-size: 11px; }

.tag, .rk-b { display: inline-block; font-size: 10.5px; padding: 0 4px; color: #fff; background: var(--c); border-radius: 2px; white-space: nowrap; margin-right: 3px; }

.ranking ol { font-size: 12px; padding-left: 1.8em; }
.ranking li { margin: 2px 0; }
.glossary dl { font-size: 12px; }
.glossary dt { font-weight: bold; margin-top: 3px; }
.plain { list-style: none; padding: 0; font-size: 12px; }
.plain li { margin: 1px 0; }
.plain-num { font-size: 13px; padding-left: 1.8em; }

/* ===== 広告 ===== */
.ad { text-align: center; }
.ad-label { display: block; text-align: left; font-size: 10px; }
.ad-box { height: 90px; max-width: 728px; margin: 0 auto; display: flex; align-items: center; justify-content: center; font-size: 11px; border: 1px dashed; }
.ad-rect .ad-box { height: 250px; max-width: 300px; }

/* ===== 大分類・中分類・小分類 ===== */
.major { display: flex; flex-direction: column; gap: 6px; }
.major-h { font-size: 17px; padding: 4px 8px; }
.major-h small { font-size: 11px; font-weight: normal; margin-left: 6px; }
.board { border: 1px solid; }
.board-h { font-size: 14px; padding: 3px 7px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.board-h .more { margin-left: auto; font-size: 11px; font-weight: normal; }
.subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0; }
.sub { padding: 3px 7px 5px; }
.sub h4 { font-size: 12.5px; margin-bottom: 1px; }
.sub ol { font-size: 12.5px; padding-left: 1.6em; }
.sub li { margin: 0; line-height: 1.4; }
.dead { text-decoration: underline dotted; text-underline-offset: 2px; }

/* ===== スレッド本文（共通 HTML の article を詰める） ===== */
.crumb { font-size: 12px; }
.thread { padding: 6px 10px 10px; }
.thread-title { font-size: 19px; line-height: 1.35; margin: 2px 0 4px; }
.thread .notice { margin: 4px 0 6px; }
.post { margin: 8px 0 0; }
.post-head { font-size: 12px; overflow-wrap: anywhere; }
.post-head .name { font-weight: bold; }
.post-head .date, .post-head .id { margin-left: .3em; }
.post-body { margin: 1px 0 0 1.4em; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.post-body p { margin: 0 0 .25em; }
blockquote.law { margin: 3px 0; padding: 3px 8px; font-size: 13px; line-height: 1.5; border-left: 3px solid; }
blockquote.law cite { display: block; font-size: 10.5px; font-style: normal; opacity: .75; }
.thread .ad { margin: 8px 0; }
.thread-foot { margin-top: 10px; padding-top: 5px; border-top: 1px solid; font-size: 12px; }
.thread-foot dl { display: grid; grid-template-columns: 8em 1fr; gap: 1px 8px; }
.thread-foot dt { font-weight: bold; }

/* ===== サイトマップ ===== */
.ft { margin-top: 10px; padding: 6px 8px; font-size: 11.5px; }
.ft h3 { font-size: 13px; margin-bottom: 4px; }
.sitemap { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; }
.sitemap h4 { font-size: 12px; border-bottom: 1px solid; margin-bottom: 2px; }
.sitemap ul { list-style: none; padding: 0; }
.sitemap li { margin: 1px 0; }
.disclaimer { margin-top: 6px; font-size: 11px; opacity: .8; }

/* ===== 幅が狭いとき ===== */
@media (max-width: 1100px) {
  .layout { grid-template-columns: 190px minmax(0, 1fr); grid-template-areas: "l m" "r m"; }
}
@media (max-width: 760px) {
  .page { padding: 4px 6px 20px; }
  .hd { grid-template-columns: 1fr; grid-template-areas: "brand" "tag" "search" "stats"; }
  .brand .name { font-size: 21px; }
  .search input { flex: 1; width: auto; min-width: 0; }
  .tabs a { padding: 3px 6px; font-size: 12px; }
  .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "m" "l" "r"; }
  .subs { grid-template-columns: 1fr; }
  .ad-box { height: 60px; }
  .tbl.list .s { display: none; }
  .post-body { margin-left: .4em; }
  .thread-foot dl { grid-template-columns: 1fr; }
}

/* 期限早見表（1行ずつの一覧） */
.dl-list { list-style: none; padding: 0; font-size: 11.5px; }
.dl-list li { padding: 2px 0; border-bottom: 1px dotted rgba(127,127,127,.45); line-height: 1.35; }
.dl-list .k { display: inline-block; font-size: 10px; padding: 0 3px; margin-right: 3px; border: 1px solid currentColor; border-radius: 2px; opacity: .8; }
.dl-list .v { font-weight: bold; }
.dl-list .law { font-size: 10.5px; opacity: .75; }


/* ぎっしり案5 分野カラー — 中分類ごとの色で帯を塗り分け、分野の区切りを最もはっきり見せる */
body { background: #f2f3f5; color: #1f2329; font-family: "Meiryo", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", sans-serif; }
a { color: #0b4fa8; }
.hd { background: #1f2329; color: #fff; }
.brand .name { color: #fff; }
.tabs a { color: #fff; background: #3a414d; border-radius: 3px; }
.tabs a:nth-child(1) { background: #37474f; }
.tabs a:nth-child(2) { background: #c2185b; }
.tabs a:nth-child(3) { background: #1565c0; }
.tabs a:nth-child(4) { background: #2e7d32; }
.tabs a:nth-child(5) { background: #e65100; }
.tabs a:nth-child(6) { background: #546e7a; }
.tabs a:nth-child(7) { background: #6d4c41; }
.tabs a:nth-child(8) { background: #283593; }
.tabs a:nth-child(9) { background: #00695c; }
.notice { background: #fff6dc; border: 1px solid #e8c766; } .notice strong { color: #a15c00; }
.ticker { background: #fff; border: 1px solid #dcdfe4; } .ticker b { color: #c2185b; }
.box { background: #fff; border: 1px solid #dcdfe4; }
.box > h3 { background: #1f2329; color: #fff; }
.tbl th { background: #eceef2; } .tbl th, .tbl td { border-color: #dcdfe4; }
.ad-box { background: #fafafa; border-color: #c9cdd3; color: #9aa0a8; } .ad-label { color: #7c838c; }
.major-h { background: #fff; border-left: 8px solid #1f2329; }
.board { border: 0; background: color-mix(in srgb, var(--c) 7%, #fff); }
.board-h { background: var(--c); color: #fff; }
.board-h .lv { border-color: #fff; }
.sub { border-right: 1px solid color-mix(in srgb, var(--c) 18%, #fff); }
.sub h4 { color: var(--c); }
.dead { color: #1f2329; text-decoration-color: #aab; }
.thread { background: #fff; border-top: 6px solid #6a1b9a; }
.thread-title { color: #6a1b9a; }
.post-head .no { background: #6a1b9a; color: #fff; padding: 0 5px; border-radius: 2px; }
.post-head .name { color: #1f2329; } .post-head .name.sv { color: #b45309; }
blockquote.law { background: #f6f1fa; border-color: #6a1b9a; }
.thread-foot { border-color: #dcdfe4; }
.ft { background: #1f2329; color: #e5e7eb; } .ft a { color: #9cc3ff; } .sitemap h4 { border-color: #555; color: #fff; }

/* AIが確認した情報を載せるサイトであることの表示 */
.ai { display: inline-block; margin-left: .4em; padding: 0 5px; font-size: 10.5px; font-weight: bold; color: #0b6b3a; background: #e3f4ea; border: 1px solid #8cc9a6; border-radius: 2px; }
.verify .steps { font-size: 12px; padding-left: 1.6em; }
.verify .steps li { margin: 1px 0; }
.verify > h3 { background: #0b6b3a; }

/* 議論のある点（評価・見解が分かれる点）のレスを目立たせる */
.post.ronten { background: #fff4f4; border: 1px solid #e3a6a6; border-left: 5px solid #c62828; padding: 4px 8px 6px; }
.post.ronten .post-head .id { color: #c62828; font-weight: bold; }

/* 実務の視点（法律上の要件ではないが、実際に役立つ補足） */
.jitsumu { display: inline-block; margin-right: .4em; padding: 0 5px; font-size: 11px; font-weight: bold; color: #fff; background: #1565c0; border-radius: 2px; vertical-align: 1px; }

/* レスの見出し（番号・名前・日時は表示しない。内容を表す小見出しだけ） */
.post-title { margin: 0 0 3px; font-size: 14px; color: #6a1b9a; border-bottom: 1px dotted #c9b6d6; padding-bottom: 1px; }
.post.ronten .post-title { color: #c62828; border-bottom-color: #e3a6a6; }
.post-body { margin-left: 0; }

/* スレッドの追加希望（入口とフォーム） */
.req-link { color: #ffd54f; font-weight: bold; margin-left: .5em; }
.reqbox > h3 { background: #b45309; }
.reqbox p { font-size: 12px; margin: 3px 0; }
.req-btn { display: inline-block; padding: 4px 10px; background: #b45309; color: #fff !important; text-decoration: none; border-radius: 3px; font-weight: bold; }
.req-main { max-width: 760px; margin: 8px auto; }
.reqform { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.reqform label { display: flex; flex-direction: column; gap: 3px; font-weight: bold; font-size: 13px; }
.reqform select, .reqform input[type=text], .reqform textarea { font: inherit; font-weight: normal; padding: 5px 6px; border: 1px solid #b9bec7; border-radius: 3px; max-width: 100%; }
.reqform textarea { resize: vertical; }
.req-need, .req-opt { display: inline-block; margin-left: 6px; font-size: 10.5px; padding: 0 5px; border-radius: 2px; font-weight: normal; }
.req-need { background: #c62828; color: #fff; } .req-opt { background: #e0e3e8; color: #444; }
.req-agree { flex-direction: row !important; align-items: flex-start; gap: 6px !important; font-weight: normal !important; }
.req-submit { align-self: flex-start; padding: 6px 22px; font-size: 14px; font-weight: bold; color: #fff; background: #6a1b9a; border: 0; border-radius: 3px; cursor: pointer; }
.req-done { color: #0b6b3a; font-weight: bold; }
.req-pii { color: #b71c1c; background: #fdecec; border: 1px solid #e3a6a6; padding: 6px 8px; font-size: 13px; }
.reqform label > .req-need, .reqform label > .req-opt { align-self: flex-start; margin-left: 0; }

/* 中分類の横の空白をなくす：小分類が少ない板は横幅いっぱいに広げ、スレッド一覧を段組みで流す */
.subs { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.sub ol { column-width: 230px; column-gap: 18px; column-rule: 1px dotted rgba(0,0,0,.12); }
.sub li { break-inside: avoid; }
.sub ol { column-gap: 28px; }
.sub li { overflow-wrap: anywhere; padding-right: 2px; }

/* 小分類を升目に並べず、前の小分類の続きから段組みで流す。16本目以降は「続きを見る」で開く（2026-10-17） */
.subs { display: block; column-width: 250px; column-gap: 26px; column-rule: 1px dotted rgba(0,0,0,.14); padding: 2px 0; }
.sub { break-inside: auto; border-right: 0 !important; padding: 2px 8px 6px; }
.sub h4 { break-after: avoid; break-inside: avoid; }
.sub ol { column-width: auto; column-count: 1; column-rule: none; }
.sub li { break-inside: avoid; }
.sub li.more { display: none; }
.sub.open li.more { display: list-item; }
.more-btn { display: block; margin: 3px 0 2px 1.6em; padding: 1px 10px; font-size: 11.5px; color: var(--c, #333); background: #fff; border: 1px solid var(--c, #999); border-radius: 999px; cursor: pointer; break-before: avoid; }
.more-btn:hover { background: color-mix(in srgb, var(--c, #999) 12%, #fff); }

/* 段組みの板が flex の中で高さを誤って計算し、下端が切れて次の見出しに重なる問題の修正 */
.major { display: block; }
.major > * + * { margin-top: 6px; }
.board { display: block; overflow: visible; }
.subs { overflow: visible; }
.sub li { break-inside: avoid; page-break-inside: avoid; display: list-item; }
.sub li.more { display: none; }
.sub.open li.more { display: list-item; }
.subs { padding-bottom: 14px; }

/* 追加の広告枠（控えめな見た目にそろえる） */
.board-ad { display: flex; align-items: center; gap: 6px; margin: 0 8px; padding: 2px 6px; font-size: 11px; color: #8a9099; border-bottom: 1px dotted rgba(0,0,0,.15); }
.board-ad .ad-label, .ad-line .ad-label, .ad-grid > .ad-label { display: inline-block; font-size: 10px; padding: 0 4px; border: 1px solid #b9bec7; border-radius: 2px; color: #7c838c; background: #fff; }
.ad-line { display: flex; align-items: center; gap: 6px; margin: 2px 0 6px; padding: 3px 8px; font-size: 11.5px; color: #8a9099; background: #fff; border: 1px solid #e3e6ea; }
.ad-sky .ad-box { height: 600px; max-width: 160px; }
.textads .ad-text { font-size: 12px; color: #6f7782; text-decoration: underline dotted #c9cdd3; }
.textads > h3 { background: #6f7782 !important; font-size: 11px !important; }
.ad-foot { margin-top: 10px; }
.ad-grid { margin: 8px 0; padding: 6px 8px 8px; background: #fff; border: 1px solid #e3e6ea; }
.ad-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 4px; }
.ad-card { height: 90px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #a3a9b1; background: #fafafa; border: 1px dashed #c9cdd3; border-radius: 4px; }
@media (max-width: 760px) { .ad-sky { display: none; } }
.ad-side .ad-box { height: 200px; max-width: 200px; }
@media (max-width: 760px) { .ad-side .ad-box { height: 100px; max-width: none; } }

/* 婚姻費用シミュレーター（2026-10-17） */
.calcbox > h3 { background: #1565c0; }
.calc-btn { display: block; text-align: center; padding: 6px 8px; background: #1565c0; color: #fff !important; font-weight: bold; text-decoration: none; border-radius: 4px; }
.calc-fs { border: 1px solid #d5d9e0; border-radius: 4px; padding: 6px 10px 8px; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.calc-fs legend { font-weight: bold; font-size: 13px; padding: 0 4px; color: #1565c0; }
.calc-out { margin: 12px 0; padding: 10px 12px; background: #eef5fd; border: 2px solid #1565c0; border-radius: 6px; }
.calc-label { margin: 0; font-size: 12px; color: #1565c0; font-weight: bold; }
.calc-big { margin: 2px 0 4px; font-size: 30px; font-weight: bold; color: #0d3c78; }
.calc-big span { font-size: 14px; }
.calc-empty { color: #6f7782; margin: 0; }
.calc-warn { color: #b71c1c; font-size: 12.5px; margin: 4px 0; }
.calc-tbl { width: 100%; margin: 6px 0; } .calc-tbl td, .calc-tbl th { font-size: 12.5px; }
.calc-how p { margin: 0 0 .4em; font-size: 13.5px; line-height: 1.6; }

/* ===== 婚姻費用シミュレーター（デザイン刷新・2026-10-17） ===== */
.ks-main { max-width: 1040px; margin: 8px auto 0; }
.ks-hero { position: relative; overflow: hidden; padding: 22px 24px 20px; border-radius: 14px; color: #fff;
  background: radial-gradient(circle at 92% -20%, rgba(255,255,255,.18), transparent 45%), linear-gradient(135deg, #0d2b5e 0%, #1565c0 55%, #00897b 100%); box-shadow: 0 8px 24px rgba(13,43,94,.22); }
.ks-hero h2 { margin: 2px 0 6px; font-size: 26px; letter-spacing: .04em; }
.ks-hero p { margin: 0; font-size: 13.5px; line-height: 1.7; max-width: 760px; opacity: .95; }
.ks-hero b { color: #ffe082; }
.ks-kicker { display: inline-block; font-size: 11px !important; letter-spacing: .2em; padding: 1px 10px; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; margin-bottom: 6px !important; }
.ks-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; margin-top: 16px; }
.ks-form { display: flex; flex-direction: column; gap: 12px; }
.ks-card { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(15,35,70,.06); border: 1px solid #e6e9ef; }
.ks-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ks-card h3 { margin: 0; font-size: 15px; color: #1f2329; }
.ks-card header p { margin: 1px 0 0; font-size: 11.5px; color: #7c838c; }
.ks-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.ks-dot-g { background: #1565c0; box-shadow: 0 0 0 4px rgba(21,101,192,.15); }
.ks-dot-k { background: #00897b; box-shadow: 0 0 0 4px rgba(0,137,123,.15); }
.ks-dot-c { background: #f9a825; box-shadow: 0 0 0 4px rgba(249,168,37,.18); }
.ks-seg { display: inline-flex; padding: 3px; background: #f1f3f7; border-radius: 999px; margin-bottom: 10px; }
.ks-seg label { position: relative; cursor: pointer; }
.ks-seg input { position: absolute; opacity: 0; pointer-events: none; }
.ks-seg span { display: block; padding: 5px 16px; font-size: 12.5px; border-radius: 999px; color: #5b6470; transition: all .2s; }
.ks-seg input:checked + span { background: #fff; color: #0d2b5e; font-weight: bold; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.ks-seg input:focus-visible + span { outline: 2px solid #1565c0; }
.ks-money { display: flex; align-items: baseline; gap: 8px; padding: 6px 12px; border: 1.5px solid #d5dae2; border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
.ks-money:focus-within { border-color: #1565c0; box-shadow: 0 0 0 4px rgba(21,101,192,.12); }
.ks-mlabel { font-size: 12px; color: #7c838c; }
.ks-money input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 26px; font-weight: bold; color: #0d2b5e; text-align: right; background: transparent; -moz-appearance: textfield; }
.ks-money input::-webkit-outer-spin-button, .ks-money input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ks-unit { font-size: 13px; color: #5b6470; font-weight: bold; }
.ks-range { width: 100%; margin: 12px 0 0; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; outline: none;
  background: linear-gradient(90deg, var(--c1) 0, var(--c1) var(--p, 0%), #e3e7ee var(--p, 0%)); }
.ks-range-g { --c1: #1565c0; } .ks-range-k { --c1: #00897b; }
.ks-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--c1); box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer; }
.ks-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--c1); cursor: pointer; }
.ks-scale { display: flex; justify-content: space-between; font-size: 10px; color: #9aa0a8; margin-top: 3px; }
.ks-step { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px dashed #e3e7ee; }
.ks-step:first-of-type { border-top: 0; }
.ks-step b { display: block; font-size: 14px; } .ks-step small { color: #9aa0a8; font-size: 11px; }
.ks-stepper { display: flex; align-items: center; gap: 4px; background: #f6f7fa; border-radius: 999px; padding: 3px; }
.ks-stepper button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; color: #0d2b5e; font-size: 18px; font-weight: bold; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.15); transition: transform .1s; }
.ks-stepper button:active { transform: scale(.92); }
.ks-stepper output { min-width: 34px; text-align: center; font-size: 20px; font-weight: bold; color: #0d2b5e; }
.ks-note { font-size: 11.5px; color: #7c838c; line-height: 1.6; margin: 0 4px; }
.ks-result { position: sticky; top: 10px; display: flex; flex-direction: column; gap: 10px; }
.ks-rcard { color: #fff; border-radius: 16px; padding: 18px 18px 14px; box-shadow: 0 10px 28px rgba(13,43,94,.28);
  background: radial-gradient(circle at 100% 0, rgba(255,255,255,.2), transparent 40%), linear-gradient(160deg, #0d2b5e 0%, #123f86 60%, #0b5f74 100%); }
.ks-rlabel { margin: 0; font-size: 12px; letter-spacing: .08em; opacity: .85; }
.ks-amount { margin: 4px 0 0; display: flex; align-items: baseline; gap: 4px; }
#r-num { font-size: 46px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ks-yen { font-size: 18px; font-weight: bold; } .ks-per { font-size: 13px; opacity: .8; }
.ks-year { margin: 2px 0 12px; font-size: 12.5px; opacity: .9; }
.ks-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.15); }
.ks-bar span { display: block; height: 100%; transition: width .4s ease; }
.ks-bar-g { background: #64b5f6; } .ks-bar-k { background: #4db6ac; }
.ks-legend { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; font-size: 11.5px; }
.ks-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.ks-i-g { background: #64b5f6; } .ks-i-k { background: #4db6ac; }
.ks-rsmall { font-size: 11px; opacity: .85; margin: 8px 0 0; line-height: 1.6; }
.ks-warn { margin: 8px 0 0; padding: 6px 8px; font-size: 12px; background: rgba(255,224,130,.18); border-left: 3px solid #ffe082; border-radius: 4px; }
.ks-detail { background: #fff; border-radius: 12px; border: 1px solid #e6e9ef; padding: 8px 12px; }
.ks-detail summary { cursor: pointer; font-size: 13px; font-weight: bold; color: #1565c0; }
.ks-detail .ks-rsmall { color: #5b6470; opacity: 1; }
.ks-tbl { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 12.5px; }
.ks-tbl th, .ks-tbl td { padding: 4px 6px; border-bottom: 1px solid #eef0f4; text-align: right; }
.ks-tbl td:first-child, .ks-tbl th:first-child { text-align: left; color: #7c838c; }
.ks-how { margin-top: 16px; }
.ks-how ol { margin: 6px 0 0; padding-left: 1.4em; font-size: 13.5px; line-height: 1.75; }
.ks-formula { display: inline-block; margin-top: 4px; padding: 4px 10px; background: #f1f5fb; border-radius: 6px; font-size: 12.5px; color: #0d2b5e; }
.ks-how .ks-rsmall { color: #5b6470; opacity: 1; }
.ks-caution { margin-top: 12px; border-left: 5px solid #c62828; background: #fff7f7; }
.ks-caution h3 { color: #c62828; }
.ks-caution p, .ks-caution li { font-size: 13px; line-height: 1.7; }
.ks-caution ul { margin: 4px 0 0; padding-left: 1.3em; }
@media (max-width: 860px) {
  .ks-grid { grid-template-columns: 1fr; }
  .ks-result { position: static; order: -1; }
  .ks-hero { padding: 16px; } .ks-hero h2 { font-size: 21px; }
  #r-num { font-size: 40px; }
}

/* ===== 広告出稿のご案内（2026-10-17） ===== */
.ad-hero { background: radial-gradient(circle at 92% -20%, rgba(255,255,255,.18), transparent 45%), linear-gradient(135deg, #3e2723 0%, #6d4c41 50%, #b45309 100%); }
.ad-sec { margin-top: 14px; }
.ad-sec h3 { font-size: 16px; margin: 0 0 8px; padding-left: 8px; border-left: 4px solid #b45309; }
.ad-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.ad-point { padding: 12px; border-radius: 10px; background: #fff8ef; border: 1px solid #f1d7b5; }
.ad-point b { display: block; font-size: 16px; color: #8a3b00; margin-bottom: 4px; }
.ad-point span { font-size: 12.5px; line-height: 1.6; color: #4a3b30; }
.ad-tblwrap { overflow-x: auto; }
.ad-tbl td, .ad-tbl th { text-align: left !important; font-size: 12.5px; }
.ad-tbl td:first-child { color: #1f2329 !important; white-space: nowrap; }
.ad-list { margin: 0; padding-left: 1.3em; font-size: 13.5px; line-height: 1.75; }
.ad-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; counter-reset: f; }
.ad-flow li { position: relative; padding: 10px 10px 10px 40px; background: #f6f7fa; border-radius: 10px; counter-increment: f; }
.ad-flow li::before { content: counter(f); position: absolute; left: 10px; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: #b45309; color: #fff; font-size: 12px; font-weight: bold; display: flex; align-items: center; justify-content: center; }
.ad-flow b { display: block; font-size: 13.5px; } .ad-flow span { font-size: 12px; color: #5b6470; }
.ad-contact { margin: 10px 0 0; padding: 8px 12px; background: #fff8ef; border: 1px dashed #d8a46b; border-radius: 8px; font-size: 13px; color: #8a3b00; text-align: center; }

/* ===== 婚姻費用シミュレーター：メインサイト（分野カラー）の見た目に合わせる（2026-10-17） ===== */
.ks-main { --f: #c2185b; max-width: 1080px; }
.ks-hero { border-radius: 0; box-shadow: none; padding: 8px 12px 10px; background: var(--f); }
.ks-hero h2 { font-size: 19px; margin: 2px 0 3px; letter-spacing: .02em; }
.ks-hero p { font-size: 12.5px; line-height: 1.55; }
.ks-hero b { color: #fff3c4; }
.ks-kicker { font-size: 10px !important; padding: 0 6px; border-radius: 2px; margin-bottom: 3px !important; }
.ks-grid { gap: 8px; margin-top: 8px; grid-template-columns: minmax(0, 1fr) 330px; }
.ks-form { gap: 8px; }
.ks-card { border-radius: 0; box-shadow: none; border: 1px solid #dcdfe4; padding: 0 0 8px; }
.ks-card > header { margin: 0 0 8px; padding: 4px 8px; background: #1f2329; color: #fff; }
.ks-card > header h3 { color: #fff; font-size: 13px; }
.ks-card > header p { color: #c9cdd3; font-size: 11px; }
.ks-card > header .ks-dot { width: 9px; height: 9px; box-shadow: none; }
.ks-card > :not(header) { margin-left: 10px; margin-right: 10px; }
.ks-card > h3 { margin: 0 0 6px; padding: 4px 8px; background: #1f2329; color: #fff; font-size: 13px; }
.ks-seg { border-radius: 3px; padding: 2px; background: #eceef2; }
.ks-seg span { border-radius: 2px; padding: 3px 12px; font-size: 12px; }
.ks-seg input:checked + span { color: var(--f); box-shadow: 0 0 0 1px #dcdfe4; }
.ks-money { border-radius: 3px; border: 1px solid #c9cdd3; padding: 3px 10px; }
.ks-money:focus-within { border-color: var(--f); box-shadow: 0 0 0 3px color-mix(in srgb, var(--f) 15%, #fff); }
.ks-money input { font-size: 22px; color: #1f2329; }
.ks-range { height: 5px; margin-top: 8px; }
.ks-range-g, .ks-range-k { --c1: var(--f); }
.ks-step { padding: 6px 0; }
.ks-stepper { border-radius: 3px; background: #eceef2; padding: 2px; }
.ks-stepper button { width: 30px; height: 30px; border-radius: 2px; box-shadow: 0 0 0 1px #dcdfe4; color: var(--f); }
.ks-stepper output { font-size: 18px; color: #1f2329; }
.ks-note { font-size: 11px; }
.ks-rcard { border-radius: 0; box-shadow: none; color: #1f2329; padding: 0 0 10px; border: 1px solid #dcdfe4; background: color-mix(in srgb, var(--f) 7%, #fff); }
.ks-rlabel { margin: 0 0 6px; padding: 4px 8px; background: var(--f); color: #fff; font-size: 13px; font-weight: bold; letter-spacing: .02em; opacity: 1; }
.ks-amount, .ks-year, .ks-bar, .ks-legend, .ks-rsmall, #r-warn { margin-left: 10px !important; margin-right: 10px !important; }
#r-num { font-size: 40px; color: var(--f); }
.ks-yen { color: var(--f); } .ks-per { color: #5b6470; opacity: 1; }
.ks-year { color: #1f2329; opacity: 1; margin-bottom: 8px; }
.ks-bar { height: 8px; border-radius: 2px; background: #e3e6ea; }
.ks-bar-g { background: var(--f); } .ks-bar-k { background: color-mix(in srgb, var(--f) 40%, #fff); }
.ks-i-g { background: var(--f); } .ks-i-k { background: color-mix(in srgb, var(--f) 40%, #fff); }
.ks-legend { color: #1f2329; }
.ks-rcard .ks-rsmall { color: #5b6470; opacity: 1; }
.ks-warn { background: #fff6dc; border-left-color: #e8a400; color: #6b4a00; }
.ks-detail { border-radius: 0; border: 1px solid #dcdfe4; padding: 4px 8px; }
.ks-detail summary { color: var(--f); font-size: 12.5px; }
.ks-how { margin-top: 8px; }
.ks-how ol, .ks-caution ul { font-size: 13px; line-height: 1.6; }
.ks-formula { border-radius: 2px; background: color-mix(in srgb, var(--f) 7%, #fff); color: #1f2329; }
.ks-caution { margin-top: 8px; background: #fff4f4; border-left: 5px solid #c62828; }
.ks-caution > h3 { background: #c62828; }
.ks-caution > p { font-size: 13px; }
@media (max-width: 860px) { .ks-hero h2 { font-size: 17px; } #r-num { font-size: 34px; } }
/* 広告出稿のご案内も同じ見た目に */
.ad-main { --f: #6d4c41; }
.ad-hero { background: #6d4c41; }
.ad-sec h3 { border-left: 0; padding-left: 8px; }
.ad-point { border-radius: 0; }
.ad-flow li { border-radius: 0; }
.ad-contact { border-radius: 0; }

/* 広告主募集のバナー（右の列・スレッドの追加希望の上） */
.boshu { display: block; text-decoration: none; color: #fff !important; background: #6d4c41; border: 1px solid #5d4037; padding: 8px 10px 9px; line-height: 1.4; position: relative; overflow: hidden; }
.boshu::after { content: ""; position: absolute; right: -18px; top: -18px; width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.08); }
.boshu-k { display: inline-block; font-size: 10.5px; font-weight: bold; padding: 0 6px; background: #ffd54f; color: #3e2723; border-radius: 2px; margin-bottom: 4px; }
.boshu b { display: block; font-size: 14px; }
.boshu-s { display: block; font-size: 11px; opacity: .9; margin-top: 2px; }
.boshu-go { display: inline-block; margin-top: 6px; font-size: 11.5px; font-weight: bold; border-bottom: 1px solid rgba(255,255,255,.6); }
.boshu:hover { background: #5d4037; }
/* スライダーが箱の右端からはみ出す問題の修正 */
.ks-card > .ks-range { width: calc(100% - 20px); display: block; box-sizing: border-box; }
.ks-card > .ks-money, .ks-card > .ks-scale, .ks-card > .ks-step { box-sizing: border-box; }
.ks-main, .ks-grid, .ks-form, .ks-result { min-width: 0; }

/* AdSense のみの期間の表示（2026-10-17） */
.ad-box-tx { height: 160px; margin: 0 6px; }
.ad-card { text-align: center; line-height: 1.4; }
.ad-now { margin: 0 10px; font-size: 13.5px; line-height: 1.7; }
.ad-formula { margin: 10px 10px 0; padding: 10px 12px; background: color-mix(in srgb, var(--f) 6%, #fff); border: 1px solid #e3d6cf; }
.ad-fl { margin: 0 0 4px; font-size: 12px; font-weight: bold; color: var(--f); }
.ad-fx { margin: 0 0 8px; padding: 6px 10px; background: #fff; border: 1px solid #dcdfe4; font-weight: bold; font-size: 14px; color: #1f2329; }
.ad-tbd { color: #9aa0a8; }

/* 記事の要点・運営者情報（検索対策・2026-10-17） */
h1.thread-title { font-size: 19px; }
.summary { margin: 6px 0 8px; padding: 6px 10px 8px; background: #fffaf0; border: 1px solid #ecd9b0; border-left: 5px solid #e6a100; }
.summary h2 { margin: 0 0 3px; font-size: 13.5px; color: #8a5a00; }
.summary ul { margin: 0; padding-left: 1.3em; font-size: 13.5px; line-height: 1.6; }
.about-hero h1 { margin: 2px 0 3px; font-size: 19px; }
.ks-card > table.ks-tbl { width: calc(100% - 20px); }

/* 広告の配置の切替え（試作用） */
body.ads-launch .ad-x { display: none !important; }
.adsw { position: fixed; right: 12px; bottom: 12px; z-index: 50; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; max-width: calc(100vw - 24px);
  padding: 6px 8px; background: #1f2329; color: #fff; font-size: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.adsw-t { font-weight: bold; margin-right: 4px; color: #ffd54f; }
.adsw button { font: inherit; font-size: 12px; padding: 3px 8px; color: #fff; background: #3a414d; border: 1px solid #555; cursor: pointer; }
.adsw button.on { background: #ffd54f; color: #1f2329; border-color: #ffd54f; font-weight: bold; }
.adsw-n { margin-left: 4px; opacity: .9; }
@media (max-width: 760px) { .adsw { left: 8px; right: 8px; bottom: 8px; justify-content: center; } }
.prepub { margin: 0 0 6px; padding: 5px 10px; background: #fdecec; border: 1px solid #e3a6a6; color: #b71c1c; font-size: 12.5px; font-weight: bold; }

/* 期限の注意書き（2026-10-17） */
.deadline-note { display: block; margin: 6px 0 8px; padding: 7px 10px 7px 12px; background: #fff8e1; border: 1px solid #f0c36d; border-left: 5px solid #e65100; color: #3e2a00; font-size: 13px; line-height: 1.55; }
.deadline-note b { display: inline-block; margin-right: 8px; padding: 0 6px; background: #e65100; color: #fff; font-size: 12px; }
.deadline-note strong { color: #b23c00; }
.deadline-note.dl-in { margin: 6px 0 4px; font-size: 12px; }

/* 広告案内：法令に従った表記のお願い（2026-10-17） */
.ad-lead { margin: 4px 0 8px; padding: 8px 10px; background: #fff3e0; border-left: 5px solid #e65100; font-size: 14px; line-height: 1.6; }

/* 情報の訂正窓口（広告主募集のバナーの下・2026-10-17） */
.box.teisei h3 { background: #2e7d32; }
.box.teisei p { margin: 4px 8px; font-size: 12.5px; line-height: 1.55; }
.teisei-go { display: inline-block; margin: 2px 8px 4px; padding: 4px 10px; background: #2e7d32; color: #fff !important; font-weight: bold; font-size: 12.5px; text-decoration: none; }
.teisei-go:hover { background: #1b5e20; }

/* 広告なしの公開版（2026-10-18） */
.ads-none-only { display: none; }
body.ads-none .ads-none-only { display: block; }
body.ads-none .ads-on-only,
body.ads-none .ad, body.ads-none .board-ad, body.ads-none .ad-line, body.ads-none .ad-grid,
body.ads-none .textads, body.ads-none .boshu, body.ads-none .ad-label,
body.ads-none a[href="ad.html"] { display: none !important; }
.noad-note { margin: 8px 0; padding: 10px 12px; background: #fdecec; border: 1px solid #e3a6a6; color: #b71c1c; font-weight: bold; font-size: 13px; }

/* 法テラス利用の目安チェック（2026-10-18） */
.ht-main { --f: #8d6e00; }
.ht-q { margin-bottom: 8px; }
.ht-qlabel { margin: 0 0 3px; font-size: 12.5px; font-weight: bold; color: #1f2329; }
.ht-seg { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 0; }
.ht-seg label { flex: 1 1 auto; }
.ht-seg span { text-align: center; }
.ht-help { font-size: 11px; color: #6f7782; line-height: 1.55; margin-top: 4px !important; margin-bottom: 4px !important; }
.ht-field { margin-bottom: 8px; }
.ht-flabel { display: block; margin-bottom: 3px; }
.ht-flabel b { font-size: 13px; } .ht-flabel small { display: block; font-size: 11px; color: #7c838c; line-height: 1.45; }
.ht-check { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: bold; }
.ht-check input { width: 18px; height: 18px; accent-color: var(--f); }
.ht-verdict { margin: 4px 10px 6px; font-size: 28px; font-weight: 800; color: #5b6470; }
.ht-verdict.ht-o { color: #2e7d32; } .ht-verdict.ht-x { color: #c62828; } .ht-verdict.ht-q { color: #b26a00; }
.ht-reasons { margin: 0 10px; padding-left: 1.2em; font-size: 12.5px; line-height: 1.6; color: #1f2329; }
.ht-reasons li { margin-bottom: 3px; }
.ht-must { padding-bottom: 6px; }
.ht-must ul { margin: 0 10px; padding-left: 1.2em; font-size: 12.5px; line-height: 1.6; }
.ht-must li { margin-bottom: 3px; }
.ht-tblwrap { overflow-x: auto; margin: 0 10px; }
.ks-card > .ht-tblwrap > .ht-tbl { width: 100%; min-width: 560px; }
.ht-tbl th { font-size: 11.5px; text-align: right; background: #f4f5f7; }
.ht-list { margin: 6px 0 0; padding-left: 1.3em; font-size: 12.5px; line-height: 1.6; }
.board-tool { margin: 0; padding: 4px 8px; background: #fff8e1; border-bottom: 1px solid #ecd9b0; font-size: 12.5px; }
.board-tool a { color: #5d4300; font-weight: bold; text-decoration: none; }
.board-tool a b { display: inline-block; margin-right: 6px; padding: 0 6px; background: #8d6e00; color: #fff; font-size: 11px; }
.calc-btn-ht { background: #8d6e00 !important; }
/* 狭い画面では計算ツールを1列に（後から書いた2列の指定がスマホ用の1列を上書きしていた不具合の修正・2026-10-18。婚姻費用も対象） */
@media (max-width: 860px) { .ks-grid { grid-template-columns: minmax(0, 1fr); } }
/* 法テラス目安チェックの注意書き（2026-10-18 先生指示：確定・約束ではない／法テラスに問合せ を繰り返す） */
.ht-disc { margin: 8px 0; padding: 7px 10px; background: #fff8e1; border: 1px solid #f0c36d; border-left: 5px solid #8d6e00; font-size: 13px; line-height: 1.6; color: #3e2a00; }
.ht-disc b { display: inline-block; margin-right: 8px; padding: 0 6px; background: #8d6e00; color: #fff; font-size: 12px; }
.ht-disc strong { color: #6b4a00; }
.ht-disc-in { margin: 8px 10px 0; font-size: 12px; }
.ht-disc-in b { display: inline; margin: 0; padding: 0; background: none; color: #6b4a00; font-size: inherit; }
/* 法テラス目安チェック：地域の選択（2026-10-18） */
.ht-area { display: flex; flex-wrap: wrap; gap: 6px; }
.ht-sel { display: flex; flex-direction: column; flex: 1 1 140px; min-width: 0; font-size: 11.5px; color: #5b6470; }
.ht-sel select { margin-top: 2px; padding: 5px 6px; font: inherit; font-size: 14px; color: #1f2329; border: 1px solid #c9cdd3; background: #fff; border-radius: 0; width: 100%; }
.ht-sel select:focus { outline: 2px solid var(--f); }

/* ===== 2026-10-19 ホームの手直し：広告なしモード・題名の検索 ===== */
body.ads-none .ad, body.ads-none .board-ad, body.ads-none .ad-line, body.ads-none .ad-grid,
body.ads-none .textads, body.ads-none .boshu, body.ads-none a[href="ad.html"] { display: none !important; }
.only-noads { display: none; }
body.ads-none .only-noads { display: block; }
body.ads-none .only-ads { display: none; }
.noads-note { margin: 8px 0; padding: 8px 12px; background: #fdecea; border: 1px solid #e0a39b; color: #7a1c10; font-weight: bold; }
.search { position: relative; }
.search input:focus { outline: 2px solid #ffd54f; }
.q-res { position: absolute; top: calc(100% + 4px); right: 0; z-index: 60; width: 460px; max-width: calc(100vw - 16px); max-height: 70vh; overflow: auto;
  background: #fff; color: #1f2329; border: 1px solid #8a93a3; box-shadow: 0 6px 18px rgba(0,0,0,.25); padding: 6px 8px; font-size: 13px; line-height: 1.45; text-align: left; }
.q-res ul { list-style: none; margin: 0; padding: 0; }
.q-res li { padding: 4px 2px; border-top: 1px solid #e3e6ea; }
.q-res li a { font-weight: bold; }
.q-res li.q-dead a { font-weight: normal; color: #4a5260; }
.q-b { display: block; font-size: 11px; color: #6b7280; }
.q-sum { margin: 0 0 4px; font-size: 12px; color: #4a5260; }
.q-none { margin: 4px 0; }
@media (max-width: 760px) { .q-res { left: 0; right: 0; width: auto; max-width: none; } }

/* ===== 2026-10-19 試験運用3分野の入口・新着記事 ===== */
.trial { margin: 0 0 12px; padding: 8px; background: #fff; border: 2px solid #1f2329; }
.trial-h { margin: 0 0 8px; padding: 4px 8px; background: #1f2329; color: #fff; font-size: 17px; }
.trial-h small { margin-left: 10px; font-size: 12px; font-weight: normal; color: #ffd54f; }
.tf-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tf-card { border: 1px solid #c9ced6; border-top: 6px solid var(--c); padding: 6px 8px; min-width: 0; }
.tf-h { margin: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; font-size: 18px; }
.tf-h a { color: var(--c); text-decoration: none; }
.tf-n { font-size: 12px; font-weight: normal; color: #fff; background: var(--c); padding: 1px 6px; white-space: nowrap; }
.tf-d { margin: 4px 0; font-size: 12px; color: #4a5260; line-height: 1.45; }
.tf-k { margin: 6px 0 2px; font-size: 11px; font-weight: bold; color: #4a5260; }
.tf-top, .tf-all ul { margin: 0; padding-left: 1.2em; font-size: 13px; line-height: 1.45; }
.tf-top li, .tf-all li { margin: 1px 0; }
.tf-all { margin: 6px 0 2px; font-size: 12px; }
.tf-all summary { cursor: pointer; color: #0b4fa8; }
.tf-all ul { margin-top: 4px; max-height: 320px; overflow: auto; }
.tf-go { margin: 6px 0 0; font-size: 12px; text-align: right; }
.newbox { margin-top: 8px; border: 1px solid #c9ced6; padding: 6px 8px; }
.newbox h3 { margin: 0 0 4px; font-size: 15px; border-left: 5px solid #e65100; padding-left: 6px; }
.newbox h3 small { margin-left: 8px; font-size: 11px; font-weight: normal; color: #6b7280; }
.nw-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 16px; font-size: 13px; line-height: 1.45; }
.nw-list li { break-inside: avoid; padding: 2px 0; border-bottom: 1px dotted #d5d9df; }
.nw-d { display: inline-block; width: 3.2em; color: #6b7280; font-size: 12px; }
.nw-f { display: inline-block; margin-right: 6px; padding: 0 5px; font-size: 11px; color: #fff; background: var(--c); }
@media (max-width: 900px) { .tf-cards { grid-template-columns: 1fr; } .nw-list { columns: 1; } }

/* ===== 2026-10-19 計算ツールのボタンを大きく分かりやすく（先生指示） ===== */
.calcbox p { margin: 0 0 4px; }
.calc-btn { position: relative; padding: 13px 34px 13px 12px; font-size: 16px; line-height: 1.35; border-radius: 8px;
  box-shadow: 0 3px 0 #0d3c78, 0 4px 8px rgba(0,0,0,.18); transition: transform .08s, box-shadow .08s, filter .15s; }
.calc-btn::before { content: "計算する"; display: block; margin: 0 auto 3px; width: max-content; padding: 0 8px; font-size: 11px; font-weight: bold;
  color: #1565c0; background: #fff; border-radius: 10px; letter-spacing: .05em; }
.calc-btn::after { content: "＞"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 18px; }
.calc-btn:hover { filter: brightness(1.12); text-decoration: none; }
.calc-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #0d3c78; }
.calc-btn-ht { box-shadow: 0 3px 0 #5c4700, 0 4px 8px rgba(0,0,0,.18) !important; }
.calc-btn-ht::before { content: "確かめる"; color: #8d6e00; }
.calcbox p.small { margin: 2px 2px 12px; font-size: 12px; line-height: 1.5; }
.tool-sub { font-size: .62em; font-weight: normal; }
.calc-tag { display: block; margin-top: 4px; font-size: 13px; font-weight: bold; letter-spacing: .02em; opacity: .95; }

/* ===== 2026-10-19 計算ツールのボタン：白地＋分野の板の色の枠（先生決定：案C。いったん案Aにして同日変更） ===== */
.calcbox > h3 { background: #1f2329; }
.calc-btn { background: #fff !important; color: var(--c, #1565c0) !important; border: 2px solid var(--c, #1565c0); box-shadow: 0 3px 0 var(--c, #1565c0) !important; }
.calc-btn::before { content: attr(data-f) !important; color: #fff !important; background: var(--c, #1565c0) !important; }
.calc-btn:hover { filter: none; background: #f6f7f9 !important; }
.calc-btn:active { box-shadow: 0 1px 0 var(--c, #1565c0) !important; }
.calc-tag { color: #4a5260; font-weight: normal; }
.ks-check { display: block; margin: 8px 0 0; font-size: 13px; line-height: 1.5; }
.ks-check input { margin-right: 4px; }
.ks-ok { margin: 6px 0; padding: 6px 8px; background: #e8f5e9; border: 1px solid #81c784; color: #1b5e20; font-size: 13px; }
.ks-card blockquote.law { margin: 6px 0; font-size: 13px; line-height: 1.7; }

/* ===== 2026-10-19 記事ページ左「〇〇板の小分類」の畳み（本文より長い分は「もっと見る」） ===== */
.subs-tree li[hidden] { display: none !important; }
.tree-more { display: block; width: calc(100% - 12px); margin: 6px auto 8px; padding: 6px 8px; font: inherit; font-size: 13px; font-weight: bold;
  color: #1f2329; background: #fff; border: 2px solid #1f2329; border-radius: 999px; cursor: pointer; }
.tree-more:hover { background: #f1f3f5; }
.tree-more[hidden] { display: none; }

/* ===== 2026-10-19 計算ツールのボタンをコンパクトに（先生指示） ===== */
.calc-btn { padding: 6px 24px 6px 8px; font-size: 14px; line-height: 1.3; border-width: 1.5px; border-radius: 6px; text-align: left; box-shadow: 0 2px 0 var(--c, #1565c0) !important; }
.calc-btn::before { display: inline-block; margin: 0 6px 0 0; padding: 0 6px; font-size: 10.5px; vertical-align: 1px; border-radius: 3px; }
.calc-btn::after { right: 8px; font-size: 14px; }
.calc-tag { display: block; margin-top: 1px; font-size: 11px; }
.calcbox p { margin: 0 0 2px; }
.calcbox p.small { margin: 1px 2px 7px; font-size: 11px; line-height: 1.4; }
.calc-btn { font-size: 13px; padding: 5px 22px 5px 7px; }
.calcbox p { margin: 0 0 6px; }
.calcbox p { margin: 0 0 2px; }
.calcbox p.small { margin: 1px 2px 8px; font-size: 11px; line-height: 1.4; color: #4a5260; }
.calc-tag { display: inline; margin: 0 0 0 2px; }
.calc-btn::before { display: inline-block; height: 16px; line-height: 16px; padding: 0 6px; vertical-align: 2px; text-align: center; box-sizing: border-box; }

/* ===== 2026-10-19 2列表示（1100px以下）で、右の列が左の列のすぐ下に続くように（本文の終わりまで空白ができていた） ===== */
@media (max-width: 1100px) and (min-width: 761px) {
  .layout { grid-template-rows: auto 1fr; }
}

/* ===== 2026-10-20 試験運用の分野が4つに：PC は2列×2段 ===== */
.tf-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .tf-cards { grid-template-columns: 1fr; } }
