:root {
  --black: #111;
  --ink: #1f1f1f;
  --dark: #282828;
  --line: rgba(255, 255, 255, 0.35);
  --muted: #777;
  --light-line: #cfcfcf;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0;
}

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

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

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 38px;
  color: var(--white);
}

.logo {
  display: inline-flex;
  align-items: center;
  width: 200px;
}

.logo img {
  width: 100%;
  height: auto;
}

.contact-pill {
  min-width: 120px;
  padding: 13px 24px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(98, 98, 98, 0.88);
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1;
  text-align: center;
  color: #fff;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.contact-pill:hover {
  background: #fff;
  color: #111;
}

.hero {
  min-height: 900px;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.12) 54%, rgba(0, 0, 0, 0.2)),
    url("assets/main.jpg") center center / cover no-repeat;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 64px 72px 0;
}

.hero-title {
  margin: 0 0 34px;
  font-family: "Lato", sans-serif;
  font-size: clamp(56px, 7vw, 98px);
  font-weight: 300;
  line-height: 1.28;
}

.hero-title span {
  display: block;
  opacity: 0;
  transform: translateX(-80px);
  filter: blur(8px);
  animation: title-flow-in 1.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-title span:nth-child(2) {
  animation-delay: 0.18s;
}

@keyframes title-flow-in {
  0% {
    opacity: 0;
    transform: translateX(-80px);
    filter: blur(8px);
  }

  65% {
    opacity: 1;
    filter: blur(0);
  }

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

@media (prefers-reduced-motion: reduce) {
  .hero-title span {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
}

.hero p {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 2.05;
  letter-spacing: 0.24em;
}

.intro {
  min-height: 735px;
  display: grid;
  place-items: center;
  padding: 110px 24px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(235, 235, 235, 0.18), rgba(235, 235, 235, 0.18)),
    url("assets/shadow_bg.png") center / cover fixed no-repeat;
}

.intro__bubbles {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 1;
  mix-blend-mode: screen;
}

.intro__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #333;
  font-size: 20px;
  font-weight: 400;
  line-height: 2.35;
  letter-spacing: 0.24em;
}

.intro__inner p {
  margin: 0 0 23px;
}

.services {
  padding: 112px 80px 100px;
  color: var(--white);
  background: var(--dark);
}

.section-head {
  position: relative;
  width: min(100%, 1280px);
  margin: 0 auto 58px;
  padding-bottom: 1px;
}

.section-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--light-line);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 2.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-head--dark {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.section-head--dark::after {
  background: var(--line);
}

.section-head.is-line-visible::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .section-head::after {
    transform: scaleX(1);
    transition: none;
  }

  .company-list div {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .clients {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .contact::before,
  .contact::after {
    animation: none;
  }
}

.section-head h2 {
  margin: 0 0 14px;
  font-family: "Lato", sans-serif;
  font-size: clamp(54px, 7vw, 78px);
  font-weight: 300;
  line-height: 1;
  color: #555;
}

.section-head--dark h2 {
  color: #ddd;
}

.section-head p {
  margin: 0 0 20px;
  color: #d9d9d9;
  font-size: 16px;
}

.service-grid {
  width: min(100%, 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  grid-column: span 2;
}

.service-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.service-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.service-card {
  container-type: inline-size;
  min-height: 360px;
  padding: 42px 38px 34px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  transition: opacity 1.25s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.js-enabled .services:not(.is-services-visible) .service-card {
  opacity: 0;
  transform: translateY(92px);
}

.services.is-services-visible .service-card {
  opacity: 1;
  transform: translateY(0);
}

.service-card:nth-child(1) {
  transition-delay: 0s;
}

.service-card:nth-child(2) {
  transition-delay: 0.14s;
}

.service-card:nth-child(3) {
  transition-delay: 0.28s;
}

.service-card:nth-child(4) {
  transition-delay: 0.42s;
}

.service-card:nth-child(5) {
  transition-delay: 0.56s;
}

.service-card__icon {
  width: 62px;
  height: 62px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 28px;
}

.service-card h3 {
  margin: 0;
  font-family: "Lato", sans-serif;
  font-size: 32px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
}

.service-card__lead {
  margin: 9px 0 30px;
  padding-bottom: 20px;
  position: relative;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
}

.service-card__lead::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 58px;
  height: 1px;
  background: rgba(255, 255, 255, 0.65);
}

.service-card p:last-child {
  margin: 0;
  color: #d7d7d7;
  font-size: 16px;
  font-weight: 400;
  line-height: 2.05;
}

.company {
  position: relative;
  overflow: hidden;
  padding: 570px 80px 185px;
  background: #fff;
}

.ghost-text {
  position: absolute;
  top: 195px;
  left: -18vw;
  width: 150vw;
  color: rgba(0, 0, 0, 0.045);
  font-family: "Lato", sans-serif;
  font-size: clamp(88px, 13vw, 205px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  transform: rotate(-4deg);
  transform-origin: left center;
}

.ghost-text__track {
  display: flex;
  gap: clamp(48px, 6vw, 96px);
  width: max-content;
  animation: ghost-diagonal-scroll 34s linear infinite;
  will-change: transform;
}

.ghost-text__track span {
  display: block;
}

@keyframes ghost-diagonal-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(calc(-50% - clamp(24px, 3vw, 48px)), 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ghost-text__track {
    animation: none;
  }

  .service-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.company .section-head {
  margin-bottom: 90px;
}

.company-profile {
  width: min(100%, 1280px);
  margin: 0 auto 95px;
  display: grid;
  grid-template-columns: 520px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.company-photo {
  overflow: hidden;
}

.company-photo__image {
  width: 100%;
  height: 640px;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(1);
  transform: translate3d(0, 0, 0) scale(1.2);
  will-change: transform;
}

.company-list {
  margin: 0;
}

.company-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 45px;
  align-items: center;
  min-height: 70px;
  border-bottom: 1px solid #dedede;
  color: #333;
  font-size: 16px;
  transition: opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.js-enabled .company-list:not(.is-company-list-visible) div {
  opacity: 0;
  transform: translateY(72px);
}

.company-list.is-company-list-visible div {
  opacity: 1;
  transform: translateY(0);
}

.company-list div:nth-child(1) {
  transition-delay: 0s;
}

.company-list div:nth-child(2) {
  transition-delay: 0.1s;
}

.company-list div:nth-child(3) {
  transition-delay: 0.2s;
}

.company-list div:nth-child(4) {
  transition-delay: 0.3s;
}

.company-list div:nth-child(5) {
  transition-delay: 0.4s;
}

.company-list div:nth-child(6) {
  transition-delay: 0.5s;
}

.company-list div:nth-child(7) {
  transition-delay: 0.6s;
}

.company-list dt {
  width: fit-content;
  min-width: 76px;
  padding: 6px 0.85em;
  border: 1px solid #aaa;
  border-radius: 999px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}

.company-list dd {
  margin: 0;
  font-weight: 400;
}

.clients {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 64px 64px 66px;
  border-radius: 20px;
  background: #f5f5f5;
  box-shadow: 0 22px 34px rgba(0, 0, 0, 0.16);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.js-enabled .clients:not(.is-clients-visible) {
  opacity: 0;
  transform: translateY(84px);
}

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

.clients h3 {
  margin: 0 0 31px;
  padding-bottom: 26px;
  border-bottom: 2px solid #a7a7a7;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

.clients ul {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 31px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clients li {
  color: #202020;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  white-space: nowrap;
}

.contact {
  position: relative;
  min-height: 535px;
  padding: 76px 80px 35px;
  color: #fff;
  background: #000;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("assets/sunshine.png") center top / cover no-repeat;
  opacity: 0.8;
}

.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.1) 54%, rgba(0, 0, 0, 0.42)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.2));
}

@keyframes contact-light-sweep {
  0% {
    transform: translate3d(-8%, -3%, 0) scale(1.08);
    opacity: 0.72;
  }

  100% {
    transform: translate3d(7%, 1%, 0) scale(1.14);
    opacity: 0.95;
  }
}

@keyframes contact-light-drift {
  0% {
    transform: translate3d(-6%, -1%, 0) rotate(0.5deg);
    opacity: 0.62;
  }

  100% {
    transform: translate3d(8%, 2%, 0) rotate(2deg);
    opacity: 0.88;
  }
}

.contact__inner,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(100%, 1280px);
  margin: 0 auto;
}

.contact h2 {
  margin: 0 0 26px;
  font-family: "Lato", sans-serif;
  font-size: clamp(56px, 8vw, 86px);
  font-weight: 300;
  line-height: 1;
}

.contact p {
  margin: 0 0 25px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 2;
  font-weight: 400;
}

.mail-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-size: 22px;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.mail-link:hover {
  transform: translateX(14px);
}

.mail-link::after {
  content: "";
  position: relative;
  z-index: 1;
  width: 42px;
  height: 26px;
  background: url("data:image/svg+xml,%3Csvg width='78' height='44' viewBox='0 0 78 44' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 22H74M54 2L74 22L54 42' stroke='white' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
}

.page-top {
  position: absolute;
  z-index: 2;
  top: 82px;
  right: max(80px, calc((100vw - 1280px) / 2));
  display: inline-flex;
  align-items: center;
  gap: 22px;
  font-family: "Lato", sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #fff;
  --page-top-button-width: 54px;
  --page-top-button-height: 80px;
  --page-top-arrow-width: 24px;
  --page-top-arrow-height: 36px;
}

.page-top::before,
.page-top::after {
  content: "";
  display: block;
  flex: 0 0 auto;
}

.page-top::before {
  position: absolute;
  top: 50%;
  right: calc((var(--page-top-button-width) - var(--page-top-arrow-width)) / 2);
  width: var(--page-top-arrow-width);
  height: var(--page-top-arrow-height);
  z-index: 1;
  background-color: #fff;
  mask: url("data:image/svg+xml,%3Csvg width='28' height='42' viewBox='0 0 28 42' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 41V2M2 14L14 2L26 14' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg width='28' height='42' viewBox='0 0 28 42' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 41V2M2 14L14 2L26 14' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: translateY(-50%);
  transition: background-color 0.35s ease, transform 0.35s ease;
}

.page-top:hover::before {
  background-color: #111;
  transform: translateY(calc(-50% - 9px));
}

.page-top::after {
  width: var(--page-top-button-width);
  height: var(--page-top-button-height);
  border: 2px solid #fff;
  border-radius: 999px;
  background-color: transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.page-top:hover::after {
  border-color: #111;
  background-color: #fff;
}

.site-footer {
  position: absolute;
  left: max(80px, calc((100vw - 1280px) / 2));
  right: max(80px, calc((100vw - 1280px) / 2));
  bottom: 36px;
  width: auto;
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding-top: 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
}

.footer-logo {
  width: 200px;
  height: auto;
}

.site-footer small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

@media (max-width: 960px) {
  .site-header {
    padding: 20px 24px;
  }

  .hero {
    min-height: 720px;
  }

  .hero__content {
    padding: 48px 32px 0;
  }

  .intro {
    min-height: 520px;
  }

  .services,
  .company,
  .contact {
    padding-left: 28px;
    padding-right: 28px;
  }

  .section-head--dark {
    display: block;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: auto;
  }

  .company {
    padding-top: 370px;
  }

  .ghost-text {
    top: 170px;
  }

  .company-profile {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .company-photo img {
    height: 430px;
  }

  .clients {
    padding: 42px 32px;
  }

  .clients h3 {
    margin-bottom: 26px;
    padding-bottom: 20px;
  }

  .clients li {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .logo {
    width: 160px;
  }

  .contact-pill {
    min-width: 100px;
    padding: 11px 20px 12px;
  }

  .hero {
    min-height: 610px;
    background-size: auto, auto 100%;
    background-position: center center, 58% center;
  }

  .hero-title {
    font-size: 52px;
  }

  .hero p {
    font-size: 18px;
    letter-spacing: 0.12em;
  }

  .intro {
    padding: 80px 22px;
  }

  .intro__inner {
    font-size: 18px;
    letter-spacing: 0.12em;
  }

  .services {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .section-head {
    margin-bottom: 38px;
  }

  .section-head h2 {
    font-size: 52px;
  }

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

  .service-card {
    min-height: 0;
    padding: 32px 28px;
  }

  .company {
    padding-top: 340px;
    padding-bottom: 100px;
  }

  .ghost-text {
    top: 118px;
  }

  .company .section-head {
    margin-bottom: 42px;
  }

  .company-list div {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 0;
  }

  .company-list dt {
    width: fit-content;
    min-width: 76px;
  }

  .company-photo img {
    height: 310px;
  }

  .clients h3 {
    font-size: 22px;
  }

  .clients li {
    font-size: 16px;
  }

  .contact {
    min-height: 500px;
    padding-top: 62px;
  }

  .page-top {
    top: 64px;
    right: 28px;
  }

  .page-top::after {
    width: var(--page-top-button-width);
    height: var(--page-top-button-height);
  }

  .page-top {
    --page-top-button-width: 46px;
    --page-top-button-height: 68px;
    --page-top-arrow-width: 20px;
    --page-top-arrow-height: 30px;
  }

  .mail-link {
    font-size: 18px;
  }

  .site-footer {
    left: 28px;
    right: 28px;
  }
}

@media (max-width: 500px) {
  .contact {
    min-height: 620px;
  }

  .page-top {
    top: auto;
    right: 28px;
    bottom: 150px;
  }
}
