@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

.header-nav {
  display: none;
}

@media screen and (min-width: 767px) {
  header.header {
    top: 0;
    left: 0;
    width: 1920px;
    height: 70px;
    margin-top: 30px;
    padding: 0;
    justify-content: flex-start;
    align-items: center;
    zoom: min(1, 100vw / 1920px);
    box-sizing: border-box;
    transition: margin-top 0.25s ease;
  }

  header.header.header--scrolled {
    margin-top: 0;
  }

  header.header.header--scrolled::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 110px;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(
      to bottom,
      rgba(242, 240, 240, 0.3) 0%,
      rgba(242, 240, 240, 0.14) 58%,
      rgba(242, 240, 240, 0) 100%
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 100%);
  }

  header.header > .header-logobox {
    margin-left: 50px;
    flex-shrink: 0;
    z-index: 202;
  }

  header.header > .header-logobox > a > img {
    width: 165px;
    height: auto;
  }

  header.header > .header-menubox {
    display: none;
  }

  header.header > .header-nav {
    display: flex;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
    gap: 90px;
    z-index: 201;
    font-family: "Pretendard", sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    color: #f5f5f5;
    transition: color 0.25s ease;
  }

  header.header > .header-nav > a {
    color: inherit;
    text-decoration: none;
  }

  header.header.header--dark > .header-nav {
    color: #0d0d0d;
  }
}

@media screen and (max-width: 766px) {
  header.header {
    width: 100%;
    height: 80px;
    padding: 0 20px;
    left: 0;
    right: 0;
  }

  header.header > .header-logobox > a > img {
    width: 83px;
  }

  .header-nav {
    display: none !important;
  }

  header.header > .header-menubox {
    display: flex;
    width: 36px;
    height: 36px;
    justify-content: center;
  }

  .header-menu-en {
    display: none;
  }

  /* Touch keeps :hover after tap; open state is .scale only. */
  .header-menubox:hover > .header-menu-dot > .menu-first,
  .header-menubox:hover > .header-menu-dot > .menu-third {
    display: block;
    opacity: 1;
    transform: none;
  }

  .header-menubox:hover > .header-menu-dot > .menu-second {
    width: 5px;
    height: 5px;
  }

  .menu-first,
  .menu-third {
    opacity: 1;
    transform: translateX(0);
    transition:
      opacity 0.12s ease 0.1s,
      transform 0.12s ease 0.1s;
  }

  .header-menubox:has(.scale) .menu-first,
  .header-menubox:hover:has(.scale) > .header-menu-dot > .menu-first {
    display: block;
    opacity: 0;
    transform: translateX(10px);
    pointer-events: none;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  .header-menubox:has(.scale) .menu-third,
  .header-menubox:hover:has(.scale) > .header-menu-dot > .menu-third {
    display: block;
    opacity: 0;
    transform: translateX(-10px);
    pointer-events: none;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  .menuSelectorWrapper {
    font-size: 2.8rem;
    margin-top: calc(var(--vh, 1svh) * 5);
  }

  .menuSelectorWrapper div:hover {
    font-size: 2.8rem;
  }
}

.menu-first {
  background-color: hsl(0, 0%, 25%);
}

.menu-second {
  background-color: hsl(0, 0%, 50%);
  scale: 1;
  transition:
    scale 0.1s ease-in,
    background-color 0s linear 0.1s;
}

.menu-third {
  background-color: hsl(0, 0%, 75%);
}

.menu-second.scale {
  scale: 1000;
  background-color: #F5F5F5;
  transition:
    scale 0.4s ease-out,
    background-color 0s linear 0s;
}

.menuSelector {
  color: #0d0d0d;
}

header.header:not(.header--dark) .header-logobox img {
  transition: filter 0s linear 0.1s;
}

header.header:not(.header--dark):has(.scale) .header-logobox img {
  filter: invert(1);
  transition: filter 0s linear 0s;
}

header.header[data-over-hero]:not(.header--dark) .header-logobox img {
  filter: invert(1);
}

header.header[data-over-hero]:not(.header--dark):has(.scale) .header-logobox img {
  filter: none;
}

.scroll-to-works {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 16px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  border: 0;
  background: #f5f5f5;
  box-shadow: 0 -12px 24px rgba(245, 245, 245, 0.9);
  color: #0d0d0d;
  font-family: "Pretendard", sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.15s ease, visibility 0s linear 0.15s, transform 0s;
}

html.has-scroll-to-works .footer {
  height: auto;
  margin-bottom: 0;
  padding-bottom: var(--back-to-works-space, calc(96px + env(safe-area-inset-bottom, 0px)));
  z-index: 1;
}

@media screen and (min-width: 767px) {
  html.has-scroll-to-works .footer {
    margin-top: 200px;
  }
}

.scroll-to-works.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: transform 0.4s ease, opacity 0.15s ease, visibility 0s;
}

.scroll-to-works.is-light {
  background: #0d0d0d;
  color: #f5f5f5;
  box-shadow: 0 -12px 24px rgba(13, 13, 13, 0.9);
}

.scroll-to-works-arrow {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  animation: scroll-to-works-bounce 1.15s ease-in-out infinite;
}

@keyframes scroll-to-works-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}
