/* 参考　https://125naroom.com/web/3046 */
/* Symはsymbolの略[回転する印] */

/* -----Thの回転する「+」マーク------ */
.th_box {
    font-size: 0.8em;
    position: absolute;
    top: 20%;
    width: 25px;
    height: 25px;
    color: #194602;
    border: 1px solid #194602;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .3s;
}

.one_th:before,
.one_th:after {
    content: '';
    background-color: #000000;
    border-radius: 10px;
    width: 18px;
    height: 2px;
    position: absolute;
    inset: 0;
    margin: auto;
    transform-origin: center center;
}

.one_th:before {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.one_th:after {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

thead.thead-active .one_th:before {
    -webkit-transform: rotate(-0deg);
    transform: rotate(0deg);
}

thead.thead-active .one_th:after {
    display: none;
}

.th_box {
    left: 21%;
}

@media screen and (max-width: 400px) {
    .th_box {
        left: 9%;
    }
}

thead.thead-active .th_box {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
    transition: .3s;
}

@media screen and (max-width: 500px) {
    .th_box {
        top: 30%;
        width: 22px;
        height: 22px;
    }

    .one_th:before,
    .one_th:after {
        width: 16px;
    }
}



/* -----Tdの回転する「+」マーク等------ */

.i_box {
    display: none;
}

tbody.show .i_box {
    font-size: 0.8em;
    /* position: absolute; */
    top: 20%;
    width: .8em;
    height: .8em;
    color: #194602;
    border: 1px solid #194602;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .3s;
}

tbody.show .nomi_box {
    position: absolute;
    top: 14%;
    width: 40px;
    height: 40px;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .5s;
}

/* ↓　なぜnth-child(2)が上で、child(1)が下なのかわからない */
tbody.show .i_box:nth-child(2) {
    right: 75%;
}

tbody.show .nomi_box:nth-child(1) {
    left: 20vw;
}

@media screen and (max-width: 1120px) {
    tbody.show .i_box:nth-child(2) {
        right: 85%;
    }
}

.menuTd {
    position: relative;
}

.menu.is-active .i_box {
    -webkit-transform: rotate(450deg);
    transform: rotate(450deg);
    transition: .3s;
    display: block;
}

.menu.is-active .nomi_box {
    -webkit-transform: rotate(-540deg);
    transform: rotate(-540deg);
    transition: .3s;
    display: flex;
}

.one_i:before,
.one_i:after {
    content: '';
    background-color: #000000;
    border-radius: 10px;
    /* width: 15px; */
    height: 1.5px;
    position: absolute;
    inset: 0;
    margin: auto;
    transform-origin: center center;
}

.one_i:before {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.one_i:after {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.menu.is-active .one_i:before {
    -webkit-transform: rotate(-90deg);
    transform: rotate(90deg);
}

.menu.is-active .one_i:after {
    display: none;
}

.menu.is-active .nomiimg {
    -webkit-transform: rotate(-540deg);
    transform: rotate(-540deg);
    transition: .3s;
    left: 18%;
}

.nomiring {
    position: absolute;
    left: 18%;
    opacity: 0;
    width: 1px;
    height: 1px;
    transition: .2s;
}

.menu.is-active .nomiring {
    top: 9%;
    width: 30px;
    height: 16px;
    display: block;
    opacity: 1;
    transition: 1s;
}

.nomiimg {
    position: absolute;
    top: 25%;
    left: 25%;
    width: 35px;
    transition: .2s;
}

@media screen and (max-width: 400px) {

    .nomiring,
    .nomiimg {
        left: 15%;
    }

    .menu.is-active .nomiimg,
    .menu.is-active .nomiring {
        left: 5%;
    }
}

.menu.is-active .one_i {
    -webkit-transform: rotate(-0deg);
    transform: rotate(0deg);
}

@media screen and (max-width: 600px) {
    tbody.show .i_box {
        top: 25%;
        /* width: 18px;
        height: 18px;
        transition: .4s; */
    }

    .menu.is-active .i_box {
        transition: .4s;
    }

    .one_i:before,
    .one_i:after {
        width: 11px;
    }

    tbody.show .i_box:nth-child(2) {
        right: 75%;
    }
}

@media screen and (max-width: 650px) {
    tbody.show .i_box:nth-child(2) {
        left: 3vw
    }
}