:root {
  --color-bg: #f7f7f5;
  --color-text: #121212;
  --color-muted: #7c7c78;
  --color-dark: #020202;
  --color-accent: #48ff00;
  --color-card: #d9d9d9;
  --ease-loading-in: cubic-bezier(0.22, 0.8, 0.2, 1);
  --ease-loading-out: cubic-bezier(0.4, 0, 0.18, 1);
  --ease-loading-trail: cubic-bezier(0.2, 0.72, 0.16, 1);
  --font-display: "Manrope", "Helvetica Neue", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
  --container: min(1108px, calc(100vw - 64px));
  --hero-logo-width: min(72vw, 780px);
  --section-gap: clamp(88px, 10vw, 152px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}

body.is-loading {
  overflow: hidden;
}

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

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

p,
h1,
h2 {
  margin: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  padding: 28px 30px;
  pointer-events: none;
}

.brand {
  display: inline-flex;
  width: 189px;
  height: 25px;
  pointer-events: auto;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0);
  transition: filter 0.35s ease;
}

.site-header.is-on-dark .brand img {
  filter: brightness(0) invert(1);
}

.nav-toggle {
  display: none;
  pointer-events: auto;
}

.section-nav {
  position: fixed;
  right: 30px;
  top: 28px;
  display: inline-flex;
  gap: 16px;
  pointer-events: auto;
}

.section-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #121212;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    color 0.25s ease,
    opacity 0.25s ease,
    transform 0.25s ease;
}

.section-nav__link:hover,
.section-nav__link:focus-visible {
  opacity: 0.55;
  transform: translateY(-1px);
}

.section-nav__link--lang {
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0;
}

.site-header.is-on-dark .section-nav__link {
  color: #fff;
}

.site-header.is-on-dark .nav-toggle span {
  background: #fff;
}

.section {
  position: relative;
}

.site-main,
.site-header {
  transition: opacity 0.32s var(--ease-loading-out);
}

body.is-loading .site-main,
body.is-loading .site-header {
  opacity: 0;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.32s var(--ease-loading-out),
    visibility 0.32s var(--ease-loading-out);
}

.loading-screen__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(42vw, 520px);
  height: min(42vw, 520px);
  background:
    radial-gradient(circle, rgba(72, 255, 0, 0.08) 0%, rgba(72, 255, 0, 0.025) 34%, rgba(72, 255, 0, 0) 72%);
  transform: translate(-50%, -50%);
  filter: blur(18px);
  opacity: 0.46;
  animation: loading-glow 2.8s ease-in-out infinite;
}

.loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-screen__title {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: var(--hero-logo-width);
}

.loading-screen__title-outline,
.loading-screen__title-fill {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: auto;
}

.loading-screen__title-outline {
  filter: brightness(0) invert(1);
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  filter: brightness(0) invert(1) blur(3px);
  animation: loading-logo-outline 1s cubic-bezier(0.2, 0.72, 0.16, 1) forwards;
}

.loading-screen__title-fill {
  filter: brightness(0) invert(1);
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  animation: loading-logo-fill 1.1s cubic-bezier(0.2, 0.72, 0.16, 1) 0.22s
    forwards;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 120px 0 0;
  overflow: hidden;
}

.hero__ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero__ambient-line {
  position: absolute;
  background: rgba(18, 18, 18, 0.2);
  will-change: transform, opacity;
}

.hero__ambient-line--h {
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(18, 18, 18, 0) 0%,
    rgba(18, 18, 18, 0.28) 18%,
    rgba(18, 18, 18, 0.28) 82%,
    rgba(18, 18, 18, 0) 100%
  );
}

.hero__ambient-line--v {
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(18, 18, 18, 0) 0%,
    rgba(18, 18, 18, 0.22) 20%,
    rgba(18, 18, 18, 0.22) 80%,
    rgba(18, 18, 18, 0) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: calc(100svh - 120px);
  margin: 0 auto;
  padding: 0 32px 120px;
}

.hero__title {
  position: relative;
  display: inline-grid;
  place-items: center;
  text-align: center;
  line-height: 1;
}

