/* ============================================================
   Quadcom FAQ セクション 共通CSS
   functions.php の wp_enqueue_style で読み込んでください
   例: wp_enqueue_style('quadcom-faq', get_stylesheet_directory_uri() . '/assets/css/faq-style.css');
   ============================================================ */

/* --- 変数（既存 style.css に定義済みなら削除可） --- */
:root {
  --faq-color-primary:      #1a3a5c;
  --faq-color-accent:       #2266cc;
  --faq-color-accent-light: #4a90e2;
  --faq-color-text:         #1a1a2e;
  --faq-color-text-sub:     #555;
  --faq-color-border:       #dce6f0;
  --faq-color-bg:           #f3f7fc;
  --faq-color-open:         #e8f0fb;
  --faq-radius:             10px;
  --faq-shadow:             0 2px 12px rgba(26,58,92,0.08);
  --faq-font-en:            'Outfit', sans-serif;
}

/* --- セクション外枠 --- */
.qc-faq-section {
  padding: 72px 24px 80px;
}

.qc-faq-inner {
  max-width: 860px;
  margin: 0 auto;
}

/* --- ラベル・見出し --- */
.qc-faq-label {
  font-family: var(--faq-font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faq-color-accent);
  margin-bottom: 10px;
}

.qc-faq-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--faq-color-primary);
  margin-bottom: 8px;
  line-height: 1.35;
}

.qc-faq-title span {
  color: var(--faq-color-accent);
}

.qc-faq-sub {
  font-size: 14px;
  color: var(--faq-color-text-sub);
  margin-bottom: 44px;
}

/* --- リスト --- */
.qc-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* --- アイテム --- */
.qc-faq-item {
  background: #fff;
  border: 1.5px solid var(--faq-color-border);
  border-radius: var(--faq-radius);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}

.qc-faq-item.is-open {
  border-color: var(--faq-color-accent-light);
  box-shadow: var(--faq-shadow);
}

/* --- 質問ボタン --- */
.qc-faq-q {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--faq-color-primary);
  line-height: 1.5;
  transition: background .2s;
}

.qc-faq-q:hover            { background: var(--faq-color-bg); }
.qc-faq-item.is-open .qc-faq-q { background: var(--faq-color-open); }

/* Q バッジ */
.qc-faq-badge-q {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--faq-color-accent);
  color: #fff;
  font-family: var(--faq-font-en);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.qc-faq-q-text { flex: 1; }

/* 開閉アイコン */
.qc-faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
  margin-top: 0;
}

.qc-faq-icon::before,
.qc-faq-icon::after {
  content: '';
  position: absolute;
  background: var(--faq-color-accent);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.qc-faq-icon::before { width: 100%; height: 2.5px; top: 50%; left: 0; transform: translateY(-50%); }
.qc-faq-icon::after  { width: 2.5px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }

.qc-faq-item.is-open .qc-faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

/* --- 回答エリア --- */
.qc-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1);
}

.qc-faq-item.is-open .qc-faq-a { max-height: 600px; }

.qc-faq-a-inner {
  display: flex;
  gap: 14px;
  padding: 0 22px 22px;
}

/* A バッジ */
.qc-faq-badge-a {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--faq-color-bg);
  color: var(--faq-color-accent);
  font-family: var(--faq-font-en);
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid var(--faq-color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.qc-faq-a-text {
  flex: 1;
  font-size: 14px;
  color: var(--faq-color-text-sub);
  line-height: 1.8;
  padding-top: 2px;
}

.qc-faq-a-text a { color: var(--faq-color-accent); text-decoration: underline; }

/* --- CTAリンク --- */
.qc-faq-cta {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.qc-faq-cta-text {
  font-size: 14px;
  color: var(--faq-color-text-sub);
}

.qc-faq-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--faq-color-accent);
  color: #fff;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s, transform .15s;
}

.qc-faq-cta-btn:hover {
  background: var(--faq-color-primary);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

.qc-faq-cta-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* --- レスポンシブ --- */
@media (max-width: 600px) {
  .qc-faq-section { padding: 48px 16px 60px; }
  .qc-faq-q       { font-size: 13.5px; padding: 16px; }
  .qc-faq-a-inner { padding: 0 16px 18px; }
}
