/* Voice card + SP popup: shared by about/voice.html and lineup/<genre>/index.html */
/********************************

	生徒さんの声カード（共通）_はじまり

********************************/
.voice-card {
    width: 100%;
    background-color: #fff;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
    padding-bottom: 20px;
    box-sizing: border-box;
}
.voice-card-thumb {
    aspect-ratio: 362 / 160;
    overflow: hidden;
}
.voice-card-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.voice-card-head {
    position: relative;
    background-color: #ffd8ea;
    padding: 43px 12px 12px;
}
.voice-card-genre {
    position: absolute;
    top: 10px;
    left: 10px;
    height: 25px;
    padding: 0 20px;
    border-radius: 100px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    line-height: 25px;
    white-space: nowrap;
    text-decoration: none;
}
a.voice-card-genre:hover {
    opacity: 0.8;
}
.voice-card-genre--idol { background-color: #cc8eff; }
.voice-card-genre--kpop { background-color: #ffc700; }
.voice-card-genre--winku { background-color: #ff288b; }
.voice-card-genre--themepark { background-color: #a8e232; }
.voice-card-genre--boys { background-color: #5153ad; }
.voice-card-genre--jazz { background-color: #ff7925; }
.voice-card-genre--hiphop { background-color: #f75b81; }
.voice-card-genre--ballet { background-color: #6cd5c9; }
.voice-card-title {
    margin: 0;
    color: #ff3090;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.5;
}
.voice-card-name {
    padding: 8px 12px 10px;
    color: #646464;
    font-size: 12px;
    text-align: right;
}
.voice-card-text {
    padding: 0 12px;
    color: #646464;
    font-size: 14px;
    line-height: 1.7;
}
.voice-card-more,
.voice-card-close {
    display: none;
}

/* sp */
@media screen and (max-width: 767px) {
    .voice-card {
        padding-bottom: 16px;
    }
    .voice-card-head {
        padding: 37px 10px 10px;
    }
    .voice-card-genre {
        top: 8px;
        height: 21px;
        padding: 0 22px;
        font-size: 12px;
        line-height: 21px;
    }
    .voice-card-title {
        font-size: 16px;
        line-height: 1.5;
    }
    .voice-card-name {
        padding: 6px 10px 8px;
    }
    .voice-card-text {
        font-size: 14px;
        line-height: 22px;
        padding: 0;
        margin: 0 10px 12px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
    .voice-card-more,
    .voice-card-close {
        display: block;
        width: 148px;
        margin: 0 auto;
        padding: 10px 20px;
        border: 1px solid #ff3090;
        border-radius: 100px;
        background-color: #fff;
        color: #ff3090;
        font-family: inherit;
        font-size: 14px;
        line-height: normal;
        cursor: pointer;
    }
    /* Same "+" as the TOP page's もっと見る button (.see_more_btn in common.css) */
    .voice-card-more::after {
        content: "＋";
        margin-left: 10px;
    }

    /* popup */
    .voice-modal {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 2000;
        background-color: rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .voice-modal.is-open {
        display: block;
    }
    .voice-modal-inner {
        min-height: 100%;
        padding: 60px 20px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
    }
    .voice-card.is-modal .voice-card-text {
        display: block;
        overflow: visible;
        margin-bottom: 20px;
    }
    /* Background scroll lock while the popup is open (top is set by JS) */
    body.voice-modal-lock {
        position: fixed;
        left: 0;
        width: 100%;
        overflow: hidden;
    }
}
@media screen and (min-width: 768px) {
    .voice-modal {
        display: none !important;
    }
}

/* Genre pages (lineup/*): card inside the existing voice Swiper slide */
.voice-card-slide {
    background: none;
}
/* Three voices (lineup/idol): 3 columns in one row on PC/tablet
   (the slides are max 475px wide for 2 columns, so 3 of them would overflow) */
@media screen and (min-width: 768px) {
    #anker-voice .voice-swiper--3col {
        width: 100%;
        max-width: 1000px;
    }
    #anker-voice .voice-swiper--3col .swiper-slide {
        flex: 1 1 0;
        min-width: 0;
    }
}
/* Genre pages: no two-tone background (common.css: #fef5f8 50% / #ff0077 50%), light pink only */
#anker-voice .student-say-video-check-container {
    padding-bottom: 40px;
    background-image: none;
    background-color: #fef5f8;
}
/* "もっと見る" on the light pink background: pink fill, white text, no line
   (the border is kept transparent so the button size doesn't change; the white arrow comes from common.css) */
#anker-voice .student-say-video-check-container > .see_more_btn {
    background-color: #ff0077;
    border-color: transparent;
    color: #fff;
}
/* PC: hover (same as the category buttons on faq.html) */
@media screen and (min-width: 768px) {
    #anker-voice .student-say-video-check-container > .see_more_btn {
        transition: opacity .3s ease;
    }
    #anker-voice .student-say-video-check-container > .see_more_btn:hover {
        opacity: .7;
    }
}
/* Space above "もっと見る" (PC 40px, SP 20px) and below it (container padding: PC 40px, SP 30px) */
#anker-voice .student-say-video-check-container > .see_more_btn {
    margin-top: 40px !important;
}
/* kpop: the card group already has a 10px bottom margin (dance_kpop.css) */
.page-lineup-kpop_index #anker-voice .student-say-video-check-container > .see_more_btn {
    margin-top: 30px !important;
}
@media screen and (max-width: 767px) {
    #anker-voice .student-say-video-check-container {
        padding-bottom: 30px;
    }
    #anker-voice .student-say-video-check-container > .see_more_btn,
    .page-lineup-kpop_index #anker-voice .student-say-video-check-container > .see_more_btn {
        margin-top: 20px !important;
    }
    /* Slider dots (idol, kpop): 20px from the tallest card and 20px to "もっと見る".
       The cards differ in height, so the space is measured from the bottom of the slides
       (the tallest card); kpop's 10px bottom margin (dance_kpop.css) is reset here. */
    #anker-voice .student-say-card-group-container {
        margin-bottom: 0;
    }
    #anker-voice .swiper-pagination.student {
        display: flex;
        justify-content: center;
        margin-top: 20px;
        line-height: 0;
    }
    /* The active dot is white in dancegenre.css (made for the #ff0077 band);
       on the light pink background use pink (same as lp/idol) */
    #anker-voice .swiper-pagination.student .swiper-pagination-bullet-active {
        background: #ff0077 !important;
    }
}
@media screen and (max-width: 767px) {
    /* Keep the SP arrows on the photo (vertical center) so they don't cover the title.
       margin-top % is based on the container width, which equals the card width:
       photo height = width * 160 / 362, arrow height = 25px */
    #anker-voice .swiper-button-prev,
    #anker-voice .swiper-button-next {
        top: 0;
        margin-top: calc(160 / 362 * 50% - 12.5px);
    }
}

/********************************

	生徒さんの声カード（共通）_おわり

********************************/
