/* =========================================================
   山形県立山形盲学校
   ユーザーテーマCSS 完全版 Ver.13.0.1 (修正版)

   完成版方針
   ・既存の安定版 Ver.12.1.5 を土台に再構成
   ・重複CSS、追加パッチ、説明文を含まない単一ファイル
   ・左側アクセシビリティ案内を完成イメージに合わせて再設計
   ・文字サイズ、背景色、ふりがな、読み上げ案内を維持
   ・PC／タブレット／スマートフォン対応
   ・既存の記事、写真、カレンダー、メニューを維持
========================================================= */

/* =====================================================
   1．基本設定
===================================================== */

body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Noto Sans JP",
        "Hiragino Kaku Gothic ProN",
        "Yu Gothic",
        Meiryo,
        sans-serif;
}

.bg-dark {
    background-color: #12335c !important;
    padding: 0;
}

.navbar-dark .navbar-brand {
    padding-left: 0.5rem;
    font-size: 1rem;
}

.navbar-dark .navbar-nav .nav-link {
    font-size: 0.8rem;
}

/* =====================================================
   2．横型・縦型メニュー
===================================================== */

.plugin-menus .nav-tabs li.nav-item > a,
.plugin-menus .list-group > a.list-group-item {
    background: #12335c;
    color: #ffffff;
}

.plugin-menus .nav-tabs li.nav-item {
    border-top: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
}

.plugin-menus .nav-tabs li.nav-item:last-child {
    border-right: 2px solid #ffffff;
}

.plugin-menus .nav-tabs .nav-link {
    border-radius: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.4;
}

.plugin-menus .list-group > a.list-group-item {
    border: 0;
    border-radius: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.45;
}

.plugin-menus .nav-tabs a:hover,
.plugin-menus .nav-tabs a:focus-visible,
.plugin-menus .nav-tabs a.active,
.plugin-menus .list-group a:hover,
.plugin-menus .list-group a:focus-visible,
.plugin-menus .list-group a.active {
    background-color: #2d527f;
    color: #fff36a;
    text-decoration: none;
}

/* =====================================================
   3．リンク・フレームタイトル
===================================================== */

#ccMainArea a {
    color: #12335c;
    text-decoration: underline;
}

#ccMainArea a:hover {
    color: #315f91;
}

#ccMainArea a:focus-visible,
.plugin-menus a:focus-visible {
    outline: 3px solid #ffd800;
    outline-offset: 2px;
}

.card-header.bg-default {
    background: #12335c;
    border-color: #ffffff;
    border-bottom: 2px solid #ffffff;
    color: #ffffff;
}

/* =====================================================
   4．追加フレームカラー
===================================================== */

.frame-pink,
.frame-coral,
.frame-orange,
.frame-yellow,
.frame-green,
.frame-mint,
.frame-blue,
.frame-purple,
.frame-gray {
    overflow: hidden !important;
    border-radius: 12px !important;
    box-shadow: 0 3px 10px rgba(18, 51, 92, 0.12) !important;
}

.frame-pink .card,
.frame-coral .card,
.frame-orange .card,
.frame-yellow .card,
.frame-green .card,
.frame-mint .card,
.frame-blue .card,
.frame-purple .card,
.frame-gray .card {
    overflow: hidden !important;
    border-width: 2px !important;
    border-style: solid !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

.frame-pink .card-header,
.frame-coral .card-header,
.frame-orange .card-header,
.frame-yellow .card-header,
.frame-green .card-header,
.frame-mint .card-header,
.frame-blue .card-header,
.frame-purple .card-header,
.frame-gray .card-header {
    border-bottom-width: 2px !important;
    border-bottom-style: solid !important;
    border-radius: 10px 10px 0 0 !important;
    background-image: none !important;
    color: #24333d !important;
    font-weight: 700 !important;
}

.frame-pink .card { border-color: #bd7e89 !important; }
.frame-pink .card-header { background: #e5b7be !important; border-bottom-color: #bd7e89 !important; }
.frame-coral .card { border-color: #dc927b !important; }
.frame-coral .card-header { background: #fabea7 !important; border-bottom-color: #dc927b !important; }
.frame-orange .card { border-color: #d99b71 !important; }
.frame-orange .card-header { background: #fcc9ac !important; border-bottom-color: #d99b71 !important; }
.frame-yellow .card { border-color: #d1c968 !important; }
.frame-yellow .card-header { background: #fffac2 !important; border-bottom-color: #d1c968 !important; }
.frame-green .card { border-color: #88b17f !important; }
.frame-green .card-header { background: #c3dcbe !important; border-bottom-color: #88b17f !important; }
.frame-mint .card { border-color: #7faeaa !important; }
.frame-mint .card-header { background: #bad4d1 !important; border-bottom-color: #7faeaa !important; }
.frame-blue .card { border-color: #8094aa !important; }
.frame-blue .card-header { background: #b4c1d1 !important; border-bottom-color: #8094aa !important; }
.frame-purple .card { border-color: #9275ad !important; }
.frame-purple .card-header { background: #c5b2d6 !important; border-bottom-color: #9275ad !important; }
.frame-gray .card { border-color: #9ca8b3 !important; }
.frame-gray .card-header { background: #d7dde3 !important; border-bottom-color: #9ca8b3 !important; }

/* =====================================================
   5．アクセシビリティバー Ver.12.1.3
===================================================== */

#ym-accessibility-bar {
    position: relative;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, #0b49a0 0%, #062c70 58%, #041f55 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(7, 39, 91, 0.24);
    font-size: 15px !important;
    line-height: 1.35;
}

#ym-accessibility-bar * {
    box-sizing: border-box;
}

#ym-accessibility-bar button {
    font-family: inherit;
}

#ym-accessibility-bar .ym-accessibility-toggle {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 12px;
    min-width: 360px;
    padding: 10px 18px;
    border: 0;
    background: transparent;
    color: #ffffff;
    text-align: left;
    cursor: default;
}

#ym-accessibility-bar .ym-accessibility-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-size: 62px !important;
    line-height: 1;
    box-shadow: none;
}

/* アイコン自身に円形リングが含まれるため、外側の円枠は重ねない */
#ym-accessibility-bar .ym-accessibility-symbol i,
#ym-accessibility-bar .ym-accessibility-symbol .fas,
#ym-accessibility-bar .ym-accessibility-symbol .fa-universal-access {
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: inherit !important;
    line-height: 1 !important;
}

#ym-accessibility-bar .ym-accessibility-title-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    line-height: 1.15;
}

#ym-accessibility-bar .ym-accessibility-title {
    color: #ffffff;
    font-size: 27px !important;
    font-weight: 800;
    letter-spacing: 0.015em;
    line-height: 1.12;
    white-space: nowrap;
}

#ym-accessibility-bar .ym-accessibility-subtitle {
    color: #ffffff;
    font-size: 13px !important;
    font-weight: 600;
    line-height: 1.25;
    opacity: 0.98;
    white-space: nowrap;
}

#ym-accessibility-bar .ym-accessibility-toggle-mark {
    display: none;
    margin-left: auto;
    color: #ffffff;
    font-size: 24px !important;
}

#ym-accessibility-bar .ym-accessibility-panel {
    min-width: 0;
    flex: 1 1 auto;
}

#ym-accessibility-bar {
    display: flex;
    align-items: stretch;
}

#ym-accessibility-bar .ym-accessibility-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 18px;
    width: 100%;
    min-height: 82px;
    padding: 10px 18px 10px 6px;
}

#ym-accessibility-bar .ym-accessibility-group {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
}

#ym-accessibility-bar .ym-accessibility-divider {
    align-self: stretch;
    width: 1px;
    min-height: 54px;
    background: rgba(255, 255, 255, 0.28);
}

#ym-accessibility-bar .ym-accessibility-label {
    color: #ffffff;
    font-size: 15px !important;
    font-weight: 800;
    white-space: nowrap;
}

#ym-accessibility-bar .ym-segmented-control {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

#ym-accessibility-bar .ym-segmented-control button {
    min-width: 58px;
    min-height: 44px;
    padding: 8px 13px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    font-size: 15px !important;
    font-weight: 800;
    cursor: pointer;
    position: relative;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

#ym-accessibility-bar .ym-segmented-control button:last-child {
    border-right: 0;
}

#ym-accessibility-bar .ym-segmented-control button.is-active {
    background: #ffffff !important;
    color: #12335c !important;
    font-weight: 900;
    box-shadow:
        inset 0 0 0 2px rgba(18, 51, 92, 0.12),
        0 2px 5px rgba(0, 0, 0, 0.15);
}

#ym-accessibility-bar .ym-segmented-control button.is-active::before {
    content: "";
    display: inline-block;
    margin-right: 0.32em;
    font-size: 0.95em;
    font-weight: 900;
    line-height: 1;
}

