/* Shared typography and controls. Section spacing stays in sections/*.css. */
@font-face { font-family: 'Zen Maru Gothic'; src: url('../../fonts/ZenMaruGothic-Light.ttf') format('truetype'); font-style: normal; font-weight: 300; font-display: swap; }
@font-face { font-family: 'Zen Maru Gothic'; src: url('../../fonts/ZenMaruGothic-Regular.ttf') format('truetype'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Zen Maru Gothic'; src: url('../../fonts/ZenMaruGothic-Medium.ttf') format('truetype'); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: 'Zen Maru Gothic'; src: url('../../fonts/ZenMaruGothic-Bold.ttf') format('truetype'); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: 'Zen Maru Gothic'; src: url('../../fonts/ZenMaruGothic-Black.ttf') format('truetype'); font-style: normal; font-weight: 900; font-display: swap; }

html { scroll-behavior: smooth; font-feature-settings: "palt" 1; }
#vis-container, #vis-container .b { overflow: clip; }
.jp-punct { display: inline; font-family: "Hiragino Maru Gothic ProN", "Zen Maru Gothic", sans-serif; font-style: normal; font-weight: inherit; font-feature-settings: "palt" 1; letter-spacing: 0; }

.js-page-reveal [data-reveal] { opacity: 0; translate: 0 26px; scale: .96; }
.js-page-reveal [data-reveal].is-visible { animation: pageRevealPop .72s cubic-bezier(.2, .85, .25, 1.12) var(--reveal-delay, 0ms) both; }
@keyframes pageRevealPop {
  0% { opacity: 0; translate: 0 28px; scale: .94; }
  58% { opacity: 1; translate: 0 -7px; scale: 1.025; }
  80% { translate: 0 2px; scale: .99; }
  100% { opacity: 1; translate: 0; scale: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .js-page-reveal [data-reveal] { opacity: 1; translate: none; scale: none; animation: none; }
}

#buy { scroll-margin-top: 88px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

#vis-container .w {
  --u: min(1px, .133333vw);
  --lp-label-size: clamp(11px, calc(18 * var(--u)), 18px);
  --lp-title-size: clamp(26px, calc(48 * var(--u)), 48px);
  --lp-copy-size: clamp(13px, calc(19 * var(--u)), 19px);
  --lp-note-size: clamp(9px, calc(13 * var(--u)), 13px);
  --lp-content-max: 1100px;
  --lp-inline-space: clamp(20px, calc(70 * var(--u)), 70px);
  --pdf-pink: #fcd4da;
  --pdf-mint: #c7dfd9;
  --pdf-red: #eb3150;
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding-bottom: 0;
}

:where(#vis-container) .sec {
  position: relative;
  padding-block: var(--section-pad-start, 76px) var(--section-pad-end, 76px);
  padding-inline: var(--section-pad-inline, var(--lp-inline-space));
}

:where(#vis-container) .sec .lab,
:where(#vis-container) #other-lines .lab {
  margin: 0 auto var(--section-label-gap, 12px);
  color: var(--red);
  font-size: var(--lp-label-size);
  letter-spacing: .18em;
  text-align: center;
}

:where(#vis-container) .sec .tt,
:where(#vis-container) #other-lines .tt {
  max-width: var(--section-title-max, 900px);
  margin: 0 auto var(--section-title-gap, 24px);
  color: #6f6a67;
  font-size: var(--section-title-size, var(--lp-title-size));
  line-height: 1.48;
  font-weight: 700;
  text-align: center;
}

:where(#vis-container) .section-lead {
  margin: 0 auto 20px;
  color: #6f6a67;
  font-size: var(--lp-copy-size);
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}

:where(#vis-container) .section-note {
  max-width: 640px;
  margin: 18px auto 0;
  color: #77716d;
  font-size: var(--lp-note-size);
  line-height: 1.6;
  text-align: center;
}

:where(#vis-container) .cta,
:where(#vis-container) .bb > div,
:where(#vis-container) .l3btn > span {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  text-align: center;
}

/* The only viewport-following part is the shared navigation. */
#vis-container .hero-top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  display: flex;
  width: 100%;
  left: 0;
  right: auto;
  transform: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px var(--lp-inline-space);
  background: transparent;
  backdrop-filter: none;
  pointer-events: auto;
}

#vis-container .hero-logo-small {
  display: block;
  width: clamp(150px, calc(290 * var(--u)), 290px);
  max-width: none;
  height: auto;
  transition: filter .2s ease, width .3s ease;
}
#vis-container .hero-top.is-scrolled .hero-logo-small { width: clamp(125px, calc(245 * var(--u)), 245px); }

#vis-container .hero-top.is-on-dark .hero-logo-small { filter: brightness(0) invert(1); }
#vis-container .hero-top.is-on-dark .hero-menu span { background: #fff; }
body.menu-open #vis-container .hero-top.is-on-dark .hero-logo-small { filter: none; }
body.menu-open #vis-container .hero-top.is-on-dark .hero-menu span { background: var(--red); }

#vis-container .hero-menu {
  width: 42px;
  max-width: none;
  height: 42px;
  gap: 7px;
  position: relative;
  z-index: 1002;
}

#vis-container .hero-menu span {
  height: 4px;
  transition: transform .25s ease, opacity .25s ease;
}

#vis-container .hero-menu.is-open span:first-child { transform: translateY(11px) rotate(45deg); }
#vis-container .hero-menu.is-open span:nth-child(2) { opacity: 0; }
#vis-container .hero-menu.is-open span:last-child { transform: translateY(-11px) rotate(-45deg); }

body.menu-open { overflow: hidden; }
#vis-container .global-menu[hidden] { display: none; }
#vis-container .global-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4vh, 40px);
  padding: 100px 24px 40px;
  overflow-y: auto;
  background: rgba(205, 235, 239, .88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
#vis-container .global-menu-main { display: flex; flex-direction: column; align-items: center; gap: clamp(18px, 3vh, 32px); margin-block: auto; }
#vis-container .global-menu-buy,
#vis-container .global-menu-legal { display: flex; justify-content: center; align-items: center; width: 100%; gap: clamp(7px, 1.5vw, 18px); white-space: nowrap; }
#vis-container .global-menu-buy { margin-top: 12px; gap: clamp(4px, 1.5vw, 18px); }
#vis-container .global-menu-legal { margin-top: 8px; }
#vis-container .global-menu .global-menu-buy a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 12px clamp(6px, 2vw, 24px); border-radius: 999px; background: var(--pdf-red); color: #fff; font-size: clamp(9px, 2.7vw, 14px); letter-spacing: 0; }
#vis-container .global-menu .global-menu-legal a { display: inline; font-size: clamp(8px, .8vw, 11px); font-weight: 500; letter-spacing: 0; }
#vis-container .global-menu .global-menu-buy a:hover,
#vis-container .global-menu .global-menu-buy a:focus-visible { background: #d72342; color: #fff; }
@media (min-width: 750px) {
  #vis-container .global-menu-legal a + a::before { content: '｜'; margin-right: clamp(4px, .6vw, 10px); }
}
#vis-container .global-menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #6f6a67;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: .05em;
  text-decoration: none;
}
#vis-container .global-menu a small {
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 500;
  letter-spacing: .03em;
}
#vis-container .global-menu a:hover,
#vis-container .global-menu a:focus-visible { color: var(--pdf-red); }
body.menu-open #vis-container .purchase-follow-tab { visibility: hidden; }

#vis-container .purchase-follow-tab {
  position: fixed;
  top: 38%;
  right: 0;
  z-index: 1001;
  display: block;
  width: clamp(54px, 10vw, 75px);
  height: auto;
  transform: translateX(110%);
  animation: purchaseTabPeek .7s cubic-bezier(.2, 1.3, .35, 1) .65s both;
}
@keyframes purchaseTabPeek { to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  #vis-container .purchase-follow-tab { transform: none; animation: none; }
}
#vis-container .purchase-follow-tab img { display: block; width: 100%; height: auto; }
#vis-container .purchase-follow-tab:focus-visible { outline: 3px solid #f3e85b; outline-offset: 3px; }
.note-mark { position: static; font-size: 10px; font-weight: 400; line-height: 0; vertical-align: super; white-space: nowrap; }

@media (min-width: 750px) {
  #vis-container .w { width: 100%; max-width: none; --lp-inline-space: max(32px, calc((100vw - 1080px) / 2)); --lp-title-size: clamp(34px, 3.5vw, 52px); }
  #vis-container .hero-top { width: 100%; left: 0; transform: none; align-items: center; min-height: 78px; background: transparent; backdrop-filter: none; }
  #vis-container .hero-logo-small { width: clamp(195px, 20vw, 280px); }
  #vis-container .hero-top.is-scrolled .hero-logo-small { width: clamp(170px, 17vw, 235px); }
  #vis-container .hero-menu { display: flex !important; margin-left: auto; }
  #vis-container .purchase-follow-tab { right: 0; }
}

@media (max-width: 749px) {
  #vis-container .w {
    --lp-inline-space: max(20px, calc(70 * var(--u)));
  }

  :where(#vis-container) .sec {
    padding-block: var(--section-pad-start, 64px) var(--section-pad-end, 64px);
  }
}
