/* よくあるご質問（/faq/）。Q/Aの見た目は profile.css の .profile-faq をそのまま使い、ここではページの見出しまわりだけ足す（2026-11-07） */
.faq-page { padding-top: 150px; }
.faq-page > h1 { position: relative; font-size: 30px; font-weight: 600; text-align: center; letter-spacing: 0.16em; color: #1a1a1a; line-height: 1.4; margin-bottom: 24px; }
.faq-page > h1::after { content: ""; display: block; width: 40px; height: 1px; margin: 22px auto 0; background-color: #b3a06a; }
.faq-lead { text-align: center; font-size: 15px; line-height: 2; color: #555; margin-bottom: 48px; }
/* 分類の見出し（会社概要では h3、このページでは h1 の下なので h2） */
.faq-page .profile-faq-group h2 { font-size: 18px; font-weight: bold; text-align: left; letter-spacing: 0.06em; line-height: 1.5; margin-bottom: 12px; padding-left: 12px; border-left: 3px solid #333; }
/* 質問の開閉の見た目は profile.css（会社概要と共通） */
/* 分類ボタンの問数 */
.faq-count { margin-left: 2px; font-size: 0.9em; opacity: 0.7; }
.profile-faq-group { scroll-margin-top: 100px; }
/* 分類のタブを固定する（2026-11-07）。fixed の付け外しは faq.php の script。固定中はヘッダーの下に横一列で出す */
.profile-faq-nav.is-fixed { position: fixed; left: 0; right: 0; z-index: 1100; margin: 0; padding: 10px 16px; flex-wrap: nowrap; background: rgba(255,255,255,0.97); border-bottom: 1px solid #ddd; box-shadow: 0 2px 6px rgba(0,0,0,0.04); }
.profile-faq-nav a.is-current { background: #333; color: #fff; }
.profile-faq-nav a.is-current .faq-count { opacity: 0.85; }
/* タブが固定されるので、飛んだ先の見出しがタブに隠れないようにする */
.faq-page .profile-faq-group, .faq-item { scroll-margin-top: 140px; }

/* 言葉で探す（2026-11-14）。動きは faq.php の script */
.faq-page [hidden] { display: none !important; }
.faq-search { max-width: 560px; margin: 0 auto 32px; }
.faq-search-label { display: block; font-size: 13px; letter-spacing: 0.08em; color: #555; margin-bottom: 8px; text-align: center; }
/* 「カテゴリから探す」：タブは中央寄せなので、見出しも中央に。タブが固定されても見出しは残らない（2026-11-14） */
.faq-nav-label { margin: 0 auto 10px; }
.faq-search-box { position: relative; }
.faq-search-input { width: 100%; box-sizing: border-box; height: 48px; padding: 0 44px 0 16px; border: 1px solid #bbb; border-radius: 0; background: #fff; font-size: 16px; color: #1a1a1a; -webkit-appearance: none; appearance: none; }
.faq-search-input:focus { outline: none; border-color: #333; }
.faq-search-input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.faq-search-clear { position: absolute; top: 0; right: 0; width: 44px; height: 48px; border: 0; background: none; font-size: 20px; line-height: 1; color: #888; cursor: pointer; }
.faq-search-result { margin-top: 10px; font-size: 14px; line-height: 1.8; color: #555; }
.faq-search-result:empty { display: none; }
.faq-search-result a { color: #1a1a1a; text-decoration: underline; }

.faq-contact { max-width: 800px; margin: 0 auto; padding: 40px 24px; border: 1px solid #ddd; text-align: center; }
.faq-contact h2 { font-size: 18px; font-weight: bold; margin-bottom: 12px; }
.faq-contact p { font-size: 14px; line-height: 2; margin-bottom: 20px; }
.faq-contact ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.faq-contact a { display: block; min-width: 200px; padding: 12px 20px; border: 1px solid #333; font-size: 14px; color: #333; text-decoration: none; }
.faq-contact a:hover { background: #333; color: #fff; }
/* 最終更新の下にも余白をとる（2026-11-07）：フッターとくっついて見えたため */
.faq-contact + .profile-updated { margin-bottom: 120px; }

@media screen and (max-width: 768px) {
  .faq-page { padding-top: 80px; }
  .faq-page > h1 { font-size: 20px; letter-spacing: 0.1em; }
  .faq-page > h1::after { margin-top: 16px; }
  .faq-lead { font-size: 13px; text-align: left; margin-bottom: 32px; }
  .faq-search { margin-bottom: 24px; }
  .faq-search-result { font-size: 13px; }
  .faq-page .profile-faq-group h2 { font-size: 15px; }
  .profile-faq-nav.is-fixed { justify-content: flex-start; gap: 6px; padding: 8px 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .profile-faq-nav.is-fixed::-webkit-scrollbar { display: none; }
  .profile-faq-nav.is-fixed li { flex: 0 0 auto; }
  .profile-faq-nav.is-fixed a { padding: 4px 12px; white-space: nowrap; }
  .faq-page .profile-faq-group, .faq-item { scroll-margin-top: 104px; }
  .faq-contact { padding: 28px 16px; }
  .faq-contact p { font-size: 13px; }
  .faq-contact ul { flex-direction: column; }
  .faq-contact a { min-width: 0; }
  .faq-contact + .profile-updated { margin-bottom: 64px; }
}
