@media (max-width: 500px) {
    * {

        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    .center {
        display: flex;
        justify-content: center;
    }

    body {

        margin: 0;
        padding: 0;
        background-color: #fff2db;
        height: auto;
        width: auto;
        padding-bottom: 60vw;
    }

    .back img {
        margin-top: -5px;
        width:100vw;
    }

    .margin-top {
        margin-top:-720vw;
    }
    
    .logo img {
        width:60vw;
        margin-top:6vw;
        margin-left:20vw;
    }

    .exam1 img {
        width:84vw;
        margin-top:10vw;
        margin-left:4vw;
    }

    .content img {
        width:100vw;
        margin-top:8vw;
    }

    .exam2 img {
        width:90vw;
        margin-left:5vw;
        margin-top:10vw;
    }

    .search5 img {
        width: 40vw;
        z-index: 3;
        margin-top: 2.5vw;
        margin-left:-2vw;
    }

    .search4 img {
        width: 6vw;
        z-index: 4;
        margin-left: 53vw;
        margin-top: -5vw;
        margin-bottom:15vw;
    }

    .btn-square-slant {
        display: inline-block;
        position: relative;
        padding: 0.5em 1.8em;
        text-decoration: none;
        color: #fff2dc;
    }

    .btn-square-slant:before {
        content: " ";
        position: absolute;
        bottom: -1vw;
        left: -1px;
        width: 0;
        height: 0;
        border-width: 0 1vw 1vw 0px;
        border-style: solid;
        border-color: transparent;
        /* border-bottom-color: #FFF; */
    }

    .btn-square-slant:after {
        content: " ";
        position: absolute;
        top: -1px;
        right: -1vw;
        width: 0;
        height: 0;
        border-width: 0px 1vw 1vw 0px;
        border-style: solid;
        /* border-color: #FFF; */
        border-bottom-color: transparent;
    }

    .btn-square-slant:active:after,
    .btn-square-slant:active:before {
        content: none;
        /*ボタンを押すと線が消える*/
    }

    .botton {
        position: absolute;
        z-index: 5;
        background-color: #ffffff;
        border: 3px solid #ff87b9;
        height: 17vw;
        width: 73vw;
        border-radius: 2.4vw;
        box-shadow: 1vw 1vw 0px #BFB5A4;
        padding-top: 3vw;
    }

    .btn1 {
        margin-left: 14vw;
        margin-top: 10vw;
    }

    .btn-square-slant:active {
        /*ボタンを押したとき*/
        box-shadow: none;
        -webkit-transform: translate(4px, 4px);
        transform: translate(4px, 4px);
    }

    .bottom-tab {
        z-index: 100;
        position: fixed;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 600px;
        background: #ffffff;
        padding: 15px;
        display: flex;
        justify-content: space-around;
        height: 100px;
    }

    .tab-item {
        width: 60px;
        height: 60px;
        background: #14325c;
        border-radius: 50%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 14px;
        font-style: italic;
        box-shadow: 5px 5px 8px rgba(0, 0, 0, 0.2),
            -5px -5px 8px rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
    }

    .tab-item i {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .tab-item:hover {
        transform: scale(1.1);
    }

    .bar img {
        display: flex;
        justify-content: center;
        height: 13vw;
    }

    .barr {
        display: flex;
        justify-content: center;
        gap: 10vw;
    }



}





@media (min-width: 500px) {


    .bg-wrapper {
        background: url('img/back.png');
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        background-attachment: fixed;
        width: auto;
        height: auto;
    }

    .container {
        max-width: 500px;
        margin: 0 auto;
        /* padding: 40px 16px; */
        background: #fff2dc;
        position: relative;
        z-index: 1;
        height: 3720px;
    }

    body {
        margin: 0;
        padding: 0;
        height: auto;
        width: auto;
    }

    .back img {
        margin-top: -5px;
        width: 500px;
    }

    .margin-top {
        margin-top:-3620px;
    }
    
    .logo img {
        width:300px;
        margin-top:30px;
        margin-left:100px
    }

    .exam1 img {
        width:420px;
        margin-top:50px;
        margin-left:20px;
    }

    .content img {
        width:500px;
        margin-top:40px;
    }

    .exam2 img {
        width:450px;
        margin-left:25px;
        margin-top:100px;
    }

    .search5 img {
        width: 190px;
        z-index: 3;
        margin-top: 19px;
    }

    .search4 img {
        width: 30px;
        z-index: 4;
        margin-left: 280px;
        margin-top: -25px;
        margin-bottom:25px;
    }

    .btn-square-slant {
        display: inline-block;
        position: relative;
        padding: 0.5em 1.8em;
        text-decoration: none;
        color: #fff2dc;
    }

    .btn-square-slant:before {
        content: " ";
        position: absolute;
        bottom: -5px;
        left: -1px;
        width: 0;
        height: 0;
        border-width: 0 6px 6px 0px;
        border-style: solid;
        border-color: transparent;
        /* border-bottom-color: #FFF; */
    }

    .btn-square-slant:after {
        content: " ";
        position: absolute;
        top: -1px;
        right: -5px;
        width: 0;
        height: 0;
        border-width: 0px 6px 6px 0px;
        border-style: solid;
        /* border-color: #FFF; */
        border-bottom-color: transparent;
    }

    .btn-square-slant:active:after,
    .btn-square-slant:active:before {
        content: none;
        /*ボタンを押すと線が消える*/
    }

    .botton {
        position: absolute;
        z-index: 5;
        background-color: #ffffff;
        border: 3px solid #ff87b9;
        height: 60px;
        width: 300px;
        border-radius: 12px;
        box-shadow: 4px 4px 0px #BFB5A4;
    }

    .btn1 {
        margin-left: 70px;
        margin-top: 75px;
    }

    .btn-square-slant:active {
        /*ボタンを押したとき*/
        box-shadow: none;
        -webkit-transform: translate(4px, 4px);
        transform: translate(4px, 4px);
    }


    .center img{
        display: flex;
        justify-content: center;
    }

    .bottom-tab {
        z-index: 100;
        position: fixed;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 500px;
        background: #ffffff;
        display: flex;
        justify-content: space-around;
        height: 100px;
        margin-left: 0px;
    }


    .tab-item {
        width: 60px;
        height: 60px;
        background: #14325c;
        border-radius: 50%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 14px;
        font-style: italic;
        box-shadow: 5px 5px 8px rgba(0, 0, 0, 0.2),
            -5px -5px 8px rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
    }

    .tab-item i {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .tab-item:hover {
        transform: scale(1.1);
    }

    .bar img {
        display: flex;
        justify-content: center;
        height: 60px;
        margin-top: 20px;
    }

    .barr {
        display: flex;
        justify-content: center;
        gap: 50px;
    }

}