﻿label {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 0px; /*これでlabelの謎の隙間が消える*/
    cursor: pointer;
}

#contents {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.top_header {
    border-top: solid calc(10px * var(--v-scale)) var(--grade-color);
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    margin-bottom: calc(4px * var(--v-scale));
}

    .top_header > div {
        margin-left: auto;
        margin-bottom: auto;
        display: flex;
    }

.mainArea {
    width: 100%;
    flex-grow: 1;
    display: flex;
}

.selectBox {
    width: calc(400px * var(--v-scale));
    height: 100%;
    display: flex;
    flex-direction: column;
    clip-path: inset(calc(-20px * var(--v-scale)) 0px);
}

    .selectBox.mpdSelectBox {
        width: calc(360px * var(--v-scale));
        height: 92%;
        justify-content: flex-end;
    }

    .selectBox:last-child {
        width: calc(200px * var(--v-scale));
    }

    .selectBox input {
        display: none;
    }

        .selectBox label > input:checked + img {
            transform: scale(1.3);
            filter: drop-shadow(0 0 calc(3px * var(--v-scale)) rgba(0,0,0,.3));
            pointer-events: none;
            z-index: 1;
        }

    .selectBox label > img {
        position: relative;
        transform-origin: 0px 50%;
        transition: all 0.3s ease;
    }

    .selectBox:last-child label > img {
        transform-origin: 100% 50%;
    }

    .selectBox label > img:hover {
        transform: scale(1.05);
        filter: drop-shadow(0 0 calc(3px * var(--v-scale)) rgba(0,0,0,.3));
        z-index: 2;
    }

.mpdSelectBox > div:first-child {
    margin-bottom: auto;
    margin-left:auto;
}

.mpdSelectBox > div:last-child {
    margin-left: auto;
}

    .mpdSelectBox > div a {
        display: flex;
        margin: calc(10px * var(--v-scale));
    }

.centerBox {
    width: calc(800px * var(--v-scale));
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pageBox {
    width: 100%;
    flex-grow: 1;
    position: relative;
}

    .pageBox img {
        width: 100%;
        filter: drop-shadow(0 0 calc(3px * var(--v-scale)) rgba(0,0,0,.3));
    }

    .pageBox > div {
        width: 100%;
        height: 100%;
        position: relative;
    }

.tab {
    display: flex;
    margin-bottom: calc(-10px * var(--v-scale));
}

    .tab input {
        display: none;
    }

    .tab img {
        filter:grayscale(1);
    }

        .tab input:checked ~ img {
            filter: none;
        }

.subBox {
    flex-grow: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow:hidden;
}

    .subBox a {
        display: flex;
        margin: calc(10px * var(--v-scale));
    }

#topVer {
    font-size: calc(14px * var(--v-scale));
    color: rgb(128, 128, 128);
    text-align: center;
    margin: calc(10px * var(--v-scale));
}

.top_header #topVer {
    margin-bottom: 0px;
    margin-left: auto;
}

#btnMpd > img {
    width: calc(70px * var(--v-scale));
    filter: drop-shadow(0 0 calc(3px * var(--v-scale)) rgba(0,0,0,.3));
}