/* =========================================================
   取扱分野の一覧（シチュエーション別／犯罪類型別）modules/home-field-v2.php
   トップ・取扱分野一覧（/field/）・取扱分野の親ページの下で同じ見た目にするため、home-top.css から分けた（2026-10-09）
   親テーマの CSS より強く効かせるため :not(#kp-top) を付けている（home-top.css と同じ）
=========================================================*/
/* 基本（A の形） */
.home_service8.kp-field-b:not(#kp-top){max-width:1200px;margin:0 auto}
.kp-field-b:not(#kp-top) .home_field_content{margin-top:24px!important}
.kp-field-b:not(#kp-top) .home_service4-content + .home_service4-content{margin-top:40px!important}
.kp-field-b:not(#kp-top) .home_service4__subtitle{display:flex;align-items:center;gap:12px;margin:0 0 14px!important;padding:0 0 10px!important;background:none!important;border-bottom:1px solid #d6dde6}
.kp-field-b:not(#kp-top) .home_service4__subtitle::before,.kp-field-b:not(#kp-top) .home_service4__subtitle::after,.kp-field-b:not(#kp-top) .home_service4__subtitle-head::before,.kp-field-b:not(#kp-top) .home_service4__subtitle-head::after{display:none!important}
.kp-field-b:not(#kp-top) .home_service4__subtitle-head{margin:0!important;padding:2px 12px!important;background:var(--theme-color);color:#fff!important;font-size:14px!important;letter-spacing:.1em;line-height:1.8}
.kp-field-b:not(#kp-top) ul.home_service8__ul{display:grid!important;grid-template-columns:repeat(3,1fr);gap:16px!important;margin:0!important;padding:0!important;align-items:stretch!important}
.kp-field-b:not(#kp-top) li.home_service8-li{width:auto!important;max-width:none!important;height:auto!important;min-height:0!important;margin:0!important;align-self:stretch!important;display:flex;flex-direction:column;position:relative;background:#fff!important;border:1px solid #e3e7ee!important;border-top:3px solid var(--theme-color)!important;box-shadow:none!important;padding:0!important}
.kp-field-b:not(#kp-top) li.home_service8-li:hover{border-color:var(--theme-color)!important}
.kp-field-b:not(#kp-top) li.home_service8-li a.home_service8-li__card{display:block!important;padding:16px 20px 10px!important;background:none!important;border:0!important;outline:none!important;box-shadow:none!important;height:auto!important;min-height:0!important;position:static!important;text-decoration:none!important}
.kp-field-b:not(#kp-top) .home_service8__head{display:flex!important;align-items:center;justify-content:space-between;margin:0!important;padding:0!important;border:0!important}
.kp-field-b:not(#kp-top) .home_service8__head::after{content:"";width:7px;height:7px;border-top:2px solid var(--theme-color);border-right:2px solid var(--theme-color);transform:rotate(45deg);margin-right:4px}
.kp-field-b:not(#kp-top) .home_service8-li__title{font-family:"Noto Serif JP",serif;font-size:18px!important;font-weight:700;color:var(--theme-color)!important}
.kp-field-b:not(#kp-top) li.home_service8-li div.home_service8__main.home_field__main{position:static!important;height:auto!important;inset:auto!important;transform:none!important;padding:2px 20px 18px!important;margin:0!important;border:0!important;background:none!important}
.kp-field-b:not(#kp-top) .home_service8-li-child__ul{display:flex!important;flex-wrap:wrap;gap:8px!important;margin:0!important;padding:0!important}
.kp-field-b:not(#kp-top) .home_service8-li-child__link{display:inline-block!important;text-decoration:none!important}
.kp-field-b:not(#kp-top) li.home_service8-li-child__li{margin:0!important;text-indent:0!important;display:block!important;white-space:nowrap;padding:3px 10px!important;border:1px solid #c9d3df;border-radius:2px;background:#f6f8fb;font-size:13px!important;line-height:1.6;color:#1b2d3e!important;list-style:none}
.kp-field-b:not(#kp-top) .home_service8-li-child__li::before{display:none!important}
.kp-field-b:not(#kp-top) .home_service8-li-child__link:hover .home_service8-li-child__li{background:var(--theme-color);border-color:var(--theme-color);color:#fff!important}
.kp-field-b:not(#kp-top) .home_service8__button{margin-top:28px!important}
@media screen and (max-width:767px){.kp-field-b:not(#kp-top) ul.home_service8__ul{grid-template-columns:1fr;gap:12px!important}}
.home_field.kp-field-b:not(#kp-top) ul.home_service8__ul{display:block!important;border-top:1px solid #d6dde6}
.home_field.kp-field-b:not(#kp-top) li.home_service8-li{display:grid!important;grid-template-columns:270px 1fr;align-items:center;border:0!important;border-bottom:1px solid #d6dde6!important;background:none!important;outline:none!important}
.home_field.kp-field-b:not(#kp-top) li.home_service8-li:hover{background:#f6f8fb!important;border-color:#d6dde6!important}
.home_field.kp-field-b:not(#kp-top) li.home_service8-li a.home_service8-li__card{padding:14px 16px!important;border-right:1px solid #e3e7ee!important;height:100%!important;display:flex!important;align-items:center}
.home_field.kp-field-b:not(#kp-top) .home_service8__head{gap:12px;justify-content:flex-start!important;width:100%}
.home_field.kp-field-b:not(#kp-top) .home_service8__head::after{margin-left:auto}
.home_field.kp-field-b:not(#kp-top) .kp-ficon{width:32px;height:32px;object-fit:contain;flex:0 0 32px}
.home_field.kp-field-b:not(#kp-top) .home_service8-li__title{font-size:17px!important;white-space:nowrap}
.home_field.kp-field-b:not(#kp-top) li.home_service8-li div.home_service8__main.home_field__main{padding:10px 16px!important}
.home_field.kp-field-b:not(#kp-top) .home_service8-li-child__ul{display:grid!important;grid-template-columns:repeat(auto-fill,150px);gap:8px!important}
.home_field.kp-field-b:not(#kp-top) .home_service8-li-child__link{display:flex!important;min-width:0!important;width:100%!important;justify-self:stretch}
.home_field.kp-field-b:not(#kp-top) .home_service8-li-child__link.kp-wide{grid-column:span 2}
.home_field.kp-field-b:not(#kp-top) li.home_service8-li-child__li{flex:1 1 auto;width:100%!important;box-sizing:border-box;text-align:center;padding:4px 12px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#fff!important;border-color:#d6dde6!important}
/* タグにカーソルを当てたとき：紺地に白文字（上の白背景の指定より強くする） */
.home_field.kp-field-b:not(#kp-top) .home_service8-li-child__link:hover li.home_service8-li-child__li{background:var(--theme-color)!important;border-color:var(--theme-color)!important;color:#fff!important}
.home_field.kp-field-b:not(#kp-top) .home_service4__subtitle{border-bottom:0!important;margin-bottom:8px!important}
@media screen and (max-width:767px){
.home_field.kp-field-b:not(#kp-top) li.home_service8-li{grid-template-columns:1fr}
.home_field.kp-field-b:not(#kp-top) li.home_service8-li a.home_service8-li__card{border-right:0!important;padding:12px 8px 6px!important}
.home_field.kp-field-b:not(#kp-top) .kp-ficon{width:28px;height:28px;flex-basis:28px}
.home_field.kp-field-b:not(#kp-top) .home_service8-li__title{font-size:16px!important}
.home_field.kp-field-b:not(#kp-top) li.home_service8-li div.home_service8__main.home_field__main{padding:4px 8px 14px!important}
.home_field.kp-field-b:not(#kp-top) .home_service8-li-child__ul{grid-template-columns:1fr 1fr!important;gap:6px!important}
.home_field.kp-field-b:not(#kp-top) li.home_service8-li-child__li{font-size:13px!important;padding:8px 6px!important}}
.home_field.kp-field-b:not(#kp-top) .home_service8-li__title{font-size:18px!important}
/* 取扱分野：とても長い小分類（17 文字以上）はタグ 3 つ分の幅（SP は 2 列すべて） */
.home_field.kp-field-b:not(#kp-top) .home_service8-li-child__link.kp-wider{grid-column:span 3}
@media screen and (max-width:767px){
	.home_field.kp-field-b:not(#kp-top) .home_service8-li-child__link.kp-wider{grid-column:span 2}
}
/* 取扱分野（PC）：小分類のタグを幅のそろった 3 列に並べる（名前の長さで幅がばらばらだと縦の線がそろわず、ガタついて見えたため。2026-10-09）
   長い名前は 2 行に折り返し、「>」は右端にそろえる。文字の高さなどは、このファイルの最後の PC の指定 */
@media screen and (min-width:768px){
	.home_field.kp-field-b:not(#kp-top) .home_service8-li-child__ul{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:8px!important}
	.home_field.kp-field-b:not(#kp-top) .home_service8-li-child__link,
	.home_field.kp-field-b:not(#kp-top) .home_service8-li-child__link.kp-wide,
	.home_field.kp-field-b:not(#kp-top) .home_service8-li-child__link.kp-wider{width:100%!important;grid-column:auto!important}
}
/* 取扱分野の小分類のアイコン：白い線画を紺の四角に乗せる（取扱分野の親ページのボタンと同じ見せ方） */
.home_field.kp-field-b:not(#kp-top) li.home_service8-li-child__li:has(.kp-cicon){display:flex!important;align-items:stretch;padding:0 14px 0 0!important;gap:10px;overflow:hidden}
.kp-cicon{display:flex;align-items:center;justify-content:center;flex:0 0 32px;min-height:32px;background:var(--theme-color)}
.kp-cicon img{width:20px;height:20px;object-fit:contain}
.home_field.kp-field-b:not(#kp-top) li.home_service8-li-child__li:has(.kp-cicon){line-height:32px!important}
.home_field.kp-field-b:not(#kp-top) .home_service8-li-child__link:hover .kp-cicon{background:var(--sub-color)}
/* 取扱分野の小分類のタグを少し強くする（薄く見えていたため）：文字 14px・濃い紺・やや太く、背景に薄い色、枠を少し濃く、右端に「＞」 */
.home_field.kp-field-b:not(#kp-top) li.home_service8-li-child__li{font-size:14px!important;font-weight:500;color:#13204f!important;background:#f6f8fb!important;border-color:#c3ccd9!important}
.home_field.kp-field-b:not(#kp-top) li.home_service8-li-child__li::after{content:"";display:inline-block;flex:0 0 auto;width:6px;height:6px;margin-left:10px;align-self:center;border-top:1.5px solid var(--theme-color);border-right:1.5px solid var(--theme-color);transform:rotate(45deg)}
.home_field.kp-field-b:not(#kp-top) .home_service8-li-child__link:hover li.home_service8-li-child__li::after{border-color:#fff}

/* 取扱分野のページでは field.css が画像に下余白 15px を付け、アイコンが文字より上にずれるため消す */
.home_field.kp-field-b:not(#kp-top) .kp-ficon,.home_field.kp-field-b:not(#kp-top) .kp-cicon img{margin:0!important}
/* SP：小分類のタグを 2 列にそろえる。長い名前は 2 列分に広げず折り返し、「>」は右端にそろえる（幅がばらばらでガタガタに見えたため） */
@media screen and (max-width:767px){
	.home_field.kp-field-b:not(#kp-top) .home_service8-li-child__ul{display:grid!important;grid-template-columns:1fr 1fr!important}
	.home_field.kp-field-b:not(#kp-top) .home_service8-li-child__link,
	.home_field.kp-field-b:not(#kp-top) .home_service8-li-child__link.kp-wide,
	.home_field.kp-field-b:not(#kp-top) .home_service8-li-child__link.kp-wider{grid-column:auto!important;width:100%!important}
	.home_field.kp-field-b:not(#kp-top) li.home_service8-li-child__li,
	.home_field.kp-field-b:not(#kp-top) li.home_service8-li-child__li:has(.kp-cicon){height:100%;white-space:normal;text-align:left;line-height:1.4!important;align-items:center;padding-top:0!important;padding-bottom:0!important}
	.home_field.kp-field-b:not(#kp-top) li.home_service8-li-child__li:has(.kp-cicon){font-size:13px!important;gap:8px;padding-right:10px!important;min-height:38px}
	.home_field.kp-field-b:not(#kp-top) li.home_service8-li-child__li .kp-cicon{align-self:stretch;flex-basis:28px;min-height:0}
	.home_field.kp-field-b:not(#kp-top) li.home_service8-li-child__li::after{margin-left:auto!important}
}

/* 取扱分野の親ページの「ご相談内容一覧」（[field-links] の後ろ）。見た目は css/soudan.css。
   以前は親ページの本文に <style> ごと貼ってあった分のうち、本文（.wppost）の指定を打ち消す部分だけをここに置く */
.wppost .home_soudan--lower ul{padding-left:0}
.wppost .home_soudan--lower img{margin-bottom:0}
.wppost .home_soudan--lower ul > li::before{display:none}
.wppost .home_soudan--lower .home_soudan-wrapper .home_soudan-content .home_soudan__subtitle{border-bottom:none!important;margin-top:0}

/* 取扱分野の親ページの下：見出し「刑事事件の取扱分野」を本文の「ご相談内容一覧」（.wppost h2）と同じ見た目にし、上の余白を詰める
   （本文の下余白 105px に部品の上余白 80px が重なり、間が空きすぎていたため） */
div.main > .widget_home_field:has(> .kp-field-b){padding-top:0!important}
.kp-field-title-lower{margin:0 0 16px;padding:10px;line-height:1.4;background-color:#f8f7f4;font-weight:bold;font-size:22rem;border-left:4px solid var(--theme-color)}
@media screen and (min-width:1280px){.kp-field-title-lower{padding:20px 16px 20px 22px;font-size:24px}}
/* 「ご相談内容一覧」の下から「刑事事件の取扱分野」までを 64px に（一覧の下余白 74px＋本文の下余白 105px で約 180px 空いていた） */
.wppost .home_soudan--lower .home_soudan-wrapper,
.wppost .home_soudan--lower .home_soudan-content:last-child{margin-bottom:0!important}
.wppost:has(.home_soudan--lower){padding-bottom:0!important}
/* 取扱分野（PC）の 3 列：タグを枠いっぱいにし、2 行になっても文字とアイコンを上下の真ん中に、「>」を右端に（上の line-height:32px などを上書き） */
@media screen and (min-width:768px){
	.home_field.kp-field-b:not(#kp-top) li.home_service8-li-child__li,
	.home_field.kp-field-b:not(#kp-top) li.home_service8-li-child__li:has(.kp-cicon){width:100%!important;height:100%;min-height:34px;white-space:normal;line-height:1.4!important;align-items:center;overflow:visible;text-overflow:clip}
	.home_field.kp-field-b:not(#kp-top) li.home_service8-li-child__li .kp-cicon{align-self:stretch}
	.home_field.kp-field-b:not(#kp-top) li.home_service8-li-child__li::after{margin-left:auto!important}
}
/* サイドバーのあるページ（/field/・親ページの下）は本文の幅が狭く、3 列だと名前がほとんど折り返すので 2 列にする。文字は左ぞろえ */
@media screen and (min-width:768px){
	.main .home_field.kp-field-b:not(#kp-top) .home_service8-li-child__ul{grid-template-columns:repeat(2,1fr)!important}
}
.home_field.kp-field-b:not(#kp-top) li.home_service8-li-child__li{text-align:left!important}
/* 取扱分野のページの H1 の下余白を、他のページと同じ 25px にそろえる（common.css の .page__field .h1-style が 80px で、一覧との間が空きすぎていたため。
   common.css は検証に feature/faq_new 版が上がっているので、こちらで上書きする） */
@media screen and (min-width:1024px){
	.page__field .h1-style{margin-bottom:25px}
}
/* 取扱分野一覧（/field/）だけ：「シチュエーション別」「犯罪類型別」を、他のページの見出し 2（.wppost h2）と同じ見た目にする（2026-10-09 加納さん）
   このページは H1「取扱分野」の下にこの 2 つが並ぶ構成なので、トップの帯の形より本文の見出しの形が合う */
.kp-field-b--archive.kp-field-b:not(#kp-top) .home_service4__subtitle{display:block;text-align:left!important;padding:0!important;margin:0 0 16px!important;border-bottom:0!important}
.kp-field-b--archive.kp-field-b:not(#kp-top) .home_service4-content + .home_service4-content .home_service4__subtitle{margin-top:0!important}
.kp-field-b--archive.kp-field-b:not(#kp-top) .home_service4__subtitle-head{display:block;text-align:left!important;margin:0!important;padding:10px!important;background:#f8f7f4!important;border:0!important;border-left:4px solid var(--theme-color)!important;color:#0d0d0d!important;font-size:22rem!important;font-weight:bold;letter-spacing:normal;line-height:1.4}
@media screen and (min-width:1280px){
	.kp-field-b--archive.kp-field-b:not(#kp-top) .home_service4__subtitle-head{padding:20px 16px 20px 22px!important;font-size:24px!important}
}
/* 小分類のタグにカーソルを当てたとき：塗りつぶし（紺地に白・アイコンは黄）をやめ、枠とアイコンの地を明るい紺にするだけにする
   （取扱分野の親ページのタブ .crime-tabs と同じ動き。2026-10-09 加納さん） */
.home_field.kp-field-b:not(#kp-top) .home_service8-li-child__link:hover li.home_service8-li-child__li{background:#f6f8fb!important;border-color:#1a4fa3!important;color:#13204f!important}
.home_field.kp-field-b:not(#kp-top) .home_service8-li-child__link:hover .kp-cicon{background:#1a4fa3}
.home_field.kp-field-b:not(#kp-top) .home_service8-li-child__link:hover li.home_service8-li-child__li::after{border-color:#1a4fa3}
/* 小分類のタグ：カーソルを当てても下線は出さない（ハイライトだけ） */
.home_field.kp-field-b:not(#kp-top) .home_service8-li-child__link,
.home_field.kp-field-b:not(#kp-top) .home_service8-li-child__link:hover,
.home_field.kp-field-b:not(#kp-top) .home_service8-li-child__link:hover *{text-decoration:none!important}
/* 分野（左の欄）にカーソルを当てたときは、行全体ではなく左の欄だけを薄く塗る（右の小分類は各タグが自分でハイライトするため） */
.home_field.kp-field-b:not(#kp-top) li.home_service8-li:hover{background:none!important}
.home_field.kp-field-b:not(#kp-top) li.home_service8-li a.home_service8-li__card:hover{background:#f6f8fb!important;text-decoration:none!important}
/* 小分類のタグの地は白にする（薄い色で塗っていたが、無くてよいとのこと。2026-10-09 加納さん）。カーソルを当てたときだけ薄く塗る */
.home_field.kp-field-b:not(#kp-top) li.home_service8-li-child__li{background:#fff!important}
.home_field.kp-field-b:not(#kp-top) .home_service8-li-child__link:hover li.home_service8-li-child__li{background:#f6f8fb!important}
/* 小分類のタグを大きくする（2026-10-09 試し）：PC は高さ 40px・文字 15px、スマホは指で押しやすい高さ 44px。分野名（18px）より目立たないよう文字は 15px まで */
@media screen and (min-width:768px){
	.home_field.kp-field-b:not(#kp-top) li.home_service8-li-child__li,
	.home_field.kp-field-b:not(#kp-top) li.home_service8-li-child__li:has(.kp-cicon){min-height:40px;font-size:15px!important}
	.home_field.kp-field-b:not(#kp-top) li.home_service8-li-child__li .kp-cicon{flex-basis:36px}
	.home_field.kp-field-b:not(#kp-top) .kp-cicon img{width:22px;height:22px}
}
@media screen and (max-width:767px){
	.home_field.kp-field-b:not(#kp-top) li.home_service8-li-child__li,
	.home_field.kp-field-b:not(#kp-top) li.home_service8-li-child__li:has(.kp-cicon){min-height:44px}
	.home_field.kp-field-b:not(#kp-top) li.home_service8-li-child__li .kp-cicon{flex-basis:32px}
}
/* 分類の見出し（シチュエーション別／犯罪類型別）：紺の文字＋紺の太い下線のタブ。表との境は薄い灰色の線。タブの幅は 190px でそろえる
   （紺の箱だと浮いて重く見えたため、2026-10-09 加納さんと調整。説明の一言は付けない） */
.home_field.kp-field-b:not(.kp-field-b--archive):not(#kp-top) .home_service4__subtitle{display:block!important;margin:0!important;padding:0!important;text-align:left!important;background:none!important;border-bottom:1px solid #c3ccd9!important}
.home_field.kp-field-b:not(.kp-field-b--archive):not(#kp-top) .home_service4__subtitle-head{display:inline-block;width:190px!important;box-sizing:border-box;margin:0 0 -1px!important;padding:0 2px 8px!important;background:none!important;border-bottom:3px solid var(--theme-color)!important;color:var(--theme-color)!important;font-size:17px!important;font-weight:700;letter-spacing:.04em;text-align:left}
.home_field.kp-field-b:not(.kp-field-b--archive):not(#kp-top) ul.home_service8__ul{border-top:0!important}
/* 取扱分野一覧（/field/）は、見出し 2 の形（.wppost h2 と同じ） */
.kp-field-b--archive.kp-field-b:not(#kp-top) .home_service4__subtitle{display:block!important;border-bottom:0!important;margin:0 0 16px!important}
.kp-field-b--archive.kp-field-b:not(#kp-top) .home_service4__subtitle-head{padding:10px!important;font-size:22rem!important;letter-spacing:normal}
.kp-field-b--archive.kp-field-b:not(#kp-top) ul.home_service8__ul{border-top:1px solid #d6dde6!important}
@media screen and (min-width:1280px){
	.kp-field-b--archive.kp-field-b:not(#kp-top) .home_service4__subtitle-head{padding:20px 16px 20px 22px!important;font-size:24px!important}
}
