/* STAYNAVIバリュードライブ よくある質問。
   配色・書体は本体のコラム（shared/cms_lib.py の STYLE）に揃えている。
   ヘッダー・フッターは本体の svh_header / svh_footer をそのまま差し込むので、ここでは触らない。 */
:root {
  --navy: #042784; --blue: #0b62c4; --blue-d: #075ea0;
  --ink: #1f2328; --ink-soft: #3d444d; --muted: #6b7280; --line: #e3e8ef; --bg: #f3f6fb;
  --sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: #fff; line-height: 1.9;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--blue); }
h1, h2, h3 { font-feature-settings: "palt" 1; }

.faq-inner { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.faq-body { padding-top: 40px; padding-bottom: 72px; }
.faq-body--narrow { max-width: 820px; }

/* ---- ヒーロー（コラム一覧と同じ写真＋紺の被せ） */
.faq-hero { position: relative; padding: 64px 0 56px; color: #fff;
  background: var(--navy) url(faq_hero.jpg) center/cover no-repeat; }
.faq-hero::after { content: ""; position: absolute; inset: 0; background: rgba(4, 20, 60, .5); }
.faq-hero .faq-inner { position: relative; z-index: 1; }
.faq-hero__sub { margin: 0 0 4px; font-size: 14px; font-weight: 700; letter-spacing: .08em; opacity: .9; }
.faq-hero__title { margin: 0 0 28px; font-size: 44px; font-weight: 800; letter-spacing: .06em; line-height: 1.3;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }

/* ---- 検索 */
.faq-search { display: flex; gap: 8px; margin: 40px 0 0; }
.faq-search--hero { margin: 0; max-width: 720px; }
.faq-search__input { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border: 1px solid var(--line);
  border-radius: 8px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; -webkit-appearance: none; }
.faq-search--hero .faq-search__input { border-color: transparent; box-shadow: 0 4px 18px rgba(0, 0, 0, .18); }
.faq-search__input:focus { outline: 2px solid var(--blue); outline-offset: 0; }
.faq-search__btn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 52px; padding: 0 22px;
  border: 0; border-radius: 8px; background: var(--navy); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.faq-search--hero .faq-search__btn { background: var(--blue); }
.faq-search__btn:hover { background: #0a3aa8; }
.faq-search__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* ---- カテゴリのチップ（コラム一覧の絞り込みボタンと同じ体裁） */
.faq-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.faq-chips a { background: #eef2f7; color: #4b5563; border-radius: 6px; padding: 8px 16px; font-size: 14px;
  line-height: 1.5; text-decoration: none; transition: .15s; }
.faq-chips a:hover { background: #e2e8f2; }
.faq-chips a[aria-current="page"] { background: var(--navy); color: #fff; }

/* ---- TOP のカテゴリカード */
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.faq-card { border: 1px solid var(--line); border-radius: 10px; padding: 24px 24px 20px; background: #fff;
  scroll-margin-top: 16px; }
.faq-card__title { margin: 0 0 8px; font-size: 19px; line-height: 1.5; }
.faq-card__title a { color: var(--ink); text-decoration: none; }
.faq-card__title a:hover { color: var(--blue); }
.faq-card__more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--blue);
  text-decoration: none; }
.faq-card__more::after { content: " ›"; }
.faq-card__more:hover { text-decoration: underline; }

/* ---- 質問リスト（Q マーク付き） */
.faq-qlist { list-style: none; margin: 0; padding: 0; }
.faq-qlist li + li { border-top: 1px solid var(--line); }
.faq-qlist a { position: relative; display: block; padding: 12px 8px 12px 30px; color: var(--ink);
  text-decoration: none; line-height: 1.7; }
.faq-qlist a::before { content: "Q"; position: absolute; left: 4px; top: 12px; color: var(--blue);
  font-weight: 800; font-family: Arial, sans-serif; }
.faq-qlist a:hover { color: var(--blue); }
.faq-qlist--boxed { border: 1px solid var(--line); border-radius: 10px; padding: 4px 16px; }

/* ---- パンくず（コラム記事と同じ白帯） */
.faq-crumbs { border-bottom: 1px solid var(--line); background: #fff; font-size: 13px; }
.faq-crumbs .faq-inner { padding-top: 12px; padding-bottom: 12px; overflow: hidden; white-space: nowrap;
  text-overflow: ellipsis; color: var(--muted); }
.faq-crumbs a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.faq-crumbs a:hover { color: var(--blue); }
.faq-crumbs a::after { content: "›"; margin: 0 10px; color: var(--muted); font-weight: 400; }

.faq-title { margin: 0 0 20px; font-size: 30px; line-height: 1.4; }

/* ---- 質問詳細 */
.faq-article__q { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 28px; font-size: 24px;
  line-height: 1.55; }
.faq-badge { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; font: 800 20px/1 Arial, sans-serif; margin-top: -2px; }
.faq-badge--a { background: #fff; color: var(--blue); border: 2px solid var(--blue); }
/* 見出し（h1）の中の「Q」は文字として持たず CSS で描く（検索エンジンに h1 を「Q＋質問文」と読ませないため） */
.faq-badge[data-mark]::before { content: attr(data-mark); }
.faq-article__a { display: flex; gap: 14px; align-items: flex-start; padding: 28px; background: var(--bg);
  border-radius: 10px; }
.faq-article__body { flex: 1; min-width: 0; font-size: 16px; line-height: 1.95; overflow-wrap: anywhere; }
.faq-article__body > :first-child { margin-top: 0; }
.faq-article__body p { margin: 0 0 1.1em; }
.faq-article__body p:last-child { margin-bottom: 0; }
.faq-article__body ul, .faq-article__body ol { margin: 0 0 1.1em; padding-left: 1.5em; }
.faq-article__body a { text-decoration: underline; text-underline-offset: 3px; }
.faq-article__body img { max-width: 100%; height: auto; }
.faq-updated { margin: 12px 0 0; text-align: right; font-size: 13px; color: var(--muted); }

.faq-related { margin-top: 56px; }
.faq-related__title { margin: 0 0 14px; font-size: 18px; }

/* ---- 検索結果 */
.faq-results { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.faq-results li { border-bottom: 1px solid var(--line); }
.faq-results a { display: block; padding: 18px 4px; color: var(--ink); text-decoration: none; }
.faq-results a:hover .faq-results__q { color: var(--blue); }
.faq-results__cat { display: inline-block; margin-bottom: 4px; background: #eef2f7; color: #4b5563;
  border-radius: 5px; padding: 1px 10px; font-size: 12px; }
.faq-results__q { display: block; font-weight: 700; line-height: 1.6; }
.faq-results__snip { display: block; margin-top: 4px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.faq-results mark { background: #fff1a8; color: inherit; padding: 0 1px; }
.faq-results__empty { padding: 24px 4px; color: var(--muted); }

/* ---- お問い合わせ案内 */
.faq-contact { margin-top: 56px; padding: 28px; border-radius: 10px; background: var(--bg); text-align: center; }
.faq-contact__title { margin: 0 0 6px; font-size: 18px; font-weight: 700; line-height: 1.6; }
.faq-contact__text { margin: 0 0 18px; font-size: 14px; color: var(--ink-soft); line-height: 1.8; }
.faq-contact__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.faq-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 220px; padding: 13px 24px;
  border-radius: 64px; font-weight: 700; font-size: 15px; text-decoration: none; line-height: 1.2; }
.faq-btn--primary { background: var(--navy); color: #fff; }
.faq-btn--primary:hover { background: #0a3aa8; }
.faq-btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.faq-btn--ghost:hover { background: #eef2f7; }

@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .faq-inner { padding: 0 16px; }
  .faq-body { padding-top: 28px; padding-bottom: 56px; }
  .faq-hero { padding: 40px 0 36px; }
  .faq-hero__title { font-size: 30px; margin-bottom: 20px; }
  .faq-search__btn span { display: none; }
  .faq-search__btn { padding: 0 16px; }
  .faq-chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .faq-chips a { flex: none; }
  .faq-card { padding: 20px 16px 16px; }
  .faq-card__title { font-size: 17px; }
  .faq-title { font-size: 24px; }
  .faq-article__q { font-size: 20px; gap: 10px; }
  .faq-badge { width: 34px; height: 34px; font-size: 17px; }
  .faq-article__a { display: block; padding: 20px 16px; }
  .faq-article__a .faq-badge { margin: 0 0 10px; }
  .faq-contact { padding: 24px 16px; }
  .faq-btn { width: 100%; }
}

/* ---- よく見られている質問（TOP） */
.faq-popular { margin: 0 0 48px; padding: 24px 24px 12px; border-radius: 10px; background: var(--bg); }
.faq-popular__title, .faq-sec-title { margin: 0 0 12px; font-size: 20px; line-height: 1.5; }
.faq-sec-title { margin-bottom: 16px; }
.faq-qlist--rank { counter-reset: rank; }
.faq-qlist--rank li { counter-increment: rank; }
.faq-qlist--rank li + li { border-top-color: #dde3ec; }
.faq-qlist--rank a { padding-left: 40px; }
.faq-qlist--rank a::before { content: counter(rank); left: 0; top: 12px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: 13px; line-height: 26px; text-align: center; }

/* ---- 回答内の見出し・導線 */
.faq-article__body h2 { margin: 1.6em 0 .5em; font-size: 16px; line-height: 1.6; padding-left: 10px;
  border-left: 3px solid var(--navy); }
.faq-article__body > h2:first-child { margin-top: 0; }
.faq-go { margin-top: 1.4em; }
.faq-go a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 64px;
  background: #fff; border: 1px solid var(--blue); color: var(--blue); font-weight: 700; font-size: 15px;
  text-decoration: none; line-height: 1.4; }
.faq-go a::after { content: "›"; font-size: 18px; line-height: 1; }
.faq-go a:hover { background: var(--blue); color: #fff; }

/* ---- 公式LINE（お問い合わせ窓口の一つ） */
.faq-btn--line { gap: 10px; background: #06c755; color: #fff; }
.faq-btn--line:hover { background: #05b34c; }
.faq-btn--line img { width: 24px; height: 24px; display: block; }
.faq-contact__note { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

@media (max-width: 640px) {
  .faq-popular { padding: 20px 16px 8px; margin-bottom: 36px; }
  .faq-popular__title, .faq-sec-title { font-size: 18px; }
  .faq-go a { display: flex; justify-content: center; }
}