#ym-accessibility-bar .ym-segmented-control button:hover,
#ym-accessibility-bar .ym-segmented-control button:focus-visible {
    background: rgba(255, 255, 255, 0.23);
}

#ym-accessibility-bar .ym-color-control {
    display: inline-flex;
    gap: 8px;
}

#ym-accessibility-bar .ym-color-btn {
    position: relative;
    min-width: 48px;
    min-height: 44px;
    padding: 7px 10px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 14px !important;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.16);
}

#ym-accessibility-bar .ym-color-white {
    background: #ffffff;
    color: #111111;
}

#ym-accessibility-bar .ym-color-black {
    background: #000000;
    color: #ffffff;
}

#ym-accessibility-bar .ym-color-blue {
    background: #1968d2;
    color: #ffffff;
}

#ym-accessibility-bar .ym-color-beige {
    background: #f1dfc3;
    color: #24170d;
}

#ym-accessibility-bar .ym-color-btn.is-active {
    border-color: #ffffff;
    outline: 3px solid #ffd800;
    outline-offset: 2px;
}

#ym-accessibility-bar .ym-color-btn.is-active::after {
    content: "";
    position: absolute;
    top: -8px;
    right: -7px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #ffd800;
    color: #12335c;
    -webkit-text-fill-color: #12335c;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
}

#ym-accessibility-bar .ym-round-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 43px;
    height: 43px;
    box-sizing: border-box;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-size: 23px !important;
    font-weight: 800;
    box-shadow: none;
}

#ym-accessibility-bar .ym-two-buttons button {
    min-width: 48px;
}

#ym-accessibility-bar .ym-read-guide-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 56px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#ym-accessibility-bar .ym-speaker-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 36px;
    color: #ffffff;
    font-size: 29px !important;
}

#ym-accessibility-bar .ym-read-guide-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #ffffff;
    line-height: 1.15;
}

#ym-accessibility-bar .ym-read-guide-main {
    color: #ffffff;
    font-size: 18px !important;
    font-weight: 800;
}

#ym-accessibility-bar .ym-read-guide-sub {
    color: #ffffff;
    font-size: 12px !important;
    font-weight: 600;
}

#ym-accessibility-bar button:hover {
    filter: brightness(1.08);
}

#ym-accessibility-bar button:focus-visible {
    outline: 3px solid #ffd800;
    outline-offset: 3px;
}

/* =====================================================
   6．読み上げ案内ダイアログ
===================================================== */

html.ym-dialog-open,
html.ym-dialog-open body {
    overflow: hidden;
}

.ym-dialog-backdrop {
    position: fixed;
    z-index: 20000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.62);
}

.ym-dialog-backdrop[hidden] {
    display: none !important;
}

.ym-dialog {
    width: min(620px, 100%);
    max-height: 90vh;
    overflow: auto;
    padding: 24px;
    border: 3px solid #12335c;
    border-radius: 14px;
    background: #ffffff;
    color: #212529;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.ym-dialog h2 {
    margin: 0 0 16px;
    color: #12335c;
    font-size: 1.5rem;
}

.ym-dialog p {
    margin: 0 0 1em;
    line-height: 1.8;
}

.ym-dialog-close {
    min-height: 44px;
    padding: 8px 22px;
    border: 0;
    border-radius: 8px;
    background: #12335c;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.ym-dialog-close:focus-visible {
    outline: 3px solid #ffd800;
    outline-offset: 3px;
}

/* =====================================================
   7．ページ上部へ戻る
===================================================== */

#page-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    margin: 0;
}

#page-top a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #12335c;
    color: #ffffff;
    font-size: 2rem;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(18, 51, 92, 0.28);
}

#page-top a:hover {
    background: #2d527f;
    color: #ffffff;
}

