@charset "utf-8";

:root {
  --item-bg: #020202;
  --item-surface: #1a1a1a;
  --item-surface-soft: #3b3b3b;
  --item-line: rgba(255, 255, 255, 0.24);
  --item-text: #f5f5f5;
  --item-text-muted: rgba(255, 255, 255, 0.62);
  --item-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  --panel-slant: clamp(128px, 9vw, 190px);
  --panel-overlap: var(--panel-slant);
  --panel-hover-overlap: 1.35vw;
  --intro-line-left-start: 34vw;
  --intro-line-right-start: 62vw;
  --intro-line-left-final: 6vw;
  --intro-line-right-final: 74vw;
  --intro-line-top: -14vh;
  --intro-line-height: 128vh;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body.item-showcase-body {
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(180deg, #090909 0%, #020202 100%);
  color: var(--item-text);
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
}

a {
  color: inherit;
}

.item-brand {
  position: fixed;
  top: 50%;
  left: clamp(1.5rem, 7vw, 6rem);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transform: translateY(-50%) scale(1.55);
  transform-origin: left center;
  transition:
    top 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    left 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.5s ease;
}

.item-brand-word {
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.item-mobile-navbar {
  display: none;
}

body.is-ready .item-brand {
  top: 1.4rem;
  left: 1.5rem;
  transform: translateY(0) scale(0.82);
}

.item-intro {
  position: fixed;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  background: #000;
  transition: background-color 1.2s ease 1.2s;
}

.item-intro-line {
  position: absolute;
  top: var(--intro-line-top);
  height: var(--intro-line-height);
  width: 1px;
  background-image: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 8%,
    rgba(255, 255, 255, 0.74) 50%,
    rgba(255, 255, 255, 0.12) 92%,
    transparent 100%
  );
  background-repeat: no-repeat;
  background-size: 100% 24%;
  transform-origin: center;
  opacity: 0.92;
  transition:
    left 1.5s cubic-bezier(0.2, 0.72, 0.2, 1),
    background-size 1s cubic-bezier(0.2, 0.72, 0.2, 1),
    background-position 1s cubic-bezier(0.2, 0.72, 0.2, 1),
    opacity 0.5s ease 2.15s;
}

.item-intro-line--one {
  left: var(--intro-line-left-start);
  transform: rotate(20deg);
  background-position: center 86%;
}

.item-intro-line--two {
  left: var(--intro-line-right-start);
  transform: rotate(20deg);
  background-position: center 14%;
}

body.is-ready .item-intro {
  background-color: transparent;
}

body.is-ready .item-intro-line--one {
  left: var(--intro-line-left-final);
  background-size: 100% 100%;
  background-position: center 50%;
  opacity: 0;
}

body.is-ready .item-intro-line--two {
  left: var(--intro-line-right-final);
  background-size: 100% 100%;
  background-position: center 50%;
  opacity: 0;
}

.item-showcase-main {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.item-showcase-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 20%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.03), transparent 42%);
  opacity: 0.8;
  pointer-events: none;
}

.item-panels {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: stretch;
  min-height: 100vh;
  padding: 0;
  isolation: isolate;
  transition: grid-template-columns 1.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.item-panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  padding: 2.25rem 2rem 2.4rem;
  clip-path: polygon(var(--panel-slant) 0, 100% 0, calc(100% - var(--panel-slant)) 100%, 0 100%);
  color: var(--item-text);
  text-decoration: none;
  overflow: hidden;
  transition: filter 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.item-panel:not(:first-child) {
  margin-left: calc(var(--panel-overlap) * -1);
  padding-left: calc(2rem + var(--panel-slant) * 0.36);
}

.item-panel:first-child {
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--panel-slant)) 100%, 0 100%);
}

.item-panel:last-child {
  clip-path: polygon(var(--panel-slant) 0, 100% 0, 100% 100%, 0 100%);
}

.item-panel::before,
.item-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.item-panel::before {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.7) 76%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.12));
  opacity: 1;
  transition: opacity 1.18s cubic-bezier(0.2, 0.72, 0.2, 1);
}

.item-panel::after {
  z-index: 3;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  clip-path: inherit;
}

.item-panel-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.item-panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) saturate(0.05) brightness(0.48);
  transform: none;
  transition: filter 1.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.item-panel-copy {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 0;
  max-width: none;
}

.item-panel-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.3rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.item-panels:has(.item-panel:nth-child(1):hover),
.item-panels:has(.item-panel:nth-child(1):focus-visible) {
  grid-template-columns: 1.04fr 0.98fr 0.98fr;
}

