/* cl-calendar.css — 統合版（全文）
   - 日付の中央揃えを確実にするため内包要素を絶対配置で中央にする実装を追加
   - 既存のボタンスタイル / テーマ / パレット / レスポンシブ等はそのまま保持
*/


/* ---- 変数 ---- */
:root{
  --cl-cell-size: 28px;
  --cl-cell-font-size: 14px;
  --cl-th-font-size: 12px;
  --cl-title-font-size: 100%;
  --cl-legend-bar: 20px;
  --cl-legend-gap: 10px;
  --cl-border-color: #DDDDDD;
  --cl-cell-border-width: 1px;
  --cl-button-font-size: 13px;
}

/* ---------------- 管理画面の週設定 ---------------- */
#weekly_set tbody td { cursor: pointer; }
#weekly_set td.all { color: #ff0000; } /* 全休 = 赤 */
#weekly_set td.am  { color: #00BFFF; } /* 午前休 = 水色 */
#weekly_set td.pm  { color: #8B4513; } /* 午後休 = 茶色 */
#weekly_set td select {
  width:100%;
  box-sizing:border-box;
  background:transparent;
  border:1px solid #ddd;
  padding:4px;
  font-size:12px !important;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#weekly_set td.all select { color: #ff0000; }
#weekly_set td.am select  { color: #00BFFF; }
#weekly_set td.pm select  { color: #8B4513; }

/* ---------------- フロント共通（ベース） ---------------- */
div.cl-calendar-frame { width:100%; }
table.cl-calendar-inner {
  width:100%;
  margin-top:5px;
  padding:2px;
  border:2px solid var(--cl-border-color);
  box-sizing:border-box;
}
table.cl-calendar {
  background-color:#FFFFFF;
  width:100%;
  border-collapse:collapse;
  table-layout: fixed;
  font-family: inherit;
}

/* td / th 共通初期化 */
table.cl-calendar td,
table.cl-calendar th {
  box-sizing:border-box;
  text-align:center;
  vertical-align:middle;
  overflow:hidden;
}

/* 日付セルサイズ・見た目 */
table.cl-calendar tbody td {
  width: var(--cl-cell-size);
  height: var(--cl-cell-size);
  padding: 2px 6px;
  font-weight: bold;
  font-size: var(--cl-cell-font-size);
  line-height: 1;
  border: var(--cl-cell-border-width) solid var(--cl-border-color);
  background-clip: padding-box;
  position: relative;
}

