/*
Theme Name: Career Reference
Description: 転職・キャリア用語辞典のリファレンス型テーマ（アイキャッチ対応・画像/Webフォントなしの装飾）
Version: 2.0.0
Text Domain: fx-reference
*/

/* ===== tokens ===== */
:root{
  --bg:#fff; --surface:#fff; --surface-2:#f5f7fa; --zebra:#fafbfc;
  --text:#1a2230; --text-strong:#0f1622; --muted:#596273;
  --line:#e3e7ee; --line-strong:#c9d0db; --ui-border:#8a94a6; --shadow-edge:rgba(15,22,34,.14);
  --warn:#9a4505; --warn-bg:#fff6ec; --warn-line:#f5c58f;
  --ok:#0b6b3a; --ok-bg:#edf8f1; --ok-line:#a8dcbd;
  --info:#1d4f8f; --info-bg:#eef5fc;
  --accent:#1f56c9; --accent-strong:#163f97; --accent-soft:#ecf2fd; --accent-softer:#f5f8fe; --accent-ring:rgba(31,86,201,.28); --accent-2:#0e7490;
  --code-bg:#0f172a; --code-text:#e6edf7; --on-accent:#fff;
  --font-sans:"Hiragino Sans","Hiragino Kaku Gothic ProN","BIZ UDPGothic",Meiryo,"Noto Sans JP","Noto Sans CJK JP",system-ui,sans-serif;
  --font-mono:ui-monospace,SFMono-Regular,Menlo,Consolas,"BIZ UDGothic",monospace;
  --fs-body:clamp(16px,.25vw + 15.2px,17px); --lh-body:1.9;
  --fs-h3:clamp(17.5px,.5vw + 15.5px,19px); --fs-h2:clamp(20px,1vw + 16.5px,24px);
  --fs-h1:clamp(24px,2vw + 17px,32px); --fs-hero:clamp(26px,3vw + 16px,40px);
  --radius-sm:6px; --radius-md:10px; --radius-lg:14px; --radius-pill:999px;
  --shadow-1:0 1px 2px rgba(16,24,40,.05);
  --shadow-2:0 1px 2px rgba(16,24,40,.04),0 4px 12px rgba(16,24,40,.07);
  --shadow-3:0 2px 4px rgba(16,24,40,.04),0 12px 32px rgba(16,24,40,.12);
  --ease:cubic-bezier(.2,.7,.2,1); --dur:200ms;
  --header-h:56px; --w-page:1200px; --w-content:680px; --w-side:300px; --gutter:clamp(16px,4vw,32px);
  --ico-chat:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11h-9l-5 4v-4H4z'/%3E%3C/svg%3E");
  --ico-warn:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l10 18H2zM12 10v5M12 18v.5'/%3E%3C/svg%3E");
  color-scheme:light;
}
@media (min-width:1024px){:root{--header-h:64px}}


/* ===== base ===== */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 16px);-webkit-text-size-adjust:100%}
html.is-locked{overflow:hidden}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font-sans);font-size:16px;line-height:1.85;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
[hidden]{display:none!important}
a{color:var(--accent);text-decoration:none;transition:color var(--dur) var(--ease)}
a:hover{text-decoration:underline;text-underline-offset:3px}
img{max-width:100%;height:auto}
.ico{flex:none;vertical-align:-.2em}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
.skip-link{position:absolute;left:12px;top:-60px;z-index:200;background:var(--text-strong);color:var(--bg);padding:10px 16px;border-radius:var(--radius-md);font-weight:700}
.skip-link:focus{top:12px;text-decoration:none}

/* ===== header ===== */
.site-header{position:sticky;top:0;z-index:50;height:var(--header-h);background:var(--bg);-webkit-backdrop-filter:saturate(1.4) blur(10px);backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--line)}
.site-header__in{max-width:var(--w-page);height:100%;margin:0 auto;padding:0 var(--gutter);display:flex;align-items:center;gap:16px}
.site-title{display:flex;flex-direction:column;justify-content:center;color:var(--text-strong);line-height:1.25;min-width:0}
.site-title:hover{text-decoration:none}
.site-title__name{font-weight:800;font-size:18px;letter-spacing:.01em;white-space:nowrap}
.site-title__name::before{content:"";display:inline-block;width:.6em;height:.6em;margin-right:.4em;border-radius:3px;background:var(--accent);vertical-align:.05em}
.site-house .site-title__name::before{border-radius:50% 50% 2px 2px}
.site-title small{font-size:11px;font-weight:400;color:var(--muted);letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:34vw}
.gnav{display:none;gap:2px;margin-left:auto}
.gnav a{color:var(--text);padding:8px 12px;border-radius:var(--radius-md);font-size:14px;font-weight:600}
.gnav a:hover{background:var(--surface-2);text-decoration:none}
.icon-btn{display:inline-grid;place-items:center;width:44px;height:44px;border:0;border-radius:var(--radius-md);background:transparent;color:var(--text);cursor:pointer}
.icon-btn:hover{background:var(--surface-2)}
.search-toggle{margin-left:auto}
.nav-toggle{margin-right:-8px}

@supports (background:color-mix(in srgb,red 50%,blue)){.site-header{background:color-mix(in srgb,var(--bg) 88%,transparent)}}

/* search form */
.search-form{display:flex;align-items:center;gap:8px;height:52px;padding:0 6px 0 18px;background:var(--surface);border:1px solid var(--ui-border);border-radius:var(--radius-pill);box-shadow:var(--shadow-1);transition:box-shadow var(--dur) var(--ease),border-color var(--dur) var(--ease)}
.search-form:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-ring)}
.search-form__ico{color:var(--muted)}
.search-form input[type=search]{flex:1;min-width:0;height:100%;border:0;background:transparent;color:var(--text);font:inherit;font-size:16px;outline:none;-webkit-appearance:none;appearance:none}
.search-form input::placeholder{color:var(--muted);opacity:1}
.search-form button{height:40px;padding:0 22px;border:0;border-radius:var(--radius-pill);background:var(--accent);color:var(--on-accent);font:inherit;font-size:15px;font-weight:700;cursor:pointer;transition:background var(--dur) var(--ease)}
.search-form button:hover{background:var(--accent-strong)}
.search-form--header{display:none;height:40px;padding:0 12px;flex:1;max-width:400px;margin-left:12px;background:var(--surface-2);border-color:var(--ui-border);box-shadow:none}
.search-form--header input[type=search]{font-size:14px}
.search-form__key{font:600 12px/1 var(--font-mono);color:var(--muted);border:1px solid var(--line-strong);border-radius:5px;padding:3px 6px;background:var(--surface)}
.m-search{padding:10px var(--gutter);background:var(--bg);border-bottom:1px solid var(--line);position:sticky;top:var(--header-h);z-index:49}
.m-search .search-form{height:48px}

