/* Kometo site: shared styles. Most layout lives inline in the pages, exactly as designed. */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #ECEEEF;
  color: #2F343A;
  font-family: 'Jost', 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', system-ui, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
}
a { color: #23272B; }
a:hover { color: #5A6068; }
:focus-visible { outline: 2px solid #23272B; outline-offset: 3px; }
[id^="menu-"] { scroll-margin-top: 24px; }

/* Header tabs: the Japanese label shows only on hover or keyboard focus */
.nav-jp { opacity: 0; transition: opacity .15s ease; }
.nav-tab:hover .nav-jp, .nav-tab:focus-visible .nav-jp { opacity: 1; }

/* Phones and small tablets: the tabs collapse into a three-bar button that opens a full-screen menu */
.nav-toggle { display: none; }
@media (max-width: 1000px) {
  .nav-desktop { display: none !important; }
  .nav-toggle { display: inline-flex; }
}

/* Contact form */
#contact-form input:focus-visible, #contact-form select:focus-visible, #contact-form textarea:focus-visible { outline: none; border-bottom-width: 2px; }
#contact-form ::placeholder { color: #8A9097; }

/* Store locator */
.shop-map { display: block; width: 100%; aspect-ratio: 16 / 7; min-height: 280px; border: 0; background: #E2E5E7; }
.chev { transition: transform .15s ease; }
details[open] .chev { transform: rotate(180deg); }

/* Closing banner: wave pattern fades in, the seal stamps down, the name rises letter by letter */
.banner-letter{display:inline-block}
.banner-rule{width:56px}
.brand-banner.anim .banner-pattern{opacity:0}
.brand-banner.anim .banner-seal{opacity:0;transform:scale(1.7) rotate(-10deg)}
.brand-banner.anim .banner-letter{opacity:0;transform:translateY(16px)}
.brand-banner.anim .banner-rule{width:0}
.brand-banner.anim .banner-tag{opacity:0}
.brand-banner.anim.is-in .banner-pattern{opacity:1;transition:opacity 1.6s ease}
.brand-banner.anim.is-in .banner-seal{animation:seal-stamp .55s cubic-bezier(.2,.9,.3,1.2) .15s forwards}
.brand-banner.anim.is-in .banner-letter{animation:letter-in .5s ease forwards}
.brand-banner.anim.is-in .banner-letter:nth-child(1){animation-delay:.55s}
.brand-banner.anim.is-in .banner-letter:nth-child(2){animation-delay:.62s}
.brand-banner.anim.is-in .banner-letter:nth-child(3){animation-delay:.69s}
.brand-banner.anim.is-in .banner-letter:nth-child(4){animation-delay:.76s}
.brand-banner.anim.is-in .banner-letter:nth-child(5){animation-delay:.83s}
.brand-banner.anim.is-in .banner-letter:nth-child(6){animation-delay:.90s}
.brand-banner.anim.is-in .banner-rule{width:56px;transition:width .6s cubic-bezier(.7,0,.2,1) 1.05s}
.brand-banner.anim.is-in .banner-tag{opacity:1;transition:opacity .9s ease 1.35s}
@keyframes seal-stamp{0%{opacity:0;transform:scale(1.7) rotate(-10deg)}60%{opacity:1;transform:scale(.92) rotate(0deg)}100%{opacity:1;transform:scale(1) rotate(0deg)}}
@keyframes letter-in{to{opacity:1;transform:none}}
@media (prefers-reduced-motion: reduce){.brand-banner.anim .banner-pattern,.brand-banner.anim .banner-seal,.brand-banner.anim .banner-letter,.brand-banner.anim .banner-tag{opacity:1 !important;transform:none !important;animation:none !important;transition:none !important}.brand-banner.anim .banner-rule{width:56px !important;transition:none !important}}

/* Entrance curtain (home page, first visit of a session) */
#entrance { display: none; }
.entrance-on body { overflow: hidden; }
.entrance-on #entrance {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100;
  display: flex; flex-direction: column;
  background: #ECEEEF;
  transition: opacity .45s ease .8s;
}
#entrance .noren-panel { transition: transform .9s cubic-bezier(.7, 0, .2, 1); }
#entrance .noren-panel:nth-child(2) { transition-delay: .08s; }
#entrance .noren-panel:nth-child(3) { transition-delay: .16s; }
#entrance .entrance-foot { transition: opacity .35s ease; }
#entrance.is-leaving { opacity: 0; pointer-events: none; }
#entrance.is-leaving .noren-panel { transform: translateY(-112%); }
#entrance.is-leaving .entrance-foot { opacity: 0; }
#enter-site:focus-visible { outline-color: #B5382A; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-jp, .chev, .entrance-on #entrance, #entrance .noren-panel, #entrance .entrance-foot { transition: none; }
}
