@charset "UTF-8";
/*
Theme Name: sogame
Description: 株式会社そがめ様のテンプレートです
Version: 1.0
Author: T.Yamada
*/


/* 全体 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;

}

img {
    width: 100%;
    vertical-align: bottom;
    -webkit-user-drag: none;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

li {
    list-style: none;
}

body {
    font-family: "Noto Sans JP";

}

:root {
    --main: #66BE97;
    --sub: #004EA2;
    --bgcolor: #EFF5F2;
}

p {
    color: #222;
    font-family: "Noto Sans JP";
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.75rem;
}

/* safari対策 */
dd a {
    color: #fff;

}

.phone_area02 a {
    color: #fff;
}

.address a {
    color: #222;
}





.sec_title {
    color: #222;
    font-family: "Noto Sans JP";
    font-size: 2rem;
    font-style: normal;
    font-weight: 400;
    line-height: 2.625rem;
}

.sub_title {
    color: #333;
    font-family: "Noto Serif JP";
    font-size: 2rem;
    font-style: normal;
    font-weight: 400;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.br_sp {
    display: none;
}


.btn a {
    color: var(--sub);
    transition: background 800ms;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--sub);
    border-radius: 0.5rem;
}

.btn a::after {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url(img/right_icon_b.svg) no-repeat;
    background-size: contain;
    margin-left: 1rem;
    position: relative;
    top: 5px;
}

.btn a:hover {
    background-color: var(--sub);
    color: #fff;
}

.btn a:hover::after {
    background: url(img/right_icon_w.svg) no-repeat;
}

.under_line {
    box-shadow: 0px -6px 5px -5px #ff0 inset, 0px 8px 4px -8px #FF0;
}

.m_color {
    color: var(--main);
}

.s_color {
    color: var(--sub);
}

/* ＝＝ヘッダー＝＝ */

.h_logo {
    width: 21rem;
}

.h_tel {
    width: 14rem;
}


.h_main_frame {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0 1rem 1rem;
}

.h_right_top {
    display: flex;
    align-items: center;
    gap: 2rem;

}

.reception_area {
    display: inline-flex;
    border-radius: 0.25rem;
    background: #F5F5F5;
    padding: 0.25rem 0.75rem;
}

.reception_area span {
    color: #222;
    font-family: "Noto Sans JP";
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
}


.h_right_area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}


.g-nav {
    display: flex;
}

.g-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 2rem;
    transition: background 1000ms;
    position: relative;
}

.g-nav strong {
    color: var(--main);
    text-align: center;
    font-family: "Noto Sans JP";
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
}

.g-nav span {
    color: #333;
    font-family: "Noto Sans JP";
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
}



.g-nav a {
    transition: background 1000ms;
    position: relative;

}

.g-nav a::after {
    position: absolute;
    bottom: -3px;
    left: 0;
    content: '';
    width: 100%;
    height: 1px;
    background: var(--main);
    transform: scale(0, 1);
    transform-origin: left top;
    transition: transform 500ms;
}

.g-nav a:hover::after {
    transform: scale(1, 1);
}

.g-nav li:last-child {
    display: none;
}


/* ＝＝メインビジュアル＝＝ */


.mainvisual_sp {
    display: none;
}

.mainvisual_pc {
    position: relative;
}

.catch_img {
    position: absolute;
    z-index: 2;
}

.slider_01 {
    width: 73%;
    margin-left: auto;
    border-radius: 5rem 0rem 0rem 5rem;
}

.mv_mail_area {
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 3;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

.mv_mail_area a {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--sub);
    padding: 1rem 0.5rem;
    border-radius: 0.5rem 0 0 0.5rem;
    transition: 700ms;
}

.mv_mail_area a:hover {
    opacity: 0.7;
}

.mv_mail_icon {
    width: 2rem;
}

.mv_mail_area span {
    writing-mode: vertical-rl;
    color: #FFF;
    font-family: "Noto Sans JP";
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
}



/* ＝＝ギャラリーエリア＝＝ */