/* === 新: 日付内包要素による確実な中央揃え ===
   - outer: .cl-day-number を position:relative（td 内での参照）。
   - inner: .cl-day-inner を position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
   で文字の描画ボックス自体を中央に揃える（レスポンシブに安定）。
*/
.cl-day-number {
  display: block;
  width: 100%;
  height: 100%;
  position: relative; /* inner を絶対配置で中央にするため */
  box-sizing: border-box;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.cl-day-inner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-block;
  white-space: nowrap;
  box-sizing: border-box;
  padding: 0 4px; /* 2桁が枠に近づきすぎないようにする余白 */
  /* 等幅数字（tabular figures）を有効にして桁幅を揃える */
  font-variant-numeric: tabular-nums;
  -webkit-font-feature-settings: "tnum" 1;
  -moz-font-feature-settings: "tnum" 1;
  font-feature-settings: "tnum" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* --- 今日（today）を目立たせる（復活したい機能） --- */
/* 重要：today は必ず黒字・太字・黒枠で表示する（他のクラスより優先） */
table.cl-calendar td.today {
  color: #000 !important;
  font-weight: bold !important;
  border: 2px groove #000 !important; /* 黒枠（見やすさ優先） */
  box-shadow: none !important; /* 余計な影を消す場合 */
  background-clip: padding-box !important;
}

/* 日付テキスト（内包要素）も確実に黒・太字に */
table.cl-calendar td.today .cl-day-inner {
  color: #000 !important;
  font-weight: bold !important;
}


/* 曜日ヘッダ */
table.cl-calendar thead th {
  background-color:#E4E4E4;
  font-weight:bold;
  padding:4px 4px;
  font-size: var(--cl-th-font-size);
  line-height: 1;
  border: var(--cl-cell-border-width) solid var(--cl-border-color);
}

/* 年月タイトル */
table.cl-calendar-inner td.calendar-date-title {
  font-weight:bold;
  text-align:center !important;
  margin:0;
  padding:6px 4px;
  white-space: nowrap;
  font-size: var(--cl-title-font-size);
  line-height:1;
}

/* --- 色クラス（デフォルト）。ウィジェットのインライン style が優先されますが、 */
table.cl-calendar td.work  { background-color: #DDFFDD; } /* 当月通常 */
table.cl-calendar td.today { color:#000; font-weight:bold; border:2px groove #000; }

/* 祝日/臨時休診/全休（デフォルト） */
table.cl-calendar td.nah .cl-day-inner,
table.cl-calendar td.inc .cl-day-inner,
table.cl-calendar td.all .cl-day-inner {
  font-style: oblique;
  color: #FFFFFF;
}
table.cl-calendar td.nah,
table.cl-calendar td.inc,
table.cl-calendar td.all {
  color:#FFFFFF;
  font-style:oblique;
  background-color:#FF00FF;
}

/* 特別診療日 / その他 / 当番 */
table.cl-calendar td.exc { background-color:#DDFFDD; }
table.cl-calendar td.etc { color:#FFFFFF; background-color:#FF80C0; }
table.cl-calendar td.er  { font-style:oblique; background-color:#DDFFDD; }

/* 他月 */
table.cl-calendar td.space { background-color:#FFFFFF; }

/* 凡例（見た目を original に合わせる） */
p.calendar-information {
  float:left;
  margin: var(--cl-legend-gap) 10px;
  padding: 5px;
  font-size: 0.9em;
  line-height: 1.1;
}
/* 凡例左の色バーは original と同じ幅に */
p.holiday_all { color:#400040; border-left: var(--cl-legend-bar) solid #FF00FF; padding: 0px 8px; margin:10px 0 10px 5px; }
p.holiday_am  { color:#400040; border-left: var(--cl-legend-bar) solid #00FFFF; padding: 0px 8px; margin:10px 0 10px 5px; }
p.holiday_pm  { color:#400040; border-left: var(--cl-legend-bar) solid #FF8000; padding: 0px 8px; margin:10px 0 10px 5px; }
p.holiday_etc { color:#400040; border-left: var(--cl-legend-bar) solid #FF80C0; padding: 0px 8px; margin:10px 0 10px 5px; }
p.holiday_er  { color:#400040; border-left: var(--cl-legend-bar) solid #DDFFDD; padding: 0px 8px; margin:10px 0 10px 5px; }

/* 当月に戻るリンク（デフォルト非表示） */
p.return_now { display:none; }

/* ---------------- move_button（統合1定義） ---------------- */
.cl-calendar-inner .move_button {
  width:25px;
  height:25px;
  display:inline-block;
  box-sizing:border-box;
  padding:0;
  margin:0;
  line-height:0;
  border:none;
  background:transparent;
  cursor:pointer;
  position:relative;
  vertical-align:middle;
}
.move_button.nxt_off, .move_button.prv_off {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* ---------------- ボタンスタイル（style1..style20） ---------------- */

/* === Replace: style1 -> Primary Filled (high-contrast primary button) === */
.cl-calendar-btn-style1 .move_button {
  background: linear-gradient(180deg,#ffffff 0%, #f2f2f2 100%);
  border-radius:6px;
  border:1px solid #d0d0d0;
  display:inline-flex; align-items:center; justify-content:center;
  color:#222;
  transition: transform .08s ease, box-shadow .08s ease, background .12s ease;
}
.cl-calendar-btn-style1 .move_button::before {
  /* solid triangle (chevron-like) drawn by borders; no absolute rotation here */
  content: '';
  position: absolute;
  width:0; height:0;
  border-top:6px solid transparent;
  border-bottom:6px solid transparent;
  border-left:8px solid #222; /* base shape: points to the right */
  top:50%; left:50%;
  transform: translate(-50%,-50%) rotate(0deg);
  transform-origin: center;
}
/* 明示的に prev/next の向きを決める（prev = 左向き、next = 右向き） */
.cl-calendar-btn-style1 .move_button.prv::before { transform: translate(-50%,-50%) rotate(180deg); } /* 左向き */
.cl-calendar-btn-style1 .move_button.nxt::before { transform: translate(-50%,-50%) rotate(0deg); }     /* 右向き */

.cl-calendar-btn-style1 .move_button:active { transform: translateY(1px); box-shadow:none; }

/* Focus / hover */
.cl-calendar-btn-style1 .move_button:hover { box-shadow: 0 2px 6px rgba(0,0,0,0.08); background: linear-gradient(180deg,#fff 0%, #ececec 100%); }
.cl-calendar-btn-style1 .move_button:focus-visible { outline: 3px solid rgba(0,115,170,0.18); outline-offset: 2px; }

/* style2 */
.cl-calendar-btn-style2 .move_button { background:transparent; }
.cl-calendar-btn-style2 .move_button.prv::before,
.cl-calendar-btn-style2 .move_button.prv::after,
.cl-calendar-btn-style2 .move_button.nxt::before,
.cl-calendar-btn-style2 .move_button.nxt::after {
  content:''; position:absolute; width:10px; height:2px; background:#333; top:50%; left:50%; transform-origin:center;
}
.cl-calendar-btn-style2 .move_button.prv::before { transform: translate(-66%,-5px) rotate(-45deg); }
.cl-calendar-btn-style2 .move_button.prv::after  { transform: translate(-66%, 3px) rotate(45deg); }
.cl-calendar-btn-style2 .move_button.nxt::before { transform: translate(-34%,-5px) rotate(45deg); }
.cl-calendar-btn-style2 .move_button.nxt::after  { transform: translate(-34%, 3px) rotate(-45deg); }

/* === Replace: style3 -> Outline Circle (thin outlined icon) === */
.cl-calendar-btn-style3 .move_button {
  width: var(--cl-cell-size);
  height: var(--cl-cell-size);
  border-radius:50%;
  border:2px solid rgba(0,0,0,0.12);
  background: transparent;
  display:inline-flex; align-items:center; justify-content:center;
  color:#111;
  transition: border-color .08s ease, background .08s ease;
  position: relative; /* ensure ::before absolute positions relative to button */
}
.cl-calendar-btn-style3 .move_button::before{
  /* center an SVG mask / icon and allow rotation to change direction */
  content:'';
  position: absolute;
  top:50%;
  left:50%;
  width:8px;
  height:12px;
  transform: translate(-50%,-50%) rotate(0deg);
  transform-origin: center;
  display:block;
  /* simple SVG mask for a chevron/arrow — keeps it crisp on high DPI */
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 12"><path fill="black" d="M6.5 6L1 11.5 0 10.5 4.5 6 0 1.5 1 0.5 6.5 6z"/></svg>') no-repeat center;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 12"><path fill="black" d="M6.5 6L1 11.5 0 10.5 4.5 6 0 1.5 1 0.5 6.5 6z"/></svg>') no-repeat center;
  background: #222;
}
/* 明示的に prev/next の向きを決める（prev = 左向き、next = 右向き） */
.cl-calendar-btn-style3 .move_button.prv::before { transform: translate(-50%,-50%) rotate(180deg); } /* 左向き */
.cl-calendar-btn-style3 .move_button.nxt::before { transform: translate(-50%,-50%) rotate(0deg); }     /* 右向き */

.cl-calendar-btn-style3 .move_button:hover { border-color: rgba(0,0,0,0.22); background: rgba(0,0,0,0.02); }

/* === Replace: style4 -> Labeled Pill (text + icon) === */
.cl-calendar-btn-style4 .move_button {
  background: transparent;
  color:#0073aa;
  border-radius: 20px;
  padding: 6px 10px;
  border: 1px solid rgba(0,115,170,0.12);
  display:inline-flex; align-items:center; gap:8px; font-size:12px;
}
.cl-calendar-btn-style4 .move_button::before { content: '◀'; font-weight:700; font-size:13px; display:inline-block; transform:none; }
.cl-calendar-btn-style4 .move_button.nxt::before { content:'▶'; }
.cl-calendar-btn-style4 .move_button:hover { background: rgba(0,115,170,0.06); color: #005a93; }

/* If you want explicit text (Prev/Next) toggled by CSS, add this optional rule to show text inside button: */
/* Example markup already has mv-ico; to show label use JS or alternate HTML. */


/* style5 */
.cl-calendar-btn-style5 .move_button { background:transparent; color:#0073aa; font-weight:bold; padding:2px 6px; }
.cl-calendar-btn-style5 .move_button.prv::before { content:'Prev'; display:inline-block; }
.cl-calendar-btn-style5 .move_button.nxt::before { content:'Next'; display:inline-block; }

/* style6 */
.cl-calendar-btn-style6 .move_button { border:1px solid #bbb; border-radius:6px; background:#fff; padding:4px; display:inline-flex; align-items:center; justify-content:center; }
.cl-calendar-btn-style6 .move_button.prv::before {
  content:''; position:absolute; top:50%; left:50%; transform: translate(-50%,-50%);
  width:0;height:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-right:6px solid #444;
}
.cl-calendar-btn-style6 .move_button.nxt::before {
  content:''; position:absolute; top:50%; left:50%; transform: translate(-50%,-50%);
  width:0;height:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:6px solid #444;
}

/* style7 */
.cl-calendar-btn-style7 .move_button { background:transparent; padding:4px; display:inline-flex; align-items:center; justify-content:center; }
.cl-calendar-btn-style7 .move_button.prv::before { content:'«'; font-size:16px; }
.cl-calendar-btn-style7 .move_button.nxt::before { content:'»'; font-size:16px; }

/* style8 */
.cl-calendar-btn-style8 .move_button { background:#222; color:#fff; border-radius:3px; padding:6px; min-width:34px; height:30px; display:inline-flex; align-items:center; justify-content:center; }
.cl-calendar-btn-style8 .move_button.prv::before { content:'◀'; font-size:12px; }
.cl-calendar-btn-style8 .move_button.nxt::before { content:'▶'; font-size:12px; }

/* style9 */
.cl-calendar-btn-style9 .move_button { width:36px; height:36px; border-radius:50%; background:#fff; box-shadow:0 2px 4px rgba(0,0,0,0.12); border:1px solid #ddd; display:inline-flex; align-items:center; justify-content:center; }
.cl-calendar-btn-style9 .move_button.prv::before { content:''; position:absolute; top:50%; left:50%; transform: translate(-50%,-50%); width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:8px solid #333; }
.cl-calendar-btn-style9 .move_button.nxt::before { content:''; position:absolute; top:50%; left:50%; transform: translate(-50%,-50%); width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:8px solid #333; }

/* style10 */
.cl-calendar-btn-style10 .move_button { border:1px solid #eee; border-radius:4px; padding:3px 6px; font-size:11px; background:#fafafa; display:inline-flex; align-items:center; justify-content:center; }
.cl-calendar-btn-style10 .move_button.prv::before { content:'<'; font-size:12px; }
.cl-calendar-btn-style10 .move_button.nxt::before { content:'>'; font-size:12px; }

/* === Replace: style11 -> Floating Circle (neumorphic / tappable) === */
.cl-calendar-btn-style11 .move_button {
  width: var(--cl-cell-size);
  height: var(--cl-cell-size);
  border-radius:50%;
  background: linear-gradient(180deg,#f7fbff 0%, #e8f3ff 100%);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.04);
  display:inline-flex; align-items:center; justify-content:center;
  transition: transform .08s ease, box-shadow .08s ease;
}
.cl-calendar-btn-style11 .move_button::before { content:'◀'; font-size:14px; color:#1b3a4b; }
.cl-calendar-btn-style11 .move_button.nxt::before { content:'▶'; }
.cl-calendar-btn-style11 .move_button:active { transform: translateY(1px); box-shadow: 0 4px 8px rgba(0,0,0,0.06); }

/* === Replace: style12 -> Frosted Glass (subtle, modern) === */
.cl-calendar-btn-style12 .move_button{
  width: var(--cl-cell-size);
  height: var(--cl-cell-size);
  border-radius:6px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(6px);
  display:inline-flex; align-items:center; justify-content:center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}
.cl-calendar-btn-style12 .move_button::before { content:'◀'; font-size:13px; color:#123; }
.cl-calendar-btn-style12 .move_button.nxt::before { content:'▶'; }

/* Hover/focus */
.cl-calendar-btn-style12 .move_button:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,0.09); }
.cl-calendar-btn-style12 .move_button:focus-visible { outline: 2px solid rgba(18,52,86,0.18); outline-offset:2px; }


/* style13: Material Raised */
.cl-calendar-btn-style13 .move_button{
  width:36px;height:28px;border-radius:6px;
  background:#fff;
  border: none;
  box-shadow: 0 3px 8px rgba(0,0,0,0.16);
  display:inline-flex;align-items:center;justify-content:center;
}
.cl-calendar-btn-style13 .move_button::before { content:'◀'; font-size:14px; color:#2b2b2b; }
.cl-calendar-btn-style13 .move_button.nxt::before { content:'▶'; }
.cl-calendar-btn-style13 .move_button:active { box-shadow: 0 1px 4px rgba(0,0,0,0.2); transform: translateY(1px); }

/* style14: Metal Beveled */
.cl-calendar-btn-style14 .move_button{
  width:36px;height:28px;border-radius:6px;
  background: linear-gradient(180deg, #f5f7fa 0%, #e6ebf3 50%, #dbe2ea 100%);
  border-top:1px solid rgba(255,255,255,0.8);
  border-bottom:1px solid rgba(0,0,0,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 2px 6px rgba(0,0,0,0.12);
  display:inline-flex;align-items:center;justify-content:center;
}
.cl-calendar-btn-style14 .move_button::before{ content:'◀'; color:#333; font-size:13px; }
.cl-calendar-btn-style14 .move_button.nxt::before{ content:'▶'; }

/* style15: Floating Circle */
.cl-calendar-btn-style15 .move_button{
  width:38px;height:38px;border-radius:50%;
  background:#fff;
  border:1px solid #e6e6e6;
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
  display:inline-flex;align-items:center;justify-content:center;
}
.cl-calendar-btn-style15 .move_button::before { content:'◀'; font-size:14px; color:#222; }
.cl-calendar-btn-style15 .move_button.nxt::before { content:'▶'; }

/* --- Fix for style16: Double Chevron 3D (replace existing style16 blocks) --- */
.cl-calendar-btn-style16 .move_button {
  position: relative; /* ���須：擬似要素をこの要素基準で配置 */
  width: var(--cl-cell-size);
  height: var(--cl-cell-size);
  border-radius: 6px;
  background: #fafafa;
  border: 1px solid #ddd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  overflow: visible;
}

/* 二重の短いバーを使ってダブルチェブロンを作る（高解像度でもシャープ） */
.cl-calendar-btn-style16 .move_button::before,
.cl-calendar-btn-style16 .move_button::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 2px;
  background: #333;
  top: 50%;
  left: 50%;
  transform-origin: center;
  transition: transform .08s ease, left .08s ease;
  border-radius: 1px;
}

/* prev (左向き) — 2つのバーを左寄りに回転させる */
.cl-calendar-btn-style16 .move_button.prv::before  { /* 上のバー */
  left: 40%;
  transform: translate(-50%, -6px) rotate(-45deg);
}
.cl-calendar-btn-style16 .move_button.prv::after   { /* 下のバー */
  left: 40%;
  transform: translate(-50%, 6px) rotate(45deg);
}

/* next (右向き) — 2つのバーを右寄りに回転させる */
.cl-calendar-btn-style16 .move_button.nxt::before  {
  left: 60%;
  transform: translate(-50%, -6px) rotate(45deg);
}
.cl-calendar-btn-style16 .move_button.nxt::after   {
  left: 60%;
  transform: translate(-50%, 6px) rotate(-45deg);
}

/* ホバー/アクティブの軽い挙動 */
.cl-calendar-btn-style16 .move_button:hover { box-shadow: 0 6px 14px rgba(0,0,0,0.09); }
.cl-calendar-btn-style16 .move_button:active { transform: translateY(1px); box-shadow: 0 4px 8px rgba(0,0,0,0.06); }

/* style17: Inner shadow (pressed look) */
.cl-calendar-btn-style17 .move_button{
  width:36px;height:28px;border-radius:6px;background:#f8f9fa;border:1px solid #e0e0e0;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.06);
  display:inline-flex;align-items:center;justify-content:center;
}
.cl-calendar-btn-style17 .move_button::before { content:'◀'; font-size:13px; color:#333;}
.cl-calendar-btn-style17 .move_button.nxt::before { content:'▶'; }

/* === Replace: style18 -> Accent Gradient (brand accent) === */
.cl-calendar-btn-style18 .move_button{
  width: var(--cl-cell-size);
  height: var(--cl-cell-size);
  border-radius:6px;
  background: linear-gradient(180deg,#ff8a00 0%, #ff5c00 100%);
  color:#fff; border:none;
  box-shadow: 0 6px 14px rgba(255,92,0,0.18);
  display:inline-flex;align-items:center;justify-content:center;
}
.cl-calendar-btn-style18 .move_button::before { content:'◀'; font-size:13px; color:#fff; }
.cl-calendar-btn-style18 .move_button.nxt::before { content:'▶'; }
.cl-calendar-btn-style18 .move_button:active { transform: translateY(1px); box-shadow:none; }

/* style19: Soft Organic */
.cl-calendar-btn-style19 .move_button{
  width:38px;height:28px;border-radius:12px;background:#f0fbf7;border:1px solid #dfeee7;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  display:inline-flex;align-items:center;justify-content:center;
}
.cl-calendar-btn-style19 .move_button::before { content:'◀'; font-size:13px; color:#0a6b4d; }
.cl-calendar-btn-style19 .move_button.nxt::before { content:'▶'; }

/* style20: Pressed Retro */
.cl-calendar-btn-style20 .move_button{
  width:38px;height:28px;border-radius:4px;background:#f2f2f2;border-top:1px solid #fff;border-bottom:2px solid rgba(0,0,0,0.12);
  box-shadow: 0 2px 0 rgba(0,0,0,0.06);
  display:inline-flex;align-items:center;justify-content:center;
}
.cl-calendar-btn-style20 .move_button::before{ content:'◀'; font-size:13px; color:#222; }
.cl-calendar-btn-style20 .move_button.nxt::before{ content:'▶'; }
.cl-calendar-btn-style20 .move_button:active { transform: translateY(1px); box-shadow:none; }


/* ---------------- 共通化ルール: ダブルチェブロン（style7）を除く19個をセルサイズに揃える ---------------- */
.cl-calendar-btn-style1 .move_button,
.cl-calendar-btn-style2 .move_button,
.cl-calendar-btn-style3 .move_button,
.cl-calendar-btn-style4 .move_button,
.cl-calendar-btn-style5 .move_button,
.cl-calendar-btn-style6 .move_button,
.cl-calendar-btn-style8 .move_button,
.cl-calendar-btn-style9 .move_button,
.cl-calendar-btn-style10 .move_button,
.cl-calendar-btn-style11 .move_button,
.cl-calendar-btn-style12 .move_button,
.cl-calendar-btn-style13 .move_button,
.cl-calendar-btn-style14 .move_button,
.cl-calendar-btn-style15 .move_button,
.cl-calendar-btn-style16 .move_button,
.cl-calendar-btn-style17 .move_button,
.cl-calendar-btn-style18 .move_button,
.cl-calendar-btn-style19 .move_button,
.cl-calendar-btn-style20 .move_button {
  width: var(--cl-cell-size) !important;
  height: var(--cl-cell-size) !important;
  min-width: var(--cl-cell-size) !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 !important;
  line-height:1 !important;
  font-size: var(--cl-button-font-size) !important;
  box-sizing:border-box !important;
}

/* ---------------- レスポンシブ ---------------- */
@media (max-width:520px) {
  :root {
    --cl-cell-size: 26px;
    --cl-cell-font-size: 13px;
  }
  .cl-calendar-inner .move_button { width:25px; height:24px; }
  .cl-calendar-btn-style4 .move_button { padding:2px 6px; font-size:12px; }
}



/* 画像ボタン利用時：既存の擬似要素／フォールバック表示を隠して画像のみを表示 */
.use-image-buttons .move_button::before,
.use-image-buttons .move_button::after{
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* ボタン本体を画像サイズに合わせる（セルサイズに揃える例） */
.use-image-buttons .move_button.prv,
.use-image-buttons .move_button.nxt {
  width: var(--cl-cell-size) !important;
  height: var(--cl-cell-size) !important;
  min-width: var(--cl-cell-size) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: calc(var(--cl-cell-size) * 0.6) !important; /* アイコン表示サイズを調整 */
  border: none !important;
  padding: 0 !important;
}

/* disabled 状態の見た目保持 */
.use-image-buttons .move_button.nxt_off,
.use-image-buttons .move_button.prv_off {
  opacity: 0.35; pointer-events: none;
}

/* アクセシビリティ：フォーカス時に枠が分かるように */
.use-image-buttons .move_button:focus {
  outline: 2px solid #0073aa;
  outline-offset: 2px;
}


/* --- Accessibility & focus styles --- */
/* フォーカスが見えるようにする（キーボードユーザー向け） */
.move_button:focus-visible {
  outline: 3px solid #0073aa;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(0,115,170,0.12);
}

/* 古いブラウザ用（:focus の最低限のフォールバック） */
.move_button:focus {
  outline: 3px solid #0073aa;
  outline-offset: 2px;
}

/* 装飾用アイコンはスクリーンリーダーに読ませない（HTML 側で aria-hidden も付与済みだが保険） */
/* 変更点: デフォルトで非表示にして、必要な時だけ .show-mv-ico で表示する */
.move_button .mv-ico {
  speak: none;
  display: none;            /* ← 追加：デフォルトは非表示（重複防止） */
  line-height: 1;
  font-size: 14px;
}

/* フォールバック表示を明示的に出したい時だけこのクラスを付与する（JSで付けるか手動で） */
.move_button.show-mv-ico .mv-ico {
  display: inline-block !important;
}

/* 画像ボタンモードでは既存ルールで非表示にしているので競合しない（保険） */
.use-image-buttons .move_button .mv-ico {
  display: none !important;
}

/* 画像ボタンモードのときは疑似要素や mv-ico を非表示にして背景画像だけ表示 */
.use-image-buttons .move_button::before,
.use-image-buttons .move_button::after,
.use-image-buttons .move_button .mv-ico {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* 画像ボタンモードでフォーカスしやすいように境界を強調（任意） */
.use-image-buttons .move_button:focus-visible {
  outline: 3px solid #0073aa;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(0,115,170,0.12);
}



/* EOF */