/*
 * FUKUOKA INFO テーマのスタイル
 *
 * 目次
 *  1. 色と書体の変数（ライト／ダーク）
 *  2. 基本
 *  3. ヘッダー
 *  4. 共通部品（帯、波形、縁取りの部品、サムネイル、一覧、カード）
 *  5. トップページ
 *  6. 一覧ページ
 *  7. 記事ページ
 *  8. 本文
 *  9. ウィジェット、フッター、検索ダイアログ
 * 10. 動きを減らす設定への対応
 *
 * 文字サイズは 12 / 14 / 16 / 18 / 20 / 24px の段階に揃える。
 * 画面幅で変わる大きな見出しだけ clamp() を使う。
 */

/* ---------- 1. 色と書体の変数 ---------- */
:root{
  --bg:#F4F5F8; --surface:#FFFFFF; --ink:#15181F; --muted:#5A6170; --line:#DFE2E9; --brand:#C23A56;
  --p-ink:#1B2A4E; --p-hero:#FFD23F; --p-sea:#BFE6F5; --p-pop:#FF7A59; --p-card:#FFFFFF; --p-line:#1B2A4E;
  --c-parking:#1D66C9; --c-move:#D9650A; --c-touristspot:#12875A; --c-gourmet:#C23A56; --c-event:#7347C9;
  --c-fukuoka-airport:#0C7F96; --c-gotoeat-fukuoka:#A05A14; --c-other:#56607A; --c-default:#56607A;
  --font-display:"Zen Maru Gothic","Hiragino Maru Gothic ProN","Hiragino Sans","Yu Gothic Medium","Yu Gothic","Noto Sans JP",Meiryo,sans-serif;
  --font-body:"Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic Medium","Yu Gothic","Noto Sans JP",Meiryo,system-ui,sans-serif;
  --font-num:"Barlow Semi Condensed","Helvetica Neue",Arial,sans-serif;
  --font-en:"Fredoka","Barlow Semi Condensed","Helvetica Neue",Arial,sans-serif;
  --fw-h:700;
  --ease-out:cubic-bezier(0.23,1,0.32,1);
  --gutter:16px; --r-s:6px; --r-m:12px; --r-l:20px;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#0E1117; --surface:#171B23; --ink:#ECEFF4; --muted:#9BA3B3; --line:#2A303C; --brand:#F07A92;
    --p-ink:#F2F4FA; --p-hero:#2B3566; --p-sea:#17384A; --p-pop:#FF8A6B; --p-card:#1A2036; --p-line:#AEB9DC;
    --c-parking:#6AA5F5; --c-move:#F59A4A; --c-touristspot:#4FC796; --c-gourmet:#F07A92; --c-event:#A98BF0;
    --c-fukuoka-airport:#52C1D6; --c-gotoeat-fukuoka:#E0A25C; --c-other:#A3ADC4; --c-default:#A3ADC4;
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#0E1117; --surface:#171B23; --ink:#ECEFF4; --muted:#9BA3B3; --line:#2A303C; --brand:#F07A92;
  --p-ink:#F2F4FA; --p-hero:#2B3566; --p-sea:#17384A; --p-pop:#FF8A6B; --p-card:#1A2036; --p-line:#AEB9DC;
  --c-parking:#6AA5F5; --c-move:#F59A4A; --c-touristspot:#4FC796; --c-gourmet:#F07A92; --c-event:#A98BF0;
  --c-fukuoka-airport:#52C1D6; --c-gotoeat-fukuoka:#E0A25C; --c-other:#A3ADC4; --c-default:#A3ADC4;
  color-scheme:dark;
}
@media (min-width:768px){ :root{ --gutter:24px } }

