/*
Theme Name: Claude Code Trouble Notes
Description: 白ベースのリファレンス型テーマ（サムネイルなし）
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(1.6rem,.25vw + 1.52rem,1.7rem); --lh-body:1.9;
  --fs-h3:clamp(1.75rem,.5vw + 1.55rem,1.9rem); --fs-h2:clamp(2rem,1vw + 1.65rem,2.4rem);
  --fs-h1:clamp(2.4rem,2vw + 1.7rem,3.2rem); --fs-hero:clamp(2.6rem,3vw + 1.6rem,4rem);
  --radius-sm:0.6rem; --radius-md:1rem; --radius-lg:1.4rem; --radius-pill:99.9rem;
  --shadow-1:0 0.1rem 0.2rem rgba(16,24,40,.05);
  --shadow-2:0 0.1rem 0.2rem rgba(16,24,40,.04),0 0.4rem 1.2rem rgba(16,24,40,.07);
  --shadow-3:0 0.2rem 0.4rem rgba(16,24,40,.04),0 1.2rem 3.2rem rgba(16,24,40,.12);
  --ease:cubic-bezier(.2,.7,.2,1); --dur:200ms;
  --header-h:5.6rem; --w-page:120rem; --w-content:68rem; --w-side:30rem; --gutter:clamp(1.6rem,4vw,3.2rem);
  --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:751px){:root{--header-h:6.4rem}}


/* ===== base ===== */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 1.6rem);-webkit-text-size-adjust:100%;font-size:62.5%}
@media screen and (max-width:1300px) and (min-width:751px){html{font-size:0.75vw}}
@media screen and (max-width:750px){html{font-size:62.5%}}
html.is-locked{overflow:hidden}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font-sans);font-size:1.6rem;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:0.3rem}
img{max-width:100%;height:auto}
.ico{flex:none;vertical-align:-.2em}
:focus-visible{outline:0.2rem solid var(--accent);outline-offset:0.2rem;border-radius:0.4rem}
.skip-link{position:absolute;left:1.2rem;top:-6rem;z-index:200;background:var(--text-strong);color:var(--bg);padding:1rem 1.6rem;border-radius:var(--radius-md);font-weight:700}
.skip-link:focus{top:1.2rem;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(1rem);backdrop-filter:saturate(1.4) blur(1rem);border-bottom:0.1rem 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:1.6rem}
.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:1.8rem;letter-spacing:.01em;white-space:nowrap}
.site-title__name::before{content:"";display:inline-block;width:.6em;height:.6em;margin-right:.4em;border-radius:0.3rem;background:var(--accent);vertical-align:.05em}
.site-house .site-title__name::before{border-radius:50% 50% 0.2rem 0.2rem}
.site-title small{font-size:1.1rem;font-weight:400;color:var(--muted);letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:34vw}
.gnav{display:none;gap:0.2rem;margin-left:auto}
.gnav a{color:var(--text);padding:0.8rem 1.2rem;border-radius:var(--radius-md);font-size:1.4rem;font-weight:600}
.gnav a:hover{background:var(--surface-2);text-decoration:none}
.icon-btn{display:inline-grid;place-items:center;width:4.4rem;height:4.4rem;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:-0.8rem}

@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:0.8rem;height:5.2rem;padding:0 0.6rem 0 1.8rem;background:var(--surface);border:0.1rem 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 0.3rem 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:1.6rem;outline:none;-webkit-appearance:none;appearance:none}
.search-form input::placeholder{color:var(--muted);opacity:1}
.search-form button{height:4rem;padding:0 2.2rem;border:0;border-radius:var(--radius-pill);background:var(--accent);color:var(--on-accent);font:inherit;font-size:1.5rem;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:4rem;padding:0 1.2rem;flex:1;max-width:40rem;margin-left:1.2rem;background:var(--surface-2);border-color:var(--ui-border);box-shadow:none}
.search-form--header input[type=search]{font-size:1.4rem}
.search-form__key{font:600 1.2rem/1 var(--font-mono);color:var(--muted);border:0.1rem solid var(--line-strong);border-radius:0.5rem;padding:0.3rem 0.6rem;background:var(--surface)}
.m-search{padding:1rem var(--gutter);background:var(--bg);border-bottom:0.1rem solid var(--line);position:sticky;top:var(--header-h);z-index:49}
.m-search .search-form{height:4.8rem}

