
.qa-hero {
  position: relative;
  overflow: hidden;
}

.qa-hero-photo {
  position: absolute;
  inset: 0;
}

.qa-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0) 60%);
  pointer-events: none;
}

.qa-hero-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.75rem;
  z-index: 1;
  text-align: center;
  font-family: 'Shippori Mincho', serif;
  font-size: var(--fs-5xl);
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.4em;

  text-indent: 0.4em;
}

.qa-intro {
  padding: 2rem 1rem 4rem;
}

.qa-intro-lead {
  width: fit-content;
  margin: 0 auto;
  font-family: 'Shippori Mincho', serif;
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--primary);
  line-height: 1.9;
  letter-spacing: 0.28em;
}

.qa-cats {
  padding: 0 1rem 7.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.qa-cats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem;
}

.qa-cats-row a {
  font-family: 'Shippori Mincho', serif;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.12em;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--primary);
  transition: opacity 0.2s;
}

.qa-cats-row a:hover {
  opacity: 0.7;
}

.qa-cat {
  padding: 2.5rem 0;

  scroll-margin-top: 5rem;
}

.qa-cat-white {
  background: var(--white);
}

.qa-cat-title {
  font-family: 'Shippori Mincho', serif;
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--primary);
  text-align: center;
  line-height: 1.6;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  margin-bottom: 1.5rem;
}

.qa-cat-inner {
  width: 80%;
  margin: 0 auto;
}

.qa-photos {
  position: relative;
  height: 19.75rem;
  margin: 2.5rem 0 5rem;
}

.qa-photo-rect,
.qa-photo-circle {
  position: absolute;
}

.qa-photo-rect {
  left: 0;
  top: 0;
  width: 49%;
  height: 12rem;
  border-radius: 0 var(--radius-photo) var(--radius-photo) 0;
}

.qa-photo-circle {
  bottom: 0;
  right: 14%;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
}

.qa-answer-row {
  display: grid;
  grid-template-columns: auto 1fr;

  word-break: auto-phrase;
}

.qa-answer-label {
  white-space: nowrap;
}

.qa-answer-gap {
  margin-top: 2em;
}

@media (min-width: 901px) and (max-width: 1199px) and (min-height: 501px) {

  .qa-photo-circle {
    right: 8%;
    width: 10rem;
    height: 10rem;
  }

}

@media (max-width: 900px), (max-width: 1199px) and (max-height: 500px) and (orientation: landscape) {
  .qa-answer-gap {
    line-height: 1.8;
  }
}

@media (max-width: 900px), (max-width: 1199px) and (max-height: 500px) and (orientation: landscape) {

  .qa-hero-title {
    bottom: 1.25rem;
    font-size: var(--fs-4xl);
    letter-spacing: 0.12em;
    text-indent: 0.12em;
  }

  .qa-intro {
    padding: 3rem 1rem 4rem;
  }

  .qa-intro-lead {
    line-height: 1.75;
    letter-spacing: 0.2em;
  }

  .qa-cats {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    column-gap: 3.5rem;
    row-gap: 1.625rem;
  }

  .qa-cats-row {
    display: contents;
  }

  .qa-cats-row a {
    font-size: var(--fs-md);
    letter-spacing: 0.1em;
  }

  .qa-cat-title {
    font-size: var(--fs-xl);
    letter-spacing: 0.04em;
    text-indent: 0.04em;
    margin-bottom: 2.25rem;
  }

  .qa-cat-inner {
    width: auto;
    margin: 0 1.5625rem;
  }

  .qa-photos {

    height: 13.5rem;
    margin: 4.375rem 0 6.5rem;
  }

  .qa-photo-rect {
    width: 50.5%;
    height: 8.25rem;
  }

  .qa-photo-circle {

    right: 8%;
    width: min(9rem, 36.6vw);
    height: min(9rem, 36.6vw);
  }

}

@media (max-width: 900px), (max-width: 1199px) and (max-height: 500px) and (orientation: landscape) {
  .qa-hero-photo {
    transform: scale(1.4);
    transform-origin: 53% 48%;
  }
}
