/* ========================================
   Q&A アコーディオン共通スタイル
   guide-payment（お支払いについて）と guide-plan（料金プラン）で共通利用。
   クラス名は各ページの接頭辞（gpay- / gplan-）を維持したまま
   グループセレクタでまとめている。
   開閉の動作は NollInteractions.initAccordion（共通JS）が担当。
   ======================================== */

.gpay-header-sp,
.gplan-header-sp {
  width: 100%;
  background-color: var(--color-gray-50);
  padding: var(--spacing-page-header-y-sp) 24px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-page-header-gap);
  align-items: flex-start;
  box-sizing: border-box;
}

.gpay-header__title-sp,
.gplan-header__title-sp {
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: var(--font-size-page-title);
  line-height: 1.4;
  letter-spacing: 2.2px;
  color: var(--color-base-black);
  margin: 0;
}

.gpay-section-sp,
.gplan-section-sp {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
}

.gpay-section-heading-sp,
.gplan-section-heading-sp {
  display: flex;
  gap: 16px;
  align-items: stretch;
  width: 100%;
}

.gpay-section-heading__text-sp,
.gplan-section-heading__text-sp {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  flex: 1;
}

.gpay-section-heading__subtitle-sp,
.gplan-section-heading__subtitle-sp {
  display: block;
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: 0.72px;
  color: var(--color-base-black);
}

.gpay-section-heading__title-sp,
.gplan-section-heading__title-sp {
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.5;
  letter-spacing: 1.12px;
  color: var(--color-base-black);
  margin: 0;
}

