/* =====================================================
   山形県立山形盲学校
   ユーザーテーマCSS 完全版 Ver.11

   文字サイズ
   ・標準：1.0倍
   ・大　：1.5倍
   ・最大：2.0倍

   記事本文と横型・縦型メニューを拡大します。
   カレンダーは拡大しません。
===================================================== */

body {
    font-family: sans-serif;
}

.bg-dark {
    background-color: #12335c !important;
    padding: 0;
}

.navbar-dark .navbar-brand {
    font-size: 1rem;
    padding-left: 0.5rem;
}

.navbar-dark .navbar-nav .nav-link {
    font-size: 0.8rem;
}

/* 横型メニュー */
.plugin-menus .nav-tabs li.nav-item > a {
    color: #ffffff;
    background: #12335c;
}

.plugin-menus .nav-tabs li.nav-item > a.active {
    border-color: transparent;
}

.plugin-menus .nav-tabs li.nav-item {
    border-top: solid 2px #ffffff;
    border-bottom: solid 2px #ffffff;
    border-left: solid 2px #ffffff;
}

.plugin-menus .nav-tabs li.nav-item:last-child {
    border-right: solid 2px #ffffff;
}

.plugin-menus .nav-tabs .nav-link {
    border-radius: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.4;
}

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;
}

/* ページ上部へ戻る */
#page-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    font-size: 80%;
}

#page-top a {
    display: block;
    width: 100px;
    padding: 5px 0;
    background: #12335c;
    color: #ffffff;
    font-size: 3rem;
    text-align: center;
    text-decoration: none;
    opacity: 1;
}

#page-top a:hover,
#page-top a:focus-visible {
    background: #12335c;
    color: #ffffff;
    text-decoration: none;
    opacity: 0.8;
}

#page-top a:focus-visible {
    outline: 3px solid #ffd800;
    outline-offset: 3px;
}

/* 縦型メニュー */
.plugin-menus .list-group > a.list-group-item {
    color: #ffffff;
    background: #12335c;
    border: none;
    border-radius: unset;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.45;
}

.plugin-menus .list-group > a.list-group-item.active,
.plugin-menus .list-group > a.list-group-item:hover,
.plugin-menus .list-group > a.list-group-item:focus-visible {
    background-color: #55555550;
    border-color: transparent;
    z-index: 0;
    text-decoration: none;
}

/* メインエリアのリンク */
#ccMainArea a {
    color: #12335c;
    text-decoration: underline;
}

#ccMainArea a:hover {
    color: #12335c80;
    text-decoration: underline;
}

#ccMainArea a:focus-visible {
    outline: 3px solid #ffd800;
    outline-offset: 2px;
}

.plugin-menus .nav-tabs a,
.plugin-menus .list-group a {
    color: #ffffff;
}

/* 標準フレームタイトル */
.card-header.bg-default {
    color: #ffffff;
    background: #12335c;
    border-color: #ffffff;
    border-bottom-style: solid;
    border-bottom-width: 2px;
}

/* 追加フレームカラー共通 */
.frame-pink,
.frame-coral,
.frame-orange,
.frame-yellow,
.frame-green,
.frame-mint,
.frame-blue,
.frame-purple,
.frame-gray {
    border-radius: 12px !important;
    overflow: hidden !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 {
    border-width: 2px !important;
    border-style: solid !important;
    border-radius: 12px !important;
    overflow: hidden !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 {
    color: #24333d !important;
    font-weight: 700 !important;
    border-radius: 10px 10px 0 0 !important;
    border-bottom-width: 2px !important;
    border-bottom-style: solid !important;
    background-image: none !important;
}

.frame-pink .card-header a,
.frame-coral .card-header a,
.frame-orange .card-header a,
.frame-yellow .card-header a,
.frame-green .card-header a,
.frame-mint .card-header a,
.frame-blue .card-header a,
.frame-purple .card-header a,
.frame-gray .card-header a,
.frame-pink .card-header button,
.frame-coral .card-header button,
.frame-orange .card-header button,
.frame-yellow .card-header button,
.frame-green .card-header button,
.frame-mint .card-header button,
.frame-blue .card-header button,
.frame-purple .card-header button,
.frame-gray .card-header button,
.frame-pink .card-header i,
.frame-coral .card-header i,
.frame-orange .card-header i,
.frame-yellow .card-header i,
.frame-green .card-header i,
.frame-mint .card-header i,
.frame-blue .card-header i,
.frame-purple .card-header i,
.frame-gray .card-header i {
    color: #24333d !important;
}

.frame-pink .card-body,
.frame-coral .card-body,
.frame-orange .card-body,
.frame-yellow .card-body,
.frame-green .card-body,
.frame-mint .card-body,
.frame-blue .card-body,
.frame-purple .card-body,
.frame-gray .card-body {
    background-color: #ffffff !important;
}

.frame-pink .card { border-color: #bd7e89 !important; }
.frame-pink .card-header { background-color: #e5b7be !important; border-bottom-color: #bd7e89 !important; }
.frame-coral .card { border-color: #dc927b !important; }
.frame-coral .card-header { background-color: #fabea7 !important; border-bottom-color: #dc927b !important; }
.frame-orange .card { border-color: #d99b71 !important; }
.frame-orange .card-header { background-color: #fcc9ac !important; border-bottom-color: #d99b71 !important; }
.frame-yellow .card { border-color: #d1c968 !important; }
.frame-yellow .card-header { background-color: #fffac2 !important; border-bottom-color: #d1c968 !important; }
.frame-green .card { border-color: #88b17f !important; }
.frame-green .card-header { background-color: #c3dcbe !important; border-bottom-color: #88b17f !important; }
.frame-mint .card { border-color: #7faeaa !important; }
.frame-mint .card-header { background-color: #bad4d1 !important; border-bottom-color: #7faeaa !important; }
.frame-blue .card { border-color: #8094aa !important; }
.frame-blue .card-header { background-color: #b4c1d1 !important; border-bottom-color: #8094aa !important; }
.frame-purple .card { border-color: #9275ad !important; }
.frame-purple .card-header { background-color: #c5b2d6 !important; border-bottom-color: #9275ad !important; }
.frame-gray .card { border-color: #9ca8b3 !important; }
.frame-gray .card-header { background-color: #d7dde3 !important; border-bottom-color: #9ca8b3 !important; }

.frame-pink a:focus-visible,
.frame-coral a:focus-visible,
.frame-orange a:focus-visible,
.frame-yellow a:focus-visible,
.frame-green a:focus-visible,
.frame-mint a:focus-visible,
.frame-blue a:focus-visible,
.frame-purple a:focus-visible,
.frame-gray a:focus-visible {
    outline: 3px solid #12335c !important;
    outline-offset: 2px !important;
}

/* アクセシビリティバー */
#ym-accessibility-bar {
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1000;
    background: linear-gradient(to bottom, #ffffff, #f4f6f9);
    border-bottom: 1px solid #c8ced8;
    color: #152f5b;
    font-size: 15px !important;
    line-height: 1.4;
}

#ym-accessibility-bar .ym-accessibility-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px 24px;
    width: 100%;
    max-width: none;
    min-height: 58px;
    margin: 0;
    padding: 8px 12px;
    box-sizing: border-box;
}

#ym-accessibility-bar .ym-accessibility-group {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 7px;
}

#ym-accessibility-bar .ym-accessibility-label {
    margin-right: 2px;
    color: #173568;
    font-size: 15px !important;
    font-weight: 700;
    white-space: nowrap;
}

#ym-accessibility-bar button {
    min-height: 38px;
    padding: 6px 13px;
    border: 1px solid #b9c2cf;
    border-radius: 7px;
    background: #ffffff;
    color: #173568;
    font-family: inherit;
    font-size: 15px !important;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

#ym-accessibility-bar button:hover,
#ym-accessibility-bar button:focus-visible {
    border-color: #174a91;
    outline: 3px solid #ffd800;
    outline-offset: 2px;
    transform: translateY(-1px);
}

#ym-accessibility-bar .ym-accessibility-btn.is-active {
    background: #063a85 !important;
    border-color: #063a85 !important;
    color: #ffffff !important;
}

#ym-accessibility-bar .ym-color-white { background: #ffffff; color: #111111; }
#ym-accessibility-bar .ym-color-black { background: #000000; border-color: #000000; color: #ffffff; }
#ym-accessibility-bar .ym-color-blue { background: #063a85; border-color: #063a85; color: #ffffff; }
#ym-accessibility-bar .ym-color-beige { background: #f1dfc3; border-color: #d6bc94; color: #24170d; }

#ym-accessibility-bar .ym-color-btn.is-active {
    outline: 3px solid #ffd800;
    outline-offset: 2px;
}

#ym-accessibility-bar .ym-furigana-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #063a85;
    color: #ffffff;
    font-size: 22px !important;
    font-weight: 700;
}

#ym-accessibility-bar .ym-furigana-btn {
    min-width: 44px;
    padding-left: 8px;
    padding-right: 8px;
}

#ym-accessibility-bar .ym-furigana-btn.is-active {
    background: #063a85;
    border-color: #063a85;
    color: #ffffff;
}

#ym-accessibility-bar .ym-read-guide-btn {
    padding-left: 5px;
    padding-right: 5px;
    border: 0;
    background: transparent;
    color: #173568;
    box-shadow: none;
}

#ym-accessibility-bar .ym-read-guide-btn span {
    margin-right: 5px;
    font-size: 22px !important;
}

/* 拡大時の補助 */
html.ym-font-normal #ym-accessibility-bar,
html.ym-font-large #ym-accessibility-bar,
html.ym-font-xlarge #ym-accessibility-bar {
    font-size: 15px !important;
}

html.ym-font-normal #ym-accessibility-bar *,
html.ym-font-large #ym-accessibility-bar *,
html.ym-font-xlarge #ym-accessibility-bar * {
    box-sizing: border-box;
}

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 .plugin-menus .nav-tabs [data-ym-font-recorded="true"],
html.ym-font-xlarge .plugin-menus .nav-tabs [data-ym-font-recorded="true"] {
    line-height: 1.35 !important;
    padding-top: 0.65em;
    padding-bottom: 0.65em;
}

html.ym-font-large .plugin-menus .list-group [data-ym-font-recorded="true"],
html.ym-font-xlarge .plugin-menus .list-group [data-ym-font-recorded="true"] {
    line-height: 1.45 !important;
    padding-top: 0.65em;
    padding-bottom: 0.65em;
}

html.ym-font-large #ccMainArea li[data-ym-font-recorded="true"],
html.ym-font-xlarge #ccMainArea li[data-ym-font-recorded="true"] {
    margin-bottom: 0.25em;
}

html.ym-font-large #ccMainArea td[data-ym-font-recorded="true"],
html.ym-font-large #ccMainArea th[data-ym-font-recorded="true"],
html.ym-font-xlarge #ccMainArea td[data-ym-font-recorded="true"],
html.ym-font-xlarge #ccMainArea th[data-ym-font-recorded="true"] {
    padding-top: 0.45em;
    padding-bottom: 0.45em;
}

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"],
[class*="calendar"],
[id*="calendar"],
[class*="Calendar"],
[id*="Calendar"] {
    max-width: 100%;
    line-height: normal;
}

/* 管理用部品等 */
.card-header,
.card-header * {
    overflow-wrap: normal;
}

#ccMainArea .btn,
#ccMainArea .badge,
#ccMainArea button,
#ccMainArea input,
#ccMainArea select,
#ccMainArea textarea {
    line-height: normal;
}

.plugin-searchs,
.plugin-search,
.plugin-searchs *,
.plugin-search * {
    line-height: normal;
}

/* タブレット */
@media (max-width: 900px) {
    #ym-accessibility-bar .ym-accessibility-inner {
        justify-content: flex-start;
        padding: 10px 12px;
        gap: 10px 16px;
    }

    #ym-accessibility-bar .ym-accessibility-group {
        flex-wrap: wrap;
    }
}

/* スマートフォン */
@media (max-width: 600px) {
    #ym-accessibility-bar {
        font-size: 14px !important;
    }

    #ym-accessibility-bar .ym-accessibility-inner {
        display: block;
        padding: 10px;
    }

    #ym-accessibility-bar .ym-accessibility-group {
        margin-bottom: 10px;
        gap: 6px;
    }

    #ym-accessibility-bar .ym-accessibility-group:last-child {
        margin-bottom: 0;
    }

    #ym-accessibility-bar .ym-accessibility-label {
        font-size: 14px !important;
    }

    #ym-accessibility-bar button {
        min-height: 42px;
        padding: 7px 11px;
        font-size: 14px !important;
    }

    #ym-accessibility-bar .ym-furigana-icon,
    #ym-accessibility-bar .ym-read-guide-btn span {
        font-size: 20px !important;
    }

    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%;
    }
}