#page-top a:focus-visible {
    outline: 3px solid #ffd800;
    outline-offset: 3px;
}

/* =====================================================
   8．文字拡大時の補助
===================================================== */

html.ym-font-large .plugin-menus .nav-tabs,
html.ym-font-xlarge .plugin-menus .nav-tabs {
    flex-wrap: wrap;
}

html.ym-font-large .plugin-menus .nav-tabs li.nav-item,
html.ym-font-xlarge .plugin-menus .nav-tabs li.nav-item {
    min-width: 0;
    flex: 1 1 auto;
}

html.ym-font-large [data-ym-font-recorded="true"],
html.ym-font-xlarge [data-ym-font-recorded="true"] {
    overflow-wrap: anywhere;
    word-break: normal;
}

html.ym-font-large #ccMainArea [data-ym-font-recorded="true"],
html.ym-font-xlarge #ccMainArea [data-ym-font-recorded="true"] {
    line-height: 1.65 !important;
}

html.ym-font-large #ccMainArea img,
html.ym-font-xlarge #ccMainArea img {
    max-width: 100% !important;
    height: auto !important;
}

/* カレンダー、検索、管理部品は拡大しない */
.plugin-calendars,
.plugin-calendar,
[class*="plugin-calendar"],
[id*="plugin-calendar"],
.plugin-searchs,
.plugin-search {
    max-width: 100%;
    line-height: normal;
}

#ccMainArea .btn,
#ccMainArea .badge,
#ccMainArea button,
#ccMainArea input,
#ccMainArea select,
#ccMainArea textarea {
    line-height: normal;
}

/* =====================================================
   9．ふりがな Ver.12.1.5
===================================================== */

/* ルビを親文字の上に自然に配置 */
#ccMainArea ruby {
    ruby-position: over;
    ruby-align: center;
    text-emphasis: none;
}

/* ふりがなの大きさ・間隔を調整 */
#ccMainArea ruby rt {
    font-size: 0.52em;
    line-height: 1.1;
    letter-spacing: 0.02em;
    font-weight: 500;
    text-align: center;
}

/* rpタグ対応ブラウザでは補助記号を表示しない */
#ccMainArea ruby rp {
    display: none;
}

/* ふりがなOFF時は読み仮名だけを非表示 */
html.ym-furigana-off #ccMainArea ruby rt,
html.ym-furigana-off #ccMainArea ruby rp {
    display: none !important;
}

/* スマートフォンでは小さくなりすぎないように補正 */
@media (max-width: 767px) {
    #ccMainArea ruby rt {
        font-size: 0.56em;
        line-height: 1.05;
        letter-spacing: 0;
    }
}

/* =====================================================
   10．背景色切替
===================================================== */

html.ym-theme-white {
    --ym-page-bg: #ffffff;
    --ym-surface-bg: #ffffff;
    --ym-surface-alt: #f4f6f9;
    --ym-header-bg: #12335c;
    --ym-menu-bg: #12335c;
    --ym-menu-hover: #2d527f;
    --ym-text: #212529;
    --ym-link: #12335c;
    --ym-link-hover: #315f91;
    --ym-border: #c8ced8;
    --ym-input-bg: #ffffff;
    --ym-input-text: #212529;
    --ym-focus: #ffd800;
}

html.ym-theme-black {
    --ym-page-bg: #000000;
    --ym-surface-bg: #000000;
    --ym-surface-alt: #1f1f1f;
    --ym-header-bg: #1f1f1f;
    --ym-menu-bg: #000000;
    --ym-menu-hover: #333333;
    --ym-text: #ffffff;
    --ym-link: #fff36a;
    --ym-link-hover: #7fe7ff;
    --ym-border: #ffffff;
    --ym-input-bg: #111111;
    --ym-input-text: #ffffff;
    --ym-focus: #ffd800;
}

html.ym-theme-blue {
    --ym-page-bg: #063a85;
    --ym-surface-bg: #063a85;
    --ym-surface-alt: #03265c;
    --ym-header-bg: #03265c;
    --ym-menu-bg: #03265c;
    --ym-menu-hover: #001b44;
    --ym-text: #ffffff;
    --ym-link: #fff36a;
    --ym-link-hover: #9beeff;
    --ym-border: #ffffff;
    --ym-input-bg: #03265c;
    --ym-input-text: #ffffff;
    --ym-focus: #ffd800;
}

html.ym-theme-beige {
    --ym-page-bg: #f7efd8;
    --ym-surface-bg: #f7efd8;
    --ym-surface-alt: #e7d5ae;
    --ym-header-bg: #e7d5ae;
    --ym-menu-bg: #5a452b;
    --ym-menu-hover: #3f2d19;
    --ym-text: #1f1a14;
    --ym-link: #12335c;
    --ym-link-hover: #7a2100;
    --ym-border: #6b5b45;
    --ym-input-bg: #fffaf0;
    --ym-input-text: #1f1a14;
    --ym-focus: #d45500;
}

html[class*="ym-theme-"] body,
html[class*="ym-theme-"] #ccMainArea,
html[class*="ym-theme-"] #ccLeftArea,
html[class*="ym-theme-"] #ccRightArea,
html[class*="ym-theme-"] #ccCenterArea,
html[class*="ym-theme-"] #ccHeaderArea,
html[class*="ym-theme-"] #headerArea,
html[class*="ym-theme-"] #ccFooterArea {
    background-color: var(--ym-page-bg) !important;
    color: var(--ym-text) !important;
}

html.ym-theme-black #ccMainArea .card,
html.ym-theme-blue #ccMainArea .card,
html.ym-theme-beige #ccMainArea .card,
html.ym-theme-black #ccMainArea .card-body,
html.ym-theme-blue #ccMainArea .card-body,
html.ym-theme-beige #ccMainArea .card-body,
html.ym-theme-black #ccLeftArea .card,
html.ym-theme-blue #ccLeftArea .card,
html.ym-theme-beige #ccLeftArea .card,
html.ym-theme-black #ccRightArea .card,
html.ym-theme-blue #ccRightArea .card,
html.ym-theme-beige #ccRightArea .card {
    border-color: var(--ym-border) !important;
    background-color: var(--ym-surface-bg) !important;
    color: var(--ym-text) !important;
}

