html, body, main, #contents {
    height: 100%;
}

#contents {
    height: calc(95% - 13vh);
    min-height: 500px;
    position: relative;
}

#top-image-s {
    display: none;
}

#content-top {
    position: relative;
    height: 40%;
    width: 70%;
    min-height: 500px;
    border-top: solid 1px #3B9E3E;
    border-right: solid 1px #3B9E3E;
    border-bottom: solid 1px #3B9E3E;
    border-radius: 40px;
    margin: auto;
    margin-top: 5%;
    margin-bottom: 5%;
    overflow: hidden;
    box-sizing: border-box;
}
  
#top-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
  
#top-text {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
}
  
#top-text p{
    font-size: 5.0rem;
    font-family: "ヒラギノ明朝 ProN W6", "HiraMinProN-W6", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
}
  
#top-text .first {
    color: white;
    text-shadow: 1px 1px 2px black;
    letter-spacing: 1.5rem;
}

section {
    min-width: 1200px;
    padding-top: 20px;
    padding-bottom: 30px;
}

.section-title {
    height: 15%;
}

.section-title h2 {
    height: 100%;
    width: 100%;
    padding-bottom: 20px;
    text-align: center;
    font-size: 3.2rem;
    font-weight: bold;
}

#section_1 ,#section_3{
    color: white;
    background-color: #3B9E3E;
}

#profile, #medical_history {
    width: 100%;
    margin: 0 auto;
    font-size: 1.8rem;
    min-width: 1200px;
}

#profile img{
    display: block;
    width: 40%;
    margin: 0 auto;
}

#section_3 .base_image img{
    display: block;
    width: 30%;
    margin: 0 auto;
}

#section_4 .base_image img{
    display: block;
    width: 60%;
    margin: 0 auto;
}

#profile p{
    width: 60%;
    margin: 0 auto;
    font-size: 2rem;
    line-height: 3rem;
    padding-top: 20px;
}

#section_3 ul{
    width: 60%;
    margin: 0 auto;
    font-size: 2rem;
    line-height: 4rem;
    padding-top: 20px;
    text-align: center;
}

#section_4 ul{
    width: 80%;
    margin: 0 auto;
    font-size: 2rem;
    line-height: 4rem;
    padding-top: 20px;
}

#medical_history p{
    width: 60%;
    margin: 0 auto;
    font-size: 2rem;
    line-height: 3rem;
}

#medical_history .medical_history_wrap {
    display: flex;
    padding-top: 40px;
    width: 70%;
    margin: 0 auto;
}

#medical_history .medical_history_wrap .p_title {
    margin: 0;
}

#medical_history .medical_history_wrap .left {
    width: 60%;
    float: left;
}

#medical_history ul{
    padding-top: 10px;
    font-size: 1.8rem;
    line-height: 4rem;
}

#medical_history .image_wrap{
    float: none;
    display: inline-block;
    width: calc(40% - 5px);
    margin-left: 5px;
    font-size: 1.4rem;
    text-align: center;
}

#medical_history .image_wrap div{
    padding-bottom: 15px;
}

#medical_history .image_wrap img{
    display: block;
    width: 70%;
    margin: 0 auto;
}

img.icon_image {
    width: 15px;
    padding-right: 5px;
}


@media screen and (max-width: 1000px){
    #contents {
        height: calc(100vh - 40px - 2.5rem) !important;
    }
    #top-image {
        display: none;
    }
    #top-image-s {
        display: block;
    }
    #top-image-s img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: top;
    }
    html, body, main, #contents {
        height: auto;
    }
    .section-title h2 {
        padding-bottom: 30px;
    }
    section {
        padding-top: 40px;
        min-width: auto;
    }
    #profile, #medical_history {
        min-width: auto;
    }
    #content-top {
        position: unset;
        width: 100%;
        height: 100%;
        min-height: auto;
        border-radius: 0;
        border: none;
        margin: 0;
    }
    #top-image {
        position: unset;
        height: auto;
        object-fit: fill;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    #top-text {
        width: 100%;
        top: 10%;
        text-align: center;
    }
    #profile img, #profile p {
        width: 90%;
    }
    #medical_history p {
        width: 80%;
    }
    #medical_history .medical_history_wrap {
        width: 90%;
        display: block;
    }
    #medical_history .medical_history_wrap .p_title{
        margin: 0 auto;
        text-align: center;
    }
    #medical_history .medical_history_wrap .left{
        width: 100%;
        margin: 0 auto;
        float: none;
    }
    #medical_history .image_wrap {
        display: block;
        padding-top: 20px;
        width: 80%;
        margin: 0 auto;
    }
    #section_3 .base_image img {
        width: 70%;
    }
    #section_3 ul{
        width: 90%;
        line-height: 3rem;
        text-align: left;
    }
    #section_3 ul li {
        padding-bottom: 10px;
    }
    #section_4 .base_image img {
        width: 80%;
    }

    #medical_history ul {
        line-height: 2rem;
    }
    #medical_history ul li {
        padding: 1rem;
    }

    #section_4 ul {
        width: 90%;
        line-height: 2rem;
    }
    #section_4 ul li {
        padding: 1rem;
    }
}