img {
  width: 100%;
}
.mainbanner-image {
    height: 11rem;
    background-image: url(../images/smarthospital/ヘッダー.png);
}
.mainbanner__subTitle {
    font-size: 2.8vw;
    top: 42%;
    left: 37.5%;
}
main {
        padding-top: 1em;
}
.mainbanner-wrapper {
    max-height: 11rem;
}
.mainbanner {
    width: 100%;
    height: 11rem;
}
.smarthosp{
margin-top: 2rem;
}
.mid30text {
    line-height: 2rem;
    margin-top: 2rem;
    flex-direction: column;
    padding-left: 2rem;
    padding-right: 2rem;
}
.marginbottom{
    display: flex;
    align-items: flex-start;
    align-content: stretch;
}
.marginbottom p{
    margin-bottom: 1rem;
    line-height: 1rem;
   
}
main{
    max-width: 100%;
}
.navi{width: 70%;display: flex;justify-content: center;}
.grid{
display: grid;
  grid-template-columns: repeat(2,10rem);  /* 3 columns */
  grid-template-rows: repeat(3,3rem); /* 3 rows  */
  grid-gap:1rem 0rem; /* 50 pixels of space added between rows and 30 pixels added between columns  */
}
.grid-item{
    padding:0.5rem;
  }
  section.centered {
    margin-top: 1rem;
}
.blueback {
    margin-top: 2rem;
    width: 100%;
}
.iPhone{
    margin-top: 2rem;
}
.cards{
    display: flex;
 
    justify-content: center;
    flex-direction: column;
}
.text{
     font-family: "Hiragino Sans", "ヒラギノ角ゴシック", sans-serif;
     font-size: 1.3rem;
     line-height: 1.8;
}
.right{
    display: flex;
    justify-content: center;
    width: 100%;
}
.cardimage{
    align-self: center;
    width: 76vw;

}
.left {
    padding-left: 2rem;
 padding-right: 2rem;
    flex: 1;
    width: 100%;
    margin-left: 0rem;
}
.margintop {
    margin-top: 2rem;
}
.flexstart{
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
}
@media screen and (max-width: 768px) {

.cardimage{
margin-top: 2rem;
}
#envir{
    padding-bottom: 3rem;
    padding-top: 2rem;
}
}
@media screen and (min-width: 480px) {
    .mainbanner__subTitle {
        font-size: 2.8vw;
        top: 45%;
        left: 36.5%;
    }
}
@media screen and (min-width: 768px) {
    .toptop{
    padding-top: 0rem;
    }

        .mainbanner-image {
            height: 54rem;
        }
        .mainbanner {
            height: 54rem;
        }
        .mainbanner-wrapper {
            max-height: 54rem;
        }
        .mainbanner__subTitle {
            font-size: 3.5rem;
            top: 49.5%;
            left: 34.5%;
            font-weight: 300;
        }
        .marginbottom p {
            margin-bottom: 1rem;
            line-height: 4rem;
        }

        .grid {
            margin: 3rem 0;
            display: grid;
            grid-template-columns: repeat(3,30rem);
            grid-template-rows: repeat(2,10rem);
            grid-gap: 1rem 0rem;
        }
        .bigtext {
    font-size: 3vw;
    font-weight: 800;
}
.iPhone {
    margin-top: 8rem;
}
section.centered {
    margin-top: 10rem;
}
.cards {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
}
.cardimage {
    width: 58vw;
}
.left{
    flex: 50%
}
.right{
    flex: 65%;
    justify-content: flex-end;
    margin: 0;
}
.card1{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 4rem;

}
.card2 {
    display: flex;
    flex-direction: row-reverse;
    margin-top: 2rem;
	align-items: center;
}
.text {
    font-family: "Hiragino Sans", "ヒラギノ角ゴシック", sans-serif;
    font-size: 1.3rem;
    line-height: 1.8;
    margin: 1rem;
}
.title{
    font-size: 2.2vw;
    margin: 0;
    height: 8rem;
    font-weight: 600;
}
.wifi{
    margin-top: 5rem;
}
.marginbottom {
    width: 94%;
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
}
.FreeAO{
    margin-top: 5rem;
}
.infosystem{
    margin-top: 5rem;
}
.environment{
    margin-top: 5rem;
    margin-bottom: 3rem;
}
	.flextop{
		display: flex;
		align-items: center;
		justify-content: flex-start;
		vertical-align: top;
		flex-direction: column;
	}}
@media screen and (min-width: 1440px) {

.halfscreen{
    width: 70%;
}
.grid {
    margin: 3rem 0;
    display: grid;
    grid-template-columns: repeat(3,30rem);
    grid-template-rows: repeat(2,10rem);
    grid-gap: 1rem 0rem;
}
.mid30text {
    line-height: 2rem;
    margin-top: 2rem;
    flex-direction: column;
    padding-left: 9rem;
    padding-right: 2rem;
}
.marginbottom p {
    margin-bottom: 1rem;
    line-height: 3rem;
}
}
@media screen and (min-width: 1920px) {
    .mainbanner-image {
        height: 64rem;
    }
    .mainbanner {
        height: 64rem;
    }
    .mainbanner-wrapper {
        max-height: 64rem;
    }
.subtitle{
line-height: 3vw;

}

}
@media screen and (max-width: 1024px) {
    .smarthosp {
        margin-top: 11vw !important;
    }
}
@media screen and (max-width: 768px){
    .text {
        font-family: "Hiragino Sans", "ヒラギノ角ゴシック", sans-serif;
        font-size: 1.3rem;
        line-height: 1.8;
    }
    .marginbottom p {
        margin-bottom: 2vw;
        line-height: 1.5rem;
    }
}
@media screen and (max-width: 480px) {

    .smarthosp {
        margin-top: 14vw !important;
    }
    .text {
        font-family: "Hiragino Sans", "ヒラギノ角ゴシック", sans-serif;
        font-size: 1rem;
        line-height: 2rem;
    }
    .marginbottom p {
        margin-bottom: 9vw;
        line-height: 1.8;
        font-size: 1rem;
    }
    .bigtext {
        font-size: 1.5rem;
        display: block;
        margin-top: 1rem;
        font-family: "Hiragino Sans", "ヒラギノ角ゴシック", sans-serif;
        font-weight: 600;
    }
    .navi {
        width: 98%;
        display: flex;
        justify-content: center;
    }
    p.title{
        font-size: 1.2rem;
        margin-bottom: 1rem;
        font-weight: 600;
    }
    .mainbanner__subTitle {
        font-size: 1rem;
        top: 46%;
        left: 30.5%;
    }
}
@media only screen and (min-width: 400px) and (max-width: 480px) {
.grid {
    margin-left: -2rem;
    display: grid;
    grid-template-columns: repeat(2,10rem);
    grid-template-rows: repeat(3,3rem);
    grid-gap: 1rem 2rem;
}}

.left .title{
    height: 3vw;
}
.left .title.margintop{
    height: 3vw;
    /* margin-bottom:-3vw; */
}
.card2 .flexstart{
	align-content: flex-start;
	margin-top: 1vw;
}
@media screen and (width: 1470px), 
	screen and (height: 956px) {
		.floor1 {
    margin-top: 3rem! important;
}
.halfscreen {
    width: 80%;
}
		.mid30text {
    padding-left: 2rem;
    padding-right: 2rem;
}
}