main {
    font-family: 'Noto Sans JP', sans-serif;
    padding-top: 11rem;
    background-image: url('../img/commute/background.svg');
    background-repeat: no-repeat;
    background-size: 66rem;
    background-position: top -18.5rem right -30.7rem;
    background-attachment: fixed;
    
}

/* ヒーローエリア*/

.hero_area {
    margin-bottom: 7rem;
}
.page_title {
    color: #2B4A7F;
    font-size: 5rem;
    font-weight: 700;
    text-align: center;
    margin-top: 10.2rem;
    margin-bottom: 11.3rem;
}

.h2_heading {
    color: #2B4A7F;
    font-size: 4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3.7rem;
    letter-spacing: 0.08rem;
}
.h2_heading_title {
    color: #0282C1;
    font-size: 4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3.7rem;
    letter-spacing: 0.08rem;
}

.hero_text {
    color: #333333;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4.2rem;
    line-height: 1.8;
    letter-spacing: 0.05rem;
}
.text_p {
    color: #333333;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4.2rem;
    line-height: 1.8;
    letter-spacing: 0.05rem;
}

/* スライドバー */
.slider_container {
    display: flex;
    flex-wrap: nowrap;
    margin-left: 3rem;
    margin-top: 5.5rem;
    overflow: hidden;
}
.slider {
    display: flex;
    flex-wrap: nowrap;
    animation:  loopAnimation 30s linear infinite;
}
.slider_img {
    width: 35rem;
    height: 50rem;
    margin-right: 3.7rem;
}

.slider_img img {
    width: 35rem;
    height: 50rem;
    border-radius: 2rem;
}

@keyframes loopAnimation {
    0% {
        transform:  translate(0%);
    }

    50% {
        transform: translate(-50%);
    }
    
}

.fadein {
    opacity: 0;
    transform : translate(0, 50px);
    transition : all 1500ms;
}

.fadein.scrollin{
    opacity: 1;
    transform: translate(0, 0);
}

/* 事業所一覧 */

.office_list {
    background-color: #2B4A7F;
    border: 0.1rem solid #707070;
    padding: 9rem 3rem 10rem;
}

.office_list .h2_heading {
    margin-bottom: 7rem;
}
.office_list .h2_heading_title {
    margin-bottom: 7rem;
}

.office_list .wrapper{
    background-color: #fff;
    border: 0.1rem solid #707070;
    padding: 4.7rem 7.1rem 4.8rem 7.4rem;
    border-radius: 1rem;
}

.offce_heading {
    color: #333333;
    font-size: 2.5rem;
    font-weight: 700;
    margin-left: 2.5rem;
    margin-bottom: 1.4rem;
    letter-spacing: 0.05rem;
    position:relative;
}
.offce_heading_jinen {
    color: #09112C;
    font-size: 2.5rem;
    font-weight: 700;
    margin-left: 2.5rem;
    margin-bottom: 1.4rem;
    letter-spacing: 0.05rem;
    position:relative;
}

.offce_heading::before {
    display: inline-block;
    height: 3.6rem;
    width: 1rem;
    background-color: #2B4A7F;
    content: '';
    position: absolute;
    top: 0rem;
    left: -2.6rem;
}

.offce_heading_jinen::before {
    display: inline-block;
    height: 3.6rem;
    width: 1rem;
    background-color: #2B4A7F;
    content: '';
    position: absolute;
    top: 0rem;
    left: -2.6rem;
}

.clearfix::after {
    content:'';
    display: block; 
    clear:both;
}

.float_box {
    margin-bottom: 7rem;
    position: relative;
}

.float_box:last-child {
    margin-bottom: 0;
}

.img_box {
    float: left;
    margin-bottom: 5.3rem;
}

.img_box img {
    width: 47.3rem;
    height: 34rem;
}

.text_box {
    width: 57.8rem;
    float: right;
}

.office_text p {
    color: #333333;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 2.25;
    letter-spacing: 0.032rem;
    margin-bottom: 1rem;
}
.hero_text_p{
    margin-left: 2.4rem;
}

.btn_box {
    display: flex;
    justify-content: flex-end;
    position: absolute;
    right: 0;
    bottom: 0;
}

.btn a {
    display: block;
    font-size: 1.8rem;
    font-weight: 400;
    border-radius: 0.9rem;
    box-sizing: border-box;
}

.btn.border a {
    padding: 1rem 2rem;
    color:  #2B4A7F;
    border: 0.2rem solid #2B4A7F;
}
.btn.border_jizen a {
    padding: 1rem 1.5rem;
    color:  #8CD43B;
    border: 0.2rem solid #8CD43B;
}

