@charset "utf-8";

@media only screen and (max-width: 768px) {
    p {
        font-size: 14px;
        line-height: 1.9;
    }
}

/* ============================================ */
/* main_view
/* ============================================ */
#works .main_view {
    background: url(../../works/images/main.png) center;
    width: 100%;
    height: 14.8958vw;
    background-size: cover;
    position: relative;
}
#works .main_view .text_area {
    width: fit-content;
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translate(-50%, 0);

}
#works .main_view .text_area h2 {
    color: #473933;
    font-size: 120px;
    line-height: 0.8;
    letter-spacing: 0.09em;
    padding-right: 70px;
    position: relative;
}
#works .main_view .text_area h2::after {
    position: absolute;
    content: '';
    background: url(../../works/images/head_icon_01.png);
    top: 50%; right: 0;
    transform: translate(0, -50%);
    width: 45px;
    height: 80px;
    background-size: cover;
}
#works .main_view .text_area p {
    display: block;
    font-size: 24px;
    padding-left: 10px;
    color: #B0BF24;
    font-weight: bold;
}
@media only screen and (max-width: 768px) {
    #works .main_view {
        background: url(../../works/images/main.png) 20%;
        background-size: cover;
        height: 186px;
        padding: 3rem 0 0 0;
    }
    #works .main_view .text_area {
        bottom: -55px;
    }
    #works .main_view .text_area h2 {
        font-size: 50px;
        padding-right: 35px;
        letter-spacing: 0.1em;
    }
    #works .main_view .text_area h2::after {
        width: 22px;
        height: 40px;
    }
    #works .main_view .text_area p {
        font-size: 19px;
        padding-left: 5px;
    }
}

/* ============================================ */
/* category_wrapper
/* ============================================ */
section.category_wrapper {
    margin: 190px auto 0px;
}
section.category_wrapper .contents {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
section.category_wrapper .contents .box {
    width: calc((100% - 30px*2)/3);
}
.box .visible_area button {
    margin: 0 0 14px 0;
    transition: all .3s;
}
.box .visible_area button:hover {
    opacity: 0.8;
}
.box .visible_area span {
    display: inline-block;
    padding: 8px 12px;
    background-color: #579A00;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
    margin: 0 0 15px 0;
    font-weight: bold;
}
.box .visible_area span.cat_green1 {
    background-color: #579A00;
}
.box .visible_area span.cat_brown1 {
    background-color: #744F3F;
}
.box .visible_area span.cat_brown2 {
    background-color: #9A6B2F;
}
.box .visible_area h3 {
    font-size: 20px;
    color: #333;
    font-weight: bold;
    letter-spacing: 0.1em;
    margin: 0 0 10px 0;
    line-height: 1.35;
}
.box .visible_area h3 > a {
    display: block;
    cursor: pointer;
    transition: all .3s;
}
.box .visible_area h3 > a:hover {
    opacity: 0.8;
}
@media only screen and (max-width: 768px) {
    section.category_wrapper {
        margin: 100px auto 80px;
    }
    section.category_wrapper .contents {
        gap: 20px;
    }
    section.category_wrapper .contents .box {
        width: 100%;
    }
    .box .visible_area span {
        padding: 4px 12px;
    }
}

/* modal */
.modal {
    display: none;
}
.modal.is-open {
display: block;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 80;
}
.modal__container {
    background-color: #fff;
    max-width: 1100px;
    width: 1100px;
    max-height: 80vh;
    border-radius: 4px;
    overflow-y: auto;
    margin: 5%;
    box-sizing: border-box;
}
.white_bg {
    padding: 50px;
}
.modal__container header,
.modal_title_area,
.white_bg > p {
    width: 80%;
    margin: 0 auto;
}
.modal__container header {
    display: flex;
    justify-content: end;
    margin: 0 auto 5px;
    max-width: 720px;
}
.modal_title_area {
    display: flex;
    justify-content: space-between;
    margin: 20px auto 20px;
}
.modal_title_area h3 {
    color: #333;
}
.modal_title_area span {
    display: inline-block;
    padding: 8px 12px;
    background-color: #579A00;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
    margin: 0 0 15px 0;
}
.modal_title_area span.cat_green1 {
    background-color: #579A00;
}
.modal_title_area span.cat_brown1 {
    background-color: #744F3F;
}
.modal_title_area span.cat_brown2 {
    background-color: #9A6B2F;
}
/* モーダルを閉じるボタン */
.modal__close-btn {
    right: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: transparent;
    cursor: pointer;
    z-index: 100;
    position: relative;
}
.modal__close-btn span {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px; /* 棒の幅（太さ） */
    height: 30px; /* 棒の高さ */
    background: #579A00;
    border-radius: 5px;
}
.modal__close-btn span:first-child {
    transform: translate(-50%,-50%) rotate(45deg);
}
.modal__close-btn span:last-child {
    transform: translate(-50%,-50%) rotate(-45deg);
}
@media only screen and (max-width: 768px) {
    .modal__container {
        width: 90%;
    }
    .white_bg {
        padding: 20px 30px;
    }
    .modal__container header {
        max-width: 600px;
    }
    .modal__container header,
    .modal_title_area,
    .white_bg > p {
        width: 100%;
    }
    .modal_title_area {
        margin: 20px 0 10px 0;
        align-items: center;
    }
    .modal_title_area h3 {
        letter-spacing: -1px;
        font-size: 16.5px;
    }
    .modal_title_area span {
        margin: 0;
        padding: 4px 10px;
        line-height: 1.35;
    }
}

/* swiper */
#modal-1-content {
    position: relative;
}
.swiper-container {
    margin: 0 auto 35px;
    max-width: 900px;
    width: 100%;
}
.swiper-wrapper {
    /* wrapperのサイズを調整 */
    width: 100%;
    height: auto;
}
.swiper-slide {
/* スライドのサイズを調整、中身のテキスト配置調整、背景色 */
color: #ccc;
width: 100%;
height: auto;
text-align: center;
}
.swiper-slide > img {
    width: 80%;
    text-align: center;
}
.swiper-button-next, .swiper-button-prev {
    top: 50%;
    --swiper-navigation-color: #579A00;
}
.swiper-pagination {
    margin: 0 0 -35px 0;
}
.swiper-pagination-bullets {
    width: 100px;
}

.swiper-pagination-bullet {
width: 12px !important;
height: 12px !important;
margin: 0 0 0 10px !important;
background: #000;
}
@media only screen and (max-width: 768px)  {
    .swiper-container {
        max-height: 390px;
    }
    .swiper-button-prev {
        left: 50%;
        margin: 0;
        top: 0;
        transform: translate(-50%, 0px) rotate(90deg);
      }
      .swiper-button-next {
        bottom: 0;
        left: 50%;
        margin: 0;
        top: auto;
        transform: translate(-50%, 0px) rotate(90deg);
      }
      .swiper-slide {
        display: inline-flex;
        align-items: center;
        justify-content: center;
      }
    .swiper-slide > img {
        width: 100%;
        height: auto;
        object-fit: scale-down;
    }
    .swiper-pagination-vertical.swiper-pagination-bullets, .swiper-vertical>.swiper-pagination-bullets {
        right: 0;
    }
    .swiper-pagination-bullets {
        width: auto;
    }
    .swiper-pagination-bullet {
        margin: 5px 0 0 0 !important;
    }
    .swiper-pagination {
        margin: 0 -20px 0 0;
    }
}



#works .tel_area{
    margin-top: 20px;
}
@media only screen and (max-width: 768px)  {
#works .tel_area{
    margin-top: 30px;
}
}