/* 固定ページ（404・個人情報の扱い・お問い合わせ）: 読みもの＋フォーム。色は parts.css の変数だけを使う */
.pg-wrap { max-width: 720px; margin: 0 auto; padding: 0 16px 48px; }
.pg-wrap * { box-sizing: border-box; }
.pg-head { padding: 24px 0 8px; }
.pg-head h1 { margin: 0; font-size: var(--cmt-fs-xxl); color: var(--cmt-navy); line-height: 1.3; text-wrap: balance; }
.pg-lead { margin: 12px 0 0; font-size: var(--cmt-fs-m); line-height: 1.8; color: var(--cmt-text); }
.pg-body h2 { margin: 32px 0 8px; font-size: var(--cmt-fs-xl); color: var(--cmt-navy); line-height: 1.4; }
.pg-body p, .pg-body li { font-size: var(--cmt-fs-m); line-height: 1.85; }
.pg-body p { margin: 0 0 12px; }
.pg-body ul { margin: 0 0 12px; padding-left: 1.4em; }
.pg-body a { color: var(--cmt-navy); text-underline-offset: 3px; }
.pg-draft { margin: 0 0 12px; padding: 10px 12px; background: var(--cmt-surface); border-left: 4px solid var(--cmt-text-sub); font-size: var(--cmt-fs-s); line-height: 1.7; color: var(--cmt-text); }
.pg-meta { margin-top: 32px; font-size: var(--cmt-fs-s); color: var(--cmt-text-sub); }
.pg-actions { display: grid; gap: 8px; margin: 24px 0 0; }
.pg-actions .cmt-btn { justify-content: center; }
.pg-code { font-family: var(--cmt-font-mono); font-size: var(--cmt-fs-s); color: var(--cmt-text-sub); letter-spacing: .08em; margin: 0 0 4px; }

/* フォーム */
.pg-form { display: grid; gap: 20px; margin-top: 16px; }
.pg-field { display: grid; gap: 6px; }
.pg-field label, .pg-field legend { font-size: var(--cmt-fs-m); font-weight: 700; color: var(--cmt-text); padding: 0; }
.pg-field .pg-hint { font-size: var(--cmt-fs-s); color: var(--cmt-text-sub); font-weight: 400; }
.pg-field input[type="text"], .pg-field input[type="email"], .pg-field select, .pg-field textarea {
  width: 100%; min-height: var(--cmt-touch); padding: 10px 12px; border: 1px solid var(--cmt-text-sub); background: var(--cmt-white);
  font: inherit; font-size: 16px; color: var(--cmt-text); border-radius: 0;
}
.pg-field textarea { min-height: 160px; line-height: 1.7; resize: vertical; }
.pg-field input:focus-visible, .pg-field select:focus-visible, .pg-field textarea:focus-visible { outline: 3px solid var(--cmt-car); outline-offset: 1px; }
.pg-field fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.pg-check { display: flex; align-items: flex-start; gap: 10px; min-height: var(--cmt-touch); padding: 8px 0; font-size: var(--cmt-fs-m); line-height: 1.6; }
.pg-check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; }
.pg-form .cmt-btn { justify-self: stretch; }
@media (min-width: 760px) {
  .pg-head { padding-top: 40px; }
  .pg-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-form .cmt-btn { justify-self: start; min-width: 240px; }
}
.pg-msg { margin: 0; padding: 12px; border-left: 4px solid var(--cmt-car); background: var(--cmt-car-bg); font-size: var(--cmt-fs-m); line-height: 1.7; }
.pg-msg--bad { border-left-color: var(--cmt-searching); background: var(--cmt-surface); }
.pg-table { width: 100%; border-collapse: collapse; font-size: var(--cmt-fs-m); }
.pg-table th, .pg-table td { padding: 10px 0; border-bottom: 1px solid var(--cmt-line); text-align: left; vertical-align: top; line-height: 1.7; }
.pg-table th { width: 8em; font-weight: 700; color: var(--cmt-text); padding-right: 12px; }
.pg-body ol { margin: 0 0 12px; padding-left: 1.6em; }
.pg-body ol li { font-size: var(--cmt-fs-m); line-height: 1.85; }
.pg-note { margin: 16px 0 0; padding: 12px 14px; background: var(--cmt-surface); border-left: 4px solid var(--cmt-text-sub); }
.pg-note p { margin: 0 0 4px; font-size: var(--cmt-fs-m); line-height: 1.8; }
.pg-note a { color: var(--cmt-navy); }
.pg-req { font-size: var(--cmt-fs-xs); font-weight: 700; color: var(--cmt-searching); margin-left: 4px; }
.pg-state { padding: 32px 0; text-align: center; }
.pg-state h2 { margin: 0 0 8px; font-size: var(--cmt-fs-xl); color: var(--cmt-navy); }
.pg-state p { margin: 0 0 16px; font-size: var(--cmt-fs-m); line-height: 1.8; }
.pg-state[hidden], .pg-form[hidden], .pg-body [hidden] { display: none; }
.pg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pg-count { text-align: right; }

