/*
 * 北澤篤史のことわざ辞典
 * UI System v1.0
 *
 * Goal:
 * - 大きく、濃く、読み疲れしにくい日本語
 * - PC / tablet / mobile の完全レスポンシブ
 * - 機能優先。意味のない英語装飾・過剰な演出を使わない
 * - 一般読者と研究者が同じサイトを迷わず使える
 */

/* =========================================================
   0. Design tokens
   ========================================================= */
html body.ktw-ui-system-v1{
  --ktw-bg:#ffffff;
  --ktw-bg-soft:#f7f6f2;
  --ktw-bg-warm:#fbf8f1;
  --ktw-paper:#fffefa;
  --ktw-text:#202a33;
  --ktw-text-strong:#101820;
  --ktw-text-sub:#4e5c68;
  --ktw-border:#d9dee3;
  --ktw-border-strong:#c7cfd7;
  --ktw-accent:#8a3f34;
  --ktw-accent-dark:#6f3027;
  --ktw-accent-soft:#f7ece8;
  --ktw-link:#184f79;
  --ktw-link-hover:#0d3a5d;
  --ktw-success:#285f4a;
  --ktw-success-bg:#eef7f2;
  --ktw-warning:#755a20;
  --ktw-warning-bg:#fbf5e7;
  --ktw-danger:#7a2f2a;
  --ktw-danger-bg:#fbefee;
  --ktw-reading:820px;
  --ktw-content:1120px;
  --ktw-wide:1380px;
  --ktw-radius:14px;
  --ktw-shadow:0 8px 26px rgba(21,32,42,.055);
  --ktw-font:"BIZ UDPGothic","Hiragino Sans","Yu Gothic","YuGothic","Meiryo",sans-serif;

  color:var(--ktw-text)!important;
  background:var(--ktw-bg)!important;
  font-family:var(--ktw-font)!important;
  font-size:18px!important;
  line-height:1.9!important;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}

/* =========================================================
   1. Global readability + geometry
   ========================================================= */
html body.ktw-ui-system-v1 *,
html body.ktw-ui-system-v1 *::before,
html body.ktw-ui-system-v1 *::after{
  box-sizing:border-box;
}

html body.ktw-ui-system-v1 :where(#container,#content,#inner-content,#main,article,.entry-content,.post-content,.post_content,.article-body,.page-content){
  min-width:0!important;
  max-width:100%;
}

html body.ktw-ui-system-v1 :where(#container,#content,#inner-content,#main){
  background:var(--ktw-bg)!important;
}

html body.ktw-ui-system-v1 :where(img,video,canvas,svg){
  max-width:100%;
  height:auto;
}

html body.ktw-ui-system-v1 iframe{
  max-width:100%!important;
}

html body.ktw-ui-system-v1 :where(p,li,dd,dt,figcaption,summary,label,input,select,textarea,button){
  font-family:var(--ktw-font)!important;
}

html body.ktw-ui-system-v1 :where(p,li,dd,dt,figcaption){
  color:var(--ktw-text)!important;
  font-size:18px!important;
  line-height:1.9!important;
  letter-spacing:.01em!important;
  overflow-wrap:anywhere;
  word-break:normal;
}

html body.ktw-ui-system-v1 :where(small,.small,[class*="caption"],[class*="meta"]){
  font-size:15px!important;
  line-height:1.7!important;
  color:var(--ktw-text-sub)!important;
}

html body.ktw-ui-system-v1 :where(a){
  color:var(--ktw-link);
  text-underline-offset:3px;
  text-decoration-thickness:1px;
}

html body.ktw-ui-system-v1 :where(a:hover,a:focus-visible){
  color:var(--ktw-link-hover);
}

html body.ktw-ui-system-v1 :where(a,button,input,select,textarea,summary):focus-visible{
  outline:3px solid rgba(24,79,121,.38)!important;
  outline-offset:3px!important;
}

html body.ktw-ui-system-v1 :where(button,input[type="submit"],input[type="button"],.button,.btn,.ktw-btn){
  min-height:48px!important;
  border-radius:10px!important;
  font-size:17px!important;
  line-height:1.4!important;
  font-weight:800!important;
  cursor:pointer;
}

html body.ktw-ui-system-v1 :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
  min-height:48px!important;
  max-width:100%!important;
  padding:10px 13px!important;
  border:1px solid var(--ktw-border-strong)!important;
  border-radius:10px!important;
  background:#fff!important;
  color:var(--ktw-text-strong)!important;
  font-size:17px!important;
  line-height:1.5!important;
}

html body.ktw-ui-system-v1 textarea{
  min-height:120px!important;
}

html body.ktw-ui-system-v1 :where(h1,h2,h3,h4,h5,h6){
  max-width:100%;
  color:var(--ktw-text-strong)!important;
  font-family:var(--ktw-font)!important;
  font-weight:800!important;
  letter-spacing:0!important;
  text-wrap:pretty;
  overflow-wrap:anywhere;
  word-break:normal;
}

html body.ktw-ui-system-v1 :where(.entry-content,.post-content,.post_content) h2{
  font-size:clamp(28px,3vw,36px)!important;
  line-height:1.5!important;
}

html body.ktw-ui-system-v1 :where(.entry-content,.post-content,.post_content) h3{
  font-size:clamp(23px,2.4vw,28px)!important;
  line-height:1.55!important;
}

html body.ktw-ui-system-v1 :where(.entry-content,.post-content,.post_content) h4{
  font-size:21px!important;
  line-height:1.6!important;
}

html body.ktw-ui-system-v1 :where(table){
  border-collapse:collapse;
}

html body.ktw-ui-system-v1 :where(th,td){
  padding:13px 14px!important;
  border:1px solid var(--ktw-border)!important;
  color:var(--ktw-text)!important;
  font-size:16px!important;
  line-height:1.65!important;
  vertical-align:top;
}

html body.ktw-ui-system-v1 th{
  background:#f1f3f5!important;
  color:var(--ktw-text-strong)!important;
  font-weight:800!important;
}

html body.ktw-ui-system-v1 :where(pre){
  max-width:100%;
  overflow:auto;
}

/* One predictable card language */
html body.ktw-ui-system-v1 :where(
  .ktw-card,
  [class*="__card"],
  [class*="-card"],
  .ktw-zb-example,
  .ktw-zb-scenarios article,
  .ktw-zb-compare article,
  .ktw-zb-theories article,
  .ktw-zb-history article
){
  border:1px solid var(--ktw-border)!important;
  border-radius:var(--ktw-radius)!important;
  background:#fff!important;
  box-shadow:none!important;
}

/* =========================================================
   2. Theme shell / header / navigation
   ========================================================= */
html body.ktw-ui-system-v1 #inner-header,
html body.ktw-ui-system-v1 #inner-content,
html body.ktw-ui-system-v1 .wrap{
  max-width:var(--ktw-wide)!important;
}

html body.ktw-ui-system-v1 #header{
  background:#fff!important;
  border-bottom:1px solid var(--ktw-border)!important;
  box-shadow:none!important;
}

html body.ktw-ui-system-v1 #header :where(a,p,span,strong){
  color:var(--ktw-text-strong);
}

html body.ktw-ui-system-v1 #g_nav{
  background:#fff!important;
  border-top:1px solid #edf0f2!important;
  border-bottom:1px solid var(--ktw-border)!important;
  box-shadow:none!important;
}

html body.ktw-ui-system-v1 #g_nav a{
  color:var(--ktw-text-strong)!important;
  font-size:16px!important;
  font-weight:700!important;
}

html body.ktw-ui-system-v1 #g_nav a:hover{
  color:var(--ktw-accent)!important;
  background:var(--ktw-bg-soft)!important;
}

/* =========================================================
   3. Front page – function first
   ========================================================= */
html body.ktw-ui-system-v1 .ktw-portal{
  width:100%!important;
  color:var(--ktw-text)!important;
  background:#fff!important;
}

html body.ktw-ui-system-v1 .ktw-shell,
html body.ktw-ui-system-v1 .ktw-portal__hero-layout,
html body.ktw-ui-system-v1 .ktw-home-knowledge-gateway{
  width:min(var(--ktw-content),calc(100vw - 48px))!important;
  max-width:var(--ktw-content)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

html body.ktw-ui-system-v1 .ktw-portal__hero{
  padding:54px 0 36px!important;
  background:var(--ktw-bg-warm)!important;
  border-bottom:1px solid #ebe5da!important;
}

html body.ktw-ui-system-v1 .ktw-portal__hero-layout{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:24px!important;
}

html body.ktw-ui-system-v1 .ktw-portal__hero-paper{
  width:100%!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}

html body.ktw-ui-system-v1 .ktw-portal__hero-copy h1{
  margin:0 0 24px!important;
  color:var(--ktw-text-strong)!important;
  font-size:clamp(36px,5vw,58px)!important;
  line-height:1.28!important;
  font-weight:900!important;
}

html body.ktw-ui-system-v1 .ktw-portal__hero-visual{
  display:none!important;
}

html body.ktw-ui-system-v1 .ktw-portal__search-panel{
  width:100%!important;
  max-width:900px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

html body.ktw-ui-system-v1 .ktw-portal__search-tabs{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  margin:0 0 12px!important;
}

html body.ktw-ui-system-v1 .ktw-portal__search-tabs button{
  min-height:46px!important;
  padding:9px 16px!important;
  border:1px solid var(--ktw-border-strong)!important;
  background:#fff!important;
  color:var(--ktw-text)!important;
}

html body.ktw-ui-system-v1 .ktw-portal__search-tabs button.is-active{
  border-color:var(--ktw-text-strong)!important;
  background:var(--ktw-text-strong)!important;
  color:#fff!important;
}

html body.ktw-ui-system-v1 .ktw-portal__search-box{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 124px!important;
  width:100%!important;
  overflow:hidden!important;
  border:2px solid var(--ktw-text-strong)!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:none!important;
}

html body.ktw-ui-system-v1 .ktw-portal__hero-input{
  min-height:62px!important;
  padding:14px 17px!important;
  border:0!important;
  border-radius:0!important;
  font-size:18px!important;
}

html body.ktw-ui-system-v1 .ktw-portal__search-box button[type="submit"]{
  width:124px!important;
  min-width:124px!important;
  min-height:62px!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:var(--ktw-accent)!important;
  color:#fff!important;
  font-size:18px!important;
}

html body.ktw-ui-system-v1 .ktw-portal__search-count{
  margin-top:9px!important;
  color:var(--ktw-text-sub)!important;
  font-size:15px!important;
}

/* Search shortcuts */
html body.ktw-ui-system-v1 .ktw-portal__commandbar{
  width:min(var(--ktw-content),calc(100vw - 48px))!important;
  margin:24px auto 38px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:none!important;
  overflow:hidden!important;
}

html body.ktw-ui-system-v1 .ktw-portal__commandbar-inner{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  width:100%!important;
  max-width:none!important;
}

html body.ktw-ui-system-v1 .ktw-portal__commandbar a{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:9px!important;
  min-width:0!important;
  min-height:58px!important;
  padding:10px 14px!important;
  border-right:1px solid var(--ktw-border)!important;
  border-bottom:1px solid var(--ktw-border)!important;
  background:#fff!important;
  color:var(--ktw-text-strong)!important;
  text-decoration:none!important;
}

html body.ktw-ui-system-v1 .ktw-portal__commandbar a:hover{
  background:var(--ktw-bg-soft)!important;
}

html body.ktw-ui-system-v1 .ktw-portal__commandbar a>span{
  display:grid!important;
  place-items:center!important;
  flex:0 0 34px!important;
  width:34px!important;
  height:34px!important;
  border-radius:8px!important;
  background:var(--ktw-accent-soft)!important;
  color:var(--ktw-accent-dark)!important;
  font-size:16px!important;
  font-weight:900!important;
}

html body.ktw-ui-system-v1 .ktw-portal__commandbar strong{
  color:var(--ktw-text-strong)!important;
  font-size:16px!important;
  line-height:1.45!important;
}

/* Four main purposes */
html body.ktw-ui-system-v1 .ktw-home-knowledge-gateway{
  padding:34px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:16px!important;
  background:var(--ktw-bg-soft)!important;
  box-shadow:none!important;
}

html body.ktw-ui-system-v1 .ktw-home-knowledge-gateway__head h2{
  margin:0 0 8px!important;
  font-size:clamp(28px,3vw,36px)!important;
  line-height:1.4!important;
}

html body.ktw-ui-system-v1 .ktw-home-knowledge-gateway__head p{
  margin:0!important;
  color:var(--ktw-text-sub)!important;
  font-size:17px!important;
}

html body.ktw-ui-system-v1 .ktw-home-knowledge-gateway__grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
  margin-top:24px!important;
}

html body.ktw-ui-system-v1 .ktw-home-knowledge-gateway__grid>a{
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr)!important;
  gap:12px!important;
  align-items:start!important;
  min-width:0!important;
  padding:18px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:12px!important;
  background:#fff!important;
  color:var(--ktw-text-strong)!important;
  text-decoration:none!important;
  box-shadow:none!important;
}

html body.ktw-ui-system-v1 .ktw-home-knowledge-gateway__grid>a>b{
  display:grid!important;
  place-items:center!important;
  width:42px!important;
  height:42px!important;
  border-radius:9px!important;
  background:var(--ktw-accent-soft)!important;
  color:var(--ktw-accent-dark)!important;
  font-size:18px!important;
}

html body.ktw-ui-system-v1 .ktw-home-knowledge-gateway__grid strong{
  display:block!important;
  color:var(--ktw-text-strong)!important;
  font-size:19px!important;
  line-height:1.4!important;
}

html body.ktw-ui-system-v1 .ktw-home-knowledge-gateway__grid small{
  display:block!important;
  margin-top:5px!important;
  color:var(--ktw-text-sub)!important;
  font-size:15px!important;
  line-height:1.65!important;
}

html body.ktw-ui-system-v1 .ktw-home-knowledge-gateway__mini{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  margin-top:16px!important;
}

html body.ktw-ui-system-v1 .ktw-home-knowledge-gateway__mini a{
  min-width:0!important;
  padding:13px 14px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:10px!important;
  background:#fff!important;
  text-decoration:none!important;
}

html body.ktw-ui-system-v1 .ktw-home-knowledge-gateway__mini strong{
  display:block!important;
  color:var(--ktw-text-strong)!important;
  font-size:16px!important;
}

html body.ktw-ui-system-v1 .ktw-home-knowledge-gateway__mini span{
  display:block!important;
  margin-top:3px!important;
  color:var(--ktw-text-sub)!important;
  font-size:14px!important;
  line-height:1.5!important;
}

/* Home sections */
html body.ktw-ui-system-v1 .ktw-section{
  padding:56px 0!important;
  background:#fff!important;
  border-top:1px solid #edf0f2!important;
}

html body.ktw-ui-system-v1 .ktw-section--paper{
  background:var(--ktw-bg-soft)!important;
}

html body.ktw-ui-system-v1 .ktw-portal__section-heading{
  margin:0 0 22px!important;
}

html body.ktw-ui-system-v1 .ktw-portal__section-heading>span{
  display:none!important;
}

html body.ktw-ui-system-v1 .ktw-portal__section-heading h2{
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:none!important;
  color:var(--ktw-text-strong)!important;
  font-size:clamp(28px,3vw,36px)!important;
  line-height:1.4!important;
}

html body.ktw-ui-system-v1 .ktw-portal__section-heading h2::before,
html body.ktw-ui-system-v1 .ktw-portal__section-heading h2::after{
  display:none!important;
  content:none!important;
}

html body.ktw-ui-system-v1 .ktw-portal__quick-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
}

html body.ktw-ui-system-v1 .ktw-portal__quick-item{
  display:grid!important;
  grid-template-columns:94px minmax(0,1fr)!important;
  align-items:stretch!important;
  min-width:0!important;
  min-height:108px!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:12px!important;
  background:#fff!important;
  color:var(--ktw-text-strong)!important;
  text-decoration:none!important;
  box-shadow:none!important;
}

html body.ktw-ui-system-v1 .ktw-portal__quick-image{
  width:94px!important;
  min-height:108px!important;
  overflow:hidden!important;
  background:#f0f1f2!important;
}

html body.ktw-ui-system-v1 .ktw-portal__quick-image img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}

html body.ktw-ui-system-v1 .ktw-portal__quick-body{
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr)!important;
  align-content:center!important;
  column-gap:10px!important;
  padding:14px!important;
  min-width:0!important;
}

html body.ktw-ui-system-v1 .ktw-portal__quick-body>b{
  grid-row:1/3;
  display:grid!important;
  place-items:center!important;
  width:34px!important;
  height:34px!important;
  border-radius:8px!important;
  background:var(--ktw-accent-soft)!important;
  color:var(--ktw-accent-dark)!important;
}

html body.ktw-ui-system-v1 .ktw-portal__quick-body strong{
  color:var(--ktw-text-strong)!important;
  font-size:18px!important;
  line-height:1.4!important;
}

html body.ktw-ui-system-v1 .ktw-portal__quick-body small{
  margin-top:3px!important;
  color:var(--ktw-text-sub)!important;
  font-size:14px!important;
}

/* Fuzzy finder */
html body.ktw-ui-system-v1 .ktw-portal__smart-finder{
  display:grid!important;
  grid-template-columns:minmax(240px,.75fr) minmax(0,1.8fr)!important;
  overflow:hidden!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:none!important;
}

html body.ktw-ui-system-v1 .ktw-portal__smart-intro{
  padding:28px!important;
  background:var(--ktw-text-strong)!important;
  background-image:none!important;
  color:#fff!important;
}

html body.ktw-ui-system-v1 .ktw-portal__smart-intro :where(h2,p,span,strong){
  color:#fff!important;
}

html body.ktw-ui-system-v1 .ktw-portal__smart-label{
  display:none!important;
}

html body.ktw-ui-system-v1 .ktw-portal__smart-intro h2{
  margin:0 0 10px!important;
  font-size:28px!important;
  line-height:1.45!important;
}

html body.ktw-ui-system-v1 .ktw-portal__smart-intro p{
  font-size:16px!important;
  line-height:1.75!important;
}

html body.ktw-ui-system-v1 .ktw-portal__smart-body{
  padding:28px!important;
  background:#fff!important;
}

html body.ktw-ui-system-v1 .ktw-portal__smart-body-head strong{
  color:var(--ktw-text-strong)!important;
  font-size:20px!important;
}

html body.ktw-ui-system-v1 .ktw-portal__smart-body-head span{
  color:var(--ktw-text-sub)!important;
  font-size:15px!important;
}

html body.ktw-ui-system-v1 .ktw-portal__fuzzy-fields{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
  margin-top:18px!important;
}

html body.ktw-ui-system-v1 .ktw-portal__fuzzy-fields label{
  display:grid!important;
  gap:7px!important;
  min-width:0!important;
  color:var(--ktw-text-strong)!important;
  font-size:16px!important;
  font-weight:700!important;
}

html body.ktw-ui-system-v1 .ktw-portal__fuzzy-fields .is-wide{
  grid-column:1/-1!important;
}

html body.ktw-ui-system-v1 .ktw-portal__finder-submit{
  width:100%!important;
  margin-top:18px!important;
  background:var(--ktw-accent)!important;
  color:#fff!important;
  border:0!important;
}

/* Kana / length */
html body.ktw-ui-system-v1 .ktw-portal__length-grid{
  display:grid!important;
  grid-template-columns:repeat(8,minmax(0,1fr))!important;
  gap:8px!important;
}

html body.ktw-ui-system-v1 .ktw-portal__length-grid button,
html body.ktw-ui-system-v1 .ktw-portal__kana{
  border:1px solid var(--ktw-border)!important;
  background:#fff!important;
  color:var(--ktw-text-strong)!important;
  box-shadow:none!important;
}

html body.ktw-ui-system-v1 .ktw-portal__length-grid button strong,
html body.ktw-ui-system-v1 .ktw-portal__kana strong{
  color:var(--ktw-text-strong)!important;
  font-size:20px!important;
}

html body.ktw-ui-system-v1 .ktw-portal__kana-row{
  display:grid!important;
  grid-template-columns:72px minmax(0,1fr)!important;
  gap:12px!important;
  align-items:center!important;
  margin-bottom:10px!important;
}

html body.ktw-ui-system-v1 .ktw-portal__kana-label{
  color:var(--ktw-text-sub)!important;
  font-size:16px!important;
  font-weight:800!important;
}

html body.ktw-ui-system-v1 .ktw-portal__kana-cells{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:8px!important;
}

/* =========================================================
   4. Individual proverb articles
   ========================================================= */
html body.ktw-ui-system-v1.single-post .article-header{
  width:min(var(--ktw-content),calc(100vw - 48px))!important;
  margin:42px auto 26px!important;
  padding:0 0 24px!important;
  border:0!important;
  border-bottom:1px solid var(--ktw-border)!important;
  background:transparent!important;
}

html body.ktw-ui-system-v1.single-post .article-header::before,
html body.ktw-ui-system-v1.single-post .article-header::after{
  display:none!important;
  content:none!important;
}

html body.ktw-ui-system-v1.single-post :where(.article-header h1,.entry-title){
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  color:var(--ktw-text-strong)!important;
  font-size:clamp(38px,5vw,58px)!important;
  line-height:1.3!important;
  font-family:var(--ktw-font)!important;
  font-weight:900!important;
  letter-spacing:0!important;
}

html body.ktw-ui-system-v1.single-post .article-header .cat-name{
  display:inline-flex!important;
  min-height:32px!important;
  align-items:center!important;
  padding:5px 10px!important;
  margin-bottom:10px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:999px!important;
  background:var(--ktw-bg-soft)!important;
  color:var(--ktw-text-sub)!important;
  font-size:14px!important;
  font-weight:700!important;
}

html body.ktw-ui-system-v1.single-post .ktw-zb-eyebrow{
  display:none!important;
}

/* Article intro dictionary */
html body.ktw-ui-system-v1.single-post :where(.ktw-zb-intro,.ktw-zb-intro-v2){
  width:min(var(--ktw-content),calc(100vw - 48px))!important;
  margin:0 auto 40px!important;
}

html body.ktw-ui-system-v1.single-post .ktw-zb-dictionary{
  display:grid!important;
  grid-template-columns:minmax(220px,.7fr) minmax(0,1.7fr)!important;
  gap:0!important;
  overflow:hidden!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:none!important;
}

html body.ktw-ui-system-v1.single-post .ktw-zb-dict-block{
  margin:0!important;
  padding:24px!important;
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:none!important;
}

html body.ktw-ui-system-v1.single-post .ktw-zb-dict-block.is-reading{
  border-right:1px solid var(--ktw-border)!important;
  background:var(--ktw-bg-soft)!important;
}

html body.ktw-ui-system-v1.single-post .ktw-zb-dict-label{
  display:inline-flex!important;
  min-height:auto!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--ktw-text-sub)!important;
  -webkit-text-fill-color:var(--ktw-text-sub)!important;
  font-size:15px!important;
  font-weight:800!important;
}

html body.ktw-ui-system-v1.single-post .ktw-zb-dict-reading{
  margin-top:10px!important;
  color:var(--ktw-text-strong)!important;
  font-size:24px!important;
  line-height:1.65!important;
  font-weight:800!important;
}

html body.ktw-ui-system-v1.single-post .ktw-zb-dict-main{
  margin:10px 0 0!important;
  color:var(--ktw-text-strong)!important;
  font-size:21px!important;
  line-height:1.8!important;
  font-weight:800!important;
}

html body.ktw-ui-system-v1.single-post .ktw-zb-dict-detail{
  margin:10px 0 0!important;
  padding-top:10px!important;
  border-top:1px solid var(--ktw-border)!important;
  color:var(--ktw-text-sub)!important;
  font-size:17px!important;
  line-height:1.85!important;
}

/* Main article sections */
html body.ktw-ui-system-v1.single-post .ktw-zb-section{
  margin:0!important;
  padding:54px 0!important;
  border-top:1px solid #edf0f2!important;
  border-bottom:0!important;
  background:#fff!important;
  background-image:none!important;
}

html body.ktw-ui-system-v1.single-post .ktw-zb-section:nth-of-type(even){
  background:var(--ktw-bg-soft)!important;
}

html body.ktw-ui-system-v1.single-post .ktw-zb-section>h2{
  width:min(var(--ktw-content),calc(100vw - 48px))!important;
  margin:0 auto 28px!important;
  padding:0 0 14px!important;
  border:0!important;
  border-bottom:2px solid var(--ktw-text-strong)!important;
  background:none!important;
  box-shadow:none!important;
  color:var(--ktw-text-strong)!important;
  font-family:var(--ktw-font)!important;
  font-size:clamp(29px,3vw,36px)!important;
  line-height:1.45!important;
  font-weight:900!important;
}

html body.ktw-ui-system-v1.single-post .ktw-zb-section>h2::before,
html body.ktw-ui-system-v1.single-post .ktw-zb-section>h2::after{
  display:none!important;
  content:none!important;
}

html body.ktw-ui-system-v1.single-post .ktw-zb-prose{
  width:min(var(--ktw-reading),calc(100vw - 48px))!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

html body.ktw-ui-system-v1.single-post .ktw-zb-prose p{
  margin:0 0 27px!important;
  color:var(--ktw-text)!important;
  font-size:19px!important;
  line-height:2!important;
  letter-spacing:.01em!important;
  font-weight:500!important;
}

html body.ktw-ui-system-v1.single-post .ktw-zb-prose h3{
  margin:42px 0 17px!important;
  padding:0!important;
  border:0!important;
  background:none!important;
  color:var(--ktw-text-strong)!important;
  font-size:25px!important;
  line-height:1.55!important;
}

html body.ktw-ui-system-v1.single-post .ktw-zb-prose h3::before,
html body.ktw-ui-system-v1.single-post .ktw-zb-prose h3::after{
  display:none!important;
  content:none!important;
}

/* Article cards / examples / notes */
html body.ktw-ui-system-v1.single-post :where(
  .ktw-zb-examples,.ktw-zb-scenarios,.ktw-zb-compare,.ktw-zb-theories,
  .ktw-zb-route,.ktw-zb-history,.ktw-zb-toolgrid,.ktw-zb-links
){
  width:min(940px,calc(100vw - 48px))!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

html body.ktw-ui-system-v1.single-post .ktw-zb-examples{
  display:grid!important;
  gap:12px!important;
}

html body.ktw-ui-system-v1.single-post .ktw-zb-example{
  display:grid!important;
  grid-template-columns:46px minmax(0,1fr)!important;
  gap:14px!important;
  align-items:start!important;
  padding:19px 20px!important;
}

html body.ktw-ui-system-v1.single-post .ktw-zb-example__num{
  display:grid!important;
  place-items:center!important;
  width:40px!important;
  height:40px!important;
  border-radius:50%!important;
  background:var(--ktw-bg-soft)!important;
  color:var(--ktw-accent-dark)!important;
  font-size:15px!important;
  font-weight:900!important;
}

html body.ktw-ui-system-v1.single-post .ktw-zb-example p{
  margin:0!important;
  color:var(--ktw-text)!important;
  font-size:18px!important;
  line-height:1.85!important;
}

html body.ktw-ui-system-v1.single-post :where(.ktw-zb-key,.ktw-zb-first,.ktw-zb-research-note){
  width:min(var(--ktw-reading),calc(100vw - 48px))!important;
  margin:28px auto 0!important;
  padding:19px 20px!important;
  border:1px solid var(--ktw-border)!important;
  border-left:4px solid var(--ktw-accent)!important;
  border-radius:10px!important;
  background:var(--ktw-bg-warm)!important;
  box-shadow:none!important;
}

html body.ktw-ui-system-v1.single-post :where(.ktw-zb-key,.ktw-zb-first,.ktw-zb-research-note) :where(p,li){
  font-size:17px!important;
  line-height:1.85!important;
}

/* Research / evidence sections inside articles */
html body.ktw-ui-system-v1.single-post :where(
  .ktw-current-proverb-tools,
  .ktw-meaning-map,
  .ktw-after,
  .ktw-research-status,
  .ktw-inline-evidence,
  [class*="research-quality"],
  [class*="research-status"]
){
  width:min(var(--ktw-content),calc(100vw - 48px))!important;
  max-width:var(--ktw-content)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  color:var(--ktw-text)!important;
}

html body.ktw-ui-system-v1.single-post .ktw-current-proverb-tools{
  padding:28px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:14px!important;
  background:var(--ktw-bg-soft)!important;
  box-shadow:none!important;
}

html body.ktw-ui-system-v1.single-post .ktw-current-proverb-tools__head>span{
  display:none!important;
}

html body.ktw-ui-system-v1.single-post .ktw-current-proverb-tools__head strong{
  color:var(--ktw-text-strong)!important;
  font-size:24px!important;
  line-height:1.5!important;
}

html body.ktw-ui-system-v1.single-post .ktw-current-proverb-tools__head p{
  margin-top:8px!important;
  font-size:17px!important;
}

html body.ktw-ui-system-v1.single-post .ktw-current-proverb-tools__grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  margin-top:20px!important;
}

html body.ktw-ui-system-v1.single-post .ktw-current-proverb-tools__grid a{
  min-width:0!important;
  padding:18px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:11px!important;
  background:#fff!important;
  color:var(--ktw-text-strong)!important;
  text-decoration:none!important;
}

html body.ktw-ui-system-v1.single-post .ktw-current-proverb-tools__grid a strong{
  color:var(--ktw-text-strong)!important;
  font-size:18px!important;
}

html body.ktw-ui-system-v1.single-post .ktw-current-proverb-tools__grid a span{
  display:block!important;
  margin-top:6px!important;
  color:var(--ktw-text-sub)!important;
  font-size:15px!important;
  line-height:1.65!important;
}

html body.ktw-ui-system-v1.single-post .ktw-meaning-map{
  padding:28px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:none!important;
}

html body.ktw-ui-system-v1.single-post .ktw-meaning-map__head>span{
  display:none!important;
}

html body.ktw-ui-system-v1.single-post .ktw-meaning-map__head h3{
  margin:0!important;
  color:var(--ktw-text-strong)!important;
  font-size:25px!important;
}

html body.ktw-ui-system-v1.single-post .ktw-meaning-map__cards{
  display:grid!important;
  gap:12px!important;
  margin-top:20px!important;
}

html body.ktw-ui-system-v1.single-post .ktw-meaning-map__card{
  padding:18px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:11px!important;
  background:var(--ktw-bg-soft)!important;
  box-shadow:none!important;
}

/* Prevent dark boxes from ever carrying dark text in known dark components. */
html body.ktw-ui-system-v1.single-post :where(
  .ktw-after__sources-head,
  .ktw-portal__smart-intro
),
html body.ktw-ui-system-v1.single-post :where(
  .ktw-after__sources-head,
  .ktw-portal__smart-intro
) :where(h1,h2,h3,h4,p,span,strong,a,small){
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* =========================================================
   5. Research home + generic research pages
   ========================================================= */
html body.ktw-ui-system-v1 .ktrh2,
html body.ktw-ui-system-v1 body.ktw-research-ui main{
  color:var(--ktw-text)!important;
  background:#fff!important;
}

html body.ktw-ui-system-v1 .ktrh2{
  width:min(var(--ktw-content),calc(100vw - 48px))!important;
  margin:32px auto 72px!important;
}

html body.ktw-ui-system-v1 .ktrh2-hero{
  padding:32px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:16px!important;
  background:var(--ktw-bg-soft)!important;
  box-shadow:none!important;
}

html body.ktw-ui-system-v1 .ktrh2-hero h1{
  margin:0 0 12px!important;
  font-size:clamp(34px,4vw,48px)!important;
  line-height:1.35!important;
}

html body.ktw-ui-system-v1 .ktrh2-hero>p{
  max-width:900px!important;
  margin:0!important;
  color:var(--ktw-text-sub)!important;
  font-size:18px!important;
  line-height:1.85!important;
}

html body.ktw-ui-system-v1 .ktrh2-filter{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:10px!important;
  align-items:end!important;
  margin-top:22px!important;
}

html body.ktw-ui-system-v1 .ktrh2-filter label{
  display:grid!important;
  gap:7px!important;
  color:var(--ktw-text-strong)!important;
  font-size:16px!important;
  font-weight:800!important;
}

html body.ktw-ui-system-v1 .ktrh2-filter button{
  padding-inline:18px!important;
  border:0!important;
  background:var(--ktw-accent)!important;
  color:#fff!important;
}

html body.ktw-ui-system-v1 .ktrh2-owner{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:8px 12px!important;
  margin-top:20px!important;
  padding-top:16px!important;
  border-top:1px solid var(--ktw-border)!important;
}

html body.ktw-ui-system-v1 .ktrh2-owner>span{
  color:var(--ktw-text-sub)!important;
  font-size:15px!important;
}

html body.ktw-ui-system-v1 .ktrh2-owner>strong{
  color:var(--ktw-text-strong)!important;
  font-size:18px!important;
}

html body.ktw-ui-system-v1 .ktrh2-metrics{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:10px!important;
  margin:18px 0!important;
}

html body.ktw-ui-system-v1 .ktrh2-metrics article{
  padding:18px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:12px!important;
  background:#fff!important;
  text-align:left!important;
  box-shadow:none!important;
}

html body.ktw-ui-system-v1 .ktrh2-metrics b{
  display:block!important;
  color:var(--ktw-text-strong)!important;
  font-size:30px!important;
  line-height:1.2!important;
}

html body.ktw-ui-system-v1 .ktrh2-metrics span{
  display:block!important;
  margin-top:5px!important;
  color:var(--ktw-text-sub)!important;
  font-size:14px!important;
}

html body.ktw-ui-system-v1 .ktrh2 :where(.ktrh2-start,.ktrh2-columns>section,.ktrh2-notes,.ktrh2-principle){
  margin-top:18px!important;
  padding:26px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:none!important;
}

html body.ktw-ui-system-v1 .ktrh2 :where(h2){
  margin:0 0 18px!important;
  padding:0 0 12px!important;
  border:0!important;
  border-bottom:2px solid var(--ktw-text-strong)!important;
  background:none!important;
  font-size:28px!important;
  line-height:1.45!important;
}

html body.ktw-ui-system-v1 .ktrh2-start-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
}

html body.ktw-ui-system-v1 .ktrh2-start-grid a{
  min-width:0!important;
  padding:18px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:10px!important;
  background:var(--ktw-bg-soft)!important;
  text-decoration:none!important;
}

html body.ktw-ui-system-v1 .ktrh2-start-grid a strong{
  display:block!important;
  color:var(--ktw-text-strong)!important;
  font-size:18px!important;
}

html body.ktw-ui-system-v1 .ktrh2-start-grid a span{
  display:block!important;
  margin-top:5px!important;
  color:var(--ktw-text-sub)!important;
  font-size:15px!important;
}

html body.ktw-ui-system-v1 .ktrh2-columns{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:18px!important;
}

html body.ktw-ui-system-v1 .ktrh2-list,
html body.ktw-ui-system-v1 .ktrh2-note-grid{
  display:grid!important;
  gap:10px!important;
}

html body.ktw-ui-system-v1 .ktrh2-note-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}

html body.ktw-ui-system-v1 .ktrh2-list article,
html body.ktw-ui-system-v1 .ktrh2-note-grid article{
  padding:16px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:10px!important;
  background:var(--ktw-bg-soft)!important;
  box-shadow:none!important;
}

html body.ktw-ui-system-v1 .ktrh2-list article strong,
html body.ktw-ui-system-v1 .ktrh2-note-grid article strong{
  color:var(--ktw-text-strong)!important;
  font-size:16px!important;
  line-height:1.65!important;
}

html body.ktw-ui-system-v1 .ktrh2-list article span,
html body.ktw-ui-system-v1 .ktrh2-note-grid article span{
  display:block!important;
  margin-top:5px!important;
  color:var(--ktw-text-sub)!important;
  font-size:14px!important;
  line-height:1.55!important;
}

html body.ktw-ui-system-v1 .ktrh2-note-grid article p{
  margin:8px 0 0!important;
  font-size:16px!important;
  line-height:1.75!important;
}

/* Generic research surfaces: remove tiny text and excessive shadows */
html body.ktw-ui-system-v1.ktw-research-ui :where(
  [class^="ktw-"],[class^="ktr"],[class*=" ktw-"],[class*=" ktr"]
) :where(p,li,dd,dt){
  font-size:max(16px,1em)!important;
  line-height:1.8!important;
}

html body.ktw-ui-system-v1.ktw-research-ui :where(
  [class*="card"],[class*="panel"],[class*="box"],article
){
  box-shadow:none!important;
}

/* =========================================================
   5.5. Functional pages – search / compare / quiz / learn / tools
   ========================================================= */

/* Standard page title */
html body.ktw-ui-system-v1.page .article-header{
  width:min(var(--ktw-content),calc(100vw - 48px))!important;
  margin:34px auto 24px!important;
  padding:0 0 18px!important;
  border:0!important;
  border-bottom:1px solid var(--ktw-border)!important;
  background:transparent!important;
}
html body.ktw-ui-system-v1.page .article-header .entry-title{
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:none!important;
  color:var(--ktw-text-strong)!important;
  font-size:clamp(34px,4vw,48px)!important;
  line-height:1.35!important;
  font-weight:900!important;
}

/* Tool context: functional, Japanese, readable */
html body.ktw-ui-system-v1 .ktw-tool-context-band{
  width:min(var(--ktw-content),calc(100vw - 48px))!important;
  margin:18px auto 24px!important;
  display:grid!important;
  grid-template-columns:minmax(150px,.6fr) repeat(3,minmax(0,1fr))!important;
  overflow:hidden!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1 .ktw-tool-context-band>div{
  min-width:0!important;
  padding:16px!important;
  border:0!important;
  border-right:1px solid var(--ktw-border)!important;
  background:#fff!important;
}
html body.ktw-ui-system-v1 .ktw-tool-context-band>div:last-child{
  border-right:0!important;
}
html body.ktw-ui-system-v1 .ktw-tool-context-band :where(span){
  display:block!important;
  margin:0 0 5px!important;
  color:var(--ktw-text-sub)!important;
  font-size:14px!important;
  line-height:1.5!important;
  font-weight:700!important;
  letter-spacing:0!important;
}
html body.ktw-ui-system-v1 .ktw-tool-context-band__role>span{
  display:none!important;
}
html body.ktw-ui-system-v1 .ktw-tool-context-band :where(strong){
  color:var(--ktw-text-strong)!important;
  font-size:18px!important;
  line-height:1.45!important;
}
html body.ktw-ui-system-v1 .ktw-tool-context-band :where(p,a){
  margin:0!important;
  color:var(--ktw-text)!important;
  font-size:15px!important;
  line-height:1.7!important;
}
html body.ktw-ui-system-v1 .ktw-tool-context-band a{
  color:var(--ktw-link)!important;
}

/* Search – override tiny legacy component text */
html body.ktw-ui-system-v1 #ktw-search-1{
  width:min(var(--ktw-content),calc(100vw - 48px))!important;
  max-width:var(--ktw-content)!important;
  margin:24px auto 56px!important;
  color:var(--ktw-text)!important;
  font-size:17px!important;
  line-height:1.8!important;
}
html body.ktw-ui-system-v1 #ktw-search-1 .ktw-search__hero{
  padding:26px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:14px!important;
  background:var(--ktw-bg-soft)!important;
  background-image:none!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1 #ktw-search-1 .ktw-search__eyebrow{
  display:none!important;
}
html body.ktw-ui-system-v1 #ktw-search-1 .ktw-search__title{
  color:var(--ktw-text-strong)!important;
  font-size:clamp(26px,3vw,34px)!important;
}
html body.ktw-ui-system-v1 #ktw-search-1 .ktw-search__lead{
  color:var(--ktw-text-sub)!important;
  font-size:17px!important;
  line-height:1.8!important;
}
html body.ktw-ui-system-v1 #ktw-search-1 :where(
  .ktw-search__mode,.ktw-search__details summary,.ktw-search__count,
  .ktw-search__filter>span,.ktw-search__filter select,.ktw-search__reset,
  .ktw-search__active-chip,.ktw-search__reading,.ktw-search__definition,
  .ktw-search__chip,.ktw-search__action,.ktw-search__page
){
  font-size:15px!important;
  line-height:1.6!important;
}
html body.ktw-ui-system-v1 #ktw-search-1 .ktw-search__card{
  padding:19px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:none!important;
  transform:none!important;
}
html body.ktw-ui-system-v1 #ktw-search-1 .ktw-search__card-title{
  color:var(--ktw-text-strong)!important;
  font-size:19px!important;
}
html body.ktw-ui-system-v1 #ktw-search-1 .ktw-search__definition{
  color:var(--ktw-text)!important;
  font-size:16px!important;
  line-height:1.75!important;
}
html body.ktw-ui-system-v1 #ktw-search-1 .ktw-search__action{
  min-height:42px!important;
  padding:8px 11px!important;
}

/* Quiz – never use microcopy below readable size */
html body.ktw-ui-system-v1 #ktw-quiz-1{
  width:min(980px,calc(100vw - 48px))!important;
  max-width:980px!important;
  margin:24px auto 56px!important;
  color:var(--ktw-text)!important;
  font-size:17px!important;
  line-height:1.8!important;
}
html body.ktw-ui-system-v1 #ktw-quiz-1 .ktw-quiz__hero{
  padding:24px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:14px!important;
  background:var(--ktw-bg-soft)!important;
  background-image:none!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1 #ktw-quiz-1 .ktw-quiz__eyebrow,
html body.ktw-ui-system-v1 #ktw-quiz-1 .ktw-quiz__result-label,
html body.ktw-ui-system-v1 #ktw-quiz-1 .ktw-quiz__type{
  display:none!important;
}
html body.ktw-ui-system-v1 #ktw-quiz-1 .ktw-quiz__hero p{
  color:var(--ktw-text-sub)!important;
  font-size:16px!important;
  line-height:1.75!important;
}
html body.ktw-ui-system-v1 #ktw-quiz-1 .ktw-quiz__hero-mark{
  border-radius:12px!important;
  background:var(--ktw-accent)!important;
  color:#fff!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1 #ktw-quiz-1 .ktw-quiz__setup,
html body.ktw-ui-system-v1 #ktw-quiz-1 .ktw-quiz__question-card,
html body.ktw-ui-system-v1 #ktw-quiz-1 .ktw-quiz__result{
  border:1px solid var(--ktw-border)!important;
  border-radius:12px!important;
  background:#fff!important;
  background-image:none!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1 #ktw-quiz-1 :where(
  .ktw-quiz__setup-group>strong,.ktw-quiz__segmented button,.ktw-quiz__level-note,
  .ktw-quiz__note,.ktw-quiz__progress-text,.ktw-quiz__score-live,.ktw-quiz__restart,
  .ktw-quiz__choice,.ktw-quiz__feedback-title,.ktw-quiz__explanation,
  .ktw-quiz__feedback-actions a,.ktw-quiz__article-link,.ktw-quiz__result p,
  .ktw-quiz__review>strong,.ktw-quiz__review-item strong,.ktw-quiz__review-item a,
  .ktw-quiz__status
){
  font-size:15px!important;
  line-height:1.65!important;
}
html body.ktw-ui-system-v1 #ktw-quiz-1 .ktw-quiz__choice{
  min-height:50px!important;
  padding:12px 14px!important;
  font-size:16px!important;
}
html body.ktw-ui-system-v1 #ktw-quiz-1 :where(
  .ktw-quiz__start,.ktw-quiz__again,.ktw-quiz__new,.ktw-quiz__next
){
  font-size:16px!important;
}

/* Learn centre – remove decorative English and normalize dense cards */
html body.ktw-ui-system-v1 .ktw-learn-v2{
  width:min(var(--ktw-content),calc(100vw - 48px))!important;
  max-width:var(--ktw-content)!important;
  margin:24px auto 64px!important;
  color:var(--ktw-text)!important;
}
html body.ktw-ui-system-v1 .ktw-learn-eyebrow,
html body.ktw-ui-system-v1 .ktw-learn-route15__head>span{
  display:none!important;
}
html body.ktw-ui-system-v1 .ktw-learn-v2 :where(h1,h2,h3,strong){
  color:var(--ktw-text-strong)!important;
}
html body.ktw-ui-system-v1 .ktw-learn-v2 :where(p,li,span,small,em){
  color:var(--ktw-text)!important;
  font-size:16px!important;
  line-height:1.75!important;
}
html body.ktw-ui-system-v1 .ktw-learn-v2 em{
  font-style:normal!important;
}
html body.ktw-ui-system-v1 .ktw-learn-hero,
html body.ktw-ui-system-v1 .ktw-learn-quickstart,
html body.ktw-ui-system-v1 .ktw-learn-route15,
html body.ktw-ui-system-v1 .ktw-learn-section{
  margin-top:18px!important;
  padding:26px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1 .ktw-learn-hero{
  background:var(--ktw-bg-soft)!important;
}
html body.ktw-ui-system-v1 .ktw-learn-hero h1{
  margin:0 0 10px!important;
  font-size:clamp(34px,4vw,46px)!important;
  line-height:1.35!important;
}
html body.ktw-ui-system-v1 .ktw-learn-v2 :where(
  .ktw-learn-quickstart__grid>a,.ktw-learn-audience>article,
  .ktw-learn-method-grid>a,.ktw-learn-cycle__grid>a,
  .ktw-learn-route15 li a
){
  min-width:0!important;
  padding:17px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:11px!important;
  background:var(--ktw-bg-soft)!important;
  box-shadow:none!important;
  text-decoration:none!important;
}

/* Generic tool / database cards: prevent 10–13px UI text sitewide */
html body.ktw-ui-system-v1.page :where(
  [class*="tool"],[class*="search"],[class*="compare"],[class*="quiz"],
  [class*="learn"],[class*="research"],[class*="workspace"]
) :where(button,input,select,textarea,label,summary){
  font-size:max(15px,1em)!important;
}
html body.ktw-ui-system-v1.page :where(
  [class*="tool"],[class*="search"],[class*="compare"],[class*="quiz"],
  [class*="learn"],[class*="research"],[class*="workspace"]
) :where(small){
  font-size:15px!important;
  line-height:1.6!important;
}

@media (max-width:1024px){
  html body.ktw-ui-system-v1 .ktw-tool-context-band{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  html body.ktw-ui-system-v1 .ktw-tool-context-band>div{
    border-bottom:1px solid var(--ktw-border)!important;
  }
}

@media (max-width:760px){
  html body.ktw-ui-system-v1.page .article-header,
  html body.ktw-ui-system-v1 .ktw-tool-context-band,
  html body.ktw-ui-system-v1 #ktw-search-1,
  html body.ktw-ui-system-v1 #ktw-quiz-1,
  html body.ktw-ui-system-v1 .ktw-learn-v2{
    width:calc(100vw - 28px)!important;
    max-width:calc(100vw - 28px)!important;
  }

  html body.ktw-ui-system-v1.page .article-header .entry-title{
    font-size:31px!important;
  }

  html body.ktw-ui-system-v1 .ktw-tool-context-band{
    grid-template-columns:1fr!important;
  }
  html body.ktw-ui-system-v1 .ktw-tool-context-band>div{
    padding:14px!important;
    border-right:0!important;
    border-bottom:1px solid var(--ktw-border)!important;
  }
  html body.ktw-ui-system-v1 .ktw-tool-context-band>div:last-child{
    border-bottom:0!important;
  }

  html body.ktw-ui-system-v1 #ktw-search-1 .ktw-search__hero,
  html body.ktw-ui-system-v1 #ktw-quiz-1 .ktw-quiz__hero,
  html body.ktw-ui-system-v1 #ktw-quiz-1 .ktw-quiz__setup,
  html body.ktw-ui-system-v1 #ktw-quiz-1 .ktw-quiz__question-card,
  html body.ktw-ui-system-v1 #ktw-quiz-1 .ktw-quiz__result,
  html body.ktw-ui-system-v1 .ktw-learn-hero,
  html body.ktw-ui-system-v1 .ktw-learn-quickstart,
  html body.ktw-ui-system-v1 .ktw-learn-route15,
  html body.ktw-ui-system-v1 .ktw-learn-section{
    padding:18px!important;
  }

  html body.ktw-ui-system-v1 #ktw-search-1 .ktw-search__results{
    grid-template-columns:1fr!important;
  }

  html body.ktw-ui-system-v1 .ktw-learn-v2 :where(
    .ktw-learn-quickstart__grid,.ktw-learn-audience,.ktw-learn-method-grid,
    .ktw-learn-cycle__grid
  ){
    grid-template-columns:1fr!important;
  }
}

/* =========================================================
   5.6. Remaining hubs – relation / tools / gojuon / famous / compare
   ========================================================= */

/* Shared wide functional shell */
html body.ktw-ui-system-v1 :where(
  .ktw-rel-explorer,.ktw-tools-role-shell,.ktw-gojuon,.ktw-famous-hub,
  .ktw-famous-list,[class^="ktw-compare"],[class*=" ktw-compare"]
){
  width:min(var(--ktw-content),calc(100vw - 48px))!important;
  max-width:var(--ktw-content)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  color:var(--ktw-text)!important;
}

/* Relation explorer */
html body.ktw-ui-system-v1 .ktw-rel-hero{
  padding:28px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:14px!important;
  background:var(--ktw-bg-soft)!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1 .ktw-rel-hero h1{
  margin:0 0 10px!important;
  color:var(--ktw-text-strong)!important;
  font-size:clamp(32px,4vw,46px)!important;
  line-height:1.4!important;
}
html body.ktw-ui-system-v1 .ktw-rel-hero p{
  margin:0!important;
  color:var(--ktw-text-sub)!important;
  font-size:17px!important;
  line-height:1.8!important;
}
html body.ktw-ui-system-v1 .ktw-rel-search{
  margin-top:20px!important;
}
html body.ktw-ui-system-v1 .ktw-rel-search label{
  display:block!important;
  margin-bottom:7px!important;
  color:var(--ktw-text-strong)!important;
  font-size:16px!important;
  font-weight:800!important;
}
html body.ktw-ui-system-v1 .ktw-rel-search>div{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 100px!important;
  gap:8px!important;
}
html body.ktw-ui-system-v1 .ktw-rel-search button{
  border:0!important;
  background:var(--ktw-accent)!important;
  color:#fff!important;
}
html body.ktw-ui-system-v1 :where(.ktw-rel-coverage,.ktw-rel-workspace,.ktw-rel-guide){
  margin-top:18px!important;
  padding:26px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1 .ktw-rel-coverage__head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:20px!important;
  align-items:start!important;
}
html body.ktw-ui-system-v1 .ktw-rel-coverage__head h2,
html body.ktw-ui-system-v1 .ktw-rel-guide h2{
  margin:0 0 8px!important;
  padding:0!important;
  border:0!important;
  background:none!important;
  color:var(--ktw-text-strong)!important;
  font-size:27px!important;
  line-height:1.5!important;
}
html body.ktw-ui-system-v1 .ktw-rel-coverage__stats{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(110px,1fr))!important;
  gap:8px!important;
}
html body.ktw-ui-system-v1 .ktw-rel-coverage__stats article{
  padding:13px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:10px!important;
  background:var(--ktw-bg-soft)!important;
}
html body.ktw-ui-system-v1 .ktw-rel-coverage__stats b{
  display:block!important;
  color:var(--ktw-text-strong)!important;
  font-size:26px!important;
}
html body.ktw-ui-system-v1 .ktw-rel-coverage__stats span{
  font-size:14px!important;
  color:var(--ktw-text-sub)!important;
}
html body.ktw-ui-system-v1 .ktw-rel-coverage__items{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  margin-top:18px!important;
}
html body.ktw-ui-system-v1 .ktw-rel-coverage__items a{
  min-width:0!important;
  padding:14px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:10px!important;
  background:#fff!important;
  text-decoration:none!important;
}
html body.ktw-ui-system-v1 .ktw-rel-coverage__items strong{
  display:block!important;
  color:var(--ktw-text-strong)!important;
  font-size:17px!important;
  line-height:1.55!important;
}
html body.ktw-ui-system-v1 .ktw-rel-coverage__items span{
  display:block!important;
  margin-top:4px!important;
  color:var(--ktw-text-sub)!important;
  font-size:14px!important;
}
html body.ktw-ui-system-v1 .ktw-rel-type-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  margin-top:16px!important;
}
html body.ktw-ui-system-v1 .ktw-rel-type-grid article{
  padding:15px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:10px!important;
  background:var(--ktw-bg-soft)!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1 .ktw-rel-type-grid b{
  display:grid!important;
  place-items:center!important;
  width:34px!important;
  height:34px!important;
  border-radius:8px!important;
  background:var(--ktw-accent-soft)!important;
  color:var(--ktw-accent-dark)!important;
}
html body.ktw-ui-system-v1 .ktw-rel-type-grid strong{
  display:block!important;
  margin-top:8px!important;
  color:var(--ktw-text-strong)!important;
  font-size:17px!important;
}
html body.ktw-ui-system-v1 .ktw-rel-type-grid span{
  display:block!important;
  margin-top:3px!important;
  color:var(--ktw-text-sub)!important;
  font-size:14px!important;
}

/* Tools directory */
html body.ktw-ui-system-v1 .ktw-tools-role-shell{
  margin-top:24px!important;
  margin-bottom:64px!important;
}
html body.ktw-ui-system-v1 .ktw-tools-role-hero{
  padding:30px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:14px!important;
  background:var(--ktw-bg-soft)!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1 .ktw-tools-role-hero h1{
  margin:0 0 10px!important;
  color:var(--ktw-text-strong)!important;
  font-size:clamp(34px,4vw,48px)!important;
  line-height:1.35!important;
}
html body.ktw-ui-system-v1 .ktw-tools-role-hero>p{
  max-width:900px!important;
  margin:0!important;
  font-size:17px!important;
  line-height:1.8!important;
  color:var(--ktw-text-sub)!important;
}
html body.ktw-ui-system-v1 .ktw-tools-role-hero nav{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:8px!important;
  margin-top:20px!important;
}
html body.ktw-ui-system-v1 .ktw-tools-role-hero nav a{
  min-width:0!important;
  min-height:54px!important;
  padding:10px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:9px!important;
  background:#fff!important;
  color:var(--ktw-text-strong)!important;
  text-decoration:none!important;
}
html body.ktw-ui-system-v1 .ktw-tools-role-hero nav b{
  color:var(--ktw-accent-dark)!important;
  font-size:14px!important;
}
html body.ktw-ui-system-v1 .ktw-tools-role-hero nav span{
  display:block!important;
  color:var(--ktw-text-strong)!important;
  font-size:15px!important;
  line-height:1.45!important;
}
html body.ktw-ui-system-v1 .ktw-role-section,
html body.ktw-ui-system-v1 .ktw-role-rule{
  margin-top:18px!important;
  padding:26px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1 .ktw-role-section>header{
  display:grid!important;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)!important;
  gap:24px!important;
  align-items:start!important;
}
html body.ktw-ui-system-v1 .ktw-role-section header span{
  color:var(--ktw-accent-dark)!important;
  font-size:14px!important;
  font-weight:800!important;
}
html body.ktw-ui-system-v1 .ktw-role-section h2{
  margin:3px 0 0!important;
  padding:0!important;
  border:0!important;
  background:none!important;
  color:var(--ktw-text-strong)!important;
  font-size:27px!important;
  line-height:1.5!important;
}
html body.ktw-ui-system-v1 .ktw-role-section header p{
  margin:0!important;
  color:var(--ktw-text-sub)!important;
  font-size:16px!important;
  line-height:1.8!important;
}
html body.ktw-ui-system-v1 .ktw-role-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  margin-top:18px!important;
}
html body.ktw-ui-system-v1 .ktw-role-card{
  min-width:0!important;
  padding:17px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:10px!important;
  background:var(--ktw-bg-soft)!important;
  color:var(--ktw-text)!important;
  text-decoration:none!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1 .ktw-role-card strong{
  color:var(--ktw-text-strong)!important;
  font-size:18px!important;
  line-height:1.5!important;
}
html body.ktw-ui-system-v1 .ktw-role-card p{
  margin:7px 0 0!important;
  color:var(--ktw-text-sub)!important;
  font-size:15px!important;
  line-height:1.7!important;
}
html body.ktw-ui-system-v1 .ktw-role-card em{
  display:inline-block!important;
  margin-top:10px!important;
  color:var(--ktw-link)!important;
  font-size:15px!important;
  font-style:normal!important;
  font-weight:800!important;
}

/* 50音 */
html body.ktw-ui-system-v1 .ktw-gojuon{
  margin-top:24px!important;
  margin-bottom:64px!important;
}
html body.ktw-ui-system-v1 .ktw-gojuon__hero{
  padding:28px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:14px!important;
  background:var(--ktw-bg-soft)!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1 .ktw-gojuon__eyebrow{
  display:none!important;
}
html body.ktw-ui-system-v1 .ktw-gojuon__hero h1{
  margin:0 0 10px!important;
  color:var(--ktw-text-strong)!important;
  font-size:clamp(32px,4vw,44px)!important;
  line-height:1.4!important;
}
html body.ktw-ui-system-v1 .ktw-gojuon__hero>p{
  max-width:900px!important;
  margin:0!important;
  color:var(--ktw-text-sub)!important;
  font-size:17px!important;
  line-height:1.8!important;
}
html body.ktw-ui-system-v1 .ktw-gojuon__stats{
  display:flex!important;
  gap:8px!important;
  margin-top:16px!important;
}
html body.ktw-ui-system-v1 .ktw-gojuon__stats>div{
  min-width:120px!important;
  padding:11px 13px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:9px!important;
  background:#fff!important;
}
html body.ktw-ui-system-v1 .ktw-gojuon-search{
  margin-top:20px!important;
  padding-top:18px!important;
  border-top:1px solid var(--ktw-border)!important;
}
html body.ktw-ui-system-v1 .ktw-gojuon-search label{
  font-size:16px!important;
  font-weight:800!important;
  color:var(--ktw-text-strong)!important;
}
html body.ktw-ui-system-v1 .ktw-gojuon-search__bar{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 100px!important;
  gap:8px!important;
  margin-top:7px!important;
}
html body.ktw-ui-system-v1 .ktw-gojuon-search__bar button{
  border:0!important;
  background:var(--ktw-accent)!important;
  color:#fff!important;
}
html body.ktw-ui-system-v1 .ktw-gojuon-board,
html body.ktw-ui-system-v1 .ktw-gojuon-samples{
  margin-top:18px!important;
  padding:26px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1 .ktw-gojuon-board__head>span,
html body.ktw-ui-system-v1 .ktw-gojuon-samples__head>span{
  display:none!important;
}
html body.ktw-ui-system-v1 .ktw-gojuon-board__head strong,
html body.ktw-ui-system-v1 .ktw-gojuon-samples__head strong{
  color:var(--ktw-text-strong)!important;
  font-size:25px!important;
}
html body.ktw-ui-system-v1 .ktw-gojuon-row{
  display:grid!important;
  grid-template-columns:72px minmax(0,1fr)!important;
  gap:12px!important;
  align-items:center!important;
  padding:12px 0!important;
  border-top:1px solid #edf0f2!important;
}
html body.ktw-ui-system-v1 .ktw-gojuon-row h2{
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:none!important;
  font-size:17px!important;
  color:var(--ktw-text-sub)!important;
}
html body.ktw-ui-system-v1 .ktw-gojuon-row__letters{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:8px!important;
}
html body.ktw-ui-system-v1 .ktw-gojuon-row__letters>a,
html body.ktw-ui-system-v1 .ktw-gojuon-row__letters>.is-empty{
  display:grid!important;
  place-items:center!important;
  min-height:64px!important;
  padding:8px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:9px!important;
  background:#fff!important;
  text-decoration:none!important;
}
html body.ktw-ui-system-v1 .ktw-gojuon-row__letters strong{
  color:var(--ktw-text-strong)!important;
  font-size:21px!important;
}
html body.ktw-ui-system-v1 .ktw-gojuon-row__letters span{
  color:var(--ktw-text-sub)!important;
  font-size:14px!important;
}
html body.ktw-ui-system-v1 .ktw-gojuon-row__letters>.is-empty{
  opacity:.48!important;
}

/* Famous proverbs */
html body.ktw-ui-system-v1 .ktw-famous-hub{
  margin-top:24px!important;
  margin-bottom:64px!important;
}
html body.ktw-ui-system-v1 .ktw-famous-hub__hero{
  padding:28px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:14px!important;
  background:var(--ktw-bg-soft)!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1 .ktw-famous-hub__eyebrow{
  display:none!important;
}
html body.ktw-ui-system-v1 .ktw-famous-hub__hero h1{
  margin:0 0 10px!important;
  color:var(--ktw-text-strong)!important;
  font-size:clamp(32px,4vw,44px)!important;
  line-height:1.4!important;
}
html body.ktw-ui-system-v1 .ktw-famous-hub__hero>p{
  color:var(--ktw-text-sub)!important;
  font-size:17px!important;
  line-height:1.8!important;
}
html body.ktw-ui-system-v1 .ktw-famous-hub__actions{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
  margin-top:18px!important;
}
html body.ktw-ui-system-v1 .ktw-famous-hub__actions a{
  min-width:0!important;
  min-height:48px!important;
  display:grid!important;
  place-items:center!important;
  padding:9px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:9px!important;
  background:#fff!important;
  color:var(--ktw-text-strong)!important;
  font-size:15px!important;
  font-weight:800!important;
  text-decoration:none!important;
}
html body.ktw-ui-system-v1 .ktw-famous-hub__guide{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  margin-top:18px!important;
}
html body.ktw-ui-system-v1 .ktw-famous-hub__guide>div{
  padding:17px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:10px!important;
  background:#fff!important;
}
html body.ktw-ui-system-v1 .ktw-famous-list{
  margin-top:18px!important;
  padding:26px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:14px!important;
  background:#fff!important;
}
html body.ktw-ui-system-v1 .ktw-famous-list__head>span{
  display:none!important;
}
html body.ktw-ui-system-v1 .ktw-famous-list__head>strong{
  color:var(--ktw-text-strong)!important;
  font-size:25px!important;
}
html body.ktw-ui-system-v1 .ktw-famous-list__controls{
  display:flex!important;
  flex-wrap:wrap!important;
  justify-content:space-between!important;
  gap:10px!important;
  margin:18px 0!important;
}
html body.ktw-ui-system-v1 .ktw-famous-list__sort{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:7px!important;
}
html body.ktw-ui-system-v1 .ktw-famous-list__sort button{
  min-height:44px!important;
  padding:8px 12px!important;
  border:1px solid var(--ktw-border)!important;
  background:#fff!important;
  color:var(--ktw-text-strong)!important;
  font-size:15px!important;
}
html body.ktw-ui-system-v1 .ktw-famous-list__sort button.is-active{
  border-color:var(--ktw-text-strong)!important;
  background:var(--ktw-text-strong)!important;
  color:#fff!important;
}
html body.ktw-ui-system-v1 .ktw-famous-list__grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
}
html body.ktw-ui-system-v1 .ktw-famous-item{
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr)!important;
  min-width:0!important;
  overflow:hidden!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:10px!important;
  background:#fff!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1 .ktw-famous-item__select{
  display:grid!important;
  place-items:start center!important;
  padding-top:18px!important;
  background:var(--ktw-bg-soft)!important;
}
html body.ktw-ui-system-v1 .ktw-famous-item__body{
  display:block!important;
  min-width:0!important;
  padding:16px!important;
  text-decoration:none!important;
}
html body.ktw-ui-system-v1 .ktw-famous-item__body strong{
  color:var(--ktw-text-strong)!important;
  font-size:19px!important;
  line-height:1.5!important;
}
html body.ktw-ui-system-v1 .ktw-famous-item__body small{
  display:block!important;
  margin-top:2px!important;
  color:var(--ktw-text-sub)!important;
  font-size:15px!important;
}
html body.ktw-ui-system-v1 .ktw-famous-item__body p{
  margin:8px 0 0!important;
  color:var(--ktw-text)!important;
  font-size:16px!important;
  line-height:1.75!important;
}

/* Comparison pages: universal fallback for dense comparison UIs */
html body.ktw-ui-system-v1 :where([class^="ktw-compare"],[class*=" ktw-compare"]){
  color:var(--ktw-text)!important;
}
html body.ktw-ui-system-v1 :where([class^="ktw-compare"],[class*=" ktw-compare"]) :where(
  [class*="hero"],[class*="panel"],[class*="card"],[class*="result"]
){
  border-color:var(--ktw-border)!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1 :where([class^="ktw-compare"],[class*=" ktw-compare"]) :where(
  p,li,label,span,small,button,input,select
){
  font-size:max(15px,1em)!important;
  line-height:1.7!important;
}

/* Common bottom network */
html body.ktw-ui-system-v1 .ktw-hub-network{
  width:min(var(--ktw-content),calc(100vw - 48px))!important;
  max-width:var(--ktw-content)!important;
  margin:24px auto 64px!important;
  padding:24px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:14px!important;
  background:var(--ktw-bg-soft)!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1 .ktw-hub-network__head>span{
  display:none!important;
}
html body.ktw-ui-system-v1 .ktw-hub-network__head>strong{
  color:var(--ktw-text-strong)!important;
  font-size:24px!important;
}
html body.ktw-ui-system-v1 .ktw-hub-network__grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:9px!important;
  margin-top:16px!important;
}
html body.ktw-ui-system-v1 .ktw-hub-network__grid a{
  min-width:0!important;
  padding:14px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:9px!important;
  background:#fff!important;
  text-decoration:none!important;
}
html body.ktw-ui-system-v1 .ktw-hub-network__grid strong{
  display:block!important;
  color:var(--ktw-text-strong)!important;
  font-size:16px!important;
}
html body.ktw-ui-system-v1 .ktw-hub-network__grid span{
  display:block!important;
  margin-top:4px!important;
  color:var(--ktw-text-sub)!important;
  font-size:14px!important;
  line-height:1.6!important;
}

@media(max-width:1024px){
  html body.ktw-ui-system-v1 .ktw-rel-coverage__items,
  html body.ktw-ui-system-v1 .ktw-role-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  html body.ktw-ui-system-v1 .ktw-tools-role-hero nav{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  html body.ktw-ui-system-v1 .ktw-hub-network__grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media(max-width:760px){
  html body.ktw-ui-system-v1 :where(
    .ktw-rel-explorer,.ktw-tools-role-shell,.ktw-gojuon,.ktw-famous-hub,
    .ktw-famous-list,[class^="ktw-compare"],[class*=" ktw-compare"],.ktw-hub-network
  ){
    width:calc(100vw - 28px)!important;
    max-width:calc(100vw - 28px)!important;
  }

  html body.ktw-ui-system-v1 :where(
    .ktw-rel-hero,.ktw-rel-coverage,.ktw-rel-workspace,.ktw-rel-guide,
    .ktw-tools-role-hero,.ktw-role-section,.ktw-role-rule,
    .ktw-gojuon__hero,.ktw-gojuon-board,.ktw-gojuon-samples,
    .ktw-famous-hub__hero,.ktw-famous-list,.ktw-hub-network
  ){
    padding:18px!important;
  }

  html body.ktw-ui-system-v1 .ktw-rel-coverage__head,
  html body.ktw-ui-system-v1 .ktw-role-section>header{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  html body.ktw-ui-system-v1 .ktw-rel-coverage__items,
  html body.ktw-ui-system-v1 .ktw-role-grid,
  html body.ktw-ui-system-v1 .ktw-famous-list__grid,
  html body.ktw-ui-system-v1 .ktw-famous-hub__guide,
  html body.ktw-ui-system-v1 .ktw-hub-network__grid{
    grid-template-columns:1fr!important;
  }
  html body.ktw-ui-system-v1 .ktw-rel-type-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  html body.ktw-ui-system-v1 .ktw-tools-role-hero nav{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  html body.ktw-ui-system-v1 .ktw-gojuon-row{
    grid-template-columns:1fr!important;
    gap:7px!important;
  }
  html body.ktw-ui-system-v1 .ktw-gojuon-row__letters{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
  }
  html body.ktw-ui-system-v1 .ktw-famous-hub__actions{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

/* =========================================================
   5.7. Research suite normalization
   ========================================================= */

/* Research pages share one readable wide shell */
html body.ktw-ui-system-v1 :where(
  .ktrw,.ktw-rcs,.ktw-hep,.ktw-rs,.ktw-scholar,.ktw-rtool,.ktrm,.ktmc,
  .ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu,.ktw-tool-method,.ktw-rgx,.ktw-pa
){
  width:min(var(--ktw-content),calc(100vw - 48px))!important;
  max-width:var(--ktw-content)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  color:var(--ktw-text)!important;
  font-family:var(--ktw-font)!important;
}

/* No microscopic research UI */
html body.ktw-ui-system-v1 :where(
  .ktrw,.ktw-rcs,.ktw-hep,.ktw-rs,.ktw-scholar,.ktw-rtool,.ktrm,.ktmc,
  .ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu,.ktw-tool-method,.ktw-rgx,.ktw-pa
) :where(p,li,dd,dt,span,small,label,button,input,select,textarea,summary){
  font-size:max(15px,1em)!important;
  line-height:1.7!important;
}

/* Hero areas */
html body.ktw-ui-system-v1 :where(
  .ktrw-hero,.ktw-rs-hero,.ktw-rcs>header,.ktw-hep>header,.ktw-rx-start
){
  margin-top:18px!important;
  padding:26px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:14px!important;
  background:var(--ktw-bg-soft)!important;
  box-shadow:none!important;
  background-image:none!important;
}
html body.ktw-ui-system-v1 :where(
  .ktrw-hero,.ktw-rs-hero,.ktw-rcs>header,.ktw-hep>header,.ktw-rx-start
) :where(h1,h2){
  margin:0 0 10px!important;
  padding:0!important;
  border:0!important;
  background:none!important;
  color:var(--ktw-text-strong)!important;
  font-size:clamp(30px,4vw,44px)!important;
  line-height:1.4!important;
}
html body.ktw-ui-system-v1 :where(
  .ktrw-hero,.ktw-rs-hero,.ktw-rcs>header,.ktw-hep>header,.ktw-rx-start
)>p{
  margin:0!important;
  color:var(--ktw-text-sub)!important;
  font-size:17px!important;
  line-height:1.8!important;
}

/* Research forms */
html body.ktw-ui-system-v1 :where(.ktrw-search,.ktw-rs-search){
  margin-top:18px!important;
}
html body.ktw-ui-system-v1 :where(.ktrw-search,.ktw-rs-search) label{
  display:block!important;
  margin-bottom:7px!important;
  color:var(--ktw-text-strong)!important;
  font-size:16px!important;
  font-weight:800!important;
}
html body.ktw-ui-system-v1 :where(.ktrw-search,.ktw-rs-search)>div{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:8px!important;
}
html body.ktw-ui-system-v1 :where(.ktrw-search,.ktw-rs-search) button{
  min-width:110px!important;
  border:0!important;
  background:var(--ktw-accent)!important;
  color:#fff!important;
}

/* Research sections and cards */
html body.ktw-ui-system-v1 :where(
  .ktrw-flow,.ktrw-plan,.ktw-rs-section,.ktw-atlas-protocol,
  .ktw-rcs__filters,.ktw-rcs__summary,.ktw-rcs__results,.ktw-rcs__method,
  .ktw-hep-dist,.ktw-hep-depth,.ktw-hep-fields,.ktw-hep-example,
  .ktw-hep-live,.ktw-hep-rule,.ktw-hep-cite
){
  margin-top:18px!important;
  padding:24px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1 :where(
  .ktrw-flow,.ktrw-plan,.ktw-rs-section,.ktw-atlas-protocol,
  .ktw-rcs__method,.ktw-hep-depth,.ktw-hep-fields,.ktw-hep-example,
  .ktw-hep-live,.ktw-hep-rule,.ktw-hep-cite
) :where(h2,h3){
  margin:0 0 14px!important;
  padding:0!important;
  border:0!important;
  background:none!important;
  color:var(--ktw-text-strong)!important;
  font-size:24px!important;
  line-height:1.5!important;
}

html body.ktw-ui-system-v1 .ktrw-groups{
  display:grid!important;
  gap:14px!important;
}
html body.ktw-ui-system-v1 .ktrw-group{
  padding:18px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:10px!important;
  background:var(--ktw-bg-soft)!important;
}
html body.ktw-ui-system-v1 .ktrw-group-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
}
html body.ktw-ui-system-v1 .ktrw-group-head strong{
  color:var(--ktw-text-strong)!important;
  font-size:18px!important;
}
html body.ktw-ui-system-v1 .ktrw-group-head small{
  color:var(--ktw-text-sub)!important;
  font-size:14px!important;
}
html body.ktw-ui-system-v1 .ktrw-cards{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  margin-top:12px!important;
}
html body.ktw-ui-system-v1 .ktrw-card{
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr)!important;
  gap:10px!important;
  min-width:0!important;
  padding:14px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:9px!important;
  background:#fff!important;
  color:var(--ktw-text)!important;
  text-decoration:none!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1 .ktrw-card>b{
  display:grid!important;
  place-items:center!important;
  width:34px!important;
  height:34px!important;
  border-radius:8px!important;
  background:var(--ktw-accent-soft)!important;
  color:var(--ktw-accent-dark)!important;
}
html body.ktw-ui-system-v1 .ktrw-card strong{
  color:var(--ktw-text-strong)!important;
  font-size:16px!important;
  line-height:1.5!important;
}
html body.ktw-ui-system-v1 .ktrw-card small{
  display:block!important;
  margin-top:4px!important;
  color:var(--ktw-text-sub)!important;
  font-size:14px!important;
  line-height:1.6!important;
}
html body.ktw-ui-system-v1 .ktrw-card i{
  grid-column:2!important;
  color:var(--ktw-link)!important;
  font-size:14px!important;
  font-style:normal!important;
  font-weight:800!important;
}

/* Workspace onboarding */
html body.ktw-ui-system-v1 .ktw-rx-steps{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:9px!important;
  margin:18px 0 0!important;
  padding:0!important;
  list-style:none!important;
}
html body.ktw-ui-system-v1 .ktw-rx-steps li{
  padding:14px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:9px!important;
  background:#fff!important;
}
html body.ktw-ui-system-v1 .ktw-rx-steps b{
  color:var(--ktw-accent-dark)!important;
  font-size:15px!important;
}
html body.ktw-ui-system-v1 .ktw-rx-steps strong{
  display:block!important;
  margin-top:5px!important;
  color:var(--ktw-text-strong)!important;
  font-size:16px!important;
}
html body.ktw-ui-system-v1 .ktw-rx-steps span{
  display:block!important;
  margin-top:4px!important;
  color:var(--ktw-text-sub)!important;
  font-size:14px!important;
}
html body.ktw-ui-system-v1 .ktw-rx-mode,
html body.ktw-ui-system-v1 .ktw-rx-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  margin-top:15px!important;
}
html body.ktw-ui-system-v1 .ktw-rx-mode a,
html body.ktw-ui-system-v1 .ktw-rx-actions a{
  display:inline-flex!important;
  align-items:center!important;
  min-height:44px!important;
  padding:8px 12px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:9px!important;
  background:#fff!important;
  color:var(--ktw-text-strong)!important;
  text-decoration:none!important;
  font-size:15px!important;
  font-weight:800!important;
}
html body.ktw-ui-system-v1 .ktw-rx-actions a.primary{
  border-color:var(--ktw-accent)!important;
  background:var(--ktw-accent)!important;
  color:#fff!important;
}

/* Cross-search */
html body.ktw-ui-system-v1 .ktw-rcs{
  margin-top:24px!important;
  margin-bottom:64px!important;
}
html body.ktw-ui-system-v1 .ktw-rcs__filters{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
}
html body.ktw-ui-system-v1 .ktw-rcs__filters .wide{
  grid-column:1/-1!important;
}
html body.ktw-ui-system-v1 .ktw-rcs__filters label{
  min-width:0!important;
}
html body.ktw-ui-system-v1 .ktw-rcs__filters label>strong{
  display:block!important;
  margin-bottom:6px!important;
  color:var(--ktw-text-strong)!important;
  font-size:15px!important;
}
html body.ktw-ui-system-v1 .ktw-rcs__filters .actions{
  grid-column:1/-1!important;
  display:flex!important;
  flex-wrap:wrap!important;
  gap:7px!important;
}
html body.ktw-ui-system-v1 .ktw-rcs__filters .actions button{
  min-height:44px!important;
  padding:8px 11px!important;
  border:1px solid var(--ktw-border)!important;
  background:#fff!important;
  color:var(--ktw-text-strong)!important;
}
html body.ktw-ui-system-v1 .ktw-rcs__filters .actions .primary{
  border-color:var(--ktw-accent)!important;
  background:var(--ktw-accent)!important;
  color:#fff!important;
}

/* Evidence Explorer / protocol */
html body.ktw-ui-system-v1 .ktw-hep{
  margin-top:24px!important;
  margin-bottom:64px!important;
  padding:0!important;
  border:0!important;
  background:#fff!important;
}
html body.ktw-ui-system-v1 .ktw-hep-dist{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:9px!important;
}
html body.ktw-ui-system-v1 .ktw-hep-dist article,
html body.ktw-ui-system-v1 .ktw-hep-depth article,
html body.ktw-ui-system-v1 .ktw-hep-livegrid article{
  padding:14px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:9px!important;
  background:var(--ktw-bg-soft)!important;
}
html body.ktw-ui-system-v1 .ktw-hep-dist p,
html body.ktw-ui-system-v1 .ktw-hep-depth p{
  margin:5px 0 0!important;
  color:var(--ktw-text-sub)!important;
  font-size:15px!important;
  line-height:1.65!important;
}
html body.ktw-ui-system-v1 .ktw-hep-depth>div{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
}
html body.ktw-ui-system-v1 .ktw-hep-fields>div{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:7px!important;
}
html body.ktw-ui-system-v1 .ktw-hep-fields span{
  padding:7px 10px!important;
  border-radius:999px!important;
  background:var(--ktw-bg-soft)!important;
  color:var(--ktw-text)!important;
  font-size:14px!important;
  font-weight:700!important;
}
html body.ktw-ui-system-v1 .ktw-hep-livegrid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
}
html body.ktw-ui-system-v1 .ktw-hep-livegrid b{
  color:var(--ktw-text-strong)!important;
  font-size:25px!important;
}
html body.ktw-ui-system-v1 .ktw-hep-livegrid span{
  color:var(--ktw-text-sub)!important;
  font-size:14px!important;
}

/* Research Atlas */
html body.ktw-ui-system-v1 .ktw-rs{
  margin-top:24px!important;
  margin-bottom:64px!important;
}
html body.ktw-ui-system-v1 .ktw-rs-lenses{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:9px!important;
}
html body.ktw-ui-system-v1 .ktw-rs-lenses button{
  display:grid!important;
  grid-template-columns:36px minmax(0,1fr)!important;
  gap:10px!important;
  min-width:0!important;
  min-height:88px!important;
  padding:14px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:9px!important;
  background:#fff!important;
  color:var(--ktw-text)!important;
  text-align:left!important;
}
html body.ktw-ui-system-v1 .ktw-rs-lenses button>b{
  display:grid!important;
  place-items:center!important;
  width:34px!important;
  height:34px!important;
  border-radius:8px!important;
  background:var(--ktw-accent-soft)!important;
  color:var(--ktw-accent-dark)!important;
}
html body.ktw-ui-system-v1 .ktw-rs-lenses strong{
  display:block!important;
  color:var(--ktw-text-strong)!important;
  font-size:16px!important;
}
html body.ktw-ui-system-v1 .ktw-rs-lenses small{
  display:block!important;
  margin-top:4px!important;
  color:var(--ktw-text-sub)!important;
  font-size:14px!important;
}
html body.ktw-ui-system-v1 .ktw-rs-inst-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px!important;
}
html body.ktw-ui-system-v1 .ktw-rs-inst-grid a{
  min-width:0!important;
  padding:15px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:9px!important;
  background:var(--ktw-bg-soft)!important;
  text-decoration:none!important;
}
html body.ktw-ui-system-v1 .ktw-rs-inst-grid strong{
  color:var(--ktw-text-strong)!important;
  font-size:16px!important;
}
html body.ktw-ui-system-v1 .ktw-rs-inst-grid span,
html body.ktw-ui-system-v1 .ktw-rs-inst-grid small{
  display:block!important;
  margin-top:4px!important;
  color:var(--ktw-text-sub)!important;
  font-size:14px!important;
}

@media(max-width:1024px){
  html body.ktw-ui-system-v1 .ktrw-cards,
  html body.ktw-ui-system-v1 .ktw-rs-lenses{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  html body.ktw-ui-system-v1 .ktw-rx-steps{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  html body.ktw-ui-system-v1 .ktw-hep-dist,
  html body.ktw-ui-system-v1 .ktw-hep-depth>div{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media(max-width:760px){
  html body.ktw-ui-system-v1 :where(
    .ktrw,.ktw-rcs,.ktw-hep,.ktw-rs,.ktw-scholar,.ktw-rtool,.ktrm,.ktmc,
    .ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu,.ktw-tool-method,.ktw-rgx,.ktw-pa
  ){
    width:calc(100vw - 28px)!important;
    max-width:calc(100vw - 28px)!important;
  }
  html body.ktw-ui-system-v1 :where(
    .ktrw-hero,.ktw-rs-hero,.ktw-rcs>header,.ktw-hep>header,.ktw-rx-start,
    .ktrw-flow,.ktrw-plan,.ktw-rs-section,.ktw-atlas-protocol,
    .ktw-rcs__filters,.ktw-rcs__summary,.ktw-rcs__results,.ktw-rcs__method,
    .ktw-hep-dist,.ktw-hep-depth,.ktw-hep-fields,.ktw-hep-example,
    .ktw-hep-live,.ktw-hep-rule,.ktw-hep-cite
  ){
    padding:18px!important;
  }
  html body.ktw-ui-system-v1 .ktrw-cards,
  html body.ktw-ui-system-v1 .ktw-rx-steps,
  html body.ktw-ui-system-v1 .ktw-rs-lenses,
  html body.ktw-ui-system-v1 .ktw-rs-inst-grid,
  html body.ktw-ui-system-v1 .ktw-rcs__filters,
  html body.ktw-ui-system-v1 .ktw-hep-dist,
  html body.ktw-ui-system-v1 .ktw-hep-depth>div,
  html body.ktw-ui-system-v1 .ktw-hep-livegrid{
    grid-template-columns:1fr!important;
  }
  html body.ktw-ui-system-v1 .ktw-rcs__filters .wide{
    grid-column:auto!important;
  }
}

/* =========================================================
   6. Responsive table helper
   ========================================================= */
html body.ktw-ui-system-v1 .ktw-responsive-scroll{
  position:relative;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-inline:contain;
}

html body.ktw-ui-system-v1 .ktw-scroll-hint{
  display:none;
  margin:0 0 8px;
  padding:8px 10px;
  border:1px solid #ddd4c4;
  border-radius:9px;
  background:var(--ktw-bg-warm);
  color:#624f32!important;
  font-size:14px!important;
  line-height:1.5!important;
  font-weight:800!important;
  text-align:center;
}

/* =========================================================
   7. Tablet
   ========================================================= */
@media (max-width:1024px){
  html body.ktw-ui-system-v1{
    font-size:18px!important;
  }

  html body.ktw-ui-system-v1 #main,
  html body.ktw-ui-system-v1 #sidebar{
    float:none!important;
    width:100%!important;
    max-width:100%!important;
  }

  html body.ktw-ui-system-v1 #sidebar{
    margin-top:34px!important;
  }

  html body.ktw-ui-system-v1 .ktw-home-knowledge-gateway__grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  html body.ktw-ui-system-v1 .ktw-portal__quick-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  html body.ktw-ui-system-v1 .ktw-portal__length-grid{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
  }

  html body.ktw-ui-system-v1.single-post .ktw-current-proverb-tools__grid{
    grid-template-columns:1fr!important;
  }

  html body.ktw-ui-system-v1 .ktrh2-metrics{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }

  html body.ktw-ui-system-v1 .ktrh2-columns{
    grid-template-columns:1fr!important;
  }
}

/* =========================================================
   8. Mobile
   ========================================================= */
@media (max-width:760px){
  html body.ktw-ui-system-v1{
    font-size:18px!important;
    line-height:1.85!important;
    overflow-x:hidden!important;
  }

  html body.ktw-ui-system-v1 .ktw-shell,
  html body.ktw-ui-system-v1 .ktw-portal__hero-layout,
  html body.ktw-ui-system-v1 .ktw-home-knowledge-gateway,
  html body.ktw-ui-system-v1 .ktw-portal__commandbar,
  html body.ktw-ui-system-v1.single-post .article-header,
  html body.ktw-ui-system-v1.single-post :where(.ktw-zb-intro,.ktw-zb-intro-v2),
  html body.ktw-ui-system-v1.single-post .ktw-zb-section>h2,
  html body.ktw-ui-system-v1.single-post .ktw-zb-prose,
  html body.ktw-ui-system-v1.single-post :where(
    .ktw-zb-examples,.ktw-zb-scenarios,.ktw-zb-compare,.ktw-zb-theories,
    .ktw-zb-route,.ktw-zb-history,.ktw-zb-toolgrid,.ktw-zb-links,
    .ktw-current-proverb-tools,.ktw-meaning-map,.ktw-after,.ktw-research-status,
    .ktw-inline-evidence,[class*="research-quality"],[class*="research-status"]
  ),
  html body.ktw-ui-system-v1 .ktrh2{
    width:calc(100vw - 28px)!important;
    max-width:calc(100vw - 28px)!important;
  }

  html body.ktw-ui-system-v1 :where(p,li,dd,dt,figcaption){
    font-size:17px!important;
    line-height:1.85!important;
  }

  html body.ktw-ui-system-v1 :where(small,.small,[class*="caption"],[class*="meta"]){
    font-size:15px!important;
  }

  html body.ktw-ui-system-v1 .ktw-portal__hero{
    padding:34px 0 26px!important;
  }

  html body.ktw-ui-system-v1 .ktw-portal__hero-copy h1{
    margin-bottom:18px!important;
    font-size:34px!important;
    line-height:1.35!important;
  }

  html body.ktw-ui-system-v1 .ktw-portal__search-tabs{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
  }

  html body.ktw-ui-system-v1 .ktw-portal__search-tabs button{
    width:100%!important;
    padding-inline:8px!important;
    font-size:15px!important;
  }

  html body.ktw-ui-system-v1 .ktw-portal__search-box{
    grid-template-columns:minmax(0,1fr) 92px!important;
  }

  html body.ktw-ui-system-v1 .ktw-portal__hero-input{
    min-height:58px!important;
    padding:12px!important;
    font-size:16px!important;
  }

  html body.ktw-ui-system-v1 .ktw-portal__search-box button[type="submit"]{
    width:92px!important;
    min-width:92px!important;
    min-height:58px!important;
    font-size:16px!important;
  }

  html body.ktw-ui-system-v1 .ktw-portal__commandbar{
    margin-top:14px!important;
    margin-bottom:26px!important;
  }

  html body.ktw-ui-system-v1 .ktw-portal__commandbar-inner{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  html body.ktw-ui-system-v1 .ktw-portal__commandbar a{
    min-height:56px!important;
    padding:9px 10px!important;
  }

  html body.ktw-ui-system-v1 .ktw-home-knowledge-gateway{
    padding:20px!important;
    border-radius:13px!important;
  }

  html body.ktw-ui-system-v1 .ktw-home-knowledge-gateway__grid,
  html body.ktw-ui-system-v1 .ktw-home-knowledge-gateway__mini,
  html body.ktw-ui-system-v1 .ktw-portal__quick-grid{
    grid-template-columns:1fr!important;
  }

  html body.ktw-ui-system-v1 .ktw-home-knowledge-gateway__grid>a{
    padding:15px!important;
  }

  html body.ktw-ui-system-v1 .ktw-section{
    padding:42px 0!important;
  }

  html body.ktw-ui-system-v1 .ktw-portal__quick-item{
    grid-template-columns:82px minmax(0,1fr)!important;
    min-height:94px!important;
  }

  html body.ktw-ui-system-v1 .ktw-portal__quick-image{
    width:82px!important;
    min-height:94px!important;
  }

  html body.ktw-ui-system-v1 .ktw-portal__smart-finder{
    grid-template-columns:1fr!important;
  }

  html body.ktw-ui-system-v1 .ktw-portal__smart-intro,
  html body.ktw-ui-system-v1 .ktw-portal__smart-body{
    padding:20px!important;
  }

  html body.ktw-ui-system-v1 .ktw-portal__smart-intro h2{
    font-size:25px!important;
  }

  html body.ktw-ui-system-v1 .ktw-portal__fuzzy-fields{
    grid-template-columns:1fr!important;
  }

  html body.ktw-ui-system-v1 .ktw-portal__fuzzy-fields .is-wide{
    grid-column:auto!important;
  }

  html body.ktw-ui-system-v1 .ktw-portal__length-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }

  html body.ktw-ui-system-v1 .ktw-portal__kana-row{
    grid-template-columns:1fr!important;
    gap:7px!important;
  }

  html body.ktw-ui-system-v1 .ktw-portal__kana-cells{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
  }

  /* Article */
  html body.ktw-ui-system-v1.single-post .article-header{
    margin-top:26px!important;
    margin-bottom:20px!important;
  }

  html body.ktw-ui-system-v1.single-post :where(.article-header h1,.entry-title){
    font-size:34px!important;
    line-height:1.35!important;
  }

  html body.ktw-ui-system-v1.single-post .ktw-zb-dictionary{
    grid-template-columns:1fr!important;
  }

  html body.ktw-ui-system-v1.single-post .ktw-zb-dict-block{
    padding:18px!important;
  }

  html body.ktw-ui-system-v1.single-post .ktw-zb-dict-block.is-reading{
    border-right:0!important;
    border-bottom:1px solid var(--ktw-border)!important;
  }

  html body.ktw-ui-system-v1.single-post .ktw-zb-dict-reading{
    font-size:21px!important;
  }

  html body.ktw-ui-system-v1.single-post .ktw-zb-dict-main{
    font-size:19px!important;
  }

  html body.ktw-ui-system-v1.single-post .ktw-zb-section{
    padding:42px 0!important;
  }

  html body.ktw-ui-system-v1.single-post .ktw-zb-section>h2{
    margin-bottom:22px!important;
    padding-bottom:12px!important;
    font-size:28px!important;
    line-height:1.45!important;
  }

  html body.ktw-ui-system-v1.single-post .ktw-zb-prose p{
    margin-bottom:24px!important;
    font-size:18px!important;
    line-height:1.95!important;
  }

  html body.ktw-ui-system-v1.single-post .ktw-zb-prose h3{
    margin-top:36px!important;
    font-size:23px!important;
  }

  html body.ktw-ui-system-v1.single-post .ktw-zb-example{
    grid-template-columns:38px minmax(0,1fr)!important;
    gap:10px!important;
    padding:16px!important;
  }

  html body.ktw-ui-system-v1.single-post .ktw-zb-example__num{
    width:34px!important;
    height:34px!important;
  }

  html body.ktw-ui-system-v1.single-post .ktw-current-proverb-tools,
  html body.ktw-ui-system-v1.single-post .ktw-meaning-map{
    padding:20px!important;
  }

  /* Research */
  html body.ktw-ui-system-v1 .ktrh2{
    margin-top:20px!important;
  }

  html body.ktw-ui-system-v1 .ktrh2-hero,
  html body.ktw-ui-system-v1 .ktrh2 :where(.ktrh2-start,.ktrh2-columns>section,.ktrh2-notes,.ktrh2-principle){
    padding:20px!important;
  }

  html body.ktw-ui-system-v1 .ktrh2-hero h1{
    font-size:32px!important;
  }

  html body.ktw-ui-system-v1 .ktrh2-filter{
    grid-template-columns:1fr!important;
  }

  html body.ktw-ui-system-v1 .ktrh2-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  html body.ktw-ui-system-v1 .ktrh2-start-grid,
  html body.ktw-ui-system-v1 .ktrh2-note-grid{
    grid-template-columns:1fr!important;
  }

  html body.ktw-ui-system-v1 .ktw-scroll-hint.is-visible{
    display:block!important;
  }

  html body.ktw-ui-system-v1 table.ktw-wide-data-table{
    min-width:680px!important;
    width:max-content!important;
    max-width:none!important;
  }
}

/* =========================================================
   9. Small phones
   ========================================================= */
@media (max-width:430px){
  html body.ktw-ui-system-v1 .ktw-portal__hero-copy h1,
  html body.ktw-ui-system-v1.single-post :where(.article-header h1,.entry-title){
    font-size:31px!important;
  }

  html body.ktw-ui-system-v1 .ktw-portal__length-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }

  html body.ktw-ui-system-v1 .ktw-home-knowledge-gateway__grid>a{
    grid-template-columns:38px minmax(0,1fr)!important;
  }

  html body.ktw-ui-system-v1 .ktrh2-metrics{
    grid-template-columns:1fr 1fr!important;
  }
}

/* =========================================================
   8.8. Homepage zero-base functional portal
   ========================================================= */

/*
 * The homepage intentionally stops behaving like a magazine.
 * It is a dictionary/search portal first:
 * Search -> choose purpose -> fuzzy lookup -> indexes -> learning/research.
 */
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1{
  position:relative!important;
  left:auto!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  overflow:visible!important;
  display:flex!important;
  flex-direction:column!important;
  background:#fff!important;
  color:var(--ktw-text)!important;
  font-family:var(--ktw-font)!important;
}

html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1>.ktw-portal__hero{order:1!important}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1>.ktw-home-knowledge-gateway{order:2!important}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1>.ktw-portal__fuzzy{order:3!important}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1>#ktw-portal-kana{order:4!important}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1>.ktw-portal__browse{order:5!important}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1>.ktw-portal__tools{order:6!important}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1>.ktw-home-research-quality{order:7!important}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1>.ktw-home-featured{order:8!important}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1>.ktw-portal__books{order:9!important}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1>.ktw-portal__author{order:10!important}

/* Redundant homepage blocks are removed from the visual flow. */
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1>.ktw-portal__commandbar,
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1>.ktw-portal__quick,
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1>#ktw-portal-length{
  display:none!important;
}

/* No decorative image-led homepage. */
html body.ktw-ui-system-v1.ktw-homepage :where(
  .ktw-portal__hero-visual,
  .ktw-portal__quick-image,
  .ktw-portal__browse-image,
  .ktw-portal__tool-image
){
  display:none!important;
}

/* Canonical homepage container. */
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-shell,
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__hero-layout,
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-knowledge-gateway{
  width:min(1120px,calc(100vw - 48px))!important;
  max-width:1120px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* Hero: plain dictionary search, no poster art. */
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__hero{
  padding:56px 0 46px!important;
  border:0!important;
  border-bottom:1px solid var(--ktw-border)!important;
  background:#fff!important;
  background-image:none!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__hero-layout{
  display:block!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__hero-paper{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__hero-copy{
  max-width:780px!important;
  margin:0 auto!important;
  text-align:center!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__hero-copy::before{
  content:"北澤篤史のことわざ辞典";
  display:block;
  margin:0 0 12px;
  color:var(--ktw-accent-dark);
  font-size:16px;
  line-height:1.5;
  font-weight:800;
  letter-spacing:.02em;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__hero-copy h1{
  margin:0!important;
  color:var(--ktw-text-strong)!important;
  font-family:var(--ktw-font)!important;
  font-size:clamp(38px,5vw,58px)!important;
  line-height:1.3!important;
  letter-spacing:0!important;
  font-weight:900!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__hero-copy h1::after{
  content:"意味・読み方・使い方・由来から、知りたいことわざへ最短でたどります。";
  display:block;
  max-width:700px;
  margin:14px auto 0;
  color:var(--ktw-text-sub);
  font-size:18px;
  line-height:1.8;
  font-weight:500;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__search-panel{
  width:min(860px,100%)!important;
  max-width:860px!important;
  margin:28px auto 0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__search-tabs{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:8px!important;
  width:min(520px,100%)!important;
  margin:0 auto 12px!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__search-tabs button{
  min-height:46px!important;
  padding:9px 12px!important;
  border:1px solid var(--ktw-border-strong)!important;
  border-radius:9px!important;
  background:#fff!important;
  color:var(--ktw-text-strong)!important;
  font-size:16px!important;
  font-weight:800!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__search-tabs button.is-active{
  border-color:var(--ktw-text-strong)!important;
  background:var(--ktw-text-strong)!important;
  color:#fff!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__search-box{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 112px!important;
  overflow:hidden!important;
  border:2px solid var(--ktw-text-strong)!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 8px 24px rgba(21,32,42,.06)!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__hero-input{
  min-height:64px!important;
  padding:14px 16px!important;
  border:0!important;
  border-radius:0!important;
  color:var(--ktw-text-strong)!important;
  background:#fff!important;
  font-size:18px!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__search-box button[type="submit"]{
  width:112px!important;
  min-width:112px!important;
  min-height:64px!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:var(--ktw-accent)!important;
  color:#fff!important;
  font-size:17px!important;
  font-weight:900!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__search-count{
  margin-top:9px!important;
  text-align:center!important;
  color:var(--ktw-text-sub)!important;
  font-size:15px!important;
}

/* Purpose gateway = the true homepage navigation. */
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-knowledge-gateway{
  margin-top:0!important;
  margin-bottom:0!important;
  padding:46px 0!important;
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-knowledge-gateway__head{
  max-width:760px!important;
  margin:0 0 22px!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-knowledge-gateway__head h2{
  margin:0!important;
  color:var(--ktw-text-strong)!important;
  font-family:var(--ktw-font)!important;
  font-size:32px!important;
  line-height:1.45!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-knowledge-gateway__head p{
  margin:7px 0 0!important;
  color:var(--ktw-text-sub)!important;
  font-size:17px!important;
  line-height:1.75!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-knowledge-gateway__grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  margin:0!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-knowledge-gateway__grid>a{
  display:block!important;
  min-width:0!important;
  min-height:150px!important;
  padding:21px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:12px!important;
  background:#fff!important;
  color:var(--ktw-text)!important;
  text-decoration:none!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-knowledge-gateway__grid>a:hover{
  border-color:var(--ktw-border-strong)!important;
  background:var(--ktw-bg-soft)!important;
  transform:none!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-knowledge-gateway__grid>a>b{
  display:grid!important;
  place-items:center!important;
  width:40px!important;
  height:40px!important;
  margin:0 0 13px!important;
  border-radius:9px!important;
  background:var(--ktw-accent-soft)!important;
  color:var(--ktw-accent-dark)!important;
  font-size:18px!important;
  font-weight:900!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-knowledge-gateway__grid strong{
  display:block!important;
  color:var(--ktw-text-strong)!important;
  font-size:21px!important;
  line-height:1.4!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-knowledge-gateway__grid small{
  display:block!important;
  margin-top:7px!important;
  color:var(--ktw-text-sub)!important;
  font-size:15px!important;
  line-height:1.65!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-knowledge-gateway__mini{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  margin-top:12px!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-knowledge-gateway__mini a{
  min-width:0!important;
  min-height:66px!important;
  padding:13px 14px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:9px!important;
  background:var(--ktw-bg-soft)!important;
  text-decoration:none!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-knowledge-gateway__mini strong{
  display:block!important;
  color:var(--ktw-text-strong)!important;
  font-size:16px!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-knowledge-gateway__mini span{
  display:block!important;
  margin-top:3px!important;
  color:var(--ktw-text-sub)!important;
  font-size:14px!important;
  line-height:1.55!important;
}

/* Generic home sections: quieter, functional, no magazine styling. */
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-section{
  padding:52px 0!important;
  border-top:1px solid var(--ktw-border)!important;
  background:#fff!important;
  background-image:none!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-section--paper{
  background:var(--ktw-bg-soft)!important;
  background-image:none!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__section-heading{
  max-width:820px!important;
  margin:0 0 24px!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__section-heading>span{
  display:none!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__section-heading h2{
  margin:0!important;
  color:var(--ktw-text-strong)!important;
  font-family:var(--ktw-font)!important;
  font-size:30px!important;
  line-height:1.45!important;
  letter-spacing:0!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__section-heading p{
  margin:7px 0 0!important;
  color:var(--ktw-text-sub)!important;
  font-size:16px!important;
  line-height:1.75!important;
}

/* Fuzzy finder: form first, no illustrated panel. */
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__fuzzy{
  padding:52px 0!important;
  background:var(--ktw-bg-soft)!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__smart-finder{
  display:grid!important;
  grid-template-columns:minmax(240px,.65fr) minmax(0,1.35fr)!important;
  overflow:hidden!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__smart-intro{
  padding:28px!important;
  background:var(--ktw-text-strong)!important;
  background-image:none!important;
  color:#fff!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__smart-intro::before{
  content:"うろ覚え検索";
  display:block;
  margin-bottom:10px;
  color:#fff;
  font-size:15px;
  font-weight:800;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__smart-seal,
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__smart-label,
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__smart-points{
  display:none!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__smart-intro :where(h2,p){
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__smart-intro h2{
  margin:0 0 10px!important;
  font-family:var(--ktw-font)!important;
  font-size:27px!important;
  line-height:1.45!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__smart-intro p{
  margin:0!important;
  font-size:16px!important;
  line-height:1.75!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__smart-body{
  padding:28px!important;
  background:#fff!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__smart-body-head strong{
  color:var(--ktw-text-strong)!important;
  font-size:20px!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__smart-body-head span{
  color:var(--ktw-text-sub)!important;
  font-size:15px!important;
}

/* 50-on index is a core utility, not decoration. */
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1>#ktw-portal-kana{
  background:#fff!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__kana-row{
  display:grid!important;
  grid-template-columns:68px minmax(0,1fr)!important;
  gap:12px!important;
  align-items:center!important;
  padding:11px 0!important;
  margin:0!important;
  border-bottom:1px solid #edf0f2!important;
  background:transparent!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__kana{
  min-height:54px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:9px!important;
  background:#fff!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__kana:hover{
  border-color:var(--ktw-border-strong)!important;
  background:var(--ktw-bg-soft)!important;
}

/* Browse cards become simple taxonomy utilities without pictures. */
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__browse-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__browse-card{
  overflow:hidden!important;
  min-width:0!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__browse-body{
  padding:22px!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__browse-body h3{
  margin:0!important;
  color:var(--ktw-text-strong)!important;
  font-family:var(--ktw-font)!important;
  font-size:22px!important;
  line-height:1.5!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__browse-body>p{
  margin:6px 0 15px!important;
  color:var(--ktw-text-sub)!important;
  font-size:15px!important;
  line-height:1.7!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__term-list{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:7px!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__term{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  min-height:40px!important;
  padding:7px 10px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:9px!important;
  background:var(--ktw-bg-soft)!important;
  color:var(--ktw-text)!important;
  text-decoration:none!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__term span{
  font-size:15px!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__term small{
  color:var(--ktw-text-sub)!important;
  font-size:13px!important;
}

/* Tools: plain functional cards, no promotional imagery. */
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__tool-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__tool{
  min-width:0!important;
  min-height:170px!important;
  padding:20px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:12px!important;
  background:#fff!important;
  color:var(--ktw-text)!important;
  box-shadow:none!important;
  text-align:left!important;
  text-decoration:none!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__tool-copy small{
  color:var(--ktw-accent-dark)!important;
  font-size:14px!important;
  font-weight:800!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__tool-copy strong{
  display:block!important;
  margin-top:5px!important;
  color:var(--ktw-text-strong)!important;
  font-size:19px!important;
  line-height:1.5!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__tool-copy p{
  margin:7px 0 0!important;
  color:var(--ktw-text-sub)!important;
  font-size:15px!important;
  line-height:1.7!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__tool-copy>span{
  display:inline-block!important;
  margin-top:10px!important;
  color:var(--ktw-link)!important;
  font-size:15px!important;
  font-weight:800!important;
}

/* Research quality: facts over visual theatrics. */
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-research-quality__grid{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:9px!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-research-quality__grid article{
  padding:17px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:10px!important;
  background:#fff!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-research-quality__grid b{
  display:grid!important;
  place-items:center!important;
  width:34px!important;
  height:34px!important;
  margin-bottom:9px!important;
  border-radius:8px!important;
  background:var(--ktw-accent-soft)!important;
  color:var(--ktw-accent-dark)!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-research-quality__grid strong{
  color:var(--ktw-text-strong)!important;
  font-size:16px!important;
  line-height:1.5!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-research-quality__grid p{
  margin:6px 0 0!important;
  color:var(--ktw-text-sub)!important;
  font-size:14px!important;
  line-height:1.65!important;
}

/* Featured articles = editorial list, no oversized magazine cards. */
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-featured__grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-featured__card{
  min-width:0!important;
  padding:18px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:10px!important;
  background:#fff!important;
  box-shadow:none!important;
  text-decoration:none!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-featured__meta{
  color:var(--ktw-accent-dark)!important;
  font-size:14px!important;
  font-weight:800!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-featured__card>strong{
  display:block!important;
  margin-top:5px!important;
  color:var(--ktw-text-strong)!important;
  font-size:20px!important;
  line-height:1.5!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-featured__card p{
  margin:7px 0 0!important;
  color:var(--ktw-text-sub)!important;
  font-size:15px!important;
  line-height:1.7!important;
}

/* Books: cover is useful content, so keep it; tone everything else down. */
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__books-grid{
  display:grid!important;
  grid-template-columns:minmax(0,760px)!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__book{
  display:grid!important;
  grid-template-columns:140px minmax(0,1fr)!important;
  gap:20px!important;
  padding:20px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__book-cover{
  overflow:hidden!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:8px!important;
  background:#fff!important;
}

/* Author block: compact trust footer, image optional and not dominant. */
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__author-box{
  display:grid!important;
  grid-template-columns:96px minmax(0,1fr)!important;
  gap:20px!important;
  align-items:start!important;
  max-width:900px!important;
  padding:22px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__author-visual{
  width:96px!important;
  height:96px!important;
  overflow:hidden!important;
  border-radius:50%!important;
  border:1px solid var(--ktw-border)!important;
}
html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__author-copy h2{
  margin:0!important;
  color:var(--ktw-text-strong)!important;
  font-family:var(--ktw-font)!important;
  font-size:26px!important;
}

@media(max-width:1024px){
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-knowledge-gateway__grid,
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__tool-grid,
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-research-quality__grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media(max-width:760px){
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-shell,
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__hero-layout,
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-knowledge-gateway{
    width:calc(100vw - 28px)!important;
    max-width:calc(100vw - 28px)!important;
  }

  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__hero{
    padding:36px 0 32px!important;
  }
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__hero-copy{
    text-align:left!important;
  }
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__hero-copy::before{
    font-size:15px!important;
  }
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__hero-copy h1{
    font-size:34px!important;
  }
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__hero-copy h1::after{
    margin-top:10px!important;
    text-align:left!important;
    font-size:17px!important;
    line-height:1.75!important;
  }
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__search-panel{
    margin-top:22px!important;
  }
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__search-tabs{
    width:100%!important;
  }
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__search-tabs button{
    font-size:15px!important;
  }
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__search-box{
    grid-template-columns:minmax(0,1fr) 86px!important;
  }
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__hero-input{
    min-height:58px!important;
    padding:12px!important;
    font-size:16px!important;
  }
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__search-box button[type="submit"]{
    width:86px!important;
    min-width:86px!important;
    min-height:58px!important;
    font-size:16px!important;
  }

  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-knowledge-gateway{
    padding:34px 0!important;
  }
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-knowledge-gateway__head h2,
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__section-heading h2{
    font-size:27px!important;
  }
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-knowledge-gateway__grid,
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-knowledge-gateway__mini,
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__browse-grid,
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__tool-grid,
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-research-quality__grid,
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-featured__grid{
    grid-template-columns:1fr!important;
  }
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-home-knowledge-gateway__grid>a{
    min-height:0!important;
    padding:17px!important;
  }
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__smart-finder{
    grid-template-columns:1fr!important;
  }
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__smart-intro,
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__smart-body{
    padding:20px!important;
  }
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__kana-row{
    grid-template-columns:1fr!important;
    gap:7px!important;
  }
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__browse-body{
    padding:18px!important;
  }
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__book{
    grid-template-columns:100px minmax(0,1fr)!important;
    gap:14px!important;
    padding:16px!important;
  }
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__author-box{
    grid-template-columns:1fr!important;
  }
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__author-visual{
    display:none!important;
  }
}

@media(max-width:430px){
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__hero-copy h1{
    font-size:31px!important;
  }
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__book{
    grid-template-columns:1fr!important;
  }
  html body.ktw-ui-system-v1.ktw-homepage #ktw-portal-1 .ktw-portal__book-cover{
    width:120px!important;
  }
}

/* =========================================================
   9.4. Canonical contrast + article footer safety
   ========================================================= */

/* Dark surfaces must always carry light text. */
html body.ktw-ui-system-v1 :where(
  .ktw-rp-hero,
  .ktw-portal__smart-intro,
  .ktw-after__sources-head
){
  color:#fff!important;
}

html body.ktw-ui-system-v1 :where(
  .ktw-rp-hero,
  .ktw-portal__smart-intro,
  .ktw-after__sources-head
) :where(h1,h2,h3,h4,strong,p,li,a,small,span){
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

html body.ktw-ui-system-v1 .ktw-rp-hero :where(.ktw-rp-eyebrow,.ktw-rp-hero__principles b){
  color:#f1d79e!important;
  -webkit-text-fill-color:#f1d79e!important;
}

html body.ktw-ui-system-v1 .ktw-rp-hero .ktw-rp-btn.is-primary{
  color:var(--ktw-text-strong)!important;
  -webkit-text-fill-color:var(--ktw-text-strong)!important;
}

/* Theme footer is a dark surface in STORK19. */
html body.ktw-ui-system-v1 #footer,
html body.ktw-ui-system-v1 #footer :where(p,span,small,strong,a,li){
  color:#f7f2e8!important;
  -webkit-text-fill-color:#f7f2e8!important;
}

/* Supplementary copy on light surfaces must not become pale. */
html body.ktw-ui-system-v1 :where(
  .ktw-portal__search-count,
  .ktw-portal__quick-body small,
  .ktw-portal__tool-copy small,
  .ktw-portal__tool-copy p,
  .ktw-portal__book-body small,
  .ktw-portal__author-copy small,
  .ktw-portal__browse-body>p,
  .ktw-portal__smart-body-head span,
  .ktw-portal__affiliate-note,
  .ktw-home-knowledge-gateway small,
  .ktw-home-knowledge-gateway p,
  .ktw-home-featured__card p,
  .ktw-home-research-quality__grid p
){
  color:#33434d!important;
  -webkit-text-fill-color:#33434d!important;
  opacity:1!important;
}

html body.ktw-ui-system-v1 :where(.ktw-portal__term small,.ktw-portal__kana small){
  color:#5c482c!important;
  -webkit-text-fill-color:#5c482c!important;
  opacity:1!important;
}

html body.ktw-ui-system-v1.single-post figcaption{
  color:#4b5b65!important;
  -webkit-text-fill-color:#4b5b65!important;
  opacity:1!important;
  font-size:15px!important;
  line-height:1.7!important;
}

/* Article footer: author identity and source list belong to the canonical UI. */
html body.ktw-ui-system-v1.single-post .ktw-after__author{
  grid-template-columns:92px minmax(0,1fr)!important;
  gap:17px!important;
  align-items:center!important;
}

html body.ktw-ui-system-v1.single-post .ktw-after__author-mark{
  position:relative!important;
  overflow:hidden!important;
  width:92px!important;
  height:92px!important;
  flex-basis:92px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:50%!important;
  background-color:var(--ktw-bg-soft)!important;
  background-image:url('https://enkaku.site/kotowaza/wp-content/uploads/2026/09/%E5%8C%97%E6%BE%A4%E7%AF%A4%E5%8F%B2-%E3%82%A2%E3%82%A4%E3%82%B3%E3%83%B3.png')!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
  background-size:cover!important;
  box-shadow:none!important;
  color:transparent!important;
  font-size:0!important;
  line-height:0!important;
  text-indent:-9999px!important;
}

html body.ktw-ui-system-v1.single-post .ktw-after__sources{
  border-color:var(--ktw-border)!important;
  background:#fff!important;
}

html body.ktw-ui-system-v1.single-post .ktw-after__sources-head{
  background:var(--ktw-text-strong)!important;
  border-bottom:3px solid var(--ktw-accent)!important;
}

html body.ktw-ui-system-v1.single-post .ktw-after__sources-body{
  background:#fff!important;
}

html body.ktw-ui-system-v1.single-post .ktw-after__source-list,
html body.ktw-ui-system-v1.single-post .ktw-after__source-list li{
  list-style:none!important;
  list-style-type:none!important;
}

html body.ktw-ui-system-v1.single-post .ktw-after__source-list li::before,
html body.ktw-ui-system-v1.single-post .ktw-after__source-list li::after,
html body.ktw-ui-system-v1.single-post .ktw-after__source-title-row::before,
html body.ktw-ui-system-v1.single-post .ktw-after__source-title-row::after{
  content:none!important;
  display:none!important;
}

html body.ktw-ui-system-v1.single-post .ktw-after__source-dot{
  width:8px!important;
  height:8px!important;
  background:var(--ktw-accent)!important;
  box-shadow:none!important;
}

@media(max-width:760px){
  html body.ktw-ui-system-v1.single-post .ktw-after__author{
    grid-template-columns:76px minmax(0,1fr)!important;
    gap:13px!important;
  }
  html body.ktw-ui-system-v1.single-post .ktw-after__author-mark{
    width:76px!important;
    height:76px!important;
    flex-basis:76px!important;
  }
}

@media(max-width:430px){
  html body.ktw-ui-system-v1.single-post .ktw-after__author{
    grid-template-columns:68px minmax(0,1fr)!important;
  }
  html body.ktw-ui-system-v1.single-post .ktw-after__author-mark{
    width:68px!important;
    height:68px!important;
    flex-basis:68px!important;
  }
}

/* =========================================================
   9.4. Migrated article module base styles
   Functional snippets 81, 82 and 206 no longer print CSS.
   Newer 9.5+ canonical safety rules intentionally override these.
   ========================================================= */

/* 北澤篤史のことわざ辞典｜71 ZERO BASE ARTICLE UI・DATA INTEGRATION FINAL vNext.1 */
body.ktw-zb-live,body.ktw-zb-live #container,body.ktw-zb-live #content,body.ktw-zb-live #inner-content,body.ktw-zb-live #main,body.ktw-zb-live article,body.ktw-zb-live .entry-content{background:#fff!important}
    body.ktw-zb-live{--ink:#10283f;--text:#253746;--muted:#69757c;--line:#dfe4e7;--soft:#f7f9fa;--red:#a34a3a;--gold:#b08b55}
    body.ktw-zb-live #inner-content.page-full{width:min(1660px,calc(100vw - 28px))!important;max-width:none!important;padding-left:0!important;padding-right:0!important}
    body.ktw-zb-live #main,body.ktw-zb-live article.post,body.ktw-zb-live .entry-content{max-width:none!important;width:100%!important}
    body.ktw-zb-live .article-header{width:min(1420px,calc(100vw - 54px));margin:42px auto 36px!important;padding:0!important}
    body.ktw-zb-live .article-header h1,body.ktw-zb-live .entry-title{margin:0!important;color:#0d2132!important;font-family:"Yu Mincho","Hiragino Mincho ProN",serif!important;font-size:clamp(52px,6.2vw,86px)!important;font-weight:700!important;line-height:1.12!important;letter-spacing:-.045em!important}
    body.ktw-zb-live .article-header .byline,body.ktw-zb-live .article-header .date,body.ktw-zb-live .article-header .prnx_box{margin-top:14px!important}
    body.ktw-zb-live .ktw-v4-shell,body.ktw-zb-live .ktw-v4-body{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;background:#fff!important}
    body.ktw-zb-live .ktw-opening-block-v2,body.ktw-zb-live .ktw-entry-toolrail-v1,body.ktw-zb-live .ktw-v4-examples,body.ktw-zb-live .ktw-character{display:none!important}
    body.ktw-zb-live .ktw-zb-article{width:100%;margin:0 auto;color:var(--text)}
    body.ktw-zb-live .ktw-zb-intro{width:min(1420px,calc(100vw - 54px));margin:0 auto 78px;padding:0}
    body.ktw-zb-live .ktw-zb-eyebrow{margin-bottom:16px;color:var(--red);font-size:15px;font-weight:900;letter-spacing:.15em}
    body.ktw-zb-live .ktw-zb-lead{max-width:1080px;margin:0!important;color:#344957!important;font-size:clamp(20px,2vw,26px)!important;line-height:1.9!important;font-weight:500}
    body.ktw-zb-live .ktw-zb-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin-top:34px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
    body.ktw-zb-live .ktw-zb-summary>div{padding:20px 22px;border-right:1px solid var(--line)}body.ktw-zb-live .ktw-zb-summary>div:last-child{border-right:0}
    body.ktw-zb-live .ktw-zb-summary span{display:block;color:#435762;font-size:15px;font-weight:900;letter-spacing:.06em}
    body.ktw-zb-live .ktw-zb-summary strong{display:block;margin-top:7px;color:var(--ink);font-size:16px;line-height:1.55}
    body.ktw-zb-live .ktw-zb-toptools{width:min(1420px,calc(100vw - 54px));margin:-34px auto 94px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}
    body.ktw-zb-live .ktw-zb-toptools a{display:block;padding:18px 20px;border-right:1px solid var(--line);color:var(--ink)!important;text-decoration:none!important;background:#fff;transition:.18s ease}body.ktw-zb-live .ktw-zb-toptools a:last-child{border-right:0}body.ktw-zb-live .ktw-zb-toptools a:hover{background:#f8fafb}
    body.ktw-zb-live .ktw-zb-toptools span{display:block;color:#435762;font-size:15px;font-weight:900;letter-spacing:.1em}body.ktw-zb-live .ktw-zb-toptools strong{display:block;margin-top:4px;font-size:15px}
    body.ktw-zb-live .ktw-zb-section{width:100%;margin:0 auto 96px;padding:0}
    body.ktw-zb-live .ktw-zb-section>h2{width:min(1180px,calc(100vw - 54px))!important;margin:0 auto 34px!important;padding:0 0 19px!important;border:0!important;border-bottom:1px solid #ccd4d8!important;border-left:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;color:#0f2435!important;font-family:"Yu Mincho","Hiragino Mincho ProN",serif!important;font-size:clamp(36px,4.25vw,56px)!important;font-weight:700!important;line-height:1.32!important;letter-spacing:-.025em!important}
    body.ktw-zb-live .ktw-zb-section>h2:before,body.ktw-zb-live .ktw-zb-section>h2:after{display:none!important;content:none!important}
    body.ktw-zb-live .ktw-zb-prose{width:min(940px,calc(100vw - 54px));margin:0 auto}
    body.ktw-zb-live .ktw-zb-prose p{margin:0 0 27px!important;color:var(--text)!important;font-size:18px!important;line-height:2.05!important;letter-spacing:.01em}
    body.ktw-zb-live .ktw-zb-prose strong{color:#10283f}
    body.ktw-zb-live .ktw-zb-example-term{color:var(--red)!important;font-weight:800!important}
    body.ktw-zb-live .ktw-zb-key{margin:34px 0 0;padding:20px 22px;border-left:3px solid var(--gold);background:#fafafa}
    body.ktw-zb-live .ktw-zb-key span{display:block;color:var(--gold);font-size:15px;font-weight:900;letter-spacing:.12em}body.ktw-zb-live .ktw-zb-key strong{display:block;margin-top:5px;color:var(--ink);font-size:18px;line-height:1.7}
    body.ktw-zb-live .ktw-zb-scenarios,body.ktw-zb-live .ktw-zb-toolgrid{width:min(1260px,calc(100vw - 54px));margin:0 auto 34px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
    body.ktw-zb-live .ktw-zb-scenarios article{padding:24px;border:1px solid var(--line);border-radius:12px;background:#fff}body.ktw-zb-live .ktw-zb-scenarios span{color:var(--red);font-size:15px;font-weight:900}body.ktw-zb-live .ktw-zb-scenarios strong{display:block;margin-top:5px;color:var(--ink);font-size:18px}body.ktw-zb-live .ktw-zb-scenarios p{margin:10px 0 0!important;color:var(--muted)!important;font-size:15px!important;line-height:1.75!important}
    body.ktw-zb-live .ktw-zb-compare,body.ktw-zb-live .ktw-zb-theories{width:min(1180px,calc(100vw - 54px));margin:0 auto 22px;display:grid;grid-template-columns:1fr 1fr;gap:12px}
    body.ktw-zb-live .ktw-zb-compare article,body.ktw-zb-live .ktw-zb-theories article{padding:26px;border:1px solid var(--line);border-radius:12px;background:#fff}body.ktw-zb-live .ktw-zb-compare span,body.ktw-zb-live .ktw-zb-theories small{color:var(--red);font-size:15px;font-weight:900}body.ktw-zb-live .ktw-zb-compare strong,body.ktw-zb-live .ktw-zb-theories strong{display:block;margin-top:6px;color:var(--ink);font-size:20px}body.ktw-zb-live .ktw-zb-compare p,body.ktw-zb-live .ktw-zb-theories p{margin:11px 0 0!important;color:var(--muted)!important;font-size:15px!important;line-height:1.8!important}
    body.ktw-zb-live .ktw-zb-function{width:min(1180px,calc(100vw - 54px));margin:20px auto 0;padding:24px 26px;display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}body.ktw-zb-live .ktw-zb-function span{color:var(--red);font-size:15px;font-weight:900;letter-spacing:0}body.ktw-zb-live .ktw-zb-function strong{display:block;margin-top:4px;color:var(--ink);font-size:19px}body.ktw-zb-live .ktw-zb-function p{margin:5px 0 0!important;color:#44515c!important;font-size:16px!important;line-height:1.75!important}body.ktw-zb-live .ktw-zb-function a{padding:12px 16px;border-radius:999px;background:var(--ink);color:#fff!important;text-decoration:none!important;font-size:16px;font-weight:900;min-height:44px;display:inline-flex;align-items:center}
    body.ktw-zb-live .ktw-zb-route{width:min(1260px,calc(100vw - 54px));margin:0 auto;display:grid;grid-template-columns:1fr auto 1fr;gap:16px;align-items:stretch}
    body.ktw-zb-live .ktw-zb-route article{padding:28px;border:1px solid var(--line);border-radius:12px;background:#fff}body.ktw-zb-live .ktw-zb-route article.is-safe{background:#f9fbfa}body.ktw-zb-live .ktw-zb-route span{color:var(--red);font-size:15px;font-weight:900}body.ktw-zb-live .ktw-zb-route strong{display:block;margin-top:5px;color:var(--ink);font-size:23px}body.ktw-zb-live .ktw-zb-route article>div{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:18px}body.ktw-zb-live .ktw-zb-route i{padding:6px 9px;border-radius:999px;background:#f0f2f3;color:#5c6970;font-size:15px;font-style:normal}body.ktw-zb-live .ktw-zb-vs{display:grid;place-items:center;color:#44515c;font-size:15px;font-weight:900}
    body.ktw-zb-live .ktw-zb-history{width:min(1260px,calc(100vw - 54px));margin:0 auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
    body.ktw-zb-live .ktw-zb-history article{padding:24px;border:1px solid var(--line);border-radius:12px;background:#fff}.ktw-zb-history-meta{display:flex;justify-content:space-between;gap:12px;align-items:center}.ktw-zb-history-meta span{color:var(--red);font-size:15px;font-weight:900}.ktw-zb-history-meta small{color:#435762;font-size:15px}.ktw-zb-history article>strong{display:block;margin-top:8px;color:var(--ink);font-size:18px}.ktw-zb-history article p{margin:10px 0 0!important;color:#44515c!important;font-size:16px!important;line-height:1.8!important}.ktw-zb-history footer{margin-top:12px;color:#435762;font-size:15px;line-height:1.5}
    body.ktw-zb-live .ktw-zb-toolgrid{grid-template-columns:repeat(4,minmax(0,1fr))}.ktw-zb-toolgrid a{display:block;min-height:132px;padding:24px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink)!important;text-decoration:none!important}.ktw-zb-toolgrid a:hover{background:#f8fafb}.ktw-zb-toolgrid span{color:var(--red);font-size:15px;font-weight:900;letter-spacing:0}.ktw-zb-toolgrid strong,.ktw-zb-toolgrid small{display:block}.ktw-zb-toolgrid strong{margin-top:9px;font-size:18px}.ktw-zb-toolgrid small{margin-top:7px;color:#435762;line-height:1.55}
    body.ktw-zb-live .ktw-zb-research{width:min(1260px,calc(100vw - 54px));margin:0 auto}.ktw-zb-research-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line)}.ktw-zb-research-metrics article{padding:20px;background:#fff}.ktw-zb-research-metrics b{display:block;color:var(--ink);font-family:"Yu Mincho",serif;font-size:38px;line-height:1}.ktw-zb-research-metrics span{display:block;margin-top:6px;color:#435762;font-size:15px;font-weight:900}.ktw-zb-first{margin-top:22px;padding:22px 24px;border-left:3px solid var(--gold);background:#fafafa}.ktw-zb-first span,.ktw-zb-first strong,.ktw-zb-first small{display:block}.ktw-zb-first span{color:#5a421f;font-size:15px}.ktw-zb-first strong{margin-top:5px;color:var(--ink);font-size:22px}.ktw-zb-first small{margin-top:3px;color:#435762}.ktw-zb-evidence-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:22px}.ktw-zb-evidence-list article{padding:20px;border:1px solid var(--line);border-radius:12px}.ktw-zb-evidence-list article>div{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.ktw-zb-evidence-list article>div span{padding:6px 9px;border-radius:999px;background:#10283f;color:#fff;font-size:15px;font-weight:900}.ktw-zb-evidence-list strong{color:var(--ink);font-size:15px}.ktw-zb-evidence-list p{margin:10px 0 0!important;color:#44515c!important;font-size:16px!important;line-height:1.8!important}.ktw-zb-evidence-list small{display:block;margin-top:8px;color:#435762;font-size:15px}.ktw-zb-source-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.ktw-zb-source-links a,.ktw-zb-source-links span{padding:8px 11px;border:1px solid var(--line);border-radius:999px;color:#465863!important;text-decoration:none!important;font-size:15px}.ktw-zb-research-note{margin-top:20px;padding:18px 20px;background:#f7f9fa}.ktw-zb-research-note strong{color:var(--red);font-size:15px}.ktw-zb-research-note p{margin:5px 0 0!important;color:#44515c!important;font-size:16px!important;line-height:1.75!important}.ktw-zb-research-rights{margin-top:14px;padding:15px 18px;border-left:3px solid var(--gold);background:#fffaf1}.ktw-zb-research-rights strong{display:block;color:#6b4e2c;font-size:15px}.ktw-zb-research-rights p{margin:5px 0 0!important;color:#44515c!important;font-size:16px!important;line-height:1.8!important}
    body.ktw-zb-live .ktw-character,body.ktw-zb-live .ktw-entry-research-v1,body.ktw-zb-live .ktw-context-block{display:none!important}
    body.ktw-zb-live .ktw-after{width:min(1260px,calc(100vw - 54px));margin-left:auto!important;margin-right:auto!important;background:#fff!important}
    @media(max-width:900px){body.ktw-zb-live .ktw-zb-summary{grid-template-columns:1fr 1fr}.ktw-zb-summary>div:nth-child(2){border-right:0}.ktw-zb-summary>div:nth-child(-n+2){border-bottom:1px solid var(--line)}body.ktw-zb-live .ktw-zb-toptools,body.ktw-zb-live .ktw-zb-toolgrid{grid-template-columns:1fr 1fr}.ktw-zb-toptools a:nth-child(2){border-right:0}.ktw-zb-toptools a:nth-child(-n+2){border-bottom:1px solid var(--line)}body.ktw-zb-live .ktw-zb-scenarios{grid-template-columns:1fr}.ktw-zb-route{grid-template-columns:1fr}.ktw-zb-vs{min-height:24px}.ktw-zb-history,.ktw-zb-evidence-list{grid-template-columns:1fr}}
    @media(max-width:620px){body.ktw-zb-live #inner-content.page-full{width:100%!important}.ktw-zb-live .article-header,.ktw-zb-live .ktw-zb-intro,.ktw-zb-live .ktw-zb-toptools,.ktw-zb-live .ktw-zb-section>h2,.ktw-zb-live .ktw-zb-prose,.ktw-zb-live .ktw-zb-scenarios,.ktw-zb-live .ktw-zb-compare,.ktw-zb-live .ktw-zb-theories,.ktw-zb-live .ktw-zb-function,.ktw-zb-live .ktw-zb-route,.ktw-zb-live .ktw-zb-history,.ktw-zb-live .ktw-zb-toolgrid,.ktw-zb-live .ktw-zb-research,.ktw-zb-live .ktw-after{width:calc(100vw - 28px)!important}.ktw-zb-live .article-header{margin-top:28px!important}.ktw-zb-live .article-header h1,.ktw-zb-live .entry-title{font-size:clamp(44px,14vw,64px)!important}.ktw-zb-live .ktw-zb-lead{font-size:19px!important}.ktw-zb-live .ktw-zb-section{margin-bottom:72px}.ktw-zb-live .ktw-zb-section>h2{font-size:clamp(31px,9vw,43px)!important}.ktw-zb-live .ktw-zb-summary{grid-template-columns:1fr}.ktw-zb-live .ktw-zb-summary>div{border-right:0!important;border-bottom:1px solid var(--line)!important}.ktw-zb-live .ktw-zb-summary>div:last-child{border-bottom:0!important}.ktw-zb-live .ktw-zb-toptools{grid-template-columns:1fr 1fr;margin-top:-32px;margin-bottom:70px}.ktw-zb-live .ktw-zb-compare,.ktw-zb-live .ktw-zb-theories{grid-template-columns:1fr}.ktw-zb-live .ktw-zb-function{grid-template-columns:1fr}.ktw-zb-live .ktw-zb-function a{justify-self:start}.ktw-zb-live .ktw-zb-toolgrid{grid-template-columns:1fr 1fr}.ktw-zb-live .ktw-zb-research-metrics{grid-template-columns:1fr 1fr}}

/* 北澤篤史のことわざ辞典｜72 ZERO BASE ARTICLE 可読性・辞典情報・ツールUI強化 FINAL vNext.2 */
body.ktw-zb-live .entry-header .sns_btn{display:none!important}
    body.ktw-zb-live .article-header .cat-name,
    body.ktw-zb-live .article-header .cat-links,
    body.ktw-zb-live .article-header .entry-category,
    body.ktw-zb-live .article-header .post-categories{display:none!important}
    body.ktw-zb-live .article-header{width:min(1540px,calc(100vw - 54px))!important;margin-top:46px!important;overflow:visible!important}
    body.ktw-zb-live .article-header h1,body.ktw-zb-live .entry-title{font-size:clamp(66px,6.5vw,100px)!important;line-height:1.08!important;letter-spacing:-.05em!important}

    body.ktw-zb-live .ktw-zb-intro-v2{width:min(1500px,calc(100vw - 54px))!important;margin:0 auto 46px!important}
    body.ktw-zb-live .ktw-zb-dictionary{display:grid;gap:18px}
    body.ktw-zb-live .ktw-zb-dict-block{border:1px solid #d8dfe3;border-radius:14px;background:#fff;padding:28px 32px}
    body.ktw-zb-live .ktw-zb-dict-block.is-reading{display:grid;grid-template-columns:150px 1fr;align-items:center;padding-top:24px;padding-bottom:24px}
    body.ktw-zb-live .ktw-zb-dict-label{color:#5c6870;font-size:18px;font-weight:800;line-height:1.4}
    body.ktw-zb-live .ktw-zb-dict-block.is-origin .ktw-zb-dict-label{display:inline-flex;align-items:center;padding:5px 10px;border:1px solid #c9b186;border-radius:999px;background:#efe2cc;color:#3f321f!important;-webkit-text-fill-color:#3f321f!important}
    body.ktw-zb-live .ktw-zb-dict-reading{color:#10283f;font-size:32px;font-weight:800;line-height:1.4}
    body.ktw-zb-live .ktw-zb-dict-main{max-width:1240px;margin:12px 0 0!important;color:#10283f!important;font-size:24px!important;font-weight:700!important;line-height:1.8!important}
    body.ktw-zb-live .ktw-zb-dict-detail{max-width:1240px;margin:18px 0 0!important;color:#344957!important;font-size:18px!important;line-height:1.95!important}
    body.ktw-zb-live .ktw-zb-dict-heading{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
    body.ktw-zb-live .ktw-zb-origin-status{display:inline-flex;padding:7px 11px;border-radius:999px;background:#f7eee9;color:#9b483a;font-size:15px;font-weight:800}
    body.ktw-zb-live .ktw-zb-origin-theories,body.ktw-zb-live .ktw-zb-dict-note{max-width:1240px;margin-top:20px;padding:18px 20px;border-left:4px solid #b08b55;background:#fafafa}
    body.ktw-zb-live .ktw-zb-origin-theories strong,body.ktw-zb-live .ktw-zb-dict-note strong{display:block;color:#10283f;font-size:17px}
    body.ktw-zb-live .ktw-zb-origin-theories p,body.ktw-zb-live .ktw-zb-dict-note p{margin:7px 0 0!important;color:#455965!important;font-size:17px!important;line-height:1.85!important}
    body.ktw-zb-live .ktw-zb-attestation{margin-top:22px;padding-top:20px;border-top:1px solid #dfe4e7}
    body.ktw-zb-live .ktw-zb-attestation span{display:block;color:#68757d;font-size:16px;font-weight:800}
    body.ktw-zb-live .ktw-zb-attestation strong{display:block;margin-top:6px;color:#10283f;font-size:23px}
    body.ktw-zb-live .ktw-zb-attestation p{margin:5px 0 0!important;color:#53646e!important;font-size:16px!important}

    body.ktw-zb-live .ktw-zb-tools-v2{width:min(1500px,calc(100vw - 54px));margin:0 auto 100px}
    body.ktw-zb-live .ktw-zb-tools-v2>header{margin:0 0 18px}
    body.ktw-zb-live .ktw-zb-tools-v2>header h2{margin:0!important;padding:0!important;border:0!important;background:none!important;color:#10283f!important;font-family:inherit!important;font-size:28px!important;font-weight:800!important;line-height:1.4!important}
    body.ktw-zb-live .ktw-zb-tools-v2>header h2:before,body.ktw-zb-live .ktw-zb-tools-v2>header h2:after{display:none!important}
    body.ktw-zb-live .ktw-zb-tools-v2>header p{margin:7px 0 0!important;color:#586b75!important;font-size:17px!important;line-height:1.7!important}
    body.ktw-zb-live .ktw-zb-tools-v2 .ktw-zb-toptools{width:100%!important;margin:0!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;border-radius:14px!important}
    body.ktw-zb-live .ktw-zb-tools-v2 .ktw-zb-toptools a{min-height:190px;padding:26px 24px!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important}
    body.ktw-zb-live .ktw-zb-tools-v2 .ktw-zb-toptools strong{margin:0!important;color:#10283f!important;font-size:22px!important;line-height:1.4!important}
    body.ktw-zb-live .ktw-zb-tools-v2 .ktw-zb-toptools p{margin:12px 0 18px!important;color:#5d6d76!important;font-size:16px!important;line-height:1.75!important}
    body.ktw-zb-live .ktw-zb-tools-v2 .ktw-zb-toptools span{display:block;margin-top:auto!important;color:#9b483a!important;font-size:15px!important;font-weight:800!important;letter-spacing:0!important}

    body.ktw-zb-live .ktw-zb-section>h2{width:min(1500px,calc(100vw - 54px))!important;font-size:clamp(32px,2.4vw,40px)!important;line-height:1.35!important;letter-spacing:-.02em!important}
    @media(min-width:1200px){body.ktw-zb-live .ktw-zb-section>h2{white-space:nowrap!important}}
    body.ktw-zb-live .ktw-zb-prose{width:min(980px,calc(100vw - 54px))!important}
    body.ktw-zb-live .ktw-zb-prose p{font-size:19px!important;line-height:2!important}

    body.ktw-zb-live .ktw-zb-scenarios,body.ktw-zb-live .ktw-zb-toolgrid{width:min(1500px,calc(100vw - 54px))!important;gap:18px!important}
    body.ktw-zb-live .ktw-zb-scenarios article{padding:32px!important}
    body.ktw-zb-live .ktw-zb-scenarios span{font-size:16px!important;line-height:1.4!important}
    body.ktw-zb-live .ktw-zb-scenarios strong{margin-top:12px!important;font-size:24px!important;line-height:1.5!important}
    body.ktw-zb-live .ktw-zb-scenarios p{margin-top:14px!important;font-size:17px!important;line-height:1.8!important}

    body.ktw-zb-live .ktw-zb-compare,body.ktw-zb-live .ktw-zb-theories{width:min(1450px,calc(100vw - 54px))!important;gap:18px!important}
    body.ktw-zb-live .ktw-zb-compare article,body.ktw-zb-live .ktw-zb-theories article{padding:32px!important}
    body.ktw-zb-live .ktw-zb-compare span,body.ktw-zb-live .ktw-zb-theories small{font-size:16px!important;line-height:1.5!important}
    body.ktw-zb-live .ktw-zb-compare strong,body.ktw-zb-live .ktw-zb-theories strong{margin-top:10px!important;font-size:24px!important;line-height:1.5!important}
    body.ktw-zb-live .ktw-zb-compare p,body.ktw-zb-live .ktw-zb-theories p{font-size:17px!important;line-height:1.85!important}

    body.ktw-zb-live .ktw-zb-function{width:min(1450px,calc(100vw - 54px))!important;padding:28px 30px!important}
    body.ktw-zb-live .ktw-zb-function span{font-size:15px!important;letter-spacing:0!important}
    body.ktw-zb-live .ktw-zb-function strong{font-size:23px!important}
    body.ktw-zb-live .ktw-zb-function p{font-size:16px!important;line-height:1.75!important}
    body.ktw-zb-live .ktw-zb-function a{font-size:15px!important;padding:13px 18px!important}

    body.ktw-zb-live .ktw-zb-route{width:min(1500px,calc(100vw - 54px))!important}
    body.ktw-zb-live .ktw-zb-route article{padding:34px!important}
    body.ktw-zb-live .ktw-zb-route span{font-size:16px!important}
    body.ktw-zb-live .ktw-zb-route strong{font-size:29px!important}
    body.ktw-zb-live .ktw-zb-route i{font-size:15px!important;padding:8px 12px!important}
    body.ktw-zb-live .ktw-zb-vs{font-size:16px!important}

    body.ktw-zb-live .ktw-zb-history{width:min(1450px,calc(100vw - 54px))!important;gap:16px!important}
    body.ktw-zb-live .ktw-zb-history article{padding:28px!important}
    body.ktw-zb-live .ktw-zb-history-meta span,body.ktw-zb-live .ktw-zb-history-meta small{font-size:15px!important}
    body.ktw-zb-live .ktw-zb-history article>strong{font-size:22px!important;line-height:1.55!important}
    body.ktw-zb-live .ktw-zb-history article p{font-size:16px!important;line-height:1.85!important}
    body.ktw-zb-live .ktw-zb-history footer{font-size:15px!important;line-height:1.65!important}

    body.ktw-zb-live .ktw-zb-toolgrid a{min-height:170px!important;padding:28px!important}
    body.ktw-zb-live .ktw-zb-toolgrid span{font-size:15px!important;letter-spacing:0!important}
    body.ktw-zb-live .ktw-zb-toolgrid strong{font-size:22px!important}
    body.ktw-zb-live .ktw-zb-toolgrid small{font-size:16px!important;line-height:1.7!important}

    body.ktw-zb-live .ktw-zb-research{width:min(1450px,calc(100vw - 54px))!important}
    body.ktw-zb-live .ktw-zb-research-metrics span{font-size:15px!important}
    body.ktw-zb-live .ktw-zb-first span{font-size:15px!important}
    body.ktw-zb-live .ktw-zb-first strong{font-size:24px!important}
    body.ktw-zb-live .ktw-zb-first small{font-size:15px!important}
    body.ktw-zb-live .ktw-zb-evidence-list article>div span{font-size:15px!important;padding:6px 9px!important}
    body.ktw-zb-live .ktw-zb-evidence-list strong{font-size:18px!important;line-height:1.5!important}
    body.ktw-zb-live .ktw-zb-evidence-list p{font-size:16px!important;line-height:1.85!important}
    body.ktw-zb-live .ktw-zb-evidence-list small{font-size:15px!important;line-height:1.6!important}
    body.ktw-zb-live .ktw-zb-source-links a,body.ktw-zb-live .ktw-zb-source-links span{font-size:15px!important;padding:10px 13px!important}
    body.ktw-zb-live .ktw-zb-research-note strong{font-size:15px!important}
    body.ktw-zb-live .ktw-zb-research-note p{font-size:16px!important;line-height:1.8!important}

    @media(max-width:1199px){body.ktw-zb-live .ktw-zb-section>h2{white-space:normal!important}}
    @media(max-width:900px){body.ktw-zb-live .ktw-zb-tools-v2 .ktw-zb-toptools{grid-template-columns:1fr 1fr!important}.ktw-zb-live .ktw-zb-dict-block.is-reading{grid-template-columns:1fr;gap:8px}}
    @media(max-width:620px){body.ktw-zb-live .article-header h1,body.ktw-zb-live .entry-title{font-size:clamp(36px,10vw,46px)!important}.ktw-zb-live .ktw-zb-intro-v2,.ktw-zb-live .ktw-zb-tools-v2{width:calc(100vw - 28px)!important}.ktw-zb-live .ktw-zb-dict-block{padding:22px 18px}.ktw-zb-live .ktw-zb-dict-label{font-size:17px}.ktw-zb-live .ktw-zb-dict-reading{font-size:28px}.ktw-zb-live .ktw-zb-dict-main{font-size:21px!important}.ktw-zb-live .ktw-zb-dict-detail,.ktw-zb-live .ktw-zb-origin-theories p,.ktw-zb-live .ktw-zb-dict-note p{font-size:17px!important}.ktw-zb-live .ktw-zb-tools-v2 .ktw-zb-toptools{grid-template-columns:1fr!important}.ktw-zb-live .ktw-zb-tools-v2 .ktw-zb-toptools a{min-height:auto!important;border-right:0!important;border-bottom:1px solid #dfe4e7}.ktw-zb-live .ktw-zb-tools-v2 .ktw-zb-toptools a:last-child{border-bottom:0}.ktw-zb-live .ktw-zb-section>h2{font-size:clamp(28px,7.5vw,36px)!important;white-space:normal!important}}

/* 北澤篤史のことわざ辞典｜195 個別記事 例文・研究UI最終補正 FINAL v1.3 */
body.ktw-zb-live .ktw-zb-example__num{background:#c6a15b!important;border:1px solid #b58a43!important;color:#10283f!important;box-shadow:0 3px 9px rgba(126,91,39,.14)!important;font-weight:900!important}
 body.ktw-zb-live .ktw-ndl__head>span:empty{display:none!important}
 body.ktw-zb-live .ktw-zb-research-metrics,body.ktw-zb-live .ktw-zb-first,body.ktw-zb-live .ktw-zb-evidence-list,body.ktw-zb-live .ktw-zb-source-links,body.ktw-zb-live .ktw-zb-research-note,body.ktw-zb-live .ktw-research-quality{display:none!important}
 body.ktw-zb-live .ktw-bibliography-layer>header p,body.ktw-zb-live .ktw-rg-policy{display:none!important}
 body.ktw-zb-live .ktw-zb-attestation{border-left:0!important;margin-left:0!important;padding-left:0!important;background:transparent!important}
 body.ktw-zb-live .ktw-zb-history--timeline article{position:relative;padding-bottom:22px!important}
 body.ktw-zb-live .ktw-zb-history-form{margin:10px 0 0!important;color:#7a5d31!important;font-size:15px!important}
 body.ktw-zb-live .ktw-zb-history-context{color:#536873!important;border-left:2px solid #d2b57f;padding-left:11px!important}
 body.ktw-zb-live .ktw-zb-history-link{display:inline-block;margin-top:10px;color:#7a5728!important;font-size:11px;font-weight:800;text-decoration:none!important}
 body.ktw-zb-live .ktw-zb-source-detail{margin-top:12px;border-top:1px solid #edf0f2;padding-top:10px}
 body.ktw-zb-live .ktw-zb-source-detail>summary{cursor:pointer;color:#6f5430;font-size:15px;font-weight:850;list-style:none}
 body.ktw-zb-live .ktw-zb-source-detail>summary::-webkit-details-marker{display:none}
 body.ktw-zb-live .ktw-zb-source-detail>summary:after{content:'＋';margin-left:6px;color:#5a421f}
 body.ktw-zb-live .ktw-zb-source-detail[open]>summary:after{content:'−'}
 body.ktw-zb-live .ktw-zb-source-detail__body{margin-top:10px;padding:12px 14px;border-left:2px solid #c8a46f;background:#fbfaf7}
 body.ktw-zb-live .ktw-zb-source-detail__body>div+div{margin-top:10px}
 body.ktw-zb-live .ktw-zb-source-detail__body b{display:block;color:#7b613c;font-size:11px}
 body.ktw-zb-live .ktw-zb-source-detail__body p{margin:3px 0 0!important;color:#455b68!important;font-size:15px!important;line-height:1.8!important}
 body.ktw-zb-live .ktw-zb-source-detail__body .is-note{padding-top:9px;border-top:1px dashed #ddd2c1}
 body.ktw-zb-live .ktw-workspace-feature{width:min(980px,calc(100vw - 54px));margin:0 auto;padding:28px 30px;border:1px solid #d9e0e4;border-left:4px solid #bd985d;border-radius:14px;background:#fff}
 body.ktw-zb-live .ktw-workspace-feature>span{color:#8e6d3d;font-size:13px;font-weight:850}
 body.ktw-zb-live .ktw-workspace-feature h3{margin:6px 0 8px!important;padding:0!important;border:0!important;background:none!important;color:#10283f!important;font-size:28px!important}
 body.ktw-zb-live .ktw-workspace-feature p{margin:0!important;color:#526873!important;font-size:16px!important;line-height:1.85!important}
 body.ktw-zb-live .ktw-workspace-feature ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px;margin:18px 0 0!important;padding-left:20px!important}
 body.ktw-zb-live .ktw-workspace-feature li{color:#425866;font-size:14px;line-height:1.7}
 body.ktw-zb-live .ktw-workspace-feature>a{display:inline-flex;margin-top:20px;padding:12px 16px;border-radius:999px;background:#10283f;color:#fff!important;text-decoration:none!important;font-size:14px;font-weight:850}
 body.ktw-zb-live .ktw-research-subgroup{width:min(980px,calc(100vw - 54px));margin:0 auto 28px}
 body.ktw-zb-live .ktw-research-subgroup>h3{margin:0 0 12px!important;padding:0 0 9px!important;border:0!important;border-bottom:1px solid #dfe4e7!important;background:none!important;color:#10283f!important;font-size:22px!important}
 body.ktw-zb-live .ktw-research-sublead{margin:-2px 0 14px!important;color:#6a7880!important;font-size:13px!important;line-height:1.7!important}
 body.ktw-zb-live .ktw-research-literature-cards{display:grid;gap:12px}
 body.ktw-zb-live .ktw-research-literature-cards article{padding:22px 24px;border:1px solid #dfe4e7;border-left:3px solid #bd985d;border-radius:10px;background:#fff}
 body.ktw-zb-live .ktw-research-subgroup.is-related .ktw-research-literature-cards article{border-left-color:#a7b1b8}
 body.ktw-zb-live .ktw-research-literature-cards strong{display:block;color:#10283f;font-size:18px;line-height:1.6}
 body.ktw-zb-live .ktw-research-literature-cards p{margin:8px 0 0!important;color:#526873!important;font-size:14px!important;line-height:1.8!important}
 body.ktw-zb-live .ktw-research-literature-cards .ktw-research-literature-meta{color:#435762!important;font-size:15px!important}
 body.ktw-zb-live .ktw-research-literature-cards small{display:block;margin-top:8px;color:#435762;font-size:15px;line-height:1.6}
 body.ktw-zb-live .ktw-research-literature-cards .ktw-research-id{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}
 body.ktw-zb-live .ktw-research-literature-links{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px}
 body.ktw-zb-live .ktw-research-literature-cards a{display:inline-block;color:#7b582d!important;font-size:15px;font-weight:800;text-decoration:none!important}
 body.ktw-zb-live .ktw-related-research{width:min(980px,calc(100vw - 54px));margin:8px auto 28px;border:1px solid #dfe4e7;border-radius:14px;background:#fbfaf7;overflow:hidden}
 body.ktw-zb-live .ktw-related-research>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:58px;padding:13px 18px;color:#10283f;font-size:18px;line-height:1.5;cursor:pointer;list-style:none}
 body.ktw-zb-live .ktw-related-research>summary::-webkit-details-marker{display:none}
 body.ktw-zb-live .ktw-related-research>summary strong{color:#10283f;font-size:18px}
 body.ktw-zb-live .ktw-related-research>summary span{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:28px;padding:3px 9px;border-radius:999px;background:#efe6d7;color:#5a421f;font-size:14px;font-weight:850}
 body.ktw-zb-live .ktw-related-research>summary:after{content:'＋';margin-left:auto;color:#795821;font-size:20px;font-weight:900}
 body.ktw-zb-live .ktw-related-research[open]>summary:after{content:'−'}
 body.ktw-zb-live .ktw-related-research__body{padding:0 18px 18px;border-top:1px solid #e4ded3;background:#fff}
 body.ktw-zb-live .ktw-related-research__body .ktw-research-sublead{margin:16px 0!important;font-size:15px!important;line-height:1.75!important}
 @media(max-width:700px){body.ktw-zb-live .ktw-workspace-feature ul{grid-template-columns:1fr}}

/* =========================================================
   9.3. Canonical wide one-column layout lock
   Migrated from retired snippet 406.
   ========================================================= */

:root{
            --ktw-layout-max:1720px;
            --ktw-layout-max-reading:1180px;
            --ktw-layout-gutter:clamp(12px,2vw,32px);
        }

        html,
        body{
            max-width:100%;
            overflow-x:clip;
        }

        body.ktw-wide-one-column-lock-v1,
        body.ktw-wide-one-column-lock-v1 #container{
            width:100%;
            max-width:100%;
            margin-inline:0;
        }

        body.ktw-wide-one-column-lock-v1 *,
        body.ktw-wide-one-column-lock-v1 *::before,
        body.ktw-wide-one-column-lock-v1 *::after{
            box-sizing:border-box;
        }

        body.ktw-wide-one-column-lock-v1 :where(
            #content,
            #inner-content,
            #main,
            article.article,
            .entry-content,
            .entry-content > *,
            [class*="ktw-"],
            [class^="ktw-"],
            [class*="ktr"],
            [class^="ktr"]
        ){
            min-width:0;
        }

        body.ktw-wide-one-column-lock-v1 :where(
            img,
            video,
            iframe,
            embed,
            object,
            canvas,
            svg
        ){
            max-width:100%;
        }

        body.ktw-wide-one-column-lock-v1 :where(
            img,
            video
        ){
            height:auto;
        }

        /* STORK19の本文骨格は常に中央1カラム */
        body.ktw-wide-one-column-lock-v1 #inner-content.wrap,
        body.ktw-wide-one-column-lock-v1 #inner-content.page-full,
        body.ktw-wide-one-column-lock-v1 #inner-content.page-wide{
            width:100%!important;
            max-width:var(--ktw-layout-max)!important;
            margin-left:auto!important;
            margin-right:auto!important;
            padding-left:var(--ktw-layout-gutter)!important;
            padding-right:var(--ktw-layout-gutter)!important;
            float:none!important;
        }

        body.ktw-wide-one-column-lock-v1 #main{
            width:100%!important;
            max-width:none!important;
            margin-left:auto!important;
            margin-right:auto!important;
            padding-left:0!important;
            padding-right:0!important;
            float:none!important;
        }

        body.ktw-wide-one-column-lock-v1 #sidebar1{
            display:none!important;
        }

        /* ヘッダーは背景を全幅のまま、内容だけ中央固定 */
        body.ktw-wide-one-column-lock-v1 #header .inner-header{
            width:100%!important;
            max-width:1540px!important;
            margin-left:auto!important;
            margin-right:auto!important;
            padding-left:var(--ktw-layout-gutter)!important;
            padding-right:var(--ktw-layout-gutter)!important;
        }

        /* entry-content直下の主要アプリ/HUBは親から飛び出さない */
        body.ktw-wide-one-column-lock-v1 .entry-content > :where(
            main,
            section,
            div
        ){
            max-width:100%;
        }

        /*
         * 旧世代のbreakout実装を最終段で無効化。
         * 背景全幅が必要な場合は親セクションのbackgroundだけを使い、
         * 実コンテンツは内側ラッパーで中央固定する。
         */
        body.ktw-wide-one-column-lock-v1 :where(
            .ktw-portal,
            .ktw-search,
            .ktw-cmp,
            .ktw-quiz,
            .ktw-tools-center-shell,
            .ktw-tools-role-shell,
            .ktw-learn-v2,
            .ktw-rp,
            .ktrp,
            .ktrh2,
            .ktlq,
            .ktlp,
            .kted,
            .ktwca,
            .ktw-pa,
            .ktw-pca,
            .ktw-ro-core,
            .ktw-eval-v2,
            .ktw-hub-network,
            .ktw-famous-hub,
            .ktw-gojuon,
            .ktw-depth-nav,
            .ktw-zb-intro,
            .ktw-zb-intro-v2,
            .ktw-zb-links,
            .ktw-article-literature,
            .ktw-article-researchers,
            .ktw-bibliography-layer,
            .ktw-current-proverb-tools,
            .ktrhist
        ){
            width:100%!important;
            max-width:var(--ktw-layout-max)!important;
            margin-left:auto!important;
            margin-right:auto!important;
            left:auto!important;
            right:auto!important;
            transform:none!important;
        }

        /* TOPの旧100vw breakoutも停止 */
        body.ktw-wide-one-column-lock-v1 .ktw-portal{
            position:relative!important;
        }

        /* 各ページの内部主要コンテンツ幅 */
        body.ktw-wide-one-column-lock-v1 :where(
            .ktw-portal__hero-layout,
            .ktw-portal__section-inner,
            .ktw-global-role-nav__inner
        ){
            width:100%!important;
            max-width:1540px!important;
            margin-left:auto!important;
            margin-right:auto!important;
            padding-left:var(--ktw-layout-gutter)!important;
            padding-right:var(--ktw-layout-gutter)!important;
        }

        /* 記事本文は読みやすさを保ちつつ中央 */
        body.ktw-wide-one-column-lock-v1.ktw-zb-live :where(
            .article-header,
            .ktw-zb-intro,
            .ktw-zb-intro-v2,
            .ktw-zb-section,
            .ktw-depth-nav,
            .ktw-zb-links,
            .ktw-bibliography-layer,
            .ktw-article-literature,
            .ktw-article-researchers,
            .ktw-current-proverb-tools
        ){
            width:100%!important;
            max-width:var(--ktw-layout-max-reading)!important;
            margin-left:auto!important;
            margin-right:auto!important;
        }

        /* Grid / Flexの子が親を押し広げない */
        body.ktw-wide-one-column-lock-v1 :where(
            [class*="grid"],
            [class*="Grid"],
            [class*="flex"],
            [class*="Flex"]
        ) > *{
            min-width:0;
            max-width:100%;
        }

        /* 表はページ全体ではなく表自身だけ横スクロール可能 */
        body.ktw-wide-one-column-lock-v1 :where(
            .wp-block-table,
            .table-scroll,
            .ktw-table-wrap
        ){
            width:100%;
            max-width:100%;
            overflow-x:auto;
            -webkit-overflow-scrolling:touch;
        }

        body.ktw-wide-one-column-lock-v1 table{
            max-width:100%;
        }

        /* 固定幅フォーム部品・コード・長いURL */
        body.ktw-wide-one-column-lock-v1 :where(
            input,
            select,
            textarea,
            button,
            pre,
            code
        ){
            max-width:100%;
        }

        body.ktw-wide-one-column-lock-v1 :where(
            p,
            li,
            dd,
            dt,
            a,
            code,
            pre
        ){
            overflow-wrap:anywhere;
        }

        /* PCでは広く、左右24〜32pxを自然に確保 */
        @media (min-width:1024px){
            :root{--ktw-layout-gutter:clamp(24px,1.7vw,32px);}
        }

        /* タブレット */
        @media (min-width:768px) and (max-width:1023px){
            :root{--ktw-layout-gutter:20px;}
        }

        /* スマホ: 375 / 390pxを基準に12〜16px */
        @media (max-width:767px){
            :root{--ktw-layout-gutter:clamp(12px,4vw,16px);}

            body.ktw-wide-one-column-lock-v1 #inner-content.wrap,
            body.ktw-wide-one-column-lock-v1 #inner-content.page-full,
            body.ktw-wide-one-column-lock-v1 #inner-content.page-wide{
                padding-left:var(--ktw-layout-gutter)!important;
                padding-right:var(--ktw-layout-gutter)!important;
            }

            body.ktw-wide-one-column-lock-v1 :where(
                .ktw-portal,
                .ktw-search,
                .ktw-cmp,
                .ktw-quiz,
                .ktw-tools-center-shell,
                .ktw-tools-role-shell,
                .ktw-learn-v2,
                .ktw-rp,
                .ktrp,
                .ktrh2,
                .ktlq,
                .ktlp,
                .kted,
                .ktwca,
                .ktw-pa,
                .ktw-pca,
                .ktw-ro-core,
                .ktw-eval-v2,
                .ktw-hub-network,
                .ktw-famous-hub,
                .ktw-gojuon,
                .ktw-depth-nav,
                .ktw-zb-intro,
                .ktw-zb-intro-v2,
                .ktw-zb-links,
                .ktw-article-literature,
                .ktw-article-researchers,
                .ktw-bibliography-layer,
                .ktw-current-proverb-tools,
                .ktrhist
            ){
                max-width:100%!important;
            }
        }

/* =========================================================
   9.3.5. Research UI base
   Migrated from retired snippet 222.
   ========================================================= */

/* =========================================================
   Research Lab 共通レイアウト
   ========================================================= */
body.ktw-research-ui #content,
body.ktw-research-ui #inner-content,
body.ktw-research-ui #main,
body.ktw-research-ui article.article,
body.ktw-research-ui .entry-content{
    width:100%!important;
    max-width:none!important;
}
body.ktw-research-ui #inner-content.wrap{
    width:100%!important;
    max-width:none!important;
    padding-left:0!important;
    padding-right:0!important;
}
body.ktw-research-ui #main{
    padding-left:0!important;
    padding-right:0!important;
}
body.ktw-research-ui article.article{
    margin-left:0!important;
    margin-right:0!important;
}
body.ktw-research-ui .entry-content{
    padding-left:0!important;
    padding-right:0!important;
}
body.ktw-research-ui .article-header.entry-header{
    display:none!important;
}

/* 研究ツール本体を画面幅いっぱいへ。左右余白は常に均等 */
body.ktw-research-ui :is(
    .ktw-rp,
    .ktrw,
    .ktw-rs,
    .ktw-scholar,
    .ktw-ss,
    .ktw-rtool,
    .ktrm,
    .ktmc,
    .ktrg2,
    .ktrh,
    .ktrga,
    .ktrc,
    .ktwc,
    .ktw-cu,
    .ktw-tool-method,
    .ktw-rgx,
    .ktw-pa
){
    width:calc(100% - 48px)!important;
    max-width:1800px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    transform:none!important;
    box-sizing:border-box!important;
    min-width:0!important;
}

/* ページ内の縦余白を揃える */
body.ktw-research-ui :is(
    .ktw-rp,
    .ktrw,
    .ktw-rs,
    .ktw-scholar,
    .ktw-ss,
    .ktw-rtool,
    .ktrm,
    .ktmc,
    .ktrg2,
    .ktrh,
    .ktrga,
    .ktrc,
    .ktwc
){
    margin-top:22px!important;
    margin-bottom:72px!important;
}

/* =========================================================
   タイポグラフィ
   ========================================================= */
body.ktw-research-ui .entry-content{
    font-size:17px!important;
    line-height:1.9!important;
    color:#203847!important;
}
body.ktw-research-ui :is(
    .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
    .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
) p{
    font-size:16px!important;
    line-height:1.9!important;
}
body.ktw-research-ui :is(
    .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
    .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
) h1{
    font-size:clamp(36px,4.1vw,58px)!important;
    line-height:1.28!important;
    letter-spacing:.01em!important;
}
body.ktw-research-ui :is(
    .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
    .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
) h2{
    font-size:clamp(28px,3vw,40px)!important;
    line-height:1.35!important;
}
body.ktw-research-ui :is(
    .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
    .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
) h3{
    font-size:clamp(21px,2vw,29px)!important;
    line-height:1.45!important;
}
body.ktw-research-ui :is(
    .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
    .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
) h4{
    font-size:19px!important;
    line-height:1.5!important;
}

/* 小さすぎる文字をなくす */
body.ktw-research-ui :is(
    .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
    .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
) small{
    font-size:13px!important;
    line-height:1.65!important;
}
body.ktw-research-ui :is(
    .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
    .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
) label{
    font-size:14px!important;
    line-height:1.55!important;
}
body.ktw-research-ui :is(
    .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
    .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
) input,
body.ktw-research-ui :is(
    .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
    .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
) select,
body.ktw-research-ui :is(
    .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
    .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
) textarea{
    font-size:16px!important;
    line-height:1.65!important;
    min-height:48px;
}
body.ktw-research-ui :is(
    .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
    .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
) button,
body.ktw-research-ui :is(
    .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
    .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
) a[class*="btn"]{
    font-size:14px!important;
    min-height:46px;
}

/* =========================================================
   セクション・カード
   ========================================================= */
body.ktw-research-ui :is(
    .ktw-rp-hero,.ktrw-hero,.ktw-rs-hero,.ktw-scholar-hero,.ktw-ss-hero,
    .ktw-rtool-hero,.ktrm-hero,.ktmc-hero,.ktrg2-hero,.ktwc-hero
){
    padding:clamp(28px,4vw,58px)!important;
    border-radius:22px!important;
}
body.ktw-research-ui :is(
    .ktw-rp-section,.ktrw-flow,.ktrw-plan,.ktw-rs-section,.ktw-scholar-section,
    .ktw-ss-section,.ktw-rtool-section,.ktrm-sec,.ktmc-sec,.ktrg2-sec,
    .ktrh,.ktrga,.ktrc,.ktwc-sec,.ktw-tool-method
){
    padding-left:clamp(18px,2.5vw,34px)!important;
    padding-right:clamp(18px,2.5vw,34px)!important;
}
body.ktw-research-ui :is(
    .ktw-rp-tool,.ktrw-card,.ktw-rs-fieldgrid article,.ktw-scholar-card,
    .ktw-ss-card,.ktw-rtool-event,.ktrm-card,.ktmc-card,.ktrg2-card,
    .ktrh-cov,.ktrga-item,.ktrc-overview>article,.ktwc-record
){
    border-radius:14px!important;
}

/* =========================================================
   不要な英語装飾を非表示
   正式サービス名・PS Core等は対象外
   ========================================================= */
body.ktw-research-ui :is(
    .ktw-rp-eyebrow,
    .ktw-rp-section>header>span,
    .ktw-rp-policy>span,
    .ktrw-hero>span,
    .ktrw-selected>span,
    .ktrw-flow>header>span,
    .ktrw-plan>header>span,
    .ktw-rs-hero>span,
    .ktw-rs-section>header>span,
    .ktw-scholar-hero>span,
    .ktw-scholar-section>header>span,
    .ktw-ss-hero>span,
    .ktw-ss-section>header>span,
    .ktw-rtool-hero>span,
    .ktw-rtool-section>header>span,
    .ktrm-hero>span,
    .ktrm-sec>header>span,
    .ktmc-hero>span,
    .ktmc-sec>header>span,
    .ktrg2-hero>span,
    .ktrg2-sec>header>span,
    .ktrh-head>div>span,
    .ktrga-head>div>span,
    .ktrc-head>div>span,
    .ktrc-sec>header>span,
    .ktwc-hero>span,
    .ktwc-sec>header>span
){
    display:none!important;
}

/* 英語だけの装飾用小ラベルも極力消す */
body.ktw-research-ui .ktrw-group-head small{
    display:none!important;
}

/* =========================================================
   日本語UIを読みやすく
   ========================================================= */
body.ktw-research-ui .ktw-rp-tool strong,
body.ktw-research-ui .ktrw-card strong,
body.ktw-research-ui .ktrl-card h2,
body.ktw-research-ui .ktrh-cov strong{
    font-size:17px!important;
}
body.ktw-research-ui .ktw-rp-tool p,
body.ktw-research-ui .ktrw-card small{
    font-size:14px!important;
}
body.ktw-research-ui .ktw-rp-tool i,
body.ktw-research-ui .ktrw-card i{
    font-size:13px!important;
}

/* 横スクロール表は画面内で扱いやすく */
body.ktw-research-ui :is(.ktw-v-table-wrap,.ktrc-table-wrap){
    width:100%!important;
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch;
}

/* =========================================================
   スマホ
   ========================================================= */
@media(max-width:720px){
    body.ktw-research-ui :is(
        .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
        .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu,
        .ktw-tool-method,.ktw-rgx
    ){
        width:calc(100% - 24px)!important;
        max-width:none!important;
        margin-left:auto!important;
        margin-right:auto!important;
        transform:none!important;
    }
    body.ktw-research-ui .entry-content{
        font-size:16px!important;
    }
    body.ktw-research-ui :is(
        .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
        .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
    ) p{
        font-size:15px!important;
        line-height:1.85!important;
    }
    body.ktw-research-ui :is(
        .ktw-rp-hero,.ktrw-hero,.ktw-rs-hero,.ktw-scholar-hero,.ktw-ss-hero,
        .ktw-rtool-hero,.ktrm-hero,.ktmc-hero,.ktrg2-hero,.ktwc-hero
    ){
        padding:26px 18px!important;
    }
    body.ktw-research-ui :is(
        .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
        .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
    ) input,
    body.ktw-research-ui :is(
        .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
        .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
    ) select,
    body.ktw-research-ui :is(
        .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
        .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
    ) textarea{
        font-size:16px!important;
    }
}

/* コントラスト統一：小文字・補足を研究ツール全体で濃くする */
body.ktw-research-ui :is(
    .ktw-rp-hero__principles span,.ktw-rp-external span,.ktw-rp-query,
    .ktrw-card small,.ktrw-group-head small,.ktrw-meta,
    .ktrl-aff,.ktrl-count span,.ktrl-empty,.ktrl-literature small,.ktrl-lit-badges span,.ktrl-status,
    .ktw-rs-fieldgrid p,.ktw-rs-inst-grid span,.ktw-rs-inst-grid small,
    .ktw-scholar small,.ktw-ss small,.ktw-rtool small,.ktrm small,.ktmc small,
    .ktrg2 small,.ktrh small,.ktrga small,.ktrc small,.ktwc small
){
    color:#334b58!important;
}
body.ktw-research-ui :is(
    .ktrl-tags span,.ktrg2-card .badges span,.ktrc-tags span,.ktwc-record .badges span
){
    color:#314956!important;
    background:#e7eef1!important;
}

/* =========================================================
   v2｜横はみ出し防止・高齢者/研究者向け可読性
   ========================================================= */
html,
body.ktw-research-ui{
    max-width:100%!important;
    overflow-x:clip!important;
}
body.ktw-research-ui #content,
body.ktw-research-ui #inner-content,
body.ktw-research-ui #main,
body.ktw-research-ui article.article,
body.ktw-research-ui .entry-content{
    min-width:0!important;
    overflow-x:visible!important;
}
body.ktw-research-ui :is(
    .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
    .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu,
    .ktw-tool-method,.ktw-rgx
){
    overflow-wrap:anywhere!important;
}
body.ktw-research-ui :is(
    .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
    .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu,
    .ktw-tool-method,.ktw-rgx
) *{
    box-sizing:border-box!important;
    min-width:0;
}
body.ktw-research-ui :is(
    .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
    .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
) p,
body.ktw-research-ui :is(
    .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
    .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
) li,
body.ktw-research-ui :is(
    .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
    .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
) td,
body.ktw-research-ui :is(
    .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
    .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
) th{
    color:#1f3543!important;
    font-weight:600!important;
}
body.ktw-research-ui :is(
    .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
    .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
) small{
    color:#2d4350!important;
    font-size:14px!important;
    line-height:1.7!important;
    font-weight:600!important;
}
body.ktw-research-ui :is(
    .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
    .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
) label{
    color:#203744!important;
    font-size:15px!important;
    font-weight:800!important;
}
body.ktw-research-ui :is(
    .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
    .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
) input,
body.ktw-research-ui :is(
    .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
    .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
) select,
body.ktw-research-ui :is(
    .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
    .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
) textarea{
    color:#162d3b!important;
    background:#fff!important;
    font-size:16px!important;
    font-weight:600!important;
}
body.ktw-research-ui :is(
    .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
    .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
) input::placeholder,
body.ktw-research-ui :is(
    .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
    .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
) textarea::placeholder{
    color:#657681!important;
    opacity:1!important;
    font-weight:500!important;
}
body.ktw-research-ui :is(
    .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
    .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
) button{
    font-size:15px!important;
    font-weight:900!important;
}
body.ktw-research-ui :is(
    .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
    .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
) img,
body.ktw-research-ui :is(
    .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
    .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
) svg,
body.ktw-research-ui :is(
    .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
    .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
) canvas,
body.ktw-research-ui :is(
    .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
    .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
) video{
    max-width:100%!important;
}
body.ktw-research-ui :is(
    .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
    .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu
) pre{
    max-width:100%!important;
    overflow-x:auto!important;
}

/* Workspaceは特にスマホでカードを1列へ */
@media(max-width:820px){
    body.ktw-research-ui .ktrw-cards{
        grid-template-columns:1fr!important;
    }
    body.ktw-research-ui .ktrw-card{
        grid-template-columns:48px minmax(0,1fr)!important;
        gap:12px!important;
        width:100%!important;
        padding:16px!important;
    }
    body.ktw-research-ui .ktrw-card i{
        grid-column:2!important;
        font-size:14px!important;
    }
    body.ktw-research-ui .ktrw-group{
        padding:16px!important;
    }
    body.ktw-research-ui .ktrw-search>div:first-of-type{
        grid-template-columns:1fr!important;
    }
    body.ktw-research-ui .ktrw-search button{
        width:100%!important;
        min-height:50px!important;
    }
}
@media(max-width:520px){
    body.ktw-research-ui :is(
        .ktw-rp,.ktrw,.ktw-rs,.ktw-scholar,.ktw-ss,.ktw-rtool,
        .ktrm,.ktmc,.ktrg2,.ktrh,.ktrga,.ktrc,.ktwc,.ktw-cu,
        .ktw-tool-method,.ktw-rgx
    ){
        width:calc(100% - 24px)!important;
        margin-left:auto!important;
        margin-right:auto!important;
    }
    body.ktw-research-ui :is(
        .ktw-rp-hero,.ktrw-hero,.ktw-rs-hero,.ktw-scholar-hero,.ktw-ss-hero,
        .ktw-rtool-hero,.ktrm-hero,.ktmc-hero,.ktrg2-hero,.ktwc-hero
    ){
        padding:24px 16px!important;
        border-radius:16px!important;
    }
    body.ktw-research-ui .ktrw-card strong{
        font-size:17px!important;
        line-height:1.45!important;
    }
    body.ktw-research-ui .ktrw-card small{
        font-size:14px!important;
        line-height:1.7!important;
    }
}

/* =========================================================
   v3｜研究者・高齢者向け 可読性最低基準
   ========================================================= */
body.ktw-research-ui #content :is(
  p,li,dt,dd,summary,figcaption,caption
){
  color:#1d3441!important;
  font-size:16px!important;
  line-height:1.85!important;
}
body.ktw-research-ui #content small{
  color:#263d49!important;
  font-size:14px!important;
  line-height:1.7!important;
  font-weight:600!important;
}
body.ktw-research-ui #content :is(th,td){
  color:#1d3441!important;
  font-size:15px!important;
  line-height:1.7!important;
}
body.ktw-research-ui #content :is(label,legend){
  color:#18303d!important;
  font-size:15px!important;
  line-height:1.6!important;
  font-weight:800!important;
}
body.ktw-research-ui #content :is(input,select,textarea){
  color:#102a38!important;
  font-size:16px!important;
  line-height:1.65!important;
  font-weight:600!important;
}
body.ktw-research-ui #content :is(input,textarea)::placeholder{
  color:#596b75!important;
  opacity:1!important;
}
body.ktw-research-ui #content :is(h1,h2,h3,h4,strong,b){
  color:#0f2a3a!important;
}
body.ktw-research-ui #content a:not(.custom-logo-link){
  text-underline-offset:3px;
}
body.ktw-research-ui #content :is(
  .ktrw-card>b,
  .ktrw-selected>a,
  .primary,
  button.primary,
  .ktrh-nav button.primary,
  .ktrc-actions .primary
){
  color:#fff!important;
}
@media(max-width:600px){
  body.ktw-research-ui #content :is(p,li,dt,dd,summary,figcaption,caption){
    font-size:16px!important;
    line-height:1.85!important;
  }
  body.ktw-research-ui #content small{
    font-size:14px!important;
  }
  body.ktw-research-ui #content :is(th,td){
    font-size:14px!important;
  }
}

/* =========================================================
   9.4.2. Migrated article feature styles
   Sources: snippets 83, 84, 86, 89.
   Functional logic remains in snippets; CSS is canonical here.
   ========================================================= */

/* 北澤篤史のことわざ辞典｜73 ZERO BASE ARTICLE 色分け・内部外部リンク統合 FINAL vNext | original priority 2920000 */
body.ktw-zb-live .article-header>.sns_btn__ul,body.ktw-zb-live .article-header .sns_btn__ul{display:none!important}

    body.ktw-zb-live .ktw-zb-section{position:relative;margin-bottom:0!important;padding:74px 0 86px!important;border-top:1px solid rgba(16,40,63,.055)}
    body.ktw-zb-live .ktw-zb-section:first-of-type{border-top:0}
    body.ktw-zb-live .ktw-zb-section.is-meaning{background:linear-gradient(180deg,#f3f8fc 0,#fff 68%)}
    body.ktw-zb-live .ktw-zb-section.is-usage{background:linear-gradient(180deg,#f3faf5 0,#fff 68%)}
    body.ktw-zb-live .ktw-zb-section.is-compare{background:linear-gradient(180deg,#f7f5fb 0,#fff 68%)}
    body.ktw-zb-live .ktw-zb-section.is-origin{background:linear-gradient(180deg,#fbf7ee 0,#fff 70%)}
    body.ktw-zb-live .ktw-zb-section.is-history{background:linear-gradient(180deg,#f6f8fb 0,#fff 70%)}
    body.ktw-zb-live .ktw-zb-section.is-language{background:linear-gradient(180deg,#f2f9fa 0,#fff 70%)}
    body.ktw-zb-live .ktw-zb-section.is-tools{background:linear-gradient(180deg,#f5f7f9 0,#fff 70%)}
    body.ktw-zb-live .ktw-zb-section.is-research{background:linear-gradient(180deg,#f4f6f7 0,#fff 72%)}

    body.ktw-zb-live .ktw-zb-section>h2{position:relative;padding-bottom:22px!important;border-bottom:0!important}
    body.ktw-zb-live .ktw-zb-section>h2:after{content:''!important;display:block!important;position:absolute;left:0;bottom:0;width:92px;height:5px;border-radius:99px;background:#748b9b}
    body.ktw-zb-live .ktw-zb-section.is-meaning>h2:after{background:#3d7fb0}
    body.ktw-zb-live .ktw-zb-section.is-usage>h2:after{background:#4b8b67}
    body.ktw-zb-live .ktw-zb-section.is-compare>h2:after{background:#75639a}
    body.ktw-zb-live .ktw-zb-section.is-origin>h2:after{background:#b1884d}
    body.ktw-zb-live .ktw-zb-section.is-history>h2:after{background:#647f98}
    body.ktw-zb-live .ktw-zb-section.is-language>h2:after{background:#458b93}
    body.ktw-zb-live .ktw-zb-section.is-tools>h2:after{background:#4e6b82}
    body.ktw-zb-live .ktw-zb-section.is-research>h2:after{background:#304d63}

    body.ktw-zb-live .ktw-zb-tools-v2{padding:30px;border:1px solid #dbe2e6;border-radius:18px;background:linear-gradient(135deg,#f8fafb,#fff);box-shadow:0 14px 34px rgba(22,44,60,.045)}
    body.ktw-zb-live .ktw-zb-tools-v2 .ktw-zb-toptools a:nth-child(1){border-top:5px solid #75639a;background:#fbfaff}
    body.ktw-zb-live .ktw-zb-tools-v2 .ktw-zb-toptools a:nth-child(2){border-top:5px solid #3d7fb0;background:#f9fcff}
    body.ktw-zb-live .ktw-zb-tools-v2 .ktw-zb-toptools a:nth-child(3){border-top:5px solid #4b8b67;background:#f9fdf9}
    body.ktw-zb-live .ktw-zb-tools-v2 .ktw-zb-toptools a:nth-child(4){border-top:5px solid #b1884d;background:#fffdf8}

    body.ktw-zb-live .ktw-zb-scenarios article:nth-child(1){border-top:5px solid #487aa3;background:#fbfdff}
    body.ktw-zb-live .ktw-zb-scenarios article:nth-child(2){border-top:5px solid #4b8b67;background:#fbfefb}
    body.ktw-zb-live .ktw-zb-scenarios article:nth-child(3){border-top:5px solid #b1884d;background:#fffdf9}
    body.ktw-zb-live .ktw-zb-compare article:first-child{border-top:5px solid #3d7fb0;background:#fbfdff}
    body.ktw-zb-live .ktw-zb-compare article:last-child{border-top:5px solid #a26255;background:#fffafa}
    body.ktw-zb-live .ktw-zb-theories article:first-child{border-top:5px solid #647f98;background:#fbfcfe}
    body.ktw-zb-live .ktw-zb-theories article:last-child{border-top:5px solid #b1884d;background:#fffdf8}
    body.ktw-zb-live .ktw-zb-route article:first-child{border-top:5px solid #a26255;background:#fffafa}
    body.ktw-zb-live .ktw-zb-route article.is-safe{border-top:5px solid #4b8b67;background:#f9fdf9}

    body.ktw-zb-live .ktw-zb-links{width:min(1450px,calc(100vw - 54px));margin:30px auto 0;padding:24px 26px;border-radius:16px}
    body.ktw-zb-live .ktw-zb-links.is-internal{border:1px solid #d8e2e8;background:#f7fbfd}
    body.ktw-zb-live .ktw-zb-links.is-external{border:1px solid #e2dacb;background:#fffaf2}
    body.ktw-zb-live .ktw-zb-links__title strong{display:block;color:#10283f;font-size:21px;line-height:1.45}
    body.ktw-zb-live .ktw-zb-links__title p{margin:6px 0 0!important;color:#596a74!important;font-size:16px!important;line-height:1.7!important}
    body.ktw-zb-live .ktw-zb-links__items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}
    body.ktw-zb-live .ktw-zb-links__items a{display:grid;grid-template-columns:1fr auto;gap:5px 14px;padding:17px 18px;border:1px solid rgba(16,40,63,.12);border-radius:12px;background:#fff;color:#10283f!important;text-decoration:none!important;transition:.18s ease}
    body.ktw-zb-live .ktw-zb-links__items a:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(23,45,60,.07)}
    body.ktw-zb-live .ktw-zb-links__items a span{grid-column:1;color:#687780;font-size:15px;font-weight:700}
    body.ktw-zb-live .ktw-zb-links__items a strong{grid-column:1;color:#10283f;font-size:18px;line-height:1.5}
    body.ktw-zb-live .ktw-zb-links__items a b{grid-column:2;grid-row:1/3;align-self:center;color:#9b483a;font-size:22px}

    body.ktw-zb-live .ktw-zb-source-links{gap:10px!important}
    body.ktw-zb-live .ktw-zb-source-links a{background:#fffaf2!important;border-color:#e2d5c0!important}

    @media(max-width:900px){body.ktw-zb-live .ktw-zb-section{padding:58px 0 68px!important}.ktw-zb-live .ktw-zb-links__items{grid-template-columns:1fr}}
    @media(max-width:620px){body.ktw-zb-live .ktw-zb-section{padding:48px 0 58px!important}.ktw-zb-live .ktw-zb-links{width:calc(100vw - 28px)!important;padding:20px 16px}.ktw-zb-live .ktw-zb-tools-v2{padding:20px 14px!important}}

/* 北澤篤史のことわざ辞典｜74 3層ナビ・文中Evidence・Relation内部リンク FINAL vNext.2 | original priority 2930000 */
body.ktw-zb-live .ktw-depth-nav{width:min(1500px,calc(100vw - 54px));margin:0 auto 38px;padding:28px;border:1px solid #dbe2e6;border-radius:18px;background:#fff}
    body.ktw-zb-live .ktw-depth-nav>header h2{margin:0!important;padding:0!important;border:0!important;background:none!important;color:#10283f!important;font-family:inherit!important;font-size:27px!important;font-weight:800!important;line-height:1.4!important}
    body.ktw-zb-live .ktw-depth-nav>header h2:before,body.ktw-zb-live .ktw-depth-nav>header h2:after{display:none!important}
    body.ktw-zb-live .ktw-depth-nav>header p{margin:7px 0 0!important;color:#5e6f78!important;font-size:17px!important;line-height:1.7!important}
    body.ktw-zb-live .ktw-depth-nav__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:20px}
    body.ktw-zb-live .ktw-depth-nav__grid a{display:flex;min-height:178px;padding:24px;border:1px solid #dfe4e7;border-radius:14px;flex-direction:column;color:#10283f!important;text-decoration:none!important;transition:.18s ease}
    body.ktw-zb-live .ktw-depth-nav__grid a:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(22,44,60,.07)}
    body.ktw-zb-live .ktw-depth-nav__grid a.is-basic{border-top:6px solid #3d7fb0;background:#f8fcff}
    body.ktw-zb-live .ktw-depth-nav__grid a.is-learn{border-top:6px solid #75639a;background:#fbfaff}
    body.ktw-zb-live .ktw-depth-nav__grid a.is-research{border-top:6px solid #b1884d;background:#fffdf8}
    body.ktw-zb-live .ktw-depth-nav__grid strong{font-size:25px;line-height:1.4}
    body.ktw-zb-live .ktw-depth-nav__grid p{margin:10px 0 18px!important;color:#586b75!important;font-size:16px!important;line-height:1.75!important}
    body.ktw-zb-live .ktw-depth-nav__grid span{margin-top:auto;color:#9b483a;font-size:15px;font-weight:800}

    body.ktw-zb-live .ktw-inline-evidence{width:min(1450px,calc(100vw - 54px));margin:32px auto 0;padding:26px;border:1px solid #dfd8ca;border-radius:16px;background:#fffdf8}
    body.ktw-zb-live .ktw-inline-evidence>header strong{display:block;color:#10283f;font-size:22px;line-height:1.5}
    body.ktw-zb-live .ktw-inline-evidence>header p{margin:7px 0 0!important;color:#5e6e76!important;font-size:16px!important;line-height:1.75!important}
    body.ktw-zb-live .ktw-inline-evidence__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px}
    body.ktw-zb-live .ktw-inline-evidence__list article{padding:22px;border:1px solid #e4ded3;border-radius:13px;background:#fff}
    body.ktw-zb-live .ktw-inline-evidence__head{display:flex;gap:10px;align-items:flex-start;flex-wrap:wrap}
    body.ktw-zb-live .ktw-inline-evidence__head span{padding:6px 9px;border-radius:999px;background:#10283f;color:#fff;font-size:14px;font-weight:800}
    body.ktw-zb-live .ktw-inline-evidence__head strong{flex:1;min-width:220px;color:#10283f;font-size:19px;line-height:1.55}
    body.ktw-zb-live .ktw-inline-evidence__list article>p{margin:12px 0 0!important;color:#4f626d!important;font-size:16px!important;line-height:1.85!important}
    body.ktw-zb-live .ktw-inline-evidence__source{display:grid;grid-template-columns:auto 1fr;gap:8px;margin-top:14px;padding-top:13px;border-top:1px solid #ece6dc}
    body.ktw-zb-live .ktw-inline-evidence__source b{color:#7d6d56;font-size:14px}
    body.ktw-zb-live .ktw-inline-evidence__source span{color:#596b75;font-size:14px;line-height:1.6}
    body.ktw-zb-live .ktw-inline-evidence__list article>a{display:inline-block;margin-top:14px;color:#9b483a!important;font-size:15px;font-weight:800;text-decoration:none!important}
    body.ktw-zb-live .ktw-zb-section.is-origin>.ktw-zb-links.is-external,body.ktw-zb-live .ktw-zb-section.is-history>.ktw-zb-links.is-external,body.ktw-zb-live .ktw-zb-section.is-language>.ktw-zb-links.is-external{display:none!important}

    body.ktw-zb-live .ktw-relation-links{width:min(1450px,calc(100vw - 54px));margin:34px auto 0;padding:28px;border:1px solid #ddd8e8;border-radius:17px;background:#fbfaff}
    body.ktw-zb-live .ktw-relation-links>header strong{display:block;color:#10283f;font-size:24px;line-height:1.45}
    body.ktw-zb-live .ktw-relation-links>header p{margin:7px 0 0!important;color:#5d6c76!important;font-size:16px!important;line-height:1.75!important}
    body.ktw-zb-live .ktw-relation-links__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:20px}
    body.ktw-zb-live .ktw-relation-links__grid>article{padding:24px;border:1px solid #e1ddea;border-radius:14px;background:#fff}
    body.ktw-zb-live .ktw-relation-links__type{color:#75639a;font-size:15px;font-weight:800}
    body.ktw-zb-live .ktw-relation-links h3{margin:7px 0 0!important;padding:0!important;border:0!important;background:none!important;font-size:23px!important;line-height:1.45!important}
    body.ktw-zb-live .ktw-relation-links h3 a{color:#10283f!important;text-decoration:none!important}
    body.ktw-zb-live .ktw-relation-links__reason,body.ktw-zb-live .ktw-relation-links__difference,body.ktw-zb-live .ktw-relation-links__usage{margin-top:16px}
    body.ktw-zb-live .ktw-relation-links__reason strong,body.ktw-zb-live .ktw-relation-links__difference strong,body.ktw-zb-live .ktw-relation-links__usage strong{display:block;color:#445965;font-size:15px}
    body.ktw-zb-live .ktw-relation-links__reason p,body.ktw-zb-live .ktw-relation-links__difference p,body.ktw-zb-live .ktw-relation-links__usage p{margin:5px 0 0!important;color:#5a6b74!important;font-size:16px!important;line-height:1.8!important}
    body.ktw-zb-live .ktw-relation-links__actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:18px}
    body.ktw-zb-live .ktw-relation-links__actions a{padding:10px 13px;border-radius:999px;background:#10283f;color:#fff!important;text-decoration:none!important;font-size:14px;font-weight:800}

    body.ktw-zb-live .ktw-research-quality{width:min(1450px,calc(100vw - 54px));margin:28px auto 0;display:grid;grid-template-columns:1fr 1fr 2fr;gap:1px;border:1px solid #dbe1e4;background:#dbe1e4}
    body.ktw-zb-live .ktw-research-quality>div,body.ktw-zb-live .ktw-research-quality>p{margin:0!important;padding:20px;background:#fff}
    body.ktw-zb-live .ktw-research-quality span{display:block;color:#677780;font-size:14px;font-weight:700}
    body.ktw-zb-live .ktw-research-quality strong{display:block;margin-top:5px;color:#10283f;font-size:20px}
    body.ktw-zb-live .ktw-research-quality>p{color:#596a73!important;font-size:16px!important;line-height:1.7!important}

    @media(max-width:900px){body.ktw-zb-live .ktw-depth-nav__grid,body.ktw-zb-live .ktw-inline-evidence__list,body.ktw-zb-live .ktw-relation-links__grid{grid-template-columns:1fr}.ktw-zb-live .ktw-research-quality{grid-template-columns:1fr}.ktw-zb-live .ktw-depth-nav__grid a{min-height:auto}}
    @media(max-width:620px){body.ktw-zb-live .ktw-depth-nav,body.ktw-zb-live .ktw-inline-evidence,body.ktw-zb-live .ktw-relation-links,body.ktw-zb-live .ktw-research-quality{width:calc(100vw - 28px)!important}.ktw-zb-live .ktw-depth-nav,.ktw-zb-live .ktw-inline-evidence,.ktw-zb-live .ktw-relation-links{padding:20px 16px}.ktw-zb-live .ktw-depth-nav>header h2{font-size:24px!important}}

/* 北澤篤史のことわざ辞典｜79 記事×研究者・研究文献 関連レンズ FINAL v2.2 | original priority 2945000 */
.ktw-article-literature,.ktw-article-researchers{width:min(1450px,calc(100vw - 54px));margin:38px auto 0;padding:30px;border:1px solid #dcd8e7;border-radius:18px;background:#fbfaff}
.ktw-article-literature>header>span,.ktw-article-researchers>header>span{color:#75639a;font-size:14px;font-weight:900;letter-spacing:.09em}
.ktw-article-literature h3,.ktw-article-researchers h3{margin:7px 0 8px!important;color:#10283f!important;font-size:29px!important;line-height:1.4!important}
.ktw-article-literature>header p,.ktw-article-researchers>header p{margin:0!important;color:#526872!important;font-size:16px!important;line-height:1.8!important}
.ktw-lit-grid,.ktw-article-researcher-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:22px}
.ktw-lit-card,.ktw-article-researcher-card{padding:22px;border:1px solid #e1ddea;border-radius:14px;background:#fff}
.ktw-lit-kicker,.ktw-article-researcher-status{color:#75639a;font-size:14px;font-weight:900}
.ktw-lit-card h4,.ktw-article-researcher-card h4{margin:6px 0 0!important;padding:0!important;border:0!important;background:none!important;color:#10283f!important;font-size:22px!important;line-height:1.55!important}
.ktw-lit-meta,.ktw-article-researcher-aff{margin:8px 0 0!important;color:#60727b!important;font-size:15px!important;line-height:1.7!important}
.ktw-lit-basis{margin:12px 0 0!important;color:#4f6270!important;font-size:14px!important;line-height:1.7!important}.ktw-lit-note{margin:10px 0 0!important;color:#435966!important;font-size:15px!important;line-height:1.8!important}
.ktw-lit-pages{margin:10px 0 0!important;color:#556a74!important;font-size:14px!important}
.ktw-lit-foot{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:14px;padding-top:13px;border-top:1px solid #e8e4ee}
.ktw-lit-foot span{padding:5px 9px;border-radius:999px;background:#f3f1f8;color:#6d5f88;font-size:12px;font-weight:800}
.ktw-lit-foot a,.ktw-article-researcher-card>a{color:#9b483a!important;font-size:14px;font-weight:800;text-decoration:none!important}
.ktw-lit-more{grid-column:1/-1;margin-top:2px}.ktw-lit-more summary{cursor:pointer;font-weight:800;color:#435966}.ktw-lit-more>.ktw-lit-grid{margin-top:14px}
.ktw-article-researcher-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}.ktw-article-researcher-tags span{padding:6px 9px;border-radius:999px;background:#f1eff7;color:#665789;font-size:13px;font-weight:800}
.ktw-article-researcher-basis{margin-top:16px;padding-top:14px;border-top:1px solid #e8e4ee}.ktw-article-researcher-basis strong{color:#435966;font-size:15px}.ktw-article-researcher-basis ul{margin:7px 0 0!important;padding-left:20px!important}.ktw-article-researcher-basis li{margin:4px 0;color:#5c6d76;font-size:14px;line-height:1.6}
@media(max-width:760px){.ktw-article-literature,.ktw-article-researchers{width:calc(100vw - 28px);padding:20px 16px}.ktw-lit-grid,.ktw-article-researcher-grid{grid-template-columns:1fr}.ktw-article-literature h3,.ktw-article-researchers h3{font-size:24px!important}}

/* 北澤篤史のことわざ辞典｜76 研究文献メタ・参考文献レイヤー FINAL vNext.1 | original priority 2950000 */
body.ktw-zb-live .ktw-bibliography-layer{width:100%;max-width:900px;margin:42px auto 0;padding:0;background:#fff}
body.ktw-zb-live .ktw-bibliography-layer>header>span{color:#795821;font-size:14px;font-weight:900}
body.ktw-zb-live .ktw-bibliography-layer h3{margin:6px 0 8px!important;padding:0!important;border:0!important;background:none!important;color:#10283f!important;font-size:27px!important;line-height:1.5!important}
body.ktw-zb-live .ktw-bibliography-layer h3:before,body.ktw-zb-live .ktw-bibliography-layer h3:after{display:none!important}
body.ktw-zb-live .ktw-bibliography-layer>header p{margin:0!important;color:#435762!important;font-size:16px!important;line-height:1.8!important}
body.ktw-zb-live .ktw-bibliography-group{margin-top:28px}
body.ktw-zb-live .ktw-bibliography-group h4{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px!important;padding:0 0 10px!important;border:0!important;border-bottom:1px solid #dfe4e7!important;background:none!important;color:#10283f!important;font-size:20px!important}
body.ktw-zb-live .ktw-bibliography-group h4 small{display:inline-flex;align-items:center;min-height:28px;padding:3px 9px;border-radius:999px;background:#f3eadc;color:#5a421f;font-size:14px;line-height:1.4;font-weight:800}
body.ktw-zb-live .ktw-bibliography-items{margin:0!important;padding-left:26px!important}
body.ktw-zb-live .ktw-bibliography-items li{padding:13px 0 15px 6px;border-bottom:1px solid #edf0f2}
body.ktw-zb-live .ktw-bibliography-items strong{color:#10283f;font-size:17px;line-height:1.65}
body.ktw-zb-live .ktw-bibliography-items p{margin:5px 0 0!important;color:#435762!important;font-size:15px!important;line-height:1.7!important}
body.ktw-zb-live .ktw-bibliography-items small{display:block;margin-top:5px;color:#435762!important;font-size:15px!important;line-height:1.7}
body.ktw-zb-live .ktw-bibliography-items a{display:inline-flex;align-items:center;min-height:40px;margin-top:8px;color:#73372f!important;font-size:15px;font-weight:800;text-decoration:none!important}
body.ktw-zb-live .ktw-bibliography-more{margin:12px 0 0;border:1px solid #d8d1c6;border-radius:12px;background:#fbfaf7}
body.ktw-zb-live .ktw-bibliography-more>summary{display:flex;align-items:center;justify-content:center;min-height:48px;padding:10px 14px;color:#243b4c;font-size:15px;line-height:1.5;font-weight:850;cursor:pointer;list-style:none}
body.ktw-zb-live .ktw-bibliography-more>summary::-webkit-details-marker{display:none}
body.ktw-zb-live .ktw-bibliography-more>summary:after{content:"＋";margin-left:8px;color:#795821;font-size:18px;font-weight:900}
body.ktw-zb-live .ktw-bibliography-more[open]>summary:after{content:"−"}
body.ktw-zb-live .ktw-bibliography-more[open]>summary{border-bottom:1px solid #e4ded3}
body.ktw-zb-live .ktw-bibliography-items--more{padding:0 26px 4px 50px!important;background:#fff}
@media(max-width:720px){
 body.ktw-zb-live .ktw-bibliography-layer{width:calc(100vw - 28px);margin-top:34px}
 body.ktw-zb-live .ktw-bibliography-layer h3{font-size:24px!important}
 body.ktw-zb-live .ktw-bibliography-items{padding-left:23px!important}
 body.ktw-zb-live .ktw-bibliography-items--more{padding-left:42px!important;padding-right:12px!important}
 body.ktw-zb-live .ktw-bibliography-items strong{font-size:16px}
}

/* =========================================================
   9.4.3. Migrated article support styles
   Sources: snippets 201, 202, 203, 407.
   ========================================================= */

/* 北澤篤史のことわざ辞典｜個別記事 研究データ Observation Bridge FINAL v1.0 | original head priority 620 */
body.ktw-zb-live .ktw-observe{
   width:100%;max-width:900px;margin:36px auto 0;padding:24px;
   border:1px solid #d7dee2;border-top:4px solid #183247;border-radius:14px;
   background:#fff;color:#243b4c;box-sizing:border-box
  }
  body.ktw-zb-live .ktw-observe *{box-sizing:border-box}
  body.ktw-zb-live .ktw-observe__head>span{display:block;color:#6b4e2c;font-size:15px;font-weight:900;letter-spacing:0}
  body.ktw-zb-live .ktw-observe__head h3{margin:6px 0 8px!important;color:#173247!important;font-size:24px!important;line-height:1.5!important}
  body.ktw-zb-live .ktw-observe__head p{margin:0!important;color:#44515c!important;font-size:16px!important;line-height:1.85!important}
  body.ktw-zb-live .ktw-observe__metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:20px}
  body.ktw-zb-live .ktw-observe__metrics article{padding:18px;border:1px solid #dce3e6;border-radius:12px;background:#fff}
  body.ktw-zb-live .ktw-observe__metrics small,body.ktw-zb-live .ktw-observe__metrics strong,body.ktw-zb-live .ktw-observe__metrics p{display:block}
  body.ktw-zb-live .ktw-observe__metrics small{color:#44515c;font-size:15px;font-weight:800;line-height:1.6}
  body.ktw-zb-live .ktw-observe__metrics strong{margin-top:6px;color:#10283f;font-size:24px;line-height:1.35}
  body.ktw-zb-live .ktw-observe__metrics p{margin:7px 0 0!important;color:#44515c!important;font-size:15px!important;line-height:1.7!important}
  body.ktw-zb-live .ktw-observe__tablewrap{margin-top:20px;overflow-x:auto;border:1px solid #dce3e6;border-radius:12px;background:#fff}
  body.ktw-zb-live .ktw-observe__table{width:100%;min-width:620px;border-collapse:collapse;margin:0!important}
  body.ktw-zb-live .ktw-observe__table th,body.ktw-zb-live .ktw-observe__table td{padding:13px 15px!important;border-bottom:1px solid #e6ebed!important;text-align:left;vertical-align:top;font-size:16px!important;line-height:1.65!important}
  body.ktw-zb-live .ktw-observe__table thead th{background:#eef3f5;color:#173247!important;font-weight:900}
  body.ktw-zb-live .ktw-observe__table tbody th{color:#173247!important;font-weight:850;background:#fff}
  body.ktw-zb-live .ktw-observe__table tr:last-child>*{border-bottom:0!important}
  body.ktw-zb-live .ktw-observe__rep{display:inline-flex;align-items:center;min-height:28px;margin-left:6px;padding:4px 9px;border-radius:999px;background:#f3eadc;color:#5a421f;font-size:15px;font-weight:900}
  body.ktw-zb-live .ktw-observe__method{margin-top:18px;border-top:1px solid #d9e1e5}
  body.ktw-zb-live .ktw-observe__method summary{display:flex;align-items:center;min-height:48px;padding:12px 2px;color:#274d63;font-size:16px;font-weight:850;cursor:pointer}
  body.ktw-zb-live .ktw-observe__method>div{padding:18px;border-radius:12px;background:#fff}
  body.ktw-zb-live .ktw-observe__method p{margin:0 0 10px!important;color:#44515c!important;font-size:16px!important;line-height:1.8!important}
  body.ktw-zb-live .ktw-observe__method p:last-child{margin-bottom:0!important}
  @media(max-width:820px){body.ktw-zb-live .ktw-observe__metrics{grid-template-columns:1fr 1fr}}
  @media(max-width:560px){
   body.ktw-zb-live .ktw-observe{padding:18px 16px;margin-top:28px}
   body.ktw-zb-live .ktw-observe__metrics{grid-template-columns:1fr}
   body.ktw-zb-live .ktw-observe__head h3{font-size:21px!important}
   body.ktw-zb-live .ktw-observe__table th,body.ktw-zb-live .ktw-observe__table td{padding:12px 13px!important}
  }

/* 北澤篤史のことわざ辞典｜190 個別記事 例文3件自動表示 FINAL | original footer priority 4000100 */
body.ktw-zb-live .ktw-zb-section.is-examples{width:100%!important;max-width:100%!important;margin-left:auto!important;margin-right:auto!important}
        body.ktw-zb-live .ktw-zb-section.is-examples>h2{width:100%!important;max-width:980px!important;margin:0 auto 20px!important;padding:0 0 12px!important;border:0!important;border-bottom:1px solid #e4e8eb!important;background:none!important;color:#152a3a!important;font-size:clamp(30px,3vw,40px)!important;line-height:1.45!important;letter-spacing:-.025em!important;font-weight:750!important}
        body.ktw-zb-live .ktw-zb-section.is-examples>h2:before,body.ktw-zb-live .ktw-zb-section.is-examples>h2:after{display:none!important;content:none!important}
        body.ktw-zb-live .ktw-zb-examples{width:100%!important;max-width:900px!important;margin:0 auto!important;padding:0!important;border-top:1px solid #e8ecef!important}
        body.ktw-zb-live .ktw-zb-example{display:grid!important;grid-template-columns:46px minmax(0,1fr)!important;gap:18px!important;align-items:start!important;margin:0!important;padding:20px 0!important;border-bottom:1px solid #e8ecef!important;list-style:none!important;counter-increment:none!important}
        body.ktw-zb-live .ktw-zb-example:before,body.ktw-zb-live .ktw-zb-example:after,body.ktw-zb-example::marker{display:none!important;content:none!important}
        body.ktw-zb-live .ktw-zb-example__num{display:flex!important;align-items:center!important;justify-content:center!important;width:36px!important;height:36px!important;border-radius:50%!important;background:#f3f5f6!important;color:#65747d!important;font-size:12px!important;font-weight:800!important;line-height:1!important}
        body.ktw-zb-live .ktw-zb-example>p{margin:0!important;color:#1f3442!important;font-size:18px!important;font-weight:650!important;line-height:1.95!important}
        body.ktw-zb-live .ktw-example-proverb{color:#b84c39!important;font-weight:800!important}
        @media(max-width:620px){
            body.ktw-zb-live .ktw-zb-section.is-examples>h2{font-size:29px!important}
            body.ktw-zb-live .ktw-zb-example{grid-template-columns:36px minmax(0,1fr)!important;gap:12px!important;padding:17px 0!important}
            body.ktw-zb-live .ktw-zb-example__num{width:30px!important;height:30px!important;font-size:11px!important}
            body.ktw-zb-live .ktw-zb-example>p{font-size:17px!important;line-height:1.9!important}
        }

/* 北澤篤史のことわざ辞典｜191 個別記事 情報優先順位・ツール下段化 FINAL v1.3 | original footer priority 4000200 */
/* タイトル下の二重装飾線は不要。共通UI側と188側の両方を最終層で無効化 */
        body.ktw-zb-live .article-header:after,
        body.ktw-zb-live .entry-title:after,
        body.ktw-zb-live .post-title:after,
        body.ktw-zb-live h1.entry-title:after,
        body.ktw-zb-live h1.post-title:after{display:none!important;content:none!important;background:none!important}

        /* 個別記事は装飾より情報密度を優先。過大な余白と淡色面を整理 */
        body.ktw-zb-live .ktw-zb-section{
            padding:42px 0 46px!important;
            margin:0!important;
            background:transparent!important;
            border-top:1px solid rgba(16,40,63,.055)!important;
        }
        body.ktw-zb-live .ktw-zb-section:first-of-type{padding-top:30px!important;border-top:0!important}
        body.ktw-zb-live #ktw-zb-research{margin-top:0!important}
        body.ktw-zb-live .ktw-after{margin-top:46px!important}

        body.ktw-zb-live .ktw-zb-section>h2{padding-bottom:12px!important;margin-bottom:20px!important}
        body.ktw-zb-live .ktw-zb-section>h2:before,
        body.ktw-zb-live .ktw-zb-section>h2:after{display:none!important;content:none!important}

        /* 関連テーマはviewport基準を禁止し、本文幅の中に収める */
        body.ktw-zb-live .ktw-zb-links{
            width:100%!important;
            max-width:900px!important;
            margin:0 auto!important;
            padding:0!important;
            border:0!important;
            border-radius:0!important;
            background:transparent!important;
            box-shadow:none!important;
            box-sizing:border-box!important;
            min-width:0!important;
        }
        body.ktw-zb-live .ktw-zb-links__items{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin-top:0!important}
        body.ktw-zb-live .ktw-zb-links__items a{min-width:0!important;max-width:100%!important;transform:none!important;box-sizing:border-box!important}
        body.ktw-zb-live .ktw-zb-links__items a:hover{transform:none!important}

        body.ktw-zb-live .ktw-zb-section.is-related-proverbs,
        body.ktw-zb-live .ktw-zb-section.is-related-themes{width:100%!important;max-width:100%!important;margin-left:auto!important;margin-right:auto!important}
        body.ktw-zb-live .ktw-zb-section.is-related-proverbs>h2,
        body.ktw-zb-live .ktw-zb-section.is-related-themes>h2{width:100%!important;max-width:980px!important;margin:0 auto 20px!important;padding:0 0 12px!important;border:0!important;border-bottom:1px solid #e4e8eb!important;background:none!important;color:#152a3a!important;font-size:clamp(30px,3vw,40px)!important;line-height:1.45!important;letter-spacing:-.025em!important;font-weight:750!important}
        body.ktw-zb-live .ktw-zb-section.is-related-proverbs .ktw-after__related{margin:0!important}
        body.ktw-zb-live .ktw-zb-section.is-related-proverbs .ktw-after__section-head{display:none!important}
        body.ktw-zb-live .ktw-zb-section.is-related-proverbs .ktw-after__explore{margin-top:18px!important;padding-top:18px!important;border-top:1px solid #e8ecef!important}

        /* 後半ツールは4枚横一列にせず、読みやすい2列に固定 */
        body.ktw-zb-live .ktw-zb-toolgrid{
            width:100%!important;
            max-width:900px!important;
            margin:8px auto 0!important;
            display:grid!important;
            grid-template-columns:repeat(2,minmax(0,1fr))!important;
            gap:12px!important;
        }
        body.ktw-zb-live .ktw-zb-toolgrid a{min-width:0!important;max-width:100%!important;min-height:0!important;padding:20px!important;box-sizing:border-box!important}
        body.ktw-zb-live .ktw-zb-toolgrid span{display:block!important;margin-bottom:5px!important;color:#7a6852!important;font-size:12px!important;font-weight:800!important;letter-spacing:0!important}
        body.ktw-zb-live .ktw-zb-toolgrid strong{font-size:18px!important;line-height:1.5!important}
        body.ktw-zb-live .ktw-zb-toolgrid small{margin-top:5px!important;color:#667680!important;font-size:13px!important;line-height:1.65!important}

        @media(max-width:900px){
            body.ktw-zb-live .ktw-zb-section{padding:36px 0 40px!important}
        }
        @media(max-width:620px){
            body.ktw-zb-live .ktw-zb-section{padding:30px 0 34px!important}
            body.ktw-zb-live .ktw-zb-section:first-of-type{padding-top:22px!important}
            body.ktw-zb-live .ktw-zb-section.is-related-proverbs>h2,
            body.ktw-zb-live .ktw-zb-section.is-related-themes>h2{font-size:29px!important}
            body.ktw-zb-live .ktw-zb-links__items,
            body.ktw-zb-live .ktw-zb-toolgrid{grid-template-columns:1fr!important}
        }

/* 北澤篤史のことわざ辞典｜192 一般読者×研究者 Research Grade Evidence Layer FINAL v1.1 | original footer priority 4000250 */
body.ktw-zb-live .ktw-rg-layer{width:100%;max-width:900px;margin:34px auto 0;padding:0;box-sizing:border-box}body.ktw-zb-live .ktw-rg-layer>header{margin-bottom:18px}body.ktw-zb-live .ktw-rg-layer>header>span{display:block;color:#8c6739;font-size:15px;font-weight:850}body.ktw-zb-live .ktw-rg-layer>header h3{margin:5px 0 7px!important;padding:0!important;border:0!important;background:none!important;color:#152a3a!important;font-size:26px!important;line-height:1.5!important;font-weight:750!important}body.ktw-zb-live .ktw-rg-layer>header h3:before,body.ktw-zb-live .ktw-rg-layer>header h3:after{display:none!important;content:none!important}body.ktw-zb-live .ktw-rg-layer>header p{margin:0!important;max-width:780px;color:#64737c!important;font-size:14px!important;line-height:1.8!important}.ktw-rg-details{margin-top:14px;border:1px solid #e2e6e8;border-radius:12px;background:#fff;overflow:hidden}.ktw-rg-details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 18px;cursor:pointer;list-style:none;background:#fafbfc}.ktw-rg-details>summary::-webkit-details-marker{display:none}.ktw-rg-details>summary strong{color:#1d3444;font-size:15px}.ktw-rg-details>summary span{color:#8a7354;font-size:15px}.ktw-rg-records{padding:0 18px}.ktw-rg-record{padding:18px 0;border-top:1px solid #edf0f2}.ktw-rg-record:first-child{border-top:0}.ktw-rg-record__head span{display:block;color:#795821;font-size:14px;font-weight:850}.ktw-rg-record__head strong{display:block;margin-top:3px;color:#173247;font-size:16px;line-height:1.55}.ktw-rg-record__summary{margin:8px 0 0!important;color:#405561!important;font-size:14px!important;line-height:1.8!important}.ktw-rg-record__meta{margin:7px 0 0!important;color:#435762!important;font-size:12px!important;line-height:1.7!important}.ktw-rg-kv,.ktw-rg-text,.ktw-rg-caution,.ktw-rg-unresolved{margin-top:12px;padding:12px 14px;border-left:2px solid #c8a46f;background:#fbfaf7}.ktw-rg-kv span,.ktw-rg-text>span{display:block;color:#8c724e;font-size:10px;font-weight:800}.ktw-rg-kv strong{display:block;margin-top:4px;color:#173247;font-size:15px}.ktw-rg-text blockquote,.ktw-rg-text p,.ktw-rg-caution p,.ktw-rg-unresolved p{margin:5px 0 0!important;padding:0!important;border:0!important;color:#334b5a!important;font-size:13px!important;line-height:1.85!important}.ktw-rg-caution strong,.ktw-rg-unresolved strong{color:#79584e;font-size:11px}.ktw-rg-record__link{display:inline-block;margin-top:11px;color:#7d5a2f!important;font-size:12px;font-weight:800;text-decoration:none!important}.ktw-rg-method{padding:0 18px 16px}.ktw-rg-method>div{padding:14px 0;border-top:1px solid #edf0f2}.ktw-rg-method>div:first-child{border-top:0}.ktw-rg-method b{color:#526873;font-size:11px}.ktw-rg-method p{margin:5px 0 0!important;color:#405561!important;font-size:13px!important;line-height:1.8!important}.ktw-rg-policy{margin:13px 0 0!important;color:#435762!important;font-size:11px!important;line-height:1.7!important}

/* =========================================================
   9.4.4. Migrated article structural / modern research styles
   Sources: snippets 259 and 410.
   ========================================================= */

/* 北澤篤史のことわざ辞典｜個別記事 mainランドマーク復元 FINAL v3 */
body.single-post #main{
      display:block!important;
      visibility:visible!important;
    }

/* 北澤篤史のことわざ辞典｜個別記事 Modern Usage & Related Research FINAL v1.0 */
body.ktw-zb-live .ktw-modern-research{
   width:100%;max-width:900px;margin:32px auto 0;padding:24px;
   border:1px solid #d8dedf;border-radius:16px;background:#f8f7f3;
   box-sizing:border-box;color:#263e4d
  }
  body.ktw-zb-live .ktw-modern-research *{box-sizing:border-box}
  body.ktw-zb-live .ktw-modern-research__head>span{
   display:none!important
  }
  body.ktw-zb-live .ktw-modern-research__head h3{
   margin:5px 0 7px!important;color:#173247!important;font-size:23px!important;line-height:1.55!important
  }
  body.ktw-zb-live .ktw-modern-research__head p{
   margin:0!important;color:#4d626e!important;font-size:15px!important;line-height:1.85!important
  }
  body.ktw-zb-live .ktw-modern-research__details{margin-top:18px;border-top:1px solid #d8e0e2}
  body.ktw-zb-live .ktw-modern-research__details summary{
   display:flex;align-items:center;justify-content:space-between;gap:14px;
   min-height:54px;padding:10px 2px;color:#23465b;font-size:15px;font-weight:850;cursor:pointer
  }
  body.ktw-zb-live .ktw-modern-research__details summary span{
   flex:0 0 auto;padding:5px 10px;border-radius:999px;background:#ece8df;color:#5d4a2b;font-size:15px;font-weight:850
  }
  body.ktw-zb-live .ktw-modern-research__records{
   display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:6px
  }
  body.ktw-zb-live .ktw-modern-research__record{
   padding:18px;border:1px solid #dce3e5;border-radius:12px;background:#fff
  }
  body.ktw-zb-live .ktw-modern-research__label{
   display:inline-flex;padding:4px 9px;border-radius:999px;background:#e9f1ed;color:#315b46;font-size:15px;font-weight:900
  }
  body.ktw-zb-live .ktw-modern-research__label.is-general{background:#eef1f5;color:#3b5368}
  body.ktw-zb-live .ktw-modern-research__record h4{
   margin:10px 0 7px!important;color:#173247!important;font-size:16px!important;line-height:1.65!important
  }
  body.ktw-zb-live .ktw-modern-research__record p{
   margin:0!important;color:#485f6c!important;font-size:15px!important;line-height:1.85!important
  }
  body.ktw-zb-live .ktw-modern-research__record small{
   display:block;margin-top:10px;padding-top:9px;border-top:1px solid #e5eaec;color:#44515c;font-size:15px;line-height:1.7
  }
  body.ktw-zb-live .ktw-modern-research__policy{
   margin:14px 0 0!important;color:#44515c!important;font-size:16px!important;line-height:1.75!important
  }
  @media(max-width:700px){
   body.ktw-zb-live .ktw-modern-research{padding:20px 16px}
   body.ktw-zb-live .ktw-modern-research__records{grid-template-columns:1fr}
   body.ktw-zb-live .ktw-modern-research__details summary{align-items:flex-start;flex-direction:column}
  }

/* =========================================================
   9.4.5. Migrated article finishing styles
   Sources: snippets 211, 212, 213.
   ========================================================= */

/* 北澤篤史のことわざ辞典｜200 PDF基準・全読者層 最終表示ロック FINAL v1.1 | original footer priority 4000900 */
body.ktw-zb-live .ktw-zb-research-note{display:none!important}body.ktw-zb-live .ktw-zb-article small{font-size:16px!important;line-height:1.65!important}body.ktw-zb-live .ktw-zb-key span{font-size:17px!important;font-weight:900!important}body.ktw-zb-live .ktw-zb-key strong{font-size:19px!important;line-height:1.8!important}body.ktw-zb-live .ktw-zb-history article p,body.ktw-zb-live .ktw-zb-compare p{font-size:17px!important;line-height:1.9!important}body.ktw-zb-live .ktw-zb-history article>strong{font-size:19px!important}body.ktw-zb-live .ktw-zb-history-meta span{font-size:22px!important;font-weight:900!important}body.ktw-zb-live .ktw-zb-history-meta small{font-size:16px!important}
body.ktw-zb-live .ktw-ndl__head p,body.ktw-zb-live .ktw-ndl-result__snippet,body.ktw-zb-live .ktw-rg-record__summary,body.ktw-zb-live .ktw-rg-text p,body.ktw-zb-live .ktw-research-literature-cards article>p{font-size:17px!important;line-height:1.85!important}body.ktw-zb-live .ktw-rg-record__meta,body.ktw-zb-live .ktw-research-literature-meta,body.ktw-zb-live .ktw-bibliography-items p,body.ktw-zb-live .ktw-bibliography-items small{font-size:16px!important;line-height:1.7!important}
/* 旧198で作り込んだ「根拠資料を詳しく見る」開閉UIを保護して復元 */
body.ktw-zb-live .ktw-zb-history-evidence{
  width:min(940px,calc(100vw - 54px));
  margin:34px auto 0;
  border:0;
}
body.ktw-zb-live .ktw-zb-history-evidence>summary{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  gap:13px;
  align-items:center;
  padding:17px 20px;
  border:1px solid rgba(176,139,85,.72);
  border-radius:14px;
  background:linear-gradient(135deg,#fff 0%,#fffaf0 52%,#fff 100%);
  color:#10283f;
  font-size:17px;
  font-weight:900;
  line-height:1.55;
  cursor:pointer;
  list-style:none;
  box-shadow:0 8px 24px rgba(16,40,63,.08);
  animation:none!important;
  box-sizing:border-box;
}
body.ktw-zb-live .ktw-zb-history-evidence>summary::-webkit-details-marker{display:none}
body.ktw-zb-live .ktw-zb-history-evidence>summary::before{
  content:"+";
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:50%;
  background:#10283f;
  color:#fff;
  font-size:22px;
  font-weight:400;
  line-height:1;
  transition:transform .18s ease,background .18s ease;
}
body.ktw-zb-live .ktw-zb-history-evidence>summary::after{
  content:"クリックして開く";
  color:#415866;
  font-size:15px;
  font-weight:750;
  white-space:nowrap;
}
body.ktw-zb-live .ktw-zb-history-evidence[open]>summary::before{
  transform:rotate(45deg);
  background:#a34a3a;
}
body.ktw-zb-live .ktw-zb-source-detail>summary{
  cursor:pointer;
  font-weight:900!important;
}
@keyframes ktwFinalGlow{
  0%,100%{box-shadow:0 8px 24px rgba(16,40,63,.08)}
  50%{box-shadow:0 0 0 7px rgba(176,139,85,.10),0 10px 28px rgba(16,40,63,.10)}
}
@media(max-width:620px){
  body.ktw-zb-live .ktw-zb-history-evidence{width:calc(100vw - 28px)}
  body.ktw-zb-live .ktw-zb-history-evidence>summary{
    grid-template-columns:40px minmax(0,1fr);
    padding:15px 16px;
  }
  body.ktw-zb-live .ktw-zb-history-evidence>summary::after{
    grid-column:2;
    white-space:normal;
    margin-top:-7px;
  }
}
@media(prefers-reduced-motion:reduce){
  body.ktw-zb-live .ktw-zb-history-evidence>summary{animation:none}
}

/* 北澤篤史のことわざ辞典｜201 基準記事1136 最終仕上げ FINAL | original footer priority 4001000 */
/* 研究・参考文献まわりを本文端から離し、長い日本語見出しも安全に折り返す */
    body.postid-1136 .ktw-zb-section.is-research-literature > h2,
    body.postid-1136 .ktw-zb-section.is-ndl-research > h2{
        width:min(900px,calc(100% - 56px))!important;
        max-width:900px!important;
        margin-left:auto!important;
        margin-right:auto!important;
        box-sizing:border-box!important;
        white-space:normal!important;
        overflow-wrap:anywhere!important;
    }

    body.postid-1136 .ktw-research-subgroup,
    body.postid-1136 .ktw-research-literature-cards,
    body.postid-1136 .ktw-rg-layer,
    body.postid-1136 .ktw-bibliography-layer{
        width:min(900px,calc(100% - 56px))!important;
        max-width:900px!important;
        margin-left:auto!important;
        margin-right:auto!important;
        box-sizing:border-box!important;
        min-width:0!important;
    }

    body.postid-1136 .ktw-bibliography-layer{
        padding-left:18px!important;
        padding-right:18px!important;
    }

    body.postid-1136 .ktw-bibliography-layer > header,
    body.postid-1136 .ktw-bibliography-group,
    body.postid-1136 .ktw-citation-tools{
        min-width:0!important;
        max-width:100%!important;
        box-sizing:border-box!important;
    }

    body.postid-1136 .ktw-bibliography-layer > header h3,
    body.postid-1136 .ktw-bibliography-group h4,
    body.postid-1136 .ktw-bibliography-items strong,
    body.postid-1136 .ktw-research-subgroup > h3,
    body.postid-1136 .ktw-research-literature-cards article > strong{
        max-width:100%!important;
        white-space:normal!important;
        overflow-wrap:anywhere!important;
        word-break:normal!important;
    }

    body.postid-1136 .ktw-research-literature-cards article{
        padding:22px 26px!important;
        box-sizing:border-box!important;
        min-width:0!important;
    }

    body.postid-1136 .ktw-bibliography-items{
        padding-left:26px!important;
        padding-right:6px!important;
        box-sizing:border-box!important;
    }

    body.postid-1136 .ktw-bibliography-items li{
        padding-top:14px!important;
        padding-right:10px!important;
        padding-bottom:16px!important;
        padding-left:7px!important;
        box-sizing:border-box!important;
        min-width:0!important;
    }

    body.postid-1136 .ktw-citation-entry,
    body.postid-1136 .ktw-citation-references{
        padding:20px 22px!important;
        box-sizing:border-box!important;
        min-width:0!important;
    }

    body.postid-1136 .ktw-bibliography-layer a,
    body.postid-1136 .ktw-bibliography-layer p,
    body.postid-1136 .ktw-bibliography-layer small,
    body.postid-1136 .ktw-research-literature-cards article p,
    body.postid-1136 .ktw-research-literature-links a{
        max-width:100%!important;
        overflow-wrap:anywhere!important;
        word-break:normal!important;
    }

    /* 1833年カードの二系統の再現リンク */
    body.postid-1136 .ktw-evidence-1833-ninjal .ktw-zb-history-links{
        display:flex!important;
        flex-wrap:wrap!important;
        gap:10px!important;
        margin-top:14px!important;
    }

    /* Lighthouseのコントラスト残り1点対策：補助文字だけを一段濃くする */
    body.postid-1136 .ktw-bibliography-layer > header > span,
    body.postid-1136 .ktw-bibliography-layer > header p,
    body.postid-1136 .ktw-bibliography-items p,
    body.postid-1136 .ktw-bibliography-items small,
    body.postid-1136 .ktw-citation-tools p,
    body.postid-1136 .ktw-citation-status,
    body.postid-1136 .ktw-after__sources-intro,
    body.postid-1136 .ktw-after__source-list p,
    body.postid-1136 .ktw-after__checked,
    body.postid-1136 .ktw-after__disclosure,
    body.postid-1136 .ktw-research-literature-meta,
    body.postid-1136 .ktw-rg-record__meta{
        color:#40515c!important;
    }

    /* 小さい補助ラベルもWCAG AAを狙って濃度を確保 */
    body.postid-1136 .ktw-workspace-feature > span,
    body.postid-1136 .ktw-research-type,
    body.postid-1136 .ktw-research-sublead,
    body.postid-1136 .ktw-zb-history-form,
    body.postid-1136 .ktw-zb-history-link,
    body.postid-1136 .ktw-zb-source-detail > summary,
    body.postid-1136 .ktw-zb-source-detail__body b,
    body.postid-1136 .ktw-after__primary-source{
        color:#4b3a24!important;
    }
    body.postid-1136 .ktw-after__primary-source{
        background:#eee3d0!important;
    }

    /* 主要根拠ブロックは「全参考文献」と見た目でも役割を分ける */
    body.postid-1136 .ktw-after__sources--key-evidence .ktw-after__sources-intro{
        margin:0!important;
        padding:20px 24px 4px!important;
        color:#425762!important;
        font-size:16px!important;
        line-height:1.85!important;
    }

    body.postid-1136 .ktw-after__sources--key-evidence .ktw-after__sources-intro a{
        color:#8f3428!important;
        font-weight:850!important;
    }

    body.postid-1136 .ktw-after__sources--key-evidence .ktw-after__source-list li{
        padding-top:17px!important;
        padding-bottom:17px!important;
    }

    body.postid-1136 .ktw-after__sources--key-evidence .ktw-after__evidence-label{
        color:#10283f!important;
        font-weight:900!important;
    }

    @media (max-width:620px){
        body.postid-1136 .ktw-zb-section.is-research-literature > h2,
        body.postid-1136 .ktw-zb-section.is-ndl-research > h2,
        body.postid-1136 .ktw-research-subgroup,
        body.postid-1136 .ktw-research-literature-cards,
        body.postid-1136 .ktw-rg-layer,
        body.postid-1136 .ktw-bibliography-layer{
            width:calc(100% - 36px)!important;
        }

        body.postid-1136 .ktw-bibliography-layer{
            padding-left:14px!important;
            padding-right:14px!important;
        }

        body.postid-1136 .ktw-research-literature-cards article{
            padding:19px 20px!important;
        }

        body.postid-1136 .ktw-bibliography-items{
            padding-left:22px!important;
            padding-right:2px!important;
        }

        body.postid-1136 .ktw-citation-entry,
        body.postid-1136 .ktw-citation-references{
            padding:18px!important;
        }

        body.postid-1136 .ktw-after__sources--key-evidence .ktw-after__sources-intro{
            padding:17px 18px 2px!important;
            font-size:15px!important;
        }
    }

/* 北澤篤史のことわざ辞典｜202 公開済み個別記事 基準記事横展開 FINAL | original footer priority 4001100 */
body.ktw-zb-live .ktw-bibliography-layer,
body.ktw-zb-live .ktw-research-subgroup,
body.ktw-zb-live .ktw-research-literature-cards{width:min(900px,calc(100% - 56px))!important;max-width:900px!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box!important;min-width:0!important}
body.ktw-zb-live .ktw-bibliography-layer{padding-left:18px!important;padding-right:18px!important}
body.ktw-zb-live .ktw-research-literature-cards article{padding:22px 26px!important;box-sizing:border-box!important;min-width:0!important}
body.ktw-zb-live .ktw-bibliography-layer h3,body.ktw-zb-live .ktw-bibliography-layer h4,body.ktw-zb-live .ktw-bibliography-layer strong,body.ktw-zb-live .ktw-research-literature-cards strong{overflow-wrap:anywhere!important;word-break:normal!important}
body.ktw-zb-live .ktw-bibliography-layer>header>span,
body.ktw-zb-live .ktw-bibliography-layer>header p,
body.ktw-zb-live .ktw-bibliography-items p,
body.ktw-zb-live .ktw-bibliography-items small,
body.ktw-zb-live .ktw-citation-tools p,
body.ktw-zb-live .ktw-citation-status,
body.ktw-zb-live .ktw-after__sources-intro,
body.ktw-zb-live .ktw-after__source-list p,
body.ktw-zb-live .ktw-research-literature-meta,
body.ktw-zb-live .ktw-research-sublead{color:#40515c!important}
body.ktw-zb-live .ktw-after__primary-source{color:#4b3a24!important;background:#eee3d0!important}
@media(max-width:620px){
body.ktw-zb-live .ktw-bibliography-layer,
body.ktw-zb-live .ktw-research-subgroup,
body.ktw-zb-live .ktw-research-literature-cards{width:calc(100% - 36px)!important}
body.ktw-zb-live .ktw-bibliography-layer{padding-left:14px!important;padding-right:14px!important}
body.ktw-zb-live .ktw-research-literature-cards article{padding:19px 20px!important}
}

/* =========================================================
   9.4.6. Migrated final article/research feature styles
   Sources: snippets 88, 111, 205, 208, 264, 403.
   Functional PHP / REST / JS stays in the snippets.
   ========================================================= */

/* 北澤篤史のことわざ辞典｜78 研究引用ツール・RIS/BibTeX/CSL-JSON・来歴出力 FINAL v2.1 | style 1 */
.ktw-citation-tools{display:grid;grid-template-columns:1fr 1.45fr;gap:16px;margin-top:28px;padding:18px;border:1px solid #d7e0e5;border-radius:14px;background:#fff}
.ktw-citation-entry,.ktw-citation-references{padding:16px;border:1px solid #e4e8ea;border-radius:11px;background:#fbfcfc}
.ktw-citation-tools strong{display:block;color:#10283f;font-size:18px;line-height:1.5}
.ktw-citation-tools p{margin:5px 0 12px!important;color:#60727b!important;font-size:15px!important;line-height:1.7!important}
.ktw-citation-actions{display:flex;flex-wrap:wrap;gap:8px}
.ktw-citation-tools button{min-height:40px;padding:0 12px;border:1px solid #cfd9df;border-radius:9px;background:#fff;color:#18344a;font-size:15px;font-weight:800;cursor:pointer}
.ktw-citation-entry button{border-color:#b99760;background:#f9f4ea}
.ktw-citation-tools button:hover{background:#10283f;color:#fff;border-color:#10283f}
.ktw-citation-status{grid-column:1/-1;color:#64757e;font-size:15px;line-height:1.6}
@media(max-width:760px){.ktw-citation-tools{grid-template-columns:1fr}.ktw-citation-actions button{flex:1 1 46%}}

/* 北澤篤史のことわざ辞典｜101 色しるべ連携・カラー参照Relation FINAL v3.2 | style 1 */
.ktwc{margin:34px 0;padding:22px;border:1px solid #ddd7cc;border-radius:18px;background:#fffdf9}.ktwc header>span{color:#a94a38;font-size:15px;font-weight:900;letter-spacing:.1em}.ktwc header h2{margin:5px 0 8px!important;padding:0!important;border:0!important;background:none!important;color:#10283f!important;font-size:clamp(25px,3vw,34px)!important}.ktwc header p{margin:0!important;color:#526872!important;font-size:15px!important;line-height:1.8!important}.ktwc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}.ktwc-grid article{display:grid;grid-template-columns:88px 1fr;gap:14px;padding:17px;border:1px solid #e4e0d8;border-radius:14px;background:#fff}.ktwc-swatch{width:88px;height:88px;border-radius:13px;border:1px solid rgba(0,0,0,.1)}.ktwc-grid span{color:#8a6645;font-size:15px;font-weight:900}.ktwc-grid h3{margin:3px 0 0!important;padding:0!important;border:0!important;background:none!important;color:#10283f!important;font-size:21px!important}.ktwc-grid p{margin:7px 0 0!important;color:#526872!important;font-size:15px!important;line-height:1.75!important}.ktwc-grid a{display:block;margin-top:10px;color:#9b483a!important;font-size:15px;font-weight:900;text-decoration:none!important}.ktwc-grid small{display:block;margin-top:5px;color:#74838b;font-size:15px}@media(max-width:650px){.ktwc{padding:18px 15px}.ktwc-grid{grid-template-columns:1fr}.ktwc-grid article{grid-template-columns:74px 1fr;padding:15px}.ktwc-swatch{width:74px;height:74px}.ktwc-grid h3{font-size:20px!important}.ktwc-grid p{font-size:15px!important}.ktwc-grid a{font-size:15px!important}}

/* 北澤篤史のことわざ辞典｜101 色しるべ連携・カラー参照Relation FINAL v3.2 | style 2 */
.ktwca{width:min(1540px,calc(100vw - 38px));margin:24px auto 80px;color:#243746}.ktwca *{box-sizing:border-box}.ktwca-hero{padding:42px;border:1px solid #d9d4ca;border-radius:24px;background:#fbfaf7}.ktwca-hero>span{color:#8b5143;font-size:15px;font-weight:900;letter-spacing:.12em}.ktwca-hero h1{margin:7px 0 10px!important;padding:0!important;border:0!important;background:none!important;color:#10283f!important;font-size:clamp(36px,5vw,62px)!important}.ktwca-hero p{max-width:1050px;margin:0!important;color:#425867!important;font-size:17px!important;line-height:1.85!important}.ktwca-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.ktwca-links a{padding:11px 15px;border-radius:10px;background:#10283f;color:#fff!important;text-decoration:none!important;font-weight:900}.ktwca-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}.ktwca-metrics>div{padding:17px;border:1px solid #ddd7cc;border-radius:14px;background:#fff}.ktwca-metrics b{display:block;color:#10283f;font-size:30px}.ktwca-metrics span{display:block;margin-top:4px;color:#63747d;font-size:15px}.ktwca-controls{display:grid;grid-template-columns:1.5fr .75fr .65fr;gap:12px;margin-top:18px;padding:18px;border:1px solid #ddd7cc;border-radius:16px;background:#fff}.ktwca-controls label{display:grid;gap:6px;color:#455c69;font-size:15px;font-weight:900}.ktwca-controls input,.ktwca-controls select{min-height:48px;padding:0 12px;border:1px solid #ccd4d8;border-radius:10px;background:#fff;font-size:15px}.ktwca-count{margin:14px 0 9px;color:#5d6d76;font-size:15px;font-weight:800}.ktwca-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ktwca-row{display:grid;grid-template-columns:74px 1fr;gap:14px;padding:18px;border:1px solid #ddd7cc;border-radius:15px;background:#fff}.ktwca-row[hidden]{display:none!important}.ktwca-swatch{width:74px;height:74px;border:1px solid rgba(0,0,0,.1);border-radius:14px}.ktwca-badges{display:flex;flex-wrap:wrap;gap:6px}.ktwca-badges span{padding:4px 7px;border-radius:999px;background:#f1eee8;color:#6a5847;font-size:15px;font-weight:900}.ktwca-row h3{margin:7px 0 0!important;padding:0!important;border:0!important;background:none!important;color:#10283f!important;font-size:21px!important}.ktwca-row h3 a{color:inherit!important;text-decoration:none!important}.ktwca-color{margin-top:4px;color:#8b5143;font-size:15px;font-weight:900}.ktwca-row p{margin:8px 0 0!important;color:#536872!important;font-size:15px!important;line-height:1.7!important}.ktwca-meta{margin-top:9px;color:#78858b;font-size:15px}.ktwca-source{display:inline-block;margin-top:9px;color:#9b483a!important;font-size:15px;font-weight:900;text-decoration:none!important}.ktwca-method{margin-top:26px;padding:22px;border:1px solid #ddd7cc;border-radius:16px;background:#fffdf8}.ktwca-method h2{margin:0 0 8px!important;padding:0!important;border:0!important;background:none!important;color:#10283f!important;font-size:25px!important}.ktwca-method p{margin:0!important;color:#526872!important;font-size:15px!important;line-height:1.8!important}@media(max-width:900px){.ktwca-controls{grid-template-columns:1fr}.ktwca-metrics{grid-template-columns:repeat(2,1fr)}.ktwca-list{grid-template-columns:1fr}}@media(max-width:560px){.ktwca{width:calc(100vw - 24px)}.ktwca-hero{padding:25px 18px}.ktwca-row{grid-template-columns:64px 1fr;padding:15px}.ktwca-swatch{width:64px;height:64px}}

/* 北澤篤史のことわざ辞典｜194 NDL全文・資料内検索・Ngram研究ブリッジ FINAL v1.4 | style 1 */
body.ktw-zb-live .ktw-zb-section.is-ndl-research{width:100%!important;max-width:100%!important}
        body.ktw-zb-live .ktw-zb-section.is-ndl-research>h2{width:100%!important;max-width:980px!important;margin:0 auto 20px!important;padding:0 0 12px!important;border:0!important;border-bottom:1px solid #e4e8eb!important;background:none!important;color:#152a3a!important;font-size:clamp(30px,3vw,40px)!important;line-height:1.45!important;font-weight:750!important}
        body.ktw-zb-live .ktw-zb-section.is-ndl-research>h2:before,body.ktw-zb-live .ktw-zb-section.is-ndl-research>h2:after{display:none!important;content:none!important}
        .ktw-ndl{width:100%;max-width:900px;margin:0 auto;padding:0;box-sizing:border-box}.ktw-ndl__head{padding:0 0 18px}.ktw-ndl__head>span{display:block;color:#795821;font-size:15px;font-weight:850;letter-spacing:.08em}.ktw-ndl__head h3{margin:5px 0 6px!important;padding:0!important;border:0!important;background:none!important;color:#173247!important;font-size:22px!important;line-height:1.55!important;font-weight:750!important}.ktw-ndl__head h3:before,.ktw-ndl__head h3:after{display:none!important;content:none!important}.ktw-ndl__head p{margin:0!important;color:#667680!important;font-size:16px!important;line-height:1.8!important}.ktw-ndl__controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;padding:17px;border:1px solid #e1e5e7;border-radius:12px;background:#fafbfb}.ktw-ndl__field span{display:block;margin-bottom:6px;color:#536975;font-size:15px;font-weight:800}.ktw-ndl__field select{width:100%;min-height:44px;padding:0 38px 0 12px;border:1px solid #ccd5da;border-radius:9px;background:#fff;color:#183247;font-size:15px}.ktw-ndl__classic{display:flex;align-items:center;gap:7px;min-height:44px;color:#526873;font-size:15px;font-weight:700;white-space:nowrap}.ktw-ndl__actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:11px}.ktw-ndl__actions button,.ktw-ndl__actions a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 13px;border:1px solid #d6dde1;border-radius:9px;background:#fff;color:#254254!important;font-size:15px;font-weight:800;line-height:1.45;text-decoration:none!important;cursor:pointer}.ktw-ndl__actions button.is-primary{border-color:#173247;background:#173247;color:#fff!important}.ktw-ndl__actions a.is-subtle{border-style:dashed}.ktw-ndl__results{margin-top:16px}.ktw-ndl__status{padding:14px 0;color:#435762;font-size:15px}.ktw-ndl__summary{display:flex;align-items:baseline;gap:8px;margin:0 0 8px;color:#435762;font-size:15px}.ktw-ndl__summary strong{color:#173247;font-size:17px}.ktw-ndl-result{display:grid;grid-template-columns:62px minmax(0,1fr);gap:14px;padding:16px 0;border-top:1px solid #e6eaec}.ktw-ndl-result__year{font-family:Georgia,serif;color:#795821;font-size:17px;font-weight:700}.ktw-ndl-result strong{display:block;color:#173247;font-size:15px;line-height:1.55}.ktw-ndl-result__meta{margin:4px 0 0!important;color:#435762!important;font-size:15px!important;line-height:1.65!important}.ktw-ndl-result__snippet{margin:8px 0 0!important;color:#3f5664!important;font-size:15px!important;line-height:1.78!important}.ktw-ndl-result__links{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}.ktw-ndl-result__links a{color:#7c5a2f!important;font-size:15px;font-weight:800;text-decoration:none!important}.ktw-ndl__note{margin:14px 0 0!important;padding-top:12px;border-top:1px solid #edf0f2;color:#435762!important;font-size:15px!important;line-height:1.75!important}@media(max-width:700px){
 .ktw-ndl{width:calc(100vw - 28px);max-width:none}
 .ktw-ndl__controls{grid-template-columns:1fr;padding:15px}
 .ktw-ndl-result{grid-template-columns:48px minmax(0,1fr);gap:11px;padding:14px 0}
 .ktw-ndl__actions{display:grid;grid-template-columns:1fr;gap:9px}
 .ktw-ndl__actions button,.ktw-ndl__actions a{width:100%;min-height:48px}
 .ktw-ndl__head p,.ktw-ndl__note{font-size:15px!important}
}

/* 北澤篤史のことわざ辞典｜197 基準記事 最終構成・研究資料統合 FINAL v1.1 | style 1 */
body.ktw-zb-live .ktw-zb-intro-v2{max-width:1420px!important;margin-bottom:28px!important}
    body.ktw-zb-live .ktw-zb-dictionary{gap:14px!important}
    body.ktw-zb-live .ktw-zb-dict-block{border:0!important;border-left:4px solid #bd985d!important;border-radius:0!important;background:#fafafa!important;padding:24px 28px!important}
    body.ktw-zb-live .ktw-zb-dict-block.is-reading{display:block!important}
    body.ktw-zb-live .ktw-zb-dict-label{color:#8e6d3d!important;font-size:15px!important;font-weight:850!important}
    body.ktw-zb-live .ktw-zb-dict-block.is-origin .ktw-zb-dict-label{background:#efe2cc!important;border:1px solid #c9b186!important;color:#3f321f!important;-webkit-text-fill-color:#3f321f!important}
    body.ktw-zb-live .ktw-zb-dict-reading{margin-top:7px!important;font-size:26px!important}
    body.ktw-zb-live .ktw-zb-dict-main{margin-top:8px!important;font-size:21px!important;line-height:1.75!important}
    body.ktw-zb-live .ktw-zb-dict-detail{margin-top:10px!important;font-size:17px!important;line-height:1.85!important}
    body.ktw-zb-live .ktw-zb-origin-status{display:none!important}
    body.ktw-zb-live .ktw-zb-attestation{margin:18px 0 0!important;padding:18px 0 0!important;border-top:1px solid #e0e4e6!important;border-left:0!important;background:transparent!important}
    body.ktw-zb-live .ktw-zb-attestation span{color:#8e6d3d!important;font-size:15px!important}
    body.ktw-zb-live .ktw-zb-attestation strong{font-size:21px!important}
    body.ktw-zb-live .ktw-research-quality{display:none!important}
    body.ktw-zb-live .ktw-zb-section.is-examples{padding-top:24px!important}
    body.ktw-zb-live .ktw-zb-example__num{background:#c9a45d!important;border-color:#b78c43!important;color:#10283f!important}
    body.ktw-zb-live .ktw-ndl__head>span{display:none!important}
    body.ktw-zb-live .ktw-research-subgroup>h3{padding-left:0!important;list-style:none!important}
    body.ktw-zb-live .ktw-research-subgroup>h3:before,body.ktw-zb-live .ktw-research-subgroup>h3:after{display:none!important;content:none!important}
    body.ktw-zb-live .ktw-research-type{display:inline-flex;align-items:center;min-height:26px;margin-bottom:8px;padding:3px 9px;border:1px solid #d6c19d;border-radius:999px;background:#fbf6ed;color:#7b5b2f;font-size:15px;font-weight:850;letter-spacing:.02em}
    body.ktw-zb-live .ktw-ndl-term-switch{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px;padding:0}
    body.ktw-zb-live .ktw-ndl-term-switch__label{width:100%;color:#61727b;font-size:15px;font-weight:800}
    body.ktw-zb-live .ktw-ndl-term-chip{appearance:none;min-height:36px;padding:6px 11px;border:1px solid #d2dadd;border-radius:999px;background:#fff;color:#324d5e;font-size:15px;font-weight:800;line-height:1.35;cursor:pointer;transition:.16s ease}
    body.ktw-zb-live .ktw-ndl-term-chip:hover{border-color:#b99a66;background:#fbf7ef}
    body.ktw-zb-live .ktw-ndl-term-chip.is-active{border-color:#ad8648;background:#c7a35f;color:#10283f;box-shadow:0 3px 8px rgba(126,91,39,.12)}
    body.ktw-zb-live .ktw-ndl-locate{appearance:none;padding:0;border:0;background:none;color:#7c5a2f;font-size:15px;font-weight:800;cursor:pointer}
    body.ktw-zb-live .ktw-ndl-locate-result{margin-top:7px;padding:8px 10px;border-left:2px solid #c8a46f;background:#fbfaf7;color:#526873;font-size:15px;line-height:1.65}
    body.ktw-zb-live .ktw-ndl-locate-result a{color:#7c5a2f!important;font-weight:800;text-decoration:none!important}

    /* 独自Research Workspaceだけを明確に別格デザインへ */
    body.ktw-zb-live .ktw-zb-section.is-site-tools>h2:before,body.ktw-zb-live .ktw-zb-section.is-site-tools>h2:after,body.ktw-zb-live .ktw-workspace-feature h3:before,body.ktw-zb-live .ktw-workspace-feature h3:after{display:none!important;content:none!important}
    body.ktw-zb-live .ktw-workspace-feature{position:relative;overflow:hidden;border:1px solid rgba(212,177,103,.62)!important;border-left:5px solid #d0aa5d!important;background:linear-gradient(135deg,#0c1e30 0%,#102b43 55%,#17364d 100%)!important;box-shadow:0 18px 44px rgba(10,30,48,.18),inset 0 1px 0 rgba(255,255,255,.08)!important}
    body.ktw-zb-live .ktw-workspace-feature:before{content:''!important;display:block!important;position:absolute;right:-90px;top:-120px;width:300px;height:300px;border-radius:50%;background:radial-gradient(circle,rgba(211,173,94,.17) 0%,rgba(211,173,94,0) 68%);pointer-events:none}
    body.ktw-zb-live .ktw-workspace-feature:after{content:''!important;display:block!important;position:absolute;left:0;right:0;top:0;height:1px;background:linear-gradient(90deg,rgba(208,170,93,0),rgba(241,214,154,.78),rgba(208,170,93,0));pointer-events:none}
    body.ktw-zb-live .ktw-workspace-feature>span{position:relative;z-index:1;display:inline-flex!important;align-items:center!important;padding:6px 11px!important;border:1px solid rgba(225,192,126,.42)!important;border-radius:999px!important;background:rgba(255,255,255,.05)!important;color:#e5c98f!important;font-size:15px!important;letter-spacing:.08em!important}
    body.ktw-zb-live .ktw-workspace-feature h3{position:relative;z-index:1;color:#fff!important;font-family:Georgia,'Times New Roman',serif!important;font-size:clamp(30px,3vw,44px)!important;letter-spacing:.01em!important;text-shadow:0 1px 0 rgba(0,0,0,.18)!important}
    body.ktw-zb-live .ktw-workspace-feature p{position:relative;z-index:1;color:#d7e0e6!important;font-size:16px!important;line-height:1.9!important}
    body.ktw-zb-live .ktw-workspace-feature ul{position:relative;z-index:1}
    body.ktw-zb-live .ktw-workspace-feature li{color:#edf2f5!important}
    body.ktw-zb-live .ktw-workspace-feature li::marker{color:#d2aa60!important}
    body.ktw-zb-live .ktw-workspace-feature>a{position:relative;z-index:1;border:1px solid #e2c37e!important;background:linear-gradient(135deg,#d2aa60,#f0d69a)!important;color:#0e2639!important;box-shadow:0 8px 20px rgba(0,0,0,.16)!important}
    body.ktw-zb-live .ktw-workspace-feature>a:hover{transform:translateY(-1px);filter:brightness(1.035)}

/* 北澤篤史のことわざ辞典｜個別記事 文脈型ツール統合・描画最適化 FINAL v1.3.0 | style 1 */
/* 長大記事の下層は画面に近づくまで描画を保留。DOM・SEO・アクセシビリティ内容は維持。 */
        body.ktw-zb-live .ktw-zb-section.is-variants,
        body.ktw-zb-live .ktw-zb-section.is-research-question,
        body.ktw-zb-live .ktw-zb-section.is-contrast{
            content-visibility:auto;
            contain-intrinsic-size:auto 700px;
        }

        .ktw-current-proverb-tools{width:min(920px,calc(100vw - 48px));margin:72px auto 0;padding:32px 0 0;border-top:1px solid #e4ddd4;box-sizing:border-box}.ktw-current-proverb-tools__head{max-width:780px;margin-bottom:20px}.ktw-current-proverb-tools__head>span{display:inline-flex;min-height:30px;align-items:center;padding:4px 9px;border-radius:999px;background:#e9f3ef;color:#41675d;font-size:15px;font-weight:900}.ktw-current-proverb-tools__head>strong{display:block;margin-top:9px;color:#203746;font-family:"Hiragino Mincho ProN","Yu Mincho",YuMincho,"Noto Serif JP",serif;font-size:28px;line-height:1.45}.ktw-current-proverb-tools__head>p{margin:8px 0 0;color:#5f6f79;font-size:16px;line-height:1.8}.ktw-current-proverb-tools__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.ktw-current-proverb-tools__grid a{display:flex;min-height:112px;flex-direction:column;justify-content:center;padding:18px;border:0;border-radius:16px;text-decoration:none!important;box-shadow:none}.ktw-current-proverb-tools__grid a.is-mint{background:#eef7f4}.ktw-current-proverb-tools__grid a.is-gold{background:#fbf5e8}.ktw-current-proverb-tools__grid a.is-blue{background:#eef3f8}.ktw-current-proverb-tools__grid strong{color:#203746;font-size:17px;line-height:1.45}.ktw-current-proverb-tools__grid span{margin-top:6px;color:#546671;font-size:15px;line-height:1.65}@media(max-width:800px){.ktw-current-proverb-tools__grid{grid-template-columns:1fr}.ktw-current-proverb-tools{width:calc(100vw - 30px);margin-top:56px}}
        .ktw-read-after-tool{width:min(920px,calc(100vw - 48px));margin:64px auto 0;padding-top:28px;border-top:1px solid #e4ddd4;box-sizing:border-box}.ktw-read-after-tool__head{margin-bottom:18px}.ktw-read-after-tool__head>span{display:inline-flex;min-height:30px;align-items:center;padding:4px 9px;border-radius:999px;background:#f2e7d8;color:#745244;font-size:15px;font-weight:900}.ktw-read-after-tool__head>strong{display:block;margin-top:8px;color:#203746;font-family:"Hiragino Mincho ProN","Yu Mincho",YuMincho,"Noto Serif JP",serif;font-size:26px;line-height:1.45}@media(max-width:700px){.ktw-read-after-tool{width:calc(100vw - 30px);margin-top:50px}}
        .ktw-inline-compare{
            width:100%;
            max-width:900px;
            margin:26px auto 6px;
            padding:22px;
            border:1px solid #d8dee2;
            border-left:4px solid #b38a4d;
            border-radius:14px;
            background:#fbfaf7;
            box-sizing:border-box;
            color:#183247;
        }
        .ktw-inline-compare *{box-sizing:border-box}
        .ktw-inline-compare__head>span{
            display:inline-flex;
            margin-bottom:6px;
            color:#7b5a2c;
            font-size:15px;
            font-weight:850;
            letter-spacing:.04em;
        }
        .ktw-inline-compare__head>strong{
            display:block;
            color:#173247;
            font-size:21px;
            line-height:1.55;
        }
        .ktw-inline-compare__head>p{
            margin:7px 0 0!important;
            color:#596d79;
            font-size:16px!important;
            line-height:1.85!important;
        }
        .ktw-inline-compare__current{
            margin-top:16px;
            padding:14px 16px;
            border:1px solid #e0d5c3;
            border-radius:10px;
            background:#fff;
        }
        .ktw-inline-compare__current small{
            display:block;
            color:#82633b;
            font-size:15px;
            font-weight:800;
        }
        .ktw-inline-compare__current strong{
            display:block;
            margin-top:2px;
            color:#142d40;
            font-size:19px;
        }
        .ktw-inline-compare__current span{
            display:block;
            margin-top:2px;
            color:#647681;
            font-size:15px;
        }
        .ktw-inline-compare__field{
            display:block;
            position:relative;
            margin-top:16px;
        }
        .ktw-inline-compare__field>span{
            display:block;
            margin-bottom:7px;
            color:#304b5d;
            font-size:15px;
            font-weight:800;
        }
        .ktw-inline-compare__field input{
            width:100%;
            min-height:48px;
            padding:10px 13px!important;
            border:1px solid #cbd4d9!important;
            border-radius:9px!important;
            background:#fff!important;
            color:#173247!important;
            font-size:16px!important;
            box-shadow:none!important;
        }
        .ktw-inline-compare__suggestions{
            margin-top:7px;
            overflow:hidden;
            border:1px solid #d9e0e4;
            border-radius:10px;
            background:#fff;
        }
        .ktw-inline-compare__suggestions button{
            display:block;
            width:100%;
            min-height:48px;
            padding:10px 13px;
            border:0;
            border-bottom:1px solid #edf0f2;
            background:#fff;
            color:#173247;
            text-align:left;
            cursor:pointer;
        }
        .ktw-inline-compare__suggestions button:last-child{border-bottom:0}
        .ktw-inline-compare__suggestions button:hover,
        .ktw-inline-compare__suggestions button:focus-visible{background:#f7f3ea}
        .ktw-inline-compare__suggestions strong{display:block;font-size:16px}
        .ktw-inline-compare__suggestions small{display:block;margin-top:1px;color:#687985;font-size:15px}
        .ktw-inline-compare__run{
            display:inline-flex;
            align-items:center;
            justify-content:center;
            min-height:48px;
            margin-top:12px;
            padding:9px 18px;
            border:1px solid #173247;
            border-radius:9px;
            background:#173247;
            color:#fff;
            font-size:15px;
            font-weight:850;
            cursor:pointer;
        }
        .ktw-inline-compare__run:disabled{opacity:.4;cursor:default}
        .ktw-inline-compare__status{
            margin-top:8px;
            color:#657782;
            font-size:15px;
        }
        .ktw-inline-compare__output{margin-top:14px}
        .ktw-inline-compare__pair{
            display:grid;
            grid-template-columns:1fr 1fr;
            gap:12px;
        }
        .ktw-inline-compare__card{
            padding:16px;
            border:1px solid #dce2e5;
            border-radius:11px;
            background:#fff;
        }
        .ktw-inline-compare__card>strong{
            display:block;
            color:#173247;
            font-size:18px;
            line-height:1.5;
        }
        .ktw-inline-compare__card>p{
            margin:7px 0 0!important;
            color:#425b69;
            font-size:16px!important;
            line-height:1.8!important;
        }
        .ktw-inline-compare__facts{
            margin-top:12px;
            padding:15px 16px;
            border:1px solid #e0e5e8;
            border-radius:11px;
            background:#fff;
        }
        .ktw-inline-compare__facts strong{
            display:block;
            margin-bottom:8px;
            color:#173247;
            font-size:17px;
        }
        .ktw-inline-compare__facts p{
            margin:5px 0!important;
            color:#4c626f;
            font-size:15px!important;
            line-height:1.75!important;
        }
        @media(max-width:700px){
            .ktw-inline-compare{padding:18px 16px;margin-top:22px}
            .ktw-inline-compare__head>strong{font-size:19px}
            .ktw-inline-compare__head>p{font-size:16px!important}
            .ktw-inline-compare__pair{grid-template-columns:1fr}
        }

/* 北澤篤史のことわざ辞典｜NDL→文脈→Evidence候補 研究パイプライン FINAL v1.0 | style 1 */
.ktw-evidence-bridge{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:18px 0 28px;padding:18px;border:1px solid #d8d1c7;border-radius:14px;background:#fffdf8}
    .ktw-evidence-bridge span{display:block;color:#7a5427;font-size:15px;font-weight:900;letter-spacing:.12em}.ktw-evidence-bridge h2{margin:4px 0 5px!important;color:#10283f!important;font-size:21px!important}.ktw-evidence-bridge p{margin:0!important;color:#566b75!important;font-size:15px!important;line-height:1.7!important}
    .ktw-evidence-bridge button{flex:0 0 auto;min-height:46px;padding:0 16px;border:0;border-radius:10px;background:#10283f;color:#fff;font-weight:900;cursor:pointer}.ktw-evidence-bridge button:disabled{opacity:.45;cursor:not-allowed}
    .ktw-evidence-bridge__status{margin-top:7px!important;font-weight:800!important}.ktw-evidence-bridge__status.is-ok{color:#24713d!important}.ktw-evidence-bridge__status.is-error{color:#983d30!important}
    .ktw-ndl-context-link{display:inline-flex!important;align-items:center;min-height:32px;padding:0 9px!important;border:1px solid #b99b72;border-radius:7px;color:#6d4b22!important;font-size:15px!important;font-weight:900!important;text-decoration:none!important}
    @media(max-width:760px){.ktw-evidence-bridge{display:block}.ktw-evidence-bridge button{width:100%;margin-top:12px}}

/* =========================================================
   9.4.7. Homepage / compare page base styles
   Migrated from snippets 58 and 61.
   ========================================================= */

/* 北澤篤史のことわざ辞典｜48 TOP KNOWLEDGE PORTAL DESIGN FINAL vNext.1 */
body.ktw-home-knowledge-v12{--hk-ink:#10283f;--hk-red:#a94a38;--hk-gold:#b48b4c;--hk-line:#ddd0bc}
        .ktw-home-knowledge-gateway{width:min(1360px,calc(100vw - 96px));margin:34px auto 52px;padding:32px;border:1px solid var(--hk-line);border-radius:18px;background:#fff;box-shadow:0 12px 30px rgba(28,40,50,.04)}
        .ktw-home-knowledge-gateway__head{max-width:900px;margin-bottom:24px}
        .ktw-home-knowledge-gateway__head h2{margin:0 0 8px!important;padding:0!important;border:0!important;background:none!important;color:var(--hk-ink)!important;font-family:"Hiragino Mincho ProN","Yu Mincho",serif!important;line-height:1.45!important}
        .ktw-home-knowledge-gateway__head h2:before,.ktw-home-knowledge-gateway__head h2:after{display:none!important;content:none!important}
        .ktw-home-knowledge-gateway__head p{margin:0!important;color:#596972!important}
        .ktw-home-knowledge-gateway__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
        .ktw-home-knowledge-gateway__grid>a,.ktw-home-knowledge-gateway__grid>div{position:relative;display:grid;grid-template-columns:52px minmax(0,1fr);gap:14px;align-items:center;min-width:0;min-height:136px;padding:22px;border:1px solid #ded2bf;border-radius:14px;background:#fff;color:var(--hk-ink)!important;text-decoration:none!important;box-sizing:border-box;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
        .ktw-home-knowledge-gateway__grid>a:hover{transform:translateY(-2px);border-color:#b99761;box-shadow:0 10px 24px rgba(28,40,50,.07)}
        .ktw-home-knowledge-gateway__grid b{display:grid;place-items:center;width:52px;height:52px;border-radius:13px;background:var(--hk-ink);color:#ecd29c;font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-size:20px;line-height:1}
        .ktw-home-knowledge-gateway__grid strong,.ktw-home-knowledge-gateway__grid small{display:block}
        .ktw-home-knowledge-gateway__grid strong{color:var(--hk-ink);line-height:1.4}
        .ktw-home-knowledge-gateway__grid small{margin-top:6px;color:#657078;line-height:1.65}
        .ktw-home-knowledge-gateway__grid .is-find{border-top:4px solid #a94a38}
        .ktw-home-knowledge-gateway__grid .is-learn{border-top:4px solid #4f8068}
        .ktw-home-knowledge-gateway__grid .is-compare{border-top:4px solid #b68a45}
        .ktw-home-knowledge-gateway__grid .is-research{border-top:4px solid var(--hk-ink)}
        .ktw-home-knowledge-gateway__grid a.is-research{background:linear-gradient(145deg,#10283f,#1c415c);border-color:#244961;color:#fff!important}
        .ktw-home-knowledge-gateway__grid a.is-research strong{color:#fff!important}
        .ktw-home-knowledge-gateway__grid a.is-research small{color:#d6e0e6!important}
        .ktw-home-knowledge-gateway__grid a.is-research b{background:#dfc184;color:#10283f}
        .ktw-home-knowledge-gateway__grid .is-soon{cursor:default;background:#f7f5f0;opacity:.82}
        .ktw-home-knowledge-gateway__status{position:absolute;top:10px;right:12px;padding:3px 7px;border-radius:999px;background:#e9e3da;color:#746b60;font-size:15px!important;font-weight:800!important;line-height:1.4!important}
        .ktw-home-knowledge-gateway__mini{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px}
        .ktw-home-knowledge-gateway__mini a{display:flex;flex-direction:column;justify-content:center;gap:3px;min-height:74px;padding:15px 18px;border:1px solid #e1d6c5;border-radius:10px;background:#fbf8f2;color:var(--hk-ink)!important;text-decoration:none!important;transition:background .18s ease,border-color .18s ease}
        .ktw-home-knowledge-gateway__mini a:hover{border-color:#c7b28e;background:#fff}
        .ktw-home-knowledge-gateway__mini strong{color:var(--hk-ink)}
        .ktw-home-knowledge-gateway__mini span{color:#68747b}
        @media(max-width:980px){.ktw-home-knowledge-gateway{width:calc(100vw - 40px)}.ktw-home-knowledge-gateway__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ktw-home-knowledge-gateway__mini{grid-template-columns:repeat(2,minmax(0,1fr))}}
        @media(max-width:620px){.ktw-home-knowledge-gateway{width:calc(100vw - 28px);padding:22px 16px;border-radius:15px}.ktw-home-knowledge-gateway__grid{grid-template-columns:1fr;gap:10px}.ktw-home-knowledge-gateway__grid>a,.ktw-home-knowledge-gateway__grid>div{min-height:104px;padding:16px;grid-template-columns:48px minmax(0,1fr)}.ktw-home-knowledge-gateway__grid b{width:48px;height:48px}.ktw-home-knowledge-gateway__mini{grid-template-columns:1fr}.ktw-home-knowledge-gateway__mini a{min-height:68px}}

/* 北澤篤史のことわざ辞典｜51 比較ツール WIDE VISUAL UI FINAL vNext */
body.ktw-compare-wide-v1{--cw-ink:#10283f;--cw-ink2:#193b56;--cw-red:#a94a38;--cw-gold:#b48b4c;--cw-paper:#fffdf8;--cw-cream:#f6f0e6;--cw-line:#ddd1be;background:#f8f5ef}
    body.ktw-compare-wide-v1 .article-header{width:min(1360px,calc(100vw - 96px));margin:26px auto 16px!important}
    body.ktw-compare-wide-v1 .article-header .entry-title{color:var(--cw-ink)!important;font-family:"Yu Mincho","Hiragino Mincho ProN",serif!important;font-size:clamp(34px,3.6vw,50px)!important;line-height:1.32!important;letter-spacing:-.015em!important}
    body.ktw-compare-wide-v1 .entry-content{width:100%!important;max-width:none!important}
    body.ktw-compare-wide-v1 .ktw-cmp{width:min(1360px,calc(100vw - 96px))!important;max-width:1360px!important;margin:0 auto 90px!important;color:#263f52!important;padding:0!important}

    body.ktw-compare-wide-v1 .ktw-cmp__hero{position:relative;overflow:hidden;padding:38px 42px!important;border:1px solid var(--cw-line)!important;border-radius:18px!important;background:linear-gradient(135deg,#fffdf9,#f6efe4)!important;box-shadow:0 14px 34px rgba(28,40,50,.05)!important}
    body.ktw-compare-wide-v1 .ktw-cmp__hero:after{display:none!important;content:none!important}
    body.ktw-compare-wide-v1 .ktw-cmp__eyebrow{display:none!important}
    body.ktw-compare-wide-v1 .ktw-cmp__hero h2{position:relative;z-index:1;max-width:860px;margin:0 0 10px!important;padding:0!important;border:0!important;background:none!important;color:var(--cw-ink)!important;font-family:"Yu Mincho","Hiragino Mincho ProN",serif!important;font-size:clamp(32px,3.5vw,48px)!important;line-height:1.35!important;letter-spacing:-.015em!important}
    body.ktw-compare-wide-v1 .ktw-cmp__hero h2:before,body.ktw-compare-wide-v1 .ktw-cmp__hero h2:after{display:none!important;content:none!important}
    body.ktw-compare-wide-v1 .ktw-cmp__hero p{position:relative;z-index:1;max-width:860px;margin:0!important;color:#53626b!important;font-size:18px!important;line-height:1.8!important;font-weight:600!important}

    body.ktw-compare-wide-v1 .ktw-cmp__pickers{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px!important;align-items:stretch!important;margin-top:24px!important}
    body.ktw-compare-wide-v1 .ktw-cmp__picker{position:relative!important;min-width:0!important;padding:24px!important;border:1px solid var(--cw-line)!important;border-radius:16px!important;background:#fff!important;box-shadow:0 8px 22px rgba(28,40,50,.035)!important}
    body.ktw-compare-wide-v1 .ktw-cmp__picker:first-child:after{display:none!important;content:none!important}
    body.ktw-compare-wide-v1 .ktw-cmp__picker-label{display:block!important;margin-bottom:10px!important;color:#5e6870!important;font-size:15px!important;font-weight:800!important;letter-spacing:0!important}
    body.ktw-compare-wide-v1 .ktw-cmp__search-wrap{position:relative!important;width:100%!important}
    body.ktw-compare-wide-v1 .ktw-cmp__search{display:block!important;width:100%!important;min-width:0!important;min-height:58px!important;padding:10px 48px 10px 16px!important;border:1px solid #d8cbb7!important;border-radius:12px!important;background:#fffdf9!important;color:#263f52!important;font-size:18px!important;font-weight:600!important;box-shadow:none!important}
    body.ktw-compare-wide-v1 .ktw-cmp__clear-one{top:50%!important;right:8px!important;transform:translateY(-50%)!important}
    body.ktw-compare-wide-v1 .ktw-cmp__suggestions{left:0!important;right:0!important;top:64px!important}
    body.ktw-compare-wide-v1 .ktw-cmp__selected{min-height:108px!important;margin-top:12px!important;padding:18px!important;border:1px solid #eee4d6!important;border-radius:12px!important;background:#faf7f1!important}
    body.ktw-compare-wide-v1 .ktw-cmp__selected.is-set{border-color:#dac5a0!important;background:#fffaf2!important}
    body.ktw-compare-wide-v1 .ktw-cmp__selected strong{color:var(--cw-ink)!important;font-family:"Yu Mincho",serif!important;font-size:23px!important;line-height:1.45!important}
    body.ktw-compare-wide-v1 .ktw-cmp__selected span{display:block;margin-top:7px;color:#59676f;font-size:15px;line-height:1.7}
    body.ktw-compare-wide-v1 .ktw-cmp__action{display:flex!important;justify-content:center!important;margin:22px 0 8px!important}
    body.ktw-compare-wide-v1 .ktw-cmp__compare-button{min-width:220px!important;min-height:56px!important;padding:11px 30px!important;border-radius:11px!important;background:var(--cw-ink)!important;color:#fff!important;font-size:17px!important;font-weight:800!important;box-shadow:0 8px 20px rgba(16,40,63,.12)!important}
    body.ktw-compare-wide-v1 .ktw-cmp__message{margin:12px 0!important;color:#5f6b72!important;font-size:15px!important;text-align:center!important}

    body.ktw-compare-wide-v1 .ktw-cmp__comparison-head{grid-template-columns:minmax(0,1fr) 70px minmax(0,1fr)!important;gap:14px!important;margin-top:34px!important}
    body.ktw-compare-wide-v1 .ktw-cmp__head-card{padding:25px 20px!important;border:1px solid var(--cw-line)!important;border-radius:16px!important;background:#fff!important;box-shadow:0 8px 22px rgba(28,40,50,.035)!important}
    body.ktw-compare-wide-v1 .ktw-cmp__head-card strong{color:var(--cw-ink)!important;font-family:"Yu Mincho",serif!important;font-size:clamp(23px,2.3vw,32px)!important}
    body.ktw-compare-wide-v1 .ktw-cmp__vs{color:var(--cw-gold)!important;font-size:15px!important}
    body.ktw-compare-wide-v1 .ktw-cmp__section{margin-top:22px!important;padding:28px!important;border:1px solid var(--cw-line)!important;border-radius:16px!important;background:#fff!important;box-shadow:0 7px 20px rgba(28,40,50,.025)!important}
    body.ktw-compare-wide-v1 .ktw-cmp__section h3{margin:0 0 18px!important;padding:0 0 12px!important;border:0!important;border-bottom:1px solid #e6dccd!important;background:none!important;color:var(--cw-ink)!important;font-family:"Yu Mincho",serif!important;font-size:clamp(24px,2.4vw,32px)!important;line-height:1.45!important}
    body.ktw-compare-wide-v1 .ktw-cmp__section h3:before,body.ktw-compare-wide-v1 .ktw-cmp__section h3:after{display:none!important;content:none!important}
    body.ktw-compare-wide-v1 .ktw-cmp__relation-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
    body.ktw-compare-wide-v1 .ktw-cmp__relation-item,body.ktw-compare-wide-v1 .ktw-cmp__meter,body.ktw-compare-wide-v1 .ktw-cmp__tax-card,body.ktw-compare-wide-v1 .ktw-cmp__example-box{border-radius:12px!important}
    body.ktw-compare-wide-v1 .ktw-cmp__relation-item p,body.ktw-compare-wide-v1 .ktw-cmp__example-box p{font-size:16px!important;line-height:1.8!important}
    body.ktw-compare-wide-v1 .ktw-cmp__table-wrap{border:1px solid #e0d5c5;border-radius:12px;overflow:auto!important}
    body.ktw-compare-wide-v1 .ktw-cmp__table{min-width:760px!important;font-size:16px!important}
    body.ktw-compare-wide-v1 .ktw-cmp__table th,body.ktw-compare-wide-v1 .ktw-cmp__table td{padding:16px!important;border-color:#e6dccd!important;line-height:1.75!important}
    body.ktw-compare-wide-v1 .ktw-cmp__table th{background:#f4eee4!important;color:var(--cw-ink)!important}
    body.ktw-compare-wide-v1 .ktw-cmp__row-label{width:150px!important;color:#5f6870!important;font-weight:900!important}
    body.ktw-compare-wide-v1 .ktw-cmp__meters{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
    body.ktw-compare-wide-v1 .ktw-cmp__tax-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
    body.ktw-compare-wide-v1 .ktw-cmp__chip{font-size:15px!important}

    @media(max-width:900px){body.ktw-compare-wide-v1 .article-header,body.ktw-compare-wide-v1 .ktw-cmp{width:calc(100vw - 40px)!important}.ktw-compare-wide-v1 .ktw-cmp__pickers{grid-template-columns:1fr!important}.ktw-compare-wide-v1 .ktw-cmp__relation-grid,.ktw-compare-wide-v1 .ktw-cmp__meters,.ktw-compare-wide-v1 .ktw-cmp__tax-grid{grid-template-columns:1fr!important}}
    @media(max-width:620px){body.ktw-compare-wide-v1 .article-header,body.ktw-compare-wide-v1 .ktw-cmp{width:calc(100vw - 28px)!important}.ktw-compare-wide-v1 .ktw-cmp__hero{padding:28px 18px!important;border-radius:15px!important}.ktw-compare-wide-v1 .ktw-cmp__hero h2{font-size:32px!important}.ktw-compare-wide-v1 .ktw-cmp__hero p{font-size:17px!important}.ktw-compare-wide-v1 .ktw-cmp__picker,.ktw-compare-wide-v1 .ktw-cmp__section{padding:18px 14px!important}.ktw-compare-wide-v1 .ktw-cmp__comparison-head{grid-template-columns:1fr!important}.ktw-compare-wide-v1 .ktw-cmp__vs{display:none!important}.ktw-compare-wide-v1 .ktw-cmp__examples{grid-template-columns:1fr!important}}

/* =========================================================
   9.4.8. Header / footer / global navigation base styles
   Migrated from snippet 285.
   ========================================================= */

/* 北澤篤史のことわざ辞典｜共通ヘッダー・フッター 元ロゴ復元 FINAL v1.4 | style 1 */
:root{
    --ktw-global-header:#001121;
    --ktw-global-header-line:#132a3d;
    --ktw-global-footer:#3b3129;
    --ktw-global-footer-text:#f7f1e7;
    --ktw-global-ink:#243746;
  }

  /* HEADER｜元デザインの濃紺へ復元 */
  body #header{
    background:var(--ktw-global-header)!important;
    border-bottom:1px solid var(--ktw-global-header-line)!important;
    box-shadow:none!important;
  }

  body #header .inner-header{
    width:min(1540px,calc(100vw - 64px))!important;
    max-width:none!important;
    min-height:108px!important;
    margin:0 auto!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }

  body #header .site__logo,
  body #header .site__logo__title{
    margin:0!important;
    padding:0!important;
    line-height:1!important;
  }

  body .ktw-original-logo-link{
    min-height:88px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:8px 0!important;
    text-decoration:none!important;
  }

  body .ktw-original-logo{
    display:block!important;
    width:350px!important;
    max-width:70vw!important;
    height:auto!important;
    max-height:none!important;
    object-fit:contain!important;
    filter:none!important;
  }

  /* 念のため、テーマの旧ロゴ制限を解除 */
  body #header .custom-logo-link img,
  body #header .site__logo.fs_custom .custom-logo{
    width:350px!important;
    max-width:70vw!important;
    height:auto!important;
    max-height:none!important;
    margin:0!important;
    object-fit:contain!important;
    filter:none!important;
  }

  /* FOOTER */
  body #footer,
  body footer#footer{
    background:var(--ktw-global-footer)!important;
    border-top:1px solid #51453b!important;
    color:var(--ktw-global-footer-text)!important;
  }

  body #footer :is(p,span,small,strong,a,li,h2,h3,h4),
  body footer#footer :is(p,span,small,strong,a,li,h2,h3,h4){
    color:var(--ktw-global-footer-text)!important;
    -webkit-text-fill-color:var(--ktw-global-footer-text)!important;
  }

  body #footer a,
  body footer#footer a{
    min-height:48px!important;
    display:inline-flex!important;
    align-items:center!important;
    text-decoration-color:rgba(247,241,231,.45)!important;
    text-underline-offset:4px!important;
  }

  .ktw-owner-network{
    width:100%;
    background:#312922;
    color:#f7f1e7;
    border-top:1px solid #4a3d33;
  }

  .ktw-owner-network__inner{
    width:min(1180px,calc(100vw - 32px));
    margin:0 auto;
    padding:18px 0;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:10px 18px;
    font-size:15px;
    line-height:1.7;
  }

  .ktw-owner-network strong{font-size:15px}

  .ktw-owner-network a{
    color:#fff4df!important;
    text-decoration:underline!important;
    text-underline-offset:4px!important;
    font-weight:800;
  }

  .ktw-owner-network__note{color:#e5dacb}

  body #page-top{
    min-width:52px!important;
    min-height:52px!important;
    border:1px solid #ddd3c7!important;
    border-radius:50%!important;
    background:#fffaf4!important;
    color:var(--ktw-global-ink)!important;
    box-shadow:0 6px 18px rgba(59,49,41,.08)!important;
  }

  @media(max-width:760px){
    body #header .inner-header{
      width:calc(100vw - 28px)!important;
      min-height:84px!important;
    }

    body .ktw-original-logo-link{
      min-height:70px!important;
      width:100%!important;
      padding:7px 0!important;
    }

    body .ktw-original-logo,
    body #header .custom-logo-link img,
    body #header .site__logo.fs_custom .custom-logo{
      width:280px!important;
      max-width:82vw!important;
      height:auto!important;
      max-height:none!important;
    }

    body #footer a,
    body footer#footer a{
      min-height:52px!important;
      font-size:15px!important;
    }

    .ktw-owner-network__inner{
      display:block;
      padding:16px 0;
      font-size:15px;
    }

    .ktw-owner-network__note{
      display:block;
      margin-top:6px;
    }
  }

/* 北澤篤史のことわざ辞典｜共通ヘッダー・フッター 元ロゴ復元 FINAL v1.4 | style 2 */
.ktw-global-role-nav{
    position:relative;
    z-index:40;
    width:100%;
    background:#fff;
    border-bottom:1px solid #dce4e8;
    box-shadow:0 2px 8px rgba(16,40,63,.03);
  }
  .ktw-global-role-nav__inner{
    width:min(1280px,calc(100vw - 32px));
    margin:0 auto;
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
  }
  .ktw-global-role-nav__item{
    position:relative;
    min-height:62px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:2px;
    padding:10px 14px;
    border-right:1px solid #e6ecef;
    color:#10283f!important;
    text-decoration:none!important;
    background:#fff;
  }
  .ktw-global-role-nav__item:first-child{border-left:1px solid #e6ecef}
  .ktw-global-role-nav__item strong{font-size:15px;line-height:1.3;color:#10283f!important}
  .ktw-global-role-nav__item span{font-size:15px;line-height:1.3;color:#60747e!important}
  .ktw-global-role-nav__item:hover{background:#f7f9fa}
  .ktw-global-role-nav__item.is-current{
    background:#f1f5f7;
    color:#10283f!important;
    box-shadow:inset 0 -3px 0 #b48b4c;
  }
  .ktw-global-role-nav__item.is-current strong{color:#10283f!important}
  .ktw-global-role-nav__item.is-current span{color:#526975!important}
  .ktw-global-role-nav__item.is-current:after{display:none!important;content:none!important;}
  @media(max-width:760px){
    .ktw-global-role-nav{overflow-x:auto;-webkit-overflow-scrolling:touch}
    .ktw-global-role-nav__inner{
      width:max-content;
      min-width:100%;
      grid-template-columns:repeat(5,minmax(132px,1fr));
    }
    .ktw-global-role-nav__item{min-height:58px;padding:9px 12px}
    .ktw-global-role-nav__item strong{font-size:15px}
    .ktw-global-role-nav__item span{font-size:15px}
  }

/* 北澤篤史のことわざ辞典｜共通ヘッダー・フッター 元ロゴ復元 FINAL v1.4 | style 3 */
.ktw-tool-context-band{
    width:min(1420px,calc(100vw - 40px));
    margin:18px auto 22px;
    display:grid;
    grid-template-columns:minmax(210px,.8fr) minmax(300px,1.5fr) minmax(190px,.8fr) minmax(200px,.9fr);
    gap:0;
    border:1px solid #dce4e8;
    border-top:5px solid #10283f;
    background:#fff;
    box-shadow:0 5px 18px rgba(16,40,63,.035);
  }
  .ktw-tool-context-band>div{padding:15px 18px;border-right:1px solid #e6ecef}
  .ktw-tool-context-band>div:last-child{border-right:0}
  .ktw-tool-context-band span{display:block;margin-bottom:5px;color:#7a6040!important;font-size:15px!important;font-weight:900;letter-spacing:.1em}
  .ktw-tool-context-band strong{display:block;color:#10283f!important;font-size:16px!important;line-height:1.45}
  .ktw-tool-context-band p{margin:0!important;color:#506570!important;font-size:15px!important;line-height:1.65!important}
  .ktw-tool-context-band a{color:#244d67!important;font-size:15px!important;font-weight:900;text-decoration:none!important}
  .ktw-tool-context-band__role a{display:inline-block;margin-top:7px}
  .ktw-tool-context-band__next a{display:inline-flex;align-items:center;min-height:36px;margin-top:2px;padding:7px 11px;background:#10283f;color:#fff!important}
  .ktw-tool-context-band.is-learn{border-top-color:#4b856d}
  .ktw-tool-context-band.is-start{border-top-color:#b39153}
  .ktw-tool-context-band.is-quality{border-top-color:#6d7480;background:#fafafa}
  @media(max-width:980px){
    .ktw-tool-context-band{grid-template-columns:1fr 1fr}
    .ktw-tool-context-band>div{border-bottom:1px solid #e6ecef}
    .ktw-tool-context-band>div:nth-child(2n){border-right:0}
  }
  @media(max-width:640px){
    .ktw-tool-context-band{width:calc(100vw - 22px);grid-template-columns:1fr;margin:12px auto 18px}
    .ktw-tool-context-band>div{padding:13px 14px;border-right:0}
    .ktw-tool-context-band>div:last-child{border-bottom:0}
    .ktw-tool-context-band__next a{width:100%;justify-content:center}
  }

/* =========================================================
   9.5. Accessibility hardening
   ========================================================= */

html body.ktw-ui-system-v1{
  --ktw-text-sub:#44515c;
}

html body.ktw-ui-system-v1 :where(
  .ktw-portal__search-count,
  .ktw-home-knowledge-gateway__head p,
  .ktw-home-knowledge-gateway__grid small,
  .ktw-home-knowledge-gateway__mini span,
  .ktw-portal__smart-body-head span,
  .ktw-portal__kana-label,
  .ktw-zb-dict-label,
  .ktw-zb-dict-detail,
  .ktw-current-proverb-tools__head p,
  .ktw-current-proverb-tools__grid a span,
  .ktw-tool-context-band span,
  .ktw-role-card p,
  .ktw-gojuon__hero>p,
  .ktw-famous-hub__hero>p,
  .ktw-famous-item__body small,
  .ktrw-card small,
  .ktw-rs-lenses small,
  .ktw-rs-inst-grid span,
  .ktw-rs-inst-grid small
){
  color:var(--ktw-text-sub)!important;
}

html body.ktw-ui-system-v1 :where(
  .ktw-portal__commandbar a,
  .ktw-home-knowledge-gateway__grid>a,
  .ktw-home-knowledge-gateway__mini a,
  .ktw-portal__quick-item,
  .ktw-current-proverb-tools__grid a,
  .ktw-tool-context-band a,
  .ktw-role-card,
  .ktw-gojuon-row__letters>a,
  .ktw-famous-hub__actions a,
  .ktw-famous-list__sort button,
  .ktw-hub-network__grid a,
  .ktrw-card,
  .ktw-rx-mode a,
  .ktw-rx-actions a,
  .ktw-rs-inst-grid a,
  .ktw-rcs__filters .actions button,
  .ktw-search__action,
  .ktw-quiz__feedback-actions a,
  .ktw-quiz__review-item a
){
  min-height:44px!important;
}

html body.ktw-ui-system-v1 input[type="checkbox"],
html body.ktw-ui-system-v1 input[type="radio"]{
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  min-height:20px!important;
  margin:2px 6px 2px 2px!important;
}

html body.ktw-ui-system-v1 :where(
  .ktw-tool-context-band,
  .ktw-role-card,
  .ktw-hub-network,
  .ktw-current-proverb-tools,
  .ktrw-card,
  .ktw-rs-inst-grid
) a{
  line-height:1.6!important;
}

@media(max-width:760px){
  html body.ktw-ui-system-v1 :where(
    .ktw-tool-context-band a,
    .ktw-role-card,
    .ktw-hub-network__grid a,
    .ktw-current-proverb-tools__grid a,
    .ktrw-card,
    .ktw-rs-inst-grid a
  ){
    padding-top:12px!important;
    padding-bottom:12px!important;
  }
}

html body.ktw-ui-system-v1 #page-top.pt-button{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;border-radius:50%!important;background:#10283f!important;color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important;}
html body.ktw-ui-system-v1 #page-top.pt-button::before,html body.ktw-ui-system-v1 #page-top.pt-button::after{color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#fff!important;opacity:1!important;}
html body.ktw-ui-system-v1 #page-top.pt-button:focus-visible{outline:3px solid rgba(178,138,76,.45)!important;outline-offset:2px!important;}
html body.ktw-ui-system-v1.ktw-zb-live .article-header::before,html body.ktw-ui-system-v1.ktw-zb-live .ktw-zb-example__num{color:#6b4e2c!important;-webkit-text-fill-color:#6b4e2c!important;opacity:1!important;}

/* =========================================================
   9.7. Global contrast + overlap safety
   ========================================================= */

/* Dark action pills on the homepage must always use light text. */
html body.ktw-ui-system-v1 .ktw-portal__tool-copy > span,
html body.ktw-ui-system-v1 .ktw-portal__tool-copy > span *,
html body.ktw-ui-system-v1 .ktw-portal__tool :where(.ktw-portal__tool-copy > span),
html body.ktw-ui-system-v1 .ktw-portal__tool :where(.ktw-portal__tool-copy > span) *{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
  text-shadow:none!important;
}

/* Any dark primary controls in the main functional surfaces use white text. */
html body.ktw-ui-system-v1 :where(
  .ktw-portal__search-box button[type="submit"],
  .ktw-portal__finder-submit,
  .ktrh2-filter button,
  .ktw-rel-search button,
  .ktw-gojuon-search__bar button,
  .ktw-rcs__filters .actions .primary,
  .ktw-rx-actions a.primary,
  #ktw-quiz-1 .ktw-quiz__start,
  #ktw-quiz-1 .ktw-quiz__again,
  #ktw-quiz-1 .ktw-quiz__new,
  #ktw-quiz-1 .ktw-quiz__next
),
html body.ktw-ui-system-v1 :where(
  .ktw-portal__search-box button[type="submit"],
  .ktw-portal__finder-submit,
  .ktrh2-filter button,
  .ktw-rel-search button,
  .ktw-gojuon-search__bar button,
  .ktw-rcs__filters .actions .primary,
  .ktw-rx-actions a.primary,
  #ktw-quiz-1 .ktw-quiz__start,
  #ktw-quiz-1 .ktw-quiz__again,
  #ktw-quiz-1 .ktw-quiz__new,
  #ktw-quiz-1 .ktw-quiz__next
) *{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
}

/* Research Lab / Tools Center: action labels must never overlap card text. */
html body.ktw-ui-system-v1 .ktrp-card,
html body.ktw-ui-system-v1 .ktw-role-card{
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
}

html body.ktw-ui-system-v1 .ktrp-card > p,
html body.ktw-ui-system-v1 .ktw-role-card > p{
  min-height:0!important;
  margin-bottom:0!important;
}

html body.ktw-ui-system-v1 .ktrp-card > em,
html body.ktw-ui-system-v1 .ktw-role-card > em{
  position:static!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  display:inline-flex!important;
  align-items:center!important;
  align-self:flex-start!important;
  width:auto!important;
  max-width:100%!important;
  min-height:40px!important;
  margin-top:14px!important;
  padding:7px 0!important;
  color:var(--ktw-link)!important;
  -webkit-text-fill-color:var(--ktw-link)!important;
  font-size:15px!important;
  line-height:1.5!important;
  font-style:normal!important;
  font-weight:800!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  transform:none!important;
}

/* Remove old bottom padding that only existed for absolutely positioned actions. */
html body.ktw-ui-system-v1 .ktrp-card{
  padding-bottom:18px!important;
}

/* Research cards: readable text on every light surface. */
html body.ktw-ui-system-v1 :where(
  .ktrp-card,
  .ktw-role-card,
  .ktrh2-start-grid a,
  .ktrh2-list article,
  .ktrh2-note-grid article,
  .ktw-accuracy-tools a
) :where(strong,h2,h3,h4){
  color:var(--ktw-text-strong)!important;
  -webkit-text-fill-color:var(--ktw-text-strong)!important;
}

html body.ktw-ui-system-v1 :where(
  .ktrp-card,
  .ktw-role-card,
  .ktrh2-start-grid a,
  .ktrh2-list article,
  .ktrh2-note-grid article,
  .ktw-accuracy-tools a
) :where(p,span,small){
  color:var(--ktw-text-sub)!important;
  -webkit-text-fill-color:var(--ktw-text-sub)!important;
  opacity:1!important;
}

/* Research quality cards can contain dark action bars; keep their labels light. */
html body.ktw-ui-system-v1 :where(
  .ktrp-actions a.is-primary,
  .ktw-completion__links a,
  .ktw-completion__flow-select button
),
html body.ktw-ui-system-v1 :where(
  .ktrp-actions a.is-primary,
  .ktw-completion__links a,
  .ktw-completion__flow-select button
) *{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
}

/* Long labels and controls must wrap instead of colliding. */
html body.ktw-ui-system-v1 :where(
  .ktrp-card,
  .ktw-role-card,
  .ktrh2-start-grid a,
  .ktw-accuracy-tools a,
  .ktw-completion__links a
){
  overflow:visible!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}

@media(max-width:760px){
  html body.ktw-ui-system-v1 .ktrp-card,
  html body.ktw-ui-system-v1 .ktw-role-card{
    padding:16px!important;
  }

  html body.ktw-ui-system-v1 .ktrp-card > em,
  html body.ktw-ui-system-v1 .ktw-role-card > em{
    min-height:44px!important;
    margin-top:12px!important;
    font-size:16px!important;
  }
}

/* TOP touch-target rules migrated from retired snippet 257. */
body.ktw-homepage #ktw-portal-1 :is(
    .ktw-portal__kana,
    .ktw-portal__term,
    .ktw-portal__sub-link,
    .ktw-portal__book-links a,
    .ktw-portal__author-links a,
    .ktw-home-research-quality__actions a
  ){
    min-height:48px!important;
    min-width:48px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
    line-height:1.35!important;
  }

  body.ktw-homepage #ktw-portal-1 .ktw-portal__kana{
    padding:9px 10px!important;
  }

  body.ktw-homepage #ktw-portal-1 .ktw-portal__term{
    padding:9px 12px!important;
    gap:8px!important;
  }

  body.ktw-homepage #ktw-portal-1 .ktw-portal__sub-link,
  body.ktw-homepage #ktw-portal-1 .ktw-portal__book-links a,
  body.ktw-homepage #ktw-portal-1 .ktw-portal__author-links a,
  body.ktw-homepage #ktw-portal-1 .ktw-home-research-quality__actions a{
    padding:10px 14px!important;
  }

  body.ktw-homepage #ktw-portal-1 button{
    min-height:48px!important;
  }

  body.ktw-homepage #ktw-portal-1 :is(
    .ktw-portal__hero-shortcuts a,
    .ktw-portal__browse-actions a,
    .ktw-home-knowledge-gateway__mini a,
    .ktw-home-knowledge-gateway__grid>a
  ){
    min-height:48px!important;
    display:inline-flex!important;
    align-items:center!important;
  }

  body.ktw-homepage #ktw-portal-1 .ktw-portal__length-grid button{
    min-width:48px!important;
    min-height:48px!important;
  }

  body.ktw-homepage .custom-logo-link,
  body.ktw-homepage #footer a,
  body.ktw-homepage footer a,
  body.ktw-homepage #page-top{
    min-width:48px!important;
    min-height:48px!important;
  }

  body.ktw-homepage .custom-logo-link,
  body.ktw-homepage #footer a,
  body.ktw-homepage footer a{
    display:inline-flex!important;
    align-items:center!important;
  }

  @media(max-width:680px){
    body.ktw-homepage #ktw-portal-1 :is(
      .ktw-portal__kana,
      .ktw-portal__term,
      .ktw-portal__sub-link,
      .ktw-portal__book-links a,
      .ktw-portal__author-links a,
      .ktw-home-research-quality__actions a
    ){
      min-height:48px!important;
    }

    body.ktw-homepage #ktw-portal-1 .ktw-portal__browse-actions{
      gap:10px!important;
    }
  }

/* Homepage touch targets */
html body.ktw-ui-system-v1 .ktw-portal :where(a,button){
  min-height:44px!important;
}

html body.ktw-ui-system-v1 .ktw-portal :where(
  .ktw-portal__term,
  .ktw-portal__kana,
  .ktw-portal__sub-link,
  .ktw-portal__author-links a,
  .ktw-portal__book-links a
){
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding-top:10px!important;
  padding-bottom:10px!important;
  line-height:1.5!important;
}

html body.ktw-ui-system-v1 .ktw-portal__tool-copy > span{
  min-height:44px!important;
  padding:9px 15px!important;
  font-size:16px!important;
}

@media(max-width:760px){
  html body.ktw-ui-system-v1 .ktw-portal :where(a,button){
    min-height:46px!important;
  }
}

/* Mobile theme controls: preserve visual size, enlarge only the tap area. */
@media(max-width:760px){
  html body.ktw-ui-system-v1 :where(
    .custom-logo-link,
    #g_nav a,
    .nav_btn,
    .menu_btn,
    .sp-header-menu a,
    .sp-header-menu button,
    .header-info a,
    #page-top
  ){
    min-width:44px!important;
    min-height:44px!important;
  }

  html body.ktw-ui-system-v1 :where(
    #g_nav a,
    .nav_btn,
    .menu_btn,
    .sp-header-menu a,
    .sp-header-menu button,
    .header-info a
  ){
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
  }

  html body.ktw-ui-system-v1 .custom-logo-link{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding-top:4px!important;
    padding-bottom:4px!important;
  }
}

/* Learning center cards: links stay in normal document flow. */
html body.ktw-ui-system-v1 .ktw-learn-audience article{
  display:flex!important;
  flex-direction:column!important;
  height:auto!important;
  min-height:0!important;
  padding-bottom:22px!important;
}

html body.ktw-ui-system-v1 .ktw-learn-audience article > a{
  position:static!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  display:inline-flex!important;
  align-items:center!important;
  align-self:flex-start!important;
  width:auto!important;
  max-width:100%!important;
  min-height:44px!important;
  margin-top:16px!important;
  padding:10px 0 0!important;
  border-top:1px solid var(--ktw-border)!important;
  color:var(--ktw-link)!important;
  -webkit-text-fill-color:var(--ktw-link)!important;
  font-size:15px!important;
  line-height:1.55!important;
  font-weight:800!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  transform:none!important;
}

html body.ktw-ui-system-v1 .ktw-learn-audience article > div{
  margin-top:auto!important;
}

@media(max-width:760px){
  html body.ktw-ui-system-v1 .ktw-learn-audience article{
    padding:18px!important;
  }
  html body.ktw-ui-system-v1 .ktw-learn-audience article > a{
    font-size:16px!important;
  }
}

/* =========================================================
   9.8. Spacing safety system
   ========================================================= */

/*
 * Never allow text to sit on a card border or decorative frame.
 * These minimums are intentionally conservative and apply to the
 * site's recurring card/panel systems rather than arbitrary content.
 */
html body.ktw-ui-system-v1 :where(
  .ktw-portal__smart-intro-inner,
  .ktw-portal__smart-body,
  .ktw-home-knowledge-gateway,
  .ktw-home-knowledge-gateway__grid > a,
  .ktw-home-knowledge-gateway__grid > div,
  .ktw-home-knowledge-gateway__mini a,
  .ktw-portal__tool-copy,
  .ktrp-card,
  .ktw-role-card,
  .ktrh2-start-grid a,
  .ktrh2-list article,
  .ktrh2-note-grid article,
  .ktw-accuracy-tools,
  .ktw-accuracy-tools a,
  .ktw-completion__cards article,
  .ktw-completion__numbers,
  .ktw-completion__meaning,
  .ktw-completion__flow,
  .ktw-learn-quickstart__grid > a,
  .ktw-learn-audience article,
  .ktw-learn-method-grid > a,
  .ktw-learn-cycle__grid > a,
  .ktw-gojuon-search,
  .ktw-gojuon-sample__card,
  .ktw-tool-context-band
){
  box-sizing:border-box!important;
  min-width:0!important;
}

/* Framed/dark panels need generous inset from every edge. */
html body.ktw-ui-system-v1 :where(
  .ktw-portal__smart-intro-inner,
  .ktw-portal__smart-body,
  .ktw-accuracy-tools,
  .ktw-completion__numbers,
  .ktw-completion__meaning,
  .ktw-completion__flow
){
  padding-top:max(24px,1.5rem)!important;
  padding-right:max(24px,1.5rem)!important;
  padding-bottom:max(24px,1.5rem)!important;
  padding-left:max(24px,1.5rem)!important;
}

/* Reusable cards: never less than 18px inset on desktop. */
html body.ktw-ui-system-v1 :where(
  .ktw-home-knowledge-gateway__grid > a,
  .ktw-home-knowledge-gateway__grid > div,
  .ktw-home-knowledge-gateway__mini a,
  .ktw-portal__tool-copy,
  .ktrp-card,
  .ktw-role-card,
  .ktrh2-start-grid a,
  .ktrh2-list article,
  .ktrh2-note-grid article,
  .ktw-accuracy-tools a,
  .ktw-completion__cards article,
  .ktw-learn-quickstart__grid > a,
  .ktw-learn-audience article,
  .ktw-learn-method-grid > a,
  .ktw-learn-cycle__grid > a,
  .ktw-gojuon-search,
  .ktw-gojuon-sample__card
){
  padding-top:max(18px,1.125rem)!important;
  padding-right:max(18px,1.125rem)!important;
  padding-bottom:max(18px,1.125rem)!important;
  padding-left:max(18px,1.125rem)!important;
}

/* Headings/labels inside cards must not collide with decorative top rules. */
html body.ktw-ui-system-v1 :where(
  .ktw-portal__smart-intro-inner,
  .ktw-home-knowledge-gateway__grid > a,
  .ktw-home-knowledge-gateway__grid > div,
  .ktw-portal__tool-copy,
  .ktrp-card,
  .ktw-role-card,
  .ktw-accuracy-tools a,
  .ktw-learn-quickstart__grid > a,
  .ktw-learn-audience article
) > :first-child{
  margin-top:0!important;
}

html body.ktw-ui-system-v1 :where(
  .ktw-portal__smart-intro-inner,
  .ktw-home-knowledge-gateway__grid > a,
  .ktw-home-knowledge-gateway__grid > div,
  .ktw-portal__tool-copy,
  .ktrp-card,
  .ktw-role-card,
  .ktw-accuracy-tools a,
  .ktw-learn-quickstart__grid > a,
  .ktw-learn-audience article
) :where(h1,h2,h3,h4,strong){
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}

/* Decorative inner frames must never sit directly behind text. */
html body.ktw-ui-system-v1 :where(
  .ktw-portal__smart-finder,
  .ktw-portal__tool,
  .ktw-home-knowledge-gateway,
  .ktw-accuracy-tools
)::after{
  pointer-events:none!important;
}

/* Global role navigation: neutral by default, calm selected state only. */
html body.ktw-ui-system-v1 .ktw-global-role-nav__item{
  background:#fff!important;
  color:#10283f!important;
  -webkit-text-fill-color:#10283f!important;
  box-shadow:none!important;
}

html body.ktw-ui-system-v1 .ktw-global-role-nav__item strong{
  color:#10283f!important;
  -webkit-text-fill-color:#10283f!important;
}

html body.ktw-ui-system-v1 .ktw-global-role-nav__item span{
  color:#526975!important;
  -webkit-text-fill-color:#526975!important;
}

html body.ktw-ui-system-v1 .ktw-global-role-nav__item:hover,
html body.ktw-ui-system-v1 .ktw-global-role-nav__item:focus-visible{
  background:#f7f9fa!important;
}

html body.ktw-ui-system-v1 .ktw-global-role-nav__item.is-current{
  background:#f1f5f7!important;
  color:#10283f!important;
  -webkit-text-fill-color:#10283f!important;
  box-shadow:inset 0 -3px 0 #b48b4c!important;
}

html body.ktw-ui-system-v1 .ktw-global-role-nav__item.is-current strong{
  color:#10283f!important;
  -webkit-text-fill-color:#10283f!important;
}

html body.ktw-ui-system-v1 .ktw-global-role-nav__item.is-current span{
  color:#526975!important;
  -webkit-text-fill-color:#526975!important;
}

@media(max-width:760px){
  html body.ktw-ui-system-v1 :where(
    .ktw-portal__smart-intro-inner,
    .ktw-portal__smart-body,
    .ktw-accuracy-tools,
    .ktw-completion__numbers,
    .ktw-completion__meaning,
    .ktw-completion__flow
  ){
    padding:20px!important;
  }

  html body.ktw-ui-system-v1 :where(
    .ktw-home-knowledge-gateway__grid > a,
    .ktw-home-knowledge-gateway__grid > div,
    .ktw-home-knowledge-gateway__mini a,
    .ktw-portal__tool-copy,
    .ktrp-card,
    .ktw-role-card,
    .ktrh2-start-grid a,
    .ktrh2-list article,
    .ktrh2-note-grid article,
    .ktw-accuracy-tools a,
    .ktw-completion__cards article,
    .ktw-learn-quickstart__grid > a,
    .ktw-learn-audience article,
    .ktw-learn-method-grid > a,
    .ktw-learn-cycle__grid > a,
    .ktw-gojuon-search,
    .ktw-gojuon-sample__card
  ){
    padding:16px!important;
  }

  html body.ktw-ui-system-v1 .ktw-global-role-nav__item{
    min-height:60px!important;
    padding:10px 14px!important;
  }
}

/* =========================================================
   9.9. Research Workspace readability hardening
   ========================================================= */

html body.ktw-ui-system-v1 :where(
  .ktrw,
  .ktw-rx-start,
  .ktrw-group,
  .ktrw-card,
  .ktrw-plan,
  .ktrg,
  .ktrlog,
  .ktem,
  .ktw-triaxis-link
){
  color:var(--ktw-text)!important;
}

html body.ktw-ui-system-v1 :where(
  .ktrw,
  .ktw-rx-start,
  .ktrw-group,
  .ktrw-card,
  .ktrw-plan,
  .ktrg,
  .ktrlog,
  .ktem,
  .ktw-triaxis-link
) :where(p,span,small,label,li,dd,dt){
  color:#3f505a!important;
  -webkit-text-fill-color:#3f505a!important;
  opacity:1!important;
  font-size:max(15px,1em)!important;
  line-height:1.7!important;
}

html body.ktw-ui-system-v1 :where(
  .ktrw,
  .ktw-rx-start,
  .ktrw-group,
  .ktrw-card,
  .ktrw-plan,
  .ktrg,
  .ktrlog,
  .ktem,
  .ktw-triaxis-link
) :where(h1,h2,h3,h4,strong,b){
  color:#10283f!important;
  -webkit-text-fill-color:#10283f!important;
  opacity:1!important;
}

/* Dark controls/icons retain light foreground. */
html body.ktw-ui-system-v1 :where(
  .ktrw-search button,
  .ktrw-card>b,
  .ktrw-selected>a,
  .ktrw-plan button,
  .ktw-rx-actions a.primary,
  .ktw-rx-mode a[aria-current="page"],
  .ktrlog-actions .is-primary
),
html body.ktw-ui-system-v1 :where(
  .ktrw-search button,
  .ktrw-card>b,
  .ktrw-selected>a,
  .ktrw-plan button,
  .ktw-rx-actions a.primary,
  .ktw-rx-mode a[aria-current="page"],
  .ktrlog-actions .is-primary
) *{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
}

/* Workspace step markers: light neutral surface + dark readable text. */
html body.ktw-ui-system-v1 .ktrw-card>b{
  background:#eef3f5!important;
  color:#243b4c!important;
  -webkit-text-fill-color:#243b4c!important;
  border:1px solid #cbd6dc!important;
}

/* Workspace cards always keep breathing room from borders. */
html body.ktw-ui-system-v1 :where(
  .ktrw-group,
  .ktrw-card,
  .ktrw-selected,
  .ktrw-plan,
  .ktw-rx-start,
  .ktrg,
  .ktrlog
){
  box-sizing:border-box!important;
  min-width:0!important;
}

html body.ktw-ui-system-v1 :where(
  .ktrw-group,
  .ktrw-selected,
  .ktrw-plan,
  .ktw-rx-start,
  .ktrg,
  .ktrlog
){
  padding:max(20px,1.25rem)!important;
}

html body.ktw-ui-system-v1 .ktrw-card{
  padding:max(18px,1.125rem)!important;
}

@media(max-width:760px){
  html body.ktw-ui-system-v1 :where(
    .ktrw-group,
    .ktrw-selected,
    .ktrw-plan,
    .ktw-rx-start,
    .ktrg,
    .ktrlog
  ){
    padding:16px!important;
  }

  html body.ktw-ui-system-v1 .ktrw-card{
    padding:16px!important;
  }
}

/* =========================================================
   9.10. Research Project panel readability reset
   ========================================================= */

html body.ktw-ui-system-v1 .ktrp{
  color:#243b4c!important;
  font-size:16px!important;
  line-height:1.75!important;
}

html body.ktw-ui-system-v1 .ktrp :where(
  p,span,small,label,li,em,summary
){
  color:#3f505a!important;
  -webkit-text-fill-color:#3f505a!important;
  opacity:1!important;
  font-size:15px!important;
  line-height:1.7!important;
  letter-spacing:0!important;
}

html body.ktw-ui-system-v1 .ktrp :where(
  h2,h3,h4,strong
){
  color:#10283f!important;
  -webkit-text-fill-color:#10283f!important;
  opacity:1!important;
}

html body.ktw-ui-system-v1 .ktrp :where(
  input,textarea,select
){
  min-height:48px!important;
  padding:11px 13px!important;
  color:#243b4c!important;
  -webkit-text-fill-color:#243b4c!important;
  font-size:16px!important;
  line-height:1.55!important;
  background:#fff!important;
}

html body.ktw-ui-system-v1 .ktrp :where(
  button,
  .ktrp-file-label,
  .ktrp-tool-launcher a,
  .ktrp-analysis-tools__grid a,
  .ktrp-next-action a,
  .ktrp-route__state
){
  min-height:44px!important;
  padding:9px 12px!important;
  font-size:15px!important;
  line-height:1.45!important;
}

/* Project cards and research routes keep comfortable spacing. */
html body.ktw-ui-system-v1 :where(
  .ktrp-panel,
  .ktrp-project,
  .ktrp-metric,
  .ktrp-project-progress article,
  .ktrp-next-action,
  .ktrp-activity-item,
  .ktrp-route__step,
  .ktrp-route__sources,
  .ktrp-route__gaps,
  .ktrp-analysis-tools
){
  padding:16px!important;
  box-sizing:border-box!important;
  min-width:0!important;
}

/* Dark controls and marks must always keep a light foreground. */
html body.ktw-ui-system-v1 :where(
  .ktrp button.is-primary,
  .ktrp-target>b,
  .ktrp-route__step>b
),
html body.ktw-ui-system-v1 :where(
  .ktrp button.is-primary,
  .ktrp-target>b,
  .ktrp-route__step>b
) *{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
}

/* State pills keep readable text on their light surfaces. */
html body.ktw-ui-system-v1 .ktrp-route__state{
  color:#3f505a!important;
  -webkit-text-fill-color:#3f505a!important;
}
html body.ktw-ui-system-v1 .ktrp-route__state[data-state="in_progress"]{
  color:#674c12!important;
  -webkit-text-fill-color:#674c12!important;
}
html body.ktw-ui-system-v1 .ktrp-route__state[data-state="done"]{
  color:#215832!important;
  -webkit-text-fill-color:#215832!important;
}

/* Recommended labels are visible but never microscopic. */
html body.ktw-ui-system-v1 .ktrp-analysis-tools__grid a em{
  font-size:15px!important;
  color:#6b4e2c!important;
  -webkit-text-fill-color:#6b4e2c!important;
}

/* Status / metadata remain secondary, not faint. */
html body.ktw-ui-system-v1 :where(
  .ktrp-status,
  .ktrp-notice,
  .ktrp-empty,
  .ktrp-activity-empty,
  .ktrp-project-progress__note
){
  color:#465761!important;
  -webkit-text-fill-color:#465761!important;
  font-size:15px!important;
  line-height:1.7!important;
}

@media(max-width:760px){
  html body.ktw-ui-system-v1 .ktrp{
    padding:16px!important;
  }

  html body.ktw-ui-system-v1 :where(
    .ktrp-panel,
    .ktrp-project,
    .ktrp-metric,
    .ktrp-project-progress article,
    .ktrp-next-action,
    .ktrp-activity-item,
    .ktrp-route__step,
    .ktrp-route__sources,
    .ktrp-route__gaps,
    .ktrp-analysis-tools
  ){
    padding:14px!important;
  }
}

/* Researcher Router inside Workspace */
html body.ktw-ui-system-v1 .ktrr{
  color:#243b4c!important;
  padding:20px!important;
}

html body.ktw-ui-system-v1 .ktrr :where(
  p,span,small,label,li,em
){
  color:#3f505a!important;
  -webkit-text-fill-color:#3f505a!important;
  opacity:1!important;
  font-size:15px!important;
  line-height:1.7!important;
  letter-spacing:0!important;
}

html body.ktw-ui-system-v1 .ktrr :where(h2,h3,h4,strong){
  color:#10283f!important;
  -webkit-text-fill-color:#10283f!important;
}

html body.ktw-ui-system-v1 .ktrr :where(button,a){
  min-height:44px!important;
  font-size:15px!important;
  line-height:1.45!important;
}

html body.ktw-ui-system-v1 .ktrr__lenses button.is-active{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:#10283f!important;
}

html body.ktw-ui-system-v1 .ktrr__card{
  padding:16px!important;
}

html body.ktw-ui-system-v1 .ktrr__card a{
  display:inline-flex!important;
  align-items:center!important;
  margin-top:12px!important;
  color:#184f79!important;
  -webkit-text-fill-color:#184f79!important;
}

@media(max-width:760px){
  html body.ktw-ui-system-v1 .ktrr{
    padding:16px!important;
  }
}

/* =========================================================
   9.11. Workspace page-level color reset
   ========================================================= */

/*
 * Research Workspace is assembled from many historical modules.
 * Reset normal reading text at the page boundary so later legacy
 * fragments cannot reintroduce pale microcopy.
 */
html body.ktw-ui-system-v1.page-id-2836 main :where(
  p,span,small,label,li,em,dd,dt,figcaption
){
  color:#243b4c!important;
  -webkit-text-fill-color:#243b4c!important;
  opacity:1!important;
}

html body.ktw-ui-system-v1.page-id-2836 main :where(
  h1,h2,h3,h4,h5,h6,strong
){
  color:#10283f!important;
  -webkit-text-fill-color:#10283f!important;
  opacity:1!important;
}

/* Keep links visible and conventional on light surfaces. */
html body.ktw-ui-system-v1.page-id-2836 main a:not(.is-primary):not([aria-current="page"]){
  color:#184f79!important;
  -webkit-text-fill-color:#184f79!important;
}

/* Explicit dark-surface exceptions. */
html body.ktw-ui-system-v1.page-id-2836 main :where(
  .ktrw-search button,
  .ktrw-card>b,
  .ktrw-selected>a,
  .ktrw-plan button,
  .ktw-rx-actions a.primary,
  .ktw-rx-mode a[aria-current="page"],
  .ktrp button.is-primary,
  .ktrp-target>b,
  .ktrp-route__step>b,
  .ktrlog-actions .is-primary,
  .ktrr__lenses button.is-active
),
html body.ktw-ui-system-v1.page-id-2836 main :where(
  .ktrw-search button,
  .ktrw-card>b,
  .ktrw-selected>a,
  .ktrw-plan button,
  .ktw-rx-actions a.primary,
  .ktw-rx-mode a[aria-current="page"],
  .ktrp button.is-primary,
  .ktrp-target>b,
  .ktrp-route__step>b,
  .ktrlog-actions .is-primary,
  .ktrr__lenses button.is-active
) *{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
}

/* No microcopy anywhere in Workspace. */
html body.ktw-ui-system-v1.page-id-2836 main :where(
  p,span,small,label,li,em,dd,dt,figcaption,
  button,a,input,select,textarea
){
  font-size:max(15px,1em)!important;
  line-height:1.65!important;
}

/* Placeholder text must remain readable on every public form. */
html body.ktw-ui-system-v1 :where(input,textarea)::placeholder{
  color:#55636d!important;
  -webkit-text-fill-color:#55636d!important;
  opacity:1!important;
  font-size:15px!important;
}

/* =========================================================
   9.9. Research legibility hard lock
   ========================================================= */

/* Research UI: secondary text must still be easy to read. */
html body.ktw-ui-system-v1 :where(
  .ktrw-search label,
  .ktrw-meta,
  .ktrw-group-head small,
  .ktrw-card small,
  .ktw-rx-steps span,
  .ktw-rx-mode p,
  .ktw-rx-simple-note,
  .ktem-metrics span,
  .ktem-axes small,
  .ktem-list aside p,
  .ktem-note,
  .ktw-triaxis-link p
){
  color:#44515c!important;
  -webkit-text-fill-color:#44515c!important;
  opacity:1!important;
  font-size:max(15px,0.9375rem)!important;
  line-height:1.75!important;
}

/* Tiny decorative research labels are made readable, not faint. */
html body.ktw-ui-system-v1 :where(
  .ktw-method-note-head span,
  .ktw-context-method-layer header > span,
  .ktw-method-note-grid b,
  .ktw-evidence-bridge span,
  .ktrw-hero > span,
  .ktrw-flow header > span,
  .ktrw-plan header > span,
  .ktrw-selected > span,
  .ktem > header > span,
  .ktw-triaxis-link > span
){
  color:#6b4e2c!important;
  -webkit-text-fill-color:#6b4e2c!important;
  opacity:1!important;
  font-size:max(14px,0.875rem)!important;
  line-height:1.5!important;
}

/* Method / context notes previously used 10-12px text. */
html body.ktw-ui-system-v1 :where(
  .ktw-method-note-grid strong,
  .ktw-method-note-grid p,
  .ktw-method-note-source,
  .ktw-context-method-layer header p,
  .ktw-context-method-layer > p,
  .ktw-context-method-fields label,
  .ktw-evidence-bridge p,
  .ktw-ndl-context-link
){
  color:#44515c!important;
  -webkit-text-fill-color:#44515c!important;
  opacity:1!important;
  font-size:max(15px,0.9375rem)!important;
  line-height:1.7!important;
}

/* Inputs / controls never fall back to tiny type. */
html body.ktw-ui-system-v1 :where(
  .ktrw input,
  .ktrw select,
  .ktrw textarea,
  .ktrw button,
  .ktw-rx-start a,
  .ktw-rx-start button,
  .ktw-context-method-fields input,
  .ktw-context-method-fields textarea,
  .ktw-evidence-bridge button
){
  font-size:max(16px,1rem)!important;
}

/* Dark research controls always use light text. */
html body.ktw-ui-system-v1 :where(
  .ktrw-search button,
  .ktrw-plan button,
  .ktrw-selected > a,
  .ktw-rx-actions a.primary,
  .ktw-rx-mode a[aria-current="page"]
),
html body.ktw-ui-system-v1 :where(
  .ktrw-search button,
  .ktrw-plan button,
  .ktrw-selected > a,
  .ktw-rx-actions a.primary,
  .ktw-rx-mode a[aria-current="page"]
) *{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
}

/* No low-contrast gold text on light cards. */
html body.ktw-ui-system-v1 :where(
  .ktrw,
  .ktw-rx-start,
  .ktw-context-method-layer,
  .ktw-evidence-bridge
) [style*="color:#9a7445"],
html body.ktw-ui-system-v1 :where(
  .ktrw,
  .ktw-rx-start,
  .ktw-context-method-layer,
  .ktw-evidence-bridge
) [style*="color: #9a7445"]{
  color:#6b4e2c!important;
  -webkit-text-fill-color:#6b4e2c!important;
}

@media(max-width:760px){
  html body.ktw-ui-system-v1 :where(
    .ktrw-card small,
    .ktw-rx-steps span,
    .ktw-rx-mode p,
    .ktw-rx-simple-note,
    .ktem-metrics span,
    .ktem-axes small,
    .ktem-list aside p,
    .ktem-note
  ){
    font-size:15px!important;
  }
}

/* Workspace dark step markers: always light text on navy. */
html body.ktw-ui-system-v1.page-id-2836 .ktw-rx-steps b,
html body.ktw-ui-system-v1.page-id-2836 .ktw-rx-steps b *{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
}

/* =========================================================
   9.10. Legacy research micro-text retirement
   ========================================================= */

/*
 * Old research modules used 8-12px grey labels. Retire that visual language.
 * These selectors are all light-surface secondary text, so use one readable tone.
 */
html body.ktw-ui-system-v1 :where(
  .ktrw-dossier__status,
  .ktrw-color small,
  .ktrw-ev small,
  .ktrw-att small,
  .ktrr__card small,
  .ktrr__note,
  .ktrp-status,
  .ktrp-target small,
  .ktrp-analysis-tools__head span,
  .ktrp-project small,
  .ktrp-empty,
  .ktrp-metric span,
  .ktrp-project-progress span,
  .ktrp-project-progress__note,
  .ktrp-activity-item small,
  .ktrp-activity-empty,
  .ktrp-section header p,
  .ktrp-route__empty,
  .ktrp-atlas__item span,
  .ktrlog-head > p,
  .ktrlog-metric span,
  .ktrlog-record small,
  .ktrlog-empty
){
  color:#44515c!important;
  -webkit-text-fill-color:#44515c!important;
  opacity:1!important;
  font-size:max(15px,0.9375rem)!important;
  line-height:1.65!important;
  letter-spacing:normal!important;
}

/* Slightly larger for descriptive text blocks. */
html body.ktw-ui-system-v1 :where(
  .ktrr__note,
  .ktrp-section header p,
  .ktrlog-head > p,
  .ktrp-project-progress__note
){
  font-size:max(16px,1rem)!important;
  line-height:1.75!important;
}

/* Compact badges may stay compact, but never tiny or washed out. */
html body.ktw-ui-system-v1 :where(
  .ktrp-status,
  .ktrp-analysis-tools__head span,
  .ktrp-metric span,
  .ktrlog-metric span
){
  min-height:28px!important;
  display:inline-flex!important;
  align-items:center!important;
}

/* Preserve spacing when formerly tiny labels become readable. */
html body.ktw-ui-system-v1 :where(
  .ktrp-project,
  .ktrp-activity-item,
  .ktrp-route__step,
  .ktrp-atlas__item,
  .ktrlog-record
){
  min-width:0!important;
  overflow-wrap:anywhere!important;
}

@media(max-width:760px){
  html body.ktw-ui-system-v1 :where(
    .ktrw-dossier__status,
    .ktrw-color small,
    .ktrw-ev small,
    .ktrw-att small,
    .ktrr__card small,
    .ktrr__note,
    .ktrp-status,
    .ktrp-target small,
    .ktrp-analysis-tools__head span,
    .ktrp-project small,
    .ktrp-empty,
    .ktrp-metric span,
    .ktrp-project-progress span,
    .ktrp-project-progress__note,
    .ktrp-activity-item small,
    .ktrp-activity-empty,
    .ktrp-section header p,
    .ktrp-route__empty,
    .ktrp-atlas__item span,
    .ktrlog-head > p,
    .ktrlog-metric span,
    .ktrlog-record small,
    .ktrlog-empty
  ){
    font-size:15px!important;
  }
}

/* =========================================================
   9.11. Research Workspace plain-light mode
   ========================================================= */

/*
 * Workspace is a working tool, not a poster.
 * Default to light surfaces + dark readable text.
 */
html body.page-id-2836.ktw-ui-system-v1 .entry-content :where(
  p,small,label,li,td,th,summary,figcaption,h1,h2,h3,h4,h5,h6
){
  color:#243b4c!important;
  -webkit-text-fill-color:#243b4c!important;
  opacity:1!important;
}

html body.page-id-2836.ktw-ui-system-v1 .entry-content small{
  font-size:max(15px,0.9375rem)!important;
  line-height:1.6!important;
}

html body.page-id-2836.ktw-ui-system-v1 .entry-content :where(
  input::placeholder,
  textarea::placeholder
){
  color:#596871!important;
  -webkit-text-fill-color:#596871!important;
  opacity:1!important;
}

/* Keep functional panels calm and light. */
html body.page-id-2836.ktw-ui-system-v1 :where(
  .ktw-tool-context-band,
  .ktw-rx-start,
  .ktrw-hero,
  .ktrw-selected,
  .ktrw-group,
  .ktrw-card,
  .ktrw-plan,
  .ktrw-dossier,
  .ktrr__card,
  .ktrp,
  .ktrp-card,
  .ktrp-project,
  .ktrp-section,
  .ktrp-route,
  .ktrp-atlas,
  .ktrg,
  .ktrlog,
  .ktrlog-record,
  .ktw-ro-core,
  .ktem-metrics article,
  .ktem-list > article,
  .ktem-list aside,
  .ktw-triaxis-link
){
  background:#fff!important;
  background-image:none!important;
  color:#243b4c!important;
  border-color:#d7dee2!important;
  box-shadow:none!important;
}

/* Primary controls are the only dark surfaces. */
html body.page-id-2836.ktw-ui-system-v1 :where(
  button,
  a.primary,
  .ktrw-search button,
  .ktrw-plan button,
  .ktrw-selected > a,
  .ktw-rx-actions a.primary,
  .ktw-rx-mode a[aria-current="page"]
){
  min-height:44px!important;
}

html body.page-id-2836.ktw-ui-system-v1 :where(
  .ktrw-search button,
  .ktrw-plan button,
  .ktrw-selected > a,
  .ktw-rx-actions a.primary,
  .ktw-rx-mode a[aria-current="page"],
  .ktrp button.is-primary,
  .ktrg button.primary,
  .ktrlog button.is-primary,
  .ktw-ro-core button.primary
),
html body.page-id-2836.ktw-ui-system-v1 :where(
  .ktrw-search button,
  .ktrw-plan button,
  .ktrw-selected > a,
  .ktw-rx-actions a.primary,
  .ktw-rx-mode a[aria-current="page"],
  .ktrp button.is-primary,
  .ktrg button.primary,
  .ktrlog button.is-primary,
  .ktw-ro-core button.primary
) *{
  background:#10283f!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
}

/* Compact dark identity marks keep light text. */
html body.page-id-2836.ktw-ui-system-v1 :where(
  .ktrw-card > b,
  .ktrp-target > b,
  .ktrp-route__step > b,
  .ktrlog-record__mark,
  .ktw-ro-score
),
html body.page-id-2836.ktw-ui-system-v1 :where(
  .ktrw-card > b,
  .ktrp-target > b,
  .ktrp-route__step > b,
  .ktrlog-record__mark,
  .ktw-ro-score
) *{
  background:#10283f!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
}

/* Text links are blue. Card/action links keep their component colours. */
html body.page-id-2836.ktw-ui-system-v1 .entry-content :where(p,li,dd,dt,figcaption) > a,
html body.page-id-2836.ktw-ui-system-v1 .entry-content :where(p,li,dd,dt,figcaption) a:not([class]){
  color:#155b82!important;
  -webkit-text-fill-color:#155b82!important;
}

/* Generous inset on Workspace cards. */
html body.page-id-2836.ktw-ui-system-v1 :where(
  .ktw-rx-start,
  .ktrw-hero,
  .ktrw-selected,
  .ktrw-group,
  .ktrw-plan,
  .ktrw-dossier,
  .ktrr__card,
  .ktrp-card,
  .ktrp-project,
  .ktrp-section,
  .ktrp-route,
  .ktrp-atlas,
  .ktrg,
  .ktrlog-record,
  .ktw-ro-core,
  .ktem-list > article,
  .ktw-triaxis-link
){
  padding:clamp(18px,2.2vw,28px)!important;
}

/* No decorative text may touch a border. */
html body.page-id-2836.ktw-ui-system-v1 :where(
  .ktw-rx-start,
  .ktrw-hero,
  .ktrw-selected,
  .ktrw-group,
  .ktrw-plan,
  .ktrw-dossier,
  .ktrr__card,
  .ktrp-card,
  .ktrp-project,
  .ktrp-section,
  .ktrp-route,
  .ktrp-atlas,
  .ktrg,
  .ktrlog-record,
  .ktw-ro-core,
  .ktem-list > article,
  .ktw-triaxis-link
) > :first-child{
  margin-top:0!important;
}

@media(max-width:760px){
  html body.page-id-2836.ktw-ui-system-v1 :where(
    .ktw-rx-start,
    .ktrw-hero,
    .ktrw-selected,
    .ktrw-group,
    .ktrw-plan,
    .ktrw-dossier,
    .ktrr__card,
    .ktrp-card,
    .ktrp-project,
    .ktrp-section,
    .ktrp-route,
    .ktrp-atlas,
    .ktrg,
    .ktrlog-record,
    .ktw-ro-core,
    .ktem-list > article,
    .ktw-triaxis-link
  ){
    padding:18px!important;
  }
}

/* =========================================================
   9.12. Research protocol / reproducibility UI reset
   ========================================================= */

/* Legacy research modules are functionality, not micro-typography zones. */
html body.ktw-ui-system-v1.page-id-2836 :where(
  .ktrg,
  .ktw-ro-core,
  .ktw-triaxis-link
){
  color:#243b4c!important;
  font-size:16px!important;
  line-height:1.72!important;
}

html body.ktw-ui-system-v1.page-id-2836 :where(
  .ktrg,
  .ktw-ro-core,
  .ktw-triaxis-link
) :where(
  p,span,small,label,li,em,code,summary,dd,dt
){
  color:#3f505a!important;
  -webkit-text-fill-color:#3f505a!important;
  opacity:1!important;
  font-size:15px!important;
  line-height:1.7!important;
  letter-spacing:0!important;
}

html body.ktw-ui-system-v1.page-id-2836 :where(
  .ktrg,
  .ktw-ro-core,
  .ktw-triaxis-link
) :where(
  h1,h2,h3,h4,h5,h6,strong
){
  color:#10283f!important;
  -webkit-text-fill-color:#10283f!important;
  opacity:1!important;
}

html body.ktw-ui-system-v1.page-id-2836 :where(
  .ktrg input,.ktrg textarea,.ktrg select,
  .ktw-ro-core input,.ktw-ro-core textarea,.ktw-ro-core select
){
  min-height:48px!important;
  padding:10px 12px!important;
  background:#fff!important;
  color:#243b4c!important;
  -webkit-text-fill-color:#243b4c!important;
  font-size:16px!important;
  line-height:1.55!important;
}

html body.ktw-ui-system-v1.page-id-2836 :where(
  .ktrg button,
  .ktrg-file,
  .ktw-ro-core button,
  .ktw-ro-core a,
  .ktw-ro-core summary,
  .ktw-triaxis-link a
){
  min-height:44px!important;
  font-size:15px!important;
  line-height:1.45!important;
}

/* Disabled is communicated by neutral surface/cursor, never unreadable opacity. */
html body.ktw-ui-system-v1.page-id-2836 :where(
  .ktrg button:disabled,
  .ktw-ro-core button:disabled,
  .ktw-ro-core input:disabled,
  .ktw-ro-core select:disabled
){
  opacity:1!important;
  cursor:not-allowed!important;
  border-color:#cbd3d8!important;
  background:#edf1f3!important;
  color:#4f5f69!important;
  -webkit-text-fill-color:#4f5f69!important;
}

/* Dark primary controls and marks always keep a light foreground. */
html body.ktw-ui-system-v1.page-id-2836 :where(
  .ktrg button.primary,
  .ktrg-metric b,
  .ktrg-item-actions .primary,
  .ktw-ro-core button.primary,
  .ktw-ro-score,
  .ktw-ro-score *,
  .ktw-ro-check strong::before
){
  opacity:1!important;
}

html body.ktw-ui-system-v1.page-id-2836 :where(
  .ktrg button.primary,
  .ktw-ro-core button.primary,
  .ktw-ro-score
),
html body.ktw-ui-system-v1.page-id-2836 :where(
  .ktrg button.primary,
  .ktw-ro-core button.primary,
  .ktw-ro-score
) *{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* Reproducibility score supplementary copy is light but safely contrasted. */
html body.ktw-ui-system-v1.page-id-2836 .ktw-ro-score small{
  color:#e9f0f4!important;
  -webkit-text-fill-color:#e9f0f4!important;
}

/* Recurring research cards keep real breathing room. */
html body.ktw-ui-system-v1.page-id-2836 :where(
  .ktrg,
  .ktrg-note,
  .ktrg-section,
  .ktrg-item,
  .ktrg-metric,
  .ktw-ro-core,
  .ktw-ro-note,
  .ktw-ro-case,
  .ktw-ro-case-report article,
  .ktw-ro-check,
  .ktw-ro-rev,
  .ktw-ro-export-grid button,
  .ktw-ro-method-grid article,
  .ktw-ro-protocolcards article,
  .ktw-ro-readinessbox,
  .ktw-ro-participantinfo article,
  .ktw-ro-withdraw-receipt,
  .ktw-ro-withdraw-box,
  .ktw-ro-releasecard,
  .ktw-ro-release-gap,
  .ktw-triaxis-link
){
  box-sizing:border-box!important;
  min-width:0!important;
}

html body.ktw-ui-system-v1.page-id-2836 :where(
  .ktrg,
  .ktw-ro-core
){
  padding:24px!important;
}

html body.ktw-ui-system-v1.page-id-2836 :where(
  .ktrg-note,
  .ktrg-item,
  .ktrg-metric,
  .ktw-ro-note,
  .ktw-ro-case,
  .ktw-ro-case-report article,
  .ktw-ro-check,
  .ktw-ro-rev,
  .ktw-ro-method-grid article,
  .ktw-ro-protocolcards article,
  .ktw-ro-readinessbox,
  .ktw-ro-participantinfo article,
  .ktw-ro-withdraw-receipt,
  .ktw-ro-withdraw-box,
  .ktw-ro-releasecard,
  .ktw-ro-release-gap,
  .ktw-triaxis-link
){
  padding:16px!important;
}

/* TRI-AXIS shortcut follows the same readable visual language. */
html body.ktw-ui-system-v1.page-id-2836 .ktw-triaxis-link{
  background:#fff!important;
  border-color:var(--ktw-border)!important;
}
html body.ktw-ui-system-v1.page-id-2836 .ktw-triaxis-link a{
  display:inline-flex!important;
  align-items:center!important;
  margin-top:12px!important;
  color:#184f79!important;
  -webkit-text-fill-color:#184f79!important;
}

@media(max-width:760px){
  html body.ktw-ui-system-v1.page-id-2836 :where(.ktrg,.ktw-ro-core){
    width:calc(100vw - 28px)!important;
    max-width:calc(100vw - 28px)!important;
    padding:16px!important;
  }

  html body.ktw-ui-system-v1.page-id-2836 :where(
    .ktrg-note,.ktrg-item,.ktrg-metric,
    .ktw-ro-note,.ktw-ro-case,.ktw-ro-case-report article,
    .ktw-ro-check,.ktw-ro-rev,.ktw-ro-method-grid article,
    .ktw-ro-protocolcards article,.ktw-ro-readinessbox,
    .ktw-ro-participantinfo article,.ktw-ro-withdraw-receipt,
    .ktw-ro-withdraw-box,.ktw-ro-releasecard,.ktw-ro-release-gap,
    .ktw-triaxis-link
  ){
    padding:14px!important;
  }
}

/* =========================================================
   9.12. Workspace all-text contrast completion
   ========================================================= */

html body.page-id-2836.ktw-ui-system-v1 .entry-content :where(
  input,select,textarea,option,code,pre,kbd,samp
){
  color:#243b4c!important;
  -webkit-text-fill-color:#243b4c!important;
  opacity:1!important;
}

html body.page-id-2836.ktw-ui-system-v1 .entry-content :where(
  input,select,textarea
){
  background:#fff!important;
  border-color:#aebbc2!important;
  font-size:max(16px,1rem)!important;
}

html body.page-id-2836.ktw-ui-system-v1 .entry-content :where(
  input::placeholder,
  textarea::placeholder
){
  color:#596871!important;
  -webkit-text-fill-color:#596871!important;
  opacity:1!important;
}

/* Disabled controls must remain readable. */
html body.page-id-2836.ktw-ui-system-v1 .entry-content :where(
  button:disabled,
  input:disabled,
  select:disabled,
  textarea:disabled,
  [aria-disabled="true"]
){
  opacity:1!important;
  background:#e8edf0!important;
  color:#44515c!important;
  -webkit-text-fill-color:#44515c!important;
  border-color:#bdc8ce!important;
}

/* Ordinary prose links use a strong blue; action links are component-owned. */
html body.page-id-2836.ktw-ui-system-v1 .entry-content :where(p,li,dd,dt,figcaption) a{
  color:#155b82!important;
  -webkit-text-fill-color:#155b82!important;
  opacity:1!important;
}

/* Restore white text only where the control itself is intentionally dark. */
html body.page-id-2836.ktw-ui-system-v1 :where(
  .ktrw-search button,
  .ktrw-plan button,
  .ktrw-selected > a,
  .ktw-rx-actions a.primary,
  .ktw-rx-mode a[aria-current="page"],
  .ktrp button.is-primary,
  .ktrg button.primary,
  .ktrlog button.is-primary,
  .ktw-ro-core button.primary
),
html body.page-id-2836.ktw-ui-system-v1 :where(
  .ktrw-search button,
  .ktrw-plan button,
  .ktrw-selected > a,
  .ktw-rx-actions a.primary,
  .ktw-rx-mode a[aria-current="page"],
  .ktrp button.is-primary,
  .ktrg button.primary,
  .ktrlog button.is-primary,
  .ktw-ro-core button.primary
) *{
  background:#10283f!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
}

/* Dark identity chips/icons also keep white text. */
html body.page-id-2836.ktw-ui-system-v1 :where(
  .ktrw-card > b,
  .ktrp-target > b,
  .ktrp-route__step > b,
  .ktrlog-record__mark,
  .ktw-ro-score
),
html body.page-id-2836.ktw-ui-system-v1 :where(
  .ktrw-card > b,
  .ktrp-target > b,
  .ktrp-route__step > b,
  .ktrlog-record__mark,
  .ktw-ro-score
) *{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
}

/* Generated pseudo-labels inherit the readable foreground. */
html body.page-id-2836.ktw-ui-system-v1 .entry-content *::before,
html body.page-id-2836.ktw-ui-system-v1 .entry-content *::after{
  color:inherit!important;
  opacity:1!important;
}

/* =========================================================
   9.13. Workspace visual normalization
   ========================================================= */

html body.ktw-ui-system-v1.page-id-2836 :where(
  .ktw-rx-start,.ktem,.ktrg,.ktw-ro-core,.ktw-triaxis-link
){
  background:#fff!important;
  background-image:none!important;
  border-color:#d9dee3!important;
  box-shadow:none!important;
}

html body.ktw-ui-system-v1.page-id-2836 :where(
  .ktw-rx-steps li,.ktem-metrics article,.ktem-list>article,.ktem-list aside,
  .ktrg-note,.ktrg label,.ktrg-item,.ktrg-metric,
  .ktw-ro-note,.ktw-ro-case,.ktw-ro-case-report article,
  .ktw-ro-select label,.ktw-ro-actions label,.ktw-ro-check,.ktw-ro-rev,
  .ktw-ro-export-grid button,.ktw-ro-standards,.ktw-ro-method-grid article,
  .ktw-ro-protocolcards article,.ktw-ro-protocolmeta,.ktw-ro-readinessbox,
  .ktw-ro-participantinfo article,.ktw-ro-consentitems label,
  .ktw-ro-withdraw-receipt,.ktw-ro-withdraw-box,.ktw-ro-releasecard,
  .ktw-ro-release-gap,.ktw-ro-rocrate-audit,.ktw-ro-protocol-editor,
  .ktw-ro-release-editor
){
  background:#fff!important;
  background-image:none!important;
  color:#243b4c!important;
  border-color:#d9dee3!important;
  box-shadow:none!important;
}

html body.ktw-ui-system-v1.page-id-2836 :where(
  .ktw-rx-start,.ktem,.ktrg,.ktw-ro-core,.ktw-triaxis-link
) *{
  text-shadow:none!important;
}

html body.ktw-ui-system-v1.page-id-2836 :where(
  .ktrg button:disabled,.ktw-ro-core button:disabled,
  .ktw-ro-core input:disabled,.ktw-ro-core select:disabled
){
  opacity:1!important;
}

html body.ktw-ui-system-v1.page-id-2836 :where(
  .ktrw-search button,.ktrw-card>b,.ktw-rx-steps b,
  .ktrg button.primary,.ktw-ro-core button.primary,.ktw-ro-score
){
  background:#10283f!important;
  border-color:#10283f!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

html body.ktw-ui-system-v1.page-id-2836 :where(
  .ktrw-search button,.ktrw-card>b,.ktw-rx-steps b,
  .ktrg button.primary,.ktw-ro-core button.primary,.ktw-ro-score
) *{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
}

html body.ktw-ui-system-v1.page-id-2836 .ktw-ro-check.ok strong::before{
  background:#e6f3ea!important;
  color:#215832!important;
  -webkit-text-fill-color:#215832!important;
}
html body.ktw-ui-system-v1.page-id-2836 .ktw-ro-check.ng strong::before{
  background:#f7e9e5!important;
  color:#7b3027!important;
  -webkit-text-fill-color:#7b3027!important;
}

/* =========================================================
   9.13. Site-wide readable type floor
   ========================================================= */

/* Tiny helper text is no longer allowed on the public site. */
html body.ktw-ui-system-v1 :where(
  small,
  caption,
  figcaption
){
  font-size:max(15px,0.9375rem)!important;
  line-height:1.6!important;
  opacity:1!important;
}

/* Form and control text must remain legible and avoid mobile zoom. */
html body.ktw-ui-system-v1 :where(
  input,
  select,
  textarea,
  button
){
  font-size:max(16px,1rem)!important;
  line-height:1.45!important;
}

html body.ktw-ui-system-v1 :where(
  input,
  select,
  textarea
){
  min-height:44px!important;
}

html body.ktw-ui-system-v1 .entry-content button{
  min-height:44px!important;
}

/* Secondary semantic labels should still read clearly. */
html body.ktw-ui-system-v1 :where(
  label,
  dt,
  dd,
  summary
){
  font-size:max(15px,0.9375rem)!important;
  line-height:1.6!important;
}

/* Tables are information, not fine print. */
html body.ktw-ui-system-v1 :where(
  table,
  th,
  td
){
  font-size:max(16px,1rem)!important;
  line-height:1.6!important;
}

/* Purely decorative English labels: remove visual noise. */
html body.ktw-ui-system-v1 :where(
  .ktw-tool-context-band__role > span,
  .ktem > header > span,
  .ktem-list aside > span,
  .ktw-triaxis-link > span,
  .ktw-method-note-head > span,
  .ktw-context-method-layer header > span,
  .ktw-evidence-bridge span:first-child
){
  display:none!important;
}

/* Keep spacing natural after decorative labels disappear. */
html body.ktw-ui-system-v1 :where(
  .ktw-tool-context-band__role,
  .ktem > header,
  .ktem-list aside,
  .ktw-triaxis-link,
  .ktw-method-note-head,
  .ktw-context-method-layer header,
  .ktw-evidence-bridge
) > :first-child{
  margin-top:0!important;
}

@media(max-width:760px){
  html body.ktw-ui-system-v1 :where(
    small,
    caption,
    figcaption,
    label,
    dt,
    dd,
    summary
  ){
    font-size:15px!important;
  }

  html body.ktw-ui-system-v1 :where(
    input,
    select,
    textarea,
    button
  ){
    font-size:16px!important;
  }
}

/* =========================================================
   9.14. Article contrast completion
   ========================================================= */

html body.ktw-ui-system-v1.ktw-zb-live .ktw-zb-example__num{
  color:#44515c!important;
  -webkit-text-fill-color:#44515c!important;
  opacity:1!important;
  font-size:max(15px,0.9375rem)!important;
  line-height:1.5!important;
  font-weight:900!important;
}

/* Light-surface article helper labels use the same safe foreground. */
html body.ktw-ui-system-v1.ktw-zb-live :where(
  .ktw-zb-meta,
  .ktw-zb-note,
  .ktw-zb-sub,
  .ktw-zb-caption
){
  color:#44515c!important;
  -webkit-text-fill-color:#44515c!important;
  opacity:1!important;
}

/* =========================================================
   9.15. Article micro-text retirement
   ========================================================= */

/* Old article modules used 9-14px helper text. Retire that design language. */
html body.ktw-ui-system-v1.ktw-zb-live :where(
  .ktw-zb-function span,
  .ktw-zb-vs,
  .ktw-zb-toolgrid span,
  .ktw-zb-evidence-list article > div span,
  .ktw-zb-source-detail__body b,
  .ktw-research-id,
  .ktw-after__mini-label,
  .ktw-after__author-trust span,
  .ktw-after__book-fallback span,
  .ktw-after__book-verified,
  .ktw-after__primary-source
){
  font-size:max(15px,0.9375rem)!important;
  line-height:1.5!important;
  opacity:1!important;
}

html body.ktw-ui-system-v1.ktw-zb-live :where(
  .ktw-zb-function p,
  .ktw-zb-function a,
  .ktw-zb-history article p,
  .ktw-zb-evidence-list p,
  .ktw-research-sublead,
  .ktw-research-literature-cards p,
  .ktw-after__author-role,
  .ktw-after__checked,
  .ktw-after__book-note,
  .ktw-after__disclosure,
  .ktw-after__source-list p,
  .ktw-after__sources-foot span,
  .ktw-after__sources-foot p
){
  font-size:max(16px,1rem)!important;
  line-height:1.75!important;
  opacity:1!important;
}

/* Light-surface supporting copy uses one safe dark tone. */
html body.ktw-ui-system-v1.ktw-zb-live :where(
  .ktw-zb-function p,
  .ktw-zb-history article p,
  .ktw-zb-evidence-list p,
  .ktw-research-sublead,
  .ktw-research-literature-cards p,
  .ktw-after__author-role,
  .ktw-after__checked,
  .ktw-after__book-note,
  .ktw-after__disclosure,
  .ktw-after__source-list p,
  .ktw-after__sources-foot span,
  .ktw-after__sources-foot p
){
  color:#44515c!important;
  -webkit-text-fill-color:#44515c!important;
}

/* Small article labels remain accents but with sufficient contrast. */
html body.ktw-ui-system-v1.ktw-zb-live :where(
  .ktw-zb-function span,
  .ktw-zb-toolgrid span,
  .ktw-zb-source-detail__body b,
  .ktw-after__mini-label,
  .ktw-after__primary-source
){
  color:#6b4e2c!important;
  -webkit-text-fill-color:#6b4e2c!important;
}

/* Buttons / chips still need generous tap and text size. */
html body.ktw-ui-system-v1.ktw-zb-live :where(
  .ktw-zb-function a,
  .ktw-after__mini-links a,
  .ktw-after__book-links a,
  .ktw-after__chips a
){
  min-height:44px!important;
  font-size:max(16px,1rem)!important;
  line-height:1.45!important;
}

/* Research IDs are technical, but must still be readable. */
html body.ktw-ui-system-v1.ktw-zb-live .ktw-research-id{
  color:#52616a!important;
  -webkit-text-fill-color:#52616a!important;
  font-size:15px!important;
}

@media(max-width:760px){
  html body.ktw-ui-system-v1.ktw-zb-live :where(
    .ktw-zb-function span,
    .ktw-zb-vs,
    .ktw-zb-toolgrid span,
    .ktw-zb-evidence-list article > div span,
    .ktw-zb-source-detail__body b,
    .ktw-research-id,
    .ktw-after__mini-label,
    .ktw-after__author-trust span,
    .ktw-after__book-fallback span,
    .ktw-after__book-verified,
    .ktw-after__primary-source
  ){
    font-size:15px!important;
  }
}

/* Workspace selected mode: override generic link blue with white on navy. */
html body.page-id-2836.ktw-ui-system-v1 .entry-content .ktw-rx-mode a[aria-current="page"],
html body.page-id-2836.ktw-ui-system-v1 .entry-content .ktw-rx-mode a[aria-current="page"] *{
  background:#10283f!important;
  border-color:#10283f!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
}

/* =========================================================
   9.16. Read-after-article HUB
   ========================================================= */

html body.ktw-ui-system-v1.ktw-zb-live .ktw-article-hub-links{
  width:min(820px,calc(100vw - 48px))!important;
  margin:64px auto 72px!important;
  padding:0!important;
}

html body.ktw-ui-system-v1.ktw-zb-live .ktw-article-hub-links__head{
  padding:0 0 20px!important;
  border-bottom:1px solid var(--ktw-border)!important;
}

html body.ktw-ui-system-v1.ktw-zb-live .ktw-article-hub-links__head>span{
  display:inline-flex!important;
  align-items:center!important;
  min-height:36px!important;
  padding:7px 11px!important;
  border-radius:999px!important;
  background:#f3ede5!important;
  color:#5f4936!important;
  -webkit-text-fill-color:#5f4936!important;
  font-size:15px!important;
  line-height:1.4!important;
  font-weight:900!important;
}

html body.ktw-ui-system-v1.ktw-zb-live .ktw-article-hub-links__head>strong{
  display:block!important;
  margin-top:10px!important;
  color:var(--ktw-text-strong)!important;
  -webkit-text-fill-color:var(--ktw-text-strong)!important;
  font-family:inherit!important;
  font-size:clamp(28px,3vw,38px)!important;
  line-height:1.45!important;
}

html body.ktw-ui-system-v1.ktw-zb-live .ktw-article-hub-links__head>p{
  max-width:720px!important;
  margin:10px 0 0!important;
  color:var(--ktw-text-sub)!important;
  -webkit-text-fill-color:var(--ktw-text-sub)!important;
  font-size:17px!important;
  line-height:1.8!important;
}

html body.ktw-ui-system-v1.ktw-zb-live .ktw-article-hub-links__grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  margin-top:20px!important;
}

html body.ktw-ui-system-v1.ktw-zb-live .ktw-article-hub-links__grid a{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  min-width:0!important;
  min-height:104px!important;
  padding:20px!important;
  border:1px solid var(--ktw-border)!important;
  border-radius:14px!important;
  background:#fff!important;
  color:var(--ktw-text-strong)!important;
  -webkit-text-fill-color:var(--ktw-text-strong)!important;
  text-decoration:none!important;
  box-shadow:none!important;
  overflow-wrap:anywhere!important;
}

html body.ktw-ui-system-v1.ktw-zb-live .ktw-article-hub-links__grid a:hover,
html body.ktw-ui-system-v1.ktw-zb-live .ktw-article-hub-links__grid a:focus-visible{
  background:#f7f9fa!important;
  border-color:#b9c6cc!important;
}

html body.ktw-ui-system-v1.ktw-zb-live .ktw-article-hub-links__grid strong{
  color:var(--ktw-text-strong)!important;
  -webkit-text-fill-color:var(--ktw-text-strong)!important;
  font-size:18px!important;
  line-height:1.5!important;
}

html body.ktw-ui-system-v1.ktw-zb-live .ktw-article-hub-links__grid span{
  margin-top:6px!important;
  color:var(--ktw-text-sub)!important;
  -webkit-text-fill-color:var(--ktw-text-sub)!important;
  font-size:15px!important;
  line-height:1.65!important;
}

@media(max-width:760px){
  html body.ktw-ui-system-v1.ktw-zb-live .ktw-article-hub-links{
    width:calc(100vw - 30px)!important;
    margin:48px auto 56px!important;
  }

  html body.ktw-ui-system-v1.ktw-zb-live .ktw-article-hub-links__grid{
    grid-template-columns:1fr!important;
  }

  html body.ktw-ui-system-v1.ktw-zb-live .ktw-article-hub-links__grid a{
    min-height:0!important;
    padding:18px!important;
  }
}

/* =========================================================
   9.17. Migrated legacy safety styles
   Source snippets 210 and 253 are retired after verification.
   ========================================================= */

/* 北澤篤史のことわざ辞典｜199 古用例詳細リンク 高可読性補正 FINAL */
body.ktw-zb-live .ktw-zb-history-link{
        display:inline-block!important;
        margin-top:14px!important;
        color:#5f401c!important;
        font-size:17px!important;
        font-weight:900!important;
        line-height:1.7!important;
        text-decoration:none!important;
    }
    body.ktw-zb-live .ktw-zb-history-link:hover{
        color:#10283f!important;
        text-decoration:underline!important;
        text-underline-offset:.18em!important;
    }
    body.ktw-zb-live .ktw-zb-source-detail{
        margin-top:16px!important;
        padding-top:14px!important;
        border-top:1px solid #dfe4e7!important;
    }
    body.ktw-zb-live .ktw-zb-source-detail>summary{
        display:flex!important;
        align-items:center!important;
        gap:8px!important;
        min-height:46px!important;
        padding:8px 0!important;
        color:#5f401c!important;
        font-size:17px!important;
        font-weight:900!important;
        line-height:1.65!important;
        cursor:pointer!important;
        list-style:none!important;
    }
    body.ktw-zb-live .ktw-zb-source-detail>summary::-webkit-details-marker{display:none!important}
    body.ktw-zb-live .ktw-zb-source-detail>summary:after{
        content:'＋'!important;
        margin-left:4px!important;
        color:#8b5f26!important;
        font-size:22px!important;
        font-weight:900!important;
        line-height:1!important;
    }
    body.ktw-zb-live .ktw-zb-source-detail[open]>summary:after{content:'−'!important}
    body.ktw-zb-live .ktw-zb-source-detail__body{
        margin-top:10px!important;
        padding:16px 18px!important;
        border-left:3px solid #b99052!important;
        background:#fbfaf7!important;
    }
    body.ktw-zb-live .ktw-zb-source-detail__body>div+div{margin-top:14px!important}
    body.ktw-zb-live .ktw-zb-source-detail__body b{
        display:block!important;
        color:#5f401c!important;
        font-size:16px!important;
        font-weight:900!important;
        line-height:1.6!important;
    }
    body.ktw-zb-live .ktw-zb-source-detail__body p{
        margin:5px 0 0!important;
        color:#2f4756!important;
        font-size:17px!important;
        font-weight:500!important;
        line-height:1.9!important;
    }
    body.ktw-zb-live .ktw-zb-history-form{
        color:#5f401c!important;
        font-size:16px!important;
        font-weight:750!important;
        line-height:1.75!important;
    }
    body.ktw-zb-live .ktw-zb-history-context{
        color:#334b5a!important;
        font-size:17px!important;
        line-height:1.9!important;
    }
    @media(max-width:620px){
        body.ktw-zb-live .ktw-zb-history-link,
        body.ktw-zb-live .ktw-zb-source-detail>summary,
        body.ktw-zb-live .ktw-zb-source-detail__body p,
        body.ktw-zb-live .ktw-zb-history-context{font-size:17px!important}
    }

/* 北澤篤史のことわざ辞典｜個別記事 研究補助文字コントラスト安全ロック FINAL v14 */
body.ktw-zb-live :is(
      .ktw-zb-origin-status,
      .ktw-zb-dict-label,
      .ktw-zb-attestation span,
      .ktw-zb-evidence-list article>div span,
      .ktw-rg-layer>header>span,
      .ktw-rg-details>summary span,
      .ktw-rg-record__head span,
      .ktw-rg-kv span,
      .ktw-rg-text>span,
      .ktw-zb-history-form,
      .ktw-zb-history-link,
      .ktw-zb-source-detail>summary,
      .ktw-zb-source-detail__body b,
      .ktw-research-type,
      .ktw-ndl-locate,
      .ktw-ndl-locate-result a,
      .ktw-bibliography-items article>a,
      .ktw-research-literature-cards a
    ){
      color:#5a421f!important;
      -webkit-text-fill-color:#5a421f!important;
      opacity:1!important;
    }

    body.ktw-zb-live :is(
      .ktw-zb-first small,
      .ktw-zb-evidence-list small,
      .ktw-bib-badges span,
      .ktw-bibliography-items article>p,
      .ktw-citation-status,
      .ktw-rg-layer>header p,
      .ktw-rg-record__meta,
      .ktw-rg-policy,
      .ktw-zb-history-context,
      .ktw-research-sublead,
      .ktw-research-literature-cards .ktw-research-literature-meta,
      .ktw-research-literature-cards small,
      .ktw-ndl-term-switch__label,
      .ktw-ndl-locate-result
    ){
      color:#435762!important;
      -webkit-text-fill-color:#435762!important;
      opacity:1!important;
    }

    body.ktw-zb-live .ktw-rg-caution strong,
    body.ktw-zb-live .ktw-rg-unresolved strong{
      color:#5b4138!important;
      -webkit-text-fill-color:#5b4138!important;
    }

    /* 小型補助文字も14px未満へ落とさない */
    body.ktw-zb-live :is(
      .ktw-zb-evidence-list small,
      .ktw-bib-badges span,
      .ktw-citation-status,
      .ktw-rg-details>summary span,
      .ktw-rg-record__head span,
      .ktw-rg-record__meta,
      .ktw-rg-kv span,
      .ktw-rg-text>span,
      .ktw-rg-policy,
      .ktw-zb-history-link,
      .ktw-zb-source-detail__body b,
      .ktw-research-type,
      .ktw-ndl-term-switch__label,
      .ktw-ndl-locate,
      .ktw-ndl-locate-result,
      .ktw-research-literature-cards .ktw-research-literature-meta,
      .ktw-research-literature-cards small,
      .ktw-research-literature-cards a
    ){
      font-size:14px!important;
      line-height:1.65!important;
    }

    /* 旧ZERO BASE/UI層に残る低コントラスト補助文字 */
    body.ktw-zb-live :is(
      .ktw-zb-summary span,
      .ktw-zb-toptools span,
      .ktw-zb-vs,
      .ktw-zb-history-meta small,
      .ktw-zb-history footer,
      .ktw-zb-toolgrid small,
      .ktw-zb-research-metrics span,
      .ktw-zb-first span,
      .ktw-after__sources-foot p
    ){
      color:#435762!important;
      -webkit-text-fill-color:#435762!important;
      opacity:1!important;
      font-size:14px!important;
      line-height:1.65!important;
    }

    body.ktw-zb-live .ktw-zb-source-detail>summary:after{
      color:#5a421f!important;
      -webkit-text-fill-color:#5a421f!important;
    }

    /* NDL全文・Ngram研究ブリッジの残存低コントラスト */
    body.ktw-zb-live :is(
      .ktw-ndl__head>span,
      .ktw-ndl-result__year
    ){
      color:#5a421f!important;
      -webkit-text-fill-color:#5a421f!important;
      opacity:1!important;
    }
    body.ktw-zb-live :is(
      .ktw-ndl-result__meta,
      .ktw-ndl__note
    ){
      color:#435762!important;
      -webkit-text-fill-color:#435762!important;
      opacity:1!important;
      font-size:14px!important;
      line-height:1.7!important;
    }

    /* ZERO BASE変数経由の残存補助色 */
    body.ktw-zb-live .ktw-zb-key span{
      color:#5a421f!important;
      -webkit-text-fill-color:#5a421f!important;
      font-size:14px!important;
      line-height:1.6!important;
    }
    body.ktw-zb-live :is(
      .ktw-zb-scenarios p,
      .ktw-zb-compare p,
      .ktw-zb-theories p,
      .ktw-zb-function p,
      .ktw-zb-history article p,
      .ktw-zb-evidence-list p,
      .ktw-zb-research-note p,
      .ktw-depth-nav>header p,
      .ktw-zb-tools-v2>header p,
      .ktw-bibliography-layer>header p,
      .ktw-citation-tools>div>p
    ){
      color:#435762!important;
      -webkit-text-fill-color:#435762!important;
      opacity:1!important;
      font-size:16px!important;
      line-height:1.85!important;
    }

    /* STORK19記事ヘッダーのメタ情報 */
    body.ktw-zb-live .article-header :is(
      .byline,
      .entry-meta,
      .date,
      .cat-name
    ),
    body.ktw-zb-live .article-header :is(
      .byline a,
      .entry-meta a,
      .date a,
      .cat-name a
    ){
      color:#435762!important;
      -webkit-text-fill-color:#435762!important;
      opacity:1!important;
    }
    body.ktw-zb-live .article-header .cat-name{
      background:#f3eadc!important;
      border-color:#d8c7ab!important;
    }

    /* STORK19関連記事：英語装飾と薄色を除去 */
    body.ktw-zb-live #related-box .h_ttl .gf{
      display:none!important;
    }
    body.ktw-zb-live #related-box .h_ttl,
    body.ktw-zb-live #related-box .h_ttl:after,
    body.ktw-zb-live #related-box .ttl,
    body.ktw-zb-live #related-box a{
      color:#243b4c!important;
      -webkit-text-fill-color:#243b4c!important;
      opacity:1!important;
    }
    body.ktw-zb-live #related-box .cat-name{
      color:#10283f!important;
      -webkit-text-fill-color:#10283f!important;
      background:#d6bd91!important;
      opacity:1!important;
    }

    /* STORK19パンくず・記事フッター */
    body.ktw-zb-live #breadcrumb,
    body.ktw-zb-live #breadcrumb .breadcrumb__li,
    body.ktw-zb-live #breadcrumb .breadcrumb__link,
    body.ktw-zb-live .article-footer .post-categories,
    body.ktw-zb-live .article-footer .post-categories a{
      color:#33434d!important;
      -webkit-text-fill-color:#33434d!important;
      opacity:1!important;
    }

    body.ktw-zb-live #breadcrumb .breadcrumb__link{
      text-decoration-color:#7a8a93!important;
    }

    body.ktw-zb-live .article-footer .post-categories a{
      display:inline-flex!important;
      align-items:center!important;
      min-height:36px!important;
      padding:6px 10px!important;
      border-radius:6px!important;
      background:#f3eadc!important;
    }

    /* パンくずはテーマ依存色を使わず紙色＋濃色へ固定 */
    body.single-post #breadcrumb,
    body.single-post .breadcrumb{
      background:#fbfaf7!important;
      color:#243b4c!important;
      -webkit-text-fill-color:#243b4c!important;
      opacity:1!important;
      text-shadow:none!important;
    }

    body.single-post #breadcrumb *,
    body.single-post .breadcrumb *{
      color:#243b4c!important;
      -webkit-text-fill-color:#243b4c!important;
      opacity:1!important;
      text-shadow:none!important;
    }

    body.single-post #breadcrumb *::before,
    body.single-post #breadcrumb *::after,
    body.single-post .breadcrumb *::before,
    body.single-post .breadcrumb *::after{
      color:#435762!important;
      -webkit-text-fill-color:#435762!important;
      border-color:#435762!important;
      opacity:1!important;
      text-shadow:none!important;
    }

    body.single-post #breadcrumb .breadcrumb__ul,
    body.single-post .breadcrumb .breadcrumb__ul{
      background:#fbfaf7!important;
    }

    body.single-post #breadcrumb .breadcrumb__li,
    body.single-post #breadcrumb .breadcrumb__link,
    body.single-post .breadcrumb .breadcrumb__li,
    body.single-post .breadcrumb .breadcrumb__link{
      color:#243b4c!important;
      -webkit-text-fill-color:#243b4c!important;
      opacity:1!important;
      font-size:14px!important;
      line-height:1.65!important;
    }

    body.single-post #breadcrumb a,
    body.single-post .breadcrumb a{
      color:#243b4c!important;
      -webkit-text-fill-color:#243b4c!important;
      text-decoration-color:#7a8a93!important;
    }

    /* 冒頭辞典ブロックは明るい紙面＋濃色、ラベルだけ濃紺＋白 */
    body.ktw-zb-live .ktw-zb-intro,
    body.ktw-zb-live .ktw-zb-intro .ktw-zb-dictionary,
    body.ktw-zb-live .ktw-zb-intro .ktw-zb-dict-block{
      color:#243b4c!important;
    }

    body.ktw-zb-live .ktw-zb-intro :is(
      p,
      span,
      strong,
      b,
      small,
      .ktw-zb-dict-reading,
      .ktw-zb-dict-main,
      .ktw-zb-dict-detail
    ){
      color:#243b4c!important;
      -webkit-text-fill-color:#243b4c!important;
      opacity:1!important;
      text-shadow:none!important;
    }

    body.ktw-zb-live .ktw-zb-intro .ktw-zb-dict-label{
      background:#10283f!important;
      color:#fff!important;
      -webkit-text-fill-color:#fff!important;
      opacity:1!important;
    }

    body.ktw-zb-live .ktw-zb-intro .ktw-zb-origin-status{
      background:#f3eadc!important;
      color:#5a421f!important;
      -webkit-text-fill-color:#5a421f!important;
      border-color:#d8c7ab!important;
    }

    /* 由来辞典ブロックは明るい紙面として文字色を一括安全化 */
    body.ktw-zb-live .ktw-zb-dict-block.is-origin{
      background:#fff!important;
      color:#243b4c!important;
    }

    body.ktw-zb-live .ktw-zb-dict-block.is-origin :is(
      p,
      span,
      strong,
      b,
      small
    ){
      color:#243b4c!important;
      -webkit-text-fill-color:#243b4c!important;
      opacity:1!important;
    }

    body.ktw-zb-live .ktw-zb-dict-block.is-origin .ktw-zb-attestation{
      border-top-color:#d9d4ca!important;
    }

    body.ktw-zb-live .ktw-zb-dict-block.is-origin .ktw-zb-attestation span{
      color:#5a421f!important;
      -webkit-text-fill-color:#5a421f!important;
      font-size:15px!important;
    }

    body.ktw-zb-live .ktw-zb-dict-block.is-origin .ktw-zb-attestation p{
      color:#435762!important;
      -webkit-text-fill-color:#435762!important;
      font-size:16px!important;
      line-height:1.75!important;
    }

    /* 辞典ラベルは濃紺背景のため白文字を絶対維持 */
    body.ktw-zb-live .ktw-zb-dict-label{
      color:#fff!important;
      -webkit-text-fill-color:#fff!important;
      opacity:1!important;
    }

    /* 由来ラベルは資料領域として和紙金＋濃茶を最終維持 */
    body.ktw-zb-live .ktw-zb-dict-block.is-origin .ktw-zb-dict-label{
      background:#efe2cc!important;
      border:1px solid #c9b186!important;
      color:#3f321f!important;
      -webkit-text-fill-color:#3f321f!important;
      opacity:1!important;
    }

    /* STORK19画像キャプション・汎用補助文字 */
    body.ktw-zb-live :is(
      figcaption,
      .wp-element-caption,
      .wp-block-image figcaption,
      .wp-block-table figcaption
    ){
      color:#435762!important;
      -webkit-text-fill-color:#435762!important;
      opacity:1!important;
      font-size:15px!important;
      line-height:1.75!important;
    }

/* =========================================================
   9.17. Research Workspace plain functional final lock
   ========================================================= */

/*
 * Workspace is a working surface.
 * Keep almost every surface light and let hierarchy come from borders,
 * spacing and type weight rather than dark fills.
 */
html body.page-id-2836.ktw-ui-system-v1 :where(
  .ktw-rx-start,
  .ktw-rx-mode,
  .ktrw-hero,
  .ktrw-search,
  .ktrw-suggest,
  .ktrw-selected,
  .ktrw-group,
  .ktrw-card,
  .ktrw-plan,
  .ktrw-dossier,
  .ktrw-dossier__panel,
  .ktrr,
  .ktrr__card,
  .ktrp,
  .ktrp-panel,
  .ktrp-project,
  .ktrp-section,
  .ktrp-route,
  .ktrp-atlas,
  .ktrp-metric,
  .ktrp-analysis-tools,
  .ktrg,
  .ktrg-section,
  .ktrg-item,
  .ktrg-metric,
  .ktrlog,
  .ktrlog-record,
  .ktw-ro-core,
  .ktw-ro-note,
  .ktw-ro-case,
  .ktw-ro-check,
  .ktw-ro-rev,
  .ktw-triaxis-link
){
  background:#fff!important;
  background-image:none!important;
  color:#243b4c!important;
  border-color:#d7dee2!important;
  box-shadow:none!important;
}

/* Secondary cards use a barely tinted surface, never a dark fill. */
html body.page-id-2836.ktw-ui-system-v1 :where(
  .ktrw-card,
  .ktrp-metric,
  .ktrp-project,
  .ktrp-route__step,
  .ktrp-atlas__item,
  .ktrg-item,
  .ktrg-metric,
  .ktrlog-record,
  .ktw-ro-case,
  .ktw-ro-note,
  .ktw-ro-check,
  .ktw-ro-rev
){
  background:#f8fafb!important;
}

/* Action controls: light surface + dark text by default. */
html body.page-id-2836.ktw-ui-system-v1 :where(
  .ktw-rx-actions a,
  .ktw-rx-mode a,
  .ktrw-search button,
  .ktrw-plan button,
  .ktrw-selected > a,
  .ktrp button,
  .ktrp-file-label,
  .ktrp-tool-launcher a,
  .ktrp-analysis-tools__grid a,
  .ktrp-next-action a,
  .ktrg button,
  .ktrg-file,
  .ktrlog button,
  .ktw-ro-core button,
  .ktw-ro-core a,
  .ktw-triaxis-link a
){
  min-height:44px!important;
  border:1px solid #b9c6cd!important;
  background:#f4f7f8!important;
  background-image:none!important;
  color:#173247!important;
  -webkit-text-fill-color:#173247!important;
  box-shadow:none!important;
  text-shadow:none!important;
  opacity:1!important;
}

html body.page-id-2836.ktw-ui-system-v1 :where(
  .ktw-rx-actions a,
  .ktw-rx-mode a,
  .ktrw-search button,
  .ktrw-plan button,
  .ktrw-selected > a,
  .ktrp button,
  .ktrp-file-label,
  .ktrp-tool-launcher a,
  .ktrp-analysis-tools__grid a,
  .ktrp-next-action a,
  .ktrg button,
  .ktrg-file,
  .ktrlog button,
  .ktw-ro-core button,
  .ktw-ro-core a,
  .ktw-triaxis-link a
):hover,
html body.page-id-2836.ktw-ui-system-v1 :where(
  .ktw-rx-actions a,
  .ktw-rx-mode a,
  .ktrw-search button,
  .ktrw-plan button,
  .ktrw-selected > a,
  .ktrp button,
  .ktrp-file-label,
  .ktrp-tool-launcher a,
  .ktrp-analysis-tools__grid a,
  .ktrp-next-action a,
  .ktrg button,
  .ktrg-file,
  .ktrlog button,
  .ktw-ro-core button,
  .ktw-ro-core a,
  .ktw-triaxis-link a
):focus-visible{
  background:#e9eff2!important;
  color:#10283f!important;
  -webkit-text-fill-color:#10283f!important;
  border-color:#879ca8!important;
}

/* Primary/selected means stronger border, not black fill. */
html body.page-id-2836.ktw-ui-system-v1 :where(
  .ktw-rx-actions a.primary,
  .ktw-rx-mode a[aria-current="page"],
  .ktrp button.is-primary,
  .ktrg button.primary,
  .ktrg-item-actions .primary,
  .ktrlog button.is-primary,
  .ktw-ro-core button.primary,
  .is-active
){
  background:#e7eef2!important;
  background-image:none!important;
  color:#10283f!important;
  -webkit-text-fill-color:#10283f!important;
  border-color:#6f8795!important;
  box-shadow:inset 0 -3px 0 #b48b4c!important;
  text-shadow:none!important;
  opacity:1!important;
}

html body.page-id-2836.ktw-ui-system-v1 :where(
  .ktw-rx-actions a.primary,
  .ktw-rx-mode a[aria-current="page"],
  .ktrp button.is-primary,
  .ktrg button.primary,
  .ktrg-item-actions .primary,
  .ktrlog button.is-primary,
  .ktw-ro-core button.primary,
  .is-active
) *{
  color:#10283f!important;
  -webkit-text-fill-color:#10283f!important;
}

/* Identity marks are also light; no dark chip is needed for comprehension. */
html body.page-id-2836.ktw-ui-system-v1 :where(
  .ktrw-card > b,
  .ktrp-target > b,
  .ktrp-route__step > b,
  .ktrlog-record__mark,
  .ktw-ro-score
){
  background:#eef3f5!important;
  background-image:none!important;
  color:#243b4c!important;
  -webkit-text-fill-color:#243b4c!important;
  border:1px solid #cbd6dc!important;
  box-shadow:none!important;
  text-shadow:none!important;
}

html body.page-id-2836.ktw-ui-system-v1 :where(
  .ktrw-card > b,
  .ktrp-target > b,
  .ktrp-route__step > b,
  .ktrlog-record__mark,
  .ktw-ro-score
) *{
  color:#243b4c!important;
  -webkit-text-fill-color:#243b4c!important;
}

/* Supporting copy is secondary, but never faint. */
html body.page-id-2836.ktw-ui-system-v1 :where(
  .ktrw,
  .ktrp,
  .ktrr,
  .ktrg,
  .ktrlog,
  .ktw-ro-core
) :where(p,small,label,span,em,li,dd,dt){
  color:#44515c!important;
  -webkit-text-fill-color:#44515c!important;
  opacity:1!important;
}

/* Headings remain clearly darker than body copy. */
html body.page-id-2836.ktw-ui-system-v1 :where(
  .ktrw,
  .ktrp,
  .ktrr,
  .ktrg,
  .ktrlog,
  .ktw-ro-core
) :where(h1,h2,h3,h4,h5,h6,strong){
  color:#10283f!important;
  -webkit-text-fill-color:#10283f!important;
  opacity:1!important;
}

/* Status colours use pale surfaces and dark foregrounds. */
html body.page-id-2836.ktw-ui-system-v1 :where(
  .ktrp-status,
  .ktrp-route__state,
  .ktrw-dossier__status,
  .ktrlog-metric span
){
  background:#eef3f5!important;
  color:#44515c!important;
  -webkit-text-fill-color:#44515c!important;
  border-color:#cbd6dc!important;
  opacity:1!important;
}

@media(max-width:760px){
  html body.page-id-2836.ktw-ui-system-v1 :where(
    .ktw-rx-actions a,
    .ktw-rx-mode a,
    .ktrw-search button,
    .ktrw-plan button,
    .ktrw-selected > a,
    .ktrp button,
    .ktrp-file-label,
    .ktrp-tool-launcher a,
    .ktrp-analysis-tools__grid a,
    .ktrp-next-action a,
    .ktrg button,
    .ktrg-file,
    .ktrlog button,
    .ktw-ro-core button,
    .ktw-ro-core a,
    .ktw-triaxis-link a
  ){
    min-height:46px!important;
    font-size:16px!important;
  }
}

/* =========================================================
   Canonical migrated component: Article Research Status (snippet 268)
   ========================================================= */
.ktw-research-status{
            width:100%;
            max-width:900px;
            margin:34px auto;
            padding:22px;
            border:1px solid #cbd6dc;
            border-top:4px solid #183247;
            border-radius:14px;
            background:#f7fafb;
            color:#183247;
            box-sizing:border-box;
        }
        .ktw-research-status *{box-sizing:border-box}
        .ktw-research-status__head>span{
            display:block;
            color:#6b4e2c;
            font-size:15px;
            font-weight:900;
            letter-spacing:.08em;
        }
        .ktw-research-status__head h3{
            margin:5px 0 4px!important;
            color:#173247!important;
            font-size:21px!important;
            line-height:1.55!important;
        }
        .ktw-research-status__head p{
            margin:0!important;
            color:#44515c!important;
            font-size:15px!important;
            line-height:1.8!important;
        }
        .ktw-research-status__grid{
            display:grid;
            grid-template-columns:1fr 1fr;
            gap:12px;
            margin-top:16px;
        }
        .ktw-research-status__item{
            padding:16px;
            border:1px solid #d9e1e5;
            border-radius:11px;
            background:#fff;
        }
        .ktw-research-status__item small{
            display:block;
            color:#44515c;
            font-size:15px;
            font-weight:800;
        }
        .ktw-research-status__item strong{
            display:block;
            margin-top:4px;
            color:#173247;
            font-size:18px;
            line-height:1.55;
        }
        .ktw-research-status__item p{
            margin:7px 0 0!important;
            color:#44515c!important;
            font-size:15px!important;
            line-height:1.8!important;
        }
        .ktw-research-status__item span{
            display:inline-flex;
            margin-top:9px;
            padding:4px 9px;
            border-radius:999px;
            background:#eef3f5;
            color:#375467;
            font-size:15px;
            font-weight:800;
        }
        .ktw-research-status__details{
            margin-top:14px;
            border-top:1px solid #d8e0e4;
        }
        .ktw-research-status__details summary{
            display:flex;
            align-items:center;
            min-height:48px;
            padding:8px 2px;
            color:#274d63;
            font-size:15px;
            font-weight:850;
            cursor:pointer;
        }
        .ktw-research-status__details>div{
            padding:12px 14px 14px;
            border-radius:10px;
            background:#fff;
        }
        .ktw-research-status__details h4{
            margin:0 0 5px!important;
            color:#173247!important;
            font-size:16px!important;
        }
        .ktw-research-status__details h4:not(:first-child){margin-top:14px!important}
        .ktw-research-status__details p{
            margin:0!important;
            color:#44515c!important;
            font-size:15px!important;
            line-height:1.85!important;
        }
        @media(max-width:700px){
            .ktw-research-status{padding:18px 15px}
            .ktw-research-status__grid{grid-template-columns:1fr}
            .ktw-research-status__head h3{font-size:20px!important}
        }

/* =========================================================
   9.18. Article plain dictionary final lock
   ========================================================= */

/* Reading surfaces stay light and quiet. */
html body.ktw-ui-system-v1.ktw-zb-live :where(
  .ktw-zb-dictionary,
  .ktw-zb-dict-block,
  .ktw-zb-example,
  .ktw-zb-history,
  .ktw-zb-evidence-list article,
  .ktw-zb-research,
  .ktw-inline-compare,
  .ktw-lit-basis,
  .ktw-lit-card,
  .ktw-meaning-map,
  .ktw-meaning-map__card,
  .ktw-ndl,
  .ktw-observe,
  .ktw-quick-check,
  .ktw-research-status,
  .ktw-research-literature-cards,
  .ktw-after__author,
  .ktw-after__mini-card,
  .ktw-after__related-item,
  .ktw-after__sources,
  .ktw-current-proverb-tools,
  .ktw-read-after-tool,
  .ktw-article-hub-links
){
  background:#fff!important;
  background-image:none!important;
  color:#243b4c!important;
  border-color:#d7dee2!important;
  box-shadow:none!important;
}

/* Secondary cards use only a subtle neutral tint. */
html body.ktw-ui-system-v1.ktw-zb-live :where(
  .ktw-zb-example,
  .ktw-zb-evidence-list article,
  .ktw-lit-card,
  .ktw-meaning-map__card,
  .ktw-research-status__item,
  .ktw-after__mini-card,
  .ktw-after__related-item
){
  background:#f8fafb!important;
}

/* No dark decorative labels inside articles. */
html body.ktw-ui-system-v1.ktw-zb-live :where(
  .ktw-zb-dict-label,
  .ktw-zb-key,
  .ktw-zb-example__num,
  .ktw-after__sources-head,
  .ktw-after__author-mark,
  .ktw-after__icon,
  .ktw-research-type,
  .ktw-lit-kicker,
  .ktw-after__evidence-label,
  .ktw-after__primary-source
){
  background:#eef3f5!important;
  background-image:none!important;
  border:1px solid #cbd6dc!important;
  color:#243b4c!important;
  -webkit-text-fill-color:#243b4c!important;
  text-shadow:none!important;
  box-shadow:none!important;
  opacity:1!important;
}

/* Origin labels may keep a warm paper cue, but never pale text. */
html body.ktw-ui-system-v1.ktw-zb-live .ktw-zb-dict-block.is-origin .ktw-zb-dict-label{
  background:#f3eadc!important;
  border-color:#d8c29b!important;
  color:#3f321f!important;
  -webkit-text-fill-color:#3f321f!important;
}

/* Headings are consistently dark. */
html body.ktw-ui-system-v1.ktw-zb-live :where(
  .entry-content,
  .ktw-after,
  .ktw-article-hub-links
) :where(h1,h2,h3,h4,h5,h6,strong){
  color:#10283f!important;
  -webkit-text-fill-color:#10283f!important;
  opacity:1!important;
}

/* Supporting copy is secondary, not faint. */
html body.ktw-ui-system-v1.ktw-zb-live :where(
  .entry-content,
  .ktw-after,
  .ktw-article-hub-links
) :where(p,small,label,figcaption,dd,dt){
  color:#44515c!important;
  -webkit-text-fill-color:#44515c!important;
  opacity:1!important;
}

/* Functional controls use light surfaces and dark labels. */
html body.ktw-ui-system-v1.ktw-zb-live :where(
  .ktw-zb-function a,
  .ktw-zb-toolgrid a,
  .ktw-ndl__actions a,
  .ktw-ndl__actions button,
  .ktw-inline-compare__run,
  .ktw-quick-check button,
  .ktw-quick-check__relation-link,
  .ktw-after__mini-links a,
  .ktw-after__chips a,
  .ktw-current-proverb-tools a,
  .ktw-read-after-tool a,
  .ktw-article-hub-links a
){
  min-height:44px!important;
  border:1px solid #b9c6cd!important;
  background:#f4f7f8!important;
  background-image:none!important;
  color:#173247!important;
  -webkit-text-fill-color:#173247!important;
  box-shadow:none!important;
  text-shadow:none!important;
  opacity:1!important;
}

html body.ktw-ui-system-v1.ktw-zb-live :where(
  .ktw-zb-function a,
  .ktw-zb-toolgrid a,
  .ktw-ndl__actions a,
  .ktw-ndl__actions button,
  .ktw-inline-compare__run,
  .ktw-quick-check button,
  .ktw-quick-check__relation-link,
  .ktw-after__mini-links a,
  .ktw-after__chips a,
  .ktw-current-proverb-tools a,
  .ktw-read-after-tool a,
  .ktw-article-hub-links a
):hover,
html body.ktw-ui-system-v1.ktw-zb-live :where(
  .ktw-zb-function a,
  .ktw-zb-toolgrid a,
  .ktw-ndl__actions a,
  .ktw-ndl__actions button,
  .ktw-inline-compare__run,
  .ktw-quick-check button,
  .ktw-quick-check__relation-link,
  .ktw-after__mini-links a,
  .ktw-after__chips a,
  .ktw-current-proverb-tools a,
  .ktw-read-after-tool a,
  .ktw-article-hub-links a
):focus-visible{
  background:#e9eff2!important;
  color:#10283f!important;
  -webkit-text-fill-color:#10283f!important;
  border-color:#879ca8!important;
}

/* Prose links remain conventional blue; card/action links keep their own style. */
html body.ktw-ui-system-v1.ktw-zb-live .entry-content :where(p,li,dd,dt,figcaption) a{
  color:#155b82!important;
  -webkit-text-fill-color:#155b82!important;
  opacity:1!important;
}

/* Tables stay readable without dark headers. */
html body.ktw-ui-system-v1.ktw-zb-live :where(
  .entry-content table,
  .ktw-observe__table
){
  background:#fff!important;
  color:#243b4c!important;
}

html body.ktw-ui-system-v1.ktw-zb-live :where(
  .entry-content th,
  .ktw-observe__table th
){
  background:#eef3f5!important;
  color:#10283f!important;
  -webkit-text-fill-color:#10283f!important;
}

/* Details / summaries never rely on dark fills. */
html body.ktw-ui-system-v1.ktw-zb-live :where(
  details,
  summary
){
  color:#243b4c!important;
  -webkit-text-fill-color:#243b4c!important;
}

html body.ktw-ui-system-v1.ktw-zb-live summary{
  min-height:44px!important;
}

/* Keep real inset between every recurring research card and its border. */
html body.ktw-ui-system-v1.ktw-zb-live :where(
  .ktw-zb-dict-block,
  .ktw-zb-example,
  .ktw-zb-evidence-list article,
  .ktw-lit-card,
  .ktw-meaning-map__card,
  .ktw-research-status__item,
  .ktw-after__mini-card,
  .ktw-after__related-item
){
  padding:clamp(16px,2vw,22px)!important;
}

@media(max-width:760px){
  html body.ktw-ui-system-v1.ktw-zb-live :where(
    .ktw-zb-dict-block,
    .ktw-zb-example,
    .ktw-zb-evidence-list article,
    .ktw-lit-card,
    .ktw-meaning-map__card,
    .ktw-research-status__item,
    .ktw-after__mini-card,
    .ktw-after__related-item
  ){
    padding:16px!important;
  }

  html body.ktw-ui-system-v1.ktw-zb-live :where(
    .ktw-zb-function a,
    .ktw-zb-toolgrid a,
    .ktw-ndl__actions a,
    .ktw-ndl__actions button,
    .ktw-inline-compare__run,
    .ktw-quick-check button,
    .ktw-after__mini-links a,
    .ktw-after__chips a,
    .ktw-current-proverb-tools a,
    .ktw-read-after-tool a,
    .ktw-article-hub-links a
  ){
    min-height:46px!important;
    font-size:16px!important;
  }
}

/* =========================================================
   9.19. Article share controls – neutral readable UI
   ========================================================= */
html body.ktw-ui-system-v1.ktw-zb-live .article-header .sns_btn__ul{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  margin:18px 0 8px!important;
}
html body.ktw-ui-system-v1.ktw-zb-live .article-header .sns_btn__li{
  margin:0!important;
}
html body.ktw-ui-system-v1.ktw-zb-live .article-header .sns_btn__link{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  min-height:44px!important;
  padding:9px 12px!important;
  border:1px solid #b9c6cd!important;
  border-radius:10px!important;
  background:#f4f7f8!important;
  background-image:none!important;
  color:#173247!important;
  -webkit-text-fill-color:#173247!important;
  box-shadow:none!important;
  text-shadow:none!important;
  opacity:1!important;
}
html body.ktw-ui-system-v1.ktw-zb-live .article-header .sns_btn__link:hover,
html body.ktw-ui-system-v1.ktw-zb-live .article-header .sns_btn__link:focus-visible{
  background:#e9eff2!important;
  border-color:#879ca8!important;
  color:#10283f!important;
  -webkit-text-fill-color:#10283f!important;
}
html body.ktw-ui-system-v1.ktw-zb-live .article-header .sns_btn__text{
  color:inherit!important;
  -webkit-text-fill-color:inherit!important;
  font-size:15px!important;
  font-weight:800!important;
  opacity:1!important;
}
html body.ktw-ui-system-v1.ktw-zb-live .article-header .stk_sns__svgicon{
  width:18px!important;
  height:18px!important;
  color:inherit!important;
  fill:currentColor!important;
  opacity:1!important;
}
@media(max-width:620px){
  html body.ktw-ui-system-v1.ktw-zb-live .article-header .sns_btn__ul{
    gap:7px!important;
  }
  html body.ktw-ui-system-v1.ktw-zb-live .article-header .sns_btn__link{
    min-height:44px!important;
    padding:9px 11px!important;
  }
}

/* Bottom share controls follow the same neutral readable pattern. */
html body.ktw-ui-system-v1.ktw-zb-live #single_foot .sharewrap .sns_btn__ul{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
}
html body.ktw-ui-system-v1.ktw-zb-live #single_foot .sharewrap .sns_btn__li{
  margin:0!important;
}
html body.ktw-ui-system-v1.ktw-zb-live #single_foot .sharewrap .sns_btn__link{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  min-height:44px!important;
  padding:9px 12px!important;
  border:1px solid #b9c6cd!important;
  border-radius:10px!important;
  background:#f4f7f8!important;
  background-image:none!important;
  color:#173247!important;
  -webkit-text-fill-color:#173247!important;
  box-shadow:none!important;
  text-shadow:none!important;
  opacity:1!important;
}
html body.ktw-ui-system-v1.ktw-zb-live #single_foot .sharewrap .sns_btn__link:hover,
html body.ktw-ui-system-v1.ktw-zb-live #single_foot .sharewrap .sns_btn__link:focus-visible{
  background:#e9eff2!important;
  border-color:#879ca8!important;
  color:#10283f!important;
  -webkit-text-fill-color:#10283f!important;
}
html body.ktw-ui-system-v1.ktw-zb-live #single_foot .sharewrap .sns_btn__text{
  color:inherit!important;
  -webkit-text-fill-color:inherit!important;
  font-size:15px!important;
  font-weight:800!important;
  opacity:1!important;
}
html body.ktw-ui-system-v1.ktw-zb-live #single_foot .sharewrap .stk_sns__svgicon{
  width:18px!important;
  height:18px!important;
  color:inherit!important;
  fill:currentColor!important;
  opacity:1!important;
}

/* =========================================================
   9.20. Mobile previous / next article navigation
   ========================================================= */
@media(max-width:760px){
  html body.ktw-ui-system-v1.ktw-zb-live #np-post{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    margin:18px 0 28px!important;
  }

  html body.ktw-ui-system-v1.ktw-zb-live #np-post .np-post-list{
    width:100%!important;
    float:none!important;
    margin:0!important;
  }

  html body.ktw-ui-system-v1.ktw-zb-live #np-post .np-post-list a{
    position:relative!important;
    display:block!important;
    min-height:48px!important;
    padding:14px 16px!important;
    border:1px solid #d7dee2!important;
    border-radius:12px!important;
    background:#f8fafb!important;
    background-image:none!important;
    color:#173247!important;
    -webkit-text-fill-color:#173247!important;
    box-shadow:none!important;
    text-shadow:none!important;
    opacity:1!important;
    overflow:visible!important;
  }

  html body.ktw-ui-system-v1.ktw-zb-live #np-post .np-post-list a::before,
  html body.ktw-ui-system-v1.ktw-zb-live #np-post .np-post-list a::after{
    content:none!important;
    display:none!important;
  }

  html body.ktw-ui-system-v1.ktw-zb-live #np-post .eyecatch{
    display:none!important;
  }

  html body.ktw-ui-system-v1.ktw-zb-live #np-post .ttl{
    display:block!important;
    position:static!important;
    padding:0!important;
    margin:0!important;
    background:none!important;
    color:#173247!important;
    -webkit-text-fill-color:#173247!important;
    font-size:16px!important;
    font-weight:800!important;
    line-height:1.6!important;
    text-shadow:none!important;
    opacity:1!important;
  }

  html body.ktw-ui-system-v1.ktw-zb-live #np-post .prev .ttl::before{
    content:"前の記事：";
    color:#44515c!important;
    -webkit-text-fill-color:#44515c!important;
    font-weight:700!important;
  }

  html body.ktw-ui-system-v1.ktw-zb-live #np-post .next .ttl::before{
    content:"次の記事：";
    color:#44515c!important;
    -webkit-text-fill-color:#44515c!important;
    font-weight:700!important;
  }
}

/* =========================================================
   9.21. Research Workspace guide – canonical simple UI
   ========================================================= */
html body.page-id-2836.ktw-ui-system-v1 .ktw-workspace-guide{
  width:100%!important;
  margin:24px 0!important;
  padding:22px!important;
  border:1px solid #d7dee2!important;
  border-radius:16px!important;
  background:#fff!important;
  background-image:none!important;
  color:#243b4c!important;
  box-shadow:none!important;
}
html body.page-id-2836.ktw-ui-system-v1 .ktw-workspace-guide__head h2{
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:none!important;
  color:#10283f!important;
  -webkit-text-fill-color:#10283f!important;
  font-size:clamp(26px,3vw,36px)!important;
  line-height:1.4!important;
  font-weight:900!important;
}
html body.page-id-2836.ktw-ui-system-v1 .ktw-workspace-guide__head p{
  margin:10px 0 0!important;
  color:#334b58!important;
  -webkit-text-fill-color:#334b58!important;
  font-size:17px!important;
  line-height:1.85!important;
}
html body.page-id-2836.ktw-ui-system-v1 .ktw-workspace-guide__steps{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  margin:20px 0 0!important;
  padding:0!important;
  list-style:none!important;
}
html body.page-id-2836.ktw-ui-system-v1 .ktw-workspace-guide__steps li{
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr)!important;
  gap:10px!important;
  align-items:start!important;
  margin:0!important;
  padding:16px!important;
  border:1px solid #d9e1e5!important;
  border-radius:12px!important;
  background:#f8fafb!important;
  color:#243b4c!important;
}
html body.page-id-2836.ktw-ui-system-v1 .ktw-workspace-guide__steps b{
  display:grid!important;
  place-items:center!important;
  width:38px!important;
  height:38px!important;
  border-radius:50%!important;
  background:#10283f!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:16px!important;
  font-weight:900!important;
  line-height:1!important;
}
html body.page-id-2836.ktw-ui-system-v1 .ktw-workspace-guide__steps strong{
  display:block!important;
  color:#10283f!important;
  -webkit-text-fill-color:#10283f!important;
  font-size:16px!important;
  line-height:1.5!important;
  font-weight:900!important;
}
html body.page-id-2836.ktw-ui-system-v1 .ktw-workspace-guide__steps span{
  display:block!important;
  margin-top:5px!important;
  color:#44515c!important;
  -webkit-text-fill-color:#44515c!important;
  font-size:15px!important;
  line-height:1.7!important;
}
html body.page-id-2836.ktw-ui-system-v1 .ktw-workspace-guide__mode{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:9px!important;
  margin-top:18px!important;
  padding:14px!important;
  border:1px solid #d9e1e5!important;
  border-radius:12px!important;
  background:#f8fafb!important;
}
html body.page-id-2836.ktw-ui-system-v1 .ktw-workspace-guide__mode a,
html body.page-id-2836.ktw-ui-system-v1 .ktw-workspace-guide__actions a{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:46px!important;
  padding:10px 16px!important;
  border:1px solid #aebdc5!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#173247!important;
  -webkit-text-fill-color:#173247!important;
  font-size:16px!important;
  line-height:1.4!important;
  font-weight:900!important;
  text-decoration:none!important;
  box-shadow:none!important;
  text-shadow:none!important;
}
html body.page-id-2836.ktw-ui-system-v1 .ktw-workspace-guide__mode a.is-current,
html body.page-id-2836.ktw-ui-system-v1 .ktw-workspace-guide__actions a.is-primary{
  border-color:#10283f!important;
  background:#10283f!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
html body.page-id-2836.ktw-ui-system-v1 .ktw-workspace-guide__mode p{
  flex:1 1 100%!important;
  margin:2px 0 0!important;
  color:#44515c!important;
  -webkit-text-fill-color:#44515c!important;
  font-size:15px!important;
  line-height:1.7!important;
}
html body.page-id-2836.ktw-ui-system-v1 .ktw-workspace-guide__actions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:9px!important;
  margin-top:14px!important;
}
html body.page-id-2836.ktw-ui-system-v1 .ktw-workspace-guide__note{
  margin:14px 0 0!important;
  padding:15px 17px!important;
  border-left:4px solid #537063!important;
  border-radius:9px!important;
  background:#f4f8f5!important;
  color:#334b58!important;
  -webkit-text-fill-color:#334b58!important;
  font-size:15px!important;
  line-height:1.75!important;
}
html body.page-id-2836.ktw-ui-system-v1 .ktw-workspace-guide__note strong{
  color:#183247!important;
  -webkit-text-fill-color:#183247!important;
}
@media(max-width:900px){
  html body.page-id-2836.ktw-ui-system-v1 .ktw-workspace-guide__steps{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:620px){
  html body.page-id-2836.ktw-ui-system-v1 .ktw-workspace-guide{
    margin:16px 0!important;
    padding:17px!important;
  }
  html body.page-id-2836.ktw-ui-system-v1 .ktw-workspace-guide__steps{
    grid-template-columns:1fr!important;
  }
  html body.page-id-2836.ktw-ui-system-v1 .ktw-workspace-guide__mode a,
  html body.page-id-2836.ktw-ui-system-v1 .ktw-workspace-guide__actions a{
    width:100%!important;
  }
}

/* =========================================================
   9.22. Article layout anti-regression – canonical footer/status
   ========================================================= */

/* Research status: tracks may shrink, cards must never force horizontal overflow. */
html body.ktw-ui-system-v1.ktw-zb-live .ktw-research-status{
  width:min(100%,900px)!important;
  max-width:900px!important;
  min-width:0!important;
  margin:34px auto!important;
  box-sizing:border-box!important;
}
html body.ktw-ui-system-v1.ktw-zb-live .ktw-research-status__grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
html body.ktw-ui-system-v1.ktw-zb-live .ktw-research-status__item{
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  box-sizing:border-box!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}
html body.ktw-ui-system-v1.ktw-zb-live .ktw-research-status__item :where(small,strong,p,span){
  min-width:0!important;
  max-width:100%!important;
  overflow-wrap:anywhere!important;
  white-space:normal!important;
}
html body.ktw-ui-system-v1.ktw-zb-live .ktw-research-status__item span{
  display:inline-flex!important;
  flex-wrap:wrap!important;
}
html body.ktw-ui-system-v1.ktw-zb-live .ktw-research-status__details{
  min-width:0!important;
  max-width:100%!important;
}
@media(max-width:820px){
  html body.ktw-ui-system-v1.ktw-zb-live .ktw-research-status__grid{
    grid-template-columns:1fr!important;
  }
}

/* Article category: no icon-font dependency and no floating layout. */
html body.ktw-ui-system-v1.ktw-zb-live .article-footer{
  width:min(100%,900px)!important;
  max-width:900px!important;
  margin:22px auto 0!important;
  padding:0!important;
  min-height:0!important;
  height:auto!important;
  float:none!important;
  position:static!important;
  clear:both!important;
}
html body.ktw-ui-system-v1.ktw-zb-live .article-footer .post-categories{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:8px!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
html body.ktw-ui-system-v1.ktw-zb-live .article-footer .post-categories li{
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
html body.ktw-ui-system-v1.ktw-zb-live .article-footer .post-categories li::before,
html body.ktw-ui-system-v1.ktw-zb-live .article-footer .post-categories li::after{
  content:none!important;
  display:none!important;
}
html body.ktw-ui-system-v1.ktw-zb-live .article-footer .post-categories a{
  display:inline-flex!important;
  align-items:center!important;
  min-height:40px!important;
  padding:8px 12px!important;
  border:1px solid #c6d1d7!important;
  border-radius:9px!important;
  background:#f8fafb!important;
  color:#334b58!important;
  -webkit-text-fill-color:#334b58!important;
  font-size:15px!important;
  line-height:1.4!important;
  text-decoration:none!important;
  box-shadow:none!important;
}
html body.ktw-ui-system-v1.ktw-zb-live .article-footer .post-categories a::before,
html body.ktw-ui-system-v1.ktw-zb-live .article-footer .post-categories a::after{
  content:none!important;
  display:none!important;
}

/* Single footer owns its layout; STORK floats/absolute sizing are disabled. */
html body.ktw-ui-system-v1.ktw-zb-live #single_foot{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:16px!important;
  width:min(100%,900px)!important;
  max-width:900px!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  margin:18px auto 40px!important;
  padding:0!important;
  float:none!important;
  clear:both!important;
  position:static!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
html body.ktw-ui-system-v1.ktw-zb-live #single_foot .sharewrap{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  float:none!important;
  clear:both!important;
  position:static!important;
}
html body.ktw-ui-system-v1.ktw-zb-live #single_foot .sharewrap .sns_btn__ul{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
html body.ktw-ui-system-v1.ktw-zb-live #single_foot .sharewrap .sns_btn__li{
  display:block!important;
  flex:0 0 auto!important;
  width:auto!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  float:none!important;
  position:static!important;
}
html body.ktw-ui-system-v1.ktw-zb-live #single_foot .sharewrap .sns_btn__link{
  width:auto!important;
  max-width:none!important;
  margin:0!important;
  position:static!important;
}

/* Previous/next is text-first on every device. */
html body.ktw-ui-system-v1.ktw-zb-live #np-post{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  float:none!important;
  clear:both!important;
  position:static!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
html body.ktw-ui-system-v1.ktw-zb-live #np-post .np-post-list{
  display:block!important;
  width:auto!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  float:none!important;
  position:static!important;
  box-sizing:border-box!important;
}
html body.ktw-ui-system-v1.ktw-zb-live #np-post .np-post-list a{
  display:block!important;
  position:static!important;
  width:100%!important;
  min-width:0!important;
  min-height:52px!important;
  height:auto!important;
  margin:0!important;
  padding:14px 16px!important;
  border:1px solid #d7dee2!important;
  border-radius:12px!important;
  background:#f8fafb!important;
  background-image:none!important;
  color:#173247!important;
  -webkit-text-fill-color:#173247!important;
  box-shadow:none!important;
  text-shadow:none!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
html body.ktw-ui-system-v1.ktw-zb-live #np-post .np-post-list a::before,
html body.ktw-ui-system-v1.ktw-zb-live #np-post .np-post-list a::after{
  content:none!important;
  display:none!important;
}
html body.ktw-ui-system-v1.ktw-zb-live #np-post .eyecatch{
  display:none!important;
}
html body.ktw-ui-system-v1.ktw-zb-live #np-post .ttl{
  display:block!important;
  position:static!important;
  width:auto!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  background:none!important;
  color:#173247!important;
  -webkit-text-fill-color:#173247!important;
  font-size:16px!important;
  font-weight:800!important;
  line-height:1.6!important;
  text-shadow:none!important;
  opacity:1!important;
  overflow-wrap:anywhere!important;
}
html body.ktw-ui-system-v1.ktw-zb-live #np-post .prev .ttl::before{
  content:"前の記事："!important;
  color:#44515c!important;
  -webkit-text-fill-color:#44515c!important;
  font-weight:700!important;
}
html body.ktw-ui-system-v1.ktw-zb-live #np-post .next .ttl::before{
  content:"次の記事："!important;
  color:#44515c!important;
  -webkit-text-fill-color:#44515c!important;
  font-weight:700!important;
}
@media(max-width:680px){
  html body.ktw-ui-system-v1.ktw-zb-live #single_foot{
    gap:12px!important;
    margin:16px auto 30px!important;
  }
  html body.ktw-ui-system-v1.ktw-zb-live #single_foot .sharewrap .sns_btn__ul{
    justify-content:flex-start!important;
  }
  html body.ktw-ui-system-v1.ktw-zb-live #np-post{
    grid-template-columns:1fr!important;
    gap:9px!important;
  }
}

/* =========================================================
   10. Reduced motion / print
   ========================================================= */
@media (prefers-reduced-motion:reduce){
  html body.ktw-ui-system-v1 *,
  html body.ktw-ui-system-v1 *::before,
  html body.ktw-ui-system-v1 *::after{
    scroll-behavior:auto!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
}

@media print{
  html body.ktw-ui-system-v1{
    background:#fff!important;
    color:#000!important;
    font-size:12pt!important;
  }
  html body.ktw-ui-system-v1 :where(#header,#g_nav,#sidebar,.ktw-portal__commandbar,button){
    display:none!important;
  }
  html body.ktw-ui-system-v1 :where(a){
    color:#000!important;
    text-decoration:underline!important;
  }
}
