/* よくある質問（/service/dr-aiseo/faq 配下）。共通の css/style.css のあとに読む */
/* 共通CSSの overflow-x: hidden だと左の目次の sticky が効かないため、clip にする */
html, body { overflow-x: clip; }
.fq-hero { padding: 110px 0 48px; background: #fff; border-bottom: 1px solid #e9ecef; }
.fq-breadcrumb { font-size: 0.78rem; color: #9ca3af; margin-bottom: 32px; }
.fq-breadcrumb a { color: #9ca3af; }
.fq-breadcrumb a:hover { color: #0891b2; }
.fq-breadcrumb span { margin: 0 6px; }
.fq-hero-title { font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 900; color: var(--yellow); line-height: 1; letter-spacing: -0.03em; margin-bottom: 10px; }
.fq-hero-sub { font-size: 1rem; color: #4b5563; font-weight: 500; }
.fq-hero-count { margin-top: 20px; font-size: 0.95rem; color: var(--dark-2); }
.fq-hero-count strong { font-size: 1.6rem; font-weight: 800; color: var(--dark); margin-right: 4px; }

.fq-main { background: #f4f6f9; padding: 56px 0 96px; }
.fq-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; color: var(--yellow-hover); margin-bottom: 6px; }
.fq-block-title { font-size: 1.4rem; margin-bottom: 20px; }
.fq-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 64px; }
@media (max-width: 1100px) { .fq-cats { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }
.fq-cat-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 22px 22px 18px; transition: border-color var(--trans), box-shadow var(--trans), transform var(--trans); }
.fq-cat-card:hover { border-color: var(--yellow); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.fq-cat-num { font-size: 0.8rem; font-weight: 800; color: var(--yellow-hover); }
.fq-cat-name { font-size: 1.05rem; font-weight: 800; }
.fq-cat-topics { font-size: 0.82rem; color: var(--gray); line-height: 1.6; }
.fq-cat-count { margin-top: auto; padding-top: 10px; font-size: 0.82rem; font-weight: 700; color: var(--dark-2); }

.fq-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.fq-side { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 4px; }
.fq-side p { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; color: var(--gray); margin-bottom: 6px; }
.fq-side a { font-size: 0.86rem; color: var(--dark-2); padding: 8px 12px; border-radius: 10px; }
.fq-side a:hover { background: #fff; color: var(--dark); }

.fq-section { margin-bottom: 56px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.fq-section-head { margin-bottom: 18px; }
.fq-section-num { font-size: 0.8rem; font-weight: 800; color: var(--yellow-hover); }
.fq-section-head h2 { font-size: 1.5rem; margin: 2px 0 6px; }
.fq-section-head p { font-size: 0.88rem; color: var(--gray); }
.fq-list { display: flex; flex-direction: column; gap: 12px; }
.fq-item { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); scroll-margin-top: calc(var(--nav-h) + 16px); }
.fq-item:target { border-color: var(--yellow); }
.fq-q { font-size: 1rem; font-weight: 700; letter-spacing: 0; line-height: 1.6; }
.fq-q button { width: 100%; display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px; background: none; border: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.fq-q button:hover .fq-q-text { color: #0891b2; }
.fq-q-text { flex: 1; padding-top: 3px; }
.fq-mark { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: var(--dark); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem; }
.fq-mark-a { background: var(--dark); color: #fff; }
.fq-icon { flex-shrink: 0; margin-top: 6px; color: var(--gray); transition: transform var(--trans); }
.fq-item.open .fq-icon { transform: rotate(180deg); }
.fq-a { display: flex; gap: 14px; padding: 0 22px 22px; border-top: 1px solid var(--border); padding-top: 20px; margin: 0 0 0; }
/* 回答を閉じておくのはJSが動くときだけ（サイトのルールに合わせる） */
.js .fq-item:not(.open) .fq-a { display: none; }
.fq-a-body { flex: 1; min-width: 0; font-size: 0.95rem; color: var(--dark-2); line-height: 1.9; }
.fq-a-body > * + * { margin-top: 12px; }
.fq-a-body ul { list-style: disc; padding-left: 1.4em; }
.fq-a-body ol { padding-left: 1.4em; }
.fq-a-body li + li { margin-top: 4px; }
.fq-a-body a { color: #0891b2; text-decoration: underline; text-underline-offset: 2px; }
.fq-table { overflow-x: auto; }
.fq-table table { border-collapse: collapse; width: 100%; font-size: 0.88rem; }
.fq-table th, .fq-table td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; vertical-align: top; }
.fq-table th { background: var(--yellow-light); font-weight: 700; white-space: nowrap; }
.fq-check { display: inline-block; background: #FEF3C7; color: #92400E; font-size: 0.78rem; font-weight: 700; padding: 1px 8px; border-radius: 6px; margin-left: 4px; }
.fq-more { font-size: 0.88rem; }
.fq-a-body ul.fq-columns { list-style: none; padding-left: 0; }
.fq-columns li { border-left: 3px solid var(--yellow); padding: 2px 0 2px 12px; font-size: 0.9rem; }
.fq-related { background: var(--gray-light); border-radius: 12px; padding: 14px 16px; }
.fq-related-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; color: var(--gray); margin-bottom: 6px; }
.fq-a-body .fq-related ul { list-style: none; padding-left: 0; }
.fq-related a { font-size: 0.88rem; text-decoration: none; }
.fq-related a::before { content: "Q. "; font-weight: 800; color: var(--yellow-hover); }

.fq-cta { background: var(--dark); color: #fff; border-radius: var(--radius-lg); padding: 48px 32px; text-align: center; margin-top: 24px; }
.fq-cta h2 { font-size: 1.5rem; margin-bottom: 10px; }
.fq-cta p { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin-bottom: 24px; }
.fq-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fq-cta .btn-yellow { background: var(--yellow); color: var(--dark); }
.fq-cta .btn-outline { border: 1.5px solid rgba(255,255,255,0.4); color: #fff; }

@media (max-width: 900px) {
  .fq-layout { grid-template-columns: 1fr; }
  .fq-side { display: none; }
}
@media (max-width: 600px) {
  .fq-q button { padding: 16px; gap: 10px; }
  .fq-a { padding: 16px; gap: 10px; }
  .fq-mark { width: 26px; height: 26px; font-size: 0.8rem; }
}

/* ===== 1問1ページ・カテゴリ・一覧 ===== */
.fq-side a.on { background: #fff; color: var(--dark); font-weight: 700; }
.fq-qlist { display: flex; flex-direction: column; gap: 12px; }
.fq-qcard { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 20px 22px; transition: border-color var(--trans), box-shadow var(--trans); color: inherit; }
a.fq-qcard:hover { border-color: var(--yellow); box-shadow: var(--shadow-md); }
a.fq-qcard:hover .fq-qcard-q { color: #0891b2; }
.fq-qcard-body { flex: 1; min-width: 0; }
.fq-qcard-q { font-size: 1rem; font-weight: 700; line-height: 1.6; padding-top: 3px; }
.fq-qcard { align-items: center; }
.fq-qcard-arrow { flex-shrink: 0; font-size: 1.2rem; font-weight: 700; color: var(--gray); }
a.fq-qcard:hover .fq-qcard-arrow { color: #0891b2; }
.fq-qcard-sum { margin-top: 6px; font-size: 0.88rem; color: var(--gray); line-height: 1.7; }
.fq-qcard-more { margin-top: 8px; font-size: 0.82rem; font-weight: 700; color: #0891b2; }
.fq-inline { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); scroll-margin-top: calc(var(--nav-h) + 16px); }
.fq-inline:target { border-color: var(--yellow); }
.fq-inline-q { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px 0; font-size: 1rem; line-height: 1.6; }
.fq-inline-q span:last-child { padding-top: 3px; }
.fq-inline .fq-a { border-top: none; padding-top: 14px; }
.fq-inline-tag { display: inline-block; margin: 14px 0 0 66px; font-size: 0.72rem; font-weight: 700; color: var(--gray); background: var(--gray-light); border-radius: 6px; padding: 1px 8px; }
.fq-article { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 32px; }
.fq-article-cat { font-size: 0.8rem; font-weight: 800; color: var(--yellow-hover); }
.fq-article-q { display: flex; gap: 14px; align-items: flex-start; margin: 8px 0 24px; }
.fq-article-q h1 { font-size: 1.45rem; line-height: 1.55; margin: 0; }
.fq-article-q .fq-mark { margin-top: 3px; }
.fq-article .fq-a { border-top: 1px solid var(--border); padding: 24px 0 0; }
.fq-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.fq-pn a { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 14px 18px; font-size: 0.86rem; color: var(--dark-2); line-height: 1.6; }
.fq-pn a:hover { border-color: var(--yellow); }
.fq-pn small { display: block; font-size: 0.72rem; font-weight: 800; color: var(--gray); margin-bottom: 4px; }
.fq-pn .next { text-align: right; grid-column: 2; }
.fq-samecat { margin-top: 32px; }
.fq-samecat h2 { font-size: 1.05rem; margin-bottom: 12px; }
.fq-samecat ul { display: flex; flex-direction: column; gap: 2px; }
.fq-samecat a { display: block; padding: 8px 12px; border-radius: 10px; font-size: 0.88rem; color: var(--dark-2); }
.fq-samecat a:hover { background: #fff; color: #0891b2; }
.fq-samecat a::before { content: "Q. "; font-weight: 800; color: var(--yellow-hover); }
.fq-samecat li.on a { background: #fff; font-weight: 700; color: var(--dark); }
/* すべての質問：カテゴリごとのカード。1問1行、左から右へ読む順に並べる */
.fq-all { margin-top: 64px; }
.fq-all-cat { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); margin-top: 20px; overflow: hidden; }
.fq-all-head { display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1.5px solid var(--border); }
.fq-all-head .fq-cat-num { font-size: 0.8rem; }
.fq-all-head h3 { flex: 1; font-size: 1.05rem; margin: 0; }
.fq-all-more { flex-shrink: 0; font-size: 0.82rem; font-weight: 700; color: #0891b2; }
.fq-all-more:hover { text-decoration: underline; text-underline-offset: 2px; }
.fq-all-list { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: -1px; } /* 最後の行の下線をカードの枠と重ねない */
.fq-all-list li { border-bottom: 1px solid #eef0f3; }
.fq-all-list li:nth-child(odd) { border-right: 1px solid #eef0f3; }
.fq-all-list a { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; height: 100%; padding: 14px 20px 14px 24px; font-size: 0.9rem; line-height: 1.6; color: var(--dark-2); transition: background var(--trans), color var(--trans); }
.fq-all-list a:hover { background: var(--yellow-light); color: var(--dark); }
.fq-all-q { width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); color: var(--dark); font-size: 0.7rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.fq-all-arrow { color: #c0c6cf; font-weight: 700; transition: color var(--trans), transform var(--trans); }
.fq-all-list a:hover .fq-all-arrow { color: #0891b2; transform: translateX(2px); }
@media (max-width: 900px) {
  .fq-all-list { grid-template-columns: 1fr; }
  .fq-all-list li:nth-child(odd) { border-right: none; }
}
@media (max-width: 600px) {
  .fq-all-head { padding: 16px; }
  .fq-all-list a { padding: 12px 16px; gap: 10px; }
}
@media (max-width: 600px) {
  .fq-article { padding: 20px 16px; }
  .fq-article-q { gap: 10px; }
  .fq-article-q h1 { font-size: 1.2rem; }
  .fq-qcard { padding: 16px; gap: 10px; }
  .fq-inline-q { padding: 16px 16px 0; gap: 10px; }
  .fq-inline-tag { margin-left: 52px; }
  .fq-pn { grid-template-columns: 1fr; }
  .fq-pn .next { grid-column: 1; }
}
