.site-config-dialog-back {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease-in-out;
}
.site-config-dialog-back.is-view {
    visibility: visible;
    opacity: 1;
}

.site-config-dialog-contents {
    background-color: #fff;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 50%;
    max-width: 500px;
    max-height: 90vh;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}
.site-config-dialog-back.is-view .site-config-dialog-contents {
    transform: scale(1);
}

.site-config-dialog-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    border: none;
    cursor: pointer;
    color: #666;
}
.site-config-dialog-contents {
    .rs p
    , .fontsize p {
        font-size: 1.5em;
    }

    .fontsize {
        padding-top: 15px;
        margin-right: 0.5em;
        
        a {
            float: left;
            height: 18px;
            width: 39px;
            text-indent: -9999px;
            background: url('/wp-content/uploads/images/header_fontsize.png') no-repeat;
        }
        div {
            overflow: hidden;
        }
        a#font-small {
            background-position: 0 0;
            border: 1px solid #aaaaaa;
        }
        a#font-medium {
            background-position: -39px 0;
            border: 1px solid #aaaaaa;
        }
        a#font-large {
            background-position: -78px 0;
            border: 1px solid #aaaaaa;
        }
        a#font-small:hover, .tools-container  .fontsize .select a#font-small {
            background-position: 0 -18px;
        }
        a#font-medium:hover, .tools-container  .fontsize .select a#font-medium {
            background-position: -39px -18px;
        }
        a#font-large:hover, .tools-container  .fontsize .select a#font-large {
            background-position: -78px -18px;
        }
    }

    .colorchange {
        padding-top: 15px;
        
        .colorchange-title {
            font-size: 1.5em;
        }
        .colorchange-detail {
            width: 150px;
            display: flex;
            gap: 10px;
            
            .colorchange-element {
                flex: 1;
                text-align: center;
                border: 1px solid #ddd;
                border-radius: 5px;
            }
            .colorchange-element.colorchange-default {
                background-color: white;
            }
            .colorchange-element.colorchange-black {
                background-color: black;
            }
            .colorchange-element.colorchange-blue {
                background-color: blue;
            }
            .colorchange-element.colorchange-yellow {
                background-color: yellow;
            }
            .colorchange-element.colorchange-default a {
                color: black;
            }
            .colorchange-element.colorchange-black a {
                color: white;
            }
            .colorchange-element.colorchange-blue a {
                color: yellow;
            }
            .colorchange-element.colorchange-yellow a {
                color: blue;
            }
            .colorchange-element a {
                display: block;
                text-decoration: none;
                padding: 4px 11px;
            }
        }
    }
}
@media screen and (max-width: 812px) {
    .header-nav .menu .sp-view-menu {
        display: inherit;
    }
    .header-nav .menu .sp-navsiteconfig {
        margin-top: 10px;
    }
}
@media (min-width: 813px) {
    .header-nav .menu .sp-view-menu {
        display: none;
    }
}

