.what-page {
  min-width: 320px;
  overflow: hidden;
  background: var(--color-white);
}

.what-main {
  background: var(--color-white);
}

.what-hero {
  display: flex;
  height: var(--intro-screen-height);
  align-items: center;
  justify-content: center;
  padding: var(--site-header-height) 260px 0;
  text-align: center;
}

.what-hero h1 {
  width: min(920px, 100%);
  margin: 0;
  font-size: clamp(40px, 3.35vw, 48px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.what-areas {
  padding: 0 120px;
}

.what-area {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(360px, 422px);
  width: min(100%, calc(922px + clamp(112px, 9vw, 160px)));
  margin: 0 auto;
  scroll-margin-top: var(--site-header-height);
  align-items: stretch;
  justify-content: center;
  column-gap: clamp(112px, 9vw, 160px);
  padding: 96px 0;
  border-top: 1px solid var(--color-yellow);
}

.what-area:nth-of-type(even) {
  grid-template-columns: minmax(360px, 422px) minmax(0, 500px);
}

.what-areas:not(.has-more) .what-area.is-visible-last {
  min-height: 0;
  padding-bottom: 96px;
  border-bottom: 0;
}

.what-area__content {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
}

.what-area:nth-of-type(even) .what-area__content {
  grid-column: 2;
}

.what-area__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(50px, 3.6vw, 52px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.what-area__text {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 40px;
  -webkit-font-smoothing: auto;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.what-area__text p,
.what-area__text ul,
.what-area__text ol {
  margin: 0;
}

.what-area__text a {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.what-area__media {
  display: block;
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 7 / 10;
  margin-top: 0;
  overflow: hidden;
  background: var(--color-neutral);
}

.what-area:nth-of-type(even) .what-area__media {
  grid-column: 1;
}

.what-area__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.what-more {
  display: flex;
  height: 339px;
  align-items: center;
  justify-content: center;
}

.what-more[hidden],
.what-area[hidden] {
  display: none;
}

.what-more__button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-black);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.what-more__icon {
  --what-more-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M33.704 12.803C34.0946 13.1935 34.0946 13.8265 33.704 14.217L20.7187 27.2024C20.499 27.4219 20.2027 27.5179 19.9159 27.4905C19.6866 27.4727 19.4625 27.3758 19.287 27.2004L6.30267 14.217C5.91221 13.8266 5.91234 13.1935 6.30267 12.803C6.69319 12.4124 7.3262 12.4124 7.71673 12.803L20.0038 25.0891L32.29 12.803C32.6805 12.4124 33.3135 12.4124 33.704 12.803Z' fill='black'/%3E%3C/svg%3E");
  display: block;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  background: currentColor;
  -webkit-mask: var(--what-more-arrow) center / contain no-repeat;
  mask: var(--what-more-arrow) center / contain no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
  .what-more__icon {
    transition: transform 200ms ease;
  }

  .what-more__button:hover .what-more__icon,
  .what-more__button:focus-visible .what-more__icon {
    transform: translateY(4px);
  }
}

@media (max-width: 1100px) {
  .what-hero {
    padding-right: 120px;
    padding-left: 120px;
  }

  .what-areas {
    padding: 0 64px;
  }

  .what-area {
    grid-template-columns: minmax(0, 420px) minmax(300px, 360px);
    width: min(100%, calc(780px + clamp(64px, 7vw, 88px)));
    column-gap: clamp(64px, 7vw, 88px);
  }

  .what-area:nth-of-type(even) {
    grid-template-columns: minmax(300px, 360px) minmax(0, 420px);
  }

  .what-area__title {
    font-size: 50px;
  }

  .what-area__text {
    margin-top: 40px;
    font-size: 22px;
  }
}

@media (max-width: 767px) {
  .what-hero {
    align-items: center;
    height: 430px;
    padding: var(--site-header-height) 40px 0;
  }

  .what-hero h1 {
    width: 100%;
    max-width: 310px;
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.32px;
  }

  .what-areas {
    padding: 0 24px;
  }

  .what-area {
    display: flex;
    width: 100%;
    min-height: 0;
    scroll-margin-top: 80px;
    flex-direction: column;
    gap: 32px;
    padding: 64px 0;
    border-top: 1px solid var(--color-yellow);
  }

  .what-areas:not(.has-more) .what-area.is-visible-last {
    padding-bottom: 96px;
  }

  .what-area.has-media .what-area__content {
    order: 2;
  }

  .what-area__content {
    width: 100%;
  }

  .what-area__title {
    font-size: 36px;
    line-height: 1.1;
  }

  .what-area__text {
    gap: 24px;
    margin-top: 32px;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }

  .what-area__media {
    order: 1;
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 7 / 10;
    margin-top: 0;
  }

  .what-more {
    height: auto;
  }

  .what-more__button {
    gap: 4px;
    height: auto;
    padding: 64px 0;
    font-size: 14px;
    letter-spacing: 0.09em;
  }

  .what-more__icon {
    width: 24px;
    height: 24px;
  }
}
