/* ROVAL FAQ — 静的版スタイル（元: WordPress / Lightning テーマの見た目に合わせて再構築） */
:root {
  --c-primary: #00a8e4;
  --c-primary-dark: #0086b6;
  --c-text: #333;
  --c-muted: #666;
  --c-line: rgba(0, 0, 0, .12);
  --c-link-blue: #002fff;
  --container: 960px;
  --font: Lato, "Noto Sans JP", "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", メイリオ, Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--c-text); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 15px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ヘッダー */
.site-header { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .05); position: relative; z-index: 10; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 94px; }
.site-logo { margin: 0; line-height: 0; }
.site-logo img { display: block; width: 180px; height: auto; }
.global-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.global-nav a { display: block; padding: 14px 18px; font-size: 12px; font-weight: 700; text-decoration: none; color: var(--c-text); border-bottom: 2px solid transparent; }
.global-nav a:hover { color: var(--c-primary); }
.global-nav .is-current a { border-bottom-color: var(--c-primary); }

/* トップのメイン画像 */
.hero { height: min(31vw, 420px); min-height: 160px; overflow: hidden; background: #ddd; }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ページ見出し・パンくず */
.page-header { background: var(--c-primary); color: #fff; text-align: center; padding: 42px 0; }
.page-header-title { margin: 0; font-size: 32px; line-height: 1.4; font-weight: 700; }
.breadcrumb { font-size: 12px; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.breadcrumb ol { list-style: none; margin: 0; padding: 8px 0; display: flex; flex-wrap: wrap; color: var(--c-muted); }
.breadcrumb li + li::before { content: "›"; margin: 0 .6em; }
.breadcrumb a { color: var(--c-muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* 本文 */
.site-body { padding: 48px 0 56px; }
.entry-body > *:first-child { margin-top: 0; }
.entry-body p { margin: 0 0 24px; line-height: 1.7; }
.entry-body h2 { font-size: 24px; line-height: 1.4; font-weight: 700; margin: 48px 0 24px; padding: 0 0 12px; border-bottom: 1px solid var(--c-line); }
.entry-body ul { margin: 16px 0 24px; padding-left: 24px; }
.entry-body li { margin: 0 0 4px; }
.entry-body li a { color: var(--c-muted); text-decoration: underline dotted rgba(0, 0, 0, .3); }
.entry-body li a:hover { color: var(--c-primary); }
.entry-body p a { color: #1a6fd0; }
.entry-body figure { margin: 0 0 24px; }
.entry-body figure img { display: block; }

.table-wrap { overflow-x: auto; margin: 0 0 24px; }
.entry-body table { border-collapse: collapse; }
.entry-body th, .entry-body td { padding: 8px 16px; font-size: 14px; border: 1px solid #fff; vertical-align: middle; }
.entry-body th { background: #aaa; }
.entry-body td { background: #f6f6f6; }

.btn-wrap { margin: 0 0 24px; }
.btn { display: inline-block; padding: 12px 32px; background: var(--c-primary-dark); color: #fff !important; font-weight: 700; text-decoration: none; border-radius: 4px; }
.btn:hover { background: var(--c-primary); }

/* トップのカテゴリ一覧 */
.entry-body .category-grid { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 16px; }
.category-grid li { margin: 0; }
.entry-body .category-grid a { display: block; text-align: center; text-decoration: none; color: var(--c-link-blue); font-weight: 700; line-height: 1.5; }
.category-grid img { display: block; margin: 0 auto 8px; width: 150px; max-width: 100%; height: auto; transition: opacity .2s; }
.category-grid a:hover img { opacity: .75; }
.category-grid a:hover span { text-decoration: underline; }

/* フッター */
.site-footer { background: #fff; }
.site-footer-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 40px; padding-bottom: 32px; font-size: 14px; }
.footer-title { margin: 0 0 16px; padding: 0 0 8px; font-size: 16px; font-weight: 700; border-bottom: 1px solid var(--c-line); }
.footer-col p { margin: 0 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 6px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.site-footer-copyright { padding-top: 16px; padding-bottom: 24px; font-size: 10px; color: #000; }
.site-footer-copyright p { margin: 0; }

/* ページ上部へ戻る */
.to-top { position: fixed; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; background: var(--c-primary); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); z-index: 20; }
.to-top::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border-left: 3px solid #fff; border-top: 3px solid #fff; transform: translate(-50%, -30%) rotate(45deg); }
.to-top:hover { background: var(--c-primary-dark); }
.to-top[hidden] { display: none; }

@media (max-width: 767px) {
  .site-header-inner { flex-direction: column; align-items: center; gap: 0; padding-top: 12px; padding-bottom: 4px; min-height: 0; }
  .site-logo img { width: 150px; }
  .global-nav ul { flex-wrap: wrap; justify-content: center; }
  .global-nav a { padding: 10px 12px; }
  .page-header { padding: 28px 0; }
  .page-header-title { font-size: 22px; }
  .site-body { padding: 32px 0 40px; }
  .entry-body h2 { font-size: 19px; margin: 36px 0 18px; }
  .entry-body .category-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer-content { grid-template-columns: 1fr; }
  .entry-body table { width: 100% !important; }
  .entry-body th, .entry-body td { padding: 8px 10px; }
}