/* drawer */
.scrim{position:fixed;inset:0;z-index:80;background:rgba(10,15,25,.5)}
.drawer{position:fixed;top:0;right:0;bottom:0;z-index:90;width:min(86vw,360px);display:flex;flex-direction:column;background:var(--surface);overflow-y:auto;box-shadow:var(--shadow-3);padding:0 8px 24px}
.drawer[hidden]{display:none}
.drawer__head{display:flex;align-items:center;justify-content:space-between;height:var(--header-h);padding:0 4px 0 12px;font-size:16px}
.drawer__title{margin:18px 12px 6px;font-size:12px;font-weight:700;letter-spacing:.08em;color:var(--muted)}
.drawer__list{list-style:none;margin:0;padding:0}
.drawer__list a{display:flex;align-items:center;gap:12px;min-height:48px;padding:6px 12px;border-radius:var(--radius-md);color:var(--text);font-weight:600}
.drawer__list a span{flex:1}
.drawer__list a small{color:var(--muted);font-weight:400}
.drawer__list a:hover{background:var(--surface-2);text-decoration:none}
.drawer__list .ico{color:var(--accent)}

/* reading progress / back to top (CSS scroll-driven, no JS) */
.single .site-header::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;background:var(--accent);transform-origin:0 50%;transform:scaleX(0);pointer-events:none}
.to-top{position:fixed;right:16px;bottom:calc(env(safe-area-inset-bottom) + 88px);z-index:40;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--surface);color:var(--text);border:1px solid var(--line-strong);box-shadow:var(--shadow-2)}
.to-top:hover{background:var(--accent);color:var(--on-accent);border-color:var(--accent);text-decoration:none}
@supports (animation-timeline:scroll()){
  .single .site-header::after{animation:fx-progress linear both;animation-timeline:scroll(root)}
  .to-top{opacity:0;pointer-events:none;visibility:hidden;animation:fx-totop linear both;animation-timeline:scroll(root);animation-range:420px 640px}
  @keyframes fx-progress{to{transform:scaleX(1)}}
  @keyframes fx-totop{to{opacity:1;pointer-events:auto;visibility:visible}}
}
@media (min-width:1024px){.to-top{bottom:24px;right:24px}}

/* ===== layout ===== */
.wrap{max-width:var(--w-page);margin:0 auto;padding:28px var(--gutter) 72px;display:block}
.wrap--full{padding-top:40px}
.main{min-width:0}
.sidebar{display:none;font-size:14px}
@media (min-width:1024px){
  .gnav,.search-form--header{display:flex}
  .icon-btn,.m-search,.scrim,.drawer{display:none!important}
  .wrap:not(.wrap--full){display:grid;grid-template-columns:minmax(0,var(--w-content)) var(--w-side);gap:72px;justify-content:center;padding-top:36px}
  .sidebar{display:block}
}
.sidebar .box{position:sticky;top:calc(var(--header-h) + 24px);max-height:calc(100vh - var(--header-h) - 48px);overflow:auto;padding-right:6px;scrollbar-width:thin}
.side-title{margin:0 0 8px;font-size:12px;font-weight:700;letter-spacing:.08em;color:var(--muted)}
.sidebar ul{list-style:none;margin:0 0 24px;padding:0}
.sidebar li a{display:flex;justify-content:space-between;gap:8px;padding:7px 10px;border-radius:var(--radius-sm);color:var(--text);font-size:14px;line-height:1.5}
.sidebar li a:hover{background:var(--surface-2);text-decoration:none}
.sidebar li a.is-current{background:var(--accent-soft);color:var(--accent-strong);font-weight:700}
.sidebar .count{color:var(--muted);font-size:12px}
.side-cats summary{cursor:pointer;font-size:12px;font-weight:700;letter-spacing:.08em;color:var(--muted);padding:6px 0;list-style:none}
.side-cats summary::-webkit-details-marker{display:none}
.side-cats summary::after{content:" ▾"}

/* breadcrumb */
.crumb{display:flex;flex-wrap:wrap;align-items:center;font-size:13px;color:var(--muted);margin:0 0 20px}
.crumb a{color:var(--muted)}
.crumb span+span::before{content:"›";margin:0 8px;color:var(--line-strong)}
.crumb span:last-child:not(:first-child){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:60vw}
@media (max-width:599px){.single .crumb span:last-child:not(:first-child){display:none}}

/* ===== hero ===== */
.hero{position:relative;isolation:isolate;overflow:hidden;padding:48px var(--gutter) 40px;text-align:center;border-bottom:1px solid var(--line);background:radial-gradient(60% 90% at 50% 0%,var(--accent-soft),transparent 72%),var(--bg)}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;opacity:.55;background-image:radial-gradient(var(--line-strong) 1px,transparent 1.2px);background-size:22px 22px;-webkit-mask-image:radial-gradient(70% 70% at 50% 25%,#000,transparent);mask-image:radial-gradient(70% 70% at 50% 25%,#000,transparent)}
.hero__in{max-width:760px;margin:0 auto}
.hero__badge{display:inline-block;margin:0 0 18px;padding:4px 14px;border-radius:var(--radius-pill);background:var(--surface);border:1px solid var(--line);font-size:12.5px;font-weight:600;color:var(--muted);box-shadow:var(--shadow-1)}
.hero h1{margin:0 0 14px;font-size:var(--fs-hero);line-height:1.35;letter-spacing:.01em;color:var(--text-strong);text-wrap:balance;word-break:auto-phrase}
.hero__lead{margin:0 auto 26px;max-width:640px;color:var(--muted);font-size:15.5px;line-height:1.85}
.hero .search-form{max-width:600px;margin:0 auto;height:56px;box-shadow:var(--shadow-2)}
.hero__chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center;margin:20px 0 0;font-size:13px;color:var(--muted)}
.hero__chips a{padding:5px 14px;border-radius:var(--radius-pill);background:var(--surface);border:1px solid var(--line);color:var(--text);font-weight:600}
.hero__chips a:hover{border-color:var(--accent);color:var(--accent);text-decoration:none}
.site-fx .hero::before{background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);background-size:28px 28px}
.site-ai .hero::before{background-image:radial-gradient(var(--accent) 1px,transparent 1.3px);opacity:.22}
@media (min-width:1024px){.hero{padding:80px var(--gutter) 64px}}
@media (max-width:599px){.hero h1 br{display:none}}

/* ===== category cards ===== */
.cat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 48px}
@media (min-width:600px){.cat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:1024px){.cat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.cat-grid a{display:grid;grid-template-columns:44px 1fr;grid-template-rows:auto auto;column-gap:12px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);color:var(--text);transition:border-color var(--dur) var(--ease),box-shadow var(--dur) var(--ease),transform var(--dur) var(--ease)}
.cat-grid a:hover{border-color:var(--accent);box-shadow:var(--shadow-2);transform:translateY(-2px);text-decoration:none}
.cat-ico{grid-row:span 2;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--accent-soft);color:var(--accent);transition:background var(--dur) var(--ease),color var(--dur) var(--ease)}
.cat-grid a:hover .cat-ico{background:var(--accent);color:var(--on-accent)}
.cat-grid b{font-size:15px;line-height:1.35;color:var(--text-strong)}
.cat-grid small{font-size:12.5px;color:var(--muted)}
.cat-grid--compact{margin-top:24px}