/* ---------- 2. 基本 ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:120px;-webkit-tap-highlight-color:transparent}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font-body);font-size:16px;line-height:1.7;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none;touch-action:manipulation}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none}
h1,h2,h3,h4,p,ul,ol,dl,dd,figure,blockquote{margin:0}
ul,ol{padding:0;list-style:none}
img{max-width:100%;height:auto}
input,textarea,select{font:inherit;font-size:16px}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:4px}
.wrap{max-width:1120px;margin-inline:auto;padding-left:max(var(--gutter),env(safe-area-inset-left,0px));padding-right:max(var(--gutter),env(safe-area-inset-right,0px))}
.num{font-family:var(--font-num);font-variant-numeric:tabular-nums;letter-spacing:.01em}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip{position:absolute;left:8px;top:-60px;z-index:20;padding:10px 16px;border-radius:999px;background:var(--ink);color:var(--bg);font-weight:700}
.skip:focus{top:8px}
.dot{width:9px;height:9px;border-radius:50%;background:var(--c,var(--muted));flex-shrink:0}
.chev{width:18px;height:18px;flex-shrink:0;transition:transform 200ms var(--ease-out)}

/* ---------- 3. ヘッダー ---------- */
.hd{position:sticky;top:0;z-index:9;background:color-mix(in srgb,var(--bg) 86%,transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.admin-bar .hd{top:32px}
@media (max-width:782px){ .admin-bar .hd{top:46px} }
@media (max-width:600px){ .admin-bar .hd{top:0} }
.hd-row{display:flex;align-items:center;gap:16px;height:56px}
.logo{display:flex;align-items:center;gap:8px;font-family:var(--font-num);font-weight:700;font-size:20px;letter-spacing:.04em;white-space:nowrap}
.logo-mark{width:26px;height:26px;border-radius:50%;background:var(--brand);display:grid;place-items:center;flex-shrink:0}
.logo-mark::after{content:"";width:9px;height:9px;border-radius:50%;background:var(--bg)}
.gnav{display:none;margin-left:auto}
.gnav ul{display:flex;gap:4px}
.gnav a,.chipnav a{display:flex;align-items:center;gap:7px;padding:7px 12px;border-radius:999px;font-size:14px;font-weight:600;white-space:nowrap;transition:background-color 150ms ease}
.gnav a[aria-current="page"],.chipnav a[aria-current="page"]{background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}
.search-btn{margin-left:auto;display:flex;align-items:center;gap:8px;height:38px;padding:0 12px;border-radius:999px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);color:var(--muted);font-size:14px;transition:transform 140ms var(--ease-out)}
.search-btn kbd{display:none;font-family:var(--font-num);font-size:12px;padding:1px 6px;border-radius:4px;box-shadow:inset 0 0 0 1px var(--line)}
.theme-btn{width:38px;height:38px;margin-left:-6px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;background:var(--surface);color:var(--muted);box-shadow:inset 0 0 0 1px var(--line);transition:transform 140ms var(--ease-out)}
.theme-btn svg{width:18px;height:18px}
.search-btn:active,.btn:active{transform:scale(.97)}
.theme-btn:active{transform:scale(.94)}
.chipnav{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;border-top:1px solid var(--line)}
.chipnav::-webkit-scrollbar{display:none}
.chipnav ul{display:flex;gap:2px;padding-block:6px;width:max-content}
@media (min-width:900px){
  .gnav{display:block}.chipnav{display:none}.search-btn{margin-left:8px}.search-btn kbd{display:inline}
  .hd-row{height:64px}
}
.progress{position:fixed;inset:0 0 auto;height:3px;z-index:11;background:var(--p-pop);transform-origin:0 50%;transform:scaleX(0)}

/* ---------- 4. 共通部品 ---------- */
.p-band{color:var(--p-ink);position:relative}
.p-hero{background:var(--p-hero)}
.p-sea{background:var(--p-sea)}
.wave{display:block;width:100%;height:28px;margin-bottom:-1px}
.tagline{font-size:14px;font-weight:600;opacity:.75}

/* 縁取りと影のある部品。押すと影の分だけ沈む。 */
.stk{border:2.5px solid var(--p-line);box-shadow:4px 4px 0 var(--p-line);background:var(--p-card);color:var(--p-ink);transition:transform 140ms var(--ease-out),box-shadow 140ms var(--ease-out)}
a.stk:active,button.stk:active{transform:translate(3px,3px);box-shadow:1px 1px 0 var(--p-line)}

.thumb{position:relative;display:grid;place-items:center;aspect-ratio:16/9;max-width:100%;border-radius:var(--r-m);overflow:hidden;align-self:start;background:color-mix(in srgb,var(--c,var(--c-default)) 14%,var(--surface));color:var(--c,var(--c-default))}
.thumb svg{width:34%;max-width:56px;height:auto}
.thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform 240ms var(--ease-out)}
.thumb.big{grid-auto-flow:row;align-content:center;gap:10px;text-align:center;padding:16px}
.thumb.big svg{width:56px;margin-inline:auto}
.thumb.big b{font-family:var(--font-display);font-weight:var(--fw-h);font-size:clamp(18px,3.4vw,28px);line-height:1.4;color:var(--ink)}

.cat{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--c,var(--c-default))}