/* =====================================================
   14．背景色切替 Ver.6

   改善点
   ・左右・中央・ヘッダー各エリアの白いカードを統一
   ・検索、給食、カレンダー等の各プラグインも配色対象
   ・横型・縦型メニューの外側余白も配色
   ・カレンダーの文字サイズは変更せず、配色だけ変更
   ・画像そのものの色は変更しない
===================================================== */


/* =====================================================
   14-1．配色変数
===================================================== */

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-muted-text: #495057;
    --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-muted-text: #e6e6e6;
    --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-muted-text: #edf6ff;
    --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-muted-text: #4a3c2c;
    --ym-link: #12335c;
    --ym-link-hover: #7a2100;
    --ym-border: #6b5b45;
    --ym-input-bg: #fffaf0;
    --ym-input-text: #1f1a14;
    --ym-focus: #d45500;
}


/* =====================================================
   14-2．ページと主要レイアウト
===================================================== */

html.ym-theme-white body,
html.ym-theme-black body,
html.ym-theme-blue body,
html.ym-theme-beige body {
    background-color: var(--ym-page-bg) !important;
    color: var(--ym-text) !important;
}

html.ym-theme-white #ccMainArea,
html.ym-theme-white #ccLeftArea,
html.ym-theme-white #ccRightArea,
html.ym-theme-white #ccCenterArea,
html.ym-theme-white #ccHeaderArea,
html.ym-theme-white #headerArea,
html.ym-theme-white #ccFooterArea,
html.ym-theme-black #ccMainArea,
html.ym-theme-black #ccLeftArea,
html.ym-theme-black #ccRightArea,
html.ym-theme-black #ccCenterArea,
html.ym-theme-black #ccHeaderArea,
html.ym-theme-black #headerArea,
html.ym-theme-black #ccFooterArea,
html.ym-theme-blue #ccMainArea,
html.ym-theme-blue #ccLeftArea,
html.ym-theme-blue #ccRightArea,
html.ym-theme-blue #ccCenterArea,
html.ym-theme-blue #ccHeaderArea,
html.ym-theme-blue #headerArea,
html.ym-theme-blue #ccFooterArea,
html.ym-theme-beige #ccMainArea,
html.ym-theme-beige #ccLeftArea,
html.ym-theme-beige #ccRightArea,
html.ym-theme-beige #ccCenterArea,
html.ym-theme-beige #ccHeaderArea,
html.ym-theme-beige #headerArea,
html.ym-theme-beige #ccFooterArea {
    background-color: var(--ym-page-bg) !important;
    color: var(--ym-text) !important;
}


/* Bootstrap等で白背景が固定されている主要要素 */
html.ym-theme-black #ccMainArea .bg-white,
html.ym-theme-black #ccLeftArea .bg-white,
html.ym-theme-black #ccRightArea .bg-white,
html.ym-theme-black #ccCenterArea .bg-white,
html.ym-theme-blue #ccMainArea .bg-white,
html.ym-theme-blue #ccLeftArea .bg-white,
html.ym-theme-blue #ccRightArea .bg-white,
html.ym-theme-blue #ccCenterArea .bg-white,
html.ym-theme-beige #ccMainArea .bg-white,
html.ym-theme-beige #ccLeftArea .bg-white,
html.ym-theme-beige #ccRightArea .bg-white,
html.ym-theme-beige #ccCenterArea .bg-white,
html.ym-theme-black #ccMainArea .bg-light,
html.ym-theme-black #ccLeftArea .bg-light,
html.ym-theme-black #ccRightArea .bg-light,
html.ym-theme-blue #ccMainArea .bg-light,
html.ym-theme-blue #ccLeftArea .bg-light,
html.ym-theme-blue #ccRightArea .bg-light,
html.ym-theme-beige #ccMainArea .bg-light,
html.ym-theme-beige #ccLeftArea .bg-light,
html.ym-theme-beige #ccRightArea .bg-light {
    background-color: var(--ym-surface-bg) !important;
    color: var(--ym-text) !important;
}


/* =====================================================
   14-3．カード・固定記事・各プラグイン
===================================================== */

html.ym-theme-black #ccMainArea .card,
html.ym-theme-black #ccLeftArea .card,
html.ym-theme-black #ccRightArea .card,
html.ym-theme-black #ccCenterArea .card,
html.ym-theme-blue #ccMainArea .card,
html.ym-theme-blue #ccLeftArea .card,
html.ym-theme-blue #ccRightArea .card,
html.ym-theme-blue #ccCenterArea .card,
html.ym-theme-beige #ccMainArea .card,
html.ym-theme-beige #ccLeftArea .card,
html.ym-theme-beige #ccRightArea .card,
html.ym-theme-beige #ccCenterArea .card {
    background-color: var(--ym-surface-bg) !important;
    color: var(--ym-text) !important;
    border-color: var(--ym-border) !important;
}