html.ym-theme-black #ccMainArea :is(p, li, dt, dd, div, span, small, strong, em, b, td, th, h1, h2, h3, h4, h5, h6, figcaption),
html.ym-theme-blue #ccMainArea :is(p, li, dt, dd, div, span, small, strong, em, b, td, th, h1, h2, h3, h4, h5, h6, figcaption),
html.ym-theme-beige #ccMainArea :is(p, li, dt, dd, div, span, small, strong, em, b, td, th, h1, h2, h3, h4, h5, h6, figcaption) {
    color: var(--ym-text) !important;
}

html.ym-theme-black #ccMainArea a,
html.ym-theme-blue #ccMainArea a,
html.ym-theme-beige #ccMainArea a {
    color: var(--ym-link) !important;
    text-decoration-color: var(--ym-link) !important;
}

html.ym-theme-black #ccMainArea a:hover,
html.ym-theme-blue #ccMainArea a:hover,
html.ym-theme-beige #ccMainArea a:hover {
    color: var(--ym-link-hover) !important;
    text-decoration-color: var(--ym-link-hover) !important;
}

html.ym-theme-black .plugin-menus a,
html.ym-theme-blue .plugin-menus a,
html.ym-theme-beige .plugin-menus a {
    border-color: var(--ym-border) !important;
    background-color: var(--ym-menu-bg) !important;
    color: #ffffff !important;
    text-decoration-color: #ffffff !important;
}

html.ym-theme-black .plugin-menus a:hover,
html.ym-theme-black .plugin-menus a:focus-visible,
html.ym-theme-black .plugin-menus a.active,
html.ym-theme-blue .plugin-menus a:hover,
html.ym-theme-blue .plugin-menus a:focus-visible,
html.ym-theme-blue .plugin-menus a.active,
html.ym-theme-beige .plugin-menus a:hover,
html.ym-theme-beige .plugin-menus a:focus-visible,
html.ym-theme-beige .plugin-menus a.active {
    background-color: var(--ym-menu-hover) !important;
    color: #fff36a !important;
}

html.ym-theme-black input,
html.ym-theme-black select,
html.ym-theme-black textarea,
html.ym-theme-blue input,
html.ym-theme-blue select,
html.ym-theme-blue textarea,
html.ym-theme-beige input,
html.ym-theme-beige select,
html.ym-theme-beige textarea {
    border-color: var(--ym-border) !important;
    background-color: var(--ym-input-bg) !important;
    color: var(--ym-input-text) !important;
}

/* 画像の色は変更しない */
html.ym-theme-black #ccMainArea img,
html.ym-theme-blue #ccMainArea img,
html.ym-theme-beige #ccMainArea img {
    filter: none !important;
    opacity: 1 !important;
}

/* カレンダーは文字サイズを変えず、表本体だけを配色する */
html.ym-theme-black .plugin-calendars,
html.ym-theme-black .plugin-calendar,
html.ym-theme-blue .plugin-calendars,
html.ym-theme-blue .plugin-calendar,
html.ym-theme-beige .plugin-calendars,
html.ym-theme-beige .plugin-calendar {
    background-color: var(--ym-surface-bg) !important;
    color: var(--ym-text) !important;
}

html.ym-theme-black .plugin-calendars table,
html.ym-theme-black .plugin-calendar table,
html.ym-theme-blue .plugin-calendars table,
html.ym-theme-blue .plugin-calendar table,
html.ym-theme-beige .plugin-calendars table,
html.ym-theme-beige .plugin-calendar table {
    width: 100%;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    background-color: var(--ym-surface-bg) !important;
    color: var(--ym-text) !important;
}

html.ym-theme-black .plugin-calendars th,
html.ym-theme-black .plugin-calendars td,
html.ym-theme-black .plugin-calendar th,
html.ym-theme-black .plugin-calendar td,
html.ym-theme-blue .plugin-calendars th,
html.ym-theme-blue .plugin-calendars td,
html.ym-theme-blue .plugin-calendar th,
html.ym-theme-blue .plugin-calendar td,
html.ym-theme-beige .plugin-calendars th,
html.ym-theme-beige .plugin-calendars td,
html.ym-theme-beige .plugin-calendar th,
html.ym-theme-beige .plugin-calendar td {
    border: 1px solid var(--ym-border) !important;
    background-color: var(--ym-surface-bg) !important;
    color: var(--ym-text) !important;
    background-clip: padding-box !important;
}

/* 予定名などの内側要素は透明にし、セルの罫線を覆わせない */
html.ym-theme-black .plugin-calendars td *,
html.ym-theme-black .plugin-calendar td *,
html.ym-theme-blue .plugin-calendars td *,
html.ym-theme-blue .plugin-calendar td *,
html.ym-theme-beige .plugin-calendars td *,
html.ym-theme-beige .plugin-calendar td * {
    background-color: transparent !important;
}

html.ym-theme-black .plugin-calendars a,
html.ym-theme-black .plugin-calendar a,
html.ym-theme-blue .plugin-calendars a,
html.ym-theme-blue .plugin-calendar a,
html.ym-theme-beige .plugin-calendars a,
html.ym-theme-beige .plugin-calendar a {
    color: var(--ym-link) !important;
}

/* =====================================================
   アクセシビリティバーとダイアログは常に専用配色
===================================================== */

/* PC・タブレット：バー全体は常に濃い青 */
html.ym-theme-white #ym-accessibility-bar,
html.ym-theme-black #ym-accessibility-bar,
html.ym-theme-blue #ym-accessibility-bar,
html.ym-theme-beige #ym-accessibility-bar {
    background: linear-gradient(135deg, #0b49a0 0%, #062c70 58%, #041f55 100%) !important;
    color: #ffffff !important;
}

/* 見出し・説明文・開閉記号 */
html[class*="ym-theme-"] #ym-accessibility-bar .ym-accessibility-title,
html[class*="ym-theme-"] #ym-accessibility-bar .ym-accessibility-subtitle,
html[class*="ym-theme-"] #ym-accessibility-bar .ym-accessibility-toggle-mark,
html[class*="ym-theme-"] #ym-accessibility-bar .ym-accessibility-label {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html[class*="ym-theme-"] #ym-accessibility-bar .ym-accessibility-symbol,
html[class*="ym-theme-"] #ym-accessibility-bar .ym-accessibility-symbol i {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* 文字サイズ・ふりがなの未選択ボタン */
html[class*="ym-theme-"] #ym-accessibility-bar .ym-segmented-control button {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* 文字サイズ・ふりがなの選択中ボタン */
html[class*="ym-theme-"] #ym-accessibility-bar .ym-segmented-control button.is-active {
    background: #ffffff !important;
    color: #12335c !important;
    -webkit-text-fill-color: #12335c !important;
}

