/*-------------------------
  共通
-------------------------*/
.works-single .category-label {
    color: #ffffff;
    background: #922220;
    font-weight: normal;
    padding: 10px;
    display: block;
    width: fit-content;
}

.btn-works {
    text-align: center;
    margin-top: 88px;
}

.btn::after {
    content: none;
}


.btn-works .btn {
    display: inline-block;
    padding: 16px 32px 16px 67px;
    background: #000000;
    color: #fff;
    border-radius: 50px;
    position: relative;
}

.btn-works .btn::before {
    content: "←";
    font-size: 18px;
    padding-right: 28px;
    position: absolute;
    top: 50%;
    left: 22px;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.btn-works :hover::before {
    transform: translateX(-10px) translateY(-50%);
}

.works-post-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-left: 18px;
}

.works-post-dec {
    position: absolute;
    top: -13px;
    left: 4px;
    z-index: -1;
}


@media (max-width: 767px) {}




/*-------------------------
　実績詳細   single
-------------------------*/
.works-single {
    max-width: 1520px;
    margin: 0px auto;

    @media screen and (max-width:991px) {
        margin: 0 auto 48px;
    }
}

.works-single-inner {
    display: flex;
    gap: 100px;
    margin-top: 50px;

    @media screen and (max-width:1640px) {
        gap: 40px;
    }

    @media screen and (max-width:1200px) {
        flex-direction: column;
    }

    @media screen and (max-width:991px) {
        flex-direction: column;
    }
}

.works-single-ttl-wrap {
    display: flex;
    align-items: center;
    gap: 32px;
    border-bottom: 1px solid #922220;
}

.works-single-ttl {
    font-weight: bold;
    font-size: 40px;
    padding-bottom: 10px;
}

.works-single-item-right {
    flex: 1;
}

.works-single-sub-img {
    max-width: 206px;
    margin: auto 0 0 0;
    display: flex;
    gap: 15px;
    padding-top: 15px;
}

.works-single-sub-img img {
    border-radius: 10px;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
}

/*--------
　画像切り替え
---------*/

.slider-thumbnail .swiper-slide {
    width: calc(100% / 3);
}



.swiper-slide-thumb-active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(221, 136, 136, 0.6);
    z-index: 1;
}

.swiper-slide.swiper-slide-active.swiper-slide-visible.swiper-slide-fully-visible.swiper-slide-thumb-active {
    width: 100%;

    @media screen and (max-width:767px) {
        height: 100px !important;
    }
}

.slider-thumbnail .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px !important;
    height: 150px;
    padding: 4px;

    @media screen and (max-width:767px) {
        height: 100px;
    }
}

.slider-thumbnail .swiper-slide img {
    aspect-ratio: 3 / 2;
    height: 100%;
    object-fit: cover;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.16);
    display: block;
}

.slider-thumbnail .swiper-wrapper {
    margin-top: 15px;
    gap: 15px;

    @media screen and (max-width:767px) {
        gap: 8px;
    }
}

.slider-thumbnail .swiper-slide.swiper-slide-thumb-active {
    background: rgba(146, 34, 32, 0.6);
}

.slider .swiper-wrapper {
    max-width: 720px;
}

.slider img {
    aspect-ratio: 10/6;
    object-fit: cover;
}

.slider.swiper-slide img {
    height: auto;
    width: 100%;
}

@media screen and (max-width:767px) {
    .works-single-ttl-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .works-single .category-label {
        padding: 4px 16px;
    }

    .works-single-ttl {
        font-weight: bold;
        font-size: 22px;
        padding-bottom: 10px;
    }

    .works-single-inner {
        display: flex;
        gap: 40px;
        margin-top: 24px;
    }
}


/*--------
  テーブル
---------*/

.works-single-table table {
    width: 100%;
}

.works-single-table table td {
    padding: 40px;
    border-bottom: 1px solid #111;
}

