/* 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:420px){body>header .c-hd__stat{display:none}body>header .c-hd__in{gap:12px;padding-left:16px;padding-right:16px}body>header .c-hd__logo{flex:0 0 auto}body>header .c-hd__logo .lg-img{width:140px;height:auto}}.c-rsn__band{padding-right:104px;min-height:50px;overflow:visible;margin-top:14px;margin-bottom:12px}.c-rsn__band .bn{top:50%;right:10px;transform:translateY(-50%);font-size:64px;line-height:1.2;white-space:nowrap;color:rgba(255,255,255,.22);-webkit-text-stroke:1.5px var(--aqua-ink);text-shadow:none;pointer-events:none}
@media(max-width:900px){
 .c-sp{bottom:var(--z-spbar-height,80px);height:calc(100dvh - var(--z-spbar-height,80px));overflow-y:auto;overscroll-behavior:contain;scroll-padding-top:80px}
 .c-sp__in{height:auto;min-height:100%;box-sizing:border-box;padding:88px 24px 32px;justify-content:flex-start}
 .c-sp__item{flex-shrink:0}
}


/* 2026-10-11 追加の補正（local/sample33.css） */
/* sample33 ひかり眼科 2026-10-11 */
/* 予約フォーム（見本） */
.zs-form{display:grid;gap:16px;max-width:640px;padding:28px;border:1px solid var(--line);background:var(--aqua-soft)}
.zs-form__row{display:grid;gap:6px}
.zs-form label{font-size:14px;font-weight:700;color:var(--ink)}
.zs-form label em{font-style:normal;font-size:11px;font-weight:700;color:#fff;background:var(--aqua-ink);padding:2px 7px;margin-left:8px;letter-spacing:.06em}
.zs-form input[type=text],.zs-form input[type=email],.zs-form input[type=tel],.zs-form select,.zs-form textarea{width:100%;box-sizing:border-box;font:inherit;font-size:16px;padding:12px 14px;border:1px solid rgba(20,32,40,.28);background:#fff;color:var(--ink);border-radius:0}
.zs-form__agree{display:flex;align-items:center;gap:10px;font-weight:400!important;font-size:14px!important}
.zs-form__agree input{width:20px;height:20px;flex:none}
.zs-form__agree a{text-decoration:underline}
.zs-form__btn{border:0;cursor:pointer;min-height:48px;font-family:inherit;justify-self:start}
.zs-form__done{margin:0;padding:12px 14px;background:#fff;border-left:4px solid var(--aqua-deep);font-size:14px;color:var(--ink)}
.zs-form__done[hidden]{display:none}
/* 表：スマホで横にはみ出さない */
@media(max-width:600px){
  .p-tbl th{width:6.5em;white-space:normal}
  .p-tbl th,.p-tbl td{padding:10px;font-size:13.5px}
  .p-tbl td{overflow-wrap:anywhere}
}
@media(max-width:780px){
  .p-2col[style]{grid-template-columns:1fr!important}
}
/* 院内マップの吹き出し：スマホで画面の左右・見出しにはみ出さない */
@media(max-width:680px){
  .c-map__frame{height:54vh;min-height:360px}
  .c-map__tip{width:min(14.5em,calc(100vw - 72px));padding:12px 14px!important}
  .c-map__tip .no{margin-bottom:3px}
  .c-map__tip h3{font-size:15px;margin-bottom:4px}
  .c-map__tip p{font-size:12px;line-height:1.7}
  .c-map__hs[data-k="1"] .c-map__tip{left:0;transform:none}
  .c-map__hs.is-on[data-k="1"] .c-map__tip{transform:translateY(-4px)}
  .c-map__hs[data-k="1"] .c-map__tip::after{left:17px;transform:translateX(-50%)}
  .c-map__hs[data-k="3"] .c-map__tip{left:auto;right:0;transform:none}
  .c-map__hs.is-on[data-k="3"] .c-map__tip{transform:translateY(-4px)}
  .c-map__hs[data-k="3"] .c-map__tip::after{left:auto;right:17px;transform:translateX(50%)}
  .c-map__hs[data-k="2"] .c-map__tip{bottom:auto;top:calc(100% + 14px)}
  .c-map__hs.is-on[data-k="2"] .c-map__tip{transform:translateX(-50%) translateY(4px)}
  .c-map__hs[data-k="2"] .c-map__tip::after{top:auto;bottom:100%;border-top-color:transparent;border-bottom-color:#fff}
  .c-map__hs[data-k="4"] .c-map__tip{bottom:calc(100% + 14px);top:auto}
  .c-map__hs.is-on[data-k="4"] .c-map__tip{transform:translateX(-50%) translateY(-4px)}
  .c-map__hs[data-k="4"] .c-map__tip::after{top:100%;bottom:auto;border-bottom-color:transparent;border-top-color:#fff}
}
/* FAQの質問：スマホで行数を減らす */
@media(max-width:600px){
  .c-faq__q{padding:16px 14px;gap:10px}
  .c-faq__qi{width:36px;height:36px;font-size:17px}
  .c-faq__tx{font-size:15px}
}
/* 開いた案内の小窓：スマホで本文を隠しすぎず、閉じるボタンを押しやすく */
@media(max-width:600px){
  .c-pop,.c-pop.is-open{left:16px;right:16px;width:auto;transform:translateY(50%);transition:opacity .3s}
  .c-pop__img{aspect-ratio:16/6}
  .c-pop__body{padding:18px 20px 16px}
  .c-pop__body h3{font-size:20px;margin-bottom:8px}
  .c-pop__body p{font-size:14px;margin-bottom:14px}
  .c-pop__close{width:44px;height:44px;font-size:22px;top:8px;right:8px}
  .c-pop__sub{min-height:44px;font-size:14px;margin-top:4px}
}
/* ヘッダー：パソコン幅でメニューや予約ボタンが折り返さない */
@media(min-width:1181px){
  .c-hd__in{max-width:1400px}
  .c-hd__nav a wbr,.c-hd__btn wbr,.c-hd__stat wbr{display:none}
  .c-hd__btn small,.c-hd__btn b{white-space:nowrap}
}
@media(min-width:1181px) and (max-width:1440px){
  .c-hd__stat{display:none}
}
/* 最初の画面：ピントが合う演出は残しつつ、見出しは0.6秒以内に読めるように */
.c-fv__world{animation-delay:0s;animation-duration:2.4s}
.c-fv__kicker{animation-delay:.1s;animation-duration:.5s}
.c-fv__copy h1{animation-delay:.15s;animation-duration:.5s}
.c-fv__lead{animation-delay:.3s;animation-duration:.5s}
.c-fv__cta{animation-delay:.45s;animation-duration:.5s}
.c-fv__meta{animation-delay:.6s;animation-duration:.5s}
/* 院長メモ：付箋が署名に重ならないよう、スマホでは下に余白を足す */
@media(max-width:680px){
  .c-msg__memo{padding-bottom:196px!important}
  .c-msg__sign{margin-top:-8px}
}
/* 最初の画面の飾りの光が画面の外に出て、横に動かせてしまうのを防ぐ */
.c-fv{contain:paint}
html,body{overflow-x:clip}

/* ご相談の顔写真：pictureも84pxを守り、本文列に残り幅を渡す */
.zs-consultation > picture{display:block;flex:0 0 84px;width:84px;height:84px}
.zs-consultation > picture img{display:block;width:84px!important;height:84px!important;max-width:none}
.zs-consultation > div{min-width:0;flex:1}

/* 医療費控除の前提説明：この回答だけ全文を開く。旧360pxではスマホの後半が切れた。 */
.zs-tax-faq.is-open .c-faq__a{max-height:none}

/* Codex工程5 2026-10-12 ロゴ実像比率 */
.c-hd__logo .lg-img{object-fit:contain;}