/* ふりがなアイコン */
html[class*="ym-theme-"] #ym-accessibility-bar .ym-round-icon {
    border-color: #ffffff !important;
    background: transparent !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* 読み上げボタン、タイトル、スピーカーアイコン */
html[class*="ym-theme-"] #ym-accessibility-bar .ym-read-guide-btn,
html[class*="ym-theme-"] #ym-accessibility-bar .ym-read-guide-text,
html[class*="ym-theme-"] #ym-accessibility-bar .ym-read-guide-main,
html[class*="ym-theme-"] #ym-accessibility-bar .ym-read-guide-sub,
html[class*="ym-theme-"] #ym-accessibility-bar .ym-speaker-icon,
html[class*="ym-theme-"] #ym-accessibility-bar .ym-speaker-icon i {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* 背景色ボタンは各ボタン固有の色を維持 */
html[class*="ym-theme-"] #ym-accessibility-bar .ym-color-white {
    background: #ffffff !important;
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
}

html[class*="ym-theme-"] #ym-accessibility-bar .ym-color-black {
    background: #000000 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html[class*="ym-theme-"] #ym-accessibility-bar .ym-color-blue {
    background: #1968d2 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html[class*="ym-theme-"] #ym-accessibility-bar .ym-color-beige {
    background: #f1dfc3 !important;
    color: #24170d !important;
    -webkit-text-fill-color: #24170d !important;
}

/* 読み上げ案内ダイアログ */
html.ym-theme-black .ym-dialog,
html.ym-theme-blue .ym-dialog,
html.ym-theme-beige .ym-dialog {
    background: #ffffff !important;
    color: #212529 !important;
}

html.ym-theme-black .ym-dialog *,
html.ym-theme-blue .ym-dialog *,
html.ym-theme-beige .ym-dialog * {
    color: inherit;
}

/* 「閉じる」ボタンは常に濃紺背景・白文字 */
html[class*="ym-theme-"] .ym-dialog .ym-dialog-close,
html[class*="ym-theme-"] .ym-dialog .ym-dialog-close * {
    background-color: #12335c !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* =====================================================
   11．タブレット
===================================================== */

@media (max-width: 1280px) {
    #ym-accessibility-bar .ym-accessibility-toggle {
        min-width: 315px;
        gap: 10px;
        padding-right: 10px;
        padding-left: 14px;
    }

    #ym-accessibility-bar .ym-accessibility-symbol {
        flex-basis: 60px;
        width: 60px;
        height: 60px;
        font-size: 55px !important;
    }

    #ym-accessibility-bar .ym-accessibility-title {
        font-size: 23px !important;
    }

    #ym-accessibility-bar .ym-accessibility-subtitle {
        font-size: 12px !important;
    }

    #ym-accessibility-bar .ym-accessibility-inner {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px 14px;
        padding: 10px 12px;
    }

    #ym-accessibility-bar .ym-accessibility-divider {
        display: none;
    }
}

/* =====================================================
   12．スマートフォン
===================================================== */

@media (max-width: 767px) {
    #ym-accessibility-bar {
        display: block;
        border-radius: 0;
        box-shadow: 0 3px 10px rgba(7, 39, 91, 0.2);
    }

    #ym-accessibility-bar .ym-accessibility-toggle {
        width: 100%;
        min-width: 0;
        min-height: 78px;
        gap: 9px;
        padding: 10px 14px;
        cursor: pointer;
    }

    #ym-accessibility-bar .ym-accessibility-symbol {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
        font-size: 48px !important;
    }

    #ym-accessibility-bar .ym-accessibility-title {
        font-size: 20px !important;
    }

    #ym-accessibility-bar .ym-accessibility-subtitle {
        font-size: 10.5px !important;
    }

    #ym-accessibility-bar .ym-accessibility-toggle-mark {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    #ym-accessibility-bar .ym-accessibility-panel {
        display: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        background: #ffffff;
    }

    #ym-accessibility-bar .ym-accessibility-panel.is-open {
        display: block;
    }

    #ym-accessibility-bar .ym-accessibility-inner {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 15px 14px 16px;
    }

    #ym-accessibility-bar .ym-accessibility-group {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    #ym-accessibility-bar .ym-accessibility-label {
        color: #12335c;
        font-size: 15px !important;
    }

    #ym-accessibility-bar .ym-accessibility-divider {
        display: none;
    }

    #ym-accessibility-bar .ym-segmented-control {
        border: 1px solid #b7c3d2;
        background: #ffffff;
        box-shadow: 0 2px 6px rgba(18, 51, 92, 0.08);
    }

    #ym-accessibility-bar .ym-segmented-control button {
        min-height: 46px;
        border-right: 1px solid #c5d0dc;
        background: #ffffff;
        color: #12335c;
        font-size: 15px !important;
    }

    #ym-accessibility-bar .ym-segmented-control button.is-active {
        background: #0b49a0 !important;
        color: #ffffff !important;
    }

    #ym-accessibility-bar .ym-color-control {
        flex-wrap: wrap;
    }

    #ym-accessibility-bar .ym-color-btn {
        min-width: 54px;
        min-height: 46px;
    }

    #ym-accessibility-bar .ym-round-icon {
        border-color: #0b49a0;
        background: transparent;
        color: #0b49a0;
        -webkit-text-fill-color: #0b49a0;
    }

    #ym-accessibility-bar .ym-furigana-group {
        align-items: center;
    }

    #ym-accessibility-bar .ym-read-guide-btn {
        width: 100%;
        min-height: 56px;
        justify-content: center;
        border: 1px solid #b7c3d2;
        border-radius: 12px;
        background: #ffffff;
        color: #12335c;
        box-shadow: 0 2px 6px rgba(18, 51, 92, 0.1);
    }

    #ym-accessibility-bar .ym-speaker-icon {
        color: #0b49a0;
        font-size: 28px !important;
    }

    #ym-accessibility-bar .ym-read-guide-text,
    #ym-accessibility-bar .ym-read-guide-main,
    #ym-accessibility-bar .ym-read-guide-sub {
        color: #12335c;
    }

    #ym-accessibility-bar .ym-read-guide-main {
        font-size: 16px !important;
    }

    #ym-accessibility-bar .ym-read-guide-sub {
        font-size: 11px !important;
    }

    #page-top {
        right: 12px;
        bottom: 12px;
    }

    #page-top a {
        width: 54px;
        height: 54px;
        font-size: 1.65rem;
    }

    html.ym-font-large .plugin-menus .nav-tabs,
    html.ym-font-xlarge .plugin-menus .nav-tabs {
        display: block;
    }

    html.ym-font-large .plugin-menus .nav-tabs li.nav-item,
    html.ym-font-xlarge .plugin-menus .nav-tabs li.nav-item {
        width: 100%;
    }

    html.ym-font-large .plugin-menus .nav-tabs .dropdown-toggle,
    html.ym-font-xlarge .plugin-menus .nav-tabs .dropdown-toggle {
        width: 100%;
        justify-content: flex-start;
    }
}