.works-single-table table tr:nth-child(1) td {
    border-top: 1px solid #111;
}

.works-single-table table td:nth-child(1) {
    width: 27%;
    color: #922220;
}

.works-single-table td,
th {
    padding: 3px;
    width: 30px;
    height: 25px;
}

.works-single-item-right span {
    font-weight: 600;
    font-size: 24px;
    margin: 70px 0 20px;
    display: block;
}

/*--------
他の実績
---------*/
.works-other {
    padding: 0 0 88px;

    @media screen and (max-width:991px) {
        padding: 0 0 24px;
    }
}

.works-other-inner {
    max-width: 1440px;
    margin: 0px auto;
}

.works-other-sec-ttl {
    font-weight: 500;
    font-size: 20px;
    color: #161616;
    text-align: center;
    padding-bottom: 5px;
    position: relative;
    margin-bottom: 36px;
}

.works-other-ttl-wrap {
    display: flex;
    background: #CFCFCF;
    padding: 10% 24px;
    position: relative;
}

.works-other-other-ttl-wrap {
    display: flex;
    background: #CFCFCF;
    padding: 10% 24px;
    position: relative;
    width: 40%;

    @media screen and (max-width:768px) {
        padding: 8px;
        width: 100%;
        height: 100px;
    }
}

.works-other-ttl-dec {
    position: absolute;
    bottom: 0;
    right: 0;
}

.category-label {
    font-size: 16px;
    font-weight: 400;
}

.other-category-label {
    font-size: 16px;
    font-weight: 400;
    display: flex;
}

.works-other-ttl {
    font-weight: 600;
    font-size: 20px;
    margin-top: 24px;

    @media screen and (max-width:991px) {
        margin-top: 5px;
    }
}

.works-detail-link {
    position: absolute;
    right: 40px;
    bottom: 10px;
    z-index: 1;
    color: #fff;
}

.works-detail-link a {
    color: #fff;
}

.works-detail-link::after {
    content: "→";
    font-size: 18px;
    margin-left: 8px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.works-detail-link:hover::after {
    transform: translateX(6px) translateY(-50%);
}

img.category-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    vertical-align: middle;
}

.works-other-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: space-between;
    gap: 40px;
    position: relative;

    @media screen and (max-width:991px) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    @media screen and (max-width:768px) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}


.works-other-list li {
    /* box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.16); */
    transition: all .3s ease-in-out;
}

.works-other-list li:hover {
    transform: translateY(-5px);
}

.works-single-img img {
    aspect-ratio: 37 / 31;
    object-fit: cover;
}

.works-other-single-img {
    flex: 1;
}

.works-other-single-img img {
    aspect-ratio: 37 / 35;
    object-fit: cover;

    @media (max-width:768px) {
        aspect-ratio: 37 / 20;
        object-fit: cover;
    }
}

.works-btn {
    margin-top: 24px;
    text-align: center;
    font-weight: 600;
    font-size: 20px;
    color: #000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.works-btn svg {
    transform: rotate(180deg);
    transition: transform 0.3s ease-in-out;
}

.works-btn:hover svg {
    transform: rotate(180deg) translateX(8px);
}


/*-------------------------
  実績一覧　archive
-------------------------*/
.works-archive {
    max-width: 1440px;
    margin: 0px auto 190px;

    @media screen and (max-width:991px) {
        display: grid;
        grid-template-columns: 1fr;
        margin: 0 auto 48px;
    }
}

.works-archive-ttl-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;

    @media screen and (max-width:991px) {
        display: grid;
        gap: 10px;
        grid-template-columns: 1fr;
    }
}

.works-archive-ttl {
    display: flex;
    align-items: center;
    margin-top: 10px;
    font-weight: 600;
    font-size: 20px;
    color: #000;


    @media screen and (max-width:991px) {
        font-size: 16px;
    }
}

.works-archive-circle {
    font-size: 10px;
    color: #01A20C;
    padding-right: 8px;
}