/* よくある質問（問い＝h3、答え＝p）と出典の一覧 */
.pg-body h3 { margin: 24px 0 6px; font-size: var(--cmt-fs-l); color: var(--cmt-text); line-height: 1.5; }
#ab-faq h3 + p { padding-left: 12px; border-left: 3px solid var(--cmt-line); }
.pg-body .so-list { list-style: none; margin: 0 0 12px; padding: 0; }
.so-item { padding: 16px 0; border-bottom: 1px solid var(--cmt-line); }
.pg-body .so-name { margin: 0 0 8px; font-size: var(--cmt-fs-l); font-weight: 700; color: var(--cmt-text); line-height: 1.5; }
.so-item dl { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 4px 12px; margin: 0; }
.so-item dt { font-size: var(--cmt-fs-s); font-weight: 700; color: var(--cmt-text-sub); line-height: 1.8; }
.so-item dd { margin: 0; font-size: var(--cmt-fs-m); line-height: 1.8; overflow-wrap: anywhere; }
.so-item a { display: block; padding: 8px 0; }
.pg-body .so-pref { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.so-pref li { border-bottom: 1px solid var(--cmt-line); }
.so-pref a, .so-pref span { display: block; min-height: var(--cmt-touch); padding: 10px 0; font-size: var(--cmt-fs-m); line-height: 1.6; }
.so-pref span { color: var(--cmt-text); }
@media (min-width: 760px) { .pg-body .so-pref { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pg-body .pv-items { list-style: none; margin: 0 0 12px; padding-left: 1.2em; }
.pg-body .pv-items li { line-height: 1.85; }
.pg-body h4 { margin: 16px 0 6px; font-size: var(--cmt-fs-m); color: var(--cmt-text); line-height: 1.5; }

/* 404: 図・題・戻る道をひとまとめに */
.pg-404-fig { margin: 0 0 20px; border: 1px solid var(--cmt-line); overflow: hidden; max-width: 480px; }
.pg-404-fig svg { display: block; width: 100%; height: auto; }
.pg-head--404 { padding-top: 32px; }

/* よくある質問（開閉） */
.pg-qa { border-bottom: 1px solid var(--cmt-line); }
.pg-qa:first-child { border-top: 1px solid var(--cmt-line); }
.pg-qa summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 4px; font-size: var(--cmt-fs-l); font-weight: 700; line-height: 1.5; color: var(--cmt-navy); cursor: pointer; list-style: none; }
.pg-qa summary::-webkit-details-marker { display: none; }
.pg-qa summary::after { content: "＋"; flex: none; font-weight: 400; color: var(--cmt-text-sub); }
.pg-qa[open] summary::after { content: "－"; }
.pg-qa summary:focus-visible { outline: 3px solid var(--cmt-car); outline-offset: 2px; }
.pg-qa > div { padding: 0 4px 16px; }
.pg-qa > div p { margin: 0; }

/* 盗難被害にあわないために: 対策の 2 列・確認リスト */
.pv-cols { display: grid; gap: 16px; }
.pv-col { background: var(--cmt-surface); padding: 16px 16px 8px; border-top: 4px solid var(--cmt-car); }
.pv-col--bike { border-top-color: var(--cmt-bike); }
.pg-body .pv-col h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: var(--cmt-fs-xl); color: var(--cmt-navy); }
.pv-list { margin: 24px 0 0; }
.pv-list > p { font-size: var(--cmt-fs-s); line-height: 1.8; color: var(--cmt-text-sub); margin: 0 0 8px; }
.pv-prog { font-weight: 700; color: var(--cmt-navy) !important; }
.pv-list--done .pv-prog::after { content: "（すべて確認しました）"; font-weight: 400; }
.pv-items { list-style: none; margin: 0; padding: 0 !important; border-top: 1px solid var(--cmt-line); }
.pv-item { display: flex; align-items: flex-start; gap: 12px; min-height: 52px; padding: 12px 4px; border-bottom: 1px solid var(--cmt-line); cursor: pointer; font-size: var(--cmt-fs-m); line-height: 1.7; }
.pv-item input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--cmt-navy); }
.pv-item input:checked + span { color: var(--cmt-text-sub); text-decoration: line-through; text-decoration-color: var(--cmt-line); }
@media (min-width: 760px) { .pv-cols { grid-template-columns: 1fr 1fr; } }