.gpay-qa-list-sp,
.gplan-qa-list-sp {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.gpay-qa-item-sp,
.gplan-qa-item-sp {
  border-bottom: 1px solid var(--color-base-line);
}

.gpay-qa__trigger-sp,
.gplan-qa__trigger-sp {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.gpay-qa__q-label-sp,
.gplan-qa__q-label-sp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--color-base-safety-red);
  color: var(--color-base-white);
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.gpay-qa__question-text-sp,
.gplan-qa__question-text-sp {
  flex: 1;
  font-family: var(--font-family-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-base-black);
}

.gpay-qa__trigger-icon-sp,
.gplan-qa__trigger-icon-sp {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
}

.gpay-qa__trigger-icon-sp::before,
.gpay-qa__trigger-icon-sp::after,
.gplan-qa__trigger-icon-sp::before,
.gplan-qa__trigger-icon-sp::after {
  content: '';
  position: absolute;
  background-color: var(--color-base-black);
  border-radius: 2px;
}

.gpay-qa__trigger-icon-sp::before,
.gplan-qa__trigger-icon-sp::before {
  width: 12px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.gpay-qa__trigger-icon-sp::after,
.gplan-qa__trigger-icon-sp::after {
  width: 2px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s, opacity 0.3s;
}

.gpay-qa__trigger-sp[aria-expanded="true"] .gpay-qa__trigger-icon-sp::after,
.gplan-qa__trigger-sp[aria-expanded="true"] .gplan-qa__trigger-icon-sp::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.gpay-qa__answer-sp,
.gplan-qa__answer-sp {
  padding-bottom: 20px;
}

.gpay-qa__answer-inner-sp,
.gplan-qa__answer-inner-sp {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background-color: var(--color-gray-50);
  border-radius: 8px;
}

.gpay-qa__a-label-sp,
.gplan-qa__a-label-sp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--color-base-black);
  color: var(--color-base-white);
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.gpay-qa__answer-text-sp,
.gplan-qa__answer-text-sp {
  font-family: var(--font-family-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-base-black);
  margin: 0;
  flex: 1;
}

.gpay-header-pc,
.gplan-header-pc {
  width: 100%;
  background-color: var(--color-gray-50);
  padding: 80px 0;
  box-sizing: border-box;
}

.gpay-header__inner-pc,
.gplan-header__inner-pc {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.gpay-header__title-pc,
.gplan-header__title-pc {
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: var(--font-size-page-title);
  line-height: 1.4;
  letter-spacing: 2.2px;
  color: var(--color-base-black);
  margin: 0;
}

.gpay-section-pc,
.gplan-section-pc {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 1040px;
  box-sizing: border-box;
}

.gpay-section-heading__text-pc,
.gplan-section-heading__text-pc {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.gpay-section-heading__subtitle-pc,
.gplan-section-heading__subtitle-pc {
  display: block;
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: 0.96px;
  color: var(--color-base-black);
}

.gpay-section-heading__title-pc,
.gplan-section-heading__title-pc {
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.5;
  letter-spacing: 1.12px;
  color: var(--color-base-black);
  margin: 0;
}

.gpay-qa-list-pc,
.gplan-qa-list-pc {
  display: flex;
  flex-direction: column;
  width: 624px;
  flex-shrink: 0;
}

.gpay-qa-item-pc,
.gplan-qa-item-pc {
  border-bottom: 1px solid var(--color-base-line);
}

.gpay-qa__trigger-pc,
.gplan-qa__trigger-pc {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.gpay-qa__q-label-pc,
.gplan-qa__q-label-pc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-base-safety-red);
  color: var(--color-base-white);
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.gpay-qa__question-text-pc,
.gplan-qa__question-text-pc {
  flex: 1;
  font-family: var(--font-family-body);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-base-black);
}

.gpay-qa__trigger-icon-pc,
.gplan-qa__trigger-icon-pc {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  position: relative;
}

.gpay-qa__trigger-icon-pc::before,
.gpay-qa__trigger-icon-pc::after,
.gplan-qa__trigger-icon-pc::before,
.gplan-qa__trigger-icon-pc::after {
  content: '';
  position: absolute;
  background-color: var(--color-base-black);
  border-radius: 2px;
}

.gpay-qa__trigger-icon-pc::before,
.gplan-qa__trigger-icon-pc::before {
  width: 14px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.gpay-qa__trigger-icon-pc::after,
.gplan-qa__trigger-icon-pc::after {
  width: 2px;
  height: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s, opacity 0.3s;
}

.gpay-qa__trigger-pc[aria-expanded="true"] .gpay-qa__trigger-icon-pc::after,
.gplan-qa__trigger-pc[aria-expanded="true"] .gplan-qa__trigger-icon-pc::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.gpay-qa__answer-pc,
.gplan-qa__answer-pc {
  padding-bottom: 24px;
}

.gpay-qa__answer-inner-pc,
.gplan-qa__answer-inner-pc {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background-color: var(--color-gray-50);
  border-radius: 12px;
}

.gpay-qa__a-label-pc,
.gplan-qa__a-label-pc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-base-black);
  color: var(--color-base-white);
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.gpay-qa__answer-text-pc,
.gplan-qa__answer-text-pc {
  font-family: var(--font-family-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-base-black);
  margin: 0;
  flex: 1;
}

.gpay-qa__answer-text-pc p,
.gpay-qa__answer-text-sp p,
.gplan-qa__answer-text-pc p,
.gplan-qa__answer-text-sp p {
  margin: 0 0 10px;
}

.gpay-qa__answer-text-pc p:last-child,
.gpay-qa__answer-text-sp p:last-child,
.gplan-qa__answer-text-pc p:last-child,
.gplan-qa__answer-text-sp p:last-child {
  margin-bottom: 0;
}

.gpay-qa__answer-text-pc ul,
.gpay-qa__answer-text-sp ul,
.gplan-qa__answer-text-pc ul,
.gplan-qa__answer-text-sp ul {
  margin: 8px 0 0;
  padding-left: 1.5em;
}

.gpay-qa__answer-text-pc li,
.gpay-qa__answer-text-sp li,
.gplan-qa__answer-text-pc li,
.gplan-qa__answer-text-sp li {
  margin-bottom: 4px;
}

.gpay-qa__answer-text-pc li:last-child,
.gpay-qa__answer-text-sp li:last-child,
.gplan-qa__answer-text-pc li:last-child,
.gplan-qa__answer-text-sp li:last-child {
  margin-bottom: 0;
}
