/* 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 .eyebrow{display:block}.hero .eyebrow::before{display:inline-block;vertical-align:middle;margin-right:12px}}@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/sample04.css） */
/* sample04 ぞろ屋税理士事務所｜2026-10-11 ブラッシュアップ（サイト担当） */

/* ---- ヘッダー：下の文字が透けない濃さに。ロゴは余白を切った写し（src/logo-clean.png）に合わせた高さ ---- */
body>header.site-header{background:rgba(255,255,255,.97);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.site-header .hd-brand{flex:0 0 auto;line-height:0}
.site-header .hd-brand img{height:34px;width:auto;max-width:100%;object-fit:contain}
@media(min-width:901px) and (max-width:1240px){
 .site-header .hd-main{gap:16px;flex-wrap:nowrap}
 .site-header .hd-main nav{gap:14px}
 .site-header .hd-main nav a,.site-header .hd-main nav a.z-readability{font-size:14px!important}
 .site-header .hd-brand img{height:30px}
}
/* 901〜1040px：右側の3つのうち「代表税理士」「よくある質問」は左のナビと重なる行き先なので隠し、「無料相談」だけ残す */
@media(min-width:901px) and (max-width:1040px){
 .site-header .hd-main nav.r a:not(:last-child){display:none}
 .site-header .hd-main nav{gap:12px}
}
@media(max-width:900px){
 /* 開いたメニュー：左のナビが画面の高さいっぱいに伸び、「代表税理士・よくある質問・無料相談」が画面の外（下）へ押し出されていた */
 body.z-mobile-open>header.site-header>.hd-main>nav{height:auto!important;min-height:0!important}
 body>header.site-header{background:#fff}
 .site-header .hd-brand img{height:30px}
 .site-header .hd-main{padding:16px 0;padding-right:60px;flex-wrap:nowrap}
}

/* ---- 最初の画面：「創業期・法人成りを考える方へ」は誰向けかを伝える1行なので、12pxにせず16pxで見せる ---- */
.hero .eyebrow .z-heading-line{font-size:16px;line-height:1.65}
/* 小見出しの途中の空き（「法人成りを　考える方へ」）を詰める */
@media(min-width:768px){
 .hero .eyebrow{display:block}
 .hero .eyebrow::before{display:inline-block;vertical-align:middle;margin-right:12px}
}

/* ---- はじめに：英字と「はじめに」の帯。語の途中（は／じめに）で折らない ---- */
.c-intro__bar{gap:6px 16px;flex-wrap:wrap}
.c-intro__bar span{word-break:keep-all}
.c-intro__bar span:last-child{white-space:nowrap}
@media(max-width:767px){.c-intro__bar,.c-intro__bar span{letter-spacing:.12em}}

/* ---- 選ばれる理由：スマホは写真を見出しの上に置き、見出しに幅を渡す（「作業で／なく、／事業の…」と細切れだった） ---- */
@media(max-width:767px){
 .c-reasons__row{grid-template-columns:auto minmax(0,1fr);gap:16px;padding:32px 0}
 .c-reasons__n{font-size:40px}
 .c-reasons__thumb{float:none;width:100%;height:auto;aspect-ratio:16/9;margin:0 0 14px}
}
.c-reasons__vs{text-wrap:balance}
/* 961〜1160px：写真の横が狭く「…事業の相談に／乗る」と最後の2文字だけ落ちていた → 「作業でなく、事業の／相談に乗る」で折る */
@media(min-width:961px) and (max-width:1160px){.c-reasons__row h3{max-width:11.6em}}

/* ---- 実績の数字：スマホは数字を項目名の下に置く（320pxで右へはみ出していた） ---- */
@media(max-width:680px){
 .c-numbers__row{grid-template-columns:52px minmax(0,1fr);gap:4px 12px;align-items:start}
 .c-numbers__no{padding-top:4px}
 .c-numbers__v{grid-column:2;justify-self:start;margin-top:10px}
}

/* ---- お客様の声：引用は意味の切れ目（HTMLに入れた <wbr>）でだけ折る。11pxの日本語ラベルを上げる ---- */
.c-voice__quote{word-break:keep-all;overflow-wrap:break-word}
.c-voice__klabel,.c-msg__vlabel,.c-msg__kicker{font-size:13px}
@media(max-width:767px){
 .c-voice__klabel,.c-msg__vlabel,.c-msg__kicker{letter-spacing:.16em}
 .c-voice__quote{font-size:19px}
 .c-pricing__plan{font-size:19px}
 .z-journal .z-journal-head h1{font-size:clamp(24px,7.4vw,32px)}
}

/* ---- 顧問料：スマホは行の左右の余白を詰めて、項目名を1行に収める ---- */
@media(max-width:767px){
 .c-pricing__thead{padding:28px 20px}
 .c-pricing__row{padding:16px 20px;gap:12px}
 .c-pricing__foot{padding:26px 20px}
}
@media(max-width:359px){
 .c-pricing__mn{display:none}
 .eyebrow{letter-spacing:.08em;gap:8px}
 .eyebrow::before{width:18px}
}

/* 料金の単位「／月〜」が幅に押されて「月／〜」と崩れていた（PC）→ 単位は折らない */
.c-pricing__price .v .u{white-space:nowrap;flex:0 0 auto}

/* ---- サービス一覧（スマホ）：番号の列を少し詰めて、説明に幅を渡す ---- */
@media(max-width:767px){
 .c-feat__row{grid-template-columns:52px minmax(0,1fr);gap:14px;padding:30px 0}
 .c-feat__n{font-size:36px}
}

/* ---- 最初の画面（スマホ）：大見出しを2行に収める（「…安心に／変える。」と3行だった） ---- */
@media(max-width:767px){.hero h1{font-size:clamp(25px,7.9vw,32px)}}

/* ---- FAQ：英字の小見出しは、幅にかかわらず見出しの上に置く（390px以上で横に並んでいた） ---- */
.c-faq .wrap>.eyebrow{display:flex}

/* ---- 最後の帯：上のタブ「FREE CONSULTATION」が2行に折れて、下の英字に重なっていた（スマホ） ---- */
.c-cta__tab{white-space:nowrap}

/* ---- フッター（スマホ）：「プライバシーポリシ／ー」と折れないよう、3つめの列は横いっぱいに ---- */
@media(max-width:860px){body>footer.footer .ft-cols .ft-col:nth-child(3){grid-column:1/-1}}

/* ---- 代表挨拶（PC）：大きな「税」の字に、3行目の「考えています。」が重なっていた → 3行とも字の右に置く ---- */
@media(min-width:861px){.c-msg__drop{line-height:.92;margin-bottom:0}}

/* ---- 代表挨拶：肩書きの一部だけ大きくなるのを直す ---- */
.c-msg__meta .role{font-size:13px;letter-spacing:.06em;line-height:1.7}
.c-msg__meta .role .znb{font-size:inherit!important;line-height:inherit!important}

/* ---- フッター：屋号が「…事務／所」と折れない大きさに ---- */
@media(max-width:767px){body>footer.footer .ft-brand .nm{font-size:clamp(24px,7.4vw,30px);white-space:nowrap}}

/* ---- 下層ページ ---- */
.zoroya-sub-card ul{margin-top:0}
.zoroya-flow{margin:0;padding-left:0}
.footer .wp-page-links{width:min(1160px,calc(100% - 56px));margin:22px auto 0;padding-bottom:8px;gap:8px 10px}
.footer .wp-page-links a{background:transparent;border-color:rgba(255,255,255,.3);color:rgba(255,255,255,.88);font-weight:500;min-height:44px;padding:.45em 1.1em}
.footer .wp-page-links a:hover{background:rgba(255,255,255,.12);color:#fff}

/* ---- 見本の相談フォーム ---- */
.z-mockform{display:grid;gap:16px;max-width:640px}
.z-mf-row{display:grid;gap:6px;font-weight:700;font-size:15px}
.z-mockform input,.z-mockform textarea{font:inherit;font-weight:400;font-size:16px;padding:12px 14px;border:1px solid #cbd2dc;border-radius:4px;background:#fff;color:inherit;width:100%;box-sizing:border-box}
.z-mockform button{justify-self:start;min-height:48px;cursor:pointer;border:0}
.z-mf-note{margin:0;font-size:14px}

