@charset "utf-8";

#about {
    text-align: center;
    padding: 32px 0 0 0;
}

.ttl_section{
    margin-bottom: 60px;
}

.nav_wrap{
    margin-bottom: 80px;
}

.nav_wrap a{
    min-width: 260px;
    display: inline-block;
    background: #ecf4f6;
    border: 3px solid #04447c;
    margin: 0 0 15px 15px;
    padding: 12px 45px;    
}

.nav_wrap a:hover{
    opacity: .7;
}

.nav_wrap a span{
   font-size: 16px;
   color: #04447c;
   background: url(/homecare/assets/images/common/icon_link_down.png) no-repeat right center;
   -webkit-background-size: 22px auto;
        -o-background-size: 22px auto;
           background-size: 22px auto;
   padding-right: 30px;
}

.about_wrap{
    margin-bottom: 75px;
}

.about_wrap .inner{
    width: 100%;
    border: 15px solid #b8d8e0;
}

.mod_box{
    margin-bottom: 40px;
    align-items: center;
    position: relative;
}

.mod_box.reverse{
    -webkit-flex-direction: row-reverse;
        -ms-flex-direction: row-reverse;
            flex-direction: row-reverse;
}

.mod_box .img_box,
.mod_box .ttl_box{
    width: 50%;
}

.mod_box .img_box img{
    margin: 30px 0 0 -48px;
}

.mod_box.reverse .img_box img {
    margin: 30px -48px 0 0;
}

.ttl_box{
    text-align: center;
    margin-top: 60px;
}

#about03 .ttl_box{
    padding: 0;
}

.ttl_about{    
    border: 4px solid #04447c;
    position: absolute;
    top: 0;
    right: 18%;
    transform: translateY(-30%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 170px;
    height: 150px;
}


.ttl_about h3{
    font-size: 22px;
    color: #001f4d;
    text-align: center;
    line-height: 1.3;
    font-weight: 500;
    font-family: RyoGothicPlusN-Medium, sans-serif;
}

.ttl_box h4{  
    font-size: 24px;
    line-height: 1.6;
    margin: 0 auto 10px;
    color: #78b5c9;
    font-weight: 600;
    font-family: RyoGothicPlusN-Medium, sans-serif;
}

.ttl_box h5{
    font-size: 24px;
    line-height: 1.7;
    color: var(--sub4-color);
    font-weight: 500;
    font-family: RyoGothicPlusN-Medium, sans-serif;
}

.ttl_box span{
    font-size: 114px;
    font-weight: 100;
    font-family: futura-pt-light,sans-serif;
    text-transform: uppercase;
    color: #bed7df;
    position: absolute;
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
    transform-origin: 100% 0;
    width: 100%;
    top: 0;
    left: -96px;
    margin-top: 0;
    text-align: right;
    padding-right: 0;
    z-index: 1;
}

.mod_box.reverse .ttl_box span{
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    transform-origin: 0 0;
    top: 0;
    left: 8%;
    margin-top: -60%;
}

.ttl_abouth4{
    font-size: 24px;
    color: #04447c;
    margin-bottom: 15px;
    padding: 0 42px;
    text-align: left;
     z-index: 2;
    position: relative;
}

.mod_box .ttl_abouth4{
    color: #04447c;
    margin-top: 60px;
    padding: 0;
    font-weight: 500;
}

.txt_about{
    font-size: 16px;
    color: var(--sub4-color);
    font-weight: 400;
    line-height: 2;
    text-align: left;
    margin-bottom: 30px;
    padding: 0 42px;
    z-index: 2;
    position: relative;
}

.mod_box .txt_about{
    padding: 0 20px 0 0;
}

/*For TB*/
@media only screen and (min-width: 768px) and (max-width: 1199px){
    #about {
        padding: 9.5vw 0 0 0;
    }

    .ttl_section{
        margin-bottom: 4.688vw;
    }

    .nav_wrap a{
        min-width: 20.313vw;
        display: inline-block;
        background: #ecf4f6;
        border: 0.234vw solid #04447c;
        margin: 0 0 1.172vw 1.172vw;
        padding: 0.938vw 3.516vw;
    }

    .nav_wrap a span{
       font-size: 1.25vw;
       color: #04447c;
       background: url(/homecare/assets/images/common/icon_link_down.png) no-repeat right center;
       -webkit-background-size: .22rem auto;
            -o-background-size: 1.719vw auto;
               background-size: 1.719vw auto;
       padding-right: 2.344vw;
    }

    .about_wrap{
        margin-bottom: 5.859vw;
    }

    .about_wrap .inner{
        width: 100%;
        border: 1.172vw solid #b8d8e0;
    }

    .mod_box{
        margin-bottom: 3.13vw;
    }

    .mod_box .img_box img{
        margin: 2.34vw 0 0 -3.75vw;
    }

    .mod_box.reverse .img_box img {
        margin: 2.34vw -3.75vw 0 0;
    }
    

    .ttl_about{  
        border: 0.31vw solid #04447c;
        top: 0;
        transform: translateY(-30%); 
        width: 14vw;
        height: 12vw;
    }

    .ttl_about h3{
        font-size: 1.75vw;
    }

    .ttl_box h4{  
        font-size: 1.88vw;
    }

    .mod_box .ttl_abouth4 {
        margin-top: 8.5vw;
    }

    .ttl_box h5{
        font-size: 1.88vw;
    }

    .ttl_box span{
        font-size: 8.91vw;
        top: 0;
        left: -7.45vw;
    }

    .mod_box.reverse .ttl_box span{
        -webkit-transform: rotate(90deg);
        -moz-transform: rotate(90deg);
        -ms-transform: rotate(90deg);
        -o-transform: rotate(90deg);
        transform-origin: 0 0;
        top: 0;
    }

    .ttl_abouth4{
        font-size: 1.88vw;
        margin-bottom: 1.17vw;
        padding: 0 3.28vw;
    }

    .txt_about{
        font-size: 1.25vw;
        margin-bottom: 2.34vw;
        padding: 0 3.28vw;
    }
}

