/* =======================================================
   faq.css（FAQ）
   - 既存見た目（背景/余白/枠/配色/アニメ）を維持しつつ
   - section-header / needle は common.css に寄せる
   - Q/A の高さズレと「左に寄りすぎ」を解消
======================================================= */

/* --- 共通アニメーション --- */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUpFAQ {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* =======================================================
   セクション（common の .section を使う前提）
======================================================= */
.faq-section{
  animation: fadeInUp 1.5s ease-in-out both;
}

/* タイトル周り：common の .section-header を基本に、FAQだけ微調整 */
.faq-section .section-title{
  padding-top: 0; /* commonの余白設計を活かす */
}

/* =======================================================
   カテゴリ背景（元: background-追加* の見た目を統合）
======================================================= */
.faq-category{
  background-color: rgba(248,220,221,0.5);
  width: 96%;
  margin: 40px auto;
  padding: 20px 0;
  box-sizing: border-box;
}

/* サブタイトル（元: subtitle*） */
.faq-subtitle{
  margin: 20px auto;
  font-size: 24px;
  text-align: center;
}
@media (max-width: 390px){
  .faq-subtitle{ font-size: 20px; }
}

/* コンテナ（元: container*） */
.faq-container{
  display: block;
  width: 100%;
  margin-bottom: 20px;
}

/* =======================================================
   QAカード（元: QA* / Q*-flex / A*-flex の見た目を再現）
======================================================= */
.faq-card{
  width: 96%;
  margin: 30px auto;
  border: 1pt solid #E36B71;
  opacity: 0;
  animation: fadeInUpFAQ 0.8s ease-out forwards;
  animation-delay: var(--delay, 0.2s);
  box-sizing: border-box;
}

/* =======================================================
   Q / A 行：Gridで2列固定（左を締める版）
======================================================= */

.faq-q,
.faq-a{
  display: grid;
  grid-template-columns: 30px 1fr;

  /* ★左は0にしてボーダーから締める */
  padding: 14px 22px 14px 0;
  box-sizing: border-box;

  /* ★2列の開始を揃える */
  align-items: start;
}

/* 行ごとの背景 */
.faq-q{ background-color: #E36B71; color: #fff; }
.faq-a{ background-color: #fff;    color: #000; }

/* FAQ内のpのデフォmarginを潰す */
.faq-q p,
.faq-a p{ margin: 0; }

/* 左のQ/A */
.faq-q-mark,
.faq-a-mark{
  display: flex;
  justify-content: center;
  align-items: flex-start;

  padding: 0;          /* ★余白は持たせない */
  line-height: 1;
  font-size: 16px;
  box-sizing: border-box;
  padding-top: 3px;
}

/* 右本文：ここでだけ左余白を作る（開始位置が常に同じになる） */
.faq-q-text,
.faq-a-text{
  padding-left: 12px;  /* ★旧 column-gap 相当 */
  font-size: 16px;
  line-height: 1.5;    /* ★Q/Aで統一してズレ防止 */
  box-sizing: border-box;
}

/* スマホ時だけさらに詰めたい場合 */
@media (max-width: 767px){
  .faq-q,
  .faq-a{
    padding-right: 16px;
  }
  .faq-q-text,
  .faq-a-text{
    padding-left: 10px;
  }
}