/* =========================================================
   SHIRUMA ONL
   Global CSS
========================================================= */

:root {
  --bg: #050505;
  --bg-soft: #090909;
  --surface: #0d0d0d;
  --surface-hover: #111111;

  --text: #f4f4f4;
  --text-soft: #a4a4a4;
  --text-dim: #666;

  --line: rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.055);

  --max-width: 1440px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-fast: cubic-bezier(.16, 1, .3, 1);

  --header-height: 82px;
}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  padding: 0;
  min-width: 320px;

  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(255, 255, 255, 0.045),
      transparent 35%
    ),
    var(--bg);

  color: var(--text);

  font-family:
    Inter,
    "Helvetica Neue",
    Arial,
    "Noto Sans JP",
    sans-serif;

  font-size: 16px;
  line-height: 1.6;

  overflow-x: hidden;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-loading {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
}

::selection {
  background: #fff;
  color: #000;
}


/* =========================================================
   BACKGROUND
========================================================= */

.background-grid {
  position: fixed;
  inset: 0;
  z-index: -3;

  pointer-events: none;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.028) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.028) 1px,
      transparent 1px
    );

  background-size: 80px 80px;

  mask-image: linear-gradient(
    to bottom,
    black,
    transparent 85%
  );

  opacity: 0.45;
}

.noise {
  position: fixed;
  inset: -50%;
  z-index: 1000;

  pointer-events: none;

  opacity: 0.035;

  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");

  animation: noiseMove 0.18s steps(2) infinite;
}

@keyframes noiseMove {
  0% {
    transform: translate3d(0, 0, 0);
  }

  25% {
    transform: translate3d(2%, -1%, 0);
  }

  50% {
    transform: translate3d(-1%, 2%, 0);
  }

  75% {
    transform: translate3d(1%, 1%, 0);
  }

  100% {
    transform: translate3d(-2%, -1%, 0);
  }
}


/* =========================================================
   LOADER
========================================================= */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100dvh;

  background: #050505;

  transition:
    opacity 0.65s var(--ease),
    visibility 0.65s var(--ease),
    transform 0.65s var(--ease);
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
}

.loader-inner {
  width: min(420px, calc(100vw - 48px));
}

.loader-mark {
  margin-bottom: 34px;

  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
}

.loader-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 10px;

  color: var(--text-soft);

  font-size: 10px;
  font-weight: 600;

  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.loader-line {
  width: 100%;
  height: 1px;

  overflow: hidden;

  background: rgba(255, 255, 255, 0.15);
}

#loader-progress {
  display: block;

  width: 0;
  height: 100%;

  background: #fff;

  transform-origin: left center;
}


/* =========================================================
   CURSOR
========================================================= */

.cursor {
  position: fixed;

  z-index: 10000;

  pointer-events: none;

  opacity: 0;

  transform:
    translate(-50%, -50%)
    scale(1);

  transition:
    opacity 0.25s ease,
    width 0.3s var(--ease),
    height 0.3s var(--ease),
    border-color 0.3s ease,
    background 0.3s ease;
}

.cursor-dot {
  width: 5px;
  height: 5px;

  border-radius: 50%;

  background: #fff;
}

.cursor-ring {
  width: 34px;
  height: 34px;

  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

body.cursor-active .cursor {
  opacity: 1;
}

body.cursor-hover .cursor-ring {
  width: 56px;
  height: 56px;

  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.8);
}

body.cursor-hover .cursor-dot {
  transform: translate(-50%, -50%) scale(0.5);
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;

  z-index: 500;

  display: flex;
  align-items: center;

  width: 100%;
  height: var(--header-height);

  padding:
    0 clamp(22px, 4vw, 64px);

  border-bottom: 1px solid transparent;

  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.76);
  border-color: var(--line-soft);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-logo {
  display: flex;
  flex-direction: column;

  flex-shrink: 0;

  line-height: 1;
}

.logo-jp {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.logo-en {
  margin-top: 5px;

  color: var(--text-dim);

  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;

  margin-left: auto;
  margin-right: 32px;
}

.site-nav a {
  position: relative;

  color: var(--text-soft);

  font-size: 9px;
  font-weight: 600;

  letter-spacing: 0.15em;

  transition: color 0.25s ease;
}

.site-nav a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -7px;

  width: 0;
  height: 1px;

  background: #fff;

  transition: width 0.3s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #fff;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  width: 100%;
}

.language-wrap {
  flex-shrink: 0;
}

