/* Mobile */
@media only screen and (max-width: 420px) {
    body {
        background-size: 100%;
    }
    section#sub_menu>article>label:nth-of-type(1),
    section#sub_menu>article>label:nth-of-type(2) {
        border-radius: unset;
        padding-left: unset;
        padding-right: unset;
    }
    #sub_menu1:checked ~ article>label:nth-of-type(1)>p,
    #sub_menu2:checked ~ article>label:nth-of-type(2)>p {
        border-radius: unset;
    }
    section#sub_menu>article>label>p {
        width: unset;
        height: 33px;
        line-height: 33px;
        font-size: 14px;
    }

    #sub_item1>article:nth-of-type(1)>ul>li:nth-of-type(1)>img {
        width: 208px;
    }
    #sub_item1>article:nth-of-type(1)>ul>li:nth-of-type(2)>img {
        width: 292px;
    }
    #sub_item1>article:nth-of-type(1)>ul>li:nth-of-type(3)>img {
        width: 323px;
    }

    #sub_item1>article:nth-of-type(2) {
        padding-bottom: 0;
    }
    #sub_item1>article:nth-of-type(2)>div,
    #sub_item1>article:nth-of-type(2) ul:nth-of-type(1),
    #sub_item1>article:nth-of-type(2) ul:nth-of-type(2) {
        display: none;
    }
    #sub_item1>article:nth-of-type(2) ul:nth-of-type(3) {
        display: flex;
        flex-flow: row wrap;
        align-items: center;
    }
    #sub_item1>article:nth-of-type(2) ul:nth-of-type(3)>li {
        display: flex;
        padding: 20px 0;
        width: 50%;
        align-self: stretch;
        justify-content: center;
    }
    #sub_item1>article:nth-of-type(2) ul:nth-of-type(3)>li:nth-of-type(1) { order: 1; background-color: #F3F3F3;justify-content: flex-end; }
    #sub_item1>article:nth-of-type(2) ul:nth-of-type(3)>li:nth-of-type(2) { order: 2; background-color: #F3F3F3; }
    #sub_item1>article:nth-of-type(2) ul:nth-of-type(3)>li:nth-of-type(4) { order: 3; justify-content: center;}
    #sub_item1>article:nth-of-type(2) ul:nth-of-type(3)>li:nth-of-type(3) { order: 4; }
    #sub_item1>article:nth-of-type(2) ul:nth-of-type(3)>li:nth-of-type(5) { order: 5; background-color: #F3F3F3;justify-content: flex-end; }
    #sub_item1>article:nth-of-type(2) ul:nth-of-type(3)>li:nth-of-type(6) { order: 6; background-color: #F3F3F3; }
    #sub_item1>article:nth-of-type(2) ul:nth-of-type(3)>li>img {
        align-self: center;
        width: 87%;
    }
    #sub_item1>article:nth-of-type(2) ul:nth-of-type(3)>li:nth-of-type(2)>img {
        width: 74%;
    }
    #sub_item1>article:nth-of-type(2) ul:nth-of-type(3)>li:nth-of-type(4)>img {
        width: 75%;
    }
    #sub_item1>article:nth-of-type(2) ul:nth-of-type(3)>li:nth-of-type(6)>img {
        width: 95%;
    }
    #sub_item1>article:nth-of-type(4)>ul,
    #sub_item1>article:nth-of-type(5)>div {
        width: 100%;
    }

    #sub_item1>article:nth-of-type(3) {
        padding: 20px 0 40px 0;
        height: unset;
    }
    #sub_item1>article:nth-of-type(3)>ul {
        border-radius: 10px;
        width: 97%;
        height: calc(97vw / 16 * 9);
    }
    #sub_item1>article:nth-of-type(3)>ul>li:first-child {
        top: unset;
        bottom: -30px;
        left: calc(50% - 20px - 27px);
        width: 20px;
        height: 20px;
    }
    #sub_item1>article:nth-of-type(3)>ul>li:last-child {
        top: unset;
        bottom: -30px;
        right: calc(50% - 20px - 27px);
        width: 20px;
        height: 20px;
    }
    #sub_item1>article:nth-of-type(3)>ul>li:first-child>img,
    #sub_item1>article:nth-of-type(3)>ul>li:last-child>img {
        width: 100%;
    }
    #sub_item1>article:nth-of-type(3)>ul>li:not(:first-child, :last-child) {
        padding: 5px 0;
    }
    #sub_item1>article:nth-of-type(3)>ul>li:not(:first-child, :last-child)>img {
        width: 100%;
    }

    #sub_item1>article:nth-of-type(4) {
        padding: 20px 0;
    }
    #sub_item1>article:nth-of-type(4)>ul {
        zoom: 0.5;
    }
    #sub_item1>article:nth-of-type(4)>ul>li {
        width: 100%;
    }
    #sub_item1>article:nth-of-type(4)>ul>li:nth-of-type(3) {
        order: 4;
    }

    #sub_item1>article:nth-of-type(5) {
        padding: 0;
    }
    #sub_item1>article:nth-of-type(5)>div {
        height: calc(100vw / 16 * 9);
    }

    #sub_item1>article:nth-of-type(6) {
        zoom: 0.5;
    }
    #sub_item1>article:nth-of-type(6)>p:nth-of-type(1) {
        padding: 35px 0 10px 0;
    }
    #sub_item1>article:nth-of-type(6)>ul {
        flex-wrap: wrap;
    }
    #sub_item1>article:nth-of-type(6)>ul>li {
        padding: 10px 20px;
    }
    #sub_item1>article:nth-of-type(6)>p:nth-of-type(2) {
        padding: 35px 0;
    }


    #sub_item2 {
        padding: 20px 0 0 0;
    }
    #sub_item2 ul {
        padding: 0 10px 12px 10px;
    }
    #sub_item2 ul:nth-of-type(1)>li {
        margin: 0 2px;
    }
    #sub_item2 ul:nth-of-type(1)>li>label>img {
        width: 100%;
        border-radius: 10px 10px 0 10px;
    }
    #sub_item2 ul:nth-of-type(2) {
        padding-bottom: 0;
    }
    #sub_item2 ul:nth-of-type(2)>li>img {
        width: 100%;
    }
}

