.page-faq { background: #f8faf9; }
.page-faq #main-header { background: #fff; border-bottom: 1px solid #e4ece9; }
.page-faq #main-header::before { display: none; }
.page-faq #faq-main { padding: 120px 0 72px; }
.faq-container { width: min(1120px, 90%); margin: 0 auto; }
.page-faq h1, .page-faq h2 { font-family: var(--font-sans); font-weight: 700; }
.faq-breadcrumb { display: flex; gap: 12px; font-size: .8rem; color: #54665e; }
.faq-breadcrumb a { text-decoration: underline; text-underline-offset: 4px; }
.faq-intro { margin: 36px 0 28px; }
.faq-intro h1 { font-size: clamp(1.9rem, 5vw, 3rem); letter-spacing: .04em; }
.faq-intro p { margin-top: 20px; color: var(--ink-secondary); line-height: 1.9; }
.faq-intro .faq-intro-assistant { margin-top: 12px; }
.faq-search { max-width: 720px; margin-bottom: 36px; }
.faq-search label { display: block; font-size: .9rem; font-weight: 700; margin-bottom: 10px; }
.faq-search-field { display: flex; align-items: center; background: white; border: 1px solid #b5c8c0; border-radius: 12px; padding: 4px 12px 4px 4px; }
.faq-search-field input { min-width: 0; flex: 1; padding: 14px; border: 0; background: none; font: inherit; font-size: 16px; }
.faq-search-field:focus-within { outline: 2px solid var(--color-blue); outline-offset: 3px; }
.faq-search-field input:focus { outline: none; }
.faq-search button, .faq-tools button { font: inherit; font-size: .85rem; cursor: pointer; background: white; border: 1px solid #cbd8d2; border-radius: 6px; padding: 10px 12px; color: #245c48; }
#faq-result-count { margin-top: 10px; font-size: .8rem; color: #54665e; min-height: 1.6em; }
.faq-layout { display: grid; gap: 30px; }
.faq-categories h2 { font-size: 1rem; margin-bottom: 12px; }
.faq-categories ul { list-style: none; display: grid; gap: 8px; }
.faq-categories a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; background: #edf3ef; border-radius: 8px; font-size: .9rem; }
.faq-categories a:hover { background: #dcebe2; }
.faq-category-count { color: #52645a; font-size: .8rem; }
#faq-content { min-width: 0; }
.faq-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-bottom: 24px; }
.page-faq .faq-group { padding: 0; margin-bottom: 44px; scroll-margin-top: 125px; }
.faq-group h2 { font-size: 1.2rem; margin-bottom: 18px; padding-left: 14px; border-left: 4px solid var(--color-teal); line-height: 1.5; }
.faq-item { background: white; border: 1px solid #dfe8e3; border-radius: 12px; margin-bottom: 10px; scroll-margin-top: 125px; overflow-wrap: anywhere; }
.faq-item summary { list-style: none; display: grid; grid-template-columns: 22px 1fr 18px; gap: 10px; padding: 20px 16px; font-weight: 600; font-size: .95rem; cursor: pointer; align-items: start; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #006b9b; }
.faq-q { color: #0078ad; font-weight: 700; }
.faq-a { color: #34725b; font-weight: 700; }
.faq-toggle { width: 16px; height: 16px; position: relative; margin-top: 5px; }
.faq-toggle::before, .faq-toggle::after { content: ''; position: absolute; background: #48695b; }
.faq-toggle::before { width: 14px; height: 2px; left: 1px; top: 7px; }
.faq-toggle::after { width: 2px; height: 14px; left: 7px; top: 1px; }
.faq-item[open] .faq-toggle::after { display: none; }
.faq-item[open] { border-color: #a8cabc; }
.faq-answer { display: grid; grid-template-columns: 22px 1fr; gap: 10px; margin: 0 16px; padding: 18px 0 24px; border-top: 1px solid #edf1ef; line-height: 1.95; font-size: .95rem; color: #39473f; }
.faq-empty { background: white; padding: 30px 20px; border-radius: 12px; line-height: 1.9; }
.faq-share { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; padding: 0 16px 12px 48px; }
.faq-share-button { min-height: 24px; padding: 2px 0; border: 0; border-radius: 0; background: transparent; color: #6c7771; font: inherit; font-size: .7rem; line-height: 1.5; cursor: pointer; }
.faq-share-button:hover { color: #245c48; text-decoration: underline; text-underline-offset: 3px; }
.faq-share-button:disabled { cursor: wait; opacity: .6; }
.faq-share-status { font-size: .7rem; color: #6c7771; }
.faq-share-url { width: 100%; min-width: 0; padding: 10px; border: 1px solid #b5c8c0; border-radius: 6px; font: inherit; font-size: 16px; }
.faq-empty a { text-decoration: underline; color: #0078ad; }
.page-faq .faq-contact { padding: 36px 20px; text-align: center; background: #edf3ef; border-radius: 18px; margin-top: 24px; }
.faq-contact h2 { font-size: 1.35rem; }
.faq-contact p { margin: 16px 0 24px; line-height: 1.9; color: #46564d; }
.faq-contact-button { display: inline-block; background: var(--color-yellow); padding: 15px 40px; border-radius: 8px; font-weight: 700; }
.page-faq :focus-visible { outline: 3px solid #0083bf; outline-offset: 4px; }
.faq-skip { position: fixed; left: 12px; top: 12px; transform: translateY(-160%); z-index: 10001; padding: 12px; background: white; color: #006b9b; }
.faq-skip:focus { transform: translateY(0); }
.page-faq [hidden] { display: none !important; }
@media (min-width: 600px) {
  .faq-categories ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-item summary { padding: 24px; gap: 14px; }
  .faq-answer { margin: 0 24px; gap: 14px; }
  .faq-share { padding-left: 60px; padding-right: 24px; }
}
/* カテゴリーが結果の上に積まれる幅では、検索中だけ一覧を隠す。 */
@media (max-width: 999px) {
  #faq-main.is-searching .faq-categories { display: none; }
}
@media (min-width: 1000px) {
  .page-faq #faq-main { padding-top: 145px; }
  .faq-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
  .faq-categories { position: sticky; top: 120px; }
  .faq-categories ul { grid-template-columns: 1fr; }
}
@media print {
  .page-faq #main-header, .page-faq footer, .faq-search, .faq-tools, .faq-categories, .faq-contact, .faq-skip, .faq-share { display: none !important; }
  .page-faq #faq-main { padding: 0; }
  .faq-layout { display: block; }
  .faq-item { break-inside: avoid; }
}
