@charset "utf-8";

.case-detail {

}

.case-detail-header {
    border-bottom: 1px solid var(--black);
    margin: 34px 0 0;
    padding: 0 0 12px;
}

.case-detail-h1-sub {
    font-weight: bold;
    line-height: 1;
    font-size: 16px;
    margin: 0 0 12px;
}

.case-detail-h1 {
    line-height: 1.5;
    font-size: 37px;
    margin: 0;
}

.case-detail-kv {
    margin: 32px 0 0;
}

.case-detail-kv-thumbs-wrapper, 
.gallery-thumbs-wrapper {
    position: relative;
    border-bottom: 1px solid #e0e0e0;
    padding: 30px 64px;
}

.case-detail-kv-thumbs, 
.gallery-thumbs {
    width: fit-content;
    margin-inline: auto;
    position: relative;
}

.case-detail-kv-thumbs .swiper-wrapper, 
.gallery-thumbs .swiper-wrapper {
    align-items: stretch;
}

.case-detail-kv-thumbs img, 
.gallery-thumbs img {
    height: 100%;
    max-height: 104px;
    width: auto;
}

.case-detail-kv-thumbs  .swiper-slide,
.gallery-thumbs .swiper-slide {
    width: fit-content;
}

.case-detail-main__description {
    margin-top: 72px;
}

.case-detail-main__description h2.wp-block-heading {
    font-size: 28px;
    margin: 0 0 24px;
}

/* case-before-after-gallery */

.case-before-after-gallery {
    border-top: 1px solid #e0e0e0;
    margin-top: 76px;
}

.gallery-main {
    border-bottom: 1px solid #e0e0e0;
}

.case-before-after {
    display: flex;
}

.case-after,
.case-before {
    display: flex;
    flex-direction: column;
    padding: 0 36px 40px;
}

.case-after {
    width: 55%;
    box-sizing: border-box;
    padding-left: 0;
    border-right: 1px solid #e0e0e0;
}

.case-before {
    width: 45%;
    box-sizing: border-box;
}

.case-after-pic, 
.case-before-pic {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
}

.case-before-pic {
    justify-content: center;
}

