@charset "UTF-8";

main{
  max-width: 100%;
  position: relative;
}

.back_color{
    padding-bottom: 5em;
    border-radius: 100px 100px 0 0;
    background-color: var(--gray);
}

main::after{
    content: '';
    width: 100%;
    height: 200px;
    background-color: var(--gray);
    position: absolute;
    left: 0;
    z-index: -1;
}

.news_area a.more_bt[target="_blank"]::after,
.facility_area a.more_bt[target="_blank"]::after,
.recruit_tx__area a.more_bt[target="_blank"]::after{
    content: unset;
}

@media screen and (min-width: 0px) {
    main{
        margin-right: 0em;
    }

    .frontpage_news, .facility_area {
        padding-left: 1.5em;
        padding-right: 1.5em;
    }

    .frontpage_news{
        padding-top: 4em;
    }

    .facility_area {
        padding-top: 2.5em;
        padding-bottom: 4em;
    }
}

@media screen and (min-width: 768px) {
    .frontpage_news, .facility_area {
        padding-left: 2em;
        padding-right: 2em;
    }

    .frontpage_news{
        padding-top: 5em;
    }
}

@media screen and (min-width: 1024px) {
    .frontpage_news, .facility_area {
        padding-left: 3em;
        padding-right: 3em;
    }

    .frontpage_news{
        padding-top: 4em;
    }
}

/*====================================
メインビジュアル
=====================================*/
.mainv_area{
    padding: 0;
    max-width: 100%;
    width: 100%;
    height: auto;
    /* height: calc(100vh - 130px); */
}

.mainv{
    width: 100%;
    display: flex;
    align-items: flex-end;
    /* border-radius: 100px; */
    overflow: hidden;
}

.movie video {
    aspect-ratio: 16 /9;
}

@media screen and (min-width: 0px) {
    /* .mainv{
        border-radius: 20px;
    } */

    .mainv_area{
        margin-top: 1em;
        margin-bottom: 0;
    }

    .movie video {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

@media screen and (min-width: 768px) {
    .mainv{
        /* border-radius: 40px; */
    }

    .movie video {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .mainv{
        height: auto;
    }

}

@media screen and (min-width: 1024px) {
    .mainv_area{
        margin-top: 100px;
    }
}

@media screen and (min-width: 1439px) {
    .mainv_area{
        margin-bottom: 100px;
    }

    /* .movie video {
        margin-top: 130px;
    } */

}
@media screen and (min-width: 1440px) {
    
    .mainv_area{
        margin-top: 0px;
        height: 100vh;
    }

    .mainv{
        height: 100%;
    }

    /* .movie video {
        margin-top: 130px;
    } */
}


/*====================================
重要なお知らせ
=====================================*/
.important_news__area{
    padding: 2.5em 2em 2em 2em;
    width: 100%;
    display: flex;
    align-items: center;
    border-radius: 20px;
    /* border: solid 2px var(--red); */
    background-color: #fff3f3;
}

.important_news__area h2{
    margin-bottom: 1.5em;
    width: 100%;
    font-family: "Zen Maru Gothic", sans-serif;
    color: var(--red);
    display: flex;
    align-items: flex-end;
    font-size: 1.5em;
    font-weight: 500;
    gap: 0.25em;
}

.important_news__icon{
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--red);
    -webkit-mask-image: url('../img/icon/important.svg');
    -webkit-mask-size: contain;
    -webkit-mask-repeat:no-repeat;
    mask-image: url('../img/icon/important.svg');
    mask-size: contain;
    mask-repeat: no-repeat;
}

.important_news__area .news_post{
    margin: 0;
    width: 100%;
    border-bottom: unset;
    /* flex: 1; */
}

.important_news__area .news_post .important_c a.news_category{
    border: solid 1px var(--red);
    background-color: var(--white);
}

@media screen and (min-width: 0px) {
    .important_news__area{
        margin-top: 1.5em;
        flex-wrap: wrap;
    }

    .important_news__area .news_post{
        padding-bottom: 1.5em;
        gap: 0;
    }
}

@media screen and (min-width: 768px) {
    .important_news__area{
        /* padding: 1.25em; */
    }
}

@media screen and (min-width: 1024px) {
    .important_news__area{
        margin-top: 4em;
        /* flex-wrap: nowrap; */
        /* gap: 1.5em; */
    }

    .important_news__area .news_post{
        padding-bottom: 0;
        gap: 1.5em;
    }
}

/*====================================
お知らせ
=====================================*/
/*///////////////タフ切り替え///////////////*/
.news_post__area.tab_wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    gap: 0 1em;
}

.tab_label {
    padding: 1.25em 0.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    order: -1;
    position: relative;
    z-index: 1;
    cursor: pointer;
    border-radius: 20px 20px 0 0;
    background-color: #e9ebf2;
    font-weight: 600;
}

.tab_content {
    width: 100%;
    height: 0;
    overflow: hidden;
    border-radius: 50px;
    background-color: var(--white);
    box-shadow: var(--shadow);
    opacity: 0;
}

/* アクティブなタブ */
.tab_switch:checked+.tab_label {
  background-color: var(--blue);
  color: var(--white);
}

.tab_switch:checked+.tab_label+.tab_content {
  height: auto;
  overflow: auto;
  opacity: 1;
  transition: .5s opacity;
}

/* ラジオボタン非表示 */
.tab_switch {
  display: none;
}

/*///////////////タフ切り替え end///////////////*/

.frontpage_news{
    position: relative;
}

.frontpage_news h2.top_tit::after {
    content: 'news';
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--gray2);
    position: absolute;
    bottom: -2em;
    left: 0em;
}