.color-black, .color-blue, .color-yellow {
    background: inherit;

    .site-title {
        background: none;
    }
    .site-title h1 a {
        background: none;
        text-indent: inherit;
        font-size: 0.6em;
    }
    #content_main_l_01, #content_main_l_02 {
        background: none !important;
    }
    #content_main_l_02 div {
        background: none !important;
        border: none !important;
    }
    .header-nav li a {
        background-color: inherit;
    }
    #content_main_l .topMain {
        text-shadow: none !important;
    }
    #content_main_l .topMain a {
        text-decoration: underline !important;
    }
    div.category_1, div.category_2, div.category_3, div.category_4, div.category_5 {
        div.frame, div.text th, div.text tr, div.text td
        , div.text th:not(th.th-lightblue) {
            background: none !important;
        }
    }
    .mbc1, .mbc2, .mbc3, .mbc4, .mbc5, .mbc6, .mbc7, .mbc8, .mbc9
    , .mbc10, .mbc16, .mbc17, .mbc18, .mbc19
    , .mbc20, .mbc21, .mbc22, .mbc23 {
        background-image: none;
    }
    span.category_news {
        color: black;
    }
    #entry_type1, #entry_type2, #entry_type3
    , div.entry {
        div.frame {
            background: none !important;
        }
    }
    div.entry {
        table.layout td.layout_td
        , div.informer caption
        , div.informer th
        , div.informer td {
            background: none;
        }
    }
    .prefList2 td a {
        color: inherit !important;
    }
    .container .contents {
        .glossary-h1-img, .glossary-aiu-img, .glossary-back-img {
            display: none;
        }
        .glossary-h1-title, .glossary-h1-step1, .glossary-h1-step2, .glossary-h1-step3
        , .glossary-aiu-span
        , .glossary-back-span {
            display: block !important;
        }
        .glossary-h1 {
            width: 80%;
        }
        .glossary-h1-title {
            font-size: 0.7em;
            padding-top: 8px;
            padding-left: 24px;
        }
        .glossary-h1-step1, .glossary-h1-step2, .glossary-h1-step3 {
            font-size: 0.5em;
            padding-top: 14px;
            padding-left: 26px;
        }
        .glossary-aiu-span
        , .glossary-back-span {
            font-size: 1.3em;
            font-weight: bold;
            padding-top: 20px;
            padding-bottom: 10px;
        }
    }
    .glossary_nav h1.glossary-h1 {
        width: 70% !important;
    }
    .glossary-table {
        display: none;
    }
    .glossary-table-div {
        display: block !important;
        
        .glossary-table-row {
            display: flex;
            max-width: 530px;
        }
        .glossary-table-row .glossary-link {
            width: calc(10% - 2px);
            max-width: 53px;            
            padding-top: calc(10% - 2px);
            position: relative;

            border: solid 1px;
            border-radius: 5px;
            overflow: hidden;
        }
        .glossary-table-row .glossary-link a {
            display: flex;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            justify-content: center;
            align-items: center;
            text-decoration: none;
            font-size: 1.2em;
            font-weight: bold;
            padding-top: 2px;
        }
    }
    .glossary-by-list img {
        display: none;
    }
    .glossary-by-list span {
        display: block !important;
        font-size: 1.2em;
    }
    .glossary_nav .glossary-link
    , .glossary_term .glossary-link {
        margin-left: 10px;
        margin-right: 10px;
    }
    .glossary_nav, .glossary_term, .glossary-searched-area {
        .glossary_initial_letter
        , .glossary_initial {
            display: none;
        }
        .glossary-link {
            display: block !important;
            width: 53px;
            height: 53px;
            position: relative;

            border: solid 1px;
            border-radius: 5px;
            overflow: hidden;
        }
        .glossary-link span {
            display: flex;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            justify-content: center;
            align-items: center;
            font-size: 1.2em;
            font-weight: bold;
            padding-top: 2px;
        }
    }

    .bgcolor-def {
        background-color: white;
    }

    #footer {
        background: none;
    }
}
.color-black {
    background-color: black;
    color: white;

    .header-nav li {
        background-color: black;
        border-color: white;
    }
    a
    , .header-nav li a, .header-nav li a:before
    , .footer-nav li a {
        color: white;
    }
    a.glossaryLink, a.glossaryLink:hover
    , span.glossaryLink, span.glossaryLink:hover {
        color: white !important;
        border-bottom-color: white !important;
    }
    .button {
        background: black;
    }
    #navbutton, #navsiteconfig, .rsbtn_play--button {
        background-color: black;
        i {
            color: white;
        }
        p {
            color: white;
        }
    }
    .site-config-dialog-contents {
        background-color: black;
        box-shadow: 0 5px 15px rgba(255, 255, 255, 0.5);
    }
    div#content_main_l_01, div#content_main_l_02 {
        border: solid 1px white;
    }
    .tab_content
    , .wp-pagenavi a:hover, .wp-pagenavi span.current {
        border-color: white;
    }
    div.category_1, div.category_2, div.category_3, div.category_4, div.category_5 {
        div.frame {
            border: solid 1px white;
        }
        h1, h2, h3, h4 {
            color: white !important;
        }
    }
    #entry_type1, #entry_type2, #entry_type3 {
        div.entry {
            h1, div.description {
                border-left-color: white;
            }
            div.description {
                border-bottom-color: white;
            }
            h1, h2, h3, h4, div.description
            , h1 span, h2 span, h3 span, h4 span {
                color: white !important;
            }
            div.text {
                table.bgcolor-table {
                    tr {
                        background-color: black !important;
                    }
                }
                center div {
                    background-color: black !important;
                }
            }
        }
    }
    .link-underbox {
        background-color: white !important;
    }
    div.entry {
        div.text th, div.text td, div.text h2, a.link1, div.informer caption {
            color: white;
        }
    }
    .ttl-in, .btn-pnk, .btn-blu, .btn-grn
    , div.category_2 div.text td.ttl-in, div.category_2 div.text td.btn-pnk, div.category_2 div.text td.btn-blu, div.category_2 div.text td.btn-grn
    , div.entry a.link1, div.entry a.link2, div.entry a.link3 {
        background: radial-gradient(#000, #444) !important;
    }
    .index-h6-black {
        color: white !important;
    }
    .MsoNormalTable td {
        border: solid 1px white !important;
    }
    #setu2 .redtxt {
        color: white;
    }
    #footer {
        border-top-color: white;
    }
    #footer li {
        border-left-color: white;
        border-right-color: white;
    }
    #to_pagetop_btn a {
        background: rgba(128, 128, 128, 0.5);
    }
    #to_pagetop_btn a:hover {
        background: black;
    }
    .copyright p {
        color: white;
    }
}
.color-blue {
    background-color: blue;
    color: yellow;

    .header-nav li {
        background-color: blue;
        border-color: white;
    }
    a
    , .header-nav li a, .header-nav li a:before
    , .footer-nav li a {
        color: yellow;
    }
    a.glossaryLink, a.glossaryLink:hover
    , span.glossaryLink, span.glossaryLink:hover {
        color: yellow !important;
        border-bottom-color: white !important;
    }
    .button {
        background: blue;
    }
    #navbutton, #navsiteconfig, .rsbtn_play--button {
        background-color: blue;
        i {
            color: yellow;
        }
        p {
            color: yellow;
        }
    }
    .site-config-dialog-contents {
        background-color: blue;
        box-shadow: 0 5px 15px rgba(255, 255, 255, 0.5);
    }
    div#content_main_l_01, div#content_main_l_02 {
        border: solid 1px white;
    }
    .tab_content
    , .wp-pagenavi a:hover, .wp-pagenavi span.current {
        border-color: white;
    }
    div.category_1, div.category_2, div.category_3, div.category_4, div.category_5 {
        div.frame {
            border: solid 1px white;
        }
        h1, h2, h3, h4 {
            color: yellow !important;
        }
    }
    #entry_type1, #entry_type2, #entry_type3 {
        div.entry {
            h1, div.description {
                border-left-color: white;
            }
            div.description {
                border-bottom-color: white;
            }
            h1, h2, h3, h4, div.description
            , h1 span, h2 span, h3 span, h4 span {
                color: yellow !important;
            }
            div.text {
                table.bgcolor-table {
                    tr {
                        background-color: blue !important;
                    }
                }
                center div {
                    background-color: blue !important;
                }
            }
        }
    }
    .link-underbox {
        background-color: white !important;
    }
    div.entry {
        div.text th, div.text td, div.text h2, a.link1, div.informer caption {
            color: yellow;
        }
    }
    .ttl-in, .btn-pnk, .btn-blu, .btn-grn
    , div.category_2 div.text td.ttl-in, div.category_2 div.text td.btn-pnk, div.category_2 div.text td.btn-blu, div.category_2 div.text td.btn-grn
    , div.entry a.link1, div.entry a.link2, div.entry a.link3 {
        background: radial-gradient(blue, rgb(80, 80, 255)) !important;
    }
    .index-h6-black {
        color: yellow !important;
    }
    .MsoNormalTable td {
        border: solid 1px white !important;
    }
    #setu2 .redtxt {
        color: yellow;
    }
    #footer {
        border-top-color: white;
    }
    #footer li {
        border-left-color: white;
        border-right-color: white;
    }
    #to_pagetop_btn a {
        background: rgba(64, 64, 255, 0.5);
        color: yellow;
    }
    #to_pagetop_btn a:hover {
        background: blue;
    }
    .copyright p {
        color: yellow;
    }
}
.color-yellow {
    background-color: yellow;
    color: blue;

    .header-nav li {
        background-color: yellow;
        border-color: rgb(204, 204, 238);
    }
    a
    , .header-nav li a, .header-nav li a:before
    , .footer-nav li a {
        color: blue;
    }
    a.glossaryLink, a.glossaryLink:hover
    , span.glossaryLink, span.glossaryLink:hover {
        color: blue !important;
        border-bottom-color: rgb(204, 204, 238) !important;
    }
    .button {
        background: yellow;
    }
    .header-nav li a {
        border-left-color: rgb(204, 204, 238);
    }
    #navbutton, #navsiteconfig, .rsbtn_play--button{
        background-color: yellow;
        i {
            color: blue;
        }
        p {
            color: blue;
        }
    }
    .site-config-dialog-contents {
        background-color: yellow;
    }
    div#content_main_l_01, div#content_main_l_02 {
        border: solid 1px rgb(204, 204, 238);
    }
    .tab_content
    , .wp-pagenavi a:hover, .wp-pagenavi span.current {
        border-color: rgb(204, 204, 238);
    }
    div.category_1, div.category_2, div.category_3, div.category_4, div.category_5 {
        div.frame {
            border-color: rgb(204, 204, 238);
        }
        h1, h2, h3, h4 {
            color: blue !important;
        }
    }
    #entry_type1, #entry_type2, #entry_type3 {
        div.entry {
            h1, div.description {
                border-left-color: rgb(204, 204, 238);
            }
            div.description {
                border-bottom-color: rgb(204, 204, 238);
            }
            h1, h2, h3, h4, div.description
            , h1 span, h2 span, h3 span, h4 span {
                color: blue !important;
            }
            div.text {
                table.bgcolor-table {
                    tr {
                        background-color: yellow !important;
                    }
                }
                center div {
                    background-color: yellow !important;
                }
            }
        }
    }
    .link-underbox {
        background-color: rgb(204, 204, 238) !important;
    }
    div.entry {
        div.text th, div.text td, div.text h2, a.link1, div.informer caption {
            color: blue;
        }
    }
    .ttl-in, .btn-pnk, .btn-blu, .btn-grn
    , div.category_2 div.text td.ttl-in, div.category_2 div.text td.btn-pnk, div.category_2 div.text td.btn-blu, div.category_2 div.text td.btn-grn
    , div.entry a.link1, div.entry a.link2, div.entry a.link3 {
        background: radial-gradient(yellow, rgb(255, 255, 180)) !important;
    }
    .index-h6-black {
        color: blue !important;
    }
    #setu2 .redtxt {
        color: blue;
    }
    #footer {
        border-top-color: rgb(204, 204, 238);
    }
    #footer li {
        border-left-color: rgb(204, 204, 238);
        border-right-color: rgb(204, 204, 238);
    }
    #to_pagetop_btn a {
        background: rgba(216, 216, 0, 0.5);
        color: blue;
    }
    #to_pagetop_btn a:hover {
        background: yellow;
    }
    .copyright p {
        color: blue;
    }
}