#language-select {
  appearance: none;

  min-width: 70px;

  padding:
    7px 22px 7px 9px;

  border: 1px solid var(--line);

  border-radius: 0;

  outline: none;

  color: var(--text-soft);
  background:
    #080808
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' fill='none' stroke='%23aaa' stroke-width='1'/%3E%3C/svg%3E")
    no-repeat
    right 8px center;

  font-size: 9px;
  letter-spacing: 0.05em;

  cursor: pointer;
}


/* =========================================================
   COMMON SECTION
========================================================= */

.section {
  position: relative;

  width: 100%;
  max-width: var(--max-width);

  margin: 0 auto;

  padding:
    clamp(110px, 13vw, 190px)
    clamp(24px, 5vw, 72px);
}

.section-index {
  display: flex;
  align-items: center;
  gap: 14px;

  margin-bottom: 50px;

  color: var(--text-dim);

  font-size: 9px;
  font-weight: 600;

  letter-spacing: 0.18em;
}

.section-index span:first-child {
  color: #fff;
}

.section-content {
  width: 100%;
}

.section-heading {
  max-width: 720px;
}

.section-heading h2,
.section-content > h2 {
  margin: 0;

  color: #fff;

  font-size:
    clamp(30px, 4vw, 54px);

  font-weight: 700;

  line-height: 1.18;
  letter-spacing: -0.045em;

  text-wrap: balance;
  overflow-wrap: anywhere;
}

html:lang(ja) .section-heading h2,
html:lang(ja) .section-content > h2,
html:lang(zh-CN) .section-heading h2,
html:lang(zh-TW) .section-heading h2,
html:lang(ko) .section-heading h2 {
  letter-spacing: -0.025em;
}

.section-heading p {
  margin:
    24px 0 0;

  color: var(--text-soft);

  font-size:
    clamp(14px, 1.4vw, 17px);

  line-height: 1.9;
}


/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;

  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(160px, 260px);

  gap: 50px;

  min-height: 100dvh;

  max-width: var(--max-width);

  margin: 0 auto;

  padding:
    calc(var(--header-height) + 100px)
    clamp(24px, 5vw, 72px)
    80px;

  align-items: center;
}

.hero-number {
  position: absolute;

  top: 115px;
  left: clamp(24px, 5vw, 72px);

  color: var(--text-dim);

  font-size: 9px;
  font-weight: 600;

  letter-spacing: 0.2em;
}

.hero-content {
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 26px;

  color: var(--text-dim);

  font-size: 9px;
  font-weight: 700;

  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  position: relative;

  margin: 0;

  max-width: 1100px;

  font-size:
    clamp(52px, 8vw, 128px);

  font-weight: 750;

  line-height: 0.98;

  letter-spacing: -0.055em;

  text-wrap: balance;
}

/* Japanese/CJK needs more breathing room than Latin display type. */
html:lang(ja) .hero h1,
html:lang(zh-CN) .hero h1,
html:lang(zh-TW) .hero h1,
html:lang(ko) .hero h1 {
  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif;

  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero h1 span {
  display: block;
}

.hero h1 span:last-child {
  color: var(--text-soft);
}

.hero-description {
  max-width: 580px;

  margin:
    38px 0 0;

  color: var(--text-soft);

  font-size:
    clamp(15px, 1.5vw, 19px);

  line-height: 1.9;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: 34px;
}

.hero-tags span {
  padding:
    7px 12px;

  border: 1px solid var(--line);

  color: var(--text-dim);

  font-size: 8px;
  font-weight: 600;

  letter-spacing: 0.16em;
}

.hero-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;

  padding:
    100px 0 20px;
}

.hero-status {
  display: flex;
  align-items: center;
  gap: 9px;

  color: var(--text-soft);

  font-size: 8px;
  font-weight: 600;

  letter-spacing: 0.18em;
}

.status-dot {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #fff;

  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.05),
    0 0 18px rgba(255, 255, 255, 0.4);

  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 1;
  }
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;

  color: var(--text-dim);

  font-size: 8px;
  font-weight: 600;

  letter-spacing: 0.2em;
}

.scroll-arrow {
  color: #fff;
  font-size: 18px;
}


/* =========================================================
   ABOUT
========================================================= */

.about-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.5fr)
    minmax(240px, 0.7fr);

  gap: clamp(50px, 10vw, 160px);

  margin-top: 70px;
}

.about-main p {
  max-width: 720px;

  margin:
    0 0 25px;

  color: var(--text-soft);

  font-size:
    clamp(17px, 2vw, 23px);

  line-height: 1.8;

  letter-spacing: -0.025em;
}

