/* =========================================================
   問い合わせ欄（小さい版 kpm）を下層でも使うための CSS（2026-11-15 加納さん「下層もトップとそろえて」）
   トップでは css/home-top.css が同じ規則を持つ。下層は home-top.css を読まないので、kpm と kp-cta-mini の規則だけをここに写した
   （home-top.css から機械的に抜き出したもの。トップの問い合わせ欄を直したら、ここも合わせる）。
   営業時間内は電話、営業時間外は LINE を大きくする切り替えも、この規則に入っている（cta__button-items--open / --close）。
========================================================= */
section.widget_main_cta_kjc:has(.kp-cta-mini){margin:0!important;padding:24px 16px!important}
.cta.kp-cta-mini{width:auto!important;max-width:100%!important;margin:0!important;padding:0!important;min-height:0!important;left:auto!important;right:auto!important;transform:none!important;position:static!important}
.kpm{display:grid;grid-template-columns:1fr auto;grid-template-areas:"left buttons" "note note";align-items:center;gap:12px 32px;width:100%;max-width:1200px;box-sizing:border-box;margin:0 auto;padding:20px 28px;border:2px solid var(--theme-color);background:#fff}
.kpm__left{grid-area:left}
.kpm__label{margin:0;font-size:14px;font-weight:700;color:var(--theme-color)}
.kpm__tel{margin:4px 0 0;font-family:"Noto Serif JP",serif;font-size:30px;font-weight:700;line-height:1.2;color:#1b2d3e}
.kpm__tel span{display:block;font-size:12px;font-weight:400;color:#555}
.kpm .cta__button-items{grid-area:buttons;margin:0!important;display:flex!important;gap:12px}
.kpm .cta__button-items > a{display:inline-flex!important;align-items:center;justify-content:center;gap:10px;min-width:220px;min-height:52px;margin:0!important;padding:0 22px;font-size:15px!important;font-weight:700;text-decoration:none;box-shadow:0 2px 0 rgba(0,0,0,.15)}
.kpm .cta__button-items > a br{display:none}
.kpm .cta__button-items > a img{width:22px!important;height:22px!important;object-fit:contain;margin:0}
.kpm .cta__button-items > a::after{position:static!important;transform:none!important;top:auto!important}
.kpm a.cta__button{background:var(--accent-color,#e9ba00)!important;color:#1b2d3e!important;border:0!important}
.kp-cta-mini .kpm a.cta-main-contact-line__link{background-color:#06c755!important;background-image:none!important;color:#fff!important;border:0!important}
.kpm__note{grid-area:note;border-top:1px solid #e3e7ee;padding-top:8px}
.kpm__note .cta-banner-bottom{margin:0;padding:0;background:none}
.kpm__note .cta-banner-bottom__text{margin:0;font-size:11px;line-height:1.6;color:#666;text-align:left}
@media screen and (max-width:900px){
	.kpm{grid-template-columns:1fr;grid-template-areas:"left" "buttons" "note";padding:16px}
	.kpm .cta__button-items{flex-direction:column}
	.kpm .cta__button-items > a{min-width:0}
}
.kpm--first{grid-template-areas:"head head" "left buttons" "access access" "note note";border-width:3px}
.kpm__head{grid-area:head;margin:-20px -28px 4px;padding:10px 28px;background:var(--theme-color);color:#fff;font-family:"Noto Serif JP",serif;font-size:20px;font-weight:700;letter-spacing:.06em}
.kpm__head strong{color:var(--sub-color);font-size:24px;margin-left:4px}
.kpm__head span{margin-left:12px;font-size:12px;font-weight:400;color:rgba(255,255,255,.75)}
.kpm--first .kpm__tel{font-size:36px}
.kpm__access{grid-area:access;display:flex;align-items:center;gap:16px;font-size:13px;color:#1b2d3e}
.kpm__access>span{font-weight:700}
.kpm__access .cta__tel-items{display:flex!important;gap:16px;margin:0!important;padding:0!important;position:static!important}
.kpm__access .cta__tel-item{margin:0!important;padding:0!important;font-size:13px!important;width:auto!important;min-height:0!important}
@media screen and (max-width:900px){
	.kpm--first{grid-template-areas:"head" "left" "buttons" "access" "note"}
	.kpm__head{margin:-16px -16px 4px;padding:10px 16px;font-size:17px}
	.kpm__head span{display:block;margin:2px 0 0}
	.kpm__access{flex-wrap:wrap}
}
@media screen and (max-width:1023px){
	.kpm .cta-banner__tel--sp{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:2px;margin:12px 0 0;padding:10px 12px;min-height:60px;box-sizing:border-box;background:var(--accent-color,#e9ba00);color:#1b2d3e!important;font-weight:700;text-decoration:none!important;box-shadow:0 2px 0 rgba(0,0,0,.15)}
	.kpm .cta-banner__tel--sp::before{display:none!important}
	.kpm .cta-banner__tel--sp .cta-banner__tel-top-text{margin:0;font-size:12px;line-height:1.4;color:#1b2d3e}
	.kpm .cta-banner__tel--sp .cta-banner__tel-number{margin:0;font-family:"Noto Serif JP",serif;font-size:22px;line-height:1.3;color:#1b2d3e}
}
@media screen and (max-width:900px){
	.kpm .cta__button-items > a{width:100%!important;max-width:none!important;box-sizing:border-box}
}
.kpm__head span{color:rgba(255,255,255,.9)!important}
section.widget_main_cta_kjc:has(.kp-cta-mini){padding:48px 16px!important;margin:0!important}
.cta.kp-cta-mini,.kp-cta-mini .kpm{margin-top:0!important;margin-bottom:0!important}
@media screen and (max-width:767px){
	section.widget_main_cta_kjc:has(.kp-cta-mini){padding:32px 16px!important}
}
@media screen and (min-width:901px){
	.kpm{position:relative}
	.kpm::before{content:"";position:absolute;left:20px;bottom:0;z-index:2;background:url(../img/cta-lawyer.png) left bottom/contain no-repeat;background-image:image-set(url(../img/cta-lawyer.png) 1x,url(../img/cta-lawyer_2x.png) 2x);pointer-events:none}
	.kpm--first{padding-left:250px}
	.kpm--first::before{width:224px;height:270px}
	.kpm--first .kpm__head{margin-left:-250px;padding-left:250px}
	.kpm:not(.kpm--first){padding-left:180px}
	.kpm:not(.kpm--first)::before{width:150px;height:182px}
	.kpm:not(.kpm--first) .kpm__label{white-space:nowrap;font-size:13px}
}
@media screen and (max-width:900px){
	.kpm{position:relative}
	.kpm::before{content:"";position:absolute;right:12px;z-index:2;background:url(../img/cta-lawyer.png) right bottom/contain no-repeat;background-image:image-set(url(../img/cta-lawyer.png) 1x,url(../img/cta-lawyer_2x.png) 2x);pointer-events:none}
	.kpm--first::before{top:4px;width:92px;height:112px}
	.kpm--first .kpm__head{padding-right:100px!important}
	.kpm--first .kpm__label{padding-right:96px}
	.kpm:not(.kpm--first)::before{top:10px;width:60px;height:72px}
	.kpm:not(.kpm--first) .kpm__label{padding-right:64px}
}
@media screen and (max-width:900px){
	.kpm{display:grid!important;grid-template-columns:1fr 1fr!important;column-gap:8px!important;row-gap:10px!important}
	.kpm .kpm__left,.kpm .cta__button-items{display:contents!important}
	.kpm .kpm__head{grid-area:head}
	.kpm .kpm__label{grid-area:label;margin:0}
	.kpm a.cta-banner__tel--sp{grid-area:tel;margin:0!important}
	.kpm a.cta__button{grid-area:mail}
	.kpm a.cta-main-contact-line__link{grid-area:line}
	.kpm .kpm__access{grid-area:access}
	.kpm .kpm__note{grid-area:note}
	.kpm--first:has(.cta__button-items--open){grid-template-areas:"head head" "label label" "tel tel" "mail line" "access access" "note note"!important}
	.kpm:not(.kpm--first):has(.cta__button-items--open){grid-template-areas:"label label" "tel tel" "mail line" "note note"!important}
	.kpm--first:has(.cta__button-items--close){grid-template-areas:"head head" "label label" "line line" "mail tel" "access access" "note note"!important}
	.kpm:not(.kpm--first):has(.cta__button-items--close){grid-template-areas:"label label" "line line" "mail tel" "note note"!important}
	.kpm:has(.cta__button-items--open) a.cta__button,
	.kpm:has(.cta__button-items--open) a.cta-main-contact-line__link,
	.kpm:has(.cta__button-items--close) a.cta__button,
	.kpm:has(.cta__button-items--close) a.cta-banner__tel--sp{display:flex!important;flex-direction:row!important;align-items:center;justify-content:center;gap:6px;min-width:0!important;width:auto!important;min-height:48px!important;height:auto!important;margin:0!important;padding:6px 8px!important;background:#fff!important;background-image:none!important;border:1px solid #c9d3df!important;box-shadow:none!important;color:#1b2d3e!important;font-size:13px!important;font-weight:700;line-height:1.3!important}
	.kpm:has(.cta__button-items--open) a.cta__button::after,
	.kpm:has(.cta__button-items--open) a.cta-main-contact-line__link::after,
	.kpm:has(.cta__button-items--close) a.cta__button::after{display:none!important}
	.kpm:has(.cta__button-items--open) a.cta-main-contact-line__link{color:#06a648!important;border-color:#06c755!important}
	.kpm:has(.cta__button-items--close) a.cta-banner__tel--sp .cta-banner__tel-top-text{display:none}
	.kpm:has(.cta__button-items--close) a.cta-banner__tel--sp .cta-banner__tel-number{font-family:inherit!important;font-size:13px!important}
	.kpm:not(.kpm--first)::before{display:none!important}
	.kpm:not(.kpm--first) .kpm__label{padding-right:0!important}
}
@media screen and (min-width:901px){
	.kpm:has(.cta__button-items--open) .cta__button-items > a{background:#fff!important;background-image:none!important;border:1px solid #c9d3df!important;box-shadow:none!important;color:#1b2d3e!important;min-height:48px!important;min-width:200px!important}
	.kpm:has(.cta__button-items--open) a.cta-main-contact-line__link{color:#06a648!important;border-color:#06c755!important}
	.kpm:has(.cta__button-items--open) .kpm__tel{font-size:40px}
	.kpm:has(.cta__button-items--close) a.cta__button{background:#fff!important;border:1px solid #c9d3df!important;box-shadow:none!important;color:#1b2d3e!important}
	.kpm:has(.cta__button-items--close) a.cta-main-contact-line__link{min-width:280px!important;min-height:60px!important;font-size:17px!important}
}
@media screen and (max-width:900px){
	.kpm:has(.cta__button-items--open) a.cta__button,
	.kpm:has(.cta__button-items--open) a.cta-main-contact-line__link,
	.kpm:has(.cta__button-items--close) a.cta__button,
	.kpm:has(.cta__button-items--close) a.cta-banner__tel--sp{white-space:nowrap;font-size:12.5px!important;letter-spacing:0!important}
	.kpm a.cta__button img,.kpm a.cta-main-contact-line__link img{position:static!important;transform:none!important;width:18px!important;height:18px!important;margin:0!important;flex:0 0 18px}
	.kpm a br{display:none!important}
	.kpm__head strong{margin-left:12px;white-space:nowrap}
	.kpm--first .kpm__head{font-size:16px!important;text-wrap:balance}
}
@media screen and (min-width:901px){
	.kpm .cta__button-items{display:grid!important;grid-template-columns:1fr 1fr;gap:12px}
	.kpm .cta__button-items > a{width:auto!important;min-width:0!important;white-space:nowrap;padding:0 16px!important;font-size:15px!important}
}
@media screen and (max-width:767px){
	section.widget_main_cta_kjc:has(.kp-cta-mini){padding-left:0!important;padding-right:0!important}
	.cta.kp-cta-mini{padding-left:16px!important;padding-right:16px!important}
}
@media screen and (max-width:767px){
	.cta.kp-cta-mini{padding-left:0!important;padding-right:0!important}
}
.kpm .cta__button-items > a{display:flex!important;align-items:center;justify-content:center;gap:8px}
.kpm a.cta__button img,.kpm a.cta-main-contact-line__link img{position:static!important;transform:none!important;width:20px!important;height:20px!important;margin:0!important;flex:0 0 20px}
@media screen and (max-width:900px){
	.kpm--first::before{top:10px!important;right:12px!important;width:84px!important;height:84px!important;border-radius:50%;border:3px solid #fff;box-sizing:border-box;background-color:#eef1f6!important;background-size:120% auto!important;background-position:50% 8%!important;box-shadow:0 2px 6px rgba(0,0,0,.25)}
	.kpm--first .kpm__head{min-height:104px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center}
}
@media screen and (max-width:900px){
	.kpm--first .kpm__head{display:block!important;font-size:15px!important;line-height:1.5!important;padding-top:22px!important;padding-bottom:18px!important}
	.kpm--first .kpm__head strong{display:inline;margin-left:2px;font-size:21px}
	.kpm--first .kpm__head span{display:block;margin:4px 0 0!important;font-size:12px}
}
.kl-lead .cta.kp-cta-mini{margin-top:40px!important}
.kpm__head strong{margin-left:12px;white-space:nowrap}
.kpm:not(.kpm--first) .kpm__label strong{margin:0 4px 0 12px;font-size:1.15em;color:var(--theme-color)}
.kpm:not(.kpm--first) .kpm__label span{display:block;font-size:.9em;font-weight:400}
.kpm__recept{grid-area:recept;font-family:NotoSansJP,sans-serif}
.kpm__recept-main{margin:0;font-size:16px;font-weight:700;line-height:1.5;color:var(--theme-color)}
.kpm__recept-main span{display:inline-block;margin-right:8px;padding:4px 8px;background:var(--theme-color);font-size:12px;line-height:1;color:#fff;vertical-align:1px}
/* 「相談予約」の札と受付の文：PC は 1 行、スマホ・タブレット縦は札の次の行から（11/15。home-top.css と同じ） */
.kpm__recept-main{white-space:nowrap}
@media screen and (max-width:900px){
	.kpm__recept-main{white-space:normal}
	.kpm__recept-main span{display:block;width:fit-content;margin:0 0 6px}
}
.kpm__note .cta-banner-bottom__text{letter-spacing:0;text-wrap:pretty}
.kpm__recept-note{margin:4px 0 0;font-size:12px;line-height:1.5;color:#555}
.kpm{grid-template-areas:"left buttons" "recept buttons" "note note"}
.kpm--first{grid-template-areas:"head head" "left buttons" "recept buttons" "access access" "note note"}
.kpm__left{align-self:end}
.kpm__recept{align-self:start}
@media screen and (min-width:901px){
	.kpm:not(.kpm--first) .kpm__label{white-space:normal}
}
.kp-cta-mini .kpm:has(.cta__button-items) a.cta__button{border:2px solid var(--theme-color)!important;background:#eef1f9!important;color:var(--theme-color)!important}
@media screen and (max-width:900px){
	.kpm .kpm__recept{grid-area:recept}
	.kpm--first:has(.cta__button-items--open){grid-template-areas:"head head" "label label" "tel tel" "recept recept" "mail line" "access access" "note note"!important}
	.kpm:not(.kpm--first):has(.cta__button-items--open){grid-template-areas:"label label" "tel tel" "recept recept" "mail line" "note note"!important}
	.kpm--first:has(.cta__button-items--close){grid-template-areas:"head head" "label label" "line line" "recept recept" "mail tel" "access access" "note note"!important}
	.kpm:not(.kpm--first):has(.cta__button-items--close){grid-template-areas:"label label" "line line" "recept recept" "mail tel" "note note"!important}
	.kpm__recept-main{font-size:14px}
	.kpm--first .kpm__head strong{display:block;margin-left:0}
}
@media screen and (min-width:901px) and (max-width:1199px){
	.kpm{grid-template-columns:1fr!important;grid-template-areas:"left" "recept" "buttons" "note"!important}
	.kpm--first{grid-template-areas:"head" "left" "recept" "buttons" "access" "note"!important}
	.kpm .cta__button-items{max-width:560px}
	.kpm .kpm__tel{white-space:nowrap}
}

/* 下層だけの調整：本文の列は狭いので、PC でもボタンを受付の下に回して 1 列にする */
@media screen and (min-width:901px){
	.kp-cta-lower .kpm{grid-template-columns:1fr!important;grid-template-areas:"left" "recept" "buttons" "note"!important}
	.kp-cta-lower .kpm--first{grid-template-areas:"head" "left" "recept" "buttons" "access" "note"!important}
	.kp-cta-lower .kpm .cta__button-items{max-width:560px}
	.kp-cta-lower .kpm .kpm__tel{white-space:nowrap}
}
.cta.kp-cta-lower{margin:40px 0!important}
/* 記事の本文の中（ショートコード）では本文の p の指定（16px・下 20px）が勝つので、欄の中の文字をトップと同じに戻す */
.wppost .kpm p{margin-bottom:0;line-height:1.5}
.wppost .kpm .kpm__label{font-size:14px;line-height:1.6}
.wppost .kpm .kpm__label strong{white-space:nowrap}
.wppost .kpm .kpm__tel{font-size:30px;line-height:1.2}
.wppost .kpm .kpm__recept-main{font-size:16px}
.wppost .kpm .kpm__recept-note{font-size:12px}
.wppost .kpm .cta-banner-bottom__text{font-size:11px;line-height:1.6}
@media screen and (min-width:901px){
	.wppost .kpm:has(.cta__button-items--open) .kpm__tel{font-size:40px}
	.wppost .kpm:not(.kpm--first) .kpm__label{font-size:13px}
}
/* 下層の整形（11/15 加納さん「コラムだと形がくずれる」）：帯の（一部対象外…）は次の行にまとめて出し、ボタンは中身の幅いっぱいに */
.kp-cta-lower .kpm__head span{display:block;margin:2px 0 0}
@media screen and (min-width:901px){
	.kp-cta-lower .kpm .cta__button-items{max-width:none}
}
/* 記事の中では本文の p の色・大きさが帯の見出しにも効くので戻す */
.wppost .kpm .kpm__head{margin-bottom:4px;font-size:20px;line-height:1.5;color:#fff}
@media screen and (max-width:900px){.wppost .kpm .kpm__head{font-size:16px}}
/* 下層：本文の後の欄の上下の余白が、欄の外側（48/32px）と欄自身（40px）で二重になっていたので、欄自身の 32px だけにする（11/15 加納さん「ここの余白調整」） */
section.widget_main_cta_kjc:has(.kp-cta-lower){padding:0!important}
.cta.kp-cta-lower{margin:32px 0!important}
/* 1279px 以下はサイドが本文の下に来る。欄のすぐ下の「ご相談内容一覧」などの上の 40px も重なるので、欄の下の 32px だけにする */
@media screen and (max-width:1279px){
	.main:has(.kp-cta-lower) ~ .side > .widget_side_contact + .widget_side_middle_list .side-middle-list{margin-top:0}
}
/* 下層（PC）：1 列で縦に長くなる分、写真が左下で小さく見えていた（11/15 加納さん「バランスが悪い」）。
   写真を欄の高さに合わせて大きくし、頭が帯にかかる位置まで出す */
@media screen and (min-width:901px){
	.kp-cta-lower .kpm--first{padding-left:300px}
	.kp-cta-lower .kpm--first::before{left:24px;width:262px;height:340px}
	.kp-cta-lower .kpm--first .kpm__head{margin-left:-300px;padding-left:300px}
}

/* 縦の長さを抑える（11/15 加納さん「電話とメールと LINE を同じ高さに」「縦幅をおさえて」）：
   1 段目に電話番号・メール・LINE を下端でそろえて並べ、2 段目に「相談予約」と受付・注記を 1 行で */
@media screen and (min-width:1200px){
	.kpm--first:not(.kp-x){grid-template-areas:"head head" "left buttons" "recept recept" "access access" "note note"}
	.kpm__left{align-self:end}
	.kpm .cta__button-items{align-self:end}
	.kpm__recept{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 14px}
	.kpm__recept .kpm__recept-note{margin:0}
}
/* 注記の行末に 1〜2 字だけ落ちないよう、行の長さをそろえる（11/15「す。をなんとかして」） */
.kpm .kpm__note .cta-banner-bottom__text{letter-spacing:0!important;text-wrap:pretty}
.kpm__recept-note{white-space:nowrap}
@media screen and (max-width:900px){.kpm__recept-note{white-space:normal}}
.kpm__note-line{display:block;text-wrap:pretty}
.kpm__note-tail{white-space:nowrap}
/* 下層（本文の列が広い 1280px〜）：電話番号・メール・LINE を横 1 列に並べ、その下に受付を 1 行で。縦の長さを詰める（11/15 加納さん「横一列でならべるのはどうか」）。
   写真は欄が低くなる分だけ小さく */
@media screen and (min-width:1280px){
	.kp-cta-lower .kpm--first{grid-template-columns:auto 1fr!important;grid-template-areas:"head head" "left buttons" "recept recept" "access access" "note note"!important;column-gap:20px;padding-left:230px}
	.kp-cta-lower .kpm--first::before{left:16px;width:200px;height:260px}
	.kp-cta-lower .kpm--first .kpm__head{margin-left:-230px;padding-left:230px}
	.kp-cta-lower .kpm__left{align-self:end}
	.kp-cta-lower .kpm .kpm__tel{font-size:34px!important}
	.kp-cta-lower .kpm .cta__button-items{grid-template-columns:1fr 1fr!important;gap:10px;align-self:end}
	.kp-cta-lower .kpm .cta__button-items > a{min-height:50px!important;padding:0 8px!important;gap:6px!important;font-size:14px!important}
	.kp-cta-lower .kpm .cta__button-items > a img{width:18px!important;height:18px!important}
	/* 営業時間外の LINE の最小幅（280px）を外し、メールと同じ幅に */
	.kp-cta-lower .kpm:has(.cta__button-items--close) a.cta-main-contact-line__link{min-width:0!important;font-size:15px!important}
	.kp-cta-lower .kpm__recept{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 12px}
	.kp-cta-lower .kpm__recept .kpm__recept-note{margin:0}
}
/* 営業時間外の小さい「電話でお問い合わせ」ボタンにも、メール・LINE と同じく左にアイコンを出す（11/15 加納さん） */
.kp-cta-mini .kpm:has(.cta__button-items--close) a.cta-banner__tel--sp::before{display:inline-block!important;content:"\e907"!important;position:static!important;transform:none!important;margin:0;font-family:"icomoon"!important;font-size:18px!important;font-weight:normal;line-height:1;color:var(--theme-color)!important}
/* 営業時間外の電話ボタンが地味だったので、メールと同じ太さの枠＋電話の色（黄）の薄い地にしてつり合いをとる（11/15 加納さん「色彩調整」） */
.kp-cta-mini .kpm:has(.cta__button-items--close) a.cta-banner__tel--sp{border:2px solid var(--accent-color,#e9ba00)!important;background:#fff8dc!important;color:#1b2d3e!important}
.kp-cta-mini .kpm:has(.cta__button-items--close) a.cta-banner__tel--sp::before{color:#c99a00!important}
/* スマホ・タブレット：各事務所へのリンクは文字の高さしかなく押しにくい。見た目は変えずに、上下に当たり判定だけ広げて 44px に（11/15 デザインの決まり） */
@media screen and (max-width:1023px){
	.kpm__access .cta__tel-item{display:inline-block!important;padding:16px 0!important;margin:-16px 0!important}
}
/* スマホ：帯の（一部対象外あり、まずはご予約の連絡を）を 1 行で（11/15 加納さん）。右上の写真の下まで下げて、写真の分の右の空きを使わずに横いっぱいに出す */
@media screen and (max-width:900px){
	.kpm--first .kpm__head span{margin:16px -100px 0 0!important;white-space:nowrap;letter-spacing:0}
}