/* テーマ一覧 */
.cmt-dot--region { background: var(--cmt-region); }
.pg-body h2 .cmt-dot { margin-right: 8px; vertical-align: middle; }
.th-hub { list-style: none; margin: 12px 0 0; padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.th-hub-card { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 76px; padding: 12px 14px; background: var(--cmt-white); border: 1px solid var(--cmt-line); border-top: 4px solid var(--cmt-car); text-decoration: none; color: var(--cmt-navy); }
.th-hub-card--bike { border-top-color: var(--cmt-bike); }
.th-hub-card--region { border-top-color: var(--cmt-line); }
.th-hub-card b { font-size: var(--cmt-fs-l); line-height: 1.4; }
.th-hub-card small { font-size: var(--cmt-fs-xs); line-height: 1.5; color: var(--cmt-text-sub); }
.th-hub-card:hover { border-color: var(--cmt-navy); }
.th-hub-card:focus-visible { outline: 3px solid var(--cmt-car); outline-offset: 2px; }
@media (min-width: 760px) { .th-hub { grid-template-columns: repeat(3, minmax(0, 1fr)); } .th-hub--region { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* 説明と入力欄を分ける枠（スマホでは縦に並ぶ・PC では左に説明・右に入力欄） */
.pg-split { display: block; }

/* 出典の一覧: 県ごとの行（ほかのページからこの行へリンクする） */
.pg-body .so-pref--rows { display: block; }
.so-pref--rows li { padding: 10px 0 10px 4px; border-bottom: 1px solid var(--cmt-line); font-size: var(--cmt-fs-s); line-height: 1.8; scroll-margin-top: 90px; }
.so-pref--rows li a { display: inline; min-height: 0; padding: 0; font-size: var(--cmt-fs-m); font-weight: 700; }
.so-pref--rows li:target { background: var(--cmt-car-bg); box-shadow: inset 4px 0 0 var(--cmt-car); padding-left: 12px; }
@media (min-width: 1080px) { .pg-body .so-pref--rows { column-count: 2; column-gap: 40px; } .so-pref--rows li { break-inside: avoid; } }

/* テーマ一覧のカードの写真（トップと同じ白地の写真を、切り取らず全体を見せる） */
.th-hub-card { justify-content: flex-start; padding-top: 0; overflow: hidden; }
.th-hub-img { display: block; aspect-ratio: 3 / 2; margin: 0 -14px 8px; background: #fff; }
.th-hub-img img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 6px 10px; box-sizing: border-box; }
.th-hub > li { display: flex; } .th-hub-card { flex: 1 1 auto; }

/* 地域のカード（テーマ一覧）: 文字を中ほどに */
.th-hub-card--region { justify-content: center; padding: 12px 14px; min-height: 76px; }

/* 県の写真がある県のカード（テーマ一覧） */
.th-hub-card--photo { position: relative; }
.th-hub-card--photo .cmt-region-photo { position: absolute; inset: 0; display: block; }
.th-hub-card--photo .cmt-region-photo img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.th-hub-card--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.93) 0%, rgba(255,255,255,.82) 34%, rgba(255,255,255,.06) 78%); }
/* 幅の狭いカード（テーマ一覧）でも、トップと同じ割合で写真が見えるように、白の重なりを短くした */
.th-hub-card--photo b, .th-hub-card--photo small { position: relative; z-index: 1; }

