@charset "utf-8";

/* -------------------------------------------------------------
    フルリッチ
-------------------------------------------------------------- */
.nicase-fullrich {
    padding: 40px;
    background: var(--beige);
    border-radius: 20px;
    margin-top: 40px;
}

.nicase-fullrich h1,
.nicase-fullrich h2,
.nicase-fullrich h3,
.nicase-fullrich h4 {
    font-weight: bold;
    line-height: 1.4;
}

.nicase-fullrich h1 {
    font-size: 2.7rem;
    font-weight: bold;
    border-bottom: 6px solid var(--main);
    padding: 0 0 15px;
    margin: 50px 0 30px;
}

.nicase-fullrich h2 {
    background: var(--main);
    color: #fff;
    font-size: 2.6rem;
    margin: 50px 0 30px;
    padding: 10px 20px 12px;
    position: relative;
    letter-spacing: .05em;
}

.nicase-fullrich h3 {
    border-bottom: dotted 3px var(--main);
    color: var(--main);
    margin: 40px 0 30px;
    padding: 0 0 10px;
    font-size: 2.4rem;
    letter-spacing: .05em;
}

.nicase-fullrich h4 {
    margin: 30px 0 20px;
    padding: 4px 0 0 16px;
    font-size: 2.3rem;
    position: relative;
}

.nicase-fullrich h4::before {
    background: var(--main);
    position: absolute;
    top: 2px;
    left: 0;
    display: block;
    content: '';
    width: 6px;
    height: 100%;
}

.nicase-fullrich img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.nicase-fullrich a:link {
    color: var(--link);
    display: inline-block;
    text-decoration: underline;
}

.nicase-fullrich p {
    margin: 1em 0;
}

@media screen and (max-width: 768px) {
    .nicase-fullrich {
        padding: 20px;
        border-radius: 10px;
        margin-top: 20px;
    }

    .nicase-fullrich h1,
    .nicase-fullrich h2,
    .nicase-fullrich h3,
    .nicase-fullrich h4 {
        line-height: 1.5;
    }

    .nicase-fullrich h1 {
        border-bottom-width: 4px;
        font-size: 2.3rem;
        line-height: 1.5;
        margin: 30px 0 20px;
        padding: 0 0 10px;
    }

    .nicase-fullrich h2 {
        margin: 30px 0 20px;
        padding: 8px 15px 10px;
        font-size: 2rem;
    }

    .nicase-fullrich h3 {
        margin: 30px 0;
        padding: 0 0 10px;
        font-size: 1.9rem;
    }

    .nicase-fullrich h4 {
        margin: 30px 0 20px;
        padding: 0 0 0 12px;
        font-size: 1.8rem;
    }

    .nicase-fullrich h4::before {
        top: 0;
        width: 5px;
    }

    .nicase-fullrich img {
        max-width: 100%;
    }
}

/* -------------------------------------------------------------
    実績詳細　swiper
-------------------------------------------------------------- */
.swiper.swiper-main {
    overflow: visible;
    max-width: 1000px;
    margin: auto;
    /*border: 1px solid #ddd;*/
}

.swiper.swiper-main .swiper-wrapper {
    overflow: hidden;
}

.slide-media,
.thumb-media {
    position: relative;
    overflow: hidden;
}

.slide-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.thumb-media img {
    /*position: absolute;
    top: 0;
    left: 0;*/
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.swiper-button-prev,
.swiper-button-next {
    display: grid;
    place-content: center;
    width: 6.4rem;
    height: 6.4rem;
    cursor: pointer;
}

.swiper-button-prev::before,
.swiper-button-next::before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    content: "";
    border-radius: 50%;
    color: #fff;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    width: 1.2rem;
    height: 1.2rem;
    content: "";
    border: 1px solid #fff;
    border-width: 3px 3px 0 0;
}

.swiper-button-prev::after {
    margin-left: 0.4rem;
    -webkit-transform: rotate(-135deg);
    transform: rotate(-135deg);
}

.swiper-button-next::after {
    margin-right: 0.4rem;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.swiper-button-disabled {
    pointer-events: none;
    opacity: .5;
}

.swiper-navigation-icon {
    display: none;
}

.swiper-main {
    overflow: visible;
}

.swiper-thumb {
    padding-top: 8px;
}

.swiper-fade .swiper-slide {
    -webkit-transition-property: opacity, -webkit-transform !important;
    transition-property: opacity, -webkit-transform !important;
    transition-property: opacity, transform !important;
    transition-property: opacity, transform, -webkit-transform !important;
    pointer-events: none;
}

.swiper-fade .swiper-slide-active {
    pointer-events: auto;
}

.swiper-controller {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*padding-top: 62.5%;*/
}

.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    margin: auto;
    background: var(--brown);
    border-radius: 40px;
}

.swiper-button-prev {
    right: calc(100% + 3.2rem);
}

.swiper-button-next {
    left: calc(100% + 3.2rem);
}

/*.slide {
    display: block;
    overflow: hidden;
}*/

.slide-title {
    font-weight: bold;
    line-height: 1.6;
    padding: 30px 0 0;
}

.thumb-media {
    /*padding-top: 100%;
    border-radius: 4px;*/
    cursor: pointer;
}

.thumb-media img {
    width: 100%;
    height: initial;
    /*height: 100%;*/
    object-fit: cover;
}

.swiper-slide-thumb-active {
    opacity: 0.3;
}

.swiper-thumb {
    margin: 30px auto 0;
    width: 1000px;
}

.swiper-thumb .swiper-wrapper {
    /*justify-content: center;
    flex-wrap: wrap;*/
    align-items: center;
}

.swiper-thumb .swiper-slide {
    border: 1px solid #ddd;
}

.swiper.swiper-main .swiper-zoom-container {
    height: 100%;
    text-align: center;
}

.swiper.swiper-main .swiper-zoom-container img {
    object-fit: cover;
    object-position: center;
    /*width: 100%;*/
    height: 100%;
    max-height: 700px;
    border: 1px solid #ddd;
}

@media screen and (max-width: 768px) {
    .swiper.swiper-main {
        /*max-width: 70vw;*/
        width: 100%;
        /*height: 100vw;*/
        max-width: initial;
    }

    .swiper-thumb {
        margin: 30px auto 0;
        width: 100%;
    }

    .swiper-thumb .swiper-wrapper {
        flex-wrap: wrap;
        gap: 5px;
    }

    .swiper-thumb .swiper-wrapper .swiper-slide {
        width: calc((100% - 10px) / 3) !important;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 40px;
        height: 40px;
    }

    .swiper-button-prev {
        right: 92%;
    }

    .swiper-button-next {
        left: 92%;
    }

    .swiper.swiper-main .swiper-zoom-container img {
        width: 100%;
        height: auto;
        max-height: initial;
    }

    .swiper-wrapper {
        align-items: center;
    }
}


#case .nicms-back {
    margin: 50px 0 0;
}

@media screen and (max-width: 768px) {
    #case .nicms-back {
        margin: 30px 0 0;
    }
}