/* ===== lists ===== */
.groups{display:grid;gap:8px 56px}
@media (min-width:1024px){.groups{grid-template-columns:repeat(2,minmax(0,1fr))}}
.group{margin:0 0 36px}
.group__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:10px;margin-bottom:4px;border-bottom:1px solid var(--line-strong)}
.group__head h2{display:flex;align-items:center;gap:10px;margin:0;font-size:19px;color:var(--text-strong)}
.group__ico{color:var(--accent)}
.group__head .count{margin-right:auto;margin-left:4px;font-size:12px;font-weight:600;color:var(--muted);background:var(--surface-2);padding:2px 10px;border-radius:var(--radius-pill)}
.group__head a.all{font-size:13px;font-weight:600;white-space:nowrap}
.ref-list{list-style:none;margin:0;padding:0}
.ref-list li+li{border-top:1px solid var(--line)}
.ref-list a{position:relative;display:block;padding:14px 28px 14px 12px;margin:0 -12px;border-radius:var(--radius-md);color:var(--text);transition:background var(--dur) var(--ease)}
.ref-list a::after{content:"›";position:absolute;right:12px;top:50%;margin-top:-.7em;font-size:22px;line-height:1;color:var(--line-strong);transition:transform var(--dur) var(--ease),color var(--dur) var(--ease)}
.ref-list a:hover{background:var(--accent-softer);text-decoration:none}
.ref-list a:hover::after{transform:translateX(3px);color:var(--accent)}
.ref-list .term{display:block;font-weight:700;font-size:16px;line-height:1.55;color:var(--text-strong)}
.ref-list a:hover .term{color:var(--accent)}
.ref-list .desc{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:3px;color:var(--muted);font-size:13.5px;line-height:1.65}

/* ===== article ===== */
.entry__head{margin-bottom:8px}
.entry__head a.cat{display:inline-flex;align-items:center;gap:6px;margin-bottom:14px;padding:4px 12px;border-radius:var(--radius-pill);background:var(--accent-soft);color:var(--accent-strong);font-size:13px;font-weight:700}
.entry__head a.cat:hover{text-decoration:none;filter:brightness(.97)}
.entry__title{margin:0 0 14px;font-size:var(--fs-h1);line-height:1.45;letter-spacing:.02em;color:var(--text-strong);text-wrap:balance;word-break:auto-phrase;font-feature-settings:"palt"}
.entry__sub{display:block;margin-top:.35em;font-size:.58em;font-weight:600;line-height:1.6;color:var(--muted);letter-spacing:.02em;font-feature-settings:normal}
.entry__meta{display:flex;flex-wrap:wrap;gap:4px 16px;list-style:none;margin:0 0 22px;padding:0;font-size:13px;color:var(--muted)}
.entry__meta li{display:inline-flex;align-items:center;gap:5px}
.lead{margin:0 0 16px;padding:18px 20px;border:1px solid var(--accent-soft);border-left:4px solid var(--accent);border-radius:var(--radius-md);background:var(--accent-softer);color:var(--text);font-size:calc(var(--fs-body) + .5px);line-height:1.8}
.lead::before{content:"ひとことで言うと";display:block;margin-bottom:4px;font-size:12px;font-weight:700;letter-spacing:.08em;color:var(--accent-strong)}
.entry__trust{display:flex;gap:8px;align-items:flex-start;margin:0 0 26px;font-size:13px;line-height:1.7;color:var(--muted)}
.entry__trust .ico{margin-top:.35em;color:var(--ok)}
.entry__trust a{text-decoration:underline;text-underline-offset:3px}

/* TOC */
.toc{font-size:14.5px}
.toc--inline{margin:0 0 32px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface-2)}
.toc--inline summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:0 16px;cursor:pointer;list-style:none}
.toc--inline summary::-webkit-details-marker{display:none}
.toc--inline summary b{font-size:14px;letter-spacing:.04em}
.toc__count{margin-left:auto;font-size:12.5px;color:var(--muted)}
.toc--inline summary::after{content:"";width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg) translateY(-2px);transition:transform var(--dur) var(--ease)}
.toc--inline details[open] summary::after{transform:rotate(225deg)}
.entry__body .toc--inline ol{margin:0;padding:4px 16px 14px;list-style:none;counter-reset:toc}
.entry__body .toc--inline li{margin:0}
.entry__body .toc--inline li.l2{counter-increment:toc}
.entry__body .toc--inline li a{display:block;padding:10px 0;color:var(--text);border-top:1px solid var(--line);text-decoration:none}
.toc--inline li.l2>a::before{content:counter(toc) ". ";color:var(--muted);font-variant-numeric:tabular-nums}
.entry__body .toc--inline li.l3{margin-left:1.4em;font-size:13.5px}
@media (min-width:1024px){.toc--inline{display:none}}
.toc--side{margin:0 0 28px}
.toc__title{margin:0 0 8px;font-size:12px;font-weight:700;letter-spacing:.08em;color:var(--muted)}
.toc--side ol{list-style:none;margin:0;padding:0}
.toc--side a{display:block;padding:6px 0 6px 14px;border-left:2px solid var(--line);color:var(--muted);font-size:13.5px;line-height:1.5;transition:color var(--dur) var(--ease),border-color var(--dur) var(--ease)}
.toc--side a:hover{color:var(--text);text-decoration:none}
.toc--side a:focus-visible{outline-offset:-2px}
.toc--side a[aria-current=true]{color:var(--accent);border-left-color:var(--accent);font-weight:700}

/* body typography */
.entry__body{font-size:var(--fs-body);line-height:var(--lh-body);letter-spacing:.03em;line-break:strict;overflow-wrap:anywhere;text-autospace:normal;text-spacing-trim:trim-start}
.entry__body p{margin:0 0 1.4em;text-wrap:pretty}
.entry__body h2,.entry__body h3,.entry__body h4{color:var(--text-strong);text-wrap:balance;word-break:auto-phrase;font-feature-settings:"palt";letter-spacing:.02em}
.entry__body h2{position:relative;margin:2.6em 0 .9em;padding-bottom:.45em;font-size:var(--fs-h2);line-height:1.5;border-bottom:1px solid var(--line)}
.entry__body h2::before{content:"";position:absolute;left:0;bottom:-1px;width:2.5em;height:3px;border-radius:2px;background:var(--accent)}
.entry__body h3{margin:2em 0 .6em;padding-left:.6em;font-size:var(--fs-h3);line-height:1.55;border-left:4px solid var(--accent)}
.entry__body h4{margin:1.6em 0 .4em;font-size:17px}
.entry__body ul,.entry__body ol{margin:0 0 1.4em;padding-left:1.5em}
.entry__body li{margin:.3em 0}
.entry__body li::marker{color:var(--muted)}
.entry__body a{text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--accent) 40%,transparent);text-underline-offset:3px}
.entry__body a:hover{text-decoration-color:var(--accent)}
.entry__body strong{color:var(--text-strong)}
.entry__body hr{border:0;border-top:1px solid var(--line);margin:2.4em 0}
.entry__body code{background:var(--surface-2);border:1px solid var(--line);border-radius:5px;padding:.1em .4em;font-size:.88em;font-family:var(--font-mono);letter-spacing:0}
.entry__body pre{margin:0 0 1.6em;padding:1em 1.2em;overflow:auto;background:var(--code-bg);color:var(--code-text);border-radius:var(--radius-md);font-size:.88em;line-height:1.7;tab-size:2;letter-spacing:0}
.entry__body pre code{background:none;border:0;padding:0;color:inherit}