html.ym-theme-black #ccMainArea .card-body,
html.ym-theme-black #ccLeftArea .card-body,
html.ym-theme-black #ccRightArea .card-body,
html.ym-theme-black #ccCenterArea .card-body,
html.ym-theme-blue #ccMainArea .card-body,
html.ym-theme-blue #ccLeftArea .card-body,
html.ym-theme-blue #ccRightArea .card-body,
html.ym-theme-blue #ccCenterArea .card-body,
html.ym-theme-beige #ccMainArea .card-body,
html.ym-theme-beige #ccLeftArea .card-body,
html.ym-theme-beige #ccRightArea .card-body,
html.ym-theme-beige #ccCenterArea .card-body {
    background-color: var(--ym-surface-bg) !important;
    color: var(--ym-text) !important;
}


/* プラグイン外側の白い余白を統一 */
html.ym-theme-black .plugin-menus,
html.ym-theme-black .plugin-searchs,
html.ym-theme-black .plugin-search,
html.ym-theme-black .plugin-whatsnews,
html.ym-theme-black .plugin-static-content,
html.ym-theme-black .plugin-bbs,
html.ym-theme-black .plugin-calendars,
html.ym-theme-black .plugin-calendar,
html.ym-theme-blue .plugin-menus,
html.ym-theme-blue .plugin-searchs,
html.ym-theme-blue .plugin-search,
html.ym-theme-blue .plugin-whatsnews,
html.ym-theme-blue .plugin-static-content,
html.ym-theme-blue .plugin-bbs,
html.ym-theme-blue .plugin-calendars,
html.ym-theme-blue .plugin-calendar,
html.ym-theme-beige .plugin-menus,
html.ym-theme-beige .plugin-searchs,
html.ym-theme-beige .plugin-search,
html.ym-theme-beige .plugin-whatsnews,
html.ym-theme-beige .plugin-static-content,
html.ym-theme-beige .plugin-bbs,
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 .card-header,
html.ym-theme-blue .card-header,
html.ym-theme-beige .card-header {
    background-color: var(--ym-header-bg) !important;
    color: var(--ym-text) !important;
    border-color: var(--ym-border) !important;
}

html.ym-theme-black .card-header *,
html.ym-theme-blue .card-header *,
html.ym-theme-beige .card-header * {
    color: var(--ym-text) !important;
}


/* =====================================================
   14-4．本文・リンク
===================================================== */

html.ym-theme-black #ccMainArea p,
html.ym-theme-black #ccMainArea li,
html.ym-theme-black #ccMainArea dt,
html.ym-theme-black #ccMainArea dd,
html.ym-theme-black #ccMainArea td,
html.ym-theme-black #ccMainArea th,
html.ym-theme-black #ccMainArea h1,
html.ym-theme-black #ccMainArea h2,
html.ym-theme-black #ccMainArea h3,
html.ym-theme-black #ccMainArea h4,
html.ym-theme-black #ccMainArea h5,
html.ym-theme-black #ccMainArea h6,
html.ym-theme-black #ccMainArea span,
html.ym-theme-black #ccMainArea strong,
html.ym-theme-black #ccMainArea em,
html.ym-theme-black #ccMainArea label,
html.ym-theme-blue #ccMainArea p,
html.ym-theme-blue #ccMainArea li,
html.ym-theme-blue #ccMainArea dt,
html.ym-theme-blue #ccMainArea dd,
html.ym-theme-blue #ccMainArea td,
html.ym-theme-blue #ccMainArea th,
html.ym-theme-blue #ccMainArea h1,
html.ym-theme-blue #ccMainArea h2,
html.ym-theme-blue #ccMainArea h3,
html.ym-theme-blue #ccMainArea h4,
html.ym-theme-blue #ccMainArea h5,
html.ym-theme-blue #ccMainArea h6,
html.ym-theme-blue #ccMainArea span,
html.ym-theme-blue #ccMainArea strong,
html.ym-theme-blue #ccMainArea em,
html.ym-theme-blue #ccMainArea label,
html.ym-theme-beige #ccMainArea p,
html.ym-theme-beige #ccMainArea li,
html.ym-theme-beige #ccMainArea dt,
html.ym-theme-beige #ccMainArea dd,
html.ym-theme-beige #ccMainArea td,
html.ym-theme-beige #ccMainArea th,
html.ym-theme-beige #ccMainArea h1,
html.ym-theme-beige #ccMainArea h2,
html.ym-theme-beige #ccMainArea h3,
html.ym-theme-beige #ccMainArea h4,
html.ym-theme-beige #ccMainArea h5,
html.ym-theme-beige #ccMainArea h6,
html.ym-theme-beige #ccMainArea span,
html.ym-theme-beige #ccMainArea strong,
html.ym-theme-beige #ccMainArea em,
html.ym-theme-beige #ccMainArea label {
    color: var(--ym-text) !important;
}

html.ym-theme-black #ccMainArea a,
html.ym-theme-black #ccLeftArea a,
html.ym-theme-black #ccRightArea a,
html.ym-theme-blue #ccMainArea a,
html.ym-theme-blue #ccLeftArea a,
html.ym-theme-blue #ccRightArea a,
html.ym-theme-beige #ccMainArea a,
html.ym-theme-beige #ccLeftArea a,
html.ym-theme-beige #ccRightArea a {
    color: var(--ym-link) !important;
    text-decoration-color: var(--ym-link) !important;
}

html.ym-theme-black #ccMainArea a:hover,
html.ym-theme-black #ccMainArea a:focus-visible,
html.ym-theme-black #ccLeftArea a:hover,
html.ym-theme-black #ccLeftArea a:focus-visible,
html.ym-theme-blue #ccMainArea a:hover,
html.ym-theme-blue #ccMainArea a:focus-visible,
html.ym-theme-blue #ccLeftArea a:hover,
html.ym-theme-blue #ccLeftArea a:focus-visible,
html.ym-theme-beige #ccMainArea a:hover,
html.ym-theme-beige #ccMainArea a:focus-visible,
html.ym-theme-beige #ccLeftArea a:hover,
html.ym-theme-beige #ccLeftArea a:focus-visible {
    color: var(--ym-link-hover) !important;
    text-decoration-color: var(--ym-link-hover) !important;
}


/* =====================================================
   14-5．横型・縦型メニュー
===================================================== */

html.ym-theme-black .plugin-menus .nav-tabs li.nav-item > a,
html.ym-theme-black .plugin-menus .list-group > a.list-group-item,
html.ym-theme-blue .plugin-menus .nav-tabs li.nav-item > a,
html.ym-theme-blue .plugin-menus .list-group > a.list-group-item,
html.ym-theme-beige .plugin-menus .nav-tabs li.nav-item > a,
html.ym-theme-beige .plugin-menus .list-group > a.list-group-item {
    background-color: var(--ym-menu-bg) !important;
    color: #ffffff !important;
    border-color: var(--ym-border) !important;
}

html.ym-theme-black .plugin-menus .nav-tabs li.nav-item > a:hover,
html.ym-theme-black .plugin-menus .nav-tabs li.nav-item > a:focus-visible,
html.ym-theme-black .plugin-menus .list-group > a.list-group-item:hover,
html.ym-theme-black .plugin-menus .list-group > a.list-group-item:focus-visible,
html.ym-theme-black .plugin-menus .list-group > a.list-group-item.active,
html.ym-theme-blue .plugin-menus .nav-tabs li.nav-item > a:hover,
html.ym-theme-blue .plugin-menus .nav-tabs li.nav-item > a:focus-visible,
html.ym-theme-blue .plugin-menus .list-group > a.list-group-item:hover,
html.ym-theme-blue .plugin-menus .list-group > a.list-group-item:focus-visible,
html.ym-theme-blue .plugin-menus .list-group > a.list-group-item.active,
html.ym-theme-beige .plugin-menus .nav-tabs li.nav-item > a:hover,
html.ym-theme-beige .plugin-menus .nav-tabs li.nav-item > a:focus-visible,
html.ym-theme-beige .plugin-menus .list-group > a.list-group-item:hover,
html.ym-theme-beige .plugin-menus .list-group > a.list-group-item:focus-visible,
html.ym-theme-beige .plugin-menus .list-group > a.list-group-item.active {
    background-color: var(--ym-menu-hover) !important;
    color: var(--ym-link) !important;
}


/* =====================================================
   14-6．検索・入力欄
===================================================== */

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 {
    background-color: var(--ym-input-bg) !important;
    color: var(--ym-input-text) !important;
    border-color: var(--ym-border) !important;
}

html.ym-theme-black input::placeholder,
html.ym-theme-black textarea::placeholder,
html.ym-theme-blue input::placeholder,
html.ym-theme-blue textarea::placeholder,
html.ym-theme-beige input::placeholder,
html.ym-theme-beige textarea::placeholder {
    color: var(--ym-muted-text) !important;
    opacity: 1;
}


/* =====================================================
   14-7．カレンダー
   文字サイズは変更せず、配色だけ変更
===================================================== */