/* 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,36rem);display:flex;flex-direction:column;background:var(--surface);overflow-y:auto;box-shadow:var(--shadow-3);padding:0 0.8rem 2.4rem}
.drawer[hidden]{display:none}
.drawer__head{display:flex;align-items:center;justify-content:space-between;height:var(--header-h);padding:0 0.4rem 0 1.2rem;font-size:1.6rem}
.drawer__title{margin:1.8rem 1.2rem 0.6rem;font-size:1.2rem;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:1.2rem;min-height:4.8rem;padding:0.6rem 1.2rem;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:-0.1rem;height:0.3rem;background:var(--accent);transform-origin:0 50%;transform:scaleX(0);pointer-events:none}
.to-top{position:fixed;right:1.6rem;bottom:calc(env(safe-area-inset-bottom) + 8.8rem);z-index:40;display:grid;place-items:center;width:4.4rem;height:4.4rem;border-radius:50%;background:var(--surface);color:var(--text);border:0.1rem 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:42rem 64rem}
  @keyframes fx-progress{to{transform:scaleX(1)}}
  @keyframes fx-totop{to{opacity:1;pointer-events:auto;visibility:visible}}
}
@media (min-width:751px){.to-top{bottom:2.4rem;right:2.4rem}}

/* ===== layout ===== */
.wrap{max-width:var(--w-page);margin:0 auto;padding:2.8rem var(--gutter) 7.2rem;display:block}
.wrap--full{padding-top:4rem}
.main{min-width:0}
.sidebar{display:none;font-size:1.4rem}
@media (min-width:751px){
  .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:7.2rem;justify-content:center;padding-top:3.6rem}
  .sidebar{display:block}
}
.sidebar .box{position:sticky;top:calc(var(--header-h) + 2.4rem);max-height:calc(100vh - var(--header-h) - 4.8rem);overflow:auto;padding-right:0.6rem;scrollbar-width:thin}
.side-title{margin:0 0 0.8rem;font-size:1.2rem;font-weight:700;letter-spacing:.08em;color:var(--muted)}
.sidebar ul{list-style:none;margin:0 0 2.4rem;padding:0}
.sidebar li a{display:flex;justify-content:space-between;gap:0.8rem;padding:0.7rem 1rem;border-radius:var(--radius-sm);color:var(--text);font-size:1.4rem;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:1.2rem}
.side-cats summary{cursor:pointer;font-size:1.2rem;font-weight:700;letter-spacing:.08em;color:var(--muted);padding:0.6rem 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:1.3rem;color:var(--muted);margin:0 0 2rem}
.crumb a{color:var(--muted)}
.crumb span+span::before{content:"›";margin:0 0.8rem;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:750px){.single .crumb span:last-child:not(:first-child){display:none}}

/* ===== hero ===== */
.hero{position:relative;isolation:isolate;overflow:hidden;padding:4.8rem var(--gutter) 4rem;text-align:center;border-bottom:0.1rem 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) 0.1rem,transparent 0.12rem);background-size:2.2rem 2.2rem;-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:76rem;margin:0 auto}
.hero__badge{display:inline-block;margin:0 0 1.8rem;padding:0.4rem 1.4rem;border-radius:var(--radius-pill);background:var(--surface);border:0.1rem solid var(--line);font-size:1.25rem;font-weight:600;color:var(--muted);box-shadow:var(--shadow-1)}
.hero h1{margin:0 0 1.4rem;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 2.6rem;max-width:64rem;color:var(--muted);font-size:1.55rem;line-height:1.85}
.hero .search-form{max-width:60rem;margin:0 auto;height:5.6rem;box-shadow:var(--shadow-2)}
.hero__chips{display:flex;flex-wrap:wrap;gap:0.8rem;justify-content:center;align-items:center;margin:2rem 0 0;font-size:1.3rem;color:var(--muted)}
.hero__chips a{padding:0.5rem 1.4rem;border-radius:var(--radius-pill);background:var(--surface);border:0.1rem 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) 0.1rem,transparent 0.1rem),linear-gradient(90deg,var(--line) 0.1rem,transparent 0.1rem);background-size:2.8rem 2.8rem}
.site-ai .hero::before{background-image:radial-gradient(var(--accent) 0.1rem,transparent 0.13rem);opacity:.22}
@media (min-width:751px){.hero{padding:8rem var(--gutter) 6.4rem}}
@media (max-width:750px){.hero h1 br{display:none}}