/* tables（the_content フィルターで .tbl に包む。包まれない表も崩れない） */
.entry__body .tbl{overflow-x:auto;margin:0 0 1.8em;border:1px solid var(--line);border-radius:var(--radius-md);-webkit-overflow-scrolling:touch;scrollbar-width:thin;
  background:linear-gradient(to right,var(--surface) 30%,transparent) left/24px 100% no-repeat local,linear-gradient(to left,var(--surface) 30%,transparent) right/24px 100% no-repeat local,radial-gradient(farthest-side at 0 50%,var(--shadow-edge),transparent) left/10px 100% no-repeat scroll,radial-gradient(farthest-side at 100% 50%,var(--shadow-edge),transparent) right/10px 100% no-repeat scroll}
.entry__body .tbl:focus-visible{outline-offset:2px}
.entry__body table{width:100%;margin:0;border-collapse:separate;border-spacing:0;font-size:.94em;line-height:1.65;font-variant-numeric:tabular-nums;letter-spacing:.01em}
.entry__body>table,.entry__body :not(.tbl)>table{display:block;overflow-x:auto;max-width:100%;margin:0 0 1.8em;border:1px solid var(--line);border-radius:var(--radius-md)}
.entry__body th,.entry__body td{padding:.7em 1em;text-align:left;vertical-align:top;border-bottom:1px solid var(--line);border-right:1px solid var(--line);min-width:5.5em}
.entry__body thead th{background:var(--surface-2);color:var(--text-strong);font-weight:700;white-space:nowrap;border-bottom:2px solid var(--line-strong)}
.entry__body tbody tr:nth-child(even) td{background:var(--zebra)}
.entry__body tbody tr:hover td{background:var(--accent-softer)}
.entry__body tbody td:first-child{font-weight:500;color:var(--text-strong)}
.entry__body tr>:last-child{border-right:0}
.entry__body tbody tr:last-child td{border-bottom:0}
.entry__body .tbl table,.entry__body .tbl{border-radius:var(--radius-md)}
@media (max-width:599px){
  .entry__body thead th:first-child,.entry__body tbody td:first-child{position:sticky;left:0;z-index:1;background:var(--surface);box-shadow:1px 0 0 var(--line)}
  .entry__body thead th:first-child{background:var(--surface-2)}
}

/* boxes */
.entry__body blockquote{position:relative;margin:2em 0;padding:16px 20px 16px 52px;border-left:4px solid var(--warn);border-radius:var(--radius-md);background:var(--warn-bg);color:var(--text);font-size:.94em;line-height:1.75}
.entry__body blockquote::before{content:"";position:absolute;left:18px;top:19px;width:20px;height:20px;background:var(--warn);-webkit-mask:var(--ico-warn) center/contain no-repeat;mask:var(--ico-warn) center/contain no-repeat}
.entry__body blockquote p:last-child{margin:0}
.opinion{position:relative;margin:2.6em 0;padding:8px 24px 14px;background:var(--surface);border:1px solid var(--ok-line);border-top:3px solid var(--ok);border-radius:var(--radius-md)}
.entry__body .opinion h2{display:flex;align-items:center;gap:.4em;margin:12px 0 10px;padding:0;border:0;color:var(--ok);font-size:var(--fs-h3)}
.entry__body .opinion h2::before{position:static;width:1.1em;height:1.1em;border-radius:0;background:currentColor;-webkit-mask:var(--ico-chat) center/contain no-repeat;mask:var(--ico-chat) center/contain no-repeat}
.opinion p:last-child{margin-bottom:0}
.opinion::after{content:"一つの考え方であり、結果を保証するものではありません。";display:block;margin-top:12px;font-size:12px;letter-spacing:.02em;color:var(--muted)}
.sources{margin-top:2.6em;padding:20px 24px;background:var(--surface-2);border-radius:var(--radius-md);font-size:14px;line-height:1.75;color:var(--muted)}
.entry__body .sources h2{margin:0 0 8px;padding:0;border:0;font-size:15px;color:var(--text-strong)}
.entry__body .sources h2::before{display:none}
.sources ul{margin:0;padding-left:1.3em}
.sources li{margin:.3em 0}
.sources a[target=_blank]::after{content:"↗";content:"↗" / "（新しいタブで開きます）";margin-left:.25em;font-size:.85em}
.disclaimer{margin:28px 0 0;padding:14px 16px 0;border-top:1px solid var(--line);font-size:12.5px;line-height:1.75;color:var(--muted)}
.is-soon{color:var(--muted)}
.is-soon::after{content:"近日公開";margin-left:.6em;padding:1px 8px;border:1px solid var(--line-strong);border-radius:var(--radius-pill);font-size:.72em;letter-spacing:.02em;white-space:nowrap}

/* intro blocks (category / home) */
.intro{margin:0 0 40px}
.intro .entry__body>h2:first-child{margin-top:.4em}
.intro--home{max-width:760px;margin:8px auto 56px}
.list-title{margin-top:40px}

/* related / pager / archive */
.related{margin-top:48px}
.related h2,.list-title{display:flex;align-items:center;gap:8px;margin:0 0 8px;padding-bottom:10px;font-size:19px;color:var(--text-strong);border-bottom:1px solid var(--line-strong)}
.pager{display:grid;gap:12px;margin-top:40px}
@media (min-width:600px){.pager{grid-template-columns:1fr 1fr}.pager .next{grid-column:2}}
.pager a{display:block;min-height:72px;padding:14px 18px;border:1px solid var(--line);border-radius:var(--radius-lg);color:var(--text-strong);font-weight:600;line-height:1.55;box-shadow:var(--shadow-1);transition:border-color var(--dur) var(--ease),transform var(--dur) var(--ease)}
.pager a:hover{border-color:var(--accent);text-decoration:none}
.pager .prev:hover{transform:translateX(-3px)}.pager .next:hover{transform:translateX(3px)}
.pager small{display:block;margin-bottom:2px;font-size:12px;font-weight:400;color:var(--muted)}
.pager span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pager .next{text-align:right}
.archive-head{margin-bottom:24px}
.archive-head__chip{display:inline-flex;align-items:center;gap:6px;margin-bottom:12px;padding:4px 12px;border-radius:var(--radius-pill);background:var(--accent-soft);color:var(--accent-strong);font-size:13px;font-weight:700}
.archive-head h1{margin:0 0 6px;font-size:var(--fs-h1);line-height:1.4;color:var(--text-strong)}
.archive-head p{margin:0 0 16px;color:var(--muted)}
.pagination{display:flex;flex-wrap:wrap;gap:6px;margin-top:28px}
.pagination a,.pagination span{display:inline-grid;place-items:center;min-width:44px;height:44px;padding:0 12px;border:1px solid var(--line);border-radius:var(--radius-md);color:var(--text);font-size:14px}
.pagination .current{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}

