@import url("voice-slider.css");
@import url("videos-slider.css");
@import url("worries-tabs.css");

/* Video Category Tabs */
.video-category-tabs {
    margin: 0 auto;
    max-width: 1200px;
}

.video-tab-list {
    display: flex;
    justify-content: center;
    gap: 1%;
    flex-wrap: wrap;
    padding: 0;
    width: 100%;
}

.video-tab-item {
    position: relative;
    min-width: 160px;
    width: calc(20% - (4 * 1%) / 5);
}

.video-tab-item a {
    display: block;
    padding: 4px 8px;
    background: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    color: #c8000f;
    text-decoration: none;
    transition: all 0.3s ease;
}

.video-tab-item a:hover {
    background: #c8000f;
    color: #fff;
}

.video-tab-item::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #222;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    transform: translateX(-50%) scaleX(0.65);
    border-top-color: #C8000F;
}

.video-tab-item.active a {
    background: #c80110;
    border-color: #c80110;
    color: #fff;
}

.video-tab-item.active::after {
    opacity: 1;
    border-top-color: #C8000F;
}

@media (max-width: 1100px) {

    .video-category-tabs {
        margin: 0 20px;
    }

    .p-topSegment._works .c-videos {
        margin-right: 20px;
        margin-left: 20px;
    }

    .video-tab-list {
        gap: 2%;
    }

    .video-tab-item {
        position: relative;
        min-width: 160px;
        width: calc(33.333% - (4 * 2%) / 5);
        margin: 0 0 2% 0;
    }

    .video-tab-item:nth-child(4),
    .video-tab-item:nth-child(5) {
        margin-bottom: 0;
    }

    .video-tab-item a {
        /* font-size: 14px; */
    }
}

@media (max-width: 999px) {
    .p-topSegment._works {
        padding-top: 40px;
    }

    .video-category-tabs {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .p-topSegment._works .c-videos {
        margin-right: 0;
        margin-left: 0;
    }

    .video-tab-item {
        margin: 0;
    }

    .video-category-tabs {
        margin: 20px auto;
    }

    .video-tab-list {
        gap: 10px;
    }

    .video-tab-item {
        min-width: calc(50% - 5px);
    }

    .video-tab-item a {
        padding: 8px 10px;
        font-size: 14px;
    }
}

.case2 .case2_2 .c-label:hover a {
    color: #4e4e4e;
}

.case2 .case2_2 .c-label:hover {
    border: 1px solid #bbb;
}

/* 動画リストタブ切り替え時の高さ固定 */
.case2 .c-videos {
    position: relative;
    /* transition を削除して震えを防止 */
}

.case2 .c-videos__list {
    width: 100%;

}

.case2 #c-videos__wrapper .c-videos__list.c-videos__popular {
    position: relative;
}

.case2 #c-videos__wrapper .c-videos__list.c-videos__popular:not(:first-child) {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: -1;
}

.case2 #video-list-product {
    pointer-events: visible !important;
}

.case2 #video-list-service {
    pointer-events: visible !important;
}

.case2 #video-list-webad {
    pointer-events: visible !important;
}

.case2 #video-list-store {
    pointer-events: visible !important;
}

.case2_1_title {
    margin-top: 50px !important;
}

@media (min-width: 1000px) {
    .case2_1_title {
        margin-top: 100px !important;
    }
}

.case2 {
    margin-top: 46px;
}

@media (min-width: 1000px) {
    .case2 {
        margin-top: 68px;
    }
}

@media (max-width: 1320px) and (min-width: 1100px) {
    .c-voices.c-voices__slider {
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 1123px) and (min-width: 1000px) {
    .c-voices.c-voices__slider {
        width: calc(100% - (var(--videos-slider-btn-width) + var(--videos-slider-btn-offset)) * 1.5);
        margin: 0 auto;
    }
}

.case2_voice {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

@media (min-width: 1000px) {
    .case2_voice {
        margin-top: 90px;
    }
}

.case_ordered_2_fix a {
    width: 50%;
    display: block;
    margin: 30px auto 0;
    transition: all 0.3s ease;
}

.case_ordered_2_fix a:hover {
    opacity: 0.8;
    scale: 1.05;
}

.case_ordered_1_fix .pc_only {
    display: block;
}

.case_ordered_1_fix .sp_only {
    display: none;
}

@media (max-width: 770px) {

    .case_ordered_1_fix .pc_only {
        display: none;
    }

    .case_ordered_1_fix .sp_only {
        display: block;
    }

    .case_ordered_1_fix {
        background-image: url("../img/case/case_ordered_1_2510_back_sp.png");
    }

    .case_ordered_2_fix a {
        width: 100%;
        display: block;
        margin: 20px auto 0;
    }
}

.case_fix_btn {
    margin: 40px auto 70px;
}

.case_fix_btn a {
    background: #fff !important;
}

@media (max-width: 770px) {
    .case_fix_btn {
        margin: 25px auto 40px;
    }
}

.case_pickup_tag_fix {
    margin-top: 30px;
}

.case_pickup_tag_fix .c-label {
    font-size: 1rem;
    margin-right: 0.4em;
}

.case_page_waorks_btn .c-btnWrap{
    margin-top: 0px;
}

.case_page_waorks_btn a {
    background: #fff!important;
}

.case_top_link_price_fix {
    margin-top: 80px!important;
}

@media (max-width: 999px) {
    .case_top_link_price_fix {
        margin-top: 40px!important;
    }
}

@media (min-width: 768px) {
    .case2_voice .c-voices__item {
        margin-top: 0!important;
    }
}

@media (min-width: 768px) {

    ._recruit .c-videos .c-videos__item:not(:nth-of-type(3n)) {
        padding-right: 0px;
    }

    ._recruit .c-videos .c-videos__item:not(:nth-of-type(-n + 3)) {
        margin-top: 0px !important;
    }

    ._recruit .case2_2 .c-videos__item:not(:nth-of-type(3n)) {
        padding-right: 60px;
    }

    ._recruit .c-videos .c-videos__item {
        width: calc((100% - 60px * 2) / 3);
        box-sizing: content-box;
    }
}

.case_h2_small_txt_inner {
    display: inline-block;
}

.case_h2_small_txt {
    font-size: 1.15rem;
    position: relative;
    top: -5px;
}

.case_h2_small_txt_br {
    display: none;
}


.case_price_fix {
    margin-top: 38px;
}

@media (max-width: 1000px) {

    .case_h2_small_txt_inner {
        display: block;
    }

    .case_h2_small_txt {
        font-size: 1.25rem;
        position: relative;
        top: 0px;
    }

    .case_h2_small_txt_br {
        display: block;
    }

    .case_price_fix {
        margin-top: 28px;
    }
    
}