/* ===== category cards ===== */
.cat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem;margin:0 0 4.8rem}
@media (min-width:751px){.cat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:751px){.cat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.cat-grid a{display:grid;grid-template-columns:4.4rem 1fr;grid-template-rows:auto auto;column-gap:1.2rem;align-items:center;padding:1.4rem;border:0.1rem 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(-0.2rem);text-decoration:none}
.cat-ico{grid-row:span 2;display:grid;place-items:center;width:4.4rem;height:4.4rem;border-radius:1.2rem;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:1.5rem;line-height:1.35;color:var(--text-strong)}
.cat-grid small{font-size:1.25rem;color:var(--muted)}
.cat-grid--compact{margin-top:2.4rem}

/* ===== lists ===== */
.groups{display:grid;gap:0.8rem 5.6rem}
@media (min-width:751px){.groups{grid-template-columns:repeat(2,minmax(0,1fr))}}
.group{margin:0 0 3.6rem}
.group__head{display:flex;align-items:center;justify-content:space-between;gap:1.2rem;padding-bottom:1rem;margin-bottom:0.4rem;border-bottom:0.1rem solid var(--line-strong)}
.group__head h2{display:flex;align-items:center;gap:1rem;margin:0;font-size:1.9rem;color:var(--text-strong)}
.group__ico{color:var(--accent)}
.group__head .count{margin-right:auto;margin-left:0.4rem;font-size:1.2rem;font-weight:600;color:var(--muted);background:var(--surface-2);padding:0.2rem 1rem;border-radius:var(--radius-pill)}
.group__head a.all{font-size:1.3rem;font-weight:600;white-space:nowrap}
.ref-list{list-style:none;margin:0;padding:0}
.ref-list li+li{border-top:0.1rem solid var(--line)}
.ref-list a{position:relative;display:block;padding:1.4rem 2.8rem 1.4rem 1.2rem;margin:0 -1.2rem;border-radius:var(--radius-md);color:var(--text);transition:background var(--dur) var(--ease)}
.ref-list a::after{content:"›";position:absolute;right:1.2rem;top:50%;margin-top:-.7em;font-size:2.2rem;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(0.3rem);color:var(--accent)}
.ref-list .term{display:block;font-weight:700;font-size:1.6rem;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:0.3rem;color:var(--muted);font-size:1.35rem;line-height:1.65}

/* ===== article ===== */
.entry__head{margin-bottom:0.8rem}
.entry__head a.cat{display:inline-flex;align-items:center;gap:0.6rem;margin-bottom:1.4rem;padding:0.4rem 1.2rem;border-radius:var(--radius-pill);background:var(--accent-soft);color:var(--accent-strong);font-size:1.3rem;font-weight:700}
.entry__head a.cat:hover{text-decoration:none;filter:brightness(.97)}
.entry__title{margin:0 0 1.4rem;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:0.4rem 1.6rem;list-style:none;margin:0 0 2.2rem;padding:0;font-size:1.3rem;color:var(--muted)}
.entry__meta li{display:inline-flex;align-items:center;gap:0.5rem}
.lead{margin:0 0 1.6rem;padding:1.8rem 2rem;border:0.1rem solid var(--accent-soft);border-left:0.4rem solid var(--accent);border-radius:var(--radius-md);background:var(--accent-softer);color:var(--text);font-size:calc(var(--fs-body) + 0.05rem);line-height:1.8}
.lead::before{content:"ひとことで言うと";display:block;margin-bottom:0.4rem;font-size:1.2rem;font-weight:700;letter-spacing:.08em;color:var(--accent-strong)}
.entry__trust{display:flex;gap:0.8rem;align-items:flex-start;margin:0 0 2.6rem;font-size:1.3rem;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:0.3rem}

/* TOC */
.toc{font-size:1.45rem}
.toc--inline{margin:0 0 3.2rem;border:0.1rem 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:1.2rem;min-height:4.8rem;padding:0 1.6rem;cursor:pointer;list-style:none}
.toc--inline summary::-webkit-details-marker{display:none}
.toc--inline summary b{font-size:1.4rem;letter-spacing:.04em}
.toc__count{margin-left:auto;font-size:1.25rem;color:var(--muted)}
.toc--inline summary::after{content:"";width:0.8rem;height:0.8rem;border-right:0.2rem solid var(--muted);border-bottom:0.2rem solid var(--muted);transform:rotate(45deg) translateY(-0.2rem);transition:transform var(--dur) var(--ease)}
.toc--inline details[open] summary::after{transform:rotate(225deg)}
.entry__body .toc--inline ol{margin:0;padding:0.4rem 1.6rem 1.4rem;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:1rem 0;color:var(--text);border-top:0.1rem 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:1.35rem}
@media (min-width:751px){.toc--inline{display:none}}
.toc--side{margin:0 0 2.8rem}
.toc__title{margin:0 0 0.8rem;font-size:1.2rem;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:0.6rem 0 0.6rem 1.4rem;border-left:0.2rem solid var(--line);color:var(--muted);font-size:1.35rem;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:-0.2rem}
.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:0.1rem solid var(--line)}
.entry__body h2::before{content:"";position:absolute;left:0;bottom:-0.1rem;width:2.5em;height:0.3rem;border-radius:0.2rem;background:var(--accent)}
.entry__body h3{margin:2em 0 .6em;padding-left:.6em;font-size:var(--fs-h3);line-height:1.55;border-left:0.4rem solid var(--accent)}
.entry__body h4{margin:1.6em 0 .4em;font-size:1.7rem}
.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:0.3rem}
.entry__body a:hover{text-decoration-color:var(--accent)}
.entry__body strong{color:var(--text-strong)}
.entry__body hr{border:0;border-top:0.1rem solid var(--line);margin:2.4em 0}
.entry__body code{background:var(--surface-2);border:0.1rem solid var(--line);border-radius:0.5rem;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:0.1rem 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/2.4rem 100% no-repeat local,linear-gradient(to left,var(--surface) 30%,transparent) right/2.4rem 100% no-repeat local,radial-gradient(farthest-side at 0 50%,var(--shadow-edge),transparent) left/1rem 100% no-repeat scroll,radial-gradient(farthest-side at 100% 50%,var(--shadow-edge),transparent) right/1rem 100% no-repeat scroll}
.entry__body .tbl:focus-visible{outline-offset:0.2rem}
.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:0.1rem 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:0.1rem solid var(--line);border-right:0.1rem 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:0.2rem 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:750px){
  .entry__body thead th:first-child,.entry__body tbody td:first-child{position:sticky;left:0;z-index:1;background:var(--surface);box-shadow:0.1rem 0 0 var(--line)}
  .entry__body thead th:first-child{background:var(--surface-2)}
}

