/* Theme Name: Carefull Design
Theme URI: https://carefull-design.com/
Description: 福祉・介護・医療のデザイン、ケアフルデザインのウェブサイトです。
Version: 1.0
Author: Shu Hamaji
*/

@charset "utf-8";

.first_view_wrapper {
    position: relative;
    margin-bottom: 6.25rem;
}

.first_view_wrapper h1 {
    position: absolute;
    bottom: 6.25rem;
    z-index: 11;
}

.first_view_container {
    width: 100%;
    /* overflow: hidden; */
    object-position: center;
    position: relative;
}

.first_view_container::after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .12);
    z-index: 10;
    top: 0;
    overflow: hidden;
}

#slider {
    width: 100%;
    height: 95vh;
    object-fit: cover;
}

#first_view h1 {
    color: #fff;
}


/* Features */

#features {
    width: 53.4%;
}

@media screen and (max-width: 768px) {
    #features {
        width: 100%;
    }
}

#features img {
    width: 100%;
}

.img_add {
    font-size: 0.88rem;
    color: #888;
}

.features_text_box {
    text-align: justify;
}

.top_right {
    width: 37.32%;
    margin-top: 3.13rem;
}

@media screen and (max-width: 768px) {
    .top_right {
        width: 100%;
        margin-top: 6.25rem;
    }
}

/* News */

#news {
    width: 100%;
    background-color: #fff;
    padding: 3.13rem 1.25rem;
    margin-bottom: 6.25rem;
    box-sizing: border-box;
}

.news_content {
    margin-bottom: 1.88rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #C1C1C1;
}

a .news_category_date {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

a .category_tag {
    margin-right: 1.25rem;
    padding: 0 0.38rem;
    background-color: #8EB0B5;
    font-size: 0.88rem;
    color: #fff;
    border-radius: 0.31rem;
    line-height: 1.26rem;
}

.news_content a:hover time,
.news_content a:hover .main-text {
    color: #8EB0B5;
    transition: .5s;
}

.link_arrow {
    font-size: 0.88rem;
    padding: 0.31rem;
}

.link_arrow:hover {
    color: #8EB0B5;
    transition: .5s;
}

/* Works */

#works {
    width: 100%;
    background-color: #fff;
    padding: 3.13rem 1.25rem;
    box-sizing: border-box;
}

#works img {
    width: 100%;
    margin-bottom: 3.13rem;
}

.works_content {
    margin-bottom: 5rem;
}

.works_content .sub-text {
    font-size: 0.88rem;
    color: #888;
    line-height: 2;
}

#works h3 {
    margin-left: 1.2rem;
    position: relative;
    display: flex;
    align-items: center;
    z-index: 1;
}

#works h3::before {
    position: absolute;
    content: "";
    display: block;
    width: 3.13rem;
    height: 3.13rem;
    border-radius: 50%;
    background-color: #8EB0B5;
    opacity: .5;
    margin-left: -1.2rem;
    z-index: -1;
}

.works_textbox {
    margin-bottom: 3.13rem;
    text-align: justify;
}

#works .btn_01 {
    margin-left: auto;
    margin-right: auto;
}



/* Template */

#template {
    background-color: #fff;
}

#template .main_wrapper {
    padding-top: 6.25rem;
    padding-bottom: 6.25rem;
}

.template_flex {
    display: flex;
    align-items: start;
    justify-content: space-between;
}

@media screen and (max-width:768px) {
    .template_flex {
        display: block;
    }
}

.template_content {
    width: 28%;
    margin-bottom: 3.13rem;
}

@media screen and (max-width:1080px) {
    .template_content {
        width: 40%;
    }
}

@media screen and (max-width:768px) {
    .template_content {
        width: 100%;
    }
}

.template_content a {
    opacity: 1;
    transition: .5s;
}

.template_content:hover a {
    opacity: .7;
    transition: .5s;
}

.template_category_title {
    margin-bottom: 1.25rem;
}

.template_category {
    margin-top: 0.62rem;
}

.template_category span {
    display: inline-block;
    padding: 0 0.38rem;
    background-color: #8EB0B5;
    font-size: 0.88rem;
    color: #fff;
    border-radius: 0.31rem;
    line-height: 1.26rem;
    margin-right: 1.25rem;
}

.template_title {
    font-size: 1.16rem;
}

.template_text_box {
    text-align: justify;
}

.template_tags_list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.template_tags_list .tag_item {
    margin-right: 0.62rem;
    color: #888;
    font-size: 0.88rem;
    line-height: 1.7em;
}

/* Contact */

#contact {
    width: 66.5%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 6.25rem;
    font-size: 1.16rem;
}

@media screen and (max-width: 768px) {
    #contact {
        width: auto;
        margin-left: 3rem;
        margin-right: 3rem;
        margin-bottom: 6.25rem;
    }
}

@media screen and (max-width: 412px) {
    #contact {
        margin-left: 1.25rem;
        margin-right: 1.25rem;
        margin-bottom: 6.25rem;
    }
}

.contact_text_content {
    margin-bottom: 0.75rem;
}

.contact_text_box a {
    text-decoration: underline;
}

.contact_text_box a:hover {
    text-decoration: none;
}

.contact_title {
    line-height: 1.7;
}

@media screen and (max-width:768px) {
    .contact_title {
        line-height: 1;
        margin-bottom: 1.25rem;
        display: block;
    }
}

.contact_title span {
    font-size: 0.88rem;
    font-weight: normal;
}

@media screen and (max-width: 768px) {
    .contact_title span {
        font-size: 1.16rem;
    }
}

.contact_text_box {
    margin-bottom: 3.13rem;
}

@media screen and (max-width:768px) {
    .contact_input_box {
        width: 100%;
    }
}

.required {
    position: relative;
}

.required::after {
    position: absolute;
    content: "必須";
    color: #D1191C;
    display: block;
    font-size: 0.88rem;
}

@media screen and (max-width:768px) {
    .required::after {
        display: inline;
        margin-left: 0.3rem;
    }
}

@media screen and (max-width:768px) {
    .form_br {
        display: none;
    }
}

.scroll_box {
    width: 100%;
    height: 15rem;
    background-color: #fff;
    overflow-y: scroll; 
    box-sizing: border-box;
    padding: 1.88rem;
}

.contact_add {
    font-size: 0.88rem;
    margin-bottom: 0.31rem;
    text-align: center;
}

.contact_btn {
    width: 15.6rem;
    height: 5rem;
    background-color: #8EB0B5;
    border: 1px solid #8EB0B5;
    color: #fff;
    display: flex;
    border-radius: 1.25rem;
    margin-left: auto;
    margin-right: auto;
}

.contact_btn:hover {
    background-color: #fff;
    color: #8EB0B5;
    transition: .5s;
}