html.ym-theme-black .plugin-calendars,
html.ym-theme-black .plugin-calendar,
html.ym-theme-black [class*="plugin-calendar"],
html.ym-theme-black [id*="plugin-calendar"],
html.ym-theme-blue .plugin-calendars,
html.ym-theme-blue .plugin-calendar,
html.ym-theme-blue [class*="plugin-calendar"],
html.ym-theme-blue [id*="plugin-calendar"],
html.ym-theme-beige .plugin-calendars,
html.ym-theme-beige .plugin-calendar,
html.ym-theme-beige [class*="plugin-calendar"],
html.ym-theme-beige [id*="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 {
    background-color: var(--ym-surface-bg) !important;
    color: var(--ym-text) !important;
    border-color: var(--ym-border) !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 {
    background-color: var(--ym-surface-bg) !important;
    color: var(--ym-text) !important;
    border-color: var(--ym-border) !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;
}


/* =====================================================
   14-8．フォーカス表示
===================================================== */

html.ym-theme-black a:focus-visible,
html.ym-theme-black button:focus-visible,
html.ym-theme-black input:focus-visible,
html.ym-theme-blue a:focus-visible,
html.ym-theme-blue button:focus-visible,
html.ym-theme-blue input:focus-visible,
html.ym-theme-beige a:focus-visible,
html.ym-theme-beige button:focus-visible,
html.ym-theme-beige input:focus-visible {
    outline-color: var(--ym-focus) !important;
}


/* =====================================================
   14-9．アクセシビリティバーは常に標準配色
===================================================== */

html.ym-theme-black #ym-accessibility-bar,
html.ym-theme-blue #ym-accessibility-bar,
html.ym-theme-beige #ym-accessibility-bar {
    background: linear-gradient(to bottom, #ffffff, #f4f6f9) !important;
    color: #152f5b !important;
}

html.ym-theme-black #ym-accessibility-bar *,
html.ym-theme-blue #ym-accessibility-bar *,
html.ym-theme-beige #ym-accessibility-bar * {
    color: inherit;
}

html.ym-theme-black #ym-accessibility-bar .ym-color-black,
html.ym-theme-blue #ym-accessibility-bar .ym-color-blue {
    color: #ffffff !important;
}

html.ym-theme-beige #ym-accessibility-bar .ym-color-beige {
    color: #24170d !important;
}


/* =====================================================
   15．背景色切替 Ver.7 追加補正

   スクリーンショット確認後の修正
   ・横型メニュー周囲に残る白い帯を解消
   ・縦型メニューの文字色を白へ統一
   ・メニュー内のspan等、子要素にも文字色を適用
   ・左・中央・右・ヘッダーのメニューフレーム全体を配色
===================================================== */


/* -----------------------------------------------------
   15-1．メニュープラグインの外側・カード・本文領域
----------------------------------------------------- */

html.ym-theme-black .plugin-menus,
html.ym-theme-black .plugin-menus .card,
html.ym-theme-black .plugin-menus .card-body,
html.ym-theme-black .plugin-menus .container,
html.ym-theme-black .plugin-menus .container-fluid,
html.ym-theme-black .plugin-menus .row,
html.ym-theme-black .plugin-menus [class*="col-"],
html.ym-theme-blue .plugin-menus,
html.ym-theme-blue .plugin-menus .card,
html.ym-theme-blue .plugin-menus .card-body,
html.ym-theme-blue .plugin-menus .container,
html.ym-theme-blue .plugin-menus .container-fluid,
html.ym-theme-blue .plugin-menus .row,
html.ym-theme-blue .plugin-menus [class*="col-"],
html.ym-theme-beige .plugin-menus,
html.ym-theme-beige .plugin-menus .card,
html.ym-theme-beige .plugin-menus .card-body,
html.ym-theme-beige .plugin-menus .container,
html.ym-theme-beige .plugin-menus .container-fluid,
html.ym-theme-beige .plugin-menus .row,
html.ym-theme-beige .plugin-menus [class*="col-"] {
    background-color: var(--ym-surface-bg) !important;
    color: var(--ym-text) !important;
    border-color: var(--ym-border) !important;
}


/* 横型メニューを包む白いフレーム・余白を選択色へ統一 */

html.ym-theme-black .plugin-menus .nav-tabs,
html.ym-theme-black .plugin-menus .nav,
html.ym-theme-black .plugin-menus .tab-content,
html.ym-theme-blue .plugin-menus .nav-tabs,
html.ym-theme-blue .plugin-menus .nav,
html.ym-theme-blue .plugin-menus .tab-content,
html.ym-theme-beige .plugin-menus .nav-tabs,
html.ym-theme-beige .plugin-menus .nav,
html.ym-theme-beige .plugin-menus .tab-content {
    background-color: var(--ym-surface-bg) !important;
    border-color: var(--ym-border) !important;
}


/* -----------------------------------------------------
   15-2．横型メニュー
----------------------------------------------------- */

html.ym-theme-black .plugin-menus .nav-tabs li.nav-item,
html.ym-theme-blue .plugin-menus .nav-tabs li.nav-item,
html.ym-theme-beige .plugin-menus .nav-tabs li.nav-item {
    background-color: var(--ym-menu-bg) !important;
    border-color: var(--ym-border) !important;
}

html.ym-theme-black .plugin-menus .nav-tabs li.nav-item > a,
html.ym-theme-black .plugin-menus .nav-tabs li.nav-item > a *,
html.ym-theme-black .plugin-menus .nav-tabs .nav-link,
html.ym-theme-black .plugin-menus .nav-tabs .nav-link *,
html.ym-theme-blue .plugin-menus .nav-tabs li.nav-item > a,
html.ym-theme-blue .plugin-menus .nav-tabs li.nav-item > a *,
html.ym-theme-blue .plugin-menus .nav-tabs .nav-link,
html.ym-theme-blue .plugin-menus .nav-tabs .nav-link *,
html.ym-theme-beige .plugin-menus .nav-tabs li.nav-item > a,
html.ym-theme-beige .plugin-menus .nav-tabs li.nav-item > a *,
html.ym-theme-beige .plugin-menus .nav-tabs .nav-link,
html.ym-theme-beige .plugin-menus .nav-tabs .nav-link * {
    background-color: var(--ym-menu-bg) !important;
    color: #ffffff !important;
    border-color: var(--ym-border) !important;
    text-decoration-color: #ffffff !important;
}


/* 選択中・ホバー・キーボードフォーカス */

html.ym-theme-black .plugin-menus .nav-tabs li.nav-item > a.active,
html.ym-theme-black .plugin-menus .nav-tabs li.nav-item > a:hover,
html.ym-theme-black .plugin-menus .nav-tabs li.nav-item > a:focus-visible,
html.ym-theme-blue .plugin-menus .nav-tabs li.nav-item > a.active,
html.ym-theme-blue .plugin-menus .nav-tabs li.nav-item > a:hover,
html.ym-theme-blue .plugin-menus .nav-tabs li.nav-item > a:focus-visible,
html.ym-theme-beige .plugin-menus .nav-tabs li.nav-item > a.active,
html.ym-theme-beige .plugin-menus .nav-tabs li.nav-item > a:hover,
html.ym-theme-beige .plugin-menus .nav-tabs li.nav-item > a:focus-visible {
    background-color: var(--ym-menu-hover) !important;
    color: var(--ym-link) !important;
    text-decoration-color: var(--ym-link) !important;
}


/* -----------------------------------------------------
   15-3．縦型メニュー
----------------------------------------------------- */

html.ym-theme-black .plugin-menus .list-group,
html.ym-theme-blue .plugin-menus .list-group,
html.ym-theme-beige .plugin-menus .list-group {
    background-color: var(--ym-surface-bg) !important;
    border-color: var(--ym-border) !important;
}

html.ym-theme-black .plugin-menus .list-group > a.list-group-item,
html.ym-theme-black .plugin-menus .list-group > a.list-group-item *,
html.ym-theme-black .plugin-menus .list-group .list-group-item,
html.ym-theme-black .plugin-menus .list-group .list-group-item *,
html.ym-theme-blue .plugin-menus .list-group > a.list-group-item,
html.ym-theme-blue .plugin-menus .list-group > a.list-group-item *,
html.ym-theme-blue .plugin-menus .list-group .list-group-item,
html.ym-theme-blue .plugin-menus .list-group .list-group-item *,
html.ym-theme-beige .plugin-menus .list-group > a.list-group-item,
html.ym-theme-beige .plugin-menus .list-group > a.list-group-item *,
html.ym-theme-beige .plugin-menus .list-group .list-group-item,
html.ym-theme-beige .plugin-menus .list-group .list-group-item * {
    background-color: var(--ym-menu-bg) !important;
    color: #ffffff !important;
    border-color: var(--ym-border) !important;
    text-decoration-color: #ffffff !important;
}


/* 選択中・ホバー・キーボードフォーカス */

