.cooperation-page {
  background: #050505;
}

.cooperation-page::before {
  display: none;
}

.cooperation-main {
  overflow: hidden;
}

.cooperation-hero {
  position: relative;
  min-height: 720px;
  padding-top: 176px;
  overflow: hidden;
  isolation: isolate;
}

.cooperation-hero::after {
  position: absolute;
  right: calc((var(--shell) - 100vw) / 2);
  bottom: 0;
  left: calc((var(--shell) - 100vw) / 2);
  z-index: 0;
  height: 4px;
  background: var(--red);
  content: "";
  pointer-events: none;
}

.cooperation-hero::before {
  position: absolute;
  inset: 0 calc((var(--shell) - 100vw) / 2);
  z-index: 1;
  background:
    linear-gradient(90deg, #050505 0 28%, rgba(5, 5, 5, 0.9) 40%, rgba(5, 5, 5, 0.1) 66%, transparent 82%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.2), transparent 68%, #050505 100%);
  content: "";
  pointer-events: none;
}

.cooperation-hero-art {
  position: absolute;
  inset: 0 calc((var(--shell) - 100vw) / 2);
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.cooperation-hero-art::after {
  display: none;
}

.cooperation-hero-art-frame {
  position: absolute;
  top: auto;
  bottom: -1px;
  left: 50%;
  width: auto;
  max-width: none;
  height: 100%;
  aspect-ratio: 2752 / 1536;
  z-index: 1;
  transform:
    translate(
      calc(-50% + clamp(8px, calc((100vw - 1180px) * 0.072), 68px)),
      0
    )
    scale(1.002);
  transform-origin: center bottom;
}

.cooperation-hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cooperation-title-lockup {
  position: relative;
  z-index: 2;
}

.cooperation-title-lockup::after {
  display: none;
}

.cooperation-title-lockup h1 {
  margin: 0;
  color: var(--red);
  font-family: var(--display);
  font-size: clamp(64px, 7vw, 96px);
  font-weight: 900;
  letter-spacing: 0.025em;
  line-height: 0.92;
  white-space: nowrap;
}

.cooperation-title-lockup p {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin: 42px 0 0;
  font-size: clamp(36px, 4vw, 62px);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.cooperation-title-lockup em {
  color: var(--red);
  font-family: var(--script);
  font-size: 0.88em;
  font-weight: 400;
}

.cooperation-rule {
  position: relative;
  z-index: 2;
  width: min(48%, 680px);
  height: 2px;
  margin-top: 46px;
  overflow: hidden;
  background: rgba(239, 19, 13, 0.28);
}

.cooperation-rule span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 28%;
  background: var(--red);
  box-shadow: 0 0 28px rgba(239, 19, 13, 0.6);
  animation: cooperation-route 5.4s ease-in-out infinite alternate;
}

.cooperation-intro {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 54px 0 0;
}

.cooperation-intro-copy {
  max-width: 820px;
}

.cooperation-intro-copy p {
  margin: 0;
  color: #d4d0cb;
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.8;
  text-wrap: pretty;
}

.cooperation-intro-copy p + p {
  max-width: 690px;
  margin-top: 22px;
  color: #918c86;
  font-size: 16px;
  line-height: 1.8;
}

.cooperation-marquee {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 96px;
  align-items: center;
  overflow: hidden;
  border-block: 1px solid rgba(239, 19, 13, 0.24);
  background: var(--red);
  margin-top: -4px;
}

.cooperation-marquee-track {
  display: flex;
  width: max-content;
  height: 100%;
  align-items: center;
  animation: cooperation-marquee 68s linear infinite;
}

.cooperation-marquee-group {
  display: flex;
  min-width: max-content;
  height: 94px;
  align-items: center;
  gap: clamp(46px, 4.8vw, 82px);
  padding-right: clamp(46px, 4.8vw, 82px);
  flex: 0 0 auto;
}

.cooperation-marquee-pair {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.4vw, 22px);
  flex: 0 0 auto;
}

.cooperation-marquee b {
  color: #fff;
  font-size: clamp(18px, 1.55vw, 25px);
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.cooperation-marquee .cooperation-symbol {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  content: url("./assets/icons/process-step-06.svg");
  object-fit: contain;
}

.cooperation-marquee .cooperation-wordmark {
  width: 132px;
  flex: 0 0 auto;
}

.cooperation-services {
  padding-block: 148px 168px;
}

.cooperation-service-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
  align-items: end;
  gap: 96px;
}

.cooperation-service-heading h2 {
  max-width: 720px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(48px, 5.2vw, 78px);
  line-height: 1.02;
  text-wrap: balance;
}

.cooperation-service-heading p {
  margin: 0 0 8px;
  color: #bcb6af;
  font-size: 19px;
  line-height: 1.85;
  text-wrap: pretty;
}

.cooperation-pathway {
  display: grid;
  position: relative;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 96px;
  gap: clamp(24px, 4vw, 56px);
}

.cooperation-pathway::before {
  position: absolute;
  top: 8px;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.54);
  content: "";
}

