/* ============================================================
   faq.css — FAQ ページ ( /faq )
   ============================================================ */

/* --- ヒーロー --- */
.faq-hero {
  background: #f7f8fa;
  padding: 20px 0 20px;
  padding: 0;
  text-align: center;
}
section.faq-hero .container {
  padding: 60px 15px;
}

.faq-title {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 8px;
  margin: 0 0 20px;
}
.faq-lead {
  font-size: 15px;
  color: #666;
  margin: 0 0 28px;
  display: none;
}

/* --- 検索 --- */
.faq-search {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}
.faq-search-input {
  width: 100%;
  padding: 14px 44px 14px 18px;
  font-size: 16px;   /* iOS で自動ズームさせないため 16px 以上 */
  border: 1px solid #dcdfe4;
  border-radius: 999px;
  background: #fff;
  outline: none;
}
.faq-search-input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}
.faq-search-clear {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: #e6e8ec;
  color: #555;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.faq-search-clear:hover { background: #d6d9df; }

/* --- 本体 --- */
.faq-body { padding: 0 0 72px; }

section.faq-body .container {
  padding: 60px 15px;
  max-width: 800px;
}

/* --- 絞り込み --- */
.faq-filter { margin-bottom: 18px; }
.faq-filter-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #999;
  color: #ccc;
  margin: 0 0 8px;
}
.faq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.faq-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border: 1px solid #dcdfe4;
  border-radius: 999px;
  border-radius: 7px;
  background: #fff;
  color: #333;
  color: black;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.faq-chip:hover { border-color: #0d6efd; color: #0d6efd; }
.faq-chip.is-active {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}
.faq-chip-count {
  font-size: 12px;
  color: #999;
}
.faq-chip.is-active .faq-chip-count { color: rgba(255, 255, 255, .75); }
.faq-chip-tag { font-size: 13px; padding: 6px 13px; color: #555; color: black; }

/* --- 件数表示 --- */
.faq-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 72px 0 12px;
  font-size: 13px;
  color: #888;
  color: #ccc;
}
.faq-reset,
.faq-reset-inline {
  border: none;
  background: none;
  padding: 0;
  color: #0d6efd;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}

/* --- 一覧 --- */
.faq-list {
  border-top: 1px solid #e9ebef;
}
.faq-item {
  border-bottom: 1px solid #e9ebef;
}
.faq-q {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 40px 18px 0;
  position: relative;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;          /* デフォルトの三角を消す */
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '';
  position: absolute;
  top: 26px;
  right: 8px;
  width: 9px;
  height: 9px;
  border-right: 2px solid #999;
  border-bottom: 2px solid #999;
  transform: rotate(45deg);
  transition: transform .2s;
}
.faq-item[open] .faq-q::after {
  transform: rotate(-135deg);
  top: 30px;
}
.faq-q:hover { color: #0d6efd; }
.faq-a {
  padding: 0 40px 20px 0;
  font-size: 15px;
  line-height: 1.9;
  color: #444;
  white-space: pre-wrap;     /* JSON 内の改行をそのまま活かす */
}
.faq-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 0 20px;
}
.faq-tag-link {
  border: none;
  background: #f1f3f5;
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 12px;
  color: #777;
  cursor: pointer;
}
.faq-tag-link:hover { background: #e2e8f0; color: #0d6efd; }

/* --- 該当なし --- */
.faq-empty {
  padding: 48px 0;
  text-align: center;
  color: #888;
  font-size: 15px;
}

/* --- 問い合わせ導線 --- */
.faq-contact {
  margin-top: 56px;
  padding: 32px 20px;
  background: #f7f8fa;
  border-radius: 10px;
  text-align: center;
}
.faq-contact p {
  margin: 0 0 14px;
  font-size: 15px;
  color: #555;
}

/* --- スマホ --- */
@media (max-width: 767px) {
  .faq-hero { padding: 28px 0 28px; padding: 0; }
  .faq-title { font-size: 24px; }
  .faq-q { font-size: 15px; padding-right: 32px; }
  .faq-a { padding-right: 0; font-size: 14px; }
}

/* --- 回答内の要素（Markdown 記法から生成される） --- */
.faq-a a {
  color: #0d6efd;
  text-decoration: underline;
  word-break: break-word;
}
.faq-a a:hover { color: #0a58ca; }

.faq-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 14px 0;
  border: 1px solid #e9ebef;
  border-radius: 6px;
}

.faq-h {
  font-size: 15px;
  font-weight: 700;
  margin: 20px 0 6px;
  color: #222;
}
.faq-h:first-child { margin-top: 0; }

.faq-a strong { font-weight: 700; color: #222; }