/* ===== footer ===== */
.site-footer{margin-top:24px;border-top:1px solid var(--line);background:var(--surface-2);padding:40px var(--gutter) 28px;font-size:13px;color:var(--muted);content-visibility:auto;contain-intrinsic-size:auto 420px}
@media (max-width:1023px){.site-footer{contain-intrinsic-size:auto 900px}.site-footer li a{min-height:44px}}
.site-footer__in{max-width:var(--w-page);margin:0 auto}
.site-footer__cols{display:grid;gap:28px;margin-bottom:28px}
@media (min-width:1024px){.site-footer__cols{grid-template-columns:1.2fr 1.4fr .8fr;gap:48px}}
.site-footer__name{margin:0 0 4px;font-size:17px;font-weight:800;color:var(--text-strong)}
.site-footer__tag{margin:0 0 16px;line-height:1.7}
.site-footer__sisters-title,.site-footer__title{margin:0 0 8px;font-size:12px;font-weight:700;letter-spacing:.08em}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer__cats ul{columns:2;column-gap:20px}
.site-footer li{margin:0 0 4px}
.site-footer li a{display:inline-flex;align-items:center;gap:8px;min-height:32px;color:var(--text)}
.sisters i{width:8px;height:8px;border-radius:50%;display:inline-block}
.site-footer__notes{padding-top:20px;border-top:1px solid var(--line)}
.site-footer__notes p{margin:0 0 6px;max-width:780px;line-height:1.75}

@media (forced-colors:active){.search-form:focus-within{outline:2px solid CanvasText}}

.google-auto-placed{margin:2em 0;clear:both}
.cat-grid>.google-auto-placed,.groups>.google-auto-placed,.pager>.google-auto-placed,.wrap>.google-auto-placed{grid-column:1/-1}
.entry__body .google-auto-placed{max-width:100%;overflow:hidden}

