/* Dual layout: PC (.site-pc) + transplanted mobile (.site-m) */

.loading,
.site-pc .loading,
.site-m .loading {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    z-index: -1 !important;
}

html, body {
    min-width: 0 !important;
}

.site-m {
    display: none;
}

/* PC index HTML has unclosed tags, so the browser nests .site-m inside .site-pc.
   Hiding .site-pc with display:none also hides the mobile page (white screen).
   display:contents lets .site-m participate in layout. */
html.is-m .site-pc {
    display: contents !important;
}
html.is-m .site-pc > *:not(.site-m) {
    display: none !important;
}
html.is-m .site-m {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    min-height: 100vh;
    color: #333;
    background: #fff;
}
html.is-m,
html.is-m body {
    min-width: 0 !important;
    width: auto !important;
}

html.is-pc .site-m {
    display: none !important;
}
html.is-pc .site-pc {
    display: block !important;
}

@media (max-width: 767px) {
    html:not(.is-pc) .site-pc {
        display: contents !important;
    }
    html:not(.is-pc) .site-pc > *:not(.site-m) {
        display: none !important;
    }
    html:not(.is-pc) .site-m {
        display: block !important;
        width: 100% !important;
    }
}
@media (min-width: 768px) {
    html:not(.is-m) .site-m {
        display: none !important;
    }
    html:not(.is-m) .site-pc {
        display: block !important;
    }
}

.site-m .article img,
.site-m .article p img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.site-m .pagesize {
    text-align: center;
    font-size: 0;
    padding-bottom: 16px;
}
.site-m .pagesize span,
.site-m .pagesize a {
    line-height: 24px;
    font-size: 16px;
    color: #ADADAD;
    padding: 0 7px;
    margin: 0 3px;
    display: inline-block;
    vertical-align: middle;
    background: #EAEAEA;
    border-radius: 6px;
}
.site-m .pagesize a:hover,
.site-m .pagesize a.current,
.site-m .pagesize a.color {
    color: #333;
}

/* Mobile list rows are a fixed thumbnail height. PC ajax injects .dec (summary)
   into the same box, so title / summary / date stack on top of each other. */
.site-m .listType3 li .ri {
    overflow: hidden;
}
.site-m .listType3 li .ri .dec {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}
.site-m .listType3 li .ri .title {
    max-height: calc(96 / 750 * 100vw);
}
.site-m .listType3 li .ri .infors {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
}
.site-m .listType3 li .ri .infors .s1,
.site-m .listType3 li .ri .infors .s2 {
    display: block;
    width: auto;
}