/* =========================================================
   Dialog patch (unified, Android-safe):
   - Always centered to the *visible viewport* using vw/vh (and dvw/dvh when available)
   - Works even on horizontally scrollable pages
   - Responsive width/height + safe padding
   - Font-size buttons: button-like & pressed feel
   Put this at the VERY END of the CSS
========================================================= */

/* 1) Overlay (back): lock to viewport */
.site-config-dialog-back{
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;

  /* IMPORTANT: no flex centering (Android can mis-center on layout width) */
  display: block !important;

  z-index: 1000 !important;
}

/* 2) Dialog (contents): lock to viewport center (vw/vh) */
.site-config-dialog-contents{
  position: fixed !important;

  /* KEY: use vw/vh instead of % to avoid "page center" on Android */
  left: 50vw !important;
  top: 50vh !important;

  /* Centering + keep scale animation */
  transform: translate(-50%, -50%) scale(0.8) !important;
  transform-origin: center center !important;

  /* Width tuning: one place */
  width: min(94vw, 500px) !important;

  /* Prevent overflow outside the screen */
  max-height: calc(100vh - 24px) !important;
  overflow: auto !important;

  box-sizing: border-box !important;
  padding: 20px !important;
}

/* 2.1) Prefer dynamic viewport units when supported (newer Android/iOS) */
@supports (left: 50dvw){
  .site-config-dialog-contents{
    left: 50dvw !important;
    top: 50dvh !important;
    max-height: calc(100dvh - 24px) !important;
  }
  .site-config-dialog-back{
    height: 100dvh !important;
  }
}

