body.splash-active {
  overflow: hidden;
}

body[data-page="home"] main {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: clamp(32px, 4vh, 48px);
  padding-bottom: clamp(32px, 4dvh, 48px);
}

.splash-screen {
  --splash-logo-x: 29px;
  --splash-logo-y: 32px;
  --splash-logo-size: 32px;
  position: fixed;
  z-index: 100;
  inset: 0;
  overflow: hidden;
  pointer-events: auto;
  will-change: clip-path;
}

.splash-background {
  position: absolute;
  inset: 0;
  background-color: #000;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  will-change: opacity;
}

.splash-brand {
  position: absolute;
  top: 50%;
  left: 50%;
  color: #fff;
  font: 900 clamp(64px, 5.3vw, 102px) / 0.82 Arial, Helvetica, sans-serif;
  letter-spacing: -0.055em;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  will-change: transform, opacity;
}

.splash-screen.is-leaving {
  pointer-events: none;
  animation: splash-screen-exit 900ms linear forwards;
}

.splash-screen.is-leaving .splash-brand {
  animation: splash-brand-exit 900ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes splash-brand-exit {
  0% {
    top: 50%;
    left: 50%;
    opacity: 1;
    font-size: clamp(64px, 5.3vw, 102px);
    letter-spacing: -0.055em;
    transform: translate(-50%, -50%);
  }

  76%,
  88% {
    top: var(--splash-logo-y);
    left: var(--splash-logo-x);
    opacity: 1;
    font-size: var(--splash-logo-size);
    letter-spacing: -0.5px;
    transform: translate(0, -50%);
  }

  100% {
    top: var(--splash-logo-y);
    left: var(--splash-logo-x);
    opacity: 0;
    font-size: var(--splash-logo-size);
    letter-spacing: -0.5px;
    transform: translate(0, -50%);
  }
}

@keyframes splash-screen-exit {
  0%,
  25% {
    clip-path: inset(0 0 0 0);
  }

  76%,
  88% {
    clip-path: inset(0 0 calc(100% - 64px) 0);
  }

  100% {
    clip-path: inset(0 0 100% 0);
  }
}

.showcase {
  display: grid;
  grid-template-columns: 315px minmax(0, 1fr);
  column-gap: 62px;
  max-width: 1597px;
  margin: clamp(64px, 10.2vh, 110px) auto 0;
  margin: clamp(64px, 10.2dvh, 110px) auto 0;
}

.intro-panel {
  padding-top: clamp(88px, 13.7vh, 148px);
  padding-top: clamp(88px, 13.7dvh, 148px);
}

.anniversary {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 78px;
  font-family: "Times New Roman", Times, serif;
}

.anniversary strong {
  color: var(--red);
  font-size: 103px;
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -6px;
}

.anniversary span {
  padding-top: 9px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  white-space: nowrap;
}

.slogan {
  margin: 13px 0 0;
  font: 700 31px/1.15 "Times New Roman", Times, serif;
  white-space: nowrap;
}

.slogan em {
  color: var(--red);
  font-style: normal;
}

.vitality-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1px;
}

.vitality {
  flex: 0 0 auto;
  padding-right: 1px;
  font: 700 31px/1.15 "Times New Roman", Times, serif;
  font-size: 28px;
}

.summary {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 0 0 20px;
  padding-left: 0;
  font-size: 14px;
  line-height: 1.45;
}

.summary::before {
  flex: 0 0 auto;
  width: 3px;
  height: 23px;
  margin-left: -14px;
  margin-right: 11px;
  background: var(--red);
  content: "";
}

.locations {
  margin: clamp(40px, 5.9vh, 64px) 0 0;
  margin: clamp(40px, 5.9dvh, 64px) 0 0;
  padding: 0;
  list-style: none;
  color: #999;
  font-size: 14px;
}

.locations li + li {
  margin-top: clamp(14px, 1.85vh, 20px);
  margin-top: clamp(14px, 1.85dvh, 20px);
}

.more-arrow {
  position: relative;
  display: block;
  width: 67px;
  height: 14px;
  margin-top: clamp(30px, 4.7vh, 51px);
  margin-top: clamp(30px, 4.7dvh, 51px);
}

