/* TOP FAQ — Figma PC 201:1131/201:1132, SP 229:5315/229:5316. */
.sect8,
.sect8 *,
.sect8 *::before,
.sect8 *::after {
  box-sizing: border-box;
}

.sect8 {
  position: relative;
  width: 100%;
  height: 790px;
  margin: 0;
  overflow: hidden;
  background: #f7e730;
  color: #333;
}

.sect8-pc,
.sect8-sp {
  position: absolute;
  overflow: hidden;
  background: transparent;
}

.sect8-pc {
  display: block;
  left: 50%;
  top: 100px;
  width: 1166px;
  height: 590px;
  transform: translateX(-50%);
  transform-origin: 0 0;
}

.sect8-sp {
  display: none;
}

.sect8-asset,
.sect8-text,
.sect8-card,
.sect8-card__toggle,
.sect8-card__toggle-line {
  display: block;
  max-width: none;
}

.sect8-text {
  margin: 0;
  padding: 0;
  overflow: visible;
  white-space: pre-line;
  font-synthesis: none;
}

.sect8-asset {
  margin: 0;
  padding: 0;
}

/* Header — PC */
.sect8-pc__header {
  position: absolute;
  left: 0;
  top: 0;
  width: 284px;
  height: 121.3376px;
}

.sect8-pc__title {
  position: absolute;
  left: 2.5838px;
  top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 278.8323px;
  height: 65.3376px;
}

.sect8-pc__title .sect8-asset {
  position: relative;
  flex: none;
  width: 70px;
  height: 51px;
}

.sect8-pc__heading {
  position: relative;
  width: 200.8323px;
  height: 65.3376px;
  overflow: visible;
  color: #333;
  font: 500 96px/138.720001px "Jost", sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
  /* Figma leadingTrim: CAP_HEIGHT — align cap top to the box top. */
  text-box: trim-both cap alphabetic;
}

@supports not (text-box: trim-both cap alphabetic) {
  /* Measured ink offset of the untrimmed line box (96px/138.72 Jost).
     Shift only the ink span so the heading box keeps its Figma geometry. */
  .sect8-pc__heading .sect8-heading-ink {
    position: relative;
    top: -36px;
  }
}

.sect8-pc__lead {
  position: absolute;
  left: 0;
  top: 89.3376px;
  width: 284px;
  height: 32px;
  overflow: visible;
  color: #333;
  font: 700 20px/32px "Noto Sans JP", sans-serif;
  font-feature-settings: "palt" 1;
  letter-spacing: 4px;
  white-space: nowrap;
}

/* Accordion shared structure. */
.sect8-card {
  position: relative;
  flex: none;
  margin: 0;
  border: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
  color: #333;
  transition: height 360ms cubic-bezier(.22, 1, .36, 1);
}

.sect8-card__summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.sect8-card__summary::-webkit-details-marker,
.sect8-card__summary::marker {
  display: none;
  content: "";
}

.sect8-card__summary:focus-visible {
  outline: 2px solid #333;
  outline-offset: -2px;
  border-radius: 4px;
}

.sect8-card__question-wrap,
.sect8-card__answer-row {
  display: flex;
  flex: none;
}

.sect8-card__qbox,
.sect8-card__abox {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
  border-radius: 4px;
  font-family: "Jost", sans-serif;
  font-weight: 500;
  line-height: 1;
}

.sect8-card__qbox {
  background: #333;
  color: #fff;
}

.sect8-card__abox {
  background: #f7e730;
  color: #333;
}

.sect8-card__qbox > span,
.sect8-card__abox > span {
  position: static;
  display: block;
  overflow: visible;
  color: inherit;
  white-space: nowrap;
}

.sect8-card__question,
.sect8-card__answer-text {
  display: block;
  overflow: visible;
  color: #333;
  font-family: "Noto Sans JP", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-feature-settings: "palt" 1;
}

.sect8-card__toggle {
  position: relative;
  flex: none;
  margin-left: auto;
  color: #454344;
  transition: height 280ms cubic-bezier(.22, 1, .36, 1);
}

.sect8-card__toggle-line {
  position: absolute;
  display: block;
  background: #454344;
  transform-origin: center;
  transition: opacity 220ms ease, transform 300ms cubic-bezier(.22, 1, .36, 1);
}

.sect8-card__toggle-line--h {
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  transform: translateY(-1px);
}

.sect8-card__toggle-line--v {
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-1px);
}

.sect8-card.is-open .sect8-card__toggle {
  height: 0;
}

.sect8-card.is-open .sect8-card__toggle-line--h {
  top: 0;
  transform: none;
}

.sect8-card.is-open .sect8-card__toggle-line--v {
  opacity: 0;
  transform: translateX(-1px) scaleY(0);
}

.sect8-card__panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  opacity: 0;
  transition:
    grid-template-rows 360ms cubic-bezier(.22, 1, .36, 1),
    opacity 180ms ease,
    visibility 0s linear 360ms;
}