html.ym-theme-black .plugin-menus .list-group > a.list-group-item.active,
html.ym-theme-black .plugin-menus .list-group > a.list-group-item:hover,
html.ym-theme-black .plugin-menus .list-group > a.list-group-item:focus-visible,
html.ym-theme-blue .plugin-menus .list-group > a.list-group-item.active,
html.ym-theme-blue .plugin-menus .list-group > a.list-group-item:hover,
html.ym-theme-blue .plugin-menus .list-group > a.list-group-item:focus-visible,
html.ym-theme-beige .plugin-menus .list-group > a.list-group-item.active,
html.ym-theme-beige .plugin-menus .list-group > a.list-group-item:hover,
html.ym-theme-beige .plugin-menus .list-group > a.list-group-item:focus-visible {
    background-color: var(--ym-menu-hover) !important;
    color: var(--ym-link) !important;
    text-decoration-color: var(--ym-link) !important;
}


/* 選択中・ホバー時は子要素も同色にする */

html.ym-theme-black .plugin-menus .list-group > a.list-group-item.active *,
html.ym-theme-black .plugin-menus .list-group > a.list-group-item:hover *,
html.ym-theme-black .plugin-menus .list-group > a.list-group-item:focus-visible *,
html.ym-theme-blue .plugin-menus .list-group > a.list-group-item.active *,
html.ym-theme-blue .plugin-menus .list-group > a.list-group-item:hover *,
html.ym-theme-blue .plugin-menus .list-group > a.list-group-item:focus-visible *,
html.ym-theme-beige .plugin-menus .list-group > a.list-group-item.active *,
html.ym-theme-beige .plugin-menus .list-group > a.list-group-item:hover *,
html.ym-theme-beige .plugin-menus .list-group > a.list-group-item:focus-visible * {
    color: var(--ym-link) !important;
}


/* -----------------------------------------------------
   15-4．メニューのフレームヘッダーと管理領域
----------------------------------------------------- */

html.ym-theme-black .plugin-menus .card-header,
html.ym-theme-blue .plugin-menus .card-header,
html.ym-theme-beige .plugin-menus .card-header {
    background-color: var(--ym-header-bg) !important;
    color: var(--ym-text) !important;
    border-color: var(--ym-border) !important;
}

html.ym-theme-black .plugin-menus .card-header *,
html.ym-theme-blue .plugin-menus .card-header *,
html.ym-theme-beige .plugin-menus .card-header * {
    color: var(--ym-text) !important;
}


/* 編集中に表示されるメニュー外側の白背景も統一 */

html.ym-theme-black .plugin-menus + *,
html.ym-theme-blue .plugin-menus + *,
html.ym-theme-beige .plugin-menus + * {
    border-color: var(--ym-border);
}


/* -----------------------------------------------------
   15-5．ベージュ配色の可読性補正
----------------------------------------------------- */

/*
   ベージュ背景では、メニューを濃い茶色、
   メニュー文字を白で表示します。
*/

html.ym-theme-beige .plugin-menus .nav-tabs li.nav-item > a,
html.ym-theme-beige .plugin-menus .nav-tabs li.nav-item > a *,
html.ym-theme-beige .plugin-menus .list-group > a.list-group-item,
html.ym-theme-beige .plugin-menus .list-group > a.list-group-item * {
    color: #ffffff !important;
}


/* -----------------------------------------------------
   15-6．テーマ共通のフォーカス表示
----------------------------------------------------- */

html.ym-theme-black .plugin-menus a:focus-visible,
html.ym-theme-blue .plugin-menus a:focus-visible,
html.ym-theme-beige .plugin-menus a:focus-visible {
    outline: 3px solid var(--ym-focus) !important;
    outline-offset: -3px !important;
}


/* =====================================================
   16．メニュー文字色 最終補正 Ver.8

   ・横型メニュー：通常は白文字
   ・横型メニュー：ホバー／選択中は黄色文字
   ・縦型メニュー：通常は白文字
   ・縦型メニュー：ホバー／選択中は黄色文字
   ・リンク内部のspan、i、strong等にも同じ色を強制
===================================================== */

/* -----------------------------------------------------
   16-1．黒・青・ベージュ背景共通：通常状態
----------------------------------------------------- */

html.ym-theme-black body .plugin-menus a,
html.ym-theme-black body .plugin-menus a:link,
html.ym-theme-black body .plugin-menus a:visited,
html.ym-theme-black body .plugin-menus a span,
html.ym-theme-black body .plugin-menus a i,
html.ym-theme-black body .plugin-menus a strong,
html.ym-theme-black body .plugin-menus a em,
html.ym-theme-blue body .plugin-menus a,
html.ym-theme-blue body .plugin-menus a:link,
html.ym-theme-blue body .plugin-menus a:visited,
html.ym-theme-blue body .plugin-menus a span,
html.ym-theme-blue body .plugin-menus a i,
html.ym-theme-blue body .plugin-menus a strong,
html.ym-theme-blue body .plugin-menus a em,
html.ym-theme-beige body .plugin-menus a,
html.ym-theme-beige body .plugin-menus a:link,
html.ym-theme-beige body .plugin-menus a:visited,
html.ym-theme-beige body .plugin-menus a span,
html.ym-theme-beige body .plugin-menus a i,
html.ym-theme-beige body .plugin-menus a strong,
html.ym-theme-beige body .plugin-menus a em {
    color: #ffffff !important;
    text-decoration-color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}


/* 横型メニューの通常背景 */

html.ym-theme-black body .plugin-menus .nav-tabs a.nav-link,
html.ym-theme-black body .plugin-menus .nav-tabs li.nav-item > a,
html.ym-theme-blue body .plugin-menus .nav-tabs a.nav-link,
html.ym-theme-blue body .plugin-menus .nav-tabs li.nav-item > a,
html.ym-theme-beige body .plugin-menus .nav-tabs a.nav-link,
html.ym-theme-beige body .plugin-menus .nav-tabs li.nav-item > a {
    background-color: var(--ym-menu-bg) !important;
    color: #ffffff !important;
    border-color: var(--ym-border) !important;
    -webkit-text-fill-color: #ffffff !important;
}


/* 縦型メニューの通常背景 */

html.ym-theme-black body .plugin-menus .list-group a.list-group-item,
html.ym-theme-blue body .plugin-menus .list-group a.list-group-item,
html.ym-theme-beige body .plugin-menus .list-group a.list-group-item {
    background-color: var(--ym-menu-bg) !important;
    color: #ffffff !important;
    border-color: var(--ym-border) !important;
    -webkit-text-fill-color: #ffffff !important;
}


/* -----------------------------------------------------
   16-2．ホバー・選択中・キーボードフォーカス
----------------------------------------------------- */

html.ym-theme-black body .plugin-menus a:hover,
html.ym-theme-black body .plugin-menus a:focus,
html.ym-theme-black body .plugin-menus a:focus-visible,
html.ym-theme-black body .plugin-menus a.active,
html.ym-theme-black body .plugin-menus .list-group-item.active,
html.ym-theme-blue body .plugin-menus a:hover,
html.ym-theme-blue body .plugin-menus a:focus,
html.ym-theme-blue body .plugin-menus a:focus-visible,
html.ym-theme-blue body .plugin-menus a.active,
html.ym-theme-blue body .plugin-menus .list-group-item.active,
html.ym-theme-beige body .plugin-menus a:hover,
html.ym-theme-beige body .plugin-menus a:focus,
html.ym-theme-beige body .plugin-menus a:focus-visible,
html.ym-theme-beige body .plugin-menus a.active,
html.ym-theme-beige body .plugin-menus .list-group-item.active {
    background-color: var(--ym-menu-hover) !important;
    color: #fff36a !important;
    text-decoration-color: #fff36a !important;
    -webkit-text-fill-color: #fff36a !important;
}


/* ホバー・選択中はリンク内部の全要素も黄色 */

html.ym-theme-black body .plugin-menus a:hover *,
html.ym-theme-black body .plugin-menus a:focus *,
html.ym-theme-black body .plugin-menus a:focus-visible *,
html.ym-theme-black body .plugin-menus a.active *,
html.ym-theme-black body .plugin-menus .list-group-item.active *,
html.ym-theme-blue body .plugin-menus a:hover *,
html.ym-theme-blue body .plugin-menus a:focus *,
html.ym-theme-blue body .plugin-menus a:focus-visible *,
html.ym-theme-blue body .plugin-menus a.active *,
html.ym-theme-blue body .plugin-menus .list-group-item.active *,
html.ym-theme-beige body .plugin-menus a:hover *,
html.ym-theme-beige body .plugin-menus a:focus *,
html.ym-theme-beige body .plugin-menus a:focus-visible *,
html.ym-theme-beige body .plugin-menus a.active *,
html.ym-theme-beige body .plugin-menus .list-group-item.active * {
    color: #fff36a !important;
    text-decoration-color: #fff36a !important;
    -webkit-text-fill-color: #fff36a !important;
}


/* -----------------------------------------------------
   16-3．展開記号（＋・▼）も読みやすくする
----------------------------------------------------- */