.case-after-img,
.case-before-img {
    aspect-ratio: 4 / 3;
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.case-after-caption,
.case-before-caption {
    display: flex;
    width: fit-content;
    min-width: 80px;
    min-height: 28px;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    border-radius: 10em;
    margin: 24px 0;
}

.case-after-caption {
    background: var(--orange);
}

.case-before-caption {
    background: var(--blue);
}

/* case-detail-property */

.case-detail-property {
    margin: 69px 0 56px;
    padding: 64px 84px 76px;
    background: #f4f4f5;
    display: flex;
    font-size: 14px;
}

.case-detail-property__col {
    flex: 1 1 0;
    padding: 0 56px;

    &:first-child {
        padding-left: 0;
        border-right: 1px solid #dcdcdc;
    }

    &:last-child {
        padding-right: 0;
    }
}

.case-detail-property__title {
    font-size: 21px;
    margin: 0 0 20px;
}

/* case-information */

.case-information__list {
    display: table;
    width: 100%;
}

.case-information__item {
    display: table-row;
}

.case-information__item-title,
.case-information__item-data {
    display: table-cell;
    padding-block: 7px;

    :where(.case-information__item:first-child) & {
        padding-top: 0;
    }
    :where(.case-information__item:last-child) & {
        padding-bottom: 0;
    }
}

.case-information__item-title,
.case-detail-tags-title {
    font-weight: bold;
    /* color: #75777b; */
    padding-right: 1em;
    font-size: 13px;
}

.case-information__item-title {
    width: 4.5em;
}

.case-detail-tags-title {
    width: 5.5em;
}

/* case-detail-tags */

.case-detail-tags {
    display: table;
    width: 100%;
}

.case-detail-tags-item {
    display: table-row;
}

.case-detail-tags-title,
.case-detail-tags-data {
    display: table-cell;
    padding-block: 11px;

    :where(.case-detail-tags-item:first-child) & {
        padding-top: 0;
    }
    :where(.case-detail-tags-item:last-child) & {
        padding-bottom: 0;
    }
}

/* .case-detail-shop */

.case-detail-shop-list {
    margin-top: 112px;
}

.case-detail-shop {
    margin-top: 64px;
}

:where(.case-detail-shop) + .case-detail-shop {
    border-top: 1px solid #e0e0e0;
    margin-top: 92px;
    padding-top: 88px;
}

.case-detail-shop-contents {
    display: flex;
    gap: 0 70px;
}

.case-detail-shop-pic {
    flex: 1 1 auto;
    width: 528px;
    max-width: 100%;
}

.case-detail-shop-text {
    flex: 1 1 0;
    padding-top: 38px;
    min-width: 400px;
}

.case-detail-shop-name {
    font-size: 24px;
    margin: 0;
}

.case-detail-shop-address {
    font-weight: bold;
    font-size: 14px;
    margin: 18px 0 0;
}

.case-detail-shop-area {
    font-size: 14px;
    margin: 14px 0 0;

    span:first-child {
        display: inline-block;
        font-weight: bold;
        margin-right: .5em;
    }
    span:last-child {
        
    }
}

.case-detail-shop-btn {
    margin: 56px 0 0px;
    min-height: 46px;
    padding: 4px 32px;
    font-size: 15px;
}

.case-detail-shop-btn::after {
    content: none;
}

.case-detail-shop-case {
    margin-top: 72px;
}

.case-detail-shop-case-title {
    line-height: 1.65; 
    font-size: 21px;
    margin: 0 0 21px;
}

.case-detail-kv-thumbs-wrapper .swiper-slide {
    opacity: 0.4;
}

.case-detail-kv-thumbs-wrapper .swiper-slide-thumb-active {
    opacity: 1;
}

.shop-case-list .swiper-slide {
    height: auto;
}

/* start swiper navigation */

.case-detail-kv-thumbs-wrapper .swiper-button-next, 
.case-detail-kv-thumbs-wrapper .swiper-button-prev {
    width: 32px;
    height: auto;
    aspect-ratio: 1;
    padding: 0;
    margin-top: -16px;
}

.case-detail-kv-thumbs-wrapper .swiper-button-prev {
    left: 0;
}

.case-detail-kv-thumbs-wrapper .swiper-button-next {
    right: 0;
}

.case-detail-kv-thumbs-wrapper .swiper-button-next::after, 
.case-detail-kv-thumbs-wrapper .swiper-button-prev::after {
    content: '';
    width: 100%;
    height: 100%;
    background-image: url(/wp-content/themes/eyefullrefrom/assets/images/common/icon/icon-arrow-circle02.png);
    background-size: contain;
}

.case-detail-kv-thumbs-wrapper .swiper-button-prev::after {
    rotate: 180deg;
}

/* swiper navigation */

.gallery-thumbs-wrapper .swiper-button-next, 
.gallery-thumbs-wrapper .swiper-button-prev {
    width: 36px;
    height: auto;
    aspect-ratio: 1;
    padding: 0;
    margin-top: -18px;
}

.gallery-thumbs-wrapper .swiper-button-next::after, 
.gallery-thumbs-wrapper .swiper-button-prev::after {
    content: '';
    width: 100%;
    height: 100%;
    background-image: url(/wp-content/themes/eyefullrefrom/assets/images/common/icon/icon-arrow-circle02.png);
    background-size: contain;
}

/* swiper navigation */

.shop-case-list .swiper-button-next, 
.shop-case-list .swiper-button-prev {
    width: 36px;
    height: auto;
    aspect-ratio: 1;
    padding: 0;
    top: auto;
    bottom: 0;
    margin: 0;
}

.shop-case-list .swiper-button-next::after, 
.shop-case-list .swiper-button-prev::after {
    content: none;
    width: 100%;
    height: 100%;
    background-image: url(/wp-content/themes/eyefullrefrom/assets/images/common/icon/icon-arrow-circle02.png);
    background-size: contain;
}

.shop-case-list .swiper-button-prev::after {
    rotate: 180deg;
}

.shop-case-list .swiper-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 32px;
    bottom: 0;
}

/* end swiper navigation */

.section--case-recommend,
.section--case-history {
    margin-top: 80px;
}

@media (max-width: 992px) {

    .case-detail-shop-contents {
        flex-wrap: wrap;
    }

    .case-detail-shop-btn {
        margin: 40px 0 0px;
    }

    .case-detail-shop-area {
        margin: 8px 0 0;
    }

}