/* 車のテーマが 4 つのときは、PC では 1 列に 4 枚（3 枚＋1 枚に分かれて崩れないように） */
@media (min-width: 760px) { .th-hub:not(.th-hub--region):has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* テーマ一覧の県のカードを、車・バイクのカードと同じ縦横の大きさに（写真は全面・文字は下に白をうっすら重ねて読めるように。幅は車のカードと同じ列の幅） */
.th-hub--region .th-hub-card { aspect-ratio: 7 / 8; min-height: 0; justify-content: flex-end; padding: 0 14px 14px; }
.th-hub--region .th-hub-card--photo::after { background: linear-gradient(180deg, rgba(255,255,255,0) 45%, rgba(255,255,255,.9) 78%, rgba(255,255,255,.97) 100%); }

/* テーマ一覧のカードは、車・バイク・県の全部を同じ縦横（横 4：縦 3）・同じ列の幅に。PC は 1 行 4 枚で、バイクが 1 枚だけでも大きくならない */
.th-hub-card { position: relative; aspect-ratio: 4 / 3; min-height: 0; padding: 0 14px 12px; justify-content: flex-end; }
.th-hub-card--car .th-hub-img, .th-hub-card--bike .th-hub-img { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; }
.th-hub-card--car .th-hub-img img, .th-hub-card--bike .th-hub-img img { object-fit: contain; object-position: center top; padding: 8px 10px 52px; }
.th-hub-card--car::after, .th-hub-card--bike::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 55%, rgba(255,255,255,.9) 78%, rgba(255,255,255,.97) 100%); }
.th-hub-card--car b, .th-hub-card--car small, .th-hub-card--bike b, .th-hub-card--bike small { position: relative; z-index: 1; }
.th-hub--region .th-hub-card { aspect-ratio: 4 / 3; padding: 0 14px 12px; }
@media (min-width: 760px) { .th-hub, .th-hub--region, .th-hub:not(.th-hub--region):has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* 説明の 1 行（2 行になることがある）が付くカードは、写真を小さくして、題と重ならないように */
.th-hub-card:has(small) .th-hub-img img { padding-bottom: 78px; }

/* 車・バイクのカードは、写真の枠（上）と題・説明（下）を別々に取り、題が写真に重ならないように。写真の枠は残りの高さ。カードの縦横は 4：3 のまま */
.th-hub-card--car .th-hub-img, .th-hub-card--bike .th-hub-img { position: static; flex: 1 1 0; min-height: 0; margin: 0 -14px 6px; aspect-ratio: auto; }
.th-hub-card--car .th-hub-img img, .th-hub-card--bike .th-hub-img img { object-position: center; padding: 8px 10px 0; }
.th-hub-card:has(small) .th-hub-img img { padding-bottom: 0; }
.th-hub-card--car::after, .th-hub-card--bike::after { display: none; }
.th-hub-card--car b, .th-hub-card--bike b { flex: none; }
/* /theme/ の PC: 本文を枠いっぱいに広げたので、カードは 1 行 5 枚（縦横は全部同じ 4：3） */
@media (min-width: 1080px) { .th-hub, .th-hub--region, .th-hub:not(.th-hub--region):has(> li:nth-child(4):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* 車・バイクのカードは、説明（「300・250・プラドをまとめています」など）の有る無しで写真の大きさが変わらないようにする。写真の枠はどのカードも同じ大きさ、説明は写真の左上に重ねる小さな札にする */
.th-hub-card--car, .th-hub-card--bike { position: relative; }
.th-hub-card--car .th-hub-img, .th-hub-card--bike .th-hub-img { flex: 1 1 0; }
.th-hub-card--car, .th-hub-card--bike { aspect-ratio: 1 / 1; }
.th-hub-card--car .th-hub-img img, .th-hub-card--bike .th-hub-img img,
.th-hub-card:has(small) .th-hub-img img { padding: 36px 8px 0; object-position: center; } /* 上の 36px は説明の札（2 行まで）の置き場。説明の有る無しに関わらず全部同じ */
@media (min-width: 760px) { .th-hub-card--car .th-hub-img img, .th-hub-card--bike .th-hub-img img, .th-hub-card:has(small) .th-hub-img img { padding-top: 30px; } }
.th-hub-card--car small, .th-hub-card--bike small { position: absolute; z-index: 2; left: 6px; top: 6px; max-width: calc(100% - 12px); padding: 2px 6px; background: rgba(255,255,255,.92); border: 1px solid var(--cmt-line); font-size: 11px; line-height: 1.35; color: var(--cmt-text); }