html.ym-theme-black body .plugin-menus a::before,
html.ym-theme-black body .plugin-menus a::after,
html.ym-theme-blue body .plugin-menus a::before,
html.ym-theme-blue body .plugin-menus a::after,
html.ym-theme-beige body .plugin-menus a::before,
html.ym-theme-beige body .plugin-menus a::after {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html.ym-theme-black body .plugin-menus a:hover::before,
html.ym-theme-black body .plugin-menus a:hover::after,
html.ym-theme-black body .plugin-menus a:focus-visible::before,
html.ym-theme-black body .plugin-menus a:focus-visible::after,
html.ym-theme-blue body .plugin-menus a:hover::before,
html.ym-theme-blue body .plugin-menus a:hover::after,
html.ym-theme-blue body .plugin-menus a:focus-visible::before,
html.ym-theme-blue body .plugin-menus a:focus-visible::after,
html.ym-theme-beige body .plugin-menus a:hover::before,
html.ym-theme-beige body .plugin-menus a:hover::after,
html.ym-theme-beige body .plugin-menus a:focus-visible::before,
html.ym-theme-beige body .plugin-menus a:focus-visible::after {
    color: #fff36a !important;
    -webkit-text-fill-color: #fff36a !important;
}


/* =====================================================
   16．固定記事内の文字色 最終補正 Ver.9

   スクリーンショット確認後の修正
   ・固定記事本文のdiv、span、small等に残る元の文字色を上書き
   ・画像下の住所、電話番号、説明文を選択背景に合わせる
   ・リンクは各テーマのリンク色を維持
   ・画像、管理ボタン、フレーム操作部品は対象外
===================================================== */


/* -----------------------------------------------------
   16-1．固定記事本文の基本文字色
----------------------------------------------------- */

html.ym-theme-black .plugin-static-content .card-body,
html.ym-theme-black .plugin-static-content .card-body div:not(.btn):not(.badge),
html.ym-theme-black .plugin-static-content .card-body p,
html.ym-theme-black .plugin-static-content .card-body span,
html.ym-theme-black .plugin-static-content .card-body small,
html.ym-theme-black .plugin-static-content .card-body strong,
html.ym-theme-black .plugin-static-content .card-body em,
html.ym-theme-black .plugin-static-content .card-body b,
html.ym-theme-black .plugin-static-content .card-body i:not(.fas):not(.far):not(.fab),
html.ym-theme-black .plugin-static-content .card-body ul,
html.ym-theme-black .plugin-static-content .card-body ol,
html.ym-theme-black .plugin-static-content .card-body li,
html.ym-theme-black .plugin-static-content .card-body table,
html.ym-theme-black .plugin-static-content .card-body tbody,
html.ym-theme-black .plugin-static-content .card-body tr,
html.ym-theme-black .plugin-static-content .card-body td,
html.ym-theme-black .plugin-static-content .card-body th,
html.ym-theme-black .plugin-static-content .card-body caption,
html.ym-theme-black .plugin-static-content .card-body figcaption,

html.ym-theme-blue .plugin-static-content .card-body,
html.ym-theme-blue .plugin-static-content .card-body div:not(.btn):not(.badge),
html.ym-theme-blue .plugin-static-content .card-body p,
html.ym-theme-blue .plugin-static-content .card-body span,
html.ym-theme-blue .plugin-static-content .card-body small,
html.ym-theme-blue .plugin-static-content .card-body strong,
html.ym-theme-blue .plugin-static-content .card-body em,
html.ym-theme-blue .plugin-static-content .card-body b,
html.ym-theme-blue .plugin-static-content .card-body i:not(.fas):not(.far):not(.fab),
html.ym-theme-blue .plugin-static-content .card-body ul,
html.ym-theme-blue .plugin-static-content .card-body ol,
html.ym-theme-blue .plugin-static-content .card-body li,
html.ym-theme-blue .plugin-static-content .card-body table,
html.ym-theme-blue .plugin-static-content .card-body tbody,
html.ym-theme-blue .plugin-static-content .card-body tr,
html.ym-theme-blue .plugin-static-content .card-body td,
html.ym-theme-blue .plugin-static-content .card-body th,
html.ym-theme-blue .plugin-static-content .card-body caption,
html.ym-theme-blue .plugin-static-content .card-body figcaption,

html.ym-theme-beige .plugin-static-content .card-body,
html.ym-theme-beige .plugin-static-content .card-body div:not(.btn):not(.badge),
html.ym-theme-beige .plugin-static-content .card-body p,
html.ym-theme-beige .plugin-static-content .card-body span,
html.ym-theme-beige .plugin-static-content .card-body small,
html.ym-theme-beige .plugin-static-content .card-body strong,
html.ym-theme-beige .plugin-static-content .card-body em,
html.ym-theme-beige .plugin-static-content .card-body b,
html.ym-theme-beige .plugin-static-content .card-body i:not(.fas):not(.far):not(.fab),
html.ym-theme-beige .plugin-static-content .card-body ul,
html.ym-theme-beige .plugin-static-content .card-body ol,
html.ym-theme-beige .plugin-static-content .card-body li,
html.ym-theme-beige .plugin-static-content .card-body table,
html.ym-theme-beige .plugin-static-content .card-body tbody,
html.ym-theme-beige .plugin-static-content .card-body tr,
html.ym-theme-beige .plugin-static-content .card-body td,
html.ym-theme-beige .plugin-static-content .card-body th,
html.ym-theme-beige .plugin-static-content .card-body caption,
html.ym-theme-beige .plugin-static-content .card-body figcaption {
    color: var(--ym-text) !important;
}


/* -----------------------------------------------------
   16-2．固定記事内の見出し
----------------------------------------------------- */

html.ym-theme-black .plugin-static-content .card-body h1,
html.ym-theme-black .plugin-static-content .card-body h2,
html.ym-theme-black .plugin-static-content .card-body h3,
html.ym-theme-black .plugin-static-content .card-body h4,
html.ym-theme-black .plugin-static-content .card-body h5,
html.ym-theme-black .plugin-static-content .card-body h6,
html.ym-theme-blue .plugin-static-content .card-body h1,
html.ym-theme-blue .plugin-static-content .card-body h2,
html.ym-theme-blue .plugin-static-content .card-body h3,
html.ym-theme-blue .plugin-static-content .card-body h4,
html.ym-theme-blue .plugin-static-content .card-body h5,
html.ym-theme-blue .plugin-static-content .card-body h6,
html.ym-theme-beige .plugin-static-content .card-body h1,
html.ym-theme-beige .plugin-static-content .card-body h2,
html.ym-theme-beige .plugin-static-content .card-body h3,
html.ym-theme-beige .plugin-static-content .card-body h4,
html.ym-theme-beige .plugin-static-content .card-body h5,
html.ym-theme-beige .plugin-static-content .card-body h6 {
    color: var(--ym-text) !important;
}


/* -----------------------------------------------------
   16-3．固定記事内のリンク
----------------------------------------------------- */

html.ym-theme-black .plugin-static-content .card-body a,
html.ym-theme-black .plugin-static-content .card-body a *,
html.ym-theme-blue .plugin-static-content .card-body a,
html.ym-theme-blue .plugin-static-content .card-body a *,
html.ym-theme-beige .plugin-static-content .card-body a,
html.ym-theme-beige .plugin-static-content .card-body a * {
    color: var(--ym-link) !important;
    text-decoration-color: var(--ym-link) !important;
}

html.ym-theme-black .plugin-static-content .card-body a:hover,
html.ym-theme-black .plugin-static-content .card-body a:focus-visible,
html.ym-theme-black .plugin-static-content .card-body a:hover *,
html.ym-theme-black .plugin-static-content .card-body a:focus-visible *,
html.ym-theme-blue .plugin-static-content .card-body a:hover,
html.ym-theme-blue .plugin-static-content .card-body a:focus-visible,
html.ym-theme-blue .plugin-static-content .card-body a:hover *,
html.ym-theme-blue .plugin-static-content .card-body a:focus-visible *,
html.ym-theme-beige .plugin-static-content .card-body a:hover,
html.ym-theme-beige .plugin-static-content .card-body a:focus-visible,
html.ym-theme-beige .plugin-static-content .card-body a:hover *,
html.ym-theme-beige .plugin-static-content .card-body a:focus-visible * {
    color: var(--ym-link-hover) !important;
    text-decoration-color: var(--ym-link-hover) !important;
}


/* -----------------------------------------------------
   16-4．画像は変更しない
----------------------------------------------------- */

html.ym-theme-black .plugin-static-content .card-body img,
html.ym-theme-blue .plugin-static-content .card-body img,
html.ym-theme-beige .plugin-static-content .card-body img {
    filter: none !important;
    opacity: 1 !important;
}


/* -----------------------------------------------------
   16-5．管理用部品は従来の配色を維持
----------------------------------------------------- */

html.ym-theme-black .plugin-static-content .card-body .btn,
html.ym-theme-black .plugin-static-content .card-body .badge,
html.ym-theme-black .plugin-static-content .card-body button,
html.ym-theme-blue .plugin-static-content .card-body .btn,
html.ym-theme-blue .plugin-static-content .card-body .badge,
html.ym-theme-blue .plugin-static-content .card-body button,
html.ym-theme-beige .plugin-static-content .card-body .btn,
html.ym-theme-beige .plugin-static-content .card-body .badge,
html.ym-theme-beige .plugin-static-content .card-body button {
    color: inherit;
}


/* -----------------------------------------------------
   16-6．固定記事本文に直接付いたインライン文字色を上書き
----------------------------------------------------- */

html.ym-theme-black .plugin-static-content .card-body [style*="color"],
html.ym-theme-blue .plugin-static-content .card-body [style*="color"],
html.ym-theme-beige .plugin-static-content .card-body [style*="color"] {
    color: var(--ym-text) !important;
}

html.ym-theme-black .plugin-static-content .card-body a[style*="color"],
html.ym-theme-blue .plugin-static-content .card-body a[style*="color"],
html.ym-theme-beige .plugin-static-content .card-body a[style*="color"] {
    color: var(--ym-link) !important;
}


/* =====================================================
   17．固定記事・WYSIWYG本文の文字色 最終補正 Ver.10

   スクリーンショット確認後の修正
   ・固定記事の画像下にある住所・電話番号等を確実に配色
   ・プラグイン固有classに依存せず、card-body／WYSIWYG領域を対象
   ・インライン指定された濃い文字色も上書き
   ・リンク、メニュー、カレンダー、管理ボタンは個別に再設定
===================================================== */


/* -----------------------------------------------------
   17-1．固定記事・本文領域の背景
----------------------------------------------------- */

html.ym-theme-black #ccMainArea .card-body,
html.ym-theme-black #ccCenterArea .card-body,
html.ym-theme-black #ccLeftArea .card-body,
html.ym-theme-black #ccRightArea .card-body,
html.ym-theme-black #ccMainArea .wysiwyg-content,
html.ym-theme-black #ccCenterArea .wysiwyg-content,

html.ym-theme-blue #ccMainArea .card-body,
html.ym-theme-blue #ccCenterArea .card-body,
html.ym-theme-blue #ccLeftArea .card-body,
html.ym-theme-blue #ccRightArea .card-body,
html.ym-theme-blue #ccMainArea .wysiwyg-content,
html.ym-theme-blue #ccCenterArea .wysiwyg-content,

html.ym-theme-beige #ccMainArea .card-body,
html.ym-theme-beige #ccCenterArea .card-body,
html.ym-theme-beige #ccLeftArea .card-body,
html.ym-theme-beige #ccRightArea .card-body,
html.ym-theme-beige #ccMainArea .wysiwyg-content,
html.ym-theme-beige #ccCenterArea .wysiwyg-content {
    background-color: var(--ym-surface-bg) !important;
    color: var(--ym-text) !important;
}


