/* 2026-10-11 読みやすさ・画像・操作の共通補正。各サイトの色と演出は引き継ぐ。 */
html{scroll-padding-top:110px}body{font-size:16px}
h1,h2,h3,h4,h5,h6,summary{word-break:auto-phrase;text-wrap:balance;overflow-wrap:break-word}
button,input,select,textarea{font-size:16px}
img{max-width:100%;height:auto}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid currentColor;outline-offset:5px}
.z-readability{font-size:max(16px,var(--z-original-font,16px))!important;line-height:max(1.6,var(--z-original-leading,1.6))}
.z-heading-line{display:inline-block;max-width:100%;white-space:normal}
@media(max-width:767px){h1,h2,h3{max-width:100%}.z-fit-heading{font-size:clamp(28px,8.2vw,40px)!important;line-height:1.5!important;letter-spacing:0!important}.c-features__img{max-width:100%}.z-journal-page header .logo,.z-journal-page header .brand{min-width:0}}
@media(max-height:700px) and (min-width:901px){.z-low-hero{min-height:650px!important;height:auto!important}.z-low-hero h1{max-width:100%;font-size:clamp(38px,5vw,70px)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.z-mobile-menu{display:none}.z-mobile-menu summary{cursor:pointer;min-height:44px;min-width:44px;padding:10px;border:1px solid currentColor;border-radius:999px;font-size:16px;background:var(--bg,#fff)}.z-mobile-menu nav{position:absolute;right:20px;top:100%;width:min(320px,calc(100vw - 40px));padding:16px;background:var(--bg,#fff);border:1px solid currentColor;z-index:100;box-shadow:0 10px 30px #0002}.z-mobile-menu nav a{display:block;padding:12px;font-size:16px;min-height:44px}.z-mobile-menu[open] summary{background:var(--paper,#fff)}@media(max-width:900px){.z-mobile-menu{display:block;margin-left:auto}}
.btns{min-width:0}.btns>a{box-sizing:border-box;max-width:100%;white-space:normal;overflow-wrap:break-word}@media(max-width:767px){.footer .fcta{grid-template-columns:1fr!important}.footer .fcta .btns{width:100%;justify-content:flex-start}}
.z-mobile-menu{position:relative;width:max-content}.z-mobile-menu nav{top:calc(100% + 12px);right:0}@media(max-width:900px){body>header.nav:has(.z-mobile-menu){display:flex;align-items:center;gap:16px}}
.z-mobile-menu{position:absolute;right:16px;top:50%;transform:translateY(-50%);z-index:102}.z-mobile-menu nav{max-height:calc(100dvh - 160px);overflow:auto}.z-mobile-menu summary{background:var(--z-bg,#fff);color:var(--z-ink,#222)}@media(max-width:900px){body>header:has(.z-mobile-menu){padding-right:116px!important}}

body>header.z-nav-collapsed{padding-right:116px!important}body>header.z-nav-collapsed>.z-mobile-menu{display:block}
.z-mobile-menu nav a{float:none!important;position:static!important;border-radius:0!important;white-space:normal!important;max-width:100%;margin:0!important}
@media(max-width:767px){.z-privacy-heading{font-size:clamp(22px,6.2vw,28px)!important;line-height:1.6!important;letter-spacing:0!important}}
.z-drawer-close{display:block;align-self:flex-end;margin:12px 16px 0 auto;min-height:44px;padding:8px 16px;background:transparent;border:1px solid currentColor;color:inherit;cursor:pointer;position:relative;flex:none;font-size:16px}
.c-ov>.z-drawer-close{position:absolute;top:12px;right:12px;margin:0;z-index:2;color:var(--ivory,#fff)}
.c-menu>.z-drawer-close,.sp-menu>.z-drawer-close{position:absolute;top:12px;right:12px;margin:0;z-index:100;color:inherit}
body.z-journal-page>header.z-light-header{background:var(--z-bg,#fff);color:var(--z-ink,#222);border-bottom:1px solid var(--z-line,#ddd)}
body.z-journal-page>header.z-light-header .zhd__inner{mix-blend-mode:normal;color:var(--z-ink,#222)}
body.z-journal-page>header.z-light-header nav:not([class*="menu"]) a,body.z-journal-page>header.z-light-header .zhd__inner a{color:var(--z-ink,#222)}
body.z-journal-page>header.z-light-header :is(.hd-tel,.c-hd__tel,.c-header__tel) *{color:var(--z-ink,#222)}
body.z-journal-page>header.z-light-header :is(.zhd__burger,.c-hd__burger) span{background:var(--z-ink,#222)}
body.z-journal-page.is-locked{overflow:hidden}
/* 全画面メニューを、ぼかし・変形付きヘッダーの寸法から切り離す。 */
@media(max-width:900px){
 body.z-mobile-open>header,body.z-mobile-open>header :has(nav){backdrop-filter:none!important;-webkit-backdrop-filter:none!important;filter:none!important;transform:none!important;perspective:none!important;contain:none!important;will-change:auto!important;overflow:visible!important}
 body.z-mobile-open>header nav{height:100dvh!important;min-height:100dvh!important;max-height:none!important;width:100vw!important;max-width:none!important;min-width:0!important;margin:0!important;box-sizing:border-box!important;justify-content:flex-start!important;top:0!important;left:0!important;right:0!important;bottom:0!important;overflow:auto!important;overscroll-behavior:contain;scroll-padding-top:88px}
 body.z-mobile-open>header nav{flex-wrap:nowrap!important}
 body.z-mobile-open.z-mobile-open>header nav{justify-content:flex-start!important;flex-wrap:nowrap!important}
 body.z-mobile-open>header nav a{flex-shrink:0!important}
 body.z-mobile-open>header nav ul{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;width:100%;margin:0;padding:0;gap:0}
 body.z-mobile-open>header nav li{width:100%;list-style:none}
 body.z-mobile-open>header .z-mobile-toggle{position:fixed!important;top:16px!important;right:16px!important;transform:none!important;z-index:10002!important}
}
.z-mobile-menu[open]>nav{display:block!important}
.z-mobile-panel{display:block!important;position:fixed!important;inset:auto 16px auto auto!important;top:var(--z-panel-top,80px)!important;width:min(320px,calc(100vw - 32px))!important;max-height:calc(100dvh - var(--z-panel-top,80px) - 16px)!important;box-sizing:border-box;padding:16px!important;margin:0!important;overflow:auto!important;overscroll-behavior:contain;background:var(--z-bg,#fff)!important;color:var(--z-ink,#222)!important;border:1px solid currentColor;box-shadow:0 10px 30px #0002;z-index:10030!important}
.z-mobile-panel a{display:block!important;float:none!important;position:static!important;inset:auto!important;transform:none!important;border-radius:0!important;white-space:normal!important;max-width:100%;margin:0!important;padding:12px!important;min-height:44px;font-size:16px!important;line-height:1.6!important;color:inherit!important;background:none!important}
@media(max-width:900px){
 body:has(:is(.dw,.c-drawer,.c-ov,#spnav,.sp-menu,.c-menu)[aria-hidden="false"]){overflow:hidden}
 :is(.dw,.c-drawer,.c-ov,#spnav,.sp-menu,.c-menu)[aria-hidden="false"]{z-index:10020!important}
 :is(.dw,.c-drawer,.c-ov,#spnav,.sp-menu,.c-menu)[aria-hidden="false"]>.z-drawer-close{position:fixed;top:16px;right:16px;z-index:3;margin:0;background:var(--paper,var(--ivory,#fff));color:var(--ink,#222)}
 body.is-menu-open:has(>header .menu-toggle){overflow:hidden}
 body.is-menu-open>header .site-nav{max-height:calc(100dvh - var(--z-menu-top,68px));overflow-y:auto;overscroll-behavior:contain}
}
/* 2026-10-11 追加：短い文言（見出し・ボタン・ラベル）は文節の切れ目だけで折る。iPhoneでも語の途中で折れない。印は zphrase.py が入れる */
[data-zp]{word-break:keep-all!important;overflow-wrap:break-word;line-break:strict}
.znb{white-space:nowrap}
p,li,dd,td{line-break:strict;text-wrap:pretty}
/* 手で改行を整えるための部品：z-nw＝この範囲は折らない／z-br-sp＝スマホだけ改行／z-br-pc＝PCだけ改行 */
.z-nw{white-space:nowrap}
.z-br-sp{display:none}
@media(max-width:767px){.z-br-sp{display:inline}.z-br-pc{display:none}}
/* zp-nested：data-zp の箱の中にある、印の無い別のブロック（長い段落など）には keep-all を引き継がせない。
   強さは0（:where）。サイト側・補正側の指定があれば、そちらが勝つ */
:where([data-zp]) :where(p,div,li,dd,dt,td,th,section,article,aside,figure,figcaption,blockquote,h1,h2,h3,h4,h5,h6,summary,details,button,form,address):where(:not([data-zp])){word-break:normal}
/* 値段の「円」は数字より小さく見せる（内田さんの決め・2026-10-07）。印は zyen.py が入れる。小さな文字の中でも10pxより小さくしない */
.z-yen{display:inline!important;font-size:max(.7em,10px);font-weight:inherit;letter-spacing:0;margin-left:.06em;white-space:nowrap;position:static!important;transform:none!important}

/* 実画面で確認したサイト固有の補正 */
@media(max-width:767px){.hero-visual{min-height:360px;aspect-ratio:auto}.lawpanel{padding:70px 0 96px}.lp-marquee{height:180px;flex:0 0 180px}.lp-foot{align-items:flex-start}.lp-foot .lp-num{flex:none}}@media(min-width:768px){.hero-visual{min-height:440px;aspect-ratio:auto}.lawpanel{padding:70px 0 96px}.lp-marquee{height:260px;flex:0 0 260px}.lp-foot{align-items:flex-start}.lp-foot .lp-num{flex:none}}@media(max-width:900px){body.z-mobile-open>header.site-header>.hd-main{display:flex!important;position:fixed!important;inset:0!important;width:100vw;max-width:none;height:100dvh;box-sizing:border-box;margin:0;padding:88px 24px 32px;flex-direction:column;align-items:center;justify-content:flex-start;gap:0;overflow:auto;background:var(--paper,#fff);z-index:10000}body.z-mobile-open>header.site-header>.hd-main>nav{position:static!important;inset:auto!important;height:auto!important;min-height:0;max-height:none;width:100%!important;flex:none;margin:0;padding:0!important;overflow:visible!important;background:none!important;z-index:auto!important}body.z-mobile-open>header.site-header>.hd-main>.hd-brand{display:none}body.z-mobile-open>header.site-header>.z-mobile-toggle{z-index:10001}}@media(max-width:900px){body.z-mobile-open>header.site-header>.z-mobile-toggle{top:16px!important;right:16px!important;transform:none!important;min-width:48px;min-height:48px}}@media(max-width:900px){body.z-mobile-open>header.site-header>.hd-main{overflow:auto!important;overscroll-behavior:contain}}

/* 2026-10-11 追加の補正（local/sample16.css） */
/* sample16 ぞろ屋法律事務所：サイト担当の補正（2026-10-11） */

/* 「折らない」指定（z-nw）の中に機械の折り返しの印（wbr）が入ると、Chrome系では印の位置で折れる。範囲の中の印を無効にする */
.z-nw wbr{display:none}

/* ヘッダーのロゴ（トップ・一覧・記事）：画像の余白が広く、事務所名が読めない大きさだった。
   同じ画像の「印＋ぞろ屋法律事務所」の部分を拡大して見せる */
body>header .hd-brand picture{display:block;width:206px;height:52px;overflow:hidden;margin:0 auto}
body>header .hd-brand picture img{display:block;width:316px!important;height:86px!important;max-width:none;margin:-13px 0 0 -4px}
@media(max-width:1100px){body>header .hd-main nav{gap:16px}}

/* 下層ページのヘッダー：ロゴを同じ見せ方に。「初回相談」ボタンが「初回／相談」と2行に割れていた */
body>header .header-inner>a.logo{flex:none;width:auto}
body>header .header-inner>a.logo picture{display:block;width:206px;height:52px;overflow:hidden}
body>header .header-inner>a.logo picture img{display:block;width:316px!important;height:86px!important;max-width:none;margin:-13px 0 0 -4px}
body>header .header-actions .btn{white-space:nowrap;flex:none}
@media(max-width:480px){
 body>header .header-inner{gap:12px}
 body>header .header-inner>a.logo picture{width:170px;height:43px}
 body>header .header-inner>a.logo picture img{width:261px!important;height:71px!important;margin:-11px 0 0 -3px}
 body>header .header-actions .phone{display:none}
 body>header .header-actions .btn{padding:8px 10px}
}
@media(max-width:340px){body>header .header-actions .btn{display:none}}

/* 導入の帯 */
.c-intro__bar span{white-space:nowrap}

/* 選ばれる理由：320px幅で左の見出しの箱が画面より広がっていた */
.c-reasons__grid>*{min-width:0}

/* 料金の比較表：説明の文字が10px、「おすすめ」が2行に割れていた */
.c-pricing__note{font-size:12px}
.c-pricing__badge{font-size:12px;white-space:nowrap}
.c-pricing__foot .btn{white-space:nowrap}

/* 沿革（PC）：左の見出しの列が狭く「相続／・／離婚」「企業／法務」と割れていた。列を広げて1行に */
.c-about__year{white-space:nowrap}
.c-about__year wbr{display:none}
@media(min-width:769px){
 .c-about__ev{grid-template-columns:170px 1fr}
 .c-about__spine{left:170px}
 .c-about__dot{left:163px}
 .c-about__year{font-size:clamp(20px,2vw,24px)}
}

/* 最後の案内 */
.c-cta p.lead{text-wrap:balance}

/* 料金の比較表（タブレット・スマホ）：列が96px固定で、見出しが「初回／法律／相談」、ボタンが「相／談／す／る」と
   1〜2字ずつに割れ、右の列が画面の外へ切れていた。横に動かさず、画面の幅に収める */
@media(max-width:768px){
 .c-pricing__table{overflow:hidden}
 .c-pricing__row,.c-pricing__foot{grid-template-columns:1.25fr 1fr 1fr 1fr;min-width:0}
 .c-pricing__row>div,.c-pricing__foot>div{padding:14px 10px;min-width:0}
 .c-pricing__thead>div{padding:20px 8px}
 .c-pricing__thead h3{font-size:17px}
 .c-pricing__price{font-size:18px}
 .c-pricing__foot .btn{padding:11px 8px}
}
@media(max-width:600px){
 /* スマホ：項目名を1行の帯にして上に置き、その下に3つの列を並べる */
 .c-pricing__row,.c-pricing__foot{grid-template-columns:repeat(3,minmax(0,1fr))}
 .c-pricing__row>div{padding:12px 6px}
 .c-pricing__row>div:first-child{grid-column:1/-1;padding:9px 14px;background:rgba(21,36,59,.05);border-bottom:1px solid var(--line);font-size:14px}
 .c-pricing__thead>div{padding:18px 6px 16px}
 .c-pricing__thead>div:first-child,.c-pricing__foot>div:first-child{display:none}
 .c-pricing__thead h3{font-size:15px}
 .c-pricing__price{font-size:16px}
 .c-pricing__foot>div{padding:16px 6px}
 .c-pricing__foot .btn{padding:11px 4px;letter-spacing:0}

 /* FVの3つの特長：2つ＋1つに折れていたのを、3行の一覧に */
 .hero .credit{flex-direction:column;gap:10px}
 .hero .credit .ci{display:flex;align-items:baseline;gap:12px}
 .hero .credit .ci b{flex:none;min-width:6.4em}
}
@media(max-width:340px){
 .c-pricing__thead h3{font-size:13px}
 .c-pricing__price{font-size:14px}
 .c-reasons__side h2{font-size:26px}
}

@media(max-width:767px){
 /* 導入の帯：「相談の／前に」「001 /／005」と折れていた */
 .c-intro__bar{flex-wrap:wrap;gap:4px 12px;letter-spacing:.06em}

 /* フッター末尾：「プライバシーポリシー」が30px幅に押されて1〜2字ずつ縦に折れていた */
 .ft-bottom .in{flex-direction:column;align-items:flex-start}
 .ft-bottom .legal{flex-direction:column;gap:8px}
 .ft-bottom .legal a{white-space:nowrap}

 /* 記事ページの題：32pxだと1行に10字しか入らず、3〜4行に折れる */
 .z-journal:not([data-z-journal-index]) .z-journal-head h1{font-size:clamp(24px,7vw,28px)}
}

/* 下層ページ末尾の案内：背景が配色に無い黒（#222）で、ボタンが背景に沈んでいた */
.zoroya-final{background:var(--navy,#15243B)}
.zoroya-final .btn.primary{background:var(--gold,#B89B5E);border-color:var(--gold,#B89B5E);color:var(--navy,#15243B)}
.zoroya-final .btn.light{background:transparent;border-color:rgba(255,255,255,.6);color:#fff}

/* 「折らない」指定の箱は、共通の「16px未満は16pxに上げる」処理で中身だけ大きくなる。親の文字の大きさに合わせる */
.z-nw.z-readability{font-size:inherit!important;line-height:inherit}
@media(max-width:768px){.hero .lead{font-size:16px}}
body>footer .ft-brand p{font-size:15px}

/* フッターのロゴ：事務所名が読めない大きさで、すぐ下に同じ事務所名の文字がある。印の部分だけを見せる */
body>footer .ft-brand picture{display:block;width:46px;height:46px;overflow:hidden;margin-bottom:16px}
body>footer .ft-brand picture img{display:block;width:285px!important;height:77px!important;max-width:none;margin:-11px 0 0 -4px}

/* 選ばれる理由：320px幅で説明の列が縮まらず、右へ7pxはみ出していた */
.c-reasons__item>div{min-width:0}
@media(max-width:340px){
 .c-reasons__item{gap:12px}
 .c-reasons__n{font-size:38px}
 .c-about__card{padding:20px 16px}
 .c-about__card h3{font-size:17px}
 .c-pricing__thead>div{padding-inline:3px}
}

/* 「折らない箱」どうしの境目は、iPhone（WebKit）では幅ゼロの空白を入れても折れなかった（2026-10-11 実測。料金表の注記が隣の列へはみ出した）。
   箱を inline-block にすると、箱の前後で折れる */
.z-nw{display:inline-block}

/* 下層ページのフッター末尾のページ一覧：白っぽい丸ボタンに白文字で読みにくかった */
body>footer.footer .wp-page-links{gap:8px}
body>footer.footer .wp-page-links a{background:transparent;border-color:rgba(255,255,255,.3);color:rgba(255,255,255,.86);min-height:44px}
body>footer.footer .wp-page-links a:hover{border-color:var(--gold,#B89B5E);color:#fff}

/* スマホのメニュー：左右2つのメニューのうち、右側（代表弁護士・沿革・よくある質問）が1画面ぶん下に離れ、
   開いた画面には4項目しか見えていなかった（共通の「メニューは画面いっぱいの高さ」指定が2つとも効いていたため）。続けて並べる */
@media(max-width:900px){
 body.z-mobile-open>header.site-header>.hd-main>nav{min-height:0!important;height:auto!important;max-height:none!important}
}

/* スマホのFV：飾りのパネルが先に来て、見出しと申し込みボタンが1画面目から外れていた。
   見出し・案内文・ボタンを先に、パネルをその下に置く */
@media(max-width:767px){
 .hero{padding-top:44px}
 .hero-visual{order:0}
 .hero .inner{gap:40px}
}
@media(max-width:340px){
 .lp-foot{left:24px;right:24px;gap:8px;font-size:12px}
}
@media(max-width:340px){
 /* 320px幅：説明の1まとまり（13字）が列に入らず語の途中で折れるため、ここだけ文字を14pxに */
 .c-reasons__item p,.c-reasons__item p.z-readability{font-size:14px!important}
}

/* 等幅指定（"Space Grotesk",monospace）の所に日本語が入ると、Windowsでは MSゴシックになる。本文の書体を間に入れる（司令塔の追記 0-2 の6） */
.mono,
.eyebrow,
.hd-topbar .tel,
.hero-visual .tag,
.lp-eyebrow,
.lp-foot .lp-num,
.c-intro__bar,
.c-intro__hint,
.c-reasons__vs,
.c-pricing__pn,
.c-pricing__note,
.c-pricing__badge,
.c-pricing__val,
.c-features__cnt,
.c-features__tag,
.c-process__eyebrow,
.c-process__step .ph,
.c-voice__credit,
.c-voice__klabel,
.c-voice__hmeta,
.c-voice__feature figcaption,
.c-about__year .era,
.c-message__vlabel,
.c-message__meta .role,
.c-message__kicker,
.c-news__item .date,
.c-cta__sub,
.c-cta__pop .img .ptag,
.ft-brand .tel,
.ft-col h4,
.ft-bottom .cp{font-family:"Space Grotesk","Zen Kaku Gothic New",sans-serif}

/* 問い合わせの見本フォーム（送信はしない） */
.z-mock-form{max-width:640px;display:grid;gap:18px}
.z-mock-form p{margin:0}
.z-mock-form label{display:block;margin-bottom:6px;font-size:14px;font-weight:700}
.z-mock-form input,.z-mock-form textarea{width:100%;box-sizing:border-box;padding:13px 14px;font:inherit;font-size:16px;border:1px solid rgba(0,0,0,.28);border-radius:6px;background:#fff;color:inherit}
.z-mock-form button{min-height:48px;padding:12px 28px;cursor:pointer;font:inherit;font-weight:700}
.z-mock-msg{padding:12px 14px;border:1px solid currentColor;border-radius:6px;font-size:14px}

/* 依頼者の声の注記 */
.c-voice__note{margin:18px 0 0;font-size:13px;line-height:1.7;opacity:.8}

/* 下層のフッターのロゴ：白い大きな板を、ヘッダーと同じ切り出しの小さな札に */
/* 白い板は共通CSSの .footer-logo（幅260px・余白12px・背景白）が作っていた。板をやめ、ロゴを白抜きで見せる（トップのフッターと同じ扱い） */
.footer .footer-logo{width:auto;padding:0;background:transparent}
.footer .footer-logo picture{display:block;width:206px;height:52px;overflow:hidden}
.footer .footer-logo picture img{display:block;width:316px!important;height:86px!important;max-width:none;margin:-13px 0 0 -4px;filter:brightness(0) invert(1);opacity:.92}

/* 下層フッター末尾のページ一覧：他の段（幅1120pxの中央）と左端をそろえる */
@media(min-width:1168px){.footer .wp-page-links{max-width:1120px;margin-left:auto;margin-right:auto;box-sizing:border-box}}

