/* 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){body>header .c-hd__cta:not(.z-mobile-menu *){display:none}}

/* 2026-10-11 追加の補正（local/sample11.css） */
/* sample11 ぞろ屋建築設計：2026-10-11 サイト担当の補正 */

/* 1. 下層ページのロゴ：ヘッダーの幅が足りないと横に潰れていた（元980×280が127×44で表示）。比率を保ったまま縮める */
body>header .hd-logo img{object-fit:contain;object-position:left center}

/* 2. トップのスマホメニューに「設計の相談」への入口を足した。PCは右上にボタンがあるので出さない */
.c-hd__nav .z-nav-cta{display:none}
@media(max-width:900px){
 body.z-mobile-open header nav a.z-nav-cta{margin-top:22px!important;border:0!important;background:var(--ai,#2C3E5A)!important;color:#fff!important;font-weight:700}
}

/* 0. 折り返し用の印（.znb・.z-nw）だけが共通JSで16pxに上がり、同じ行の中で文字の大きさが混ざっていた。まわりの文字に合わせる */
.znb.z-readability,.z-nw.z-readability{font-size:inherit!important;line-height:inherit!important}

/* 0-2. iPhone（WebKit）は、「折らない範囲」（.z-nw）の中に折り返しの印（wbr）が入っていると、その範囲が次の行へ送られたとき、
   直前の語を次の行にもう1回描く（印は作り直しのたびに機械が入れる）。範囲を箱（inline-block）にすると起きない（320・375pxで実測）。
   機械の印 .znb は中に wbr が入らないので、そのままにする。縦書きの見出しは対象外 */
.z-nw{display:inline-block;max-width:100%}
@media(min-width:881px){.c-msg__vtitle .z-nw{display:inline}}

/* 3. 数字：説明の文字を12px→14pxに。PCでは特大の「1,200」のカンマが説明の文字に重なっていたので、説明を下へ逃がす */
.c-num__stat .l{font-size:14px;line-height:1.7;max-width:none}
/* 320px幅では「1,200件＋」が画面より広く、単位の「件＋」が切れていた */
@media(max-width:820px){.c-num__field{grid-template-columns:minmax(0,1fr)}}
@media(max-width:360px){.c-num__s1 .v{font-size:76px}}
.c-num__label{font-size:12px}
@media(min-width:821px){
 .c-num__s1 .l{margin-top:clamp(26px,3.6vw,46px)}
}

/* 4. 代表メッセージ：スマホは見出しが横書きになるが、縦書き用の傍線がそのまま残り「家」の右に縦棒が出ていた。横書きでは下線の蛍光にする */
@media(max-width:880px){
 .c-msg__vtitle .mk::after{right:0;left:0;top:auto;bottom:.12em;width:auto;height:.3em}
}

/* 5. フッター：スマホで3列だと1列が約100pxしかなく、リンクがどれも2行に割れていた。2列にする */
@media(max-width:767px){
 .c-ft__cols{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 20px}
}

/* 6. 上の帯の対応エリア（11px）を12pxに */
.c-hd__area{font-size:12px}

/* 7. 下層ページのフッター最下段のページリンク：白い文字が白っぽい丸の上にあり読めなかった。画面の左端にも付いていた */
.footer .wp-page-links{width:min(1180px,calc(100% - 56px));margin:8px auto 0;padding:0 0 28px}
.footer .wp-page-links a{background:transparent;border-color:rgba(255,255,255,.32);color:#fff;opacity:.92;min-height:40px}

/* 8. 下層ページのメニュー：共通JSが日本語の項目だけ16pxに上げるので、「FAQ」だけ小さく見えていた。そろえる */
body>header .hd-nav a{font-size:16px}

/* 9. 下層ページ：360px以下ではロゴが50pxほどまで縮んでいた。ヘッダーのボタンは隠し（メニューの中に「お問い合わせ」がある）、ロゴの幅を確保する */
@media(max-width:360px){body>header .hd-cta{display:none}}

/* 10. FAQ：狭い画面では、問いの2行目（「高いのではないですか。」11文字）が枠の右へはみ出し、開閉の矢印も押し出されていた。
   375〜430pxは番号の右の余白を少し詰め、374px以下は番号を問いの上に置いて、問いと答えの横幅を確保する */
@media(max-width:430px){
 .c-faq__item{padding-left:84px}
}
@media(max-width:374px){
 .c-faq__item{padding:26px 0}
 .c-faq__item .bq{position:static;font-size:40px;line-height:1;margin-bottom:10px}
}

/* 11. 書体：末尾が monospace の指定に日本語が入ると、Windowsでは MSゴシックで出る（数字の説明・施主の声の肩書き・上の帯など）。
   英字は Space Grotesk のまま、日本語は本文の書体（Zen Kaku Gothic New）で出るようにする */
.mono,.eyebrow,.c-hd__sns a,.c-hd__area,.hero .lead-code,.hero-visual .tag,.c-intro__pain .ck,.c-svc__cnt,.c-svc__row .ix,.c-svc__row .go,.c-num__label,.c-num__stat .l,.c-num__tag,.c-craft__eyebrow,.c-about__ev .yr .era,.c-voice__hero .credit,.c-voice__label,.c-voice__meta,.c-voice__feature figcaption,.c-voice__row .no,.c-voice__row .ind,.c-price__label small,.c-price__price .from,.c-price__price .tax,.c-price__incl li .mn,.c-price__note .nt,.c-msg__sign .role,.c-cta__sub,.c-ft__brand .tel,.c-ft__col h4,.c-ft__bottom .cp,
.intro .num,.pain .ck,.svcindex .cnt,.idx-row .ix,.tlrow .yr,.pricing .label small,.pricing .price .from,.pricing .price .tax,.pincl li .mn,.pnote .nt,.finalcta .sub,.footer h4,.footer .nap .tel{font-family:"Space Grotesk","Zen Kaku Gothic New",sans-serif}

/* 12. タブレット横（901〜1100px）：下層ページのメニューの最後の「お知らせ」だけ2段目に落ちていた。項目の左右の余白を詰めて1段に。
   トップのメニューは、901〜1000pxで項目が縮んで2行に割れないよう、間隔を詰めて縮めない */
@media(min-width:901px) and (max-width:1100px){
 body>header .hd-top .hd-nav a{padding:9px 9px}
}
@media(min-width:901px) and (max-width:1000px){
 body>header .hd-top .hd-nav a{padding:9px 6px;font-size:15px!important}
 body>header .c-hd__nav{gap:14px}
 body>header .c-hd__nav a{flex:none}
 body>header .c-hd__cta{padding-left:16px;padding-right:16px}
}

/* 13. 問い合わせページの見本フォーム（送信はしない） */
.z-sampleform{display:grid;gap:18px;max-width:640px}
.z-sampleform label{display:grid;gap:8px;font-size:15px;font-weight:700}
.z-sampleform input,.z-sampleform textarea{font:inherit;font-weight:400;font-size:16px;padding:12px 14px;border:1px solid rgba(0,0,0,.28);border-radius:6px;background:#fff;color:#222;width:100%;box-sizing:border-box}
.z-sampleform button{min-height:48px;padding:12px 28px;font:inherit;font-weight:700;border:0;border-radius:6px;background:var(--ai,var(--main,#1f3a5f));color:#fff;cursor:pointer}
.z-sampleform-note{font-size:13px;opacity:.7;margin:0}

/* 14. ロゴ（スマホ）：元の画像は上下左右に余白が大きく、高さ44pxでは社名が約7pxになり読めなかった。
   余白を切り落として、そのぶん高く・大きく見せる（画像は変えない）。トップ（ボタン無し）は大きめ、下層（ボタンあり）は控えめ */
@media(max-width:900px){
 .c-hd__logo img{height:78px!important;width:auto!important;max-width:none;margin:-14px -44px -14px -17px;clip-path:inset(18% 14% 18% 6%)}
 body>header .hd-logo img{height:62px!important;width:auto!important;max-width:none;object-fit:contain;margin:-11px -35px -11px -13px;clip-path:inset(18% 14% 18% 6%)}
}
body>header .hd-cta{white-space:nowrap}
@media(max-width:420px){
 body>header .hd-logo img{height:54px!important;margin:-10px -30px -10px -12px}
 body>header .hd-cta{padding-left:14px;padding-right:14px;font-size:14px}
}

/* 15. フッターの住所・受付時間・最終CTAの引用は、HTMLの .z-nw で意味の切れ目を指定した */

