#iwano-va-wrap{
 position:fixed; right:20px; bottom:20px; z-index:9999;
}
#iwano-va-toggle{
 background:#000;color:#fff;border:none;border-radius:50%;
 width:48px;height:48px;font-size:22px;cursor:pointer;
}
#iwano-va-panel{
 position:absolute;
 right:0;
 bottom:60px;
 min-width:180px;
 writing-mode:horizontal-tb;
 background:#fff;
 border:1px solid #ccc;
 padding:10px;
 display:flex;
 flex-direction:column;
 gap:6px;
 max-height:0;
 overflow:hidden;
 transition:max-height .3s ease, opacity .3s ease;
 opacity:0;
}
#iwano-va-panel.open{
 max-height:420px;
 opacity:1;
}
#iwano-va-panel button{width:100%;}

/* Font size */
body[data-font='large']{font-size:1.25em;}
body[data-font='xlarge']{font-size:1.5em;}

/* Line height */
body.iwano-line{line-height:2.0;}

/* Contrast scoped safely */
body.iwano-contrast header,
body.iwano-contrast main,
body.iwano-contrast footer,
body.iwano-contrast .container,
body.iwano-contrast .content,
body.iwano-contrast .sidebar,
body.iwano-contrast .widget{
 background:#000 !important;
 color:#fff !important;
}

body.iwano-contrast-strong header,
body.iwano-contrast-strong main,
body.iwano-contrast-strong footer,
body.iwano-contrast-strong .container,
body.iwano-contrast-strong .content,
body.iwano-contrast-strong .sidebar,
body.iwano-contrast-strong .widget{
 background:#000 !important;
 color:#ff0 !important;
}

/* Text inside those areas */
body.iwano-contrast header *,
body.iwano-contrast main *,
body.iwano-contrast footer *,
body.iwano-contrast .container *,
body.iwano-contrast .content *,
body.iwano-contrast .sidebar *,
body.iwano-contrast .widget *{
 color:#fff !important;
}

body.iwano-contrast-strong header *,
body.iwano-contrast-strong main *,
body.iwano-contrast-strong footer *,
body.iwano-contrast-strong .container *,
body.iwano-contrast-strong .content *,
body.iwano-contrast-strong .sidebar *,
body.iwano-contrast-strong .widget *{
 color:#ff0 !important;
}

/* Panel follows mode */
body.iwano-contrast #iwano-va-panel,
body.iwano-contrast-strong #iwano-va-panel{
 background:#000;
}

/* Links */
body.iwano-contrast a{color:#0ff !important; text-decoration:underline;}
body.iwano-contrast-strong a{color:#ff0 !important; text-decoration:underline;}


/* v3.7.1 fixed ultra-contrast panel */
#iwano-va-panel,
#iwano-va-toggle{
 background:#000 !important;
 color:#ff0 !important;
 border-color:#ff0 !important;
}
#iwano-va-panel button{
 color:#ff0 !important;
 border:1px solid #ff0 !important;
}


/* === v3.7.2 操作パネルは常時 超コントラスト配色 === */
#iwano-va-panel,
#iwano-va-toggle{
  background:#000 !important;
  color:#ff0 !important;
  border-color:#ff0 !important;
}
#iwano-va-panel button{
  color:#ff0 !important;
  border:1px solid #ff0 !important;
}


/* === v3.7.2 ウィジェットタイトル視認性改善 === */
/* 初期値：代替案A（左ボーダーで強調・背景は触らない） */
body.iwano-contrast .widget-title,
body.iwano-contrast-strong .widget-title{
  border-left:6px solid currentColor;
  padding-left:8px;
}

/* --- 代替案B（太字＋下線） ---
body.iwano-contrast .widget-title,
body.iwano-contrast-strong .widget-title{
  font-weight:bold;
  text-decoration:underline;
}
--- */

/* --- 代替案C（余白で区切る） ---
body.iwano-contrast .widget-title,
body.iwano-contrast-strong .widget-title{
  margin-bottom:0.6em;
}
--- */


/* === v3.7.3 操作パネル ボタンも黒背景に統一 === */
#iwano-va-panel button{
  background:#000 !important;
  color:#ff0 !important;
  border:1px solid #ff0 !important;
}


/* === v3.7.3 ウィジェットタイトル可読性の最終安全対策 === */
/* 背景は触らず、文字を常時 黒・太字・大サイズに固定 */
body .widget-title{
  color:#000 !important;
  font-weight:700 !important;
  font-size:1.3em !important;
}

/* 代替案A（左ボーダー） */
body.iwano-contrast .widget-title,
body.iwano-contrast-strong .widget-title{
  border-left:6px solid currentColor;
  padding-left:8px;
}

/* --- 代替案B（太字＋下線） ---
body.iwano-contrast .widget-title,
body.iwano-contrast-strong .widget-title{
  font-weight:bold;
  text-decoration:underline;
}
--- */

/* --- 代替案C（余白で区切る） ---
body.iwano-contrast .widget-title,
body.iwano-contrast-strong .widget-title{
  margin-bottom:0.6em;
}
--- */


/* === v3.7.6 明示：サイト名・記事タイトルはコントラストに追従 === */
body.iwano-contrast .site-title,
body.iwano-contrast .entry-title,
body.iwano-contrast-strong .site-title,
body.iwano-contrast-strong .entry-title{
  color: inherit !important;
}


/* フォーカス時のみ強調 */
