/* ------------------------------
 よくあるご質問 */
#add_customizer_7_wrapper {
  width: 100%;

  --faq-blue: #2196f3; /* セクションの青 */
  --faq-blue-dark: #0b6da0; /* バッジの濃い青 */
  --white: #fff;
}
#add_customizer_7_wrapper > .background {
  width: 100%;
  background-color: #2196f3;
  margin-top: -12px;
}
#add_customizer_7_wrapper > .content.container {
  width: 90%;
  margin: auto;
  padding-top: 2em;
}
#add_customizer_7_wrapper .content {
  min-height: auto !important;
}
@media screen and (max-width: 767px) {
  #add_customizer_7_wrapper > .content.container {
    padding-top: 4em;
  }
}

/* セクションタイトル　＊top.cssに共通で定義しているが、ここだけ背景色に合わせて色変更 */
#add_customizer_7_wrapper .content .title > .section_title.color::before {
  background-color: #fff;
}
#add_customizer_7_wrapper .content .title > .section_title.color .first {
  color: #fff;
}

/* faq全体 */
#add_customizer_7_wrapper .content .faq-wrap {
  background: var(--faq-blue);
  padding: 48px 16px 72px;
  color: var(--white);
}

#add_customizer_7_wrapper .content .faq-wrap > .faq-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* 4→2→1列のレスポンシブグリッド */
#add_customizer_7_wrapper .content .faq-wrap > .faq-inner > .faq-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  #add_customizer_7_wrapper .content .faq-wrap > .faq-inner > .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  #add_customizer_7_wrapper .content .faq-wrap > .faq-inner > .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* カード */
#add_customizer_7_wrapper
  .content
  .faq-wrap
  > .faq-inner
  > .faq-grid
  > .faq-card {
  position: relative;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  padding: 28px 24px 32px;
  text-align: center;
  min-height: 114px;
  height: 100%;
  align-content: center;
  box-sizing: border-box;
}

/* 下のノッチ（白いダイヤ＋青いダイヤ） */
#add_customizer_7_wrapper
  .content
  .faq-wrap
  > .faq-inner
  > .faq-grid
  > .faq-card::before,
#add_customizer_7_wrapper
  .content
  .faq-wrap
  > .faq-inner
  > .faq-grid
  > .faq-card::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  bottom: -10px; /* 白ダイヤの下端が枠から少し出る */
}

#add_customizer_7_wrapper
  .content
  .faq-wrap
  > .faq-inner
  > .faq-grid
  > .faq-card::before {
  width: 18px;
  height: 18px;
  background: var(--white); /* 外側の白い縁 */
}
#add_customizer_7_wrapper
  .content
  .faq-wrap
  > .faq-inner
  > .faq-grid
  > .faq-card::after {
  width: 16px;
  height: 16px;
  background: var(--faq-blue);
  bottom: -7px; /* 上に重ねて白縁を見せる */
}

/* “？”のバッジ */
#add_customizer_7_wrapper
  .content
  .faq-wrap
  > .faq-inner
  > .faq-grid
  > .faq-card
  .q-badge {
  position: absolute;
  top: -14px;
  left: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--faq-blue-dark);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* テキスト */
#add_customizer_7_wrapper
  .content
  .faq-wrap
  > .faq-inner
  > .faq-grid
  > .faq-card
  .faq-text {
  margin: 0;
  line-height: 1.7;
  color: #fff;
  font-size: 1.5rem;
}

/* もっと見るのリンク（ラッパー） */
#add_customizer_7_wrapper .content .faq-wrap .faq-cta {
  font-size: 14px;
  text-align: center;
  margin: 8em auto -8em;
}

/* a をボタン風に（横並び・中央揃え） */
#add_customizer_7_wrapper .content .faq-wrap .faq-cta > .faq-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px; /* 文字と矢印の間隔 */
  padding: 1em 4em;
  border: 1px solid #0090d4;
  border-radius: 4px;
  background: #fff;
  color: #0090d4;
  text-decoration: none;
  font-size: 1em;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* ホバー/フォーカス時の色反転 */
#add_customizer_7_wrapper .content .faq-wrap .faq-cta > .faq-btn:hover,
#add_customizer_7_wrapper .content .faq-wrap .faq-cta > .faq-btn:focus-visible {
  background: #0090d4;
  color: #fff;
}

/* テキスト側は幅決め不要（自然に伸縮） */
#add_customizer_7_wrapper .content .faq-wrap .faq-cta > .faq-btn .text {
  white-space: nowrap; /* 1行にしたい */
}

/* 矢印（SVG想定） */
#add_customizer_7_wrapper .content .faq-wrap .faq-cta > .faq-btn .arrow-wrap {
  display: inline-flex; /* transformが効く&中央揃え */
  align-items: center;
  height: 1em;
  transform-origin: left center; /* 左基点で伸ばす */
  transform: scale(1, 1);
  transition: transform 0.4s ease !important;
}

/* ホバーで矢印が横に伸びる */
#add_customizer_7_wrapper
  .content
  .faq-wrap
  .faq-cta
  > .faq-btn:hover
  .arrow-wrap {
  transform: scale(1.4, 1);
}

/* 矢印SVGのサイズ＆色継承 */
#add_customizer_7_wrapper
  .content
  .faq-wrap
  .faq-cta
  > .faq-btn
  .arrow-wrap
  svg {
  height: 1em;
  width: auto;
  vertical-align: middle;
}
#add_customizer_7_wrapper
  .content
  .faq-wrap
  .faq-cta
  > .faq-btn
  .arrow-wrap
  svg
  > polyline {
  stroke: currentColor; /* テキスト色と同期 */
}
#add_customizer_7_wrapper
  .content
  .faq-wrap
  .faq-cta
  > .faq-btn:hover
  .arrow-wrap
  svg
  > polyline {
  stroke-width: 2px;
}