/* Tablet */
@media only screen and (max-width: 1200px) and (min-width: 420px) {
    section#sub_menu>article>label:nth-of-type(1),
    section#sub_menu>article>label:nth-of-type(2) {
        border-radius: unset;
        padding-left: unset;
        padding-right: unset;
    }
    #sub_menu1:checked ~ article>label:nth-of-type(1)>p,
    #sub_menu2:checked ~ article>label:nth-of-type(2)>p {
        border-radius: unset;
    }
    section#sub_menu>article>label>p {
        width: unset;
        height: 33px;
        line-height: 33px;
        font-size: 14px;
    }

    #sub_item1>article:nth-of-type(1)>ul>li:nth-of-type(1)>img {
        width: calc(208px * 1.5);
    }
    #sub_item1>article:nth-of-type(1)>ul>li:nth-of-type(2)>img {
        width: calc(292px * 1.5);
    }
    #sub_item1>article:nth-of-type(1)>ul>li:nth-of-type(3)>img {
        width: calc(323px * 1.5);
    }

    #sub_item1>article:nth-of-type(2) {
        padding-bottom: 0;
    }
    #sub_item1>article:nth-of-type(2)>div,
    #sub_item1>article:nth-of-type(2) ul:nth-of-type(1),
    #sub_item1>article:nth-of-type(2) ul:nth-of-type(2) {
        display: none;
    }
    #sub_item1>article:nth-of-type(2) ul:nth-of-type(3) {
        display: flex;
        flex-flow: row wrap;
        align-items: center;
    }
    #sub_item1>article:nth-of-type(2) ul:nth-of-type(3)>li {
        display: flex;
        padding: 10px 0;
        width: 50%;
        align-self: stretch;
        justify-content: flex-start;
    }
    #sub_item1>article:nth-of-type(2) ul:nth-of-type(3)>li:nth-of-type(1) { order: 1; background-color: #F3F3F3;justify-content: flex-end; }
    #sub_item1>article:nth-of-type(2) ul:nth-of-type(3)>li:nth-of-type(2) { order: 2; background-color: #F3F3F3; }
    #sub_item1>article:nth-of-type(2) ul:nth-of-type(3)>li:nth-of-type(4) { order: 3; justify-content: flex-end;}
    #sub_item1>article:nth-of-type(2) ul:nth-of-type(3)>li:nth-of-type(3) { order: 4; }
    #sub_item1>article:nth-of-type(2) ul:nth-of-type(3)>li:nth-of-type(5) { order: 5; background-color: #F3F3F3;justify-content: flex-end; }
    #sub_item1>article:nth-of-type(2) ul:nth-of-type(3)>li:nth-of-type(6) { order: 6; background-color: #F3F3F3; }
    #sub_item1>article:nth-of-type(2) ul:nth-of-type(3)>li>img {
        align-self: center;
        width: 95%;
    }

    #sub_item1>article:nth-of-type(4)>ul,
    #sub_item1>article:nth-of-type(5)>div {
        width: 100%;
    }

    #sub_item1>article:nth-of-type(3) {
        padding: 20px 0 70px 0;
        height: unset;
    }
    #sub_item1>article:nth-of-type(3)>ul {
        border-radius: 10px;
        width: 97%;
        height: unset;
    }
    #sub_item1>article:nth-of-type(3)>ul>li:first-child {
        top: unset;
        bottom: -50px;
        left: calc(50% - 40px - 27px);
        width: 40px;
        height: 40px;
    }
    #sub_item1>article:nth-of-type(3)>ul>li:last-child {
        top: unset;
        bottom: -50px;
        right: calc(50% - 40px - 27px);
        width: 40px;
        height: 40px;
    }
    #sub_item1>article:nth-of-type(3)>ul>li:first-child>img,
    #sub_item1>article:nth-of-type(3)>ul>li:last-child>img {
        width: 100%;
    }
    #sub_item1>article:nth-of-type(3)>ul>li:not(:first-child, :last-child) {
        padding: 5px 0;
    }
    #sub_item1>article:nth-of-type(3)>ul>li:not(:first-child, :last-child)>img {
        width: 100%;
    }

    #sub_item1>article:nth-of-type(4) {
        padding: 20px 0;
    }
    #sub_item1>article:nth-of-type(4)>ul {
        zoom: 0.8;
    }
    #sub_item1>article:nth-of-type(4)>ul>li {
        width: 100%;
    }
    #sub_item1>article:nth-of-type(4)>ul>li:nth-of-type(3) {
        order: 4;
    }

    #sub_item1>article:nth-of-type(5) {
        padding: 0;
    }
    #sub_item1>article:nth-of-type(5)>div {
        height: calc(100vw / 16 * 9);
    }

    #sub_item1>article:nth-of-type(6) {
        zoom: 0.5;
    }
    #sub_item1>article:nth-of-type(6)>p:nth-of-type(1) {
        padding: 35px 0 10px 0;
    }
    #sub_item1>article:nth-of-type(6)>ul {
        flex-wrap: wrap;
    }
    #sub_item1>article:nth-of-type(6)>ul>li {
        padding: 10px 20px;
    }
    #sub_item1>article:nth-of-type(6)>p:nth-of-type(2) {
        padding: 35px 0;
    }


    #sub_item2 {
        padding: 20px 0 0 0;
    }
    #sub_item2 ul {
        padding: 0 10px 12px 10px;
    }
    #sub_item2 ul:nth-of-type(1)>li {
        margin: 0 2px;
    }
    #sub_item2 ul:nth-of-type(1)>li>label>img {
        width: 100%;
        border-radius: 25px 25px 0 25px;
    }
    #sub_item2 ul:nth-of-type(2) {
        padding-bottom: 0;
    }
    #sub_item2 ul:nth-of-type(2)>li>img {
        width: 100%;
    }
}

@media only screen and (max-width: 1200px) {
    #float_button_edu {
        position: fixed;
        display: flex;
        flex-flow: row nowrap;
        justify-content: space-evenly;
        align-items: center;
        bottom: 0;
        margin: calc((54px - 35px) / 2) calc((100% - 308px) / 2);
        padding: 10px;
        width: 308px;
        height: 54px;
        background: url('/images/mobile/main/float.png') no-repeat center;
        background-size: contain;
        border-radius: 50vh;
        box-shadow: 0 3px 5px rgb(0 0 0 / 16%);
    }
    #float_button_edu * {
        height: 100%;
    }

    #banner.board {
        height: 50px;
    }
    #contents_section>p:nth-of-type(2) {
        margin-bottom: 40px;
    }
}