@charset "UTF-8";

/* ==========================================================
   hero
   ========================================================== */
.hero__inner {
  grid-template-columns: 1fr clamp(30rem, 45%, 58.7rem);
  padding-bottom: 7.6rem;
}
.hero__img {
  justify-self: end;
  margin: 2.1rem -8.2rem 0 0; /* デザインは右へ82pxはみ出す */
}

/* ==========================================================
   よくあるご質問
   ========================================================== */
.faq { padding-bottom: 10rem; }
.faq__list { border-top: 1px solid #dbdce2; }
.faq__item { border-bottom: 1px solid #dbdce2; }
.faq__q {
  display: flex;
  align-items: flex-start;
  padding: 3.5rem 0 4rem;
  transition: color 0.3s;
}
.faq__q:hover .faq__text { color: #006; }
.faq__q::after {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 26px; /* 質問文1行と同じ高さ */
  margin-left: auto;
  background:
    linear-gradient(#006, #006) center / 14px 1px no-repeat,
    linear-gradient(#006, #006) center / 1px 14px no-repeat;
  transition: background-size 0.3s, transform 0.3s;
}
.faq__item[open] .faq__q { padding-bottom: 2.4rem; }
.faq__item[open] .faq__q::after {
  background-size: 14px 1px, 1px 0;
  transform: rotate(180deg);
}
.faq__mark {
  flex-shrink: 0;
  width: 5.6rem;
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1; /* デザインは Q・A が本文の1行目より少し上 */
  color: #006;
}
.faq__text {
  flex: 1;
  padding-right: 4rem;
  font-weight: 500;
  line-height: 1.8;
  color: #000533;
  transition: color 0.3s;
}
.faq__q .faq__text { line-height: 1.6; }
.faq__a {
  display: flex;
  align-items: flex-start;
  padding-bottom: 2.9rem;
  animation: faqOpen 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-0.8rem); }
  to { opacity: 1; transform: none; }
}
.faq__a .faq__text {
  padding-right: 0;
  text-wrap: pretty; /* 最終行に1〜2文字だけ残さない */
  font-weight: 400;
  color: #151515;
}
.faq__note {
  margin-top: 5rem;
  font-size: 14px;
  line-height: 1.82;
  opacity: 0.7;
}

/* ==========================================================
   SP
   ========================================================== */
@media (max-width: 1023px) {
  .hero__inner { padding-bottom: 4.7rem; }
  .hero__img {
    max-width: 33.3rem;
    margin: -0.5rem auto 0;
  }
  .hero__desc { margin-top: 4rem; }
  .faq { padding-bottom: 0; }
  .faq__q { padding: 2.5rem 0 2.6rem; }
  .faq__q::after { height: 2.5rem; }
  .faq__mark {
    width: 3.8rem;
    font-size: 1.7rem;
    line-height: 1.5;
  }
  .faq__text {
    padding-right: 2rem;
    font-size: 1.5rem;
    line-height: 1.7;
  }
  .faq__a { padding-bottom: 2.5rem; }
  .faq__note { margin-top: 3rem; }
}
