/* =========================
   FAQページ専用（/faq.html）
   ========================= */

.page-faq main {
  background-color: #ffffff;
}

/* 見出し装飾 */
.page-faq .section-title {
  position: relative;
  padding-left: 12px;
  margin: 0 0 16px;
  font-weight: 700;
  line-height: 1.4;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  color: #0b4f66;
}

.page-faq .section-title::before {
  content: "";
  position: absolute;
  top: 0.2em;
  bottom: 0.2em;
  left: 0;
  width: 4px;
  border-radius: 2px;
  background: var(--primary);
}

.page-faq .faq-lead {
  line-height: 1.8;
  margin: 0;
  color: var(--muted);
}

/* 本文リンク：service.html の外部リンク強調に寄せる */
.page-faq .faq-lead a,
.page-faq .faq-answer a {
  color: #0284c7;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.page-faq .faq-lead a:hover,
.page-faq .faq-answer a:hover {
  text-decoration-style: solid;
}

/* 冒頭の案内ボックス */
.page-faq .faq-note-box {
  background: #eef6fd;
  border: 1px solid #d9e6f0;
  border-radius: 14px;
  padding: 18px 18px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
}

.page-faq .faq-note-box p {
  margin: 0 0 10px;
  color: #475569;
  line-height: 1.8;
}

.page-faq .faq-note-box p:last-child {
  margin-bottom: 0;
}

/* FAQリスト */
.page-faq .faq-list {
  display: grid;
  gap: 16px; /* ← 項目同士の間隔を少し拡大 */
}

/* details全体 */
.page-faq .faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15,23,42,0.03);
}

/* 質問タイトル */
.page-faq .faq-item > summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 18px 54px 18px 18px;
  font-weight: 700;
  font-size: 16px;
  color: #0b4f66;
  line-height: 1.75;
  letter-spacing: 0.01em;
  background: #ffffff;
}

.page-faq .faq-item > summary::-webkit-details-marker {
  display: none;
}

.page-faq .faq-item > summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #0b4f66;
  background: #ffffff;
}

.page-faq .faq-item[open] > summary {
  background: #eef6fd;
  border-bottom: 1px solid #d9e6f0;
}

.page-faq .faq-item[open] > summary::after {
  content: "−";
}

/* 回答部 */
.page-faq .faq-answer {
  padding: 16px 18px 18px;
}

/* 回答本文：質問より少し軽く、読み物寄りに */
.page-faq .faq-answer p {
  margin: 0 0 12px;
  color: #475569;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0;
}

.page-faq .faq-answer p:last-child {
  margin-bottom: 0;
}

.page-faq .faq-answer ul {
  margin: 0 0 12px 20px;
  padding: 0;
  color: #475569;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
}

.page-faq .faq-answer li {
  margin: 4px 0;
}

/* CTA */
.page-faq .faq-cta .muted {
  margin: 0 0 14px;
  line-height: 1.8;
}

/* レスポンシブ */
@media (max-width: 720px) {
  .page-faq .faq-list {
    gap: 14px;
  }

  .page-faq .faq-item > summary {
    padding: 16px 48px 16px 16px;
    font-size: 15px;
    line-height: 1.65;
  }

  .page-faq .faq-item > summary::after {
    right: 14px;
    width: 24px;
    height: 24px;
    font-size: 16px;
  }

  .page-faq .faq-answer {
    padding: 14px 16px 16px;
  }

  .page-faq .faq-answer p,
  .page-faq .faq-answer ul {
    font-size: 14px;
    line-height: 1.85;
  }
}