.sect8-card__panel-inner {
  min-height: 0;
  overflow: hidden;
}

.sect8-card.is-open .sect8-card__panel {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  transition:
    grid-template-rows 360ms cubic-bezier(.22, 1, .36, 1),
    opacity 220ms ease 70ms,
    visibility 0s linear 0s;
}

.sect8-card__answer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid #989898;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
}

/* Accordion — PC */
.sect8-pc__body {
  position: absolute;
  left: 344px;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 822px;
  height: 590px;
}

.sect8-pc .sect8-card {
  width: 822px;
  height: 80px;
  padding: 24px;
}

.sect8-pc .sect8-card.is-open {
  height: 206px;
}

.sect8-pc .sect8-card__summary {
  height: 32px;
}

.sect8-pc .sect8-card__question-wrap {
  align-items: flex-start;
  gap: 40px;
  width: 749px;
  height: 32px;
  min-width: 0;
}

.sect8-pc .sect8-card__qbox {
  width: 32px;
  height: 29px;
  margin-top: 1.5px;
  font-size: 24px;
}

.sect8-pc .sect8-card__abox {
  width: 29px;
  height: 29px;
  font-size: 24px;
}

.sect8-pc .sect8-card__qbox > span,
.sect8-pc .sect8-card__abox > span {
  font: 500 24px/17px "Jost", sans-serif;
  font-feature-settings: "palt" 1;
  letter-spacing: 3.6px;
}

/* Figma実測box(Q 20x17 / A 17x17)。trailing trackingはbox外へはみ出す。 */
.sect8-pc .sect8-card__qbox > span {
  width: 20px;
}

.sect8-pc .sect8-card__abox > span {
  width: 17px;
}

/* Single-glyph spans: fix width to the Figma glyph box so the trailing
   letter-spacing advance does not widen the measured box. */
.sect8-pc .sect8-card__qbox > span {
  width: 20px;
}

.sect8-pc .sect8-card__abox > span {
  width: 17px;
}