/* ===== motion / print ===== */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none!important;animation:none!important}
  .single .site-header::after{display:none}
  .to-top{opacity:1!important;pointer-events:auto!important;visibility:visible!important}
}
@media print{
  .site-header,.m-search,.scrim,.drawer,.sidebar,.toc,.pager,.related,.to-top,.hero__chips,ins.adsbygoogle,.google-auto-placed,.site-footer__cols{display:none!important}
  :root{--text:#000;--text-strong:#000;--muted:#444;--bg:#fff;--surface:#fff;--surface-2:#f4f4f4;--line:#ccc;--line-strong:#999;--accent:#000;--ok:#000;--warn:#000}
  .search-form,.skip-link,.crumb{display:none!important}
  .entry__body pre{background:#f6f6f6!important;color:#000!important;border:1px solid #ccc;white-space:pre-wrap}
  .wrap{display:block!important;max-width:none;padding:0}
  body{font-size:10.5pt;line-height:1.7;color:#000;background:#fff}
  .entry__body a[href^="http"]::after{content:" (" attr(href) ")";font-size:.85em;color:#444;word-break:break-all}
  .entry__body h2,.entry__body h3{break-after:avoid}
  .entry__body table,.opinion,blockquote{break-inside:avoid}
  .entry__body .tbl{overflow:visible;background:none}
  .entry__body table{display:table;overflow:visible;background:none}
}

/* ===== 表：先頭列を広げる・スマホで列幅を広げ、横スクロールが分かるようにする ===== */
.entry__body th:first-child,.entry__body td:first-child{min-width:8.5em}
.intro .entry__body td:first-child,.intro .entry__body th:first-child{min-width:10.5em}
.tbl-wrap{margin:0 0 1.8em}
.tbl-wrap .tbl{margin:0}
.tbl-hint{display:none;margin:0 0 6px;font-size:12px;line-height:1.4;font-weight:700;letter-spacing:.04em;color:var(--accent-strong);text-align:right}
.tbl-wrap.is-scrollable .tbl-hint{display:block}
@media (max-width:599px){
  .entry__body th,.entry__body td{min-width:11em;padding:.75em 1em}
  .entry__body th:first-child,.entry__body td:first-child{min-width:8.5em}
  .tbl-wrap .tbl{scrollbar-width:auto;scrollbar-color:var(--accent) var(--surface-2)}
  .tbl-wrap .tbl::-webkit-scrollbar{height:8px}
  .tbl-wrap .tbl::-webkit-scrollbar-thumb{background:var(--accent);border-radius:4px}
  .tbl-wrap .tbl::-webkit-scrollbar-track{background:var(--surface-2)}
}
@media print{.tbl-hint{display:none!important}}

/* ===== アイキャッチ・記事下画像（config の eyecatch / bottom_image が有効なサイトのみ出力される） ===== */
.eyecatch{margin:0 0 20px}
.eyecatch__img,.post-bottom-image__img{display:block;width:100%;height:auto;border-radius:var(--radius-lg);background:var(--surface-2);border:1px solid var(--line)}
.post-bottom-image{margin:2.4em 0 0}
.ref-list .has-thumb a{display:flex;align-items:center;gap:14px}
.ref-list__thumb{flex:0 0 96px;width:96px}
.ref-list__img{display:block;width:96px;height:64px;object-fit:cover;border-radius:var(--radius-md);background:var(--surface-2);border:1px solid var(--line)}
.ref-list__text{flex:1;min-width:0;display:block}
@media (max-width:480px){.ref-list__thumb{flex-basis:72px;width:72px}.ref-list__img{width:72px;height:56px}}


/* mobile: show the full tagline under the logo (wrap instead of ellipsis) */
@media (max-width:1023px){.site-title__name{font-size:17px}.site-title small{font-size:10.5px;line-height:1.25;white-space:normal;overflow:visible;text-overflow:clip;max-width:60vw}}

/* =====================================================================
 * career（転職・キャリア用語辞典）専用デザイン
 * 前向きで親しみやすい：コーラル/オレンジ（アクセント）＋ブルーネイビー（補助）
 * 丸みのあるカード・ステップ番号・チェックリスト・アイキャッチ（1200x630）
 * このファイルは make_themes.py が style.css の末尾に追記する（再生成で消えない）
 * コントラスト比は themes/README_design.md
 * ===================================================================== */

/* ===== tokens（白ベース・ライト固定。ダークモードは無し） ===== */
:root{
  color-scheme:light;
  --bg:#ffffff; --surface:#ffffff; --surface-2:#f5f6f8; --zebra:#fafbfc;
  --text:#1d2738; --text-strong:#131c2c; --muted:#5b6474;
  --line:#e5e8ed; --line-strong:#cdd3dc; --ui-border:#8a94a6; --shadow-edge:rgba(16,24,40,.14);
  --navy:#1f3a5f; --navy-soft:#eaf0f8; --on-navy:#ffffff;
  --coral:#f4a37f; --peach:#ffe6d3;
  --footer-bg:#1f3a5f; --footer-text:#f3f6fa; --footer-muted:#c3d0e0; --footer-title:#ffc9ad; --footer-line:rgba(255,255,255,.18);
  --radius-sm:8px; --radius-xl:28px;
  --shadow-1:0 1px 2px rgba(16,24,40,.06);
  --shadow-2:0 1px 2px rgba(16,24,40,.05),0 6px 16px rgba(16,24,40,.08);
  --shadow-3:0 2px 4px rgba(16,24,40,.05),0 16px 36px rgba(16,24,40,.14);
  --ico-check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

::selection{background:var(--peach);color:var(--text-strong)}

/* ===== header ===== */
.site-header{border-bottom:0;box-shadow:0 1px 0 var(--line)}
.site-header::before{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:linear-gradient(90deg,var(--accent),var(--coral) 50%,var(--navy));pointer-events:none}
.site-title{min-height:44px}
.site-title__name::before{width:.72em;height:.72em;margin-right:.5em;border-radius:50%;background:var(--accent);box-shadow:.32em .2em 0 -.1em var(--navy);vertical-align:0}
.icon-btn{border-radius:50%}
.icon-btn:hover{background:var(--accent-soft);color:var(--accent-strong)}
.gnav a{border-radius:var(--radius-pill)}
.gnav a:hover{background:var(--accent-soft);color:var(--accent-strong)}

/* search */
.search-form button{min-height:44px;height:44px;padding:0 22px}
.search-form--header{border-radius:var(--radius-pill)}
.m-search .search-form{height:52px}

/* drawer */
.drawer{border-radius:var(--radius-xl) 0 0 var(--radius-xl);padding-bottom:calc(env(safe-area-inset-bottom,0px) + 24px)}
.drawer__head{border-bottom:1px solid var(--line);margin-bottom:4px}
.drawer__list a{border-radius:var(--radius-md)}
.drawer__list a:hover{background:var(--accent-soft)}
.drawer__list .ico{box-sizing:content-box;padding:7px;border-radius:50%;background:var(--accent-soft);color:var(--accent)}
.drawer__list a small{min-width:2.2em;padding:1px 8px;border-radius:var(--radius-pill);background:var(--surface-2);text-align:center;font-size:12px}

/* ===== hero（白ベース。写真があるときは .hero--photo） ===== */
.hero{border-bottom:0;padding:40px var(--gutter) 36px;background:var(--bg)}
.hero::before{display:none}
.hero__badge{background:var(--navy);color:var(--on-navy);border:0;box-shadow:none;font-weight:700;letter-spacing:.03em}
.hero h1{color:var(--text-strong)}
.hero__lead{color:var(--muted)}
.hero .search-form{border-color:var(--ui-border);box-shadow:var(--shadow-2)}
.hero__chips a{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;background:var(--surface);border:1px solid var(--line-strong);box-shadow:var(--shadow-1);color:var(--text)}
.hero__chips a::before{content:"#";margin-right:.25em;color:var(--accent);font-weight:800}
.hero__chips a:hover{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-strong)}
@media (min-width:1024px){.hero{padding:72px var(--gutter) 60px}}
@media (max-width:599px){
  .hero{padding:32px var(--gutter) 28px}
  .hero__badge{margin-bottom:14px}
  .hero__lead{font-size:14.5px;line-height:1.8;margin-bottom:20px;text-align:left}
  .hero .search-form{height:52px}
  .hero__chips{gap:8px;justify-content:flex-start}
  .hero__chips>span{flex-basis:100%;text-align:left}
}

/* ファーストビュー写真（hero.jpg 1920x1072。左約4割が白い余白、右に男女2人）
   スマホ・タブレット・小さめのPC：写真を上に幅いっぱい → 下に文字
   1200px以上：写真を右に大きく（高さいっぱい）、左の白い余白に見出し・検索 */
.hero--photo{padding:0;text-align:left}
.hero__photo{position:relative;overflow:hidden;aspect-ratio:4/3;background:#eef0f3}
.hero__img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:95% 0}
.hero--photo .hero__in{max-width:720px;padding:24px var(--gutter) 32px}
.hero--photo .hero__lead{margin-left:0;margin-right:0}
.hero--photo .search-form{margin:0}
.hero--photo .hero__chips{justify-content:flex-start}
.hero--photo .hero__chips>span{flex-basis:100%}
@media (min-width:600px){
  .hero__photo{aspect-ratio:auto;height:min(56.25vw,460px)}
  .hero__img{object-position:100% 22%}
  .hero--photo .hero__in{padding:32px var(--gutter) 44px}
}
@media (min-width:1200px){
  .hero--photo{display:flex;align-items:center;min-height:620px;padding:56px 0 60px}
  .hero--photo .hero__photo{position:absolute;inset:0;z-index:-1;aspect-ratio:auto;background:none}
  /* 高さいっぱい・幅は写真の比率なり。左端は白へフェード（写真の左は白い壁なのでつなぎ目が出ない） */
  .hero--photo .hero__img{position:absolute;top:0;right:max(0px,calc(50% - 800px));width:auto;height:100%;object-fit:cover;
    -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 24%);mask-image:linear-gradient(90deg,transparent 0,#000 24%)}
  .hero--photo .hero__in{width:100%;max-width:var(--w-page);margin:0 auto;padding:0 var(--gutter)}
  .hero--photo .hero__in>*{max-width:470px}
  .hero--photo h1{font-size:clamp(30px,1.2vw + 17px,36px);line-height:1.4}
  .hero--photo h1 br{display:none}
  .hero--photo .hero__lead{font-size:15px;line-height:1.85;margin-bottom:24px}
}
@media (min-width:1600px){
  .hero--photo .hero__img{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 24%,#000 90%,transparent);mask-image:linear-gradient(90deg,transparent 0,#000 24%,#000 90%,transparent)}
}

/* ===== 転職の流れ（トップのステップ） ===== */
.flow{margin:0 0 40px}
.flow__title{display:flex;align-items:center;gap:10px;margin:0 0 14px;font-size:19px;line-height:1.4;color:var(--text-strong)}
.flow__title::before{content:"";flex:none;width:10px;height:10px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}
.flow__list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.flow__item{position:relative;margin:0}
.flow__item>a,.flow__box{display:flex;align-items:center;gap:14px;min-height:64px;height:100%;padding:12px 16px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);color:var(--text);box-shadow:var(--shadow-1);transition:border-color var(--dur) var(--ease),box-shadow var(--dur) var(--ease),transform var(--dur) var(--ease)}
.flow__item>a:hover{border-color:var(--accent);box-shadow:var(--shadow-2);transform:translateY(-2px);text-decoration:none}
.flow__no{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--accent);color:var(--on-accent);font-weight:800;font-size:17px;line-height:1;font-variant-numeric:tabular-nums;box-shadow:0 0 0 4px var(--accent-soft)}
.flow__item:nth-child(even) .flow__no{background:var(--navy);color:var(--on-navy);box-shadow:0 0 0 4px var(--navy-soft)}
.flow__text{display:flex;flex-direction:column;min-width:0;line-height:1.45}
.flow__text b{font-size:16px;color:var(--text-strong)}
.flow__text small{font-size:13px;color:var(--muted)}
.flow__item+.flow__item::before{content:"";position:absolute;left:36px;top:-13px;width:2px;height:14px;border-radius:1px;background:var(--line-strong)}
@media (min-width:1024px){
  .flow__list{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
  .flow__item>a,.flow__box{flex-direction:column;justify-content:flex-start;text-align:center;padding:18px 12px 16px;gap:10px}
  .flow__text{align-items:center}
  .flow__item+.flow__item::before{left:-17px;top:50%;width:18px;height:2px}
}

/* ===== category cards ===== */
.cat-grid a{border-radius:var(--radius-lg);box-shadow:var(--shadow-1);min-height:76px}
.cat-ico{border-radius:50%;background:var(--accent-soft);color:var(--accent)}
.cat-grid a:nth-child(even) .cat-ico{background:var(--navy-soft);color:var(--navy)}
.cat-grid a:hover .cat-ico{background:var(--accent);color:var(--on-accent)}
.cat-grid a:nth-child(even):hover .cat-ico{background:var(--navy);color:var(--on-navy)}
.cat-grid b{font-size:15.5px}
@media (max-width:599px){
  .cat-grid{gap:10px}
  .cat-grid a{grid-template-columns:1fr;row-gap:6px;padding:14px 12px 12px;align-content:start}
  .cat-grid .cat-ico{grid-row:auto;width:40px;height:40px}
}
/* 写真つきカテゴリカード（config の category_photos。写真の無いカテゴリはアイコンの枠で高さを揃える） */
.cat-grid--photo a{grid-template-columns:36px minmax(0,1fr);column-gap:10px;row-gap:0;align-content:start;padding:0 12px 14px;overflow:hidden}
.cat-photo{grid-column:1/-1;display:block;aspect-ratio:3/2;margin:0 -12px 12px;overflow:hidden;background:var(--surface-2);border-bottom:1px solid var(--line)}
.cat-photo__img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .4s var(--ease)}
.cat-grid--photo a:hover .cat-photo__img{transform:scale(1.04)}
.cat-photo--none{display:grid;place-items:center;background:linear-gradient(135deg,var(--peach),var(--accent-soft));color:var(--accent)}
.cat-grid--photo .cat-ico{width:36px;height:36px}
.cat-grid--photo b{line-height:1.4}
@media (min-width:1024px){.cat-grid--photo{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}}
@media (max-width:599px){
  .cat-grid--photo a{grid-template-columns:1fr;row-gap:2px;padding:0 12px 12px}
  .cat-grid--photo .cat-ico{display:none}
  .cat-photo{margin-bottom:10px}
  .cat-grid--photo b{font-size:15px}
}

/* カテゴリ一覧の上部写真 */
.archive-photo{margin:0 0 20px;aspect-ratio:2/1;overflow:hidden;border-radius:var(--radius-lg);background:var(--surface-2);box-shadow:var(--shadow-1)}
.archive-photo__img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 35%}

/* ===== トップのカテゴリ別リスト（丸みのあるパネル） ===== */
.groups{gap:20px 24px}
.group{margin:0;padding:6px 18px 8px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-1)}
.group__head{border-bottom:1px solid var(--line);padding:10px 0;margin-bottom:2px}
.group__head h2{font-size:18px}
.group__ico{box-sizing:content-box;padding:7px;border-radius:50%;background:var(--accent-soft);color:var(--accent)}
.group__head .count{background:var(--navy-soft);color:var(--navy);font-weight:700}
.group__head a.all{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;color:var(--accent)}
.group .ref-list a{margin:0 -10px;padding-left:10px}
@media (max-width:599px){.group{padding:4px 14px 6px}}

/* ===== 一覧（アイキャッチつき） ===== */
.ref-list a{border-radius:var(--radius-md)}
.ref-list a:hover{background:var(--accent-softer)}
.ref-list .has-thumb a{display:flex;align-items:center;gap:14px;padding-top:12px;padding-bottom:12px}
.ref-list__thumb{flex:0 0 128px;width:128px;height:auto;aspect-ratio:1200/630;overflow:hidden;border-radius:12px;background:var(--surface-2);border:1px solid var(--line)}
.ref-list__img{display:block;width:100%;height:100%;object-fit:cover;border:0;border-radius:0;background:none}
.ref-list__thumb--none{display:grid;place-items:center;background:linear-gradient(135deg,var(--peach),var(--accent-soft));color:var(--accent)}
.ref-list__text{flex:1;min-width:0}
@media (max-width:480px){
  .ref-list__thumb{flex-basis:104px;width:104px;border-radius:10px}
  .ref-list__img{width:100%;height:100%}
  .ref-list__thumb--none .ico{width:22px;height:22px}
  .ref-list .has-thumb .term{font-size:15px;line-height:1.5}
  .ref-list .has-thumb .desc{font-size:12.5px;-webkit-line-clamp:2}
}
/* カテゴリ一覧・検索結果・関連記事（.main の中）は、600px以上で画像が上のカード2列 */
@media (min-width:600px){
  .main .ref-list:has(>.has-thumb){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .main .ref-list:has(>.has-thumb)>li+li{border-top:0}
  .main .ref-list>.has-thumb a{flex-direction:column;align-items:stretch;gap:0;height:100%;margin:0;padding:0;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);overflow:hidden;box-shadow:var(--shadow-1);transition:border-color var(--dur) var(--ease),box-shadow var(--dur) var(--ease),transform var(--dur) var(--ease)}
  .main .ref-list>.has-thumb a::after{display:none}
  .main .ref-list>.has-thumb a:hover{border-color:var(--accent);box-shadow:var(--shadow-2);transform:translateY(-2px);background:var(--surface)}
  .main .ref-list>.has-thumb .ref-list__thumb{flex:none;width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0}
  .main .ref-list>.has-thumb .ref-list__thumb--none .ico{width:36px;height:36px}
  .main .ref-list>.has-thumb .ref-list__text{display:block;padding:14px 16px 16px}
}

/* ===== 記事 ===== */
.crumb a{position:relative;display:inline-block}
.crumb a::after{content:"";position:absolute;inset:-12px -4px}
.entry__head a.cat{position:relative;padding:5px 14px;background:var(--accent-soft);color:var(--accent-strong)}
.entry__head a.cat::after{content:"";position:absolute;inset:-6px -2px}
.eyecatch{margin:2px 0 18px;overflow:hidden;border-radius:var(--radius-lg);border:1px solid var(--line);background:var(--surface-2);aspect-ratio:1200/630;box-shadow:var(--shadow-2)}
.eyecatch__img{display:block;width:100%;height:100%;object-fit:cover;border:0;border-radius:0;background:none}
.lead{border:1px solid var(--accent-soft);border-radius:var(--radius-lg);background:var(--accent-softer);padding:16px 20px 18px}
.lead::before{display:table;margin-bottom:8px;padding:2px 12px;border-radius:var(--radius-pill);background:var(--accent);color:var(--on-accent);letter-spacing:.04em}
.entry__trust{padding:10px 14px;border-radius:var(--radius-md);background:var(--surface-2)}

/* 目次（スマホ・タブレット） */
.toc--inline{border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-1)}
.toc--inline summary b::before{content:"";display:inline-block;width:8px;height:8px;margin-right:8px;border-radius:50%;background:var(--accent);vertical-align:.1em}
.toc--inline li.l2>a::before{color:var(--accent);font-weight:700}
.entry__body .toc--inline li a{min-height:44px}

/* 見出し */
.entry__body h2{padding:.5em .8em .5em 1.15em;border-bottom:0;border-radius:var(--radius-md);background:linear-gradient(90deg,var(--accent-soft),var(--surface-2) 60%,transparent)}
.entry__body h2::before{left:.45em;top:.55em;bottom:.55em;width:5px;height:auto;border-radius:3px;background:var(--accent)}
.entry__body .opinion h2,.entry__body .sources h2{background:none;border-radius:0;padding:0}
.entry__body h3{position:relative;border-left:0;padding-left:.85em}
.entry__body h3::before{content:"";position:absolute;left:0;top:.28em;bottom:.28em;width:4px;border-radius:2px;background:var(--navy)}

/* 箇条書き・番号 */
.entry__body ul>li::marker{color:var(--accent)}
.entry__body ol>li::marker{color:var(--accent);font-weight:700}

/* 実践ステップ（h2「…ステップ／手順／流れ」の直後の番号リスト） */
.entry__body ol.is-steps{list-style:none;margin:0 0 1.6em;padding:0;counter-reset:step}
.entry__body ol.is-steps>li{position:relative;counter-increment:step;margin:0;padding:.15em 0 1.1em 3.1em;min-height:2.4em}
.entry__body ol.is-steps>li:last-child{padding-bottom:.2em}
.entry__body ol.is-steps>li::before{content:counter(step);position:absolute;left:0;top:0;display:grid;place-items:center;width:2.2em;height:2.2em;border-radius:50%;background:var(--accent);color:var(--on-accent);font-size:.95em;font-weight:800;line-height:1;letter-spacing:0;font-variant-numeric:tabular-nums;box-shadow:0 0 0 4px var(--accent-soft)}
.entry__body ol.is-steps>li:not(:last-child)::after{content:"";position:absolute;left:calc(1.045em - 1px);top:2.45em;bottom:.2em;width:2px;border-radius:1px;background:var(--line-strong)}

/* チェックリスト（h2「…チェックリスト」の直後の箇条書き） */
.entry__body ul.is-checklist{list-style:none;margin:0 0 1.6em;padding:8px 16px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-1)}
.entry__body ul.is-checklist>li{position:relative;margin:0;padding:.55em 0 .55em 2.1em;border-bottom:1px dashed var(--line-strong)}
.entry__body ul.is-checklist>li:last-child{border-bottom:0}
.entry__body ul.is-checklist>li::before{content:"";position:absolute;left:0;top:.85em;width:1.3em;height:1.3em;border:2px solid var(--accent);border-radius:6px;background:var(--accent-soft)}
.entry__body ul.is-checklist>li::after{content:"";position:absolute;left:.25em;top:1.1em;width:.8em;height:.8em;background:var(--accent);-webkit-mask:var(--ico-check) center/contain no-repeat;mask:var(--ico-check) center/contain no-repeat}

