/* Native fullscreen modal keeps focus and scrolling within the navigation. */
.header .menu-toggle { display: flex; width: 44px; height: 44px; flex: 0 0 44px; padding: 11px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 50%; border: 1px solid #d2d7ce; background: transparent; }
.header .menu-toggle span { width: 20px; height: 2px; background: #20231c; }
.header { gap: 1.8rem; }
.fullscreen-menu { position: fixed; inset: 0; margin: 0; padding: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; border: 0; border-radius: 0; background: #181b17; color: #f5f5ec; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; box-shadow: none; isolation: isolate; }
.fullscreen-menu[open] { animation: menu-unfold 600ms cubic-bezier(.2,.7,.15,1) both; }
.fullscreen-menu::backdrop { background: #181b17; backdrop-filter: none; }
.fullscreen-menu p { margin: 0; }
.menu-layout { position: relative; width: 88%; max-width: 72rem; min-height: 100%; margin-inline: auto; display: flex; flex-direction: column; padding-bottom: max(1.25rem,env(safe-area-inset-bottom)); }
.menu-topbar { position: sticky; top: 0; z-index: 2; background: #181b17; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.3rem; border-bottom: 1px solid #ffffff20; }
.menu-topbar .logo { width: 6.3rem; }
.menu-topbar .logo svg { width: 6.3rem; height: 1.8rem; }
.menu-topbar .logo span { font-size: .52rem; }
.menu-edition { display: flex; align-items: center; gap: .7rem; color: #969c90; letter-spacing: .18em; font-size: .58rem; }
.menu-edition .japan-flag { width: 1.2rem; height: .8rem; margin: 0; top: 0; border-radius: 2px; transform: none; }
.menu-edition .japan-flag::after { width: .4rem; height: .4rem; }
.menu-close { position: relative; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; background: #f1a20a; color: #181b17; transition: transform 350ms var(--ease-out), background 200ms; }
.menu-close span { position: absolute; top: 23px; left: 14px; width: 20px; height: 2px; background: currentColor; transform: rotate(45deg); }
.menu-close span + span { transform: rotate(-45deg); }
.menu-close:hover { transform: rotate(90deg); background: #ffb936; }
.menu-close:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
.menu-main { flex: 1; display: grid; grid-template-columns: 1.75fr 1fr; gap: 4rem; align-items: center; padding-block: clamp(2rem,5vh,4rem); }
.fullscreen-menu .menu-label { font-size: .6rem; letter-spacing: .15em; color: #a4aa9d; line-height: 1.5; font-weight: 400; }
.menu-navigation nav { margin-top: 1rem; }
.menu-navigation nav a { position: relative; display: flex; align-items: center; gap: 1rem; padding-block: .85rem; border-bottom: 1px solid #ffffff1a; font-size: clamp(1.5rem,3.1vw,2.8rem); line-height: 1.25; letter-spacing: -.065em; font-family: var(--display); }
.menu-index { font: 400 .65rem/1 Roboto,sans-serif; letter-spacing: 0; align-self: flex-start; padding-top: .6rem; color: #9da493; }
.menu-link-text { transition: translate 400ms var(--ease-out), color 250ms; }
.menu-link-arrow { font-family: Roboto,sans-serif; color: #e79a10; margin-left: auto; font-size: .8em; transition: transform 400ms var(--ease-out); }
.menu-navigation nav a:hover .menu-link-text,.menu-navigation nav a:focus-visible .menu-link-text { color: #f1a20a; translate: .4rem 0; }
.menu-navigation nav a:hover .menu-link-arrow { transform: rotate(45deg); }
.menu-feature { max-width: 22rem; justify-self: end; }
.menu-photo { position: relative; border-radius: .6rem; overflow: hidden; transform: rotate(3deg); }
.menu-photo img { width: 100%; aspect-ratio: 1.35; height: auto; object-fit: cover; filter: saturate(.65); transition: transform 900ms var(--ease-out); }
.menu-feature:hover img { transform: scale(1.06); }
.menu-photo::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent,#111a); pointer-events: none; }
.menu-photo > span { position: absolute; z-index: 1; left: 1.3rem; bottom: 1.1rem; font-size: .6rem; letter-spacing: .15em; }
.fullscreen-menu .menu-feature > p { color: #a4aa9d; font-size: 1.25rem; line-height: 1.45; margin-top: 2rem; letter-spacing: -.02em; }
.menu-feature strong { color: #f6f5eb; font-weight: 400; }
.menu-contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding-block: 1.5rem 2rem; border-top: 1px solid #ffffff26; }
.menu-phone { display: inline-flex; gap: 1rem; align-items: center; font-size: 1.6rem; letter-spacing: -.035em; margin-top: .6rem; white-space: nowrap; }
.menu-phone span { color: #f1a20a; font-size: .8em; }
.menu-second-phone { display: block; font-size: .7rem; color: #a4aa9d; margin-top: .6rem; }
.menu-social:hover { color: #f1a20a; }
.fullscreen-menu .menu-social-status { margin-top: .7rem; font-size: .65rem; line-height: 1.6; color: #e9ac3f; }
.menu-callback { display: flex; align-items: center; gap: 1rem; min-height: 44px; color: #d7dabf; padding: 0; margin-top: .2rem; background: none; font-size: .75rem; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #737c62; }
.menu-callback:hover { color: #f1a20a; }
.menu-social-block { justify-self: end; min-width: 20rem; }
.menu-socials { display: flex; flex-wrap: wrap; gap: .7rem 1.3rem; margin-top: .7rem; }
.menu-social { display: grid; gap: .35rem; font-size: .8rem; min-height: 44px; color: #dedfd6; }
.menu-social > span { font-size: .58rem; color: #8f9788; }
.menu-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .5rem; letter-spacing: .12em; color: #7e8775; }
.menu-sun { position: fixed; z-index: -1; pointer-events: none; inset: 0; overflow: hidden; }
.menu-sun::before,.menu-sun::after { content: ''; position: absolute; width: 40rem; height: 40rem; right: -14rem; bottom: -23rem; background: radial-gradient(circle,#d4901522,transparent 68%); border: 1px solid #d7982925; border-radius: 50%; }
.menu-sun::after { width: 34rem; height: 34rem; right: -11rem; bottom: -20rem; background: none; }
.fullscreen-menu[open] .menu-navigation nav a { animation: menu-item-in 650ms var(--ease-out) both; }
.fullscreen-menu[open] .menu-navigation nav a:nth-child(1) { animation-delay: 100ms; }
.fullscreen-menu[open] .menu-navigation nav a:nth-child(2) { animation-delay: 160ms; }
.fullscreen-menu[open] .menu-navigation nav a:nth-child(3) { animation-delay: 220ms; }
.fullscreen-menu[open] .menu-navigation nav a:nth-child(4) { animation-delay: 280ms; }
.fullscreen-menu[open] .menu-contacts,.fullscreen-menu[open] .menu-feature { animation: menu-item-in 800ms 200ms var(--ease-out) both; }
@keyframes menu-unfold { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes menu-item-in { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }
@media(max-width:1100px) and (min-width:801px) {
  .header { gap: .8rem; }
  .header .nav { gap: .7rem; }
  .header-contact { gap: .5rem; }
}
@media(max-width:800px) {
  .header { gap: .7rem; }
  .menu-layout { width: 88%; }
  .menu-topbar { padding-block: 1rem; }
  .menu-topbar .logo { width: 5.5rem; }
  .menu-topbar .logo svg { width: 5.5rem; }
  .menu-edition { font-size: .48rem; gap: .4rem; letter-spacing: .1em; }
  .menu-main { display: block; padding-block: clamp(1.5rem,5vh,3rem); }
  .menu-feature { display: none; }
  .menu-navigation nav { margin-top: .8rem; }
  .menu-navigation::after { content: 'JAPAN'; display: block; margin-top: 1.2rem; font: 900 clamp(3rem,17vw,6rem)/1 var(--display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px #aeb79820; pointer-events: none; }
  .menu-navigation nav a { font-size: clamp(1.3rem,5.7vw,2.4rem); gap: .75rem; padding-block: 1rem; min-height: 60px; letter-spacing: -.055em; }
  .menu-index { font-size: .55rem; padding-top: .3rem; }
  .menu-contacts { grid-template-columns: 1fr; gap: 1.2rem; padding-block: 1.3rem 1.4rem; }
  .menu-phone { font-size: 1.6rem; }
  .menu-social-block { justify-self: stretch; min-width: 0; }
  .menu-socials { justify-content: space-between; gap: .5rem; }
  .menu-social { font-size: .83rem; }
  .menu-bottom { font-size: .44rem; line-height: 1.6; letter-spacing: .06em; }
  .menu-bottom > span:first-child { max-width: 10rem; }
  .menu-bottom > span:last-child { text-align: right; }
  .menu-sun::before { width: 25rem; height: 25rem; right: -11rem; bottom: -14rem; }
  .menu-sun::after { width: 19rem; height: 19rem; right: -8rem; bottom: -11rem; }
}
@media(max-height:700px) and (max-width:800px) {
  .menu-navigation::after { display: none; }
  .menu-topbar { padding-block: .5rem; }
  .menu-main { padding-block: .75rem; }
  .menu-navigation nav a { padding-block: .5rem; min-height: 46px; }
  .menu-contacts { padding-block: .7rem; gap: .8rem; }
}
@media(prefers-reduced-motion:reduce) {
  .fullscreen-menu,.fullscreen-menu * { animation: none !important; transition: none !important; }
}

@media(max-width:800px) {
  .header .menu-toggle { border-color: #d6d6d6; }
  .header .menu-toggle span { background: #222; }
  .fullscreen-menu,.fullscreen-menu::backdrop,.menu-topbar { background: #181818; }
  .fullscreen-menu { color: #f5f5f5; }
  .menu-edition,.menu-index { color: #999; }
  .fullscreen-menu .menu-label,.menu-second-phone { color: #a6a6a6; }
  .menu-callback { color: #d8d8d8; text-decoration-color: #777; }
  .menu-social { color: #dedede; }
  .menu-social > span { color: #949494; }
  .menu-bottom { color: #888; }
  .menu-navigation::after { -webkit-text-stroke-color: #ffffff18; }
  .menu-sun::before,.menu-sun::after { background: none; border-color: #ffffff0a; }
}