.frontpage_news .bt_area{
    width: 100%;
    display: flex;
    justify-content: center;
}

.frontpage_news a[target="_blank"]::after{
    content:unset;
}

@media screen and (min-width: 0px) {
    .tab_switch:checked+.tab_label+.tab_content {
        margin-top: 1.5em;
        padding: 2em 1.5em;
    }

    .tab_label {
        margin-bottom: 1em;
        width: 100%;
        border-radius: 20px;
    }
    
    .frontpage_news .bt_area{
        margin-top: 1.5em;
    }
}

@media screen and (min-width: 425px) {
    
}

@media screen and (min-width: 768px) {
    .tab_switch:checked+.tab_label+.tab_content {
        padding: 2em;
    }

    .tab_label {
        width: calc(50% - 2em);
    }
}

@media screen and (min-width: 1024px) {
    .tab_switch:checked+.tab_label+.tab_content {
        margin-top: unset;
        padding: 3em;
    }

    .tab_label {
        margin-bottom: unset;
        width: calc(25% - 2em);
        border-radius: 20px 20px 0 0;
    }

    .frontpage_news .bt_area{
        margin-top: 3em;
    }
}
/*====================================
各施設のご紹介
=====================================*/

.facility_area h2.top_tit::after {
    content: 'facility';
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--gray2);
    position: absolute;
    bottom: -2em;
    left: 0em;
}

.facility_medical,
.facility_disabilitywelfare,
.facility_elderlyfacility{
    display: grid;
    justify-items: start;
    border-radius: 60px;
    background-color: var(--white);
    box-shadow: var(--shadow);
}

.facility_medical,
.facility_elderlyfacility{
    margin-bottom: 3em;
}

.facility_tit__area{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
}

.facility_tit__area h3{
    margin-bottom: 120px;
    display: flex;
    flex-wrap: wrap;
    font-size: 1.75em;
    font-weight: 600;
    letter-spacing: 2px;
    position: relative;
}

.facility_tit__area h3::after{
    content: '';
    width: 2px;
    height: 40px;
    background-color: var(--blue);
    position: absolute;
    bottom: -80px;
    left: calc(50% - 1px);
}

.facility_tit__area p{
    font-size: 1.25em;
    font-weight: 500;
    line-height: 1.5;
    font-family: "Zen Maru Gothic", sans-serif;
}

/* 施設情報コンテンツ */
.facility_content{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2em;
}

.facility_img{
    width: 100%;
    height: auto;
    border-radius: 30px;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}