/* boxes */
.entry__body blockquote{position:relative;margin:2em 0;padding:1.6rem 2rem 1.6rem 5.2rem;border-left:0.4rem 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:1.8rem;top:1.9rem;width:2rem;height:2rem;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:0.8rem 2.4rem 1.4rem;background:var(--surface);border:0.1rem solid var(--ok-line);border-top:0.3rem solid var(--ok);border-radius:var(--radius-md)}
.entry__body .opinion h2{display:flex;align-items:center;gap:.4em;margin:1.2rem 0 1rem;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:1.2rem;font-size:1.2rem;letter-spacing:.02em;color:var(--muted)}
.sources{margin-top:2.6em;padding:2rem 2.4rem;background:var(--surface-2);border-radius:var(--radius-md);font-size:1.4rem;line-height:1.75;color:var(--muted)}
.entry__body .sources h2{margin:0 0 0.8rem;padding:0;border:0;font-size:1.5rem;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:2.8rem 0 0;padding:1.4rem 1.6rem 0;border-top:0.1rem solid var(--line);font-size:1.25rem;line-height:1.75;color:var(--muted)}
.is-soon{color:var(--muted)}
.is-soon::after{content:"近日公開";margin-left:.6em;padding:0.1rem 0.8rem;border:0.1rem 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 4rem}
.intro .entry__body>h2:first-child{margin-top:.4em}
.intro--home{max-width:76rem;margin:0.8rem auto 5.6rem}
.list-title{margin-top:4rem}