.sect8-pc .sect8-card__question {
  height: 32px;
  font-size: 20px;
  line-height: 32px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.sect8-pc .sect8-card__toggle {
  width: 25px;
  height: 25px;
}

.sect8-pc .sect8-card__panel,
.sect8-pc .sect8-card__answer {
  width: 774px;
}

.sect8-pc .sect8-card__answer {
  height: 102px;
  margin-top: 24px;
}

.sect8-pc .sect8-card__answer-row {
  position: absolute;
  left: 0;
  top: 23px;
  align-items: flex-start;
  gap: 40px;
  width: 774px;
  height: 78px;
}

.sect8-pc .sect8-card__answer-text {
  height: 78px;
  font-size: 16px;
  line-height: 25.6px;
  letter-spacing: .64px;
  white-space: pre-line;
}

/* Desktop keeps the 1366px Figma canvas proportions at every PC width. */
@media (min-width: 769px) {
  .sect8 {
    height: var(--sect8-pc-height, 444.14px);
  }

  .sect8-pc {
    left: var(--sect8-pc-left, 56.22px);
    top: var(--sect8-pc-top, 56.22px);
    transform: scale(var(--sect-hero-scale, .5622254758));
  }

  .sect8-sp {
    display: none;
  }
}

/* Header and accordion — SP */
@media (max-width: 768px) {
  .sect8 {
    height: var(--sect8-sp-height, 824px);
  }

  .sect8-pc {
    display: none;
  }

  .sect8-sp {
    display: block;
    left: 50%;
    top: var(--sect8-sp-top, 80px);
    width: 343px;
    height: 744px;
    margin-left: -171.5px;
    transform: scale(var(--sect8-sp-scale, 1));
    transform-origin: center top;
  }

  .sect8-sp__header {
    position: absolute;
    left: 0;
    top: 0;
    width: 228px;
    height: 78px;
  }

  .sect8-sp__title {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 130.1986px;
    height: 28px;
  }

  .sect8-sp__title .sect8-asset {
    position: relative;
    flex: none;
    width: 38px;
    height: 28px;
  }

  .sect8-sp__heading {
    position: relative;
    width: 84.1986px;
    height: 27.3053px;
    overflow: visible;
    color: #333;
    font: 500 40px/57.800003px "Jost", sans-serif;
    letter-spacing: 0;
    white-space: nowrap;
    /* Figma leadingTrim: CAP_HEIGHT — align cap top to the box top. */
    text-box: trim-both cap alphabetic;
  }

  @supports not (text-box: trim-both cap alphabetic) {
    /* Measured ink offset of the untrimmed line box (40px/57.8 Jost).
       Shift only the ink span so the heading box keeps its Figma geometry. */
    .sect8-sp__heading .sect8-heading-ink {
      position: relative;
      top: -15px;
    }
  }

  .sect8-sp__lead {
    position: absolute;
    left: 0;
    top: 52px;
    width: 228px;
    height: 26px;
    overflow: visible;
    color: #333;
    font: 700 16px/25.6px "Noto Sans JP", sans-serif;
    font-feature-settings: "palt" 1;
    letter-spacing: 3.2px;
    white-space: nowrap;
  }

  .sect8-sp__body {
    position: absolute;
    left: 0;
    top: 118px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 343px;
    height: 626px;
  }

  .sect8-sp .sect8-card {
    width: 343px;
    height: 84px;
    padding: 16px 15px;
  }

  .sect8-sp .sect8-card.is-open {
    height: 226px;
  }

  .sect8-sp .sect8-card__summary {
    height: 52px;
  }

  .sect8-sp .sect8-card__question-wrap {
    align-items: center;
    gap: 16px;
    width: 293px;
    height: 52px;
  }

  .sect8-sp .sect8-card__qbox {
    width: 29px;
    height: 26px;
    font-size: 20px;
  }

  .sect8-sp .sect8-card__abox {
    width: 26px;
    height: 26px;
    font-size: 20px;
  }

  .sect8-sp .sect8-card__qbox > span,
  .sect8-sp .sect8-card__abox > span {
    font: 500 20px/14px "Jost", sans-serif;
    font-feature-settings: "palt" 1;
    letter-spacing: 3px;
  }

  .sect8-sp .sect8-card__qbox > span {
    width: 17px;
  }

  .sect8-sp .sect8-card__abox > span {
    width: 14px;
  }

  .sect8-sp .sect8-card__question {
    height: 52px;
    font-size: 16px;
    line-height: 25.6px;
    letter-spacing: .8px;
    white-space: pre-line;
  }

  .sect8-sp .sect8-card__toggle {
    width: 20px;
    height: 20px;
  }

  .sect8-sp .sect8-card__panel,
  .sect8-sp .sect8-card__answer {
    width: 313px;
  }

  .sect8-sp .sect8-card__answer {
    height: 126px;
    margin-top: 16px;
  }

  .sect8-sp .sect8-card__answer-row {
    position: absolute;
    left: 0;
    top: 15px;
    align-items: flex-start;
    gap: 16px;
    width: 313px;
    height: 110px;
  }

  .sect8-sp .sect8-card__answer-text {
    height: 110px;
    font-size: 14px;
    line-height: 22.4px;
    letter-spacing: .56px;
    white-space: pre-line;
  }

  /* Content-driven SP accordion for Android Japanese font metrics. */
  .sect8 { height: calc(872px * var(--sect8-sp-scale, 1)); }
  .sect8-sp { height: 792px; }
  .sect8-sp__title { height: 40px; align-items: flex-start; }
  .sect8-sp__title .sect8-asset { top: 6px; }
  .sect8-sp__heading { top: 10px; height: 40px; align-items: flex-start; line-height: 40px; text-box: normal; }
  .sect8-sp__heading .sect8-heading-ink { top: 0; }
  .sect8-sp__lead { width: 343px; height: auto; line-height: 1.6; letter-spacing: 2px; }
  .sect8-sp__body { height: auto; }
  .sect8-sp .sect8-card,
  .sect8-sp .sect8-card.is-open { height: auto; min-height: 84px; }
  .sect8-sp .sect8-card { transition-property: background-color; }
  .sect8-sp .sect8-card__summary,
  .sect8-sp .sect8-card__question-wrap { height: auto; min-height: 52px; }
  .sect8-sp .sect8-card__question-wrap { flex: 1 1 auto; width: auto; min-width: 0; }
  .sect8-sp .sect8-card__question,
  .sect8-sp .sect8-card__answer-text {
    width: auto !important;
    height: auto;
    min-width: 0;
    white-space: normal;
    word-break: auto-phrase;
    overflow-wrap: normal;
    text-wrap: pretty;
    font-family: "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  }
  .sect8-sp .sect8-card__question { flex: 1 1 auto; font-size: 16px; line-height: 1.6; letter-spacing: .5px; }
  .sect8-sp .sect8-card__toggle { margin-left: 12px; }
  .sect8-sp .sect8-card__panel,
  .sect8-sp .sect8-card__answer { width: 100%; }
  .sect8-sp .sect8-card__answer { height: auto; margin-top: 12px; overflow: visible; }
  .sect8-sp .sect8-card__answer-row {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    min-height: 26px;
    gap: 12px;
    padding-top: 12px;
  }
  .sect8-sp .sect8-card__answer-text { flex: 1 1 auto; font-size: 14px; line-height: 1.65; letter-spacing: .28px; }
}

@media (prefers-reduced-motion: reduce) {
  .sect8-card,
  .sect8-card__panel,
  .sect8-card__toggle,
  .sect8-card__toggle-line {
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}