.btn.backcolor a {
    padding: 1.2rem 3rem 1.2rem 3.2rem;
    color: #fff;
    background-color: #2B4A7F;
    margin-left: 1.7rem;
}


/* 施設ごとの部分カラー */

.yamakage .offce_heading::before {
    background-color: #4DA37A;
}

.yamakage .btn.border a {
    color:  #4DA37A;
    border-color: #4DA37A;
}

.yamakage .btn.backcolor a {
    background-color: #4DA37A;
}


.fugen .offce_heading::before {
    background-color: #74BBD1;
}

.fugen .btn.border a {
    color:  #74BBD1;
    border-color: #74BBD1;
}

.fugen .btn.backcolor a {
    background-color: #74BBD1;
}

.tasukaru .offce_heading::before {
    background-color: #E8A26C;
}

.tasukaru .btn.border a {
    color:  #E8A26C;
    border-color: #E8A26C;
}

.tasukaru .btn.backcolor a {
    background-color: #E8A26C;
}



.raporu .offce_heading::before {
    background-color: #0E4C8B;
}

.raporu .btn.border a {
    color:  #0E4C8B;
    border-color: #0E4C8B;
}

.raporu .btn.backcolor a {
    background-color: #0E4C8B;
}

.kobayasi .offce_heading::before {
    background-color: #D43B6E;
}

.kobayasi .btn.border a {
    color:  #D43B6E;
    border-color: #D43B6E;
}

.kobayasi .btn.backcolor a {
    background-color: #D43B6E;
}

.jinen .offce_heading_jinen::before {
    background-color: #8CD43B;
}

.jinen .btn.border a {
    color:  #8CD43B;
    border-color: #8CD43B;
}

.jinen .btn.backcolor a {
    background-color: #8CD43B;
}
a.tel_jinen{
    padding: 1rem 1rem 1rem 2rem;
}
.sp-only {
  display: none;
}

@media screen and (max-width: 699.98px) {
main{
    padding-top: 7rem;
    background-image: none;
}
.page_title{
    font-size: 3.2rem;
    margin: 7rem;
}
.h2_heading_title{
    font-size: 2rem;
    color: #0282C1;
    margin-bottom: 1.7rem;
}
.hero_text{
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 2;
    letter-spacing: 0.01rem;
    color: #333333;
}
.text_p{
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 2;
    letter-spacing: 0.01rem;
    color: #333333;
}
.slider_container{
    margin-top: 3.7rem;
    height: 28.2rem;
}
.slider_img{
    width: 19.8rem;
    height: 28.2rem;
    margin-right: 2rem;
}
.slider_img img{
    width: 19.8rem;
    height: 28.2rem;
    margin-right: 2rem;
}
.hero_area{
    margin-bottom: 5rem;
}
.slider_container{
    margin-left: 0;
}
/* 事業所一覧 */
.office_list{
    padding: 6.8rem 1rem 8rem;
}
.h2_heading{
    font-size: 3.2rem;
    color: #2B4A7F;
}
.img_box img{
    width: 32.5rem;
    height: 23.3rem;
}
.fadein.scrollin{
    display: flex;
    flex-direction: column;
}
.office_list .wrapper {
    padding: 4rem 1.5rem 4rem;
}
.offce_heading::before{
    width: 1rem;
    height: 2.9rem;
}
.offce_heading_jinen::before{
    width: 1rem;
    height: 5.9rem;
}
.offce_heading{
    font-size: 2rem;
}
.offce_heading_jinen{
    font-size: 2rem;
}
.office_text p{
    font-size: 1.4rem;
    line-height: 2.15;
}
.btn a{
   font-size: 1.8rem;
}
.btn.border a {
    padding: 1rem 2rem;
    margin-bottom: 1.4rem;
}
.btn_box {
flex-direction: column;
}
.text_box{
    width: 33rem;
}
.btn_box {
    position: static; /* または relative */
    width: fit-content;
  }
.btn.backcolor a{
    margin-left: 0rem;
}
.btn.backcolor a{
    width: fit-content;
}
.float_box{
    margin-bottom: 5rem;
}
.img_box {
    margin-bottom: 2rem;
}
.offce_heading {
    margin-bottom: 1.3rem;
}
.office_text p{
    margin-bottom: 1.5rem;
}
.office_list .h2_heading{
    margin-bottom: 5.1rem;
}
.btn.border_jizen a{
    margin-bottom: 1.5rem;
    padding: 1.1rem 1.5rem;;
}
.sp-only {
  display: block;
}
}