/* related / pager / archive */
.related{margin-top:4.8rem}
.related h2,.list-title{display:flex;align-items:center;gap:0.8rem;margin:0 0 0.8rem;padding-bottom:1rem;font-size:1.9rem;color:var(--text-strong);border-bottom:0.1rem solid var(--line-strong)}
.pager{display:grid;gap:1.2rem;margin-top:4rem}
@media (min-width:751px){.pager{grid-template-columns:1fr 1fr}.pager .next{grid-column:2}}
.pager a{display:block;min-height:7.2rem;padding:1.4rem 1.8rem;border:0.1rem 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(-0.3rem)}.pager .next:hover{transform:translateX(0.3rem)}
.pager small{display:block;margin-bottom:0.2rem;font-size:1.2rem;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:2.4rem}
.archive-head__chip{display:inline-flex;align-items:center;gap:0.6rem;margin-bottom:1.2rem;padding:0.4rem 1.2rem;border-radius:var(--radius-pill);background:var(--accent-soft);color:var(--accent-strong);font-size:1.3rem;font-weight:700}
.archive-head h1{margin:0 0 0.6rem;font-size:var(--fs-h1);line-height:1.4;color:var(--text-strong)}
.archive-head p{margin:0 0 1.6rem;color:var(--muted)}
.pagination{display:flex;flex-wrap:wrap;gap:0.6rem;margin-top:2.8rem}
.pagination a,.pagination span{display:inline-grid;place-items:center;min-width:4.4rem;height:4.4rem;padding:0 1.2rem;border:0.1rem solid var(--line);border-radius:var(--radius-md);color:var(--text);font-size:1.4rem}
.pagination .current{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}

/* ===== footer ===== */
.site-footer{margin-top:2.4rem;border-top:0.1rem solid var(--line);background:var(--surface-2);padding:4rem var(--gutter) 2.8rem;font-size:1.3rem;color:var(--muted);content-visibility:auto;contain-intrinsic-size:auto 42rem}
@media (max-width:750px){.site-footer{contain-intrinsic-size:auto 90rem}.site-footer li a{min-height:4.4rem}}
.site-footer__in{max-width:var(--w-page);margin:0 auto}
.site-footer__cols{display:grid;gap:2.8rem;margin-bottom:2.8rem}
@media (min-width:751px){.site-footer__cols{grid-template-columns:1.2fr 1.4fr .8fr;gap:4.8rem}}
.site-footer__name{margin:0 0 0.4rem;font-size:1.7rem;font-weight:800;color:var(--text-strong)}
.site-footer__tag{margin:0 0 1.6rem;line-height:1.7}
.site-footer__sisters-title,.site-footer__title{margin:0 0 0.8rem;font-size:1.2rem;font-weight:700;letter-spacing:.08em}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer__cats ul{columns:2;column-gap:2rem}
.site-footer li{margin:0 0 0.4rem}
.site-footer li a{display:inline-flex;align-items:center;gap:0.8rem;min-height:3.2rem;color:var(--text)}
.sisters i{width:0.8rem;height:0.8rem;border-radius:50%;display:inline-block}
.site-footer__notes{padding-top:2rem;border-top:0.1rem solid var(--line)}
.site-footer__notes p{margin:0 0 0.6rem;max-width:78rem;line-height:1.75}

@media (forced-colors:active){.search-form:focus-within{outline:0.2rem 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:0.1rem 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 0.6rem;font-size:1.2rem;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:750px){
  .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:0.8rem}
  .tbl-wrap .tbl::-webkit-scrollbar-thumb{background:var(--accent);border-radius:0.4rem}
  .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 2rem}
.eyecatch__img,.post-bottom-image__img{display:block;width:100%;height:auto;border-radius:var(--radius-lg);background:var(--surface-2);border:0.1rem solid var(--line)}
.post-bottom-image{margin:2.4em 0 0}
.ref-list .has-thumb a{display:flex;align-items:center;gap:1.4rem}
.ref-list__thumb{flex:0 0 9.6rem;width:9.6rem}
.ref-list__img{display:block;width:9.6rem;height:6.4rem;object-fit:cover;border-radius:var(--radius-md);background:var(--surface-2);border:0.1rem solid var(--line)}
.ref-list__text{flex:1;min-width:0;display:block}
@media (max-width:480px){.ref-list__thumb{flex-basis:7.2rem;width:7.2rem}.ref-list__img{width:7.2rem;height:5.6rem}}


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