/* ボックス・表 */
.opinion,.sources,.entry__body blockquote{border-radius:var(--radius-lg)}
.entry__body .tbl,.entry__body .tbl table,.entry__body>table,.entry__body :not(.tbl)>table{border-radius:var(--radius-lg)}
.entry__body thead th{background:var(--navy-soft);color:var(--text-strong);border-bottom-color:var(--line-strong)}
@media (max-width:599px){.entry__body thead th:first-child{background:var(--navy-soft)}}
.tbl-hint{color:var(--accent-strong)}
.eyecatch,.post-bottom-image__img{border-radius:var(--radius-lg)}

/* 関連・前後・一覧見出し */
.related h2,.list-title{border-bottom:1px solid var(--line)}
.related h2::before,.list-title::before{content:"";flex:none;width:10px;height:10px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}
.pager a{border-radius:var(--radius-lg);background:var(--surface)}
.pager a:hover{border-color:var(--accent);background:var(--accent-softer)}
.pager small{color:var(--accent-strong);font-weight:700}
.archive-head__chip{background:var(--accent-soft);color:var(--accent-strong)}
.pagination a,.pagination span{border-radius:var(--radius-pill)}
.pagination a:hover{border-color:var(--accent);text-decoration:none}

/* サイドバー（PC） */
.sidebar li a{border-radius:var(--radius-pill);padding:7px 12px}
.sidebar li a:hover{background:var(--accent-softer)}