.more-arrow span {
  position: absolute;
  right: 0;
  bottom: 0;
  display: block;
  width: 67px;
  height: 0;
  border-top: 2.5px solid #c31317;
}

.more-arrow span::after {
  position: absolute;
  top: -2.5px;
  right: 0;
  width: 18px;
  height: 0;
  border-top: 2.5px solid #c31317;
  content: "";
  transform: rotate(45deg);
  transform-origin: right center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 380px));
  gap: clamp(36px, 5.4vh, 58px) 40px;
  gap: clamp(36px, 5.4dvh, 58px) 40px;
}

.project-card {
  min-width: 0;
  height: clamp(270px, 32.6vh, 352px);
  height: clamp(270px, 32.6dvh, 352px);
  overflow: hidden;
  border: 1px solid #f1f1f1;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.project-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.project-card a {
  display: block;
  height: 100%;
}

.project-image {
  display: block;
  width: 100%;
  height: clamp(174px, 24.1vh, 260px);
  height: clamp(174px, 24.1dvh, 260px);
  object-fit: cover;
  object-position: center;
  transition: filter 220ms ease;
}

.project-card:hover .project-image {
  filter: saturate(1.05) brightness(1.02);
}

.project-card p {
  margin: 0;
  padding: clamp(12px, 1.5vh, 16px) 20px;
  padding: clamp(12px, 1.5dvh, 16px) 20px;
  color: #3c3c3c;
  font-size: 14px;
  line-height: 1.6;
  white-space: nowrap;
}

@media (max-width: 1700px) {
  .showcase {
      width: calc(100% - (2 * var(--page-padding)));
      grid-template-columns: minmax(270px, 315px) minmax(0, 1fr);
      column-gap: clamp(32px, 3.2vw, 55px);
    }

  .project-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      column-gap: clamp(22px, 2vw, 40px);
    }

  .project-card {
      min-height: 0;
    }

  .project-card p {
      white-space: normal;
    }
}

@media (max-width: 1199px) {
  .showcase {
      display: block;
      width: auto;
      margin: clamp(52px, 6.5vh, 70px) 60px 0;
      margin: clamp(52px, 6.5dvh, 70px) 60px 0;
    }

  .intro-panel {
      display: grid;
      grid-template-columns: 315px 1fr auto;
      align-items: end;
      gap: 55px;
      padding: 0 0 clamp(36px, 5.4vh, 58px);
      padding: 0 0 clamp(36px, 5.4dvh, 58px);
    }

  .locations {
      margin: 0;
    }

  .more-arrow {
      margin: 0 0 4px;
    }

  .project-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
  body[data-page="home"] main {
      padding-bottom: 0;
    }

  .splash-screen {
      --splash-logo-x: 20px;
      --splash-logo-size: 28px;
    }

  .showcase {
      margin: 112px 20px 70px;
    }

  .intro-panel {
      display: block;
      width: 315px;
      max-width: 100%;
      margin-right: auto;
      margin-left: auto;
      padding-bottom: 55px;
    }

  .intro-copy {
      width: 100%;
    }

  .anniversary strong {
      font-size: 86px;
    }

  .anniversary span {
      font-size: 16px;
    }

  .slogan {
      font-size: clamp(26px, 8.2vw, 31px);
    }

  .vitality {
      font-size: clamp(26px, 8.2vw, 31px);
    }

  .locations {
      display: none;
    }

  .more-arrow {
      margin-top: 34px;
    }

  .project-grid {
      grid-template-columns: 1fr;
      gap: 26px;
    }

  .project-card {
      height: auto;
      min-height: 0;
      border-radius: 13px;
    }

  .project-image {
      height: auto;
      aspect-ratio: 380 / 260;
    }

  .project-card p {
      min-height: 70px;
      padding: 15px 18px 18px;
    }
}

@media (max-width: 390px) {
  .anniversary {
      gap: 8px;
    }

  .anniversary strong {
      font-size: 78px;
    }

  .anniversary span {
      font-size: 14px;
    }
}
