@charset "utf-8";

/************** image **************/

#keireki_image {
    position: relative;
    height: 700px;
    width: 100%;
    margin: 0 auto;
}
.nue {
    z-index: 50;
    box-shadow: 0 0 10px gray;
    text-align: center;
}
.message {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 80;
    padding: 13% 10% 0;
    font-size: 2em;
    line-height: 2em;
    color: #FFF;
}
.message p {
    margin-bottom: 25px;
}

/************** main **************/

#keireki {
    margin-top: 10%;
}
.profile {
    margin: 20px 0 30px 0;
}
.profile img {
    float: left;
    margin-left: 65px;
}
.sentence {
    float: right;
    width: 65%;
}
.sentence h3 {
    font-size: 2.4em;
}
.sentence span {
    font-size: 1.5em;
}
.sentence h4 {
    padding: 10px 0;
    font-size: 1.8em;
}
.sentence h5 {
    padding-top: 20px;
    font-size: 1.8em;
}
.sentence p {
    padding-top: 10px;
    font-size: 1.7em;
    line-height: 1.7em;
}
#gallery {
    margin-top: 60px;
    margin-bottom: 50px;
}
.photo {
    width: 90%;
    margin: 0 auto;
}
.photo img {
    margin-left: 11px;
    margin-top: 10px;
}

/************** responsive **************/

@media screen and (min-width: 1440px) {
    #keireki_image {
        width: 1440px;
        margin: 0 auto;
    }
//  .sentence {
      width: 60%;
      margin-right: 300px;
    }
}

@media screen and (max-width: 1024px) {
    #keireki_image {
        height: 550px;
    }
    .message {
        padding: 14% 10% 0;
        font-size: 1.5em;
    }
    .profile img {
        width: 24.5%;
        height: 24.5%;
    }
 // .sentence {
        margin-right: 25px;
    }
    .sentence h3 {
        font-size: 2.2em;
    }
    .sentence span {
        font-size: 1.3em;
    }
    .sentence h4 {
        font-size: 1.6em;
    }
    .sentence h5 {
        padding-top: 15px;
        font-size: 1.7em;
    }
    .sentence p {
        font-size: 1.6em;
        line-height: 1.6em;
    }
    .photo {
        width: 98%;
    }

@media screen and (max-width: 960px) {
    #keireki {
        margin-top: 100px;
    }
    #keireki_image {
        height: 450px;
    }
    .nue {
        position: absolute;
        top: 100px;
        left: 0;
    }
    .message {
        padding: 19% 5% 0;
        font-size: 1.7em;
        line-height: 1.8em;
    }
    .message p {
        margin-bottom: 15px;
    }
    .profile {
        margin: 10px 0 30px 0;
    }
    .profile img {
        width: 25%;
        height: 25%;
    }
    .sentence {
        width: 55%;
        margin-right: 0;
    }
    .sentence h3 {
        font-size: 2.2em;
    }
    .sentence span {
        font-size: 1.3em;
    }
    .sentence h4 {
        font-size: 1.4em;
    }
    .sentence h5 {
        font-size: 1.5em;
    }
    .sentence p {
        font-size: 1.3em;
        line-height: 1.4em;
    }
    .photo {
        width: 730px;
    }
}

@media screen and (max-width: 560px) {
    #keireki {
        margin-top: 20px;
    }
    #keireki_image {
        height: 310px;
    }
    .nue {
        position: absolute;
        top: 100px;
        left: 0;
    }
    .message {
        display: none;
        padding: 34% 3% 0;
        font-size: 1em;
        line-height: 120%;
    }
    .message p {
        margin-bottom: 8px;
    }
    .profile {
        margin-top: 0;
        text-align: center;
    }
    .profile img {
        width: 45%;
        height: 45%;
        float: none;
        margin-left: 0;
    }
    .sentence {
        float: none;
        width: 100%;
        margin-top: 15px;
    }
    .sentence h3 {
        margin-top: 10px;
    }
    #gallery {
        margin-top: 20px;
    }
    .photo {
        width: 228px;
        text-align: center;
    }
    .photo img {
        margin-left: 0;
    }
}