.facility_img img{
    height: 100%;
    object-fit: cover;
}

.facility_text__area{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.facility_text__area h4{
    font-weight: 600;
}

.facility_text{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 1em;
}

.facility_text p{
    width: 100%;
    margin-top: 0.5em;
    line-height: 1.5;
}

.facility_text a.more_bt{
    width: auto;
    font-size: 0.85em;
}

@media screen and (min-width: 0px) {
    .facility_medical, 
    .facility_disabilitywelfare, 
    .facility_elderlyfacility{
        padding: 3.5em 1.5em 2em 1.5em;
        grid-template-rows: auto;
        grid-template-columns: 1fr;
        gap: 2.5em;
    }

    .facility_tit__area p {
        font-size: 1em;
    }
}

@media screen and (min-width: 425px) {

}

@media screen and (min-width: 768px) {
    .facility_medical,
    .facility_disabilitywelfare,
    .facility_elderlyfacility{
        padding: 2em;
        grid-template-rows: 1fr;
        grid-template-columns: 1fr 1fr;
        gap: 3.5em;
    }
}

@media screen and (min-width: 1024px) {
    .facility_medical,
    .facility_disabilitywelfare,
    .facility_elderlyfacility{
        padding: 3em;
    }

    .facility_tit__area p {
        font-size: 1.25em;
    }
}

/*====================================
採用サイト エリア
=====================================*/
.recruit_area{
    padding: 0 0 3em 0;
    position: relative;
}

.recruit_img{
    height: auto;
    overflow: hidden;
    box-shadow: var(--shadow);
    left: 0;
}

.recruit_tx__area{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-radius: 50px 0 0 50px;
    background-color: var(--white);
    box-shadow:  0px 0px 25px 5px rgb(92, 187, 247,25%);
    position: absolute;
    right: 0;
    bottom: 0;
}

.recruit_tx__area::before{
    content: '';
    background-image: url(../img/top/recruit_tx.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    position: absolute;
    opacity: 0.7;
}

.recruit_tx__area h2.top_tit{
    margin-bottom: 0;
}

.recruit_tx__area p {
    font-weight: 500;
    line-height: 2;
    font-family: "Zen Maru Gothic", sans-serif;
}

.recruit_tx__area .more_bt{
    font-family: "Zen Maru Gothic", sans-serif;
}


@media screen and (min-width: 0px) {
    .recruit_img {
        margin: 0 0 16em 0;
        width: 90%;
        border-radius: 0 50px 50px 0;
    }

    .recruit_tx__area{
        padding: 2em;
        width: 93%;
        gap: 1em;
    }

    .recruit_tx__area::before{
        width: 176px;
        height: 110px;
        top: -1.5em;
        right: 0.5em;
    }

    .recruit_tx__area p{
        font-size: 1em;
    }

    .recruit_tx__area .more_bt{
        font-size: 1.25em;
    }
}

@media screen and (min-width: 425px) {
    .recruit_img {
        margin: 0 0 14em 0;
    }
}

@media screen and (min-width: 768px) {
    .recruit_img{
        margin: 0 0 10.5em 0;
    }

    .recruit_tx__area{
        padding: 2em;
        justify-content: space-evenly;
        gap: 1.5em;
    }

    .recruit_tx__area::before{
        width: 400px;
        height: 250px;    
        top: -7em;
        left: -3.5em;
    }

    .recruit_tx__area .more_bt{
        font-size: 1.5em;
    }
}

@media screen and (min-width: 1024px) {
    .recruit_img {
        margin: 0 0 12em 0;
        width: 80%;
    }

    .recruit_tx__area{
        padding: 3em;
        width: 90%;
        gap: 2.5em;
    }

    .recruit_tx__area p {
        font-size: 1.25em;
    }
}

@media screen and (min-width: 1440px) {
    .recruit_img {
        width: 70%;
        margin: 0em;
    }

    .recruit_tx__area{
        padding: 4em;
        width: 40%;
        justify-content: center;
        bottom: 0;
    }
}

@media screen and (min-width: 1441px) {
    .recruit_img{
        aspect-ratio: 16 / 9;
    }
}