/* v1.0.4 — confined to .mkm-* to avoid influencing post, LP or theme styles */
#mkm-clinic-header,#mkm-clinic-footer,.mkm-mobile-dock{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;box-sizing:border-box}
#mkm-clinic-header *,#mkm-clinic-footer *,.mkm-mobile-dock *{box-sizing:border-box}
#mkm-clinic-header a,#mkm-clinic-footer a,.mkm-mobile-dock a{text-decoration:none!important}
#mkm-clinic-header svg,#mkm-clinic-footer svg,.mkm-mobile-dock svg{display:block;width:21px;height:21px;flex-shrink:0}
#mkm-clinic-header{position:sticky;top:0;z-index:9900;background:#fff;box-shadow:0 8px 22px rgba(18,26,30,.08);border-bottom:3px solid #f7cb3b;color:#17222c}
.admin-bar #mkm-clinic-header{top:32px}
.mkm-header__eyebrow{height:28px;display:flex;align-items:center;justify-content:space-between;padding:0 max(22px,calc((100vw - 1380px)/2));background:#192a33;color:#f8f4e6;font-size:11px;font-weight:700;letter-spacing:.1em;line-height:1}
.mkm-header__eyebrow span:last-child{color:#f9d25c}
.mkm-header__inner{margin:auto;max-width:1440px;min-height:87px;display:flex;align-items:center;gap:18px;padding:8px 20px}
.mkm-brand{display:flex;align-items:center;gap:11px;color:#15232a!important;flex-shrink:0;line-height:1.1;white-space:nowrap}
.mkm-brand__mark{display:grid;place-items:center;width:56px;height:56px;background:#fff;color:#172027;border-radius:50%;border:1px solid #e7c970;box-shadow:0 3px 8px rgba(13,23,34,.08);overflow:hidden;flex-shrink:0}
.mkm-brand__mark img.mkm-brand__logo{display:block!important;position:static!important;max-width:none!important;width:100%!important;height:100%!important;object-fit:contain!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;transform:none!important;filter:none!important}
.mkm-brand__words{display:flex;flex-direction:column;gap:6px}
.mkm-brand__words strong{font-size:20px;letter-spacing:-.04em;font-weight:900}
.mkm-brand__words small{font-size:10px;font-weight:800;letter-spacing:.09em;color:#69747b}
.mkm-brand__words small i{display:inline-block;width:4px;height:4px;border-radius:50%;vertical-align:middle;margin:0 3px;background:#e8ae18}
.mkm-desktop-nav{display:flex;align-items:center;justify-content:center;flex:1;gap:3px;min-width:0}
.mkm-nav-item{color:#21303a!important;font-weight:900!important;font-size:14px!important;letter-spacing:-.03em;display:flex!important;align-items:center;justify-content:center;gap:4px;padding:13px 9px!important;border:0;border-radius:9px;white-space:nowrap;line-height:1.35;cursor:pointer;background:transparent}
.mkm-nav-item:hover,.mkm-nav-item:focus-visible{background:#fff4bf;color:#1e2a2d!important}
.mkm-nav-item svg{width:13px!important;height:13px!important}
.mkm-nav-dropdown{position:relative;margin:0;padding:0}
.mkm-nav-dropdown summary{list-style:none;user-select:none}
.mkm-nav-dropdown summary::-webkit-details-marker{display:none}
.mkm-nav-dropdown[open] summary{background:#fff2b5}
.mkm-nav-dropdown__panel{position:absolute;top:100%;left:-40px;width:366px;padding:16px;border-radius:0 0 19px 19px;background:#fff;box-shadow:0 22px 40px rgba(12,30,45,.18);border:1px solid #eed47c;display:grid;grid-template-columns:1fr 1fr;gap:6px;z-index:10}
.mkm-subitem{font-size:13px!important;color:#27333a!important;font-weight:800!important;padding:14px 8px;border-radius:7px;line-height:1.25;background:#f7f9f8}
.mkm-subitem:hover{background:#fff0a2}
.mkm-header-book{display:flex;align-items:center;justify-content:center;gap:9px;min-width:160px;padding:17px 16px;flex-shrink:0;border-radius:11px;background:#ffcb31;color:#171e24!important;box-shadow:0 5px 0 #dfaa15;font-size:14px;font-weight:900;transition:transform .18s,box-shadow .18s}
.mkm-header-book:hover{transform:translateY(2px);box-shadow:0 3px 0 #dfaa15}
.mkm-external{font-size:11px!important;display:inline-block;opacity:.67}
.mkm-menu-toggle{display:none;align-items:center;flex-direction:column;justify-content:center;gap:2px;background:transparent;color:#172832;border:0;padding:8px;font:800 10px/1.3 inherit;cursor:pointer}
#mkm-mobile-panel[hidden]{display:none!important}
.mkm-mobile-panel{max-height:calc(100vh - 105px);overflow-y:auto;padding:18px 20px 28px;border-top:1px solid #ebedf0;background:#fff}
.mkm-mobile-panel__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mkm-mobile-link{display:flex;align-items:center;gap:7px;min-height:52px;background:#f3f7f7;border-radius:9px;padding:8px 10px;font-size:13px!important;color:#162631!important;font-weight:900!important}
.mkm-mobile-link svg{width:15px!important;height:15px!important;color:#d99b0b}
.mkm-mobile-subtitle{display:block;margin:20px 0 10px;font-size:14px!important;color:#172832}
.mkm-mobile-symptoms{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}
.mkm-mobile-symptom{display:grid;place-items:center;text-align:center;min-height:42px;padding:7px 4px;background:#fff5d4;color:#25303a!important;border:1px solid #f5d47a;border-radius:8px;font-weight:800!important;font-size:12px!important}
#mkm-clinic-footer{position:relative;z-index:2;background:linear-gradient(140deg,#10212b 0%,#172d37 100%);color:#e6edf0;padding:0 24px 0;margin:0;isolation:isolate}
#mkm-clinic-footer:before{content:"";position:absolute;top:0;left:0;right:0;height:6px;background:#f7c332}
.mkm-footer__main{max-width:1360px;margin:auto;display:grid;grid-template-columns:1.36fr 1fr 1fr 1fr;gap:34px;padding:67px 0 28px}
.mkm-brand--footer{color:#fff!important}
.mkm-brand--footer .mkm-brand__words strong{color:#fff}
.mkm-brand--footer .mkm-brand__words small{color:#f2c54f}
.mkm-footer__intro p{margin:18px 0 0;font-size:15px;line-height:1.8;color:#cbd8de}
.mkm-footer__intro .mkm-footer__address{border-left:3px solid #eaba36;padding-left:12px}
.mkm-footer__intro .mkm-footer__phone{font-size:26px;font-weight:900;letter-spacing:.02em;color:#fff}
.mkm-footer__col h2{margin:0 0 17px;padding:0 0 14px;color:#fff;font-size:16px!important;font-weight:900;border-bottom:1px solid #58656b;position:relative}
.mkm-footer__col h2:after{position:absolute;bottom:-1px;left:0;height:3px;width:48px;content:"";background:#f6c432}
.mkm-footer__col a{display:flex;align-items:center;gap:6px;margin:0 0 8px;padding:7px 2px;color:#d7e0e3!important;font-size:15px!important;font-weight:700!important;line-height:1.55;transition:color .2s}
.mkm-footer__col a:before{content:"›";font-size:18px;color:#f5c43c}
.mkm-footer__col a:hover{color:#ffdb6b!important}
.mkm-footer__actions{max-width:1360px;margin:2px auto 30px;display:flex;justify-content:flex-end;gap:14px}
.mkm-footer__actions a{display:flex;align-items:center;justify-content:center;gap:10px;padding:14px 20px;border-radius:9px;font-size:14px!important;font-weight:900!important}
.mkm-footer__primary{color:#172026!important;background:#ffd13d}
.mkm-footer__secondary{color:#fff!important;background:transparent;border:1px solid #afbbc1}
.mkm-footer__bottom{max-width:1360px;margin:auto;padding:18px 0 24px;border-top:1px solid #3b525c;display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;color:#aebdc3;font-size:12px;line-height:1.6}
.mkm-footer__bottom>span:last-child{display:flex;gap:22px}
.mkm-footer__bottom a{color:#c7d0d4!important;font-size:11px!important}
.mkm-mobile-dock{display:none}
/* Phone icon guard: theme icon-font and pseudo-element rules cannot turn the icon into a vertical bar. */
.mkm-mobile-dock svg{display:block!important;stroke:currentColor!important;fill:none!important;overflow:visible!important;vertical-align:middle!important;transform:none!important}
.mkm-mobile-dock .mkm-dock__link:before,.mkm-mobile-dock .mkm-dock__link:after,.mkm-mobile-dock .mkm-dock__menu:before,.mkm-mobile-dock .mkm-dock__menu:after,.mkm-mobile-dock .mkm-dock__booking:before,.mkm-mobile-dock .mkm-dock__booking:after{content:none!important;display:none!important}
.mkm-mobile-dock .mkm-dock__phone svg{width:25px!important;height:25px!important;stroke-width:2.1px!important;stroke-linecap:round!important;stroke-linejoin:round!important}

#mkm-clinic-header :focus-visible,#mkm-clinic-footer :focus-visible,.mkm-mobile-dock :focus-visible{outline:3px solid #e4a000!important;outline-offset:3px!important}
@media(max-width:1280px){.mkm-header__inner{gap:10px}.mkm-brand__words strong{font-size:17px}.mkm-nav-item{font-size:12px!important;padding:12px 6px!important}.mkm-header-book{min-width:137px;padding:15px 10px;font-size:12px}}
@media(max-width:1030px){.mkm-desktop-nav{display:none}.mkm-header__inner{min-height:74px;justify-content:space-between}.mkm-header-book{margin-left:auto}.mkm-menu-toggle{display:flex}.mkm-header__eyebrow{height:23px;padding:0 18px}}
@media(max-width:767px){
 .admin-bar #mkm-clinic-header{top:46px}
 .mkm-header__eyebrow{height:23px;justify-content:center;font-size:10px;padding:0 12px}.mkm-header__eyebrow span:last-child{display:none}
 .mkm-header__inner{min-height:67px;padding:6px 13px;gap:8px}
 .mkm-brand{gap:9px}.mkm-brand__mark{width:45px;height:45px;border-radius:50%}.mkm-brand__mark img.mkm-brand__logo{width:100%!important;height:100%!important}
 .mkm-brand__words strong{font-size:17px}.mkm-brand__words small{font-size:9px}
 .mkm-header-book{min-width:0;margin-left:auto;padding:11px;border-radius:9px;font-size:0;box-shadow:0 3px 0 #dfa90d}.mkm-header-book svg{width:23px!important;height:23px!important}.mkm-header-book .mkm-external{display:none}
 .mkm-menu-toggle{font-size:10px!important;padding:6px 2px}.mkm-menu-toggle svg{width:25px!important;height:25px!important}
 .mkm-mobile-panel{padding:15px 15px 90px;max-height:calc(100dvh - 150px)}
 #mkm-clinic-footer{padding:0 18px 0}
 .mkm-footer__main{grid-template-columns:1fr 1fr;gap:28px 18px;padding:38px 0 25px}
 .mkm-footer__intro{grid-column:1/-1}.mkm-footer__intro p{margin-top:12px}.mkm-footer__intro .mkm-footer__phone{font-size:23px}
 .mkm-footer__col h2{font-size:14px!important}.mkm-footer__col a{font-size:14px!important}
 .mkm-footer__actions{justify-content:stretch;gap:9px}.mkm-footer__actions a{flex:1;padding:12px 7px;font-size:12px!important}
 .mkm-footer__bottom{padding-bottom:90px;flex-direction:column;gap:10px}
 .mkm-mobile-dock{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;z-index:9950;padding:6px max(6px,env(safe-area-inset-left)) calc(5px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-right));background:#fff;box-shadow:0 -8px 28px rgba(20,31,39,.18);border-top:2px solid #ffd346;min-height:67px}
 .mkm-mobile-dock a,.mkm-mobile-dock button{border:0;min-height:55px;margin:0 3px;padding:7px 3px 4px;border-radius:9px;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#172a35!important;font-size:11px!important;font-weight:900!important;line-height:1.1;white-space:nowrap;cursor:pointer}
 .mkm-mobile-dock svg{width:22px!important;height:22px!important}
 .mkm-mobile-dock .mkm-dock__booking{background:#ffce31;color:#111f26!important}
 .mkm-mobile-dock .mkm-external{display:none}
 body{scroll-padding-bottom:78px}
}
@media(max-width:365px){.mkm-brand__words strong{font-size:15px}.mkm-brand__words small{font-size:8px}.mkm-mobile-symptoms{grid-template-columns:1fr 1fr}}
@media(prefers-reduced-motion:reduce){#mkm-clinic-header *,#mkm-clinic-footer *,.mkm-mobile-dock *{transition:none!important;scroll-behavior:auto!important}}

/* Original site-level menu hidden after positive text signature matching. */
.mkm-original-menu-replaced,[data-mkm-hidden-original="1"]{display:none!important;}

/* v1.0.4: header position is corrected on PHP response, independent of JS execution. */
#mkm-clinic-header{width:100%;clear:both}

/* v1.0.4 : elegant reservation CTA, no font icons or black square */
#mkm-clinic-header .mkm-header-book{
 display:inline-flex!important;align-items:center;justify-content:space-between;gap:14px;
 min-width:185px;min-height:61px;padding:9px 11px 9px 15px!important;
 background:linear-gradient(135deg,#fff5cf 0%,#fce6a2 52%,#e7b94a 100%)!important;
 border:1px solid #cca03d!important;border-radius:7px!important;
 color:#212326!important;box-shadow:0 3px 10px rgba(71,49,13,.14),inset 0 1px 0 rgba(255,255,255,.83)!important;
 text-align:left!important;transform:none!important;text-decoration:none!important;
 transition:box-shadow .2s ease,filter .2s ease!important;
}
#mkm-clinic-header .mkm-header-book:hover{transform:none!important;box-shadow:0 6px 17px rgba(71,49,13,.20)!important;filter:saturate(1.1)}
#mkm-clinic-header .mkm-header-book__copy{display:flex;flex-direction:column;gap:4px;line-height:1.05}
#mkm-clinic-header .mkm-header-book__copy small{font-size:9px!important;font-weight:800!important;letter-spacing:.14em;color:#866524!important}
#mkm-clinic-header .mkm-header-book__copy strong{font-size:15px!important;font-weight:900!important;white-space:nowrap;letter-spacing:.01em;color:#171e22!important}
#mkm-clinic-header .mkm-header-book__arrow{display:grid;place-items:center;font-size:19px!important;font-weight:500!important;
 width:31px;height:31px;border:1px solid rgba(77,55,17,.24);border-radius:50%;color:#4b360d}
#mkm-clinic-header .mkm-nav-item--acute{color:#844a02!important}
#mkm-clinic-header .mkm-nav-item--acute:hover{background:#fff1c5}
/* Keep the imported WordPress theme's h2 styles out of the bespoke footer. */
#mkm-clinic-footer .mkm-footer__col h2{background:transparent!important;background-image:none!important;box-shadow:none!important;
 color:#fff!important;line-height:1.35!important;min-height:0!important;letter-spacing:.03em!important;border-radius:0!important}
#mkm-clinic-footer .mkm-footer__col h2:before{content:none!important;display:none!important}
/* Footer duplication: exact legacy wrappers are detected by branded text in JS. */
body.mkm-clinic-nav-loaded [data-mkm-hidden-legacy-footer="1"]{display:none!important}
@media(max-width:1450px){
 #mkm-clinic-header .mkm-header__inner{gap:10px;max-width:1450px}
 #mkm-clinic-header .mkm-nav-item{font-size:13px!important;padding:12px 7px!important}
}
@media(max-width:1220px){
 #mkm-clinic-header .mkm-brand__words strong{font-size:17px}
 #mkm-clinic-header .mkm-brand__words small{font-size:9px}
 #mkm-clinic-header .mkm-nav-item{font-size:12px!important;padding:11px 5px!important}
 #mkm-clinic-header .mkm-header-book{min-width:155px;min-height:58px;padding:9px!important}
 #mkm-clinic-header .mkm-header-book__copy strong{font-size:13px!important}
}
@media(max-width:1030px){
 #mkm-clinic-header .mkm-header-book{min-width:151px}
}
@media(max-width:767px){
 #mkm-clinic-header .mkm-header-book{min-width:0!important;min-height:44px;padding:7px 10px!important;gap:5px!important}
 #mkm-clinic-header .mkm-header-book__copy small{display:none!important}
 #mkm-clinic-header .mkm-header-book__copy strong{font-size:13px!important}
 #mkm-clinic-header .mkm-header-book__arrow{width:23px;height:23px;font-size:15px!important}
}
@media(max-width:767px){
 /* Reserve room for the mobile menu: use a short reservation label. */
 #mkm-clinic-header .mkm-header-book__copy strong{font-size:0!important}
 #mkm-clinic-header .mkm-header-book__copy strong:after{content:"予約";font-size:13px!important}
 #mkm-clinic-header .mkm-header-book{flex-shrink:0!important}
 #mkm-clinic-header .mkm-menu-toggle{flex-shrink:0!important;min-width:39px!important}
 #mkm-clinic-header .mkm-menu-toggle span{white-space:nowrap!important;word-break:keep-all!important}
}
@media(max-width:385px){
 #mkm-clinic-header .mkm-header-book__copy strong:after{font-size:12px!important}
 #mkm-clinic-header .mkm-header-book{padding:6px 7px!important}
 #mkm-clinic-header .mkm-brand__words strong{font-size:15px!important}
}