/* 3) Open state: scale up */
.site-config-dialog-back.is-view .site-config-dialog-contents{
  transform: translate(-50%, -50%) scale(1) !important;
}

/* 4) Small screens: slightly safer */
@media screen and (max-width: 812px){
  .site-config-dialog-contents{
    width: min(94vw, 320px) !important;
    max-height: calc(100vh - 16px) !important;
    padding: 20px !important;
  }
  @supports (left: 50dvw){
    .site-config-dialog-contents{
      max-height: calc(100dvh - 16px) !important;
    }
  }
}

/* =========================================================
   Font-size buttons (button-like + pressed feel)
========================================================= */

.site-config-dialog-contents .fontsize-btn{
  background: #fff;
  color: #000;
  border: 1px solid #aaa;
  border-radius: 6px;
  padding: 8px 11px;
  cursor: pointer;
  transition: background-color .08s ease, transform .08s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.site-config-dialog-contents .fontsize-btn.is-pressed{
  background: #333 !important;
  color: #fff !important;
  transform: translateY(1px);
}

/* Safety: if old sprite anchors remain, force plain rendering */
.site-config-dialog-contents .fontsize a#font-small,
.site-config-dialog-contents .fontsize a#font-medium,
.site-config-dialog-contents .fontsize a#font-large{
  background-image: none !important;
  text-indent: 0 !important;
  width: auto !important;
  height: auto !important;
  float: none !important;
}