.list{border-top:1px solid var(--line)}
.item{display:grid;grid-template-columns:112px minmax(0,1fr);gap:14px;padding-block:16px;border-bottom:1px solid var(--line)}
.item-body{display:block;min-width:0}
.item-title{display:block;font-family:var(--font-display);font-weight:700;font-size:16px;line-height:1.5;margin-top:2px}
.item-ex{display:none;font-size:14px;color:var(--muted);margin-top:6px;line-height:1.7;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.item-meta{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:6px;font-size:12px;color:var(--muted)}
.item-meta .num{font-size:14px}
@media (min-width:640px){
  .item{grid-template-columns:200px minmax(0,1fr);gap:20px;padding-block:20px}
  .item-title{font-size:18px}.item-ex{display:-webkit-box}
  .item.lead{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}
  .item.lead .item-title{font-size:24px;line-height:1.4}
  .item.lead .item-ex{-webkit-line-clamp:4}
}
@media (max-width:639px){
  .item.lead{grid-template-columns:minmax(0,1fr)}
  .item.lead .item-title{font-size:20px;line-height:1.45}
  .item.lead .item-ex{display:-webkit-box}
}
.empty{padding:28px 0;color:var(--muted);font-size:16px}

.m-card{display:grid;gap:8px;align-content:start}
.m-card .thumb{border:2px solid var(--p-line);border-radius:14px}
.m-title{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-family:var(--font-display);font-weight:700;font-size:14px;line-height:1.5}
.m-tags{display:flex;flex-wrap:wrap;gap:5px}
.m-tags span{font-size:12px;font-weight:700;padding:2px 9px;border-radius:999px;background:color-mix(in srgb,var(--p-ink) 9%,transparent);white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.m-card time{font-size:14px;opacity:.7}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 20px;border-radius:999px;font-size:14px;font-weight:700;border:2.5px solid var(--p-line);box-shadow:4px 4px 0 var(--p-line);background:var(--p-card);color:var(--p-ink);transition:transform 140ms var(--ease-out),box-shadow 140ms var(--ease-out)}
.btn:active{transform:translate(3px,3px);box-shadow:1px 1px 0 var(--p-line)}

.sec-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin-bottom:12px}
.sec-title{font-family:var(--font-display);font-weight:var(--fw-h);font-size:24px;line-height:1.3}
.sec-tools{display:flex;align-items:center;gap:12px;margin-left:auto}
.count{font-size:14px;color:var(--muted)}
.seg{display:inline-flex;padding:3px;border-radius:999px;background:var(--line)}
.seg a{padding:6px 14px;border-radius:999px;font-size:14px;font-weight:700;color:var(--muted);transition:background-color 150ms ease,color 150ms ease}
.seg a[aria-current="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.08)}

.pager{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;padding-top:28px}
.pager .page-numbers,.pager > a,.pager > span{min-width:42px;height:42px;padding:0 12px;display:grid;place-items:center;border-radius:999px;font-family:var(--font-num);font-weight:700;font-size:16px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}
.pager .current{background:var(--ink);color:var(--bg);box-shadow:none}
.pager .dots{background:none;box-shadow:none}
.pager .prev,.pager .next{font-family:var(--font-body);font-size:14px}

.field{display:flex;align-items:center;gap:8px;height:48px;padding:0 16px;border-radius:999px;border:2.5px solid var(--p-line);background:var(--p-card);color:var(--muted);max-width:520px}
.field input[type="search"]{flex:1;min-width:0;border:0;background:none;outline:0;color:var(--ink)}
.field:focus-within{box-shadow:3px 3px 0 var(--p-pop)}

.cols{display:grid;grid-template-columns:minmax(0,1fr);gap:40px;padding-block:24px 56px}
@media (min-width:980px){ .cols{grid-template-columns:minmax(0,1fr) 320px;gap:48px} }

/* ---------- 5. トップページ ---------- */
.p-hero-in{padding-block:28px 16px}
.p-hero h1{font-family:var(--font-display);font-weight:var(--fw-h);font-size:clamp(30px,6.4vw,58px);line-height:1.25;letter-spacing:-.01em;max-width:17em;text-wrap:balance}
.p-search{display:flex;align-items:center;gap:10px;height:60px;padding:0 18px;border-radius:999px;margin-top:22px;max-width:620px}
.p-search input{flex:1;min-width:0;border:0;outline:0;background:none;font-size:16px;font-weight:600;color:var(--p-ink)}
.p-search:focus-within{box-shadow:4px 4px 0 var(--p-pop);border-color:var(--p-ink)}
.p-kw{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:16px;font-size:14px;font-weight:700}
.p-kw .stk{padding:5px 13px;border-radius:999px;border-width:2px;box-shadow:2px 2px 0 var(--p-line)}
.p-res{max-width:620px;margin-top:14px;background:var(--p-card);border-radius:18px;padding:0 14px}
.p-res:empty{display:none}
.p-res .item,.dlg-body .item{grid-template-columns:72px minmax(0,1fr);gap:12px;padding-block:10px}
.p-res .item{border-color:color-mix(in srgb,var(--p-ink) 15%,transparent)}
.p-res li:last-child .item{border-bottom:0}
.p-res .item-title,.dlg-body .item-title{font-size:14px}
.p-res .thumb,.dlg-body .thumb{aspect-ratio:1;border-radius:10px}
.p-city{width:100%;margin-bottom:-1px}
.p-city.pc{display:none;height:240px}
.p-city.sp{display:block;height:auto;max-height:210px}
@media (min-width:768px){ .p-hero-in{padding-block:48px 16px} .p-city.pc{display:block} .p-city.sp{display:none} }

.mx-panels{display:grid;grid-template-columns:minmax(0,1fr);gap:26px;padding-block:28px 44px}
.mx-panel{border-radius:28px;padding:18px 16px 22px}
.mx-head,.p-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 14px}
.p-en{font-family:var(--font-en);font-weight:600;font-size:clamp(34px,6vw,52px);line-height:1;letter-spacing:-.01em}
.mx-head h2,.p-head h2{font-family:var(--font-display);font-weight:var(--fw-h);font-size:18px}
.mx-head .num{margin-left:auto;font-size:16px}
.mx-intro{margin:8px 0 18px;font-size:14px;line-height:1.8;max-width:44em}
.mx-body{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:start}
.mx-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}
.mx-more{display:flex;justify-content:flex-end;margin-top:20px}
.mx-btn{display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:0 20px;border-radius:999px;font-weight:700;font-size:14px}
.mx-btn .chev{width:16px;height:16px}
.p-map{background:color-mix(in srgb,var(--p-sea) 55%,var(--p-card));border-radius:20px;padding:6px}
.p-map svg{display:block;width:100%;max-width:330px;height:auto;margin-inline:auto;overflow:visible}
.p-map .ln{stroke:var(--p-ink);stroke-width:3;stroke-linecap:round;stroke-dasharray:1 10}
.p-map .st{pointer-events:bounding-box;cursor:pointer}
.p-map .st circle{fill:var(--p-pop);stroke:var(--p-ink);stroke-width:3;transition:transform 200ms var(--ease-out);transform-box:fill-box;transform-origin:center}
.p-map text{fill:var(--p-ink);font-family:var(--font-display);font-weight:var(--fw-h);font-size:16px}
.p-map .hub circle{fill:var(--p-hero);stroke:var(--p-ink);stroke-width:3}
.p-map .hub text{font-size:18px}
.mx-two{display:grid;grid-template-columns:minmax(0,1fr);gap:28px;padding-block:8px}
.mx-two .p-en{font-size:clamp(30px,5vw,44px)}
.mx-two .p-kw{margin-top:14px}
.p-cats{display:flex;flex-wrap:wrap;gap:14px 18px;margin-top:14px}
.p-cat{display:grid;justify-items:center;gap:8px;font-size:14px;font-weight:700;width:72px;text-align:center;line-height:1.4}
.p-cat .stk{width:60px;height:60px;border-radius:50%;display:grid;place-items:center;color:var(--c,var(--c-default))}
.p-cat svg{width:28px;height:28px}
@media (min-width:768px){
  .mx-panel{padding:26px 28px 28px}
  .mx-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 18px}
  .mx-two{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:40px}
}
@media (min-width:900px){
  .mx-body.has-map{grid-template-columns:330px minmax(0,1fr);gap:28px}
  .mx-body.has-map .mx-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ---------- 6. 一覧ページ ---------- */
.a-band{padding-top:22px}
.a-band .wrap{padding-bottom:14px}
.crumb{display:flex;flex-wrap:wrap;gap:6px;font-size:14px;margin-bottom:12px;opacity:.8}
.crumb a{text-decoration:underline;text-underline-offset:3px}
.chead-row{display:flex;align-items:center;gap:14px}
.cicon{width:52px;height:52px;border-radius:14px;flex-shrink:0;display:grid;place-items:center;background:var(--c,var(--c-default));color:var(--p-card);border:2.5px solid var(--p-line);box-shadow:3px 3px 0 var(--p-line)}
.cicon svg{width:28px;height:28px}
.chead h1{font-family:var(--font-display);font-weight:var(--fw-h);font-size:clamp(26px,5vw,40px);line-height:1.25;overflow-wrap:anywhere}
.chead p{margin-top:12px;max-width:60ch;opacity:.85}
.cat-search,.cat-search-wrap{margin-bottom:20px}

/* ---------- 7. 記事ページ ---------- */
.art-head .cat{background:var(--p-card);padding:3px 12px;border-radius:999px;border:2px solid var(--p-line)}
.art-head h1{font-family:var(--font-display);font-weight:var(--fw-h);font-size:clamp(25px,4.4vw,38px);line-height:1.35;margin-top:10px;max-width:22em;overflow-wrap:anywhere}
.art-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;margin-top:14px;font-size:14px;opacity:.85}
.art-dates{display:flex;flex-wrap:wrap;gap:6px 16px}
.art-note{margin-top:8px;font-size:12px;line-height:1.6;opacity:.85;max-width:44em}
.art-meta .num{font-size:16px}
.art{display:grid;grid-template-columns:minmax(0,1fr);gap:40px;padding-block:20px 56px}
@media (min-width:980px){ .art{grid-template-columns:minmax(0,1fr) 300px;gap:56px} }
.art-hero .thumb{border:2.5px solid var(--p-line);border-radius:22px;box-shadow:5px 5px 0 var(--p-line)}
.art-hero{margin-bottom:28px}
.art-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:36px}
.art-tags a{padding:5px 14px;border-radius:999px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);font-size:14px;font-weight:700}
.related{margin-top:56px}
.related .sec-title{margin-bottom:12px}
.art-side{display:grid;gap:32px;align-content:start}
.toc{display:none;position:sticky;top:88px}
.admin-bar .toc{top:120px}
@media (min-width:980px){ .toc{display:block} }
.toc h2{font-size:14px;font-family:var(--font-display);font-weight:700;margin-bottom:8px}
.toc > ol{max-height:calc(100vh - 240px);overflow-y:auto;overscroll-behavior:contain;padding:2px 0 2px 2px}
.toc .btn{margin-top:20px;width:100%}
.page-body{padding-block:24px 56px}