/* =====================================================
   13．横型メニューのプルダウン親項目補正
===================================================== */

.plugin-menus .nav-tabs .dropdown-toggle,
.plugin-menus .nav-tabs .dropdown-toggle span {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.35;
}

html.ym-font-large .plugin-menus .nav-tabs .dropdown-toggle,
html.ym-font-xlarge .plugin-menus .nav-tabs .dropdown-toggle {
    min-height: 100%;
    padding-top: 0.65em !important;
    padding-bottom: 0.65em !important;
}

html.ym-font-large .plugin-menus .nav-tabs li.nav-item,
html.ym-font-xlarge .plugin-menus .nav-tabs li.nav-item {
    display: flex;
    align-items: stretch;
}

html.ym-font-large .plugin-menus .nav-tabs li.nav-item > a,
html.ym-font-xlarge .plugin-menus .nav-tabs li.nav-item > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* =====================================================
   14．Ver.12.1.4 スマートフォン配色 最終補正
===================================================== */

@media (max-width: 767px) {
    /* 上部見出しは常に青背景・白文字 */
    html[class*="ym-theme-"] #ym-accessibility-bar .ym-accessibility-toggle {
        background: transparent !important;
        color: #ffffff !important;
    }

    html[class*="ym-theme-"] #ym-accessibility-bar .ym-accessibility-title,
    html[class*="ym-theme-"] #ym-accessibility-bar .ym-accessibility-subtitle,
    html[class*="ym-theme-"] #ym-accessibility-bar .ym-accessibility-toggle-mark,
    html[class*="ym-theme-"] #ym-accessibility-bar .ym-accessibility-toggle-mark i {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    /* 展開部分は常に白背景・濃紺文字 */
    html[class*="ym-theme-"] #ym-accessibility-bar .ym-accessibility-panel {
        background: #ffffff !important;
        color: #12335c !important;
    }

    html[class*="ym-theme-"] #ym-accessibility-bar .ym-accessibility-label {
        color: #12335c !important;
        -webkit-text-fill-color: #12335c !important;
    }

    /* 未選択ボタンは白背景・濃紺文字 */
    html[class*="ym-theme-"] #ym-accessibility-bar .ym-segmented-control button {
        background: #ffffff !important;
        color: #12335c !important;
        -webkit-text-fill-color: #12335c !important;
    }

    /* 選択中ボタンは青背景・白文字 */
    html[class*="ym-theme-"] #ym-accessibility-bar .ym-segmented-control button.is-active {
        background: #0b49a0 !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    /* ふりがなアイコン */
    html[class*="ym-theme-"] #ym-accessibility-bar .ym-round-icon {
        border-color: #0b49a0 !important;
        background: transparent !important;
        color: #0b49a0 !important;
        -webkit-text-fill-color: #0b49a0 !important;
    }

    /* 読み上げ案内は白背景・濃紺文字・青アイコン */
    html[class*="ym-theme-"] #ym-accessibility-bar .ym-read-guide-btn {
        background: #ffffff !important;
        color: #12335c !important;
    }

    html[class*="ym-theme-"] #ym-accessibility-bar .ym-read-guide-text,
    html[class*="ym-theme-"] #ym-accessibility-bar .ym-read-guide-main,
    html[class*="ym-theme-"] #ym-accessibility-bar .ym-read-guide-sub {
        color: #12335c !important;
        -webkit-text-fill-color: #12335c !important;
    }

    html[class*="ym-theme-"] #ym-accessibility-bar .ym-speaker-icon,
    html[class*="ym-theme-"] #ym-accessibility-bar .ym-speaker-icon i {
        color: #0b49a0 !important;
        -webkit-text-fill-color: #0b49a0 !important;
    }
}

/* =====================================================
   15．動きを抑える設定を利用している端末への配慮
===================================================== */

@media (prefers-reduced-motion: reduce) {
    #ym-accessibility-bar .ym-segmented-control button {
        transition: none;
    }
}

/* 1. フレーム・全体の100%幅 ＋ 左右余白の設定 */
.cc-custom-wrapper {
  width: 100% !important;
  max-width: 1280px !important;
  padding-right: 24px !important;
  padding-left: 24px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: inherit;
  box-sizing: border-box;
}

@media (max-width: 576px) {
  .cc-custom-wrapper {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }
}

/* 画像の自動サイズ調整・レスポンシブ共通設定 */
.cc-custom-wrapper img,
.cc-custom-wrapper img.responsive-img,
.cc-custom-wrapper .img-fluid {
  max-width: 100% !important;
  height: auto !important;
  object-fit: cover;
  display: block;
}

/* メインビジュアル */
.cc-hero-banner {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.cc-hero-img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  display: block !important;
}

@media (max-width: 576px) {
  .cc-hero-img {
    height: 280px !important;
    aspect-ratio: 4 / 3 !important;
  }
}

.cc-card-img-fit {
  width: 100% !important;
  aspect-ratio: 16 / 10;
  object-fit: cover !important;
}

.cc-card-img-short {
  width: 100% !important;
  aspect-ratio: 16 / 7;
  object-fit: cover !important;
}

.cc-thumb-img {
  max-height: 80px;
  width: auto !important;
  object-fit: contain !important;
}