.works-archive-ttl-type,
.works-archive-ttl-place {
    border: 1px solid #707070;
    border-radius: 4px;
    padding: 3px 7px;
    width: fit-content;

    @media screen and (max-width:991px) {
        font-size: 14px;
    }

}

.works-archive-img img {
    transition: all 0.3s;
    aspect-ratio: 5 / 3;
    object-fit: cover;
}

.works-archive-item:hover .works-archive-img img {
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.14);
}


.works-tabs {
    text-align: center;
    margin-bottom: 20px;
}

.works-tab-list {
    display: flex;
    justify-content: center;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin-bottom: 68px;

    @media screen and (max-width:500px) {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        justify-items: center;
        margin-bottom: 16px;
        gap: 10px;
    }
}

.works-tab-item {
    padding: 10px;
    background: #fff;
    cursor: pointer;
    width: 200px;
    transition: all 0.3s ease;
    color: #922220;
    border: 1px solid #922220;
    font-weight: 600;

    @media screen and (max-width:500px) {
        width: 100%;
    }
}

.works-tab-item:hover {
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
}

.works-tab-item.active {
    background: #922220;
    padding: 10px;
    color: #fff;
}

.works-archive-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: space-between;
    gap: 32px;

    @media screen and (max-width:500px) {
        display: flex;
        flex-direction: column;
    }
}

@media screen and (max-width:767px) {
    .works-post-card {
        position: relative;
        display: flex;
        flex-direction: column;
        padding-left: unset;
    }

    .works-single-img img {
        aspect-ratio: unset;
        object-fit: cover;
    }

    .works-other-ttl-wrap {
        display: flex;
        background: #CFCFCF;
        padding: 8px 16px 64px;
        position: relative;
    }

    .works-other-ttl-dec {
        max-width: 200px;
    }


    .works-detail-link {
        right: 16px;
    }

    .works-detail-link::after {
        display: none;
    }

    .works-other-ttl {
        font-size: 16px;
        margin-top: 8px;
    }

    .category-label {
        font-size: 14px;
        font-weight: 600;
    }

    .works-post-dec {
        position: absolute;
        top: -8px;
        left: -8px;
        z-index: -1;
    }

    .works-single-table table td {
        padding: 8px 0px 8px 16px;
        font-size: 14px;
    }

    .works-other-list {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .works-other {
        padding: 0px;
    }

    .btn-works {
        text-align: center;
        margin-top: 40px;
    }
}

.works-other-post-card {
    position: relative;
    width: 100%;
    max-width: 600px;
    display: flex;

    @media screen and (max-width:768px) {
        flex-direction: column;
    }
}

#works .works-other {

    .swiper-button-next,
    .swiper-button-prev {
        width: calc(var(--swiper-navigation-size) / 44* 35);
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        color: #FFF;
        font-size: 16px;
        background-color: #000000b2;
        padding: 12px 26px 12px 16px;
    }

    .swiper-horizontal>.swiper-pagination-bullets,
    .swiper-pagination-bullets.swiper-pagination-horizontal,
    .swiper-pagination-custom,
    .swiper-pagination-fraction {
        left: 0;
        width: 100%;
    }

    .swiper-pagination {
        text-align: left;
        padding: 0 24px;
    }

    .swiper-pagination-bullet {
        width: 32px;
        height: 3px;
        border-radius: 0;
    }

    .swiper-pagination-bullet-active {
        opacity: var(--swiper-pagination-bullet-opacity, 1);
        background: #922220;

    }

    .swiper-slide img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center center;
        display: block;
    }

    .swiper-slide {
        height: auto; // ← これでOK
        width: auto; // ← Swiperが自動で調整するので指定しない
    }

    .swiper {
        width: 100%;
        height: auto;
    }

}

.works-other .swiper-container {
    margin-left: 15px;

    @media screen and (max-width:767px) {
        margin-left: 0px;
    }
}