/* ---------- 8. 本文 ---------- */
.prose{max-width:40em;font-size:16px;line-height:1.75;letter-spacing:.025em;overflow-wrap:anywhere}
.page-body .prose{max-width:none}
.prose > * + *{margin-top:1.25em}
.prose h2{font-family:var(--font-display);font-weight:var(--fw-h);font-size:20px;line-height:1.5;margin-top:2.4em;background:var(--p-hero);color:var(--p-ink);padding:10px 18px;border-radius:16px;scroll-margin-top:120px}
.prose h3{font-family:var(--font-display);font-weight:700;font-size:18px;line-height:1.5;margin-top:1.9em;display:flex;align-items:baseline;gap:10px;scroll-margin-top:120px}
.prose h3::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--p-pop);flex-shrink:0;transform:translateY(-1px)}
.prose h4{font-family:var(--font-display);font-weight:700;font-size:16px;line-height:1.6;margin-top:1.6em}
.prose a{color:var(--c-parking);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.prose ul,.prose ol{padding-left:1.4em}
.prose ul{list-style:disc}.prose ol{list-style:decimal}
.prose li + li{margin-top:.4em}
.prose li::marker{color:var(--p-pop);font-weight:700}
.prose img{border-radius:var(--r-m)}
.prose figure{max-width:100%}
.prose figcaption,.prose .wp-caption-text{font-size:12px;color:var(--muted);margin-top:6px;line-height:1.6}
.prose blockquote{padding:14px 18px;border-left:4px solid var(--p-pop);background:var(--surface);border-radius:0 var(--r-m) var(--r-m) 0;color:var(--muted)}
.prose table{border-collapse:collapse;width:100%;font-size:14px;line-height:1.6;background:var(--p-card);color:var(--p-ink)}
.prose th,.prose td{padding:11px 14px;text-align:left;border:1px solid color-mix(in srgb,var(--p-ink) 18%,transparent);vertical-align:top}
.prose thead th,.prose tr:first-child > th{background:color-mix(in srgb,var(--p-hero) 45%,var(--p-card))}
.prose .tblwrap{overflow-x:auto;max-width:100%;border-radius:var(--r-m);border:2px solid var(--p-line)}
.prose .tblwrap table{min-width:480px;border-style:hidden}
.prose .wp-block-table{overflow:visible}
.prose iframe,.prose video{max-width:100%}
.prose .alignleft{float:left;margin:0 1.2em .6em 0}.prose .alignright{float:right;margin:0 0 .6em 1.2em}
.prose .aligncenter{display:block;margin-inline:auto}
.prose .wp-caption{max-width:100%}

/*
 * 目次（路線図の形）。大見出しを駅、小見出しを小さな停車駅として、縦の点線でつなぐ。
 * 本文内の目次（.toc-m）と、PC 幅で記事の横に出る目次（.toc）で同じ形を使う。
 */
.toc-m{background:var(--p-card);color:var(--p-ink);border:2.5px solid var(--p-line);box-shadow:4px 4px 0 var(--p-line);border-radius:18px;padding:0 16px}
.toc-m summary{cursor:pointer;padding:14px 0;font-family:var(--font-display);font-weight:700;font-size:16px;list-style:none;display:flex;justify-content:space-between;gap:16px}
.toc-m summary::-webkit-details-marker{display:none}
.toc-m summary::after{content:"";width:10px;height:10px;margin-top:6px;flex-shrink:0;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform 200ms var(--ease-out)}
.toc-m details[open] summary::after{transform:rotate(-135deg);margin-top:11px}
.toc-m details > ol{padding:0 0 14px 2px}

.toc-m ol,.toc ol{list-style:none;margin:0}
.toc-m ol ol,.toc ol ol{padding:0}
.toc-m details > ol,.toc > ol{position:relative}
.toc-m details > ol::before,.toc > ol::before{content:"";position:absolute;left:8px;top:14px;bottom:14px;border-left:3px dotted var(--p-ink)}
.toc-m li,.toc li{position:relative;margin:0}
.toc-m details > ol > li,.toc > ol > li{padding-left:32px}
.toc-m a,.toc a{display:block;padding:6px 0;font-size:14px;line-height:1.5;font-weight:700;color:inherit;text-decoration:none}
.toc-m ol ol a,.toc ol ol a{font-size:12px;font-weight:600;padding:4px 0;opacity:.85}
/* 駅（大見出し） */
.toc-m details > ol > li::before,.toc > ol > li::before{content:"";position:absolute;left:2px;top:8px;width:15px;height:15px;border-radius:50%;background:var(--p-pop);border:3px solid var(--p-ink);transition:transform 200ms var(--ease-out),background-color 150ms ease}
.toc-m details > ol > li:first-child::before,.toc > ol > li:first-child::before{background:var(--p-hero)}
/* 小さな停車駅（小見出し） */
.toc-m ol ol li::before,.toc ol ol li::before{content:"";position:absolute;left:-27px;top:8px;width:9px;height:9px;border-radius:50%;background:var(--p-card);border:2px solid var(--p-ink)}
.toc ol ol li::before{background:var(--bg)}
/* PC 幅の目次: 読んでいる位置の駅を目立たせる */
.toc{color:var(--ink)}
.toc > ol::before,.toc li::before{border-color:var(--ink)}
.toc > ol::before{border-left-color:var(--ink)}
.toc a{color:var(--muted);transition:color 150ms ease}
.toc a[aria-current="true"]{color:var(--ink)}
.toc li:has(> a[aria-current="true"])::before{background:var(--p-hero);transform:scale(1.3)}
/* 大見出しが多い記事では、先頭の5つだけを出し、ボタンで残りを開く（スクリプトが動くときだけ）。 */
.toc-more{display:none}
.js .toc-m.is-long:not(.is-open) details > ol > li:nth-child(n+6){display:none}
.js .toc-m.is-long:not(.is-open) details > ol::before{bottom:0}
.js .toc-m.is-long:not(.is-open) .toc-more{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;margin:0 0 14px;min-height:40px;border-radius:999px;background:color-mix(in srgb,var(--p-ink) 8%,transparent);font-size:14px;font-weight:700;transition:transform 140ms var(--ease-out)}
.toc-more:active{transform:scale(.98)}
/* 本文内の目次は、PC 幅でも出す。記事の横の目次はサイドバーのウィジェットの下にあり、最初は画面に入らないため。 */
@media (min-width:768px){ .prose h2{font-size:24px;line-height:1.45} }

/* 要点カード。本文に <div class="keys"><div class="key">…</div></div> と書くと使える。 */
.keys{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));max-width:none}
.key{border:2.5px solid var(--p-line);box-shadow:4px 4px 0 var(--p-line);background:var(--p-card);color:var(--p-ink);border-radius:18px;padding:14px 16px;line-height:1.5}
.key b{display:block;font-family:var(--font-display);font-size:16px}
.key dl{display:grid;grid-template-columns:auto 1fr;gap:2px 12px;margin-top:8px;font-size:14px}
.key dt{opacity:.75}
.key dd{font-weight:700;text-align:right;white-space:nowrap}