/* 2. カードの基本構造 ＆ ホバー設定 */
.cc-hover-card {
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border: 2px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  background: #ffffff;
  text-decoration: none !important;
  color: #222222;
  display: block;
  position: relative;
  overflow: hidden;
  outline: none;
}

.cc-hover-card:hover,
.cc-hover-card:focus {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3) !important;
  text-decoration: none !important;
  border-color: #000000 !important;
}

/* 通常時のホバー・フォーカス設定 */
html:not(.ym-theme-black):not(.ym-theme-blue) .cc-hover-card:hover *,
html:not(.ym-theme-black):not(.ym-theme-blue) .cc-hover-card:focus * {
  color: #ffffff !important;
}

html:not(.ym-theme-black):not(.ym-theme-blue) .cc-hover-card:hover .btn,
html:not(.ym-theme-black):not(.ym-theme-blue) .cc-hover-card:focus .btn {
  background-color: #ffffff !important;
  color: #111111 !important;
  border-color: #ffffff !important;
  font-weight: bold;
}

.cc-border-thick {
  border: 2px solid rgba(0, 0, 0, 0.18) !important;
}

/* パステルカラー定義 */
.bg-pastel-pink { background-color: #FFF0F5 !important; border-color: #FFD1DC !important; }
.bg-pastel-pink:hover, .bg-pastel-pink:focus { background-color: #9B1C31 !important; }

.bg-pastel-orange { background-color: #FFF8F0 !important; border-color: #FFEDD5 !important; }
.bg-pastel-orange:hover, .bg-pastel-orange:focus { background-color: #C05621 !important; }

.bg-pastel-blue { background-color: #F0F8FF !important; border-color: #BBE1FA !important; }
.bg-pastel-blue:hover, .bg-pastel-blue:focus { background-color: #1A365D !important; }

.bg-pastel-green { background-color: #F0FFF4 !important; border-color: #C6F6D5 !important; }
.bg-pastel-green:hover, .bg-pastel-green:focus { background-color: #1C452D !important; }

.bg-pastel-yellow { background-color: #FFFDE7 !important; border-color: #FFF9C4 !important; }
.bg-pastel-yellow:hover, .bg-pastel-yellow:focus { background-color: #744210 !important; }

.bg-pastel-purple { background-color: #F3E5F5 !important; border-color: #E1BEE7 !important; }
.bg-pastel-purple:hover, .bg-pastel-purple:focus { background-color: #4A154B !important; }

.bg-pastel-rose { background-color: #FFF5F5 !important; border-color: #FED7D7 !important; }
.bg-pastel-rose:hover, .bg-pastel-rose:focus { background-color: #822727 !important; }

.bg-pastel-mint { background-color: #F0FDF4 !important; border-color: #BBF7D0 !important; }
.bg-pastel-mint:hover, .bg-pastel-mint:focus { background-color: #14532D !important; }

.bg-pastel-lavender { background-color: #F5F3FF !important; border-color: #DDD6FE !important; }
.bg-pastel-lavender:hover, .bg-pastel-lavender:focus { background-color: #3C096C !important; }

.bg-pastel-cream { background-color: #FFFDF0 !important; border-color: #FCEEAC !important; }
.bg-pastel-cream:hover, .bg-pastel-cream:focus { background-color: #78350F !important; }

.card-youtube { background-color: #ffffff !important; border-color: #FFD1DC !important; }
.card-youtube:hover, .card-youtube:focus { background-color: #CC0000 !important; border-color: #CC0000 !important; }

.cc-card-school-life:hover,
.cc-card-school-life:focus {
  background-color: #2D3748 !important;
}

.btn-outline-rose     { color: #C53030; border-color: #C53030; }
.btn-outline-mint     { color: #22543D; border-color: #22543D; }
.btn-outline-orange   { color: #C05621; border-color: #C05621; }
.btn-outline-blue     { color: #2B6CB0; border-color: #2B6CB0; }
.btn-outline-green    { color: #22543D; border-color: #22543D; }
.btn-outline-purple   { color: #6B46C1; border-color: #6B46C1; }
.btn-outline-lavender { color: #2B6CB0; border-color: #2B6CB0; }
.btn-outline-red      { color: #CC0000; border-color: #CC0000; }
.btn-outline-dark-sub { color: #2D3748; border-color: #718096; }

.text-cream-accent { color: #8C5300 !important; }
.btn-cream-accent {
  background-color: #8C5300;
  color: #ffffff !important;
  border-radius: 50px;
  padding: 12px 32px;
  font-size: 1.15rem;
  font-weight: bold;
  display: inline-block;
  transition: all 0.2s ease;
}

/* 新着情報 What's New セクション */
.cc-whatsnew-section {
  background-color: #f7fafc;
  border-radius: 16px !important;
  padding: 32px 28px !important;
  border: 1px solid rgba(0,0,0,0.08);
}

.cc-whatsnew-header {
  margin-bottom: 24px;
}

.cc-whatsnew-en {
  font-size: 1.8rem;
  font-weight: 800;
  color: #2b6cb0;
  margin: 0;
  line-height: 1.2;
}

.cc-whatsnew-jp {
  font-size: 1.1rem;
  font-weight: bold;
  color: #4a5568;
  margin-top: 4px;
}

.cc-whatsnew-area dl,
.cc-whatsnew-area ul,
.cc-whatsnew-area .list-group {
  padding-left: 0 !important;
  margin-bottom: 0 !important;
  list-style: none !important;
}

.cc-whatsnew-area dt,
.cc-whatsnew-area .list-group-item,
.cc-whatsnew-area article,
.cc-whatsnew-area tr {
  display: flex !important;
  align-items: center !important;
  background-color: #ffffff !important;
  border-radius: 12px !important;
  padding: 14px 20px !important;
  margin-bottom: 12px !important;
  text-decoration: none !important;
  color: #2d3748 !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02) !important;
  border: none !important;
  position: relative !important;
}

.cc-whatsnew-area dt:hover,
.cc-whatsnew-area .list-group-item:hover,
.cc-whatsnew-area article:hover {
  transform: translateX(4px) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

.cc-whatsnew-area .date,
.cc-whatsnew-area dt,
.cc-whatsnew-area time,
.cc-whatsnew-area span:first-child {
  font-size: 0.95rem !important;
  color: #718096 !important;
  font-weight: 600 !important;
  width: 105px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.cc-whatsnew-area .badge,
.cc-whatsnew-area .category,
.cc-whatsnew-area .label {
  display: inline-block !important;
  padding: 4px 16px !important;
  font-size: 0.85rem !important;
  font-weight: bold !important;
  border-radius: 20px !important;
  border: 1.5px solid #3182ce !important;
  color: #3182ce !important;
  background-color: #ffffff !important;
  text-align: center !important;
  min-width: 90px !important;
  margin-right: 20px !important;
  flex-shrink: 0 !important;
}

.cc-whatsnew-area dd,
.cc-whatsnew-area a,
.cc-whatsnew-area .title {
  flex-grow: 1 !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #2d3748 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 0 !important;
}

.cc-whatsnew-area a:hover {
  color: #2b6cb0 !important;
  text-decoration: underline !important;
}

.cc-whatsnew-area dt::after,
.cc-whatsnew-area .list-group-item::after,
.cc-whatsnew-area article::after {
  content: ">";
  color: #a0aec0;
  font-size: 0.9rem;
  font-weight: bold;
  margin-left: 12px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cc-whatsnew-area dt,
  .cc-whatsnew-area .list-group-item,
  .cc-whatsnew-area article {
    flex-wrap: wrap !important;
    padding: 12px 16px !important;
  }
  .cc-whatsnew-area .date,
  .cc-whatsnew-area dt,
  .cc-whatsnew-area time {
    width: auto !important;
    margin-right: 12px !important;
  }
  .cc-whatsnew-area .badge,
  .cc-whatsnew-area .category {
    margin-right: 0 !important;
    margin-bottom: 6px !important;
  }
  .cc-whatsnew-area dd,
  .cc-whatsnew-area a,
  .cc-whatsnew-area .title {
    width: 100% !important;
    order: 3 !important;
    margin-top: 6px !important;
  }
}

/* 3. スクロールアニメーション */
.js-active .cc-reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.js-active .cc-reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cc-section-title {
  font-weight: bold;
  color: inherit;
  border-bottom: 2px solid currentColor;
  padding-bottom: 8px;
  margin-bottom: 20px;
  font-size: 2rem !important;
}

/* ===================================================
   16．アクセシビリティ（黒／青背景）カスタムカード制御
   =================================================== */

/* 1. 黒背景モード */
html.ym-theme-black body,
html.ym-theme-black .cc-custom-wrapper {
  background-color: #000000 !important;
  color: #ffffff !important;
}

html.ym-theme-black div.cc-custom-wrapper .cc-hover-card {
  background-color: #111111 !important;
  background: #111111 !important;
  border: 2px solid #ffffff !important;
}

html.ym-theme-black div.cc-custom-wrapper .cc-hover-card * {
  color: #ffffff !important;
}

html.ym-theme-black div.cc-custom-wrapper .cc-hover-card .btn {
  background-color: #000000 !important;
  background: #000000 !important;
  color: #ffff00 !important;
  border: 2px solid #ffff00 !important;
  font-weight: bold !important;
}

html.ym-theme-black div.cc-custom-wrapper .cc-hover-card:hover {
  background-color: #222222 !important;
  border-color: #ffff00 !important;
}

html.ym-theme-black div.cc-custom-wrapper .cc-whatsnew-section {
  background-color: #111111 !important;
  border: 2px solid #ffffff !important;
}

html.ym-theme-black div.cc-custom-wrapper .cc-whatsnew-en,
html.ym-theme-black div.cc-custom-wrapper .cc-whatsnew-jp {
  color: #ffffff !important;
}

html.ym-theme-black div.cc-custom-wrapper .cc-whatsnew-area dt,
html.ym-theme-black div.cc-custom-wrapper .cc-whatsnew-area .list-group-item,
html.ym-theme-black div.cc-custom-wrapper .cc-whatsnew-area article {
  background-color: #222222 !important;
  border: 1px solid #ffffff !important;
  color: #ffffff !important;
}

html.ym-theme-black div.cc-custom-wrapper .cc-whatsnew-area a,
html.ym-theme-black div.cc-custom-wrapper .cc-whatsnew-area .date {
  color: #ffffff !important;
}

html.ym-theme-black div.cc-custom-wrapper .cc-whatsnew-area .badge {
  background-color: #000000 !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}

/* 2. 青背景モード */
html.ym-theme-blue body,
html.ym-theme-blue .cc-custom-wrapper {
  background-color: #063a85 !important;
  color: #ffffff !important;
}

html.ym-theme-blue div.cc-custom-wrapper .cc-hover-card {
  background-color: #03265c !important;
  background: #03265c !important;
  border: 2px solid #ffffff !important;
}

html.ym-theme-blue div.cc-custom-wrapper .cc-hover-card * {
  color: #ffffff !important;
}

html.ym-theme-blue div.cc-custom-wrapper .cc-hover-card .btn {
  background-color: #063a85 !important;
  background: #063a85 !important;
  color: #ffff00 !important;
  border: 2px solid #ffff00 !important;
  font-weight: bold !important;
}

html.ym-theme-blue div.cc-custom-wrapper .cc-hover-card:hover {
  background-color: #0849a3 !important;
  border-color: #ffff00 !important;
}

html.ym-theme-blue div.cc-custom-wrapper .cc-whatsnew-section {
  background-color: #03265c !important;
  border: 2px solid #ffffff !important;
}

html.ym-theme-blue div.cc-custom-wrapper .cc-whatsnew-en,
html.ym-theme-blue div.cc-custom-wrapper .cc-whatsnew-jp {
  color: #ffffff !important;
}

html.ym-theme-blue div.cc-custom-wrapper .cc-whatsnew-area dt,
html.ym-theme-blue div.cc-custom-wrapper .cc-whatsnew-area .list-group-item,
html.ym-theme-blue div.cc-custom-wrapper .cc-whatsnew-area article {
  background-color: #0849a3 !important;
  border: 1px solid #ffffff !important;
  color: #ffffff !important;
}

html.ym-theme-blue div.cc-custom-wrapper .cc-whatsnew-area a,
html.ym-theme-blue div.cc-custom-wrapper .cc-whatsnew-area .date {
  color: #ffffff !important;
}

html.ym-theme-blue div.cc-custom-wrapper .cc-whatsnew-area .badge {
  background-color: #063a85 !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}