.cooperation-pathway article {
  position: relative;
  padding-top: 48px;
}

.cooperation-pathway article::before {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 6px #050505;
  content: "";
  translate: -50% 0;
}

.cooperation-pathway-label {
  display: grid;
  min-height: 52px;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(17px, 1.35vw, 21px);
  letter-spacing: 0.04em;
}

.cooperation-pathway-card {
  display: flex;
  min-height: 390px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  margin-top: 20px;
  padding: clamp(34px, 3.4vw, 48px);
  border-radius: 14px;
  background: #f1f1ef;
  color: #0b0b0b;
  transition: translate 240ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 240ms ease;
}

.cooperation-pathway article:hover .cooperation-pathway-card {
  box-shadow: 0 7px 0 var(--red);
  translate: 0 -6px;
}

.cooperation-pathway-card small {
  color: var(--red);
  font-family: var(--display-light);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: center;
}

.cooperation-pathway-card h3 {
  margin: 32px 0 0;
  font-size: clamp(32px, 3vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-align: center;
  text-wrap: balance;
}

.cooperation-pathway-card p {
  max-width: 28ch;
  margin: 40px auto 0;
  color: #4a4a48;
  font-size: 16px;
  line-height: 1.75;
  text-align: center;
  text-wrap: pretty;
}

.cooperation-contact {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto;
  align-items: center;
  padding-block: 96px 112px;
  gap: clamp(72px, 12vw, 180px);
  border-top: 1px solid var(--red);
}

.cooperation-contact-copy {
  padding: 28px 34px 28px 0;
}

.cooperation-contact-copy h2 {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", var(--sans);
  font-size: clamp(48px, 5vw, 76px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1;
}

.cooperation-contact-copy p {
  max-width: 520px;
  margin: 28px 0 0;
  color: #aaa49e;
}

.cooperation-contact-qr {
  width: clamp(220px, 20vw, 300px);
  margin: 0;
}

.cooperation-contact-qr img {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  background: transparent;
  object-fit: contain;
}

.cooperation-contact-qr figcaption {
  margin-top: 12px;
  color: var(--orange);
  font-family: var(--display-light);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: center;
}

.cooperation-footer {
  align-items: center;
  padding-block: 28px 46px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cooperation-footer p {
  margin: 0;
  color: #77716b;
  font-size: 12px;
  text-align: left;
}

.cooperation-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(20px, 3vw, 44px);
}

.cooperation-footer nav a {
  min-height: 44px;
  align-content: center;
  color: #bdb7b1;
  font-size: 14px;
}

.cooperation-footer nav a:hover,
.cooperation-footer nav a:focus-visible {
  color: var(--orange);
}

@keyframes cooperation-route {
  from { transform: translateX(-100%); }
  to { transform: translateX(360%); }
}

@keyframes cooperation-marquee {
  to { transform: translateX(-50%); }
}

@media (max-width: 960px) {
  .cooperation-hero {
    min-height: 690px;
  }

  .cooperation-title-lockup h1 {
    font-size: clamp(58px, 10vw, 88px);
  }

  .cooperation-service-heading {
    grid-template-columns: 1fr;
  }

  .cooperation-hero-art {
    inset: 0 calc((var(--shell) - 100vw) / 2);
  }

  .cooperation-hero-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .cooperation-hero-art-frame {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    transform: translateX(-50%) scale(1.002);
  }

  .cooperation-pathway {
    gap: 20px;
  }

  .cooperation-pathway-card {
    min-height: 350px;
    padding: 30px 24px;
  }

  .cooperation-pathway-card h3 {
    font-size: clamp(28px, 4vw, 38px);
  }
}

@media (max-width: 600px) {
  .cooperation-hero {
    min-height: 810px;
    padding-top: 124px;
    overflow: visible;
  }

  .cooperation-hero::before {
    background:
      linear-gradient(180deg, #050505 0 36%, rgba(5, 5, 5, 0.88) 54%, rgba(5, 5, 5, 0.18) 82%, #050505 100%),
      linear-gradient(90deg, rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0.12));
  }

  .cooperation-hero-art {
    inset: auto auto 0 50%;
    width: 100vw;
    height: 250px;
    opacity: 0.82;
    transform: translateX(-50%);
  }

  .cooperation-hero-art img {
    object-fit: contain;
    object-position: center bottom;
  }

  .cooperation-hero-art-frame {
    left: 44%;
    width: calc(125% - 40px);
    height: 100%;
    aspect-ratio: auto;
    transform: translateX(-50%);
  }

  .cooperation-title-lockup h1 {
    font-size: clamp(36px, 10vw, 52px);
    letter-spacing: 0.015em;
  }

  .cooperation-title-lockup p {
    margin-top: 30px;
    font-size: 32px;
  }

  .cooperation-rule {
    width: 100%;
  }

  .cooperation-intro {
    margin-top: 32px;
  }

  .cooperation-intro-copy p {
    font-size: 17px;
  }

  .cooperation-intro-copy p + p {
    margin-top: 18px;
    font-size: 15px;
  }

  .cooperation-marquee {
    min-height: 82px;
  }

  .cooperation-marquee-group {
    height: 80px;
    gap: 28px;
    padding-right: 28px;
  }

  .cooperation-marquee .cooperation-symbol {
    width: 20px;
    height: 20px;
  }

  .cooperation-marquee .cooperation-wordmark {
    width: 112px;
  }

  .cooperation-services {
    padding-block: 96px;
  }

  .cooperation-service-heading {
    gap: 28px;
  }

  .cooperation-service-heading h2 {
    font-size: 46px;
  }

  .cooperation-pathway {
    grid-template-columns: 1fr;
    margin-top: 58px;
    gap: 28px;
  }

  .cooperation-pathway::before,
  .cooperation-pathway article::before {
    display: none;
  }

  .cooperation-pathway article {
    padding-top: 0;
  }

  .cooperation-pathway-card {
    min-height: 0;
    padding: 34px 30px 40px;
  }

  .cooperation-pathway-card p {
    margin-top: 28px;
  }

  .cooperation-contact {
    grid-template-columns: minmax(0, 1fr) minmax(112px, 34vw);
    padding-block: 58px 80px;
    gap: 24px;
  }

  .cooperation-contact-copy {
    padding-right: 0;
  }

  .cooperation-contact-copy h2 {
    font-size: clamp(38px, 11vw, 58px);
  }

  .cooperation-contact-qr {
    width: 100%;
  }

  .cooperation-contact-qr img {
    padding: 0;
  }

  .cooperation-contact-qr figcaption {
    font-size: 8px;
  }

  .cooperation-footer nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 2px 18px;
  }

  .cooperation-footer nav a {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cooperation-rule span,
  .cooperation-marquee-track {
    animation: none;
  }
}