/* -----------------------------------------------------
   17-2．本文内の文字要素を確実に配色
----------------------------------------------------- */

html.ym-theme-black #ccMainArea .card-body *,
html.ym-theme-black #ccCenterArea .card-body *,
html.ym-theme-black #ccLeftArea .card-body *,
html.ym-theme-black #ccRightArea .card-body *,
html.ym-theme-black #ccMainArea .wysiwyg-content *,
html.ym-theme-black #ccCenterArea .wysiwyg-content *,

html.ym-theme-blue #ccMainArea .card-body *,
html.ym-theme-blue #ccCenterArea .card-body *,
html.ym-theme-blue #ccLeftArea .card-body *,
html.ym-theme-blue #ccRightArea .card-body *,
html.ym-theme-blue #ccMainArea .wysiwyg-content *,
html.ym-theme-blue #ccCenterArea .wysiwyg-content *,

html.ym-theme-beige #ccMainArea .card-body *,
html.ym-theme-beige #ccCenterArea .card-body *,
html.ym-theme-beige #ccLeftArea .card-body *,
html.ym-theme-beige #ccRightArea .card-body *,
html.ym-theme-beige #ccMainArea .wysiwyg-content *,
html.ym-theme-beige #ccCenterArea .wysiwyg-content * {
    color: var(--ym-text) !important;
}


/* -----------------------------------------------------
   17-3．固定記事内のインライン文字色を強制的に解除
----------------------------------------------------- */

html.ym-theme-black #ccMainArea .card-body [style*="color"],
html.ym-theme-black #ccCenterArea .card-body [style*="color"],
html.ym-theme-black #ccMainArea .wysiwyg-content [style*="color"],
html.ym-theme-blue #ccMainArea .card-body [style*="color"],
html.ym-theme-blue #ccCenterArea .card-body [style*="color"],
html.ym-theme-blue #ccMainArea .wysiwyg-content [style*="color"],
html.ym-theme-beige #ccMainArea .card-body [style*="color"],
html.ym-theme-beige #ccCenterArea .card-body [style*="color"],
html.ym-theme-beige #ccMainArea .wysiwyg-content [style*="color"] {
    color: var(--ym-text) !important;
}


/* -----------------------------------------------------
   17-4．リンク色を再設定
----------------------------------------------------- */

html.ym-theme-black #ccMainArea .card-body a,
html.ym-theme-black #ccMainArea .card-body a *,
html.ym-theme-black #ccCenterArea .card-body a,
html.ym-theme-black #ccCenterArea .card-body a *,
html.ym-theme-black #ccMainArea .wysiwyg-content a,
html.ym-theme-black #ccMainArea .wysiwyg-content a *,

html.ym-theme-blue #ccMainArea .card-body a,
html.ym-theme-blue #ccMainArea .card-body a *,
html.ym-theme-blue #ccCenterArea .card-body a,
html.ym-theme-blue #ccCenterArea .card-body a *,
html.ym-theme-blue #ccMainArea .wysiwyg-content a,
html.ym-theme-blue #ccMainArea .wysiwyg-content a *,

html.ym-theme-beige #ccMainArea .card-body a,
html.ym-theme-beige #ccMainArea .card-body a *,
html.ym-theme-beige #ccCenterArea .card-body a,
html.ym-theme-beige #ccCenterArea .card-body a *,
html.ym-theme-beige #ccMainArea .wysiwyg-content a,
html.ym-theme-beige #ccMainArea .wysiwyg-content a * {
    color: var(--ym-link) !important;
    text-decoration-color: var(--ym-link) !important;
}

html.ym-theme-black #ccMainArea .card-body a:hover,
html.ym-theme-black #ccMainArea .card-body a:focus-visible,
html.ym-theme-blue #ccMainArea .card-body a:hover,
html.ym-theme-blue #ccMainArea .card-body a:focus-visible,
html.ym-theme-beige #ccMainArea .card-body a:hover,
html.ym-theme-beige #ccMainArea .card-body a:focus-visible {
    color: var(--ym-link-hover) !important;
    text-decoration-color: var(--ym-link-hover) !important;
}


/* -----------------------------------------------------
   17-5．画像は色を変更しない
----------------------------------------------------- */

html.ym-theme-black #ccMainArea .card-body img,
html.ym-theme-black #ccCenterArea .card-body img,
html.ym-theme-blue #ccMainArea .card-body img,
html.ym-theme-blue #ccCenterArea .card-body img,
html.ym-theme-beige #ccMainArea .card-body img,
html.ym-theme-beige #ccCenterArea .card-body img {
    filter: none !important;
    opacity: 1 !important;
}


/* -----------------------------------------------------
   17-6．横型・縦型メニューの文字色を再設定
----------------------------------------------------- */

html.ym-theme-black .plugin-menus .nav-tabs a,
html.ym-theme-black .plugin-menus .nav-tabs a *,
html.ym-theme-black .plugin-menus .list-group a,
html.ym-theme-black .plugin-menus .list-group a *,
html.ym-theme-blue .plugin-menus .nav-tabs a,
html.ym-theme-blue .plugin-menus .nav-tabs a *,
html.ym-theme-blue .plugin-menus .list-group a,
html.ym-theme-blue .plugin-menus .list-group a *,
html.ym-theme-beige .plugin-menus .nav-tabs a,
html.ym-theme-beige .plugin-menus .nav-tabs a *,
html.ym-theme-beige .plugin-menus .list-group a,
html.ym-theme-beige .plugin-menus .list-group a * {
    color: #ffffff !important;
    text-decoration-color: #ffffff !important;
}


/* -----------------------------------------------------
   17-7．カレンダーの文字色を再設定
----------------------------------------------------- */

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 * {
    color: var(--ym-text) !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;
}


/* -----------------------------------------------------
   17-8．管理用ボタン・バッジの可読性を維持
----------------------------------------------------- */

html.ym-theme-black #ccMainArea .btn-success,
html.ym-theme-blue #ccMainArea .btn-success,
html.ym-theme-beige #ccMainArea .btn-success {
    color: #ffffff !important;
}