/* ===== footer（ネイビー） ===== */
.site-footer{background:var(--footer-bg);color:var(--footer-muted);border-top:0;border-radius:var(--radius-xl) var(--radius-xl) 0 0}
.site-footer__name{color:var(--footer-text)}
.site-footer__title{color:var(--footer-title)}
.site-footer li a{color:var(--footer-text)}
.site-footer li a:hover{color:var(--footer-title)}
.site-footer__notes{border-top-color:var(--footer-line)}
.site-footer :focus-visible{outline-color:var(--footer-title)}
@media (max-width:1023px){
  .site-footer{padding-bottom:calc(env(safe-area-inset-bottom,0px) + 104px)}
  .site-footer li{margin:0}
  .site-footer li a{min-height:44px}  /* 共通CSSでは後ろの min-height:32px に負けていたため */
}

/* ページトップ（スマホはアンカー広告の上・safe-area を考慮） */
.to-top{border-color:var(--line-strong);color:var(--accent)}
.to-top:hover{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
@media (max-width:1023px){.to-top{right:calc(env(safe-area-inset-right,0px) + 16px);bottom:calc(env(safe-area-inset-bottom,0px) + 96px)}}

/* ===== motion / print ===== */
@media (prefers-reduced-motion:reduce){
  .cat-grid a:hover,.flow__item>a:hover,.main .ref-list>.has-thumb a:hover,.pager a:hover,.cat-grid--photo a:hover .cat-photo__img{transform:none}
}
@media print{
  :root{--text:#000;--text-strong:#000;--muted:#444;--bg:#fff;--surface:#fff;--surface-2:#f4f4f4;--line:#ccc;--line-strong:#999;--accent:#000;--accent-soft:#eee;--accent-softer:#fff;--navy:#000;--navy-soft:#eee;--on-accent:#fff}
  .flow,.eyecatch,.hero__photo,.cat-photo,.archive-photo{display:none!important}
  .site-footer{background:#fff;color:#000;border-radius:0;padding-bottom:0}
  .entry__body h2{background:none}
}

/* フッターの短いリンクも横幅44px以上（スマホのタップ領域） */
.site-footer li a{min-width:44px}