.about-side {
  align-self: start;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;

  padding:
    17px 0;

  border-top: 1px solid var(--line);

  color: var(--text-soft);

  font-size: 9px;
  letter-spacing: 0.12em;
}

.info-row:last-child {
  border-bottom: 1px solid var(--line);
}

.info-row span:first-child {
  color: var(--text-dim);
}


/* =========================================================
   DIGITAL EXPRESSION
========================================================= */

.expression-section {
  max-width: none;

  padding-left: 0;
  padding-right: 0;
}

.expression-section > .section-index,
.expression-section > .section-content {
  width: min(
    var(--max-width),
    calc(100% - clamp(48px, 10vw, 144px))
  );

  margin-left: auto;
  margin-right: auto;
}

.brand-marquee {
  position: relative;

  width: 100%;

  margin-top: 70px;

  overflow: hidden;

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.brand-track {
  display: flex;

  width: max-content;

  will-change: transform;
}

.brand-card {
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  flex: 0 0 220px;

  min-height: 210px;

  padding: 28px;

  border-right: 1px solid var(--line);

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.025),
      transparent 60%
    );

  transition:
    background 0.3s ease,
    transform 0.4s var(--ease);
}

.brand-card:hover {
  background: var(--surface-hover);
  transform: translateY(-5px);
}

.brand-icon {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 62px;
  height: 62px;

  margin-bottom: 30px;

  overflow: hidden;

  border-radius: 15px;

  background: #fff;

  color: #111;
}

.brand-favicon {
  width: 100%;
  height: 100%;

  object-fit: contain;

  padding: 9px;

  opacity: 0;

  transition: opacity 0.3s ease;
}

.brand-favicon.is-loaded {
  opacity: 1;
}

.brand-fallback {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 8px;

  color: #111;

  font-size: 9px;
  font-weight: 800;

  line-height: 1.1;
  text-align: center;
}

.brand-fallback.is-hidden {
  display: none;
}

.brand-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.brand-info strong {
  color: #fff;

  font-size: 15px;
  font-weight: 700;

  letter-spacing: -0.03em;
}

.brand-info span {
  color: var(--text-dim);

  font-size: 8px;
  font-weight: 600;

  letter-spacing: 0.13em;
}


/* =========================================================
   SITES
========================================================= */

.sites-list {
  margin-top: 70px;

  border-top: 1px solid var(--line);
}

.site-card {
  display: grid;

  grid-template-columns:
    70px
    minmax(0, 1fr)
    40px;

  gap: 30px;

  align-items: center;

  min-height: 130px;

  padding:
    22px 0;

  border-bottom: 1px solid var(--line);

  transition:
    padding 0.4s var(--ease),
    background 0.4s ease;
}

.site-card:hover {
  padding-left: 18px;
  padding-right: 18px;

  background: rgba(255, 255, 255, 0.025);
}

.site-number {
  color: var(--text-dim);

  font-size: 9px;
  letter-spacing: 0.16em;
}

.site-main h3 {
  margin: 0;

  color: #fff;

  font-size:
    clamp(21px, 3vw, 34px);

  font-weight: 700;

  letter-spacing: -0.045em;
}

.site-main p {
  margin: 8px 0 0;

  color: var(--text-dim);

  font-size: 11px;
}

.site-arrow {
  color: var(--text-soft);

  font-size: 24px;

  transition:
    transform 0.4s var(--ease),
    color 0.3s ease;
}

.site-card:hover .site-arrow {
  color: #fff;
  transform: translate(5px, -5px);
}


/* =========================================================
   REQUEST
========================================================= */

.request-section {
  padding-top: 170px;
  padding-bottom: 170px;
}

.request-box {
  position: relative;

  max-width: 1000px;

  padding:
    clamp(35px, 6vw, 80px);

  border: 1px solid var(--line);

  background:
    radial-gradient(
      circle at 80% 10%,
      rgba(255, 255, 255, 0.06),
      transparent 40%
    ),
    var(--surface);

  overflow: hidden;
}

.request-box::after {
  content: "";

  position: absolute;

  right: -120px;
  bottom: -160px;

  width: 320px;
  height: 320px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 50%;
}

.request-box h2 {
  margin: 0;

  max-width: 1000px;

  font-size:
    clamp(42px, 7vw, 90px);

  line-height: 1;

  letter-spacing: -0.055em;

  text-wrap: balance;
  overflow-wrap: anywhere;
}

