@charset "utf-8";

* {
    box-sizing: border-box;
}

body {
    /*background: #555555;*/
    font-family: Lato, 'Hiragino Kaku Gothic Pro', sans-serif;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.05em;
    color: antiquewhite;
    background-image: url(../images/TrainingGym2a.jpg);
    background-repeat: no-repeat;
    background-position: center top;
    background-attachment: fixed;
    background-size: 100% auto;
}

h2 {
    font-size: 50px;
    font-weight: 100;
    color: antiquewhite;
}

h3 {
    font-size: 30px;
    font-weight: 100;
    color: antiquewhite;
}

h4 {
    font-size: 20px;
    font-weight: 100;
    color: antiquewhite;
}

h5,
h6 {
    font-size: 16px;
    font-weight: 50;
}

a {
    text-decoration: none;
    color: #4ac0b9;
}

a:hover {
    text-decoration: underline;
}

a:visited {
    color: #4ac0b9;
}

img {
    width: 100%;
}

/*-----ヘッダー-----------------------------*/
header {
    width: 1080px;
    height: 100px;
    margin: 0 auto;
    margin-bottom: 150px;
}

.logo {
    float: left;
    margin-top: 50px;
    width: 30%;
    height: auto;
}

.global-nav {
    float: right;
    margin-top: 100px;
}

.global-nav li {
    float: left;
    margin: 0 20px;
    font-size: 30px;
    list-style: none;
}

.global-nav li a {
    color: blanchedalmond;
    background-color: rgba(40, 34, 30, 0.5);

}

.global-nav li a:hover {
    border-bottom: 2px solid #ffffff;
    padding-bottom: 3px;
    text-decoration: none;
    font-family: 'Alegreya Sans', sans-serif;
}

/*-------footer--------------------------------*/
footer {
    clear: both;
    margin: 0px auto;
    text-align: center;
    background-color: transparent;
}

footer small {
    font-size: 20px;
}

/*-------全体--------*/
.whole {
    width: 1080px;
    margin: 0 auto;
    background-color: rgba(40, 34, 30, 0.8) !important;
    display: flex;
}

.main {
    width: 800px;
    margin: 0 10px;
    float: left;
}

/* side bar  --------------------*/
.sidebar {
    text-align: center;
    width: 200px;
    margin: 0 10px 0 10px;
    float: right;
    font-family: 'Alegreya Sans', sans-serif;
    color: white;
    font-size: 16px;
}

.sidead {
    margin-bottom: 100px;
}

.ul {
    text-align: center;
    margin: auto;
}


/*!-- index page------------------------- */
.sp {
    display: none;
}

.pc {
    display: block;
}

/*!-- About page------------------------- */
.icon:before {
    content: "";
    padding-right: 10px;
    border-left: 7px solid #9cb4a4;
}

.motivation,
.profile {
    margin-top: 50px;
}

section {
    margin-bottom: 35px;
}

/* Contact--------------------------------- */
#contact .form {
    padding: 30px 50px;
}

#contact .form dl dt {
    width: 165px;
    padding: 10px 0;
    float: left;
    clear: both;
}

#contact .form dl dd {
    padding: 10px 0;
}

#contact .form .name {
    width: 240px;
    height: 30px;
}

#contact .form .email {
    width: 300px;
    height: 30px;
}

#contact .form .tel {
    width: 240px;
    height: 30px;
}

#contact .form .message {
    width: 360px;
    height: 150px;
}

#contact .form button {
    background-color: #009cd3;
    color: #ffffff;
    font-size: 20px;
    font-family: 'Bitter', serif;
    width: 80px;
    height: 60px;
    display: block;
    text-align: center;

    border-radius: 5px;
    border: 3px solid #009cd3;
    margin-left: 165px;
}

#contact .form button:hover {
    background-color: #ffffff;
    color: #009cd3;
    cursor: pointer;
}

#contact .form .required:after {
    content: "*";
    color: #ff0000;
}

#content .form .attention {
    margin: 20px 0 0 165px;
}


.s-conts {
    margin: 4% auto;
}

.layout-block {
    display: flex;
    justify-content: center;
    gap: 0 2rem;
    flex-direction: row;
    align-items: center;
    margin: auto;
}

.box-conts {
    display: flex;
    flex-direction: row;
    padding: 0 0 3rem;
    /* background-color: rgba(40, 34, 30, 0.5); */
    align-items: center;
    margin: auto;
    width: 500px;
}

.box-txt {
    padding: 1rem 0;
    margin: auto;
    text-align: center;
}

.box-img {
    width: 300px;
    height: auto;
    margin: auto;
}


/*--------------------------------------------------*/
/*--------------------------------------------------*/
/*--------------------------------------------------*/
@media screen and (max-width:600px) {

    body {
        font-size: 3.5vw;
        background-image: url(../images/TrainingGym2a.jpg);
        background-repeat: repeat;
        background-position: center top;
        background-attachment: fixed;
        background-size: contain;
        width: auto;
    }

    #wrap {
        margin-top: 20px;
        padding: 35px 0 0;
    }

    h1 {
        font-size: 7.2vw;
    }

    h2, h3 {
        font-size: 6vw;
    }

    h4, h5 {
        font-size: 5vw;
    }

    /*-------------header-----------------------*/
    header {
        width: auto;
        margin: 0 5%;
        height: auto;
        /**/
    }

    .logo {
        float: none;
        margin-top: 30px;
        margin: auto;
        width: 80%;
    }

    .global-nav {
        float: none;
        margin-top: 30px;
        margin: auto
    }

    .global-nav li {
        font-size: 5vw;
        display: inline;
        float: none;
        margin: 0 8px;
    }

    /*------------- whole -----------------------*/
    .whole {
        margin: auto;
        margin-bottom: 30px;

        display: block;
        width: auto;
    }

    .main {
        float: none;
        text-align: center;
        width: auto;
    }

    .main-center {
        float: none;
        width: auto;
    }

    img {
        max-width: 100%;
    }

    /* side bar  --------------------*/
    .sidebar {
        margin: 0 10px;
        float: none;
        text-align: center;
        width: auto;
    }

    .sidebar-inside {
        margin: auto;
        width: 80%;
    }

    .ad-img {
        width: 75%;
        text-align: center;
        margin: auto;
    }

    /*------------- footer -----------------------*/


    /* ----------------- index --------------*/
    .s-conts {
        margin: auto;
    }

    .layout-block {
        display: flex;
        justify-content: center;
        gap: 0 2rem;
        flex-direction: column;
        align-items: center;
        margin: auto;
    }

    .box-conts {
        display: flex;
        flex-direction: row !important;
        padding: 0 0 3rem;
        background-color: rgba(40, 34, 30, 0.5);
        /*opacity: 0.5;*/
        align-items: center;
        margin: auto;
        width: auto;
    }

    .pc {
        display: none;
    }

    .box-img {
        width: 300px;
        height: auto;
        margin: auto;
    }

    /* ----------------- about --------------*/
    .background_about {
        margin-top: 50px;
        margin-left: 10px;
        margin-right: 10px;
    }

    .main-center {
        text-align: left;
    }

    /* ----------------- contact --------------*/

    #contact .form .message {
        width: 120%;
    }

    #contact .form .email {
        width: 100%;
    }

    img {
        max-width: 100%;
    }

}