@media (max-width: 768px) {

    .case-detail {
        font-size: 14px;
    }

    .case-detail-header {
        padding-bottom: 8px;
        margin-bottom: 24px;
        margin-top: 0;
    }

    .case-detail-h1-sub {
        font-size: 12px;
        margin: 0 0 8px;
    }

    .case-detail-h1 {
        font-size: var(--font-size-h2);
        margin: 0;
    }

    .case-detail-kv {
        margin: 16px 0 0;
    }

    .case-detail-kv-thumbs-wrapper, 
    .gallery-thumbs-wrapper {
        padding: 24px 48px;
    }

    .case-detail-kv-thumbs img, 
    .gallery-thumbs img {
        max-height: 64px;
    }

    .case-detail-main__description {
        margin-top: calc(32 / 375 * 100vw);
    }

    .case-detail-main__description h2.wp-block-heading {
        font-size: calc(18 / 14 * 1em);
        margin: 16px 0;
    }

    /* case-before-after-gallery */

    .case-before-after-gallery {
        margin-top: calc(40 / 375 * 100vw);
    }

    .case-after,
    .case-before {
        padding: 0 12px 12px;
    }

    .case-after {
        width: 60%;
        padding-left: 0;
    }

    .case-before {
        width: 40%;
        padding-right: 0;
    }

    .case-after-caption, 
    .case-before-caption {
        min-width: 68px;
        min-height: 24px;
        font-size: 10px;
        margin: 16px 0;
        padding-inline: 1.4em;
        box-sizing: border-box;
    }

    /* case-detail-property */

    .case-detail-property {
        margin-block: calc(40 / 375 * 100vw) 0;
        margin-inline: calc(var(--inner-py) * -1);
        display: block;
        padding: 1px var(--inner-py);
        font-size: 12px;
    }

    .case-detail-property__col {
        margin-top: calc(var(--inner-py) * 1.5);
        padding: 0;
        padding-bottom: calc(var(--inner-py) * 1.5);
        border-bottom: 1px solid #dcdcdc;

        &:first-child {
            border-right: none;
        }

        &:last-child {
            border-bottom: none;
        }
    }

    .case-detail-property__title {
        font-size: 17px;
        /* margin: 24px 0 20px; */
        margin: 16px 0;
    }

    .case-information__item-title {
        font-size: inherit;
    }

    .case-detail-tags-title {
        font-size: inherit;
    }

    .case-information__item-title,
    .case-information__item-data {
        padding-block: 4px;

        :where(.case-information__item:first-child) & {
            padding-top: 0;
        }
        :where(.case-information__item:last-child) & {
            padding-bottom: 0;
        }
    }

    .case-detail-tags-title,
    .case-detail-tags-data {
        padding-block: 2px;
        :where(.case-detail-tags-item:first-child) & {
            padding-top: 0;
        }
        :where(.case-detail-tags-item:last-child) & {
            padding-bottom: 0;
        }
    }

    /* .case-detail-shop */

    .case-detail-shop-list {
        margin-top: 40px;
    }

    .case-detail-shop {
        margin-top: 20px;
    }

    :where(.case-detail-shop) + .case-detail-shop {
        margin-top: calc(32 / 375 * 100vw);
        padding-top: calc(32 / 375 * 100vw);
    }

    .case-detail-shop-contents {
        display: block;
    }

    .case-detail-shop-pic {
        width: auto;
    }

    .case-detail-shop-text {
        padding: 0;
        min-width: 0;
    }

    .case-detail-shop-name {
        font-size: 18px;
        margin: 24px 0 0;
    }

    .case-detail-shop-address {
        font-weight: normal;
        font-size: 12px;
        margin: 6px 0 0;
    }

    .case-detail-shop-area {
        font-size: 12px;
        margin: 16px 0 0;
        padding: 12px 16px;
        border: 1px solid #dcdcdc;
        
        span:first-child {
            display: block;
        }
    }

    .case-detail-shop-btn {
        width: 100%;
        display: flex;
        margin-top: 24px;
        padding: calc(12 / 17 * 1em) calc(56 / 17 * 1em);
        font-size: inherit;
    }

    .case-detail-shop-btn::after {
        content: '';
    }

    .case-detail-shop-case {
        margin-top: 28px;
        padding: 1px 28px 40px;
        background: #f4f4f5;
    }

    .case-detail-shop-case-title {
        font-size: calc(15 / 14 * 1em);
        margin: 28px 0 20px;
    }

    /* start swiper navigation */

    .gallery-thumbs-wrapper .swiper-button-next, 
    .gallery-thumbs-wrapper .swiper-button-prev {
        width: 32px;
        margin-top: -16px;
    }

    .gallery-thumbs-wrapper .swiper-button-prev {
        left: 0;
    }

    .gallery-thumbs-wrapper .swiper-button-next {
        right: 0;
    }

    .shop-case-list .swiper-button-next, 
    .shop-case-list .swiper-button-prev {
        width: 32px;
    }

    .shop-case-list .swiper-button-next::after, 
    .shop-case-list .swiper-button-prev::after {
        content: '';
    }

    .shop-case-list .swiper-button-prev {
        left: 0;
    }

    .shop-case-list .swiper-button-next {
        right: 0;
    }

    /* end swiper navigation */

    .section--case-recommend,
    .section--case-history {
        margin-top: calc(40 / 375 * 100vw);
    }

}

.case-tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.case-tag {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    font-size: 11px;
    min-height: calc(25 / 12 * 1em);
    padding: .4em 1.2em;
    background: var(--blue);
    color: #fff;
    border-radius: 10em;
}
.case-tag-link {color:#fff;text-decoration:none}

.case-tag_2::before {content:"＃";margin-right: .2em;}

@media (max-width: 768px) {

    .case-tag {
        font-size: 11px;
    }

}