.gallery_area {
    background-image: url(img/about_bg.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
}

.gallery_01 {
    width: 32%;
    position: relative;
    top: 2rem;
    left: 3rem;
}

.gallery_02 {
    width: 34%;
    margin-left: auto;
    position: relative;
    top: -5rem;
}

.gallery_03 {
    width: 17%;
    position: relative;
    left: 38%;
    top: -20rem;
}

.gallery_04 {
    width: 26%;
    position: absolute;
    left: 0;
    bottom: 5rem;
}

.g_i_001,
.g_i_003 {
    border-radius: 1rem;
}

.g_i_002 {
    border-radius: 1rem 0 0 1rem;
}

.g_i_004 {
    border-radius: 0 1rem 1rem 0;
}


/* ＝＝ご挨拶エリア＝＝ */

.about_area {
    padding-bottom: 5rem;
}

.about_box {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.about_left {
    width: 22%;
}

.about_main {
    width: 37%;
}

.about_p {
    padding: 2rem 0;
}

.about_right {
    width: 25%;
}

/* ＝＝施工実績＝＝ */

.works_area {
    background-image: url(img/bg_img.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 3rem 0;
}

.works_title_area {
    width: 70%;
    margin: auto;
    display: flex;
    gap: 1rem;
}

.works_title_area p {
    padding-top: 2.25rem;
}

.works_area_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 1.5rem;
    padding: 2rem 0;
}

.works_area_list li {
    width: 25%;
    display: inline-block;
    box-sizing: border-box;
    margin: 1.75rem;
}


figure {
    filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.25));
}

.clip-shape {
    clip-path: polygon(50% 0%, 100% 30%, 100% 100%, 0% 100%, 0% 30%);
}

figure img {
    aspect-ratio: 4 / 3;
    object-fit: cover;

}

.works_text_box {
    padding-top: 0.75rem;
}



.cat_box {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 0.5rem;
    background: var(--main);
    color: #FFF;
    font-family: "Noto Sans JP";
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    margin: 0.15rem 0;
}


.works_text_box h4 {
    color: #333;
    font-family: "Noto Sans JP";
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    padding: 0.25rem 0;
}

.works_area_list a {
    transition: 1000ms;
}

.works_area_list a:hover {
    opacity: 0.5;
}

.works_btn_area {
    text-align: center;
    padding: 2rem 0;
}

.no-data-text {
    text-align: center;
    padding: 10rem 0;
}