.linkcard{display:grid;grid-template-columns:120px minmax(0,1fr);gap:14px;align-items:center;padding:12px;border-radius:16px;border:2px solid var(--p-line);background:var(--p-card);color:var(--p-ink)!important;text-decoration:none!important;line-height:1.5}
.linkcard-ext{grid-template-columns:minmax(0,1fr)}
.linkcard-body{display:block;min-width:0}
.linkcard-sub{display:block;font-size:12px;font-weight:700;opacity:.7}
.linkcard-title{display:block;font-family:var(--font-display);font-weight:700;font-size:16px;overflow-wrap:anywhere}
/* 広告が読み込まれる前から高さを確保し、読み込み後に本文の位置がずれないようにする。 */
.ad-slot{margin-block:2.4em;text-align:center;min-height:306px;overflow:hidden}
.ad-label{display:block;font-size:12px;color:var(--muted);margin-bottom:6px;line-height:1.5}
.side .widget_custom_html:has(.adsbygoogle),.widgets-inline .widget_custom_html:has(.adsbygoogle){min-height:280px}

/* サイトマップ */
.sitemap{display:grid;gap:40px}
.prose + .sitemap{margin-top:40px}
.sitemap .sec-title{margin-bottom:14px}
.sitemap-cats{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.sitemap-cat{background:var(--surface);border-radius:var(--r-l);padding:16px 18px}
.sitemap-cat h3{display:flex;align-items:center;justify-content:space-between;gap:12px;font-family:var(--font-display);font-weight:700;font-size:18px;padding-bottom:10px;border-bottom:2px solid var(--c,var(--c-default))}
.sitemap-cat h3 a{display:flex;align-items:center;gap:8px}
.sitemap-cat h3 .num{font-size:14px;color:var(--muted)}
.sitemap-cat li a,.sitemap-pages a{display:block;padding:9px 0;border-bottom:1px solid var(--line);font-size:14px;line-height:1.6}
.sitemap-cat li:last-child a{border-bottom:0}
.sitemap-pages{background:var(--surface);border-radius:var(--r-l);padding:6px 18px}
.sitemap-pages li:last-child > a{border-bottom:0}
.sitemap-pages .children{padding-left:16px}
@media (min-width:768px){ .sitemap-cats{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start} }

.comments{margin-top:56px}
.comment-list{list-style:none;padding:0;margin-top:12px}
.comment-list .comment-body{padding:16px 0;border-bottom:1px solid var(--line)}
.comment-list .children{list-style:none;padding-left:20px}
.comment-form label{display:block;font-size:14px;font-weight:700;margin-bottom:4px}
.comment-form input[type="text"],.comment-form input[type="email"],.comment-form input[type="url"],.comment-form textarea{width:100%;padding:10px 12px;border-radius:var(--r-m);border:1px solid var(--line);background:var(--surface);color:var(--ink)}
.comment-form p{margin-top:14px}
.comment-form .submit{min-height:46px;padding:0 24px;border-radius:999px;border:0;background:var(--ink);color:var(--bg);font-weight:700;cursor:pointer}

/* ---------- 9. ウィジェット、フッター、検索ダイアログ ---------- */
.side{display:grid;gap:32px;align-content:start;min-width:0}
.widget{min-width:0;overflow-wrap:anywhere}
.widget-title,.widget .wp-block-heading{font-family:var(--font-display);font-weight:var(--fw-h);font-size:18px;margin-bottom:8px}
.widget ul:not(.list):not(.catlist){display:grid;gap:2px}
.widget ul:not(.list):not(.catlist) a{display:block;padding:8px 0;border-bottom:1px solid var(--line);font-size:14px;font-weight:600;line-height:1.5}
.widget select{width:100%;height:44px;border-radius:var(--r-m);border:1px solid var(--line);background:var(--surface);color:var(--ink);padding:0 10px}
.widget .field{max-width:none}
.widget img{border-radius:var(--r-s)}
.widget p{font-size:14px}
.wp-block-search__label{display:block;font-size:12px;font-weight:700;margin-bottom:6px}
.wp-block-search__inside-wrapper{display:flex;gap:8px}
.wp-block-search__input{flex:1;min-width:0;height:44px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--ink)}
.wp-block-search__button{flex-shrink:0;height:44px;padding:0 16px;border-radius:999px;border:0;background:var(--ink);color:var(--bg);font-weight:700;font-size:14px;cursor:pointer;white-space:nowrap;margin:0}
.pick .item{grid-template-columns:96px minmax(0,1fr);gap:12px;padding-block:12px}
.pick .item-title{font-size:14px;line-height:1.5}
.pick .item-meta{display:none}
.catlist{background:var(--surface);border-radius:var(--r-m);padding:6px;display:grid;grid-template-columns:1fr 1fr}
.catlist a{display:flex;align-items:center;gap:8px;padding:10px;border-radius:var(--r-s);font-size:14px;font-weight:600;transition:background-color 150ms ease}
.widgets-inline{display:grid;gap:16px;margin-block:0 24px;font-size:14px;color:var(--muted)}
.widgets-inline + #list{margin-top:0}
#list + .widgets-inline{margin-top:32px}