/* =========================================================
   Dialog: Font-size sprite buttons (FINAL OVERRIDE v2)
   - uses existing sprite: /wp-content/uploads/images/header_fontsize.png
   - avoids calc() multiplication (mobile Safari/older browsers safe)
   - sprite layout (original): 39x18 (x3 cols, x2 rows)
   - scaled tile size (this dialog): 55x26 (approx 1.4x)
   - selected state uses aria-pressed="true" OR .is-selected
========================================================= */

/* screen-reader only text */
.site-config-dialog-contents .sr-only{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---- サイズ（ここだけ変えれば拡大縮小できる） ----
   tile_w = 55px
   tile_h = 26px
   sprite_w = 165px
   sprite_h = 52px
   x2 = -110px
*/
:root{
  --dlg-fsbtn-w: 72px;
  --dlg-fsbtn-h: 34px;
  --dlg-fsbtn-x1: -72px;
  --dlg-fsbtn-x2: -143px;
  --dlg-fsbtn-y1: -34px;
  --dlg-fsbtn-sprite-w: 215px;
  --dlg-fsbtn-sprite-h: 68px;
}

.site-config-dialog-contents .fontsize--sprite .fontsize-buttons{
  overflow: hidden !important;
  font-size: 0 !important;
  line-height: 0 !important;
  border: 2px solid;
  border-radius: 3px;
}

/* base button */
.site-config-dialog-contents .fontsize--sprite .fontsize-buttons .fontsize-btn.fontsize-sprite{
  appearance: none !important;
  -webkit-appearance: none !important;

  display: block !important;
  float: left !important;

  margin: 0 !important;
  padding: 0 !important;

  width:  var(--dlg-fsbtn-w) !important;
  height: var(--dlg-fsbtn-h) !important;

  border: 1px solid #aaaaaa !important;
  border-radius: 0 !important;

  background-image: url("/wp-content/uploads/images/header_fontsize.png") !important;
  background-repeat: no-repeat !important;
  background-size: var(--dlg-fsbtn-sprite-w) var(--dlg-fsbtn-sprite-h) !important;

  background-color: transparent !important;
  cursor: pointer !important;
  touch-action: manipulation;

  /* 既存の .fontsize-btn の文字/パディング影響を完全に消す */
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

/* prevent double borders between buttons */
.site-config-dialog-contents .fontsize--sprite .fontsize-buttons #font-medium,
.site-config-dialog-contents .fontsize--sprite .fontsize-buttons #font-large{
  margin-left: -1px !important;
}

/* normal row (top) */
.site-config-dialog-contents .fontsize--sprite .fontsize-buttons #font-small{
  background-position: 0 0 !important;
}
.site-config-dialog-contents .fontsize--sprite .fontsize-buttons #font-medium{
  background-position: var(--dlg-fsbtn-x1) 0 !important;
}
.site-config-dialog-contents .fontsize--sprite .fontsize-buttons #font-large{
  background-position: var(--dlg-fsbtn-x2) 0 !important;
}

