@charset "UTF-8";

/*アコーディオン*/
.menu {
    width: 100%;
    padding: 0;
}

.menu input {
    display: none;
}

.menu label {
    cursor: pointer;
    display: block;
    text-decoration: none;
    text-align: left;
    font-size: 140%;
    font-weight: bold;
    color: #000;
    line-height: 1;
    position: relative;
   /* margin: .3rem 0;*/
    /*padding: 1rem;*/
    /*background-color: #d29f44;*/
    border-radius: 10px;
}

.menu label img {
    width: 100%;
}

.menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    margin-bottom: 1px;
}

.menu li {
    height: 0;
    overflow-y: hidden;
    transition: padding-bottom 0.5s, padding-top 0.5s;
    -webkit-transition: padding-bottom 0.5s, padding-top 0.5s -moz-transition: padding-bottom 0.5s, padding-top 0.5s;
    -ms-transition: padding-bottom 0.5s, padding-top 0.5s;
    -o-transition: padding-bottom 0.5s, padding-top 0.5s;
}

#menu_bar01:checked ~ #links01 li,
#menu_bar02:checked ~ #links02 li,
#menu_bar03:checked ~ #links03 li,
#menu_bar04:checked ~ #links04 li,
#menu_bar05:checked ~ #links05 li,
#menu_bar06:checked ~ #links06 li,
#menu_bar07:checked ~ #links07 li,
#menu_bar08:checked ~ #links08 li {
    height: auto;
    opacity: 1;
    /*padding: 1.2rem 0;*/
}

#menu_bar01:checked ~ #links01 li:last-child,
#menu_bar02:checked ~ #links02 li:last-child,
#menu_bar03:checked ~ #links03 li:last-child,
#menu_bar04:checked ~ #links04 li:last-child,
#menu_bar05:checked ~ #links05 li:last-child,
#menu_bar06:checked ~ #links06 li:last-child,
#menu_bar07:checked ~ #links07 li:last-child,
#menu_bar08:checked ~ #links08 li:last-child {
    margin-bottom: 20px;
}

/*.menu label:after {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    border-top: #fff 4px solid;
    border-right: #fff 4px solid;
    -webkit-transform: rotate(135deg);
    -ms-transform: rotate(135deg);
    transform: rotate(135deg);
    position: absolute;
    right: 4%;
    top: 0;
    bottom: 15%;
    margin: auto;
}*/

/*.menu input[type=checkbox]:checked + label:after {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    border-top: #fff 4px solid;
    border-right: #fff 4px solid;
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
    position: absolute;
    right: 4%;
    top: 7%;
    bottom: 0;
    margin: auto;
}*/

@media screen and (min-width: 320px) and (max-width: 767px) {

    .menu label img {
        width: 100%;
    }

    #menu_bar01:checked ~ #links01 li,
    #menu_bar02:checked ~ #links02 li,
    #menu_bar03:checked ~ #links03 li,
    #menu_bar04:checked ~ #links04 li,
    #menu_bar05:checked ~ #links05 li,
    #menu_bar06:checked ~ #links06 li,
    #menu_bar07:checked ~ #links07 li,
    #menu_bar08:checked ~ #links08 li {
        padding: 0rem 0;
    }

}