.ft{border-top:1px solid var(--line);padding-block:28px 40px;font-size:14px;color:var(--muted)}
.ft-widgets{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:24px;padding-bottom:24px}
.ft-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 24px}
.ft-row ul{display:flex;flex-wrap:wrap;gap:6px 20px}
.ft-row a{text-decoration:underline;text-underline-offset:3px}

dialog#search{border:0;padding:0;background:var(--surface);color:var(--ink);border-radius:var(--r-l);width:min(640px,calc(100vw - 24px));max-height:min(620px,80dvh);margin:max(12px,8dvh) auto auto;box-shadow:0 24px 64px rgba(0,0,0,.28);overflow:hidden;opacity:1;transform:none;transition:opacity 200ms var(--ease-out),transform 200ms var(--ease-out),overlay 200ms allow-discrete,display 200ms allow-discrete}
dialog#search[open]{display:flex;flex-direction:column}
dialog#search.instant{transition:none}
@starting-style{ dialog#search[open]{opacity:0;transform:scale(.97) translateY(8px)} }
dialog#search::backdrop{background:rgba(10,13,20,.5)}
.dlg-top{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--line);color:var(--muted)}
.dlg-top input{flex:1;min-width:0;border:0;outline:0;background:none;font-size:16px;color:var(--ink)}
.dlg-top button{font-size:14px;padding:6px 10px;border-radius:999px;box-shadow:inset 0 0 0 1px var(--line)}
.dlg-body{overflow-y:auto;padding:6px 16px 12px;overscroll-behavior:contain}
.dlg-body .list{border-top:0}

