/* =========================================================
   FAQ コンポーネント（よくあるご質問アコーディオン）
   - data-include="faq" + data-items='[{q,a,open}]' で使用（include-components.js が描画）
   - deco-heading（product-detail-moist.css）・content-wrap（common.css）に依存
   - アクセント色は --faq-* 変数で上書き可能（既定は navy/cyan）
   ========================================================= */
.faq {
  --faq-accent: #5dc2d0;   /* Q バッジ・ホバー */
  --faq-heading: #0e2f72;  /* 質問テキスト */
  --faq-answer: #596892;   /* 回答テキスト */
  --faq-border: #e2e6ea;   /* 区切り線 */
  --faq-mark: #b6c0cf;     /* ＋/− マーク */
  padding: 40px 0 96px;
  background: #ffffff;
}
.faq__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 868px;
}
.faq__item {
  border-bottom: 1px solid var(--faq-border);
}
.faq__item:first-child {
  border-top: 1px solid var(--faq-border);
}
.faq__item details {
  padding: 22px 0;
}
.faq__q {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-family: 'M PLUS 1', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--faq-heading);
  transition: color 0.2s ease;
  /* タップ時に出る端末既定の水色ハイライトを消す（タップは開閉のみ） */
  -webkit-tap-highlight-color: transparent;
}
.faq__q::-webkit-details-marker { display: none; }
/* ホバー時のみ、質問テキストと ＋/− アイコンをアクセント色に */
.faq__q:hover { color: var(--faq-accent); }
.faq__q:hover .faq__mark::before,
.faq__q:hover .faq__mark::after { background: var(--faq-accent); }
.faq__badge {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--faq-accent);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq__q-text {
  flex: 1 1 auto;
  min-width: 0;               /* flex 子要素の縮小を許可（長文で溢れさせない） */
  overflow-wrap: anywhere;    /* 長い英数字/URL でも折り返す */
}
.faq__mark {
  flex: 0 0 auto;
  position: relative;
  width: 18px;
  height: 18px;
}
.faq__mark::before,
.faq__mark::after {
  content: "";
  position: absolute;
  background: var(--faq-mark);
  border-radius: 2px;
  transition: background 0.2s ease;
}
.faq__mark::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq__mark::after  { top: 0; left: 8px; width: 2px; height: 18px; transition: opacity 0.2s ease, background 0.2s ease; }
.faq__item details[open] .faq__mark::after { opacity: 0; }
.faq__a {
  font-family: 'M PLUS 1', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: var(--faq-answer);
  margin: 16px 0 0;
  padding-left: 44px;
  overflow-wrap: anywhere;    /* 長い英数字/URL でも折り返す */
}

/* 見出し左右の区切り線はグリッド（content-wrap 内寸）幅までいっぱいに伸ばす
   （DESIGN.md §4「成分セクションの区切り線」と同じ流儀。
     共有 deco-heading の 120px 固定を flex 伸縮で上書き） */
.faq .deco-heading__line {
  flex: 1 1 0;
  width: auto;
  max-width: none;
  min-width: 0;
}

@media (max-width: 767px) {
  .faq { padding: 24px 0 64px; }
  .faq__a { padding-left: 0; font-size: 15px; }
}
