﻿html, body {
    background-color: #ebebeb;
}

.blue-text {
    color: #0070c0;
}
.red-text {
    color: #FF0000;
}

.container {
    padding: 0;
    position: relative;
}

.top {
    position: fixed;
    bottom: 2rem;
    right: calc((100vw - 768px) / 2);
    width: 768px;
    max-width: calc(100vw - 2rem);
    margin: 0;
    cursor: pointer;
    transform: none;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    justify-content: flex-end;
}
.top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.reg-wrap {
    background-color: #c0dbe6;
    padding-bottom: 2rem;
}
ul.tabbar {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    margin: 0 1rem 5rem;
}
    ul.tabbar li {
        font-size: 2.6rem;
        font-weight: 700;
        margin: 1rem 2rem;
        padding: 2rem;
        color: #FFF;
        position: relative;
        z-index: 100;
        cursor: pointer;
    }
    ul.tabbar li::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: -1;
        background-color: #1b3d49;
        color: #FFF;
        transform: skewX(10deg);
    }
.content-wrap {
    padding: 0 3rem;
    position: relative;
}
.content-item {
    background-color: #FFF;
    border-radius: 2rem;
    padding: 0 3rem 2rem 2rem;
    margin-bottom: 4rem;
}
.content-title {
    display: inline-block;
    font-size: 2.6rem;
    font-weight: 700;
    transform: translateY(-50%);
    position: relative;
    z-index: 100;
    color: #FFF;
    padding: 1rem;
}
    .content-title::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: -1;
        font-size: 2.6rem;
        font-weight: 700;
        background-color: #004181;
        transform: skewX(10deg);
    }
.content-main {
    font-size: 2rem;
    line-height: 1.6;
    text-align: left;
}
ol.zh-number-list {
    list-style-type: none;
    padding-left: 0;
    counter-reset: zh-counter;
}

    ol.zh-number-list li {
        font-size: 2rem;
        position: relative;
        padding-left: 2em;
        margin-bottom: 1.2rem;
        line-height: 1.6;
        text-align: left;
        color: #000;
    }

        ol.zh-number-list li::before {
            counter-increment: zh-counter;
            content: counter(zh-counter, cjk-ideographic)"、";
            position: absolute;
            left: 0;
            text-align: right;
            top: 0;
        }
        ol.zh-number-list li.double{
            padding-left: 3em;
        }
        /* 通用重設 */
        ol.lv2-list, ol.lv3-list {
            list-style-type: none;
            padding-left: 0;
        }

ol.lv2-list li, ol.lv3-list li {
    position: relative;
    line-height: 1.6;
    text-align: left;
    margin-bottom: 8px;
}
    .title-text {
        font-weight: 700;
    }
.img-list {
    margin-left: -2.5em;
}
ol.lv2-list {
    counter-reset: lv2-counter;
    margin-top: 8px;
}

    ol.lv2-list > li {
        padding-left: 1em; 
    }

ol.lv2-list > li::before {
    counter-increment: lv2-counter;
    content: counter(lv2-counter) ". ";
    position: absolute;
    left: 0;
    text-align: left;
}
.lv2-content {
    margin-top: 8px;
    padding-left: 0.5em;
    line-height: 1.7;
}

ol.lv3-list {
    counter-reset: lv3-counter;
    margin-top: 6px;
    margin-bottom: 6px;
}

    ol.lv3-list > li {
        padding-left: 1.5em; 
    }
    ol.lv3-list li.double {
        padding-left: 2em;
    }

        ol.lv3-list > li::before {
            counter-increment: lv3-counter;
            content: "("counter(lv3-counter)")"; 
            position: absolute;
        }
ul.list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: center;
}
    ul.list li {
        text-align: center;
        font-size: 1.4rem;
    width: 25%;
    border: 1px solid #000;
    padding-left: 0;
    margin: 0;
}
    ul.list li::before{
        content: '';
    }

@media screen and (max-width: 768px) {
    ul.tabbar li {
        font-size: 2rem;
        font-weight: 700;
        margin: 1rem 0.5rem;
        padding: 1rem;
    }
        .top {
        right: 1rem;
    }
}