/* selected row (bottom) — mobile-safe
   - aria-pressed=true OR .is-selected の両方に対応
*/
.site-config-dialog-contents .fontsize--sprite .fontsize-buttons #font-small[aria-pressed="true"],
.site-config-dialog-contents .fontsize--sprite .fontsize-buttons #font-small.is-selected{
  background-position: 0 var(--dlg-fsbtn-y1) !important;
}
.site-config-dialog-contents .fontsize--sprite .fontsize-buttons #font-medium[aria-pressed="true"],
.site-config-dialog-contents .fontsize--sprite .fontsize-buttons #font-medium.is-selected{
  background-position: var(--dlg-fsbtn-x1) var(--dlg-fsbtn-y1) !important;
}
.site-config-dialog-contents .fontsize--sprite .fontsize-buttons #font-large[aria-pressed="true"],
.site-config-dialog-contents .fontsize--sprite .fontsize-buttons #font-large.is-selected{
  background-position: var(--dlg-fsbtn-x2) var(--dlg-fsbtn-y1) !important;
}

/* optional: show selected state also on keyboard focus */
.site-config-dialog-contents .fontsize--sprite .fontsize-buttons .fontsize-btn.fontsize-sprite:focus{
  outline: 2px solid rgba(0,0,0,0.4) !important;
  outline-offset: 2px !important;
}


/* =========================================================
   Selection fallback (wrapper class)
   - JS が aria-pressed を書き換えられない環境でも、select-* クラスで確実に切替
========================================================= */
.site-config-dialog-contents .fontsize-buttons.select-small #font-small{
  background-position: 0 var(--dlg-fsbtn-y1) !important;
}
.site-config-dialog-contents .fontsize-buttons.select-medium #font-medium{
  background-position: var(--dlg-fsbtn-x1) var(--dlg-fsbtn-y1) !important;
}
.site-config-dialog-contents .fontsize-buttons.select-large #font-large{
  background-position: var(--dlg-fsbtn-x2) var(--dlg-fsbtn-y1) !important;
}

/* =========================================================
   FINAL OVERRIDE: Center align dialog contents + move close button to bottom center
   (スマホ/PC共通。既存CSSの影響を受けないよう !important で上書き)
========================================================= */

.site-config-dialog-contents{
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* 各セクションは中央に寄せる */
.site-config-dialog-contents .rs,
.site-config-dialog-contents .fontsize,
.site-config-dialog-contents .colorchange{
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 文字サイズボタン：中央寄せ（floatの影響を吸収） */
.site-config-dialog-contents .fontsize-buttons{
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
}
.site-config-dialog-contents .fontsize-buttons::after{
  content: "";
  display: block;
  clear: both;
}

/* 配色ボタン：中央寄せ */
.site-config-dialog-contents .colorchange-detail{
  justify-content: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 閉じるボタン：右上→下中央 */
.site-config-dialog-close{
  position: static !important;
  top: auto !important;
  right: auto !important;

  display: inline-block !important;
  margin: 24px auto 0 !important;
  padding: 12px 28px !important;

  font-size: 16px !important;
  line-height: 1.2 !important;

  border: none !important;
  border-radius: 10px !important;
  background: #666 !important;
  color: #fff !important;

  cursor: pointer !important;
}

.site-config-dialog-close:hover{
  background: #444 !important;
}
