/* 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 .hd-util-in{flex-wrap:wrap;justify-content:flex-start;gap:8px 16px}body>header .hd-util-in a{white-space:nowrap;flex:none}}@media(max-width:420px){body>header .hd-cta:not(.z-mobile-menu *){display:none}body>header .hd-logo{flex:0 0 auto}body>header .hd-logo img{width:110px;height:auto}}@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}body.z-mobile-open>header nav{height:100dvh!important;width:100vw!important;max-width:none!important;min-height:100dvh;box-sizing:border-box;justify-content:flex-start!important;top:0!important;left:0!important;right:0!important;bottom:0!important;overflow:auto!important}}

/* 2026-10-11 追加の補正（local/sample18.css） */
/* sample18 ぞろ屋製作所（精密板金）：サイト担当の補正（2026-10-11） */

/* 0. 「折らない範囲」（z-nw）：中に機械の折り返しの印（wbr）が入ると Chrome 系はそこで折れ、iPhone（WebKit）は
   範囲が次の行へ送られたとき直前の語を二重に描く。印を無効にし、範囲を箱にする。印だけ16pxに上がるのも止める
   （数字の説明「（公開前に実数へ差し替え）」で、「（公開」だけ大きい字になっていた） */
.z-nw wbr{display:none}
.z-nw{display:inline-block;max-width:100%}
.znb.z-readability,.z-nw.z-readability{font-size:inherit!important;line-height:inherit!important}

/* 1. スマホのヘッダー（トップ・ブログ）：リンクの行・電話の行・ロゴの行の3段で高さ約170px。画面の2割をふさぎ、
   背景も透けて下の文字が写り込んでいた → 電話の行とロゴの行の2段にし、背景をほぼ不透明に。
   外した「会社案内」は三本線のメニューに足した（よくある質問は元からメニューにある） */
@media(max-width:900px){
 body>header.site-header{background:rgba(18,18,18,.975)}
 body>header.site-header .hd-util-in{justify-content:flex-start;flex-wrap:nowrap;gap:0;padding:5px 0 3px}
 body>header.site-header .hd-util-in a:not(.tel){display:none}
 body>header.site-header .hd-main{padding:8px 0 10px}
 body>header.site-header .hd-logo{padding:4px 10px}
 body>header.site-header .z-mobile-toggle{top:auto;bottom:10px;transform:none}
}
/* メニューに足した「会社案内」と見積もりへの入口。PCは上の帯と右上のボタンがあるので出さない */
.hd-nav .z-nav-sp,.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(--red,#D32F2F)!important;color:#fff!important;font-weight:700}
}
/* 幅901〜1100pxでは、メニューも三本線も出ていなかった → メニューを詰めて出す */
@media(min-width:901px) and (max-width:1100px){
 body>header.site-header .hd-nav{display:flex;gap:14px}
 body>header.site-header .hd-nav a{font-size:13px;letter-spacing:0}
 body>header.site-header .hd-main{gap:14px}
}

/* 2. 下層ページのヘッダー：赤いボタン「図面見積もり」が「図面見積も／り」と折れていた */
@media(max-width:900px){
 body>header .header-cta{white-space:nowrap;padding:10px 12px}
 body>header .header-cta wbr{display:none}
 body>header .header-inner{gap:12px}
}

/* 3. 数字：説明の文字（12px・薄い灰色）が黒い背景で読みにくかった → 14px・少し明るく */
.num-stat .l{font-size:14px;line-height:1.7;color:rgba(231,233,235,.82);letter-spacing:.04em}

/* 4. 加工事例 */
/* PC：6枚目のあと右半分が空いていた（4列の最後の段に2枚だけ）→ 最後の2枚を2列ぶんずつにして埋める */
@media(min-width:961px){
 .gal-grid figure:nth-last-child(-n+2){grid-column:span 2}
}
/* スマホ：右の英字「CASE WORKS」が見出しの幅を奪い、「加工事例／を、写真で。」と折れていた → 英字は出さない */
@media(max-width:560px){
 .gallery .head .cnt{display:none}
}
/* 写真の見出し（精密板金・試作部品など）：11px → 12px */
.gal-grid figcaption{font-size:12px}

/* 5. お取引先の声：肩書き（12px）を13pxに */
.voice__item .who{font-size:13px}