/* マウスで操作できる環境だけ、重ねたときの変化をつける（タッチ端末で変化が残るのを防ぐ）。 */
@media (hover:hover) and (pointer:fine){
  .gnav a:hover,.chipnav a:hover{background:var(--surface)}
  .item:hover .item-title,.m-card:hover .m-title,.linkcard:hover .linkcard-title{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
  .item:hover .thumb img,.m-card:hover .thumb img{transform:scale(1.03)}
  .catlist a:hover{background:var(--bg)}
  a.stk:hover,button.stk:hover,.btn:hover{transform:translate(-1px,-1px);box-shadow:5px 5px 0 var(--p-line)}
  a.stk:active,button.stk:active,.btn:active{transform:translate(3px,3px);box-shadow:1px 1px 0 var(--p-line)}
  .p-kw a.stk:hover{box-shadow:3px 3px 0 var(--p-line)}
  .p-map .st:hover circle{transform:scale(1.3)}
  .p-cat:hover .stk{transform:translate(-1px,-1px) rotate(-6deg);box-shadow:5px 5px 0 var(--p-line)}
  .mx-btn:hover .chev{transform:translateX(3px)}
  .seg a:hover{color:var(--ink)}
  .widget ul:not(.list):not(.catlist) a:hover,.toc a:hover,.art-tags a:hover{color:var(--brand)}
  .sitemap a:hover{color:var(--brand)}
}

/* ---------- 10. 動き ---------- */
@media (prefers-reduced-motion:no-preference){
  .mx-hero .rise{animation:rise 520ms var(--ease-out) both;animation-delay:calc(var(--i) * 70ms)}
  .mx-hero .p-city{animation:cityup 700ms var(--ease-out) 220ms both}
  .p-city .plane{animation:fly 7s ease-in-out infinite alternate}
  /* 透明からは始めない。透明な要素は「表示された」と計測されず、LCP が遅くなる。 */
  @keyframes rise{from{transform:translateY(10px)}to{transform:none}}
  @keyframes cityup{from{transform:translateY(26px)}to{transform:none}}
  @keyframes fly{from{transform:translate(0,0)}to{transform:translate(-14px,10px)}}
}
@media (prefers-reduced-motion:reduce){ *,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important} }