/* ＝＝背景エリア＝＝ */
.bg_area {
    height: 600px;
    background-image: url(img/bg_area.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

@media screen and (min-width: 1800px) {
    .bg_area {
        height: 900px;
    }
}


/* ＝＝お知らせエリア＝＝ */

.news_area {
    background-image: url(img/bg_img.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 3rem 0;
}


.news_title h2 {
    color: #000;
}

.news_box {
    width: 80%;
    margin: 0 auto;
    padding: 3rem 0;
}

.news_btn {
    width: 12rem;
}


article {
    padding: 2rem 0;
}

.news_list {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.news_list li {
    width: 100%;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #222;
}

.news_list a {
    display: flex;
    justify-content: space-between;
    transition: 700ms;
}

.news_list a:hover {
    opacity: 0.5;
}

.thumbnail {
    width: 18%;

}

.thumbnail img {
    aspect-ratio: 4 / 3;
    box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.news_title_day {
    width: 75%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.blog_title {
    color: #333;
    font-family: "Noto Sans JP";
    font-size: 1rem;
    font-style: normal;
    font-weight: 350;
}

time {
    color: #555;
    font-family: "Noto Sans JP";
    font-size: 1rem;
    font-style: normal;
    font-weight: 350;
}

.news_btn_area {
    text-align: center;
    padding: 4rem 0;
}

/* ＝＝お問い合わせエリア＝＝ */




.contact_area {
    background-image: url(img/contact_bg.jpg);
    background-size: cover;
    background-position: 50%;
    padding: 7rem 0;
}

.phone_icon02 {
    width: 3rem;
}

.mail_icon_02 {
    width: 3rem;
}

.c_house_icon {
    width: 3.5rem;
    position: absolute;
    right: 0;
    bottom: 0;
}



.contact_box {
    border: 1px solid #fff;
    width: 70%;
    margin: 0 auto;
    position: relative;

}

.contact_box h2 {
    color: #fff;
    letter-spacing: 0.3rem;
    font-size: 1.5rem;
    position: absolute;
    left: -5%;
    top: -25%;

}





.contact_text {
    color: #FFF;
    text-align: center;
    font-family: "Sorts Mill Goudy";
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    padding-top: 3rem;
}

.contact_area02_in {
    padding: 3rem 0;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.contact_area02_left {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 1rem 4rem;
}

.phone_area02 {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    align-items: flex-end;

}

.phone_area02 span {
    color: #FFF;
    font-family: "Noto Serif JP";
    font-size: 2rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.reception_hours {
    color: #FFF;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.contact_button a {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 2rem;
    justify-content: center;
    align-items: center;
    background: linear-gradient(90deg, #004EA2 0%, #89BEF8 50%, #004EA2 100%);
    background-size: 200% 100%;
    border: 1px solid #fff;
    transition: 700ms;
}

.contact_button a:hover {
    background-position: 100% 0;
}

.contact_button span {
    color: #FFF;
    font-family: "Noto Sans JP";
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}


/* ＝＝フッター＝＝ */

footer {
    background-image: url(img/footer_bg.jpg);
    background-size: cover;
    background-position: 50%;
}

.footer_logo {
    width: 17rem;
}

.f_logo_insta_area {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.insta_icon {
    width: 1.75rem;
}

.map_icon {
    width: 2rem;
}

.f_phone_icon {
    width: 2rem;
}

.fax_icon {
    width: 2rem;
}

.f_mail_icon {
    width: 2rem;
}

.addres {
    display: flex;
    align-items: center;
}

.addres span {
    color: #222;
    font-family: "Noto Sans JP";
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    padding-left: 0.25rem;
}

.footer_area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    margin: auto;
    padding: 4rem 0;

}

.addres_top {
    padding-top: 1rem;
}

.f_left_area {
    width: 50%;
    border-right: 1px solid #999;
}

.f_left_area a {
    transition: 500ms;
}

.f_left_area a:hover {
    opacity: 0.7;
}

.f_right_area {
    width: 50%;
    padding-left: 3rem;
}

.f_nav {
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    gap: 0.375rem 1.5625rem;
    flex-wrap: wrap;

}

.f_nav li {
    width: 40%;
}

.f_nav strong {
    color: #222;
    font-size: 1rem;
    font-weight: 400;
    font-family: "Noto Sans JP";
}


.f_nav a::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url(img/footer_right_icon.svg) no-repeat;
    background-size: contain;
    margin-right: 1px;
    position: relative;
    top: 6px;
}

small {
    color: #fff;
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    font-family: "Noto Serif JP";
    font-size: 12px;
    background-color: var(--main);
}

/* ＝＝トップページメディアクエリ＝＝ */

/* タブレット */
@media screen and (max-width: 1056px) {

    .h_logo {
        width: 14rem;
    }

    .g-nav strong {
        font-size: 0.825rem;
    }

    .g-nav span {
        font-size: 0.825rem;
    }

    .reception_area span {
        font-size: 0.825rem;
    }

    .g-nav a {
        padding: 0 1.5rem;
    }

    .h_right_top {
        display: flex;
        align-items: center;
        gap: 1rem;

    }

    .gallery_03 {
        top: -6rem;
        left: 38%;
    }
}

/* スマホ */
@media screen and (max-width: 796px) {

    /* 全体 */
    .br_sp {
        display: block;
    }

    .sec_title {
        font-size: 1.5rem;
    }

    .sub_title {
        font-size: 1.25rem;
    }

    p {
        font-size: 0.825rem;
        line-height: 1.25rem;
    }

    .btn a {
        font-size: 0.825rem;
    }

    /* ヘッダー */
    header {
        background-color: #fff;
    }

    .h_logo {
        width: 13rem;
    }


    .h_right_top {
        display: none;
    }

    .g-nav li:last-child {
        display: block;
    }


    .g-nav li {
        padding: 0.75rem 0;
    }

    .g-nav strong {
        font-size: 0.825rem;
    }

    .g-nav span {
        font-size: 0.75rem;
    }

    .r_sp span {
        font-size: 0.75rem;
    }

    /* ハンバーガーメニュー */
    header nav {
        box-sizing: border-box;
        position: fixed;
        top: 60px;
        width: 100%;
        height: calc(100% - 60px);
        background: #fff;
        opacity: 0.7;
        /* 3. スライドメニューの場合 */
        /* display: block; */
        right: -100%;
        transition: right .7s;
        z-index: 10;
        /* ここまで */
    }

    header nav.sp_open {
        right: 0;
    }

    header nav ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    header nav ul li a {
        display: block;
        /* padding: 25px; */
        border-radius: 5px;
        color: #666;
        font-size: 1.8rem;
        text-align: center;
        /* text-decoration: none; */
    }

    #openbtn {
        z-index: 200;
        cursor: pointer;
        box-sizing: border-box;
        position: absolute;
        top: 0;
        right: 0;
        display: inline-block;
        width: 60px;
        height: 60px
    }

    #openbtn span {
        position: absolute;
        top: 2rem;
        left: 1rem;
        display: inline-block;
        width: 30px;
        height: 3px;
        border-radius: 2px;
        background-color: var(--sub);
        vertical-align: top;
    }

    #openbtn span:nth-child(2) {
        margin-top: 10px;
    }

    #openbtn span:last-child {
        margin-top: 20px;
    }

    #openbtn.open span {
        top: 36px;
        left: 14px;
        width: 35px;
        margin: 0;
    }

    #openbtn.open span:first-child {
        transform: rotate(45deg);
    }

    #openbtn.open span:nth-child(2) {
        display: none;
    }

    #openbtn.open span:last-child {
        transform: rotate(-45deg);
    }

    /* メインビジュアル */

    .mainvisual_pc {
        display: none;
    }

    .mainvisual_sp {
        display: block;
        background: #fff;
        position: relative;

    }

    .catch_img_sp {
        position: relative;
        top: -2.5rem;
        z-index: 1;
    }

    .mv_mail_area {
        top: 30%;
    }

    .mv_mail_area span {
        font-size: 0.825rem;
    }

    /* ギャラリーエリア */

    .gallery_01 {
        width: 45%;
        left: 1rem;
    }

    .gallery_02 {
        width: 40%;
        top: -1rem;
    }

    .gallery_03 {
        top: -3rem;
        left: 38%;
    }

    .gallery_04 {
        width: 30%;
        bottom: 2rem;
    }

    .g_i_001,
    .g_i_003 {
        border-radius: 0.5rem;
    }

    .g_i_002 {
        border-radius: 0.5rem 0 0 0.5rem;
    }

    .g_i_004 {
        border-radius: 0 0.5rem 0.5rem 0;
    }

    /* 挨拶エリア */

    .about_area {
        background: #fff;
    }

    .about_box {
        flex-direction: column;
        gap: 1.5rem;
    }

    .about_left {
        width: 60%;
    }

    .about_main {
        width: 98%;
    }

    .about_right {
        width: 80%;
    }

    /* 施工実績 */

    .works_title_area {
        width: 98%;
    }

    .works_title_area p {
        padding-top: 1rem;
    }

    .cat_box {
        font-size: 0.825rem;
    }

    .works_text_box h4 {
        font-size: 0.825rem;
    }

    /* 背景エリア */
    .bg_area {
        height: 400px;
        background-position: 45%;
        background-size: auto;
        background-image: none;
    }

    .bg_area::before {
        content: "";
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        z-index: -10;
        width: 100%;
        height: 100vh;
        background-repeat: no-repeat;
        background-position: 50% 100%;
        background-image: url(img/bg_area_sp.jpg);
        background-size: cover;
    }

    /* お知らせ */

    .news_box {
        width: 98%;
    }

    .news_btn {
        width: 8rem;
    }

    .news_list a {
        gap: 1rem;
    }

    .thumbnail {
        width: 30%;

    }

    .news_title_day {
        width: 70%;
    }

    .blog_title {
        font-size: 0.825rem;
    }

    time {
        font-size: 0.825rem;
    }

    /* お問い合わせ */
    .contact_box {
        width: 80%;
    }

    .phone_icon02 {
        width: 2rem;
    }

    .mail_icon_02 {
        width: 2rem;
    }

    .phone_area02 span {
        font-size: 1.5rem;
    }

    .reception_hours {
        font-size: 0.75rem;
    }

    .contact_button span {
        font-size: 1rem;
    }

    .c_house_icon {
        width: 2rem;
    }

    .contact_area02_left {
        padding: 0;
    }


    .contact_text {
        font-size: 1rem;
    }

    .contact_area02_in {
        padding: 1.5rem;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;

    }

    .contact_box h2 {
        left: -12%;
    }

    /* フッター */
    footer {
        background: #fff;
    }

    .footer_logo {
        padding-right: 0.25rem;
    }


    .footer_area {
        width: 98%;
    }

    .f_right_area {
        display: none;
    }

    .f_left_area {
        width: 100%;
        border-right: none;
    }

}