/*For SP*/
@media only screen and (max-width: 767px) {
    #about {
        text-align: center;
        padding: .32rem 0 0 0;
    }

    .ttl_section{
        margin-bottom: .60rem;
    }

    .nav_wrap{
        margin-bottom:  .6rem;
        padding: 0 .4rem;
    }

    .nav_wrap a{
        min-width: auto;
        display: inline-block;
        background: #ecf4f6;
        border: 0.03rem solid #04447c;
        margin: 0 .2rem .2rem 0;
        padding: 0.08rem .3rem;
    }

    .nav_wrap a:hover{
        opacity: .7;
    }

    .nav_wrap a span{
       font-size: .22rem;
       color: #04447c;
       background: url(../img/icon_link_down.png) no-repeat right center;
       -webkit-background-size: .22rem auto;
            -o-background-size: .22rem auto;
               background-size: .22rem auto;
       padding-right: .3rem;
    }

    .about_wrap{
        margin-bottom: .75rem;
    }

    .about_wrap .inner{
        width: 94%;
        border: .15rem solid #b8d8e0;
        padding: 0 .42rem;
    }

    .mod_box{
        margin-bottom: .40rem;
        align-items: center;
        position: relative;
        flex-direction: column-reverse;
    }

    .mod_box.reverse{
        flex-direction: column-reverse;
        margin-top: .8rem;
    }

    .mod_box .img_box,
    .mod_box .ttl_box{
        width: 100%;
        margin-top: .4rem;
    }

    .mod_box .img_box img{
        margin: .3rem auto;
    }

    .mod_box.reverse .img_box img {
        margin: .3rem auto;
    }

    .mod_box .ttl_box{
        margin-top: 0;
        padding: 0;
        text-align: center;
    }

    .ttl_about{    
        padding: 0;
        border: .04rem solid #04447c;
        position: relative;
        top: -.5rem;
        transform: translateY(0);
        width: 2.8rem;
        height: 2.5rem;
        right: -25%;  
    }

    .ttl_about h3{
        font-size: .32rem;
        color: #001f4d;
        text-align: center;
        line-height: 1.3;
    }

    .ttl_box h4{  
        font-size: .28rem;
    }

    .mod_box .ttl_abouth4 {
        margin-top: .5rem;
    }

    .ttl_box h5{
        font-size: .28rem;
    }

    .ttl_box span{
        font-size: 1.14rem;
        -webkit-transform: rotate(-90deg);
        -moz-transform: rotate(-90deg);
        -ms-transform: rotate(-90deg);
        -o-transform: rotate(-90deg);
        transform-origin: 100% 0;
        width: 100%;
        top: 0;
        left: -.5rem;
        margin-top: 0;
        text-align: right;
        padding-right: 0;
    }

    .mod_box.reverse .ttl_box span{
        -webkit-transform: rotate(90deg);
        -moz-transform: rotate(90deg);
        -ms-transform: rotate(90deg);
        -o-transform: rotate(90deg);
        transform-origin: 0 0;
        top: 0;
        left: 10%;
        margin-top: -18%;
    }

    .ttl_abouth4{
        font-size: .28rem;
        color: #04447c;
        margin-bottom: .15rem;
        padding: 0 .2rem;
        text-align: left;
    }

    .txt_about{
        font-size: .22rem;
        color: #333333;
        font-weight: 400;
        line-height: 2;
        text-align: left;
        margin-bottom: .3rem;
        padding: 0 .2rem;
    }
}