.hero__title-outline-image,
.hero__title-image {
  grid-area: 1 / 1;
  display: block;
  width: var(--hero-logo-width);
  height: auto;
}

.hero__title-outline-image {
  filter: brightness(0);
  opacity: 0;
}

.hero__title-image {
  filter: brightness(0);
  opacity: 0;
  transform: translateY(8px) scale(0.99);
}

body.is-loaded .hero__title-outline-image {
  animation: hero-logo-outline-in 0.82s cubic-bezier(0.2, 0.72, 0.16, 1) 0.08s
    forwards;
}

body.is-loaded .hero__title-image {
  animation: hero-logo-in 0.85s cubic-bezier(0.2, 0.72, 0.16, 1) 0.24s
    forwards;
}

.hero__scroll {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 0;
  width: 24px;
  height: 180px;
}

.hero__scroll::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 100px;
  background: #000;
  transform: translateX(-50%) scaleY(0);
  transform-origin: 50% 0;
  animation: scroll-guide 2s infinite;
}

.hero__scroll span {
  position: absolute;
  left: 50%;
  bottom: 112px;
  writing-mode: vertical-rl;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.hero__scroll img {
  display: none;
}

@keyframes scroll-guide {
  0% {
    transform: translateX(-50%) scaleY(0);
    transform-origin: 50% 0;
  }

  50% {
    transform: translateX(-50%) scaleY(1);
    transform-origin: 50% 0;
  }

  51% {
    transform: translateX(-50%) scaleY(1);
    transform-origin: 50% 100%;
  }

  100% {
    transform: translateX(-50%) scaleY(0);
    transform-origin: 50% 100%;
  }
}

@keyframes loading-glow {
  0%,
  100% {
    opacity: 0.24;
    transform: translate(-50%, -50%) scale(0.94);
  }

  50% {
    opacity: 0.46;
    transform: translate(-50%, -50%) scale(1.01);
  }
}

@keyframes loading-logo-outline {
  0% {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(12px) scale(0.985);
  }

  100% {
    opacity: 0.68;
    filter: brightness(0) invert(1) blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes loading-logo-fill {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    filter: brightness(0) invert(1) blur(2px);
    transform: scale(0.99);
  }

  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    filter: brightness(0) invert(1) blur(0);
    transform: scale(1);
  }
}

@keyframes hero-logo-outline-in {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
    filter: brightness(0) blur(3px);
  }

  100% {
    opacity: 0.58;
    transform: translateY(0) scale(1);
    filter: brightness(0) blur(0);
  }
}