.item-panels:has(.item-panel:nth-child(2):hover),
.item-panels:has(.item-panel:nth-child(2):focus-visible) {
  grid-template-columns: 0.975fr 1.05fr 0.975fr;
}

.item-panels:has(.item-panel:nth-child(3):hover),
.item-panels:has(.item-panel:nth-child(3):focus-visible) {
  grid-template-columns: 0.98fr 0.98fr 1.04fr;
}

.item-panel:hover,
.item-panel:focus-visible {
  z-index: 5;
}

.item-panel:hover .item-panel-media img,
.item-panel:focus-visible .item-panel-media img {
  filter: grayscale(0) saturate(1.35) brightness(1);
  transform: none;
}

.item-panel:hover::before,
.item-panel:focus-visible::before {
  opacity: 0.58;
}

.item-panel:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: -2px;
}

body:not(.is-ready) .item-showcase-main {
  opacity: 0.08;
  transform: scale(1.02);
  filter: blur(12px);
  transition:
    opacity 1s ease,
    transform 1s ease,
    filter 1s ease;
}

body.is-ready .item-showcase-main {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (max-width: 1080px) {
  body.item-showcase-body {
    overflow: auto;
    overflow-x: hidden;
  }

  .item-brand {
    display: none;
  }

  .item-mobile-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 0 16px;
    background: #050505;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .item-mobile-navbar::after {
    content: "";
    position: fixed;
    top: 20px;
    right: 19px;
    z-index: 101;
    width: 24px;
    height: 2px;
    background: #fff;
    box-shadow: 0 7px 0 #fff, 0 14px 0 #fff;
    pointer-events: none;
  }

  .item-mobile-brand {
    color: #f7f7f7;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-decoration: none;
  }

  .item-mobile-menu-button {
    position: fixed;
    top: 7px;
    right: 10px;
    z-index: 100;
    display: inline-grid;
    gap: 5px;
    width: 42px;
    height: 42px;
    place-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  .item-mobile-menu-icon {
    display: block;
    width: 27px;
    height: 27px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: square;
  }

  .item-mobile-navbar.is-open .item-mobile-menu-icon {
    opacity: 0.78;
  }

  .item-mobile-menu {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: calc(100svh - 56px);
    padding: 10px 16px 18px;
    overflow-y: auto;
    background: rgba(5, 5, 5, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.42);
  }

  .item-mobile-menu[hidden] {
    display: none;
  }

  .item-mobile-menu a {
    display: flex;
    align-items: center;
    min-height: 42px;
    color: #f4f4f4;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
  }

  .item-mobile-language {
    grid-column: 1 / -1;
    position: relative;
    justify-self: start;
    width: 128px;
    margin-top: 10px;
  }

  .item-mobile-language .language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
  }

  .item-mobile-language .language-caret {
    width: 6px;
    height: 6px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
  }

  .item-mobile-language .language-menu {
    position: static;
    z-index: 2;
    display: none;
    width: 128px;
    margin-top: 6px;
    padding: 5px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
  }

  .item-mobile-language.is-open .language-menu {
    display: grid;
  }

  .item-mobile-language .language-menu button {
    min-height: 32px;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 0.78rem;
    text-align: left;
  }

  .item-intro {
    display: none;
  }

  .item-showcase-main {
    min-height: 100vh;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .item-panels {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: min(calc(100vw - 24px), 390px);
    min-height: 100svh;
    margin-inline: auto;
    padding: 56px 0 0;
  }

  .item-panel,
  .item-panel + .item-panel {
    flex-basis: auto;
    min-width: 100%;
    height: clamp(155px, calc((100svh - 56px) / 3), 205px);
    min-height: 0;
    margin-left: 0;
    padding: 0;
  }

  .item-panel--module {
    height: clamp(155px, calc((100svh - 56px) / 3), 205px);
  }

  .item-panel,
  .item-panel:first-child,
  .item-panel:last-child {
    clip-path: none;
  }

  .item-panel-media img {
    object-position: center center;
    object-fit: cover;
    background: #050505;
    filter: grayscale(0) saturate(1) brightness(0.9);
  }

  .item-panel--module .item-panel-media {
    background: #07131b;
  }

  .item-panel--module .item-panel-media img {
    object-fit: cover;
    object-position: center center;
  }

  .item-panel-copy {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 5;
  }

  .item-panel-title {
    font-size: clamp(1.35rem, 6vw, 1.85rem);
    line-height: 1.1;
    letter-spacing: 0.02em;
  }

  .item-panel::before {
    opacity: 0.36;
  }

  body:not(.is-ready) .item-panel {
    opacity: 1;
    transform: none;
  }

  body.is-ready .item-panel {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}