/* 6. 下層ページ（サービス・概要・FAQ・お問い合わせ・プライバシー） */
/* 最後の帯：ボタン2つが黒い帯の上の黒い箱で、押せる所に見えなかった → 1つめを赤、2つめを白い枠に */
.zoroya-final .btn.primary{background:var(--red,#D32F2F);border-color:var(--red,#D32F2F);color:#fff}
.zoroya-final .btn.light{background:transparent;border-color:rgba(255,255,255,.6);color:#fff}
.zoroya-final .btn.light:hover{background:rgba(255,255,255,.12)}
/* フッターのページ一覧：画面の左端に付き、灰色の丸に白文字で読めなかった */
body>footer.footer .wp-page-links{width:min(1072px,calc(100% - 56px));margin:26px auto 0;gap:8px}
@media(max-width:767px){body>footer.footer .wp-page-links{width:calc(100% - 36px)}}
body>footer.footer .wp-page-links a{display:inline-flex;background:transparent;border-color:rgba(255,255,255,.28);color:rgba(255,255,255,.86);min-height:44px;padding:.55em 1.1em;opacity:1}
body>footer.footer .wp-page-links a:hover{border-color:var(--red-soft,#E5564F);color:#fff}

/* 10. 英字用の書体（Space Grotesk）の予備が「等幅」になっていて、日本語が混じる札・説明・肩書きが、Windows では
   MS ゴシックで出ていた（PC幅の画面で実測）。日本語の予備をサイトのゴシックにする。英数字の見た目は変わらない */
.mono,
.eyebrow,
.site-header .hd-util-in .tel,
.hero .spec-line,
.hero .tags,
.intro__no,
.num-stat .l,
.num-tag,
.vs-col .label,
.scard .stag,
.specs__prog,
.gallery .cnt,
.gal-grid figcaption,
.pstep .pbd .ph,
.voice__item .who,
.voice__right .vtag,
.about__year .era,
.faq .qbtn .qn,
.finalcta .ccard .en,
.footer__brand .tel,
.footer__col h4,
.footer__bottom .cp,
.znews .zn-en,
.znews .zn-all,
.znews .zn-date{font-family:"Space Grotesk","Zen Kaku Gothic New","Zen Kaku Gothic New","Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif}

/* 11. 最後の案内の電話番号（10px）→ 14px。フッター末尾の ©（12px）→ 13px */
.finalcta .ccard[href^="tel"] .en{font-size:14px;letter-spacing:.06em}
.footer__bottom .cp{font-size:13px}

/* 12. 数字（PC）：2つめの説明が2行になり、2行めが横の罫線に重なっていた → 1行に */
@media(min-width:961px){
 .num-s2 .l{max-width:none}
}

/* ===== 2026-10-11 午後：追加の仕上げ ===== */
/* 13. 下層ページのヘッダー（PC）：背景が黒に変わったのに、メニューと電話の文字が濃い灰色のままで読めなかった（比1.37） */
body>header.site-header .header-inner .nav,body>header.site-header .header-inner .nav a{color:rgba(255,255,255,.86)}
body>header.site-header .header-inner .nav a[aria-current="page"]{color:#fff}
body>header.site-header .header-actions .tel{color:#fff}
/* 幅901〜960pxでメニューも三本線も出ていなかった → メニューを出す。1100px以下は電話番号を外して収める */
@media(min-width:901px) and (max-width:960px){
 body>header .header-inner .nav{display:flex}
}
@media(min-width:901px) and (max-width:1100px){
 body>header .header-actions .tel{display:none}
 body>header .header-inner .nav{gap:16px;font-size:13px}
}
/* 14. 最初の画面：写真のモザイクが解ける演出の板が文字の上にかぶさり、開いて約2秒は見出しとボタンが見えなかった
   → 板を文字の下へ回す。演出はそのまま残る。板には暗い幕が掛からないので、明るさを写真に合わせて落とす */
.pixfx{z-index:2;filter:brightness(.45)}
/* 15. 見積もりフォーム（お問い合わせページ）：雛形の説明文の枠だった所に、入力欄の見本を置いた */
.zoroya-form-slot{border:1px solid rgba(18,18,18,.16)}
.z-form{display:grid;gap:18px;max-width:640px}
.z-form__row{display:grid;gap:6px;font-weight:700;font-size:15px;color:#121212}
.z-form__row input,.z-form__row textarea{width:100%;box-sizing:border-box;font:inherit;font-weight:400;font-size:16px;line-height:1.6;padding:12px 14px;min-height:48px;border:1px solid rgba(18,18,18,.3);border-radius:2px;background:#fff;color:inherit}
.z-form__row input[type=file]{padding:10px 12px;border-style:dashed;background:#F4F5F6}
.z-form .btn.primary{justify-self:start;cursor:pointer;font:inherit;font-weight:700;font-size:16px;background:var(--red,#D32F2F);border-color:var(--red,#D32F2F);color:#fff}
.z-form__note{font-size:13px;line-height:1.7;color:#6D7378;margin:0}
/* 16. 幅821〜1180px：最後の案内の電話番号が「000-0000-／0000」と折れていた → 折らず、字間を詰める */
.finalcta .ccard .en{white-space:nowrap}
@media(min-width:821px) and (max-width:1180px){
 .finalcta .ccard{padding-left:16px;padding-right:12px}
 .finalcta .ccard .en{letter-spacing:.05em}
}
/* 17. 検品：スマホ幅で最初の画面の英字ラベル「PRECISION SHEET METAL /」の「/」が行末に残り、「1個から」だけ次の行に落ちていた（375px）→ 字間を詰めて1行に */
@media(max-width:400px){
 .hero .spec-line{letter-spacing:.03em;padding:7px 10px;font-size:12px}
}