/* ＝＝以下固定ページ＝＝ */
/* ＝＝共通＝＝ */

.page_header {
    background-image: url(img/bg_img.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.page_title_area {
    width: 40%;
    display: flex;
    justify-content: center;

}

.page-title {
    color: #333;
    font-family: "Noto Serif JP";
    font-size: 2rem;
    font-style: normal;
    font-weight: 400;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.3rem;
}

.page_sub_title {
    color: var(--main);
    font-family: "Noto Sans JP";
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 400;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}


.page_img {
    width: 60%;
    height: 20rem;
    border-radius: 1rem 0 0 1rem;
}


/* ぱんくず */

.c-breadcrumbs_bg {
    background-color: #fff;
}

.c-breadcrumbs {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: #555;
    background-color: #fff;
    line-height: 3.2;
}

.c-breadcrumbs>li {
    display: inline-block;
    position: relative;
}

.c-breadcrumbs>li:not(:last-of-type)::after {
    content: ">";
    display: inline-block;
    margin-right: 0.5em;
    margin-left: 0.5em;
}

.c-breadcrumbs a {
    color: #222;
}


/* ページナビ */
.page-nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-top: 28px;
    border-top: 1px dashed #666666;
    border-bottom: 1px dashed #666666;
    font-size: 0.875rem;
    font-weight: 500;
    color: #666666;
    list-style: none;
}

.page-nav a {
    text-decoration: none;
    color: #777;
    padding: 5px 8px;
    transition: background 1000ms;
}


.page-nav a:hover {
    background: var(--main);
    color: #fff;
}

.page-nav a.to-archive {
    padding: 5px 0;
}

/* ＝固定ページ共通のメディアクエリ＝ */
@media screen and (max-width: 796px) {
    .ttl_line {
        font-size: 1.15rem;
    }

    .ttl_line_sub {
        font-size: 1rem;
    }

    .page_title_area {
        width: 30%;
    }

    .page_img {
        width: 70%;
    }



    .page-title {
        font-size: 1.5rem;
    }

    .page_sub_title {
        font-size: 1rem;
    }

    .c-breadcrumbs {
        font-size: 0.5rem;
    }


}


/* ＝＝事業案内ページ＝＝ */

.s_p_img {
    background-image: url(img/s_header_img.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.menu_area {
    background-image: url(img/menu_bg.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.menu_box {
    width: 50%;
    margin: auto;
    display: flex;
    flex-direction: row-reverse;
    padding: 3rem 0;
}

.menu_area h2 {
    color: #fff;
}

.menu_list {
    padding: 5rem 3rem;
    display: flex;
    flex-direction: row-reverse;
    gap: 5rem;
}


.menu_list a {
    color: #FFF;
    font-family: "Noto Serif JP";
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 400;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transition: background 1000ms;
    position: relative;
}

.menu_list a::after {
    position: absolute;
    top: 0;
    right: 0;
    /* 左に縦線を出す */
    content: '';
    width: 1px;
    /* 縦線なので横幅1px */
    height: 100%;
    background: #fff;
    transform: scaleY(0);
    /* 初期状態で非表示 */
    transform-origin: top;
    transition: transform 500ms ease;
}

.menu_list a:hover::after {
    transform: scaleY(1);
}

/* 事業内容メイン */

.construction_area {
    padding: 3rem 0;
}

.service_box {
    position: relative;
    width: 85%;
    margin-left: auto;

}

.s_ttl {
    color: #FFF;
    font-family: "Noto Serif JP";
    font-size: 2rem;
    font-style: normal;
    font-weight: 400;
}

.s_ttl_sub {
    color: #FFF;
    font-family: "Noto Serif JP";
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 400;
    line-height: 2rem;
    padding: 0 3rem;
}

.s_ttl_area {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding-bottom: 3rem;
}

.s_ttl_area span {
    color: #fff;
    font-family: "Noto Sans JP";
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
}

.s_ttl_sub {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}


.service_container {
    width: 85%;
    margin: 3rem auto;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: flex-end;
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translate(-50%, 0);
    border-bottom: 1px solid#fff;
}

.s_text h4 {
    color: #FFF;
    font-family: "Noto Sans JP";
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.75rem;
}

.s_text p {
    color: #fff;
    font-weight: 400;
    padding: 1.5rem 0;

}

.house_icon {
    width: 2rem;
    position: absolute;
    right: 0;
    bottom: 0;
}

.s_sub_img_area {
    width: 85%;
    margin-left: auto;
    display: flex;
    gap: 5rem;
    padding: 3rem 0;
}

.sub_img_01 {
    width: 40%;
}

.sub_img_02 {
    width: 40%;
}

.s_sub_img_area img {
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.bg_line {
    background-color: var(--bgcolor);
    width: 100%;
    height: 4rem;
    position: relative;
    top: -5rem;
    z-index: -1;
}

/* 事業内容リバース */

.s_b_rev {
    margin-left: 0;
}

.s_c_rev {
    flex-direction: row;
}

.h_i_rev {
    left: 0;
}

.s_s_i_a_rev {
    margin-left: 0;
    justify-content: flex-end;
}

/* 事業内容ページのメディアクエリ */
@media screen and (max-width: 796px) {
    .menu_box {
        width: 98%;
    }

    .menu_list {
        padding: 3rem 1rem;
        gap: 0;
    }

    .menu_list li {
        margin: 0 1.5rem;
    }

    .menu_padd {
        padding: 0 1.5rem 0 0;
    }

    .menu_list a {
        font-size: 1rem;
    }

    .service_box {
        width: 95%;
    }

    .s_ttl {
        font-size: 1.5rem;
    }

    .s_ttl_sub {
        font-size: 1rem;
        padding: 0 1.5rem;
        line-height: 1.25rem;
    }

    .service_container {
        width: 95%;
        flex-direction: column;
        margin: 0 auto;
        bottom: 1rem;
    }

    .s_text h4 {
        font-size: 1rem;
    }

    .s_text p {
        padding: 1rem 0;
    }

    .s_sub_img_area {
        width: 95%;
        flex-direction: column;
    }


    .sub_img_01 {
        width: 100%;
    }

    .sub_img_02 {
        width: 100%;
    }

    .s_c_rev {
        align-items: flex-start;
    }

    .house_icon {
        width: 1.5rem;
    }



}

/* ＝＝会社概要ページ＝＝ */

.c_p_img {
    background-image: url(img/c_header_img_02.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.sp_ttl {
    display: none;
}

.message_box {
    width: 80%;
    margin: auto;
    display: flex;
    gap: 2rem;
    padding: 3rem 0;

}


.message_img {
    width: 37%;
    padding: 3rem 0 0;
}

.message_img img {
    border-radius: 1rem;
}

.message_text {
    width: 50%;
    padding: 3rem 0 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.message_bg {
    width: 54%;
    position: absolute;
    right: 0;
    bottom: 0;
}

.message_name {
    text-align: right;
}

.message_name strong {
    color: #222;
    font-family: "Noto Sans JP";
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 700;
}

/* 会社概要 */

.overview_area {
    background-image: url(img/company_bg.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 5rem 0;
}

.overview_box {
    width: 80%;
    margin: auto;
}

.overview_wrapper {
    width: 90%;
    display: flex;
    justify-content: space-between;
}

.overview_title {
    width: 15%;

    h2 {
        color: #fff;
        letter-spacing: 0.2em;

    }
}


.overview_container {
    width: 70%;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
}

.overview_container dt {
    width: 27%;
}

.overview_container dd {
    width: 73%;
}

.overview_container dt,
.overview_container dd {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #fff;
    font-size: 1rem;
}


/* アクセス */


.access_box {
    width: 80%;
    margin: 0 auto;
    padding: 3rem 0;

}

.access_ttl {

    width: 23%;
}


.access_addres {
    font-weight: 500;
    color: #333;
    padding-top: 1rem;
}

.g_map {
    width: 77%;
    margin: -4rem auto 0;
}

iframe {
    width: 100%;
}

/* 会社概要ページのメディアクエリ */
@media screen and (max-width: 796px) {

    .c_p_img {
        background-position: 62%;
    }

    .pc_ttl {
        display: none;
    }

    .message_box {
        width: 98%;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .sp_ttl {
        display: block;
        gap: 0.25rem;
    }

    .message_img {
        width: 95%;
        display: flex;
        justify-content: space-between;
        padding: 0;
    }

    .message_img img {
        width: 90%;
        margin-top: 2rem;
    }

    .message_text {
        width: 100%;
    }

    .message_name strong {
        font-size: 1rem;
    }

    .overview_area {
        padding: 2rem 0 3rem;
    }

    .overview_box {
        width: 98%;
    }

    .overview_wrapper {
        width: 100%;
        flex-direction: column;
    }

    .overview_title {
        width: 100%;
        padding: 2rem 0;
    }

    .overview_title h2 {
        color: #fff;
    }

    .overview_container {
        width: 100%;
    }

    .overview_container dt,
    .overview_container dd {
        font-size: 0.825rem;
    }

    .access_box {
        width: 98%;
    }

    .g_map {
        width: 100%;
        margin: auto;
        padding: 2rem 0;
    }

}

/* ＝＝施工実績一覧と詳細＝＝ */


.w_p_img {
    background-image: url(img/w_header_img.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.w_single_p_area {
    padding: 3rem 0;
}

.w_single_p_box {
    width: 80%;
    margin: 0 auto;

}

.single_ttl_area {
    border-bottom: 1px solid#999;

}

.single_ttl {
    color: #333;
    font-family: "Noto Sans JP";
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    padding: 0.5rem 0;
}

.w_single_p_box_in {
    display: flex;
    justify-content: space-between;
    padding-top: 3rem;

}

.w_single_main_img {
    width: 70%;

}

.w_single_main_img img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 2px solid var(--main);
}

.w_single_list {
    width: 29%;
    text-align: right;
}

.w_single_list li {
    width: 48%;
    display: inline-block;
}

.w_single_list img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin: 0 0.25rem 0.25rem;
    border: 1px solid var(--sub);
}

.w_single_p_textbox {
    width: 100%;
    padding: 1rem 0;
}

.w_single_list img {
    cursor: pointer;
    transition: 500ms;
}

.w_single_list img:hover {
    opacity: 0.7;
}

.w_single_p_textbox p {
    color: #333;
}

.works_home {
    background: #fff;
}

/* ビフォーアフター */

.w_single_ba_box {
    display: flex;
    justify-content: space-between;
    padding: 3rem 0;
}

.works_single_before_img {
    width: 47%;
}

.ba_text {
    float: right;
    color: var(--sub);
    font-weight: 500;
    font-size: 1.25rem;
    font-family: "Noto Serif JP";
}

.ba_icon {
    width: 96px;
}

.w_single_ba_box .w_single_main_img {
    width: 47%;
}

.ba_list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-around;
}

.ba_list li {
    width: 22%;
}

.after_text {
    color: var(--main);
}

/* 実績カテゴリー */
.works_cat_area {
    text-align: center;
    width: 50%;
    margin: 0 auto;
}

.works_cat_all {
    padding: 2rem;
}

.works_cat_all a {
    padding: 0.5rem 1rem;
    color: var(--sub);
    transition: 700ms;
}

.works_cat_all a:hover {
    opacity: 0.7;
}

.works_cat_list {
    /* text-align: center; */
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.works_cat_list li {
    padding: 0 3px;
}

.works_cat_list a {
    padding: 0.5rem 1rem;
    background-color: var(--main);
    color: #fff;
    font-size: 1rem;
    transition: 700ms;
    border-radius: 0.5rem;
}

.works_cat_list a:hover {
    background-color: var(--main);
}

/* 実績紹介【詳細】ページのメディアクエリ */
@media screen and (max-width: 796px) {

    .w_p_img {
        background-image: url(img/w_header_img_sp.jpg);
    }

    .w_single_p_box {
        width: 98%;
    }

    .single_ttl {
        font-size: 1rem;
    }

    .w_single_p_box_in {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .w_single_list li {
        width: 100%;
    }

    .w_single_main_img {
        width: 100%;
    }

    .w_single_list {
        width: 100%;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
    }

    .w_single_list li {
        width: 23%;

    }

    .w_single_list img {
        margin: 0;
    }


    .works_area_list {
        width: 98%;
        margin: 0 auto;

    }

    .works_area_list li {
        width: 100%;
    }

    /* ビフォーアフター */
    .w_single_ba_box {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 0;
    }


    .works_single_before_img {
        width: 100%;
    }

    .w_single_ba_box .w_single_main_img {
        width: 100%;
    }

    .ba_icon {
        transform: rotate(90deg);
    }

    .ba_list {
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        gap: 0;
    }




    /* 実績カテゴリー */
    .works_cat_area {
        width: 100%;
        justify-content: space-evenly;
    }

    .works_cat_list li {
        width: 30%;
        padding: 1rem 0;
    }

    .works_cat_area a {
        font-size: 0.825rem;
    }

}

/* ＝＝お知らせ一覧と詳細＝＝ */

.n_p_img {
    background-image: url(img/n_header_img.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}



.blog-container {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    width: 85%;
    margin: 0 auto;
    padding: 3rem 0;
    overflow: visible;
}

.blog-wrapper {
    width: 70%;
}



.day-cat time {
    color: var(--main);
}

.day-cat p {
    color: var(--sub);
}


.post-title {
    color: #333;
    padding: 0.5rem 0;
    font-family: "Noto Sans JP";
    /* padding-bottom: 3rem; */
    margin-bottom: 1.5rem;
    border-bottom: 3px dotted var(--sub);
}

.post-text {
    line-height: 2rem;
    color: #444;
}





/* サイドバー */
aside {
    width: 30%;
    position: sticky;
    top: 20px;
}


.item_01 {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--sub);
}

.home_area {
    background: #fff;
}






/* お知らせページのメディアクエリ */
@media screen and (max-width: 796px) {

    .blog-container {
        display: flex;
        flex-direction: column;
        width: 98%;
        align-items: center;
    }

    .blog-wrapper {
        width: 100%;
    }

    aside {
        width: 100%;
    }

    .info_dl strong {
        font-size: 0.825rem;
    }

}





/* ＝＝ワードプレスのページネーション＝＝ */
/* 前へ次へ */

.wp-pagenavi {
    display: flex;
    justify-content: flex-end;
    margin-top: 42px;
    padding: 16px;
}

.wp-pagenavi a {
    text-decoration: none;
}

.wp-pagenavi span,
.wp-pagenavi a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--sub);
    border-radius: 0.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: 0.3s ease-in;
}

.wp-pagenavi span:not(:last-child),
.wp-pagenavi a:not(:last-child) {
    margin-right: 2.622%;
}

@media screen and (max-width: 768px) {

    .wp-pagenavi span,
    .wp-pagenavi a {
        font-size: 0.875rem;
    }
}

.wp-pagenavi span:hover,
.wp-pagenavi a:hover {
    background-color: var(--sub);
    color: #FFFFFF;
}

.wp-pagenavi span.current {
    background-color: var(--sub);
    color: #FFFFFF;
}

.wp-pagenavi a {
    color: #666666;
}

.wp-pagenavi a.nextpostslink,
.wp-pagenavi a.previouspostslink {
    width: auto;
    padding: 5px 1.2em;
}





/* ＝＝404ページ＝＝ */
.page-404 {
    background: #eee;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 60vh;
    color: #777;

}

.page-404 h2 {
    font-size: 2rem;
    padding: 64px;
}

/* お問い合わせページ */
.box-white {
    background-color: var(--bgcolor);
    padding: 48px;

}

.form-wrapper {
    max-width: 70%;
    margin: 0 auto;
    background-color: #fff;
    padding: 128px;
    border-radius: 1.5rem;
}

.form-wrapper p {
    line-height: 32px;
    font-size: 1.2rem;
    color: #555;
}

.text-red {
    color: #DA1725;
}

form {
    margin: 32px 0;
}

.form-box {
    width: 100%;
}

.form-box dl {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
}

.form-box dt,
.form-box dd {
    padding-bottom: 30px;
}

.form-box dt {
    font-weight: 400;
    text-align: left;
}

.form-box dt.message {
    padding-top: 10px;
    vertical-align: top;
}

.form-box dd {
    width: 63.993%;
}

.required {
    display: inline-block;
}

.required::after {
    content: "※";
    display: inline-block;
    padding-left: 1em;
    color: #DA1725;
}

.form-style {
    width: 400px;
    padding: 8px;
    box-shadow: 0 0 0 1px #ccc inset;
    border-radius: 4px;
}

.form-style:focus {
    outline: 0;
    box-shadow: 0 0 0 2px rgb(33, 150, 243) inset;
}

.btn-wrapper {
    margin-top: 30px;
    text-align: center;
}

.btn-submit {
    display: inline-block;
    min-width: 220px;
    padding: 10px;
    background-image: linear-gradient(to right, #333 0%, #333 50%, #FFFFFF 50%, #FFFFFF 100%);
    background-size: 200%;
    background-position-x: 0;
    border: 1px solid #333;
    border-radius: 5px;
    color: #FFFFFF;
    text-align: center;
    transition: 0.3s ease-in;
}

.btn-submit:hover {
    background-position-x: 100%;
    color: #333;
}

/* お問い合わせページメディアクエリ */
@media (max-width: 796px) {
    .box-white {
        padding: 16px;
    }

    .form-wrapper {
        max-width: 97%;
        margin: 0 auto;
        padding: 16px;
    }

    .form-wrapper p {
        font-size: 0.9rem;
    }

    .form-box dl {
        display: flex;
        flex-direction: column;
    }

    .form-box dd {
        width: 100%;
    }

    .form-style {
        width: 100%;
    }

}








/* ＝＝J-Query＝＝ */
/* ギャラリーフェードイン */
.gallery_area .gall {
    opacity: 0;
    transition: all 2s;
}


.gallery_area .active {
    opacity: 1;
}


#page-top a {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--main);
    border: 1px solid var(--main);
    border-radius: 5px;
    width: 60px;
    height: 60px;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.6rem;
    transition: all 0.3s;
}

#page-top a:hover {
    background: var(--sub);
}

/*リンクを右下に固定*/
#page-top {
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 101;
    /*はじめは非表示*/
    opacity: 0;
    transform: translateX(100px);
}

/*　左の動き　*/

#page-top.LeftMove {
    animation: LeftAnime 0.5s forwards;
}

@keyframes LeftAnime {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/*　右の動き　*/

#page-top.RightMove {
    animation: RightAnime 0.5s forwards;
}

@keyframes RightAnime {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 1;
        transform: translateX(100px);
    }
}

/* フェード */
.fade {
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: opacity 1s, visibility 1s, transform 1s;
}

/* フェードイン */
.is-fadein {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}


/* dots */
.slick-dots {
    bottom: -25px;
}

.slick-dots li,
.slick-dots li button,
.slick-dots li button::before {
    width: 6px;
    height: 6px;
}

.slick-dots li {
    margin: 0 7px;
}

.slick-dots li button {
    background-color: #999;
    /* opacity: 0.3; */
    border-radius: 100%;
}

.slick-dots li.slick-active button {
    /* opacity: 1; */
    background-color: var(--sub);
}

.slick-dots li button::before {
    content: '';
}





/* loading */
/* オープニングアニメーションのスタイル */
#opening-animation {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: var(--bgcolor);
    /* 背景色はサイトデザインに合わせて調整 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#logo {
    width: 150px;
    /* ロゴのサイズは適宜調整 */
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out forwards;
}

/* メインコンテンツのスタイル */
#main-content {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* フェードインのアニメーション */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}