.hero {
  position: relative;
  display: flex;
  min-height: 720px;
  align-items: center;
  padding: 120px clamp(22px, 5vw, 72px) 80px;
  overflow: hidden;
  background: #111;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(255, 253, 249, .9) 0 28%, rgba(255, 253, 249, .46) 45%, rgba(255, 253, 249, 0) 72%);
  pointer-events: none;
}

.hero::after,
.section-wave::before,
.works-section::before {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  height: 120px;
  border-top: 1px solid rgba(185, 137, 95, .22);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  bottom: -46px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 520px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--sand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .32em;
}

.hero h1 {
  margin: 0;
  color: var(--navy);
  font-family: "Noto Serif JP", serif;
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 600;
  line-height: 1.55;
}

.hero-copy p:not(.eyebrow) {
  margin: 22px 0;
  color: var(--ink);
  font-weight: 700;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 720px;
  overflow: hidden;
}

.hero-photo img,
.hero-photo video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 45%;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0), var(--paper) 70%);
}

.service-section,
.works-section {
  position: relative;
  padding: 82px clamp(18px, 4vw, 64px);
}

.service-grid {
  display: grid;
  max-width: 1280px;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 42px auto 0;
}

.service-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 34px rgba(19, 45, 76, .12);
}

.service-card .sheet-image {
  height: 230px;
}

.service-body {
  padding: 0 28px 30px;
}

.service-body span {
  display: inline-block;
  margin-top: -30px;
  padding: 16px 22px 8px 0;
  border-radius: 0 28px 0 0;
  color: var(--navy);
  background: #fff;
  font-family: "Noto Serif JP", serif;
  font-size: 30px;
  font-style: italic;
  font-weight: 700;
}

.service-body h3 {
  margin: 4px 0 12px;
  color: var(--navy);
  font-family: "Noto Serif JP", serif;
  font-size: 24px;
}

.service-body p {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

.service-body a {
  display: inline-block;
  margin-top: 16px;
  color: var(--navy);
  font-size: 28px;
}

@media (max-width: 760px) {
  .hero {
    min-height: 760px;
    padding: 124px 28px 76px;
  }

  .hero-photo {
    z-index: 1;
    width: 100%;
    height: 100%;
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: .98;
  }

  .hero-copy {
    max-width: 330px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    max-width: none;
    gap: 34px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 760px;
    padding: 120px 26px 78px;
  }

  .hero-photo {
    width: 100%;
    height: 100%;
  }

  .hero-copy {
    max-width: 330px;
  }

  .eyebrow {
    margin-bottom: 20px;
    font-size: 10px;
    letter-spacing: .18em;
  }

  .hero h1 {
    font-size: 30px;
    line-height: 1.62;
  }

  .hero-copy p:not(.eyebrow) {
    margin: 24px 0 32px;
    font-size: 14px;
    line-height: 2;
  }

  .hero .primary-button {
    width: 100%;
    min-height: 58px;
    padding: 13px 20px;
    font-size: 14px;
  }

  .service-section,
  .works-section {
    padding-inline: 22px;
  }

  .service-section {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .service-card .sheet-image {
    height: 250px;
  }

  .service-body {
    padding: 0 26px 34px;
  }

  .service-body h3 {
    font-size: 25px;
  }

  .service-body p {
    font-size: 14px;
    line-height: 2;
  }
}

@media (max-width: 760px) {
  .home-page {
    overflow-x: hidden;
    background: #fffdf9;
  }

  .hero {
    min-height: 92vh;
    flex-direction: column;
    justify-content: center;
    padding: 112px 22px 74px;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(255, 253, 249, .94) 0 42%, rgba(255, 253, 249, .62) 68%, rgba(255, 253, 249, .12) 100%);
  }

  .hero-photo {
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    opacity: .95;
  }

  .hero-copy {
    max-width: 330px;
  }

  .eyebrow {
    margin-bottom: 20px;
    font-size: 10px;
    letter-spacing: .18em;
  }

  .hero h1 {
    font-size: 31px;
    line-height: 1.68;
  }

  .hero-copy p:not(.eyebrow) {
    margin: 24px 0 34px;
    font-size: 14px;
    line-height: 2;
  }

  .hero .primary-button {
    width: 100%;
    max-width: 330px;
    min-height: 60px;
    padding: 13px 18px;
    font-size: 14px;
  }

  .service-section,
  .works-section {
    padding: 84px 22px;
  }

  .service-section {
    padding-top: 36px;
    padding-bottom: 62px;
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-width: none;
    margin-top: 30px;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .service-card {
    min-height: 0;
  }

  .service-card .sheet-image {
    height: 104px;
  }

  .service-body {
    padding: 0 8px 10px;
  }

  .service-body span {
    margin-top: -16px;
    padding: 8px 12px 2px 0;
    font-size: 18px;
  }

  .service-body h3 {
    margin: 2px 0 6px;
    font-size: 13px;
    line-height: 1.35;
  }

  .service-body p {
    font-size: 9.5px;
    line-height: 1.45;
  }

  .service-body a {
    margin-top: 4px;
    font-size: 16px;
  }
}

@media (max-width: 760px) {
  .home-page main {
    padding-top: 110px;
  }

  .hero {
    min-height: 0;
    aspect-ratio: 4 / 3;
    align-items: flex-start;
    justify-content: center;
    margin-top: 0;
    padding: 12px;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(255, 253, 249, .86) 0 30%, rgba(255, 253, 249, .42) 52%, rgba(255, 253, 249, 0) 76%),
      linear-gradient(180deg, rgba(255, 253, 249, .62) 0, rgba(255, 253, 249, 0) 38%, rgba(255, 253, 249, .36) 100%);
    opacity: 0;
    transition: opacity .7s ease;
  }

  .hero-copy {
    width: min(72vw, 300px);
    max-width: 300px;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity .7s ease .08s, transform .7s ease .08s;
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: 9px;
    letter-spacing: .12em;
  }

  .hero h1 {
    font-size: 27px;
    line-height: 1.58;
  }

  .hero-copy p:not(.eyebrow) {
    margin: 18px 0 22px;
    font-size: 13px;
    line-height: 1.8;
  }

  .hero .primary-button {
    width: auto;
    max-width: 100%;
    min-height: 52px;
    padding: 12px 18px;
    font-size: 13px;
  }

  .hero-photo {
    inset: 0;
    height: 100%;
  }

  .hero-photo video {
    width: 102%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    background: #111;
  }

  .hero.is-video-done::before,
  .hero.is-video-fallback::before,
  .hero.is-video-done .hero-copy,
  .hero.is-video-fallback .hero-copy {
    opacity: 1;
  }

  .hero.is-video-done .hero-copy,
  .hero.is-video-fallback .hero-copy {
    transform: translateX(0);
  }

  .home-page .works-section {
    padding-top: 14px;
  }

  .home-page .works-list {
    margin-top: 16px;
  }
}

@media (max-width: 400px) {
  .service-section {
    padding: 32px 14px 54px;
  }

  .service-grid {
    gap: 6px;
    margin-top: 26px;
  }

  .service-body {
    padding: 10px 6px 8px;
  }

  .service-body h3 {
    font-size: 12px;
  }

  .service-body p {
    font-size: 9px;
  }
}