html.ym-theme-black #ccMainArea .badge,
html.ym-theme-blue #ccMainArea .badge,
html.ym-theme-beige #ccMainArea .badge {
    color: #ffffff !important;
}


/* -----------------------------------------------------
   17-9．住所・電話番号等に使用されやすい要素を明示
----------------------------------------------------- */

html.ym-theme-black #ccMainArea .card-body div,
html.ym-theme-black #ccMainArea .card-body span,
html.ym-theme-black #ccMainArea .card-body small,
html.ym-theme-black #ccMainArea .card-body table,
html.ym-theme-black #ccMainArea .card-body td,

html.ym-theme-blue #ccMainArea .card-body div,
html.ym-theme-blue #ccMainArea .card-body span,
html.ym-theme-blue #ccMainArea .card-body small,
html.ym-theme-blue #ccMainArea .card-body table,
html.ym-theme-blue #ccMainArea .card-body td,

html.ym-theme-beige #ccMainArea .card-body div,
html.ym-theme-beige #ccMainArea .card-body span,
html.ym-theme-beige #ccMainArea .card-body small,
html.ym-theme-beige #ccMainArea .card-body table,
html.ym-theme-beige #ccMainArea .card-body td {
    color: var(--ym-text) !important;
}


/* =====================================================
   18．固定記事内の残存文字色 最終補正 Ver.11

   4枚のスクリーンショット比較後の修正
   ・黒背景／青背景で、画像下の住所・電話番号が暗色のまま残る問題を補正
   ・固定記事の実際のHTML構造に依存しないよう、メインエリア内の一般要素へ配色
   ・リンク、メニュー、カレンダー、管理部品、アクセシビリティバーは後段で再指定
===================================================== */


/* -----------------------------------------------------
   18-1．黒・青・ベージュ時の一般文字色
----------------------------------------------------- */

html.ym-theme-black #ccMainArea,
html.ym-theme-black #ccMainArea div,
html.ym-theme-black #ccMainArea p,
html.ym-theme-black #ccMainArea span,
html.ym-theme-black #ccMainArea small,
html.ym-theme-black #ccMainArea strong,
html.ym-theme-black #ccMainArea em,
html.ym-theme-black #ccMainArea b,
html.ym-theme-black #ccMainArea i:not(.fas):not(.far):not(.fab),
html.ym-theme-black #ccMainArea table,
html.ym-theme-black #ccMainArea tbody,
html.ym-theme-black #ccMainArea tr,
html.ym-theme-black #ccMainArea td,
html.ym-theme-black #ccMainArea th,
html.ym-theme-black #ccMainArea caption,
html.ym-theme-black #ccMainArea figcaption,
html.ym-theme-black #ccMainArea ul,
html.ym-theme-black #ccMainArea ol,
html.ym-theme-black #ccMainArea li,
html.ym-theme-black #ccMainArea h1,
html.ym-theme-black #ccMainArea h2,
html.ym-theme-black #ccMainArea h3,
html.ym-theme-black #ccMainArea h4,
html.ym-theme-black #ccMainArea h5,
html.ym-theme-black #ccMainArea h6,

html.ym-theme-blue #ccMainArea,
html.ym-theme-blue #ccMainArea div,
html.ym-theme-blue #ccMainArea p,
html.ym-theme-blue #ccMainArea span,
html.ym-theme-blue #ccMainArea small,
html.ym-theme-blue #ccMainArea strong,
html.ym-theme-blue #ccMainArea em,
html.ym-theme-blue #ccMainArea b,
html.ym-theme-blue #ccMainArea i:not(.fas):not(.far):not(.fab),
html.ym-theme-blue #ccMainArea table,
html.ym-theme-blue #ccMainArea tbody,
html.ym-theme-blue #ccMainArea tr,
html.ym-theme-blue #ccMainArea td,
html.ym-theme-blue #ccMainArea th,
html.ym-theme-blue #ccMainArea caption,
html.ym-theme-blue #ccMainArea figcaption,
html.ym-theme-blue #ccMainArea ul,
html.ym-theme-blue #ccMainArea ol,
html.ym-theme-blue #ccMainArea li,
html.ym-theme-blue #ccMainArea h1,
html.ym-theme-blue #ccMainArea h2,
html.ym-theme-blue #ccMainArea h3,
html.ym-theme-blue #ccMainArea h4,
html.ym-theme-blue #ccMainArea h5,
html.ym-theme-blue #ccMainArea h6,

html.ym-theme-beige #ccMainArea,
html.ym-theme-beige #ccMainArea div,
html.ym-theme-beige #ccMainArea p,
html.ym-theme-beige #ccMainArea span,
html.ym-theme-beige #ccMainArea small,
html.ym-theme-beige #ccMainArea strong,
html.ym-theme-beige #ccMainArea em,
html.ym-theme-beige #ccMainArea b,
html.ym-theme-beige #ccMainArea i:not(.fas):not(.far):not(.fab),
html.ym-theme-beige #ccMainArea table,
html.ym-theme-beige #ccMainArea tbody,
html.ym-theme-beige #ccMainArea tr,
html.ym-theme-beige #ccMainArea td,
html.ym-theme-beige #ccMainArea th,
html.ym-theme-beige #ccMainArea caption,
html.ym-theme-beige #ccMainArea figcaption,
html.ym-theme-beige #ccMainArea ul,
html.ym-theme-beige #ccMainArea ol,
html.ym-theme-beige #ccMainArea li,
html.ym-theme-beige #ccMainArea h1,
html.ym-theme-beige #ccMainArea h2,
html.ym-theme-beige #ccMainArea h3,
html.ym-theme-beige #ccMainArea h4,
html.ym-theme-beige #ccMainArea h5,
html.ym-theme-beige #ccMainArea h6 {
    color: var(--ym-text) !important;
}


/* -----------------------------------------------------
   18-2．インライン文字色も上書き
----------------------------------------------------- */

html.ym-theme-black #ccMainArea [style*="color"],
html.ym-theme-blue #ccMainArea [style*="color"],
html.ym-theme-beige #ccMainArea [style*="color"] {
    color: var(--ym-text) !important;
}


/* -----------------------------------------------------
   18-3．リンク色を再適用
----------------------------------------------------- */

html.ym-theme-black #ccMainArea a,
html.ym-theme-black #ccMainArea a *,
html.ym-theme-blue #ccMainArea a,
html.ym-theme-blue #ccMainArea a *,
html.ym-theme-beige #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-black #ccMainArea a:focus-visible,
html.ym-theme-blue #ccMainArea a:hover,
html.ym-theme-blue #ccMainArea a:focus-visible,
html.ym-theme-beige #ccMainArea a:hover,
html.ym-theme-beige #ccMainArea a:focus-visible {
    color: var(--ym-link-hover) !important;
    text-decoration-color: var(--ym-link-hover) !important;
}


/* -----------------------------------------------------
   18-4．横型・縦型メニューを再適用
----------------------------------------------------- */

html.ym-theme-black .plugin-menus .nav-tabs a,
html.ym-theme-black .plugin-menus .nav-tabs a *,
html.ym-theme-black .plugin-menus .list-group a,
html.ym-theme-black .plugin-menus .list-group a *,
html.ym-theme-blue .plugin-menus .nav-tabs a,
html.ym-theme-blue .plugin-menus .nav-tabs a *,
html.ym-theme-blue .plugin-menus .list-group a,
html.ym-theme-blue .plugin-menus .list-group a *,
html.ym-theme-beige .plugin-menus .nav-tabs a,
html.ym-theme-beige .plugin-menus .nav-tabs a *,
html.ym-theme-beige .plugin-menus .list-group a,
html.ym-theme-beige .plugin-menus .list-group a * {
    color: #ffffff !important;
    text-decoration-color: #ffffff !important;
}


/* -----------------------------------------------------
   18-5．フレームヘッダー・操作部品を再適用
----------------------------------------------------- */

html.ym-theme-black #ccMainArea .card-header,
html.ym-theme-black #ccMainArea .card-header *,
html.ym-theme-blue #ccMainArea .card-header,
html.ym-theme-blue #ccMainArea .card-header *,
html.ym-theme-beige #ccMainArea .card-header,
html.ym-theme-beige #ccMainArea .card-header * {
    color: var(--ym-text) !important;
}

html.ym-theme-black #ccMainArea .btn-success,
html.ym-theme-blue #ccMainArea .btn-success,
html.ym-theme-beige #ccMainArea .btn-success {
    color: #ffffff !important;
}

html.ym-theme-black #ccMainArea .badge,
html.ym-theme-blue #ccMainArea .badge,
html.ym-theme-beige #ccMainArea .badge {
    color: #ffffff !important;
}


/* -----------------------------------------------------
   18-6．画像は色を変更しない
----------------------------------------------------- */

html.ym-theme-black #ccMainArea img,
html.ym-theme-blue #ccMainArea img,
html.ym-theme-beige #ccMainArea img {
    filter: none !important;
    opacity: 1 !important;
}