html:lang(ja) .request-box h2,
html:lang(zh-CN) .request-box h2,
html:lang(zh-TW) .request-box h2,
html:lang(ko) .request-box h2 {
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.request-box > p:not(.eyebrow) {
  max-width: 650px;

  margin:
    30px 0 50px;

  color: var(--text-soft);

  font-size:
    clamp(15px, 1.5vw, 19px);

  line-height: 1.8;
}

.request-note {
  display: flex;
  align-items: center;
  gap: 20px;

  padding: 15px 0;

  border-top: 1px solid var(--line);

  color: var(--text-soft);

  font-size: 11px;
}

.request-note:last-child {
  border-bottom: 1px solid var(--line);
}

.request-note span:first-child {
  color: #fff;
}


/* =========================================================
   FINAL
========================================================= */

.final-section {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 85dvh;

  padding:
    100px 24px;

  overflow: hidden;

  border-top: 1px solid var(--line);
}

.final-glow {
  position: absolute;

  left: 50%;
  top: 50%;

  width: 50vw;
  height: 50vw;

  max-width: 700px;
  max-height: 700px;

  transform:
    translate(-50%, -50%);

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.06),
      transparent 65%
    );

  pointer-events: none;
}

.final-content {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}

.final-small {
  margin-bottom: 28px;

  color: var(--text-dim);

  font-size: 9px;
  font-weight: 600;

  letter-spacing: 0.25em;
}

.final-content h2 {
  margin: 0;

  max-width: 1200px;

  font-size:
    clamp(50px, 9vw, 140px);

  line-height: 0.94;

  letter-spacing: -0.065em;

  text-wrap: balance;
}

html:lang(ja) .final-content h2,
html:lang(zh-CN) .final-content h2,
html:lang(zh-TW) .final-content h2,
html:lang(ko) .final-content h2 {
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.final-content h2 span {
  display: block;
}

.final-content h2 span:last-child {
  color: var(--text-soft);
}

.final-mark {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 70px;
  height: 70px;

  margin-top: 60px;

  border: 1px solid var(--line);

  color: #fff;

  font-size: 22px;
  font-weight: 800;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  display: flex;
  justify-content: space-between;

  width: 100%;

  padding:
    30px clamp(24px, 5vw, 72px);

  border-top: 1px solid var(--line);

  color: var(--text-dim);

  font-size: 9px;
  font-weight: 600;

  letter-spacing: 0.12em;
}


/* =========================================================
   SCROLL REVEAL
========================================================= */

.reveal {
  opacity: 0;

  transform: translateY(35px);

  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

  .site-nav {
    gap: 16px;
    margin-right: 18px;
  }

  .site-nav a {
    font-size: 8px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-side {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .brand-card {
    flex-basis: 190px;
    min-height: 190px;
  }

}


@media (max-width: 700px) {

  :root {
    --header-height: 68px;
  }

  .site-header {
    padding:
      0 18px;
  }

  .site-nav {
    display: none;
  }

  .language-wrap {
    margin-left: auto;
  }

  .hero {
    min-height: 100svh;

    padding:
      calc(var(--header-height) + 90px)
      22px
      60px;
  }

  .hero-number {
    top: 95px;
    left: 22px;
  }

  .hero h1 {
    font-size:
      clamp(48px, 14vw, 80px);
  }

  .hero-description {
    font-size: 15px;
  }

  .section {
    padding:
      100px 22px;
  }

  .section-index {
    margin-bottom: 35px;
  }

  .section-heading h2,
  .section-content > h2 {
    font-size: 34px;
  }

  .expression-section {
    padding-left: 0;
    padding-right: 0;
  }

  .expression-section > .section-index,
  .expression-section > .section-content {
    width: calc(100% - 44px);
  }

  .brand-card {
    flex-basis: 170px;
    min-height: 175px;

    padding: 22px;
  }

  .brand-icon {
    width: 52px;
    height: 52px;
  }

  .brand-info strong {
    font-size: 13px;
  }

  .site-card {
    grid-template-columns:
      40px
      minmax(0, 1fr)
      25px;

    gap: 15px;

    min-height: 105px;
  }

  .site-card:hover {
    padding-left: 8px;
    padding-right: 8px;
  }

  .site-main h3 {
    font-size: 20px;
  }

  .request-box {
    padding: 30px 24px;
  }

  .request-box h2 {
    font-size: 52px;
  }

  .final-section {
    min-height: 70svh;
  }

  .final-content h2 {
    font-size:
      clamp(46px, 13vw, 80px);
  }

  .site-footer {
    padding:
      25px 22px;
  }

}


@media (pointer: coarse) {

  .cursor {
    display: none;
  }

}


@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

}