@keyframes hero-logo-in {
  0% {
    opacity: 0;
    transform: scale(0.99);
    filter: blur(3px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}


@keyframes hero-title-outline {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@keyframes hero-title-fill {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }

  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

.section-heading {
  width: var(--container);
  margin: 0 auto;
}

.section-heading__line {
  overflow: hidden;
}

.section-heading__line--jp {
  margin-top: 2px;
}

.section-heading__en {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(40px, 3.8vw, 48px);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.section-heading__jp {
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
}

.mission .section-heading__en,
.mission .section-heading__jp {
  transform: translateY(110%);
  opacity: 0;
}

.service .section-heading__en,
.service .section-heading__jp {
  transform: translateY(110%);
  opacity: 0;
}

body.is-loaded .mission .section-heading__en {
  animation: heading-rise 1s cubic-bezier(0.22, 0.8, 0.2, 1) 1.75s forwards;
}

body.is-loaded .mission .section-heading__jp {
  animation: heading-rise 0.9s cubic-bezier(0.22, 0.8, 0.2, 1) 2.15s forwards;
}

.service .section-heading__line.is-visible .section-heading__en,
.service .section-heading__line.is-visible .section-heading__jp {
  animation: heading-rise 0.95s cubic-bezier(0.22, 0.8, 0.2, 1) forwards;
}

.section--dark {
  background: var(--color-dark);
  color: #fff;
  padding: 92px 0 112px;
  overflow: hidden;
}

.mission.section--dark::before,
.company.section--dark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(54px, 8vw, 110px);
  background: var(--color-bg);
  clip-path: polygon(0 0, 100% 0, 100% 18%, 0 100%);
}

.mission.section--dark > *,
.company.section--dark > * {
  position: relative;
  z-index: 1;
}

.mission.section--dark {
  padding-top: calc(92px + clamp(38px, 5vw, 62px));
}

.company.section--dark {
  padding-top: calc(92px + clamp(38px, 5vw, 62px));
}

.mission__statement {
  position: relative;
  width: 100%;
  margin-top: 46px;
  overflow: hidden;
}

.mission__statement-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: mission-marquee 30s linear infinite;
}

.mission__statement-art {
  flex: none;
  width: auto;
  height: clamp(56px, 8.4vw, 128px);
  margin-right: 5rem;
}

@keyframes mission-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

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

@keyframes heading-rise {
  0% {
    transform: translateY(110%);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.mission__content {
  display: grid;
  grid-template-columns: minmax(280px, 450px) minmax(320px, 546px);
  gap: clamp(48px, 7vw, 112px);
  width: var(--container);
  margin: 76px auto 0;
}

.mission__lead h2 {
  font-size: clamp(56px, 6.4vw, 90px);
  line-height: 1.12;
  font-weight: 900;
}

.mission__lead-rotator {
  display: inline-block;
  min-height: 4.6em;
  transition:
    opacity 0.42s cubic-bezier(0.22, 0.8, 0.2, 1),
    filter 0.42s cubic-bezier(0.22, 0.8, 0.2, 1),
    transform 0.42s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.mission__lead-rotator.is-switching {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(18px);
}

.mission__body {
  display: grid;
  gap: 22px;
  padding-top: 8px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
}

.mission__body-line {
  overflow: hidden;
}

.mission__body-copy {
  transform: translateY(110%);
  opacity: 0;
  filter: blur(8px);
  transition:
    transform 1.35s cubic-bezier(0.22, 0.8, 0.2, 1),
    opacity 1.1s cubic-bezier(0.22, 0.8, 0.2, 1),
    filter 1.1s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.mission__body-line.is-visible .mission__body-copy {
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
}

.service {
  position: relative;
  padding: 108px 0 132px;
}

.service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(54px, 8vw, 110px);
  background: var(--color-dark);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 18%);
}

.service > * {
  position: relative;
  z-index: 1;
}

.service {
  padding-top: calc(108px + clamp(38px, 5vw, 62px));
}

.company {
  padding: 108px 0 132px;
}

.service__layout {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(320px, 736px);
  gap: clamp(48px, 7vw, 120px);
  width: var(--container);
  margin: 0 auto;
}

.company__layout {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(320px, 736px);
  gap: clamp(48px, 7vw, 120px);
  width: var(--container);
  margin: 0 auto;
}

.service .section-heading {
  width: auto;
  margin: 0;
  align-self: start;
}

.company .section-heading {
  width: auto;
  margin: 0;
  align-self: start;
}

.service__content {
  width: 100%;
}

.company__content {
  width: 100%;
}

.service__visual {
  width: 100%;
  aspect-ratio: 1052 / 796;
  background:
    var(--color-card) url("../img/service_img01.webp?v=20260421-1") center /
      cover no-repeat;
  opacity: 0;
  transform: translateY(44px);
  filter: blur(10px);
  transition:
    opacity 1s cubic-bezier(0.22, 0.8, 0.2, 1),
    transform 1.1s cubic-bezier(0.22, 0.8, 0.2, 1),
    filter 1s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.service__visual.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.service__info {
  margin-top: 18px;
  max-width: 689px;
}

.service__info h2 {
  margin-top: 0;
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1.2;
  font-weight: 400;
  color: #333;
}

.service__info p {
  margin-top: 14px;
  color: #333;
  font-size: 16px;
  line-height: 1.7;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 215px;
  height: 46px;
  margin-top: 22px;
  border: 1px solid #161616;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.button-link:hover,
.button-link:focus-visible {
  background: #161616;
  color: #fff;
  transform: translateY(-1px);
}

.company__table {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
}

.company__table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.company__table tr:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.company__table th,
.company__table td {
  padding: 24px 0;
  text-align: left;
  vertical-align: top;
  font-size: 16px;
  line-height: 1.8;
}

.company__table th {
  width: 180px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.company__table td {
  color: #fff;
  font-weight: 400;
}

.site-footer {
  background: #f7f7f5;
  border-top: 1px solid rgba(18, 18, 18, 0.08);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 32px;
  width: var(--container);
  margin: 0 auto;
  padding: 28px 0 32px;
  color: #121212;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
}

.site-footer__copy {
  grid-column: 1 / -1;
  color: rgba(18, 18, 18, 0.55);
  font-size: 12px;
}

.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  margin-top: -10px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    transform 0.18s ease,
    background-color 0.18s ease;
  will-change: transform, opacity;
}

.cursor-trail--core {
  background: rgba(57, 255, 20, 0.92);
  box-shadow: 0 0 22px rgba(57, 255, 20, 0.34);
}

.cursor-trail--ghost {
  width: 16px;
  height: 16px;
  margin-left: -8px;
  margin-top: -8px;
  background: rgba(57, 255, 20, 0.28);
  filter: blur(3px);
}

.cursor-trail.is-visible {
  opacity: 1;
}

.cursor-trail.is-active {
  transform: scale(1.6);
}

@media (max-width: 960px) {
  .mission__statement {
    width: var(--container);
    margin-inline: auto;
  }

  .mission__statement-art {
    height: clamp(48px, 9.2vw, 88px);
    margin-right: 3rem;
  }

  .mission__content,
  .service__layout,
  .company__layout {
    grid-template-columns: 1fr;
  }

  .service__layout,
  .company__layout {
    gap: 36px;
  }
}

@media (max-width: 640px) {
  :root {
    --container: calc(100vw - 40px);
  }

  .site-header {
    padding: 22px 20px;
  }

  .brand {
    width: 150px;
    height: 20px;
  }

  .nav-toggle {
    position: fixed;
    right: 20px;
    top: 18px;
    z-index: 12;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    appearance: none;
  }

  .nav-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: #121212;
    transition:
      transform 0.28s ease,
      opacity 0.2s ease,
      background-color 0.28s ease;
  }

  .section-nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: #48ff00;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.98);
    transition:
      opacity 0.25s ease,
      visibility 0.25s ease,
      transform 0.25s ease,
      background-color 0.25s ease;
  }

  .section-nav__link {
    justify-content: center;
    color: #121212;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
  }

  .section-nav__link--lang {
    width: 54px;
    height: 54px;
    margin-top: 10px;
    font-size: 18px;
    letter-spacing: 0;
  }

  .site-header.is-nav-open .section-nav {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
  }

  .site-header.is-nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.is-nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-header.is-nav-open .nav-toggle span {
    background: #121212;
  }

  .hero {
    min-height: 100svh;
    padding-top: 96px;
  }

  .hero__inner {
    min-height: calc(100svh - 96px);
    padding: 0 20px 96px;
  }

  .hero__title {
    text-align: center;
    letter-spacing: -0.05em;
  }

  .loading-screen__title {
    font-size: clamp(40px, 11vw, 64px);
  }

  .hero__scroll {
    right: 10px;
    bottom: 0;
  }

  .section--dark,
  .service,
  .company {
    padding-top: 72px;
    padding-bottom: 84px;
  }

  .service {
    padding-top: calc(72px + 30px);
  }

  .mission.section--dark,
  .company.section--dark {
    padding-top: calc(72px + 30px);
  }

  .mission__content {
    margin-top: 48px;
  }

  .mission__body {
    font-weight: 400;
    line-height: 1.8;
  }

  .service__info h2 {
    margin-top: 18px;
  }

  .button-link {
    width: 100%;
  }

  .company__table th,
  .company__table td {
    display: block;
    width: 100%;
    padding: 12px 0;
  }

  .company__table tr {
    display: block;
    padding: 10px 0;
  }

  .company__table th {
    padding-bottom: 2px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 0 28px;
  }

  .site-footer__meta {
    justify-content: flex-start;
    gap: 10px 14px;
  }
}
