/* メニュー（左上のアイコンで開く全画面のメニュー。_menu.html と対応） */
.menu{position:relative;min-height:100vh;overflow:hidden;background:#FFFFFF;color:#333333;font-family:'Zen Kaku Gothic New','Hiragino Sans','Yu Gothic',sans-serif;font-weight:400;font-size:15px;line-height:30px;letter-spacing:0.05em}
.menu[popover]{position:fixed;inset:0;width:100%;height:100%;min-height:0;max-width:none;max-height:none;margin:0;padding:0;border:0;box-sizing:border-box;overflow-x:hidden;overflow-y:auto}
.menu::backdrop{background:transparent}
.menu a{color:inherit;text-decoration:none}
.menu .u{background-image:linear-gradient(#9E85EE,#9E85EE);background-size:0% 1px;background-repeat:no-repeat;background-position:0 100%;transition:background-size .3s cubic-bezier(0.41,0.8,0.75,0.94)}
.menu .u:hover{background-size:100% 1px}
.menu-link .mt{display:inline-block;transition:color .3s ease,translate .35s cubic-bezier(0.19,1,0.22,1)}
.menu-link:hover .mt{color:#16325B;translate:8px 0}
.menu-cta{transition:background-color .3s ease}
.menu-cta:hover{background-color:#22467A !important}
.menu-cta .arr{display:inline-block;margin-left:12px;transition:transform .3s cubic-bezier(0.19,1,0.22,1)}
.menu-cta:hover .arr{transform:translateX(6px)}
.menu :focus-visible{outline:2px solid #16325B;outline-offset:4px}
html:has(.menu:popover-open){overflow:hidden}

/* 開くとき：左上から円が広がり、項目が順に現れる */
.menu:popover-open{animation:menuin .7s cubic-bezier(0.77,0,0.18,1) both}
@keyframes menuin{from{clip-path:circle(0% at calc(max(0px, (100% - 1360px) / 2) + 63px) 57px)}to{clip-path:circle(150% at calc(max(0px, (100% - 1360px) / 2) + 63px) 57px)}}
.menu:popover-open .mi{animation:miin .8s cubic-bezier(0.19,1,0.22,1) both;animation-delay:calc(var(--i) * 60ms + 250ms)}
@media (max-width: 767px){@keyframes menuin{from{clip-path:circle(0% at 35px 37px)}to{clip-path:circle(150% at 35px 37px)}}}
@keyframes miin{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

@media (prefers-reduced-motion: reduce){
.menu:popover-open,.menu:popover-open .mi{animation:none}
.menu .u,.menu-link .mt,.menu-cta,.menu-cta .arr{transition:none}
}
