:root{--maerd-header-height:88px;--maerd-admin-height:0px}
html:not(.maerd-zh) .maerd-site-header .maerd-copy-zh{display:none!important}
html.maerd-zh .maerd-site-header .maerd-copy-en{display:none!important}
.maerd-site-header{box-sizing:border-box;position:fixed;inset:var(--maerd-admin-height) 0 auto;z-index:60;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:88px;padding:12px 4vw;background:#fff;border-bottom:1px solid #aaa;color:#111;font-family:'Forma DJR Display',Arial,'GenJyuu Gothic',sans-serif}
.maerd-site-header a{color:inherit;text-decoration:none}.maerd-site-brand{font-size:32px;line-height:1;letter-spacing:-.04em;font-weight:700;flex-shrink:0}.maerd-site-brand img{display:block;width:138px;height:auto}.maerd-site-nav{display:flex;gap:24px;align-items:center;font-size:14px;line-height:1.5}.maerd-site-nav a{padding:8px 2px;white-space:nowrap}
.maerd-front:not(.maerd-header-shown) .maerd-site-header{visibility:hidden;opacity:0;pointer-events:none}
body.maerd-inside{padding-top:var(--maerd-header-height)!important}
.maerd-home .maerd-language{display:none!important}
.maerd-lang-switch{z-index:65}
.maerd-site-footer{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;padding:32px 4vw 100px;border-top:1px solid #aaa;background:#fff;color:#111;font:13px/1.5 Arial,'GenJyuu Gothic',sans-serif;margin:0}.maerd-site-footer p{margin:0}.maerd-site-footer nav{display:flex;gap:12px;flex-wrap:wrap}.maerd-site-footer a{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;color:inherit;border-radius:4px}.maerd-site-footer svg{display:block}.maerd-site-header a:hover,.maerd-site-header a:focus-visible,.maerd-site-footer a:hover,.maerd-site-footer a:focus-visible{background:#ed352f;color:#fff;outline-offset:3px}.maerd-original-cv{padding:24px 4vw;margin:0}
.maerd-home #guestbook{box-sizing:border-box;min-height:calc(100svh - var(--maerd-header-height) - var(--maerd-admin-height));padding:24px 4vw!important;display:flex;align-items:center;scroll-margin-top:calc(var(--maerd-header-height) + var(--maerd-admin-height))}
.maerd-home .guest-board{box-sizing:border-box;width:100%;min-height:calc(100svh - var(--maerd-header-height) - var(--maerd-admin-height) - 48px);margin:0!important;border:14px ridge #c4c4c4!important;border-top-color:#eee!important;border-left-color:#ddd!important;border-right-color:#929292!important;border-bottom-color:#858585!important;box-shadow:inset 0 0 0 2px #ffffff60,0 6px 10px #0002;padding:32px!important}
.maerd-home .guest-note{margin-top:clamp(30px,10svh,100px)!important}
.maerd-inside [id]{scroll-margin-top:calc(var(--maerd-header-height) + var(--maerd-admin-height) + 16px)}
@media(max-width:650px){:root{--maerd-header-height:110px}.maerd-site-header{min-height:110px;flex-direction:column;gap:4px;padding:8px 12px}.maerd-site-brand{font-size:27px}.maerd-site-brand img{width:95px}.maerd-site-nav{gap:16px;font-size:11px}.maerd-site-nav a{padding:8px 0}.maerd-site-footer{justify-content:center;text-align:center;gap:12px}.maerd-home #guestbook{padding:16px!important}.maerd-home .guest-board{min-height:calc(100svh - var(--maerd-header-height) - var(--maerd-admin-height) - 32px);border-width:10px!important;padding:24px 18px!important}.maerd-home .guest-note{min-height:150px}}
/* Header offset is accounted for once by each target, not twice by WordPress. */
html{scroll-padding-top:0!important}

html:root{scroll-padding-top:0!important}
