@charset "UTF-8";

/* =====================================================
   Q＆A（アコーディオンの開閉はフェーズ2。1問目は開いた見た目）
   ===================================================== */

.faq-sec {
  padding: 88px 56px 112px;
  background: var(--color-sub);
  --dots-opacity: 0.4;
}

.faq-sec__sample {
  margin-bottom: 16px;
  text-align: center;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 980px;
  max-width: 100%;
  margin: 0 auto;
}

.faq__item {
  overflow: hidden;
  border: 2px dashed var(--color-line);
  border-radius: 20px;
  background: #ffffff;
}

.faq__q {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 24px 32px;
  border: 0;
  background: transparent;
  text-align: left;
}

.faq__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #ffffff;
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.faq__mark--q {
  background: var(--color-accent);
}

.faq__mark--a {
  background: var(--color-green);
}

.faq__q-text {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* ＋（閉）／－（開） */
.faq__toggle {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
}

.faq__toggle::before,
.faq__toggle::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  border-radius: 1px;
  background: var(--color-text);
  transition: rotate 0.3s var(--ease), opacity 0.3s var(--ease);
}

.faq__toggle::after {
  rotate: 90deg;
}

.faq__item.is-open .faq__toggle::after {
  opacity: 0;
  rotate: 180deg;
}

.faq__a {
  height: 0;
  overflow: hidden;
}

.faq__item.is-open .faq__a {
  height: auto;
}

.faq__a-in {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 32px;
}

.faq__a-in::before {
  content: "";
  position: absolute;
  left: 2.5%;
  right: 2.5%;
  top: 0;
  border-top: 1px dashed var(--color-line);
}

.faq__a-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-top: 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.faq__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border: 1px solid var(--color-text);
  border-radius: 56px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.faq__more::after {
  content: "";
  width: 6px;
  height: 10px;
  background: currentColor;
  -webkit-mask: url("../images/common/icon_arrow.svg") center / contain no-repeat;
  mask: url("../images/common/icon_arrow.svg") center / contain no-repeat;
}

a.faq__more:hover {
  background: var(--color-text);
  color: #ffffff;
}

@media (max-width: 1140px) {
  .faq-sec {
    padding: 64px 40px 88px;
  }

  .faq__q {
    gap: 16px;
    padding: 20px 32px 20px 24px;
  }

  .faq__mark {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }

  .faq__q-text {
    font-size: 15px;
    line-height: 1.6;
  }

  .faq__toggle {
    width: 15px;
    height: 15px;
  }

  .faq__a-in {
    padding: 20px 24px;
  }

  .faq__a-body {
    padding-top: 8px;
    font-size: 14px;
  }
}

@media (max-width: 540px) {
  .faq-sec {
    padding: 48px 16px 64px;
    --dots-opacity: 0.5;
  }

  .faq__item {
    border-width: 1px;
  }

  .faq__q {
    padding: 20px 28px 20px 20px;
  }

  .faq__a-in {
    gap: 16px;
    padding: 20px 28px 20px 20px;
  }
}
