:root {
  --font:
    "Noto Sans JP", "Noto Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --mono:
    "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    monospace;

  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);

  --chip-bg: rgba(23, 24, 26, 0.9); /* #17181A 90% */
  --chip-border: rgba(255, 255, 255, 0.14);

  --header-h: 92px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
}

html.is-loading {
  overflow: hidden;
}

html.is-loading .hero {
  opacity: 0;
  transform: translateY(8px);
}

html.is-ready .hero {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

/* ===== Loading ===== */
.loading {
  --mask: #fff;
  --rows: 6;

  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: transparent;
}

.loading__title {
  position: relative;
  display: inline-block;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translateY(18px);
  opacity: 0;
  z-index: 2;

  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: clamp(18px, 2.2vw, 28px);
  color: #0f172b;
  white-space: nowrap;
}

.loading__title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: rgba(15, 23, 43, 0.55);
  transition: width 1200ms ease;
}

.loading.is-showTitle .loading__title::after {
  width: 220px;
}

.loading.is-showTitle .loading__title {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
  transition:
    opacity 1400ms ease,
    transform 2200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.loading__rows {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.loading__rows .row {
  position: absolute;
  left: 0;
  right: 0;
  height: calc(100% / var(--rows));
  top: calc(var(--i) * (100% / var(--rows)));
  background: var(--mask);
  transform: translateX(0);
  will-change: transform;
}

.loading.is-exit .loading__rows .row {
  animation: rowFlow 2200ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
  animation-delay: calc(var(--i) * 240ms);
}

@keyframes rowFlow {
  to {
    transform: translateX(120vw);
  }
}

.loading__ai {
  font-weight: 700;
}

.loading__x {
  display: inline-block;
  font-weight: 600;
  transform: translateY(-1px);
  margin: 0 0.06em;
}

.loading__jp {
  font-weight: 400;
  opacity: 0.88;
}

.loading.is-hideTitle .loading__title {
  opacity: 0;
  transition: opacity 260ms ease;
}

.loading.is-hideTitle .loading__title::after {
  opacity: 0;
  transition: opacity 200ms ease;
}

.page-top {
  position: fixed;
  left: 40px;
  bottom: 40px;
  width: 130px;
  height: 130px;
  background: transparent;
  border-radius: 50%;
  z-index: 999;
  color: #0f172b;
  transition:
    color 0.2s ease,
    opacity 0.25s ease;
}

.page-top.is-stopped {
  position: absolute;
  bottom: auto;
  right: auto;
}

.page-top.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.page-top.is-light {
  color: #fff;
}

.page-top svg {
  width: 100%;
  height: 100%;
  animation: rotateText 10s linear infinite;
}

.page-top text {
  fill: currentColor;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.page-top::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: translate(-50%, -30%) rotate(45deg);
}

@keyframes rotateText {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.footer-slope {
  position: relative;
  width: calc(100% + 60px);
  height: 220px;
  margin-top: -140px;
  margin-right: -60px;
  background: #0f172b;
  clip-path: polygon(0 0, 100% 92%, 100% 100%, 0 100%);
  z-index: 1;
}

@keyframes snsFlip {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.menu-sns a:hover img {
  animation: snsFlip 0.8s linear infinite;
}

.js-fadeUp {
  opacity: 0;
  transform: translateY(30px);

  transition:
    opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);

  will-change: transform, opacity;
}

.js-fadeUp.is-in {
  opacity: 1;
  transform: translateY(0);
}

.asobi-word-parallax {
  width: 900px;
  height: 220px;
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
  position: relative;
}

.asobi-word-parallax__inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.asobi-word-parallax__bgImage {
  width: 900px;
  height: auto;
  display: block;
  transform: translateY(80px);
  will-change: transform;
  pointer-events: none;
}

@media (max-width: 767px) {
  .asobi-word-parallax {
    width: 320px;
    height: 90px;
  }

  .asobi-word-parallax__bgImage {
    width: 320px;
    transform: translateY(28px);
  }
}

@media (max-width: 767px) {
  .page-top {
    left: auto !important;
    right: max(16px, calc((100vw - 100%) / 2 + 16px));
    bottom: 16px;
    width: 80px;
    height: 80px;
  }

  .page-top svg {
    animation: rotateText 12s linear infinite;
  }

  .page-top text {
    font-size: 14px;
    letter-spacing: 0.12em;
  }

  .page-top::before {
    width: 12px;
    height: 12px;
    border-left: 2px solid currentColor;
    border-top: 2px solid currentColor;
  }

  .footer-slope {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .page-top {
    width: 96px;
    height: 96px;
  }

  .page-top text {
    font-size: 14px;
    letter-spacing: 0.14em;
  }

  .page-top::before {
    width: 14px;
    height: 14px;
  }

  .page-top svg {
    animation: rotateText 11s linear infinite;
  }

  .footer-slope {
    display: none;
  }
	
}

@media (max-width: 767px) {
  .home #contact.contact-cta,
  .front-page #contact.contact-cta {
    display: none !important;
  }
}