/* First View Section Styles */
.fv {
    position: relative;
    height: 88vh;
    width: 100%;
    overflow: hidden;
    margin-top: 0;
}

/* .fv::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("https://www.e-value.jp/digital-edu/wordpress/wp-content/themes/digital-educational-contents/src/assets/top/fv-dot.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 10;
} */
.fv-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 8;
}
/* .fv::before  {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.13;
    background: url('https://www.e-value.jp/digital-edu/wordpress/wp-content/themes/digital-educational-contents/src/assets/top/topFv-decoration.webp');
    z-index: 8;
} */
.fv-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: scaleDown 20s ease-in-out infinite;
    z-index: 7;
}

.fv-slide:nth-child(1) {
    background-image: url('../assets/top/fv-bg1.webp');
    background-size: 105%;
    background-position: center;
    background-repeat: no-repeat;
    animation: scaleDown 20s cubic-bezier(0.1, 0, 0.1, 1) infinite;
    opacity: 0;
}

.fv-slide:nth-child(2) {
    background-image: url('../assets/top/fv-bg2.webp');
    animation: scaleDown 20s cubic-bezier(0.1, 0, 0.1, 1) infinite;
    animation-delay: 5s;
    opacity: 0;
}

.fv-slide:nth-child(3) {
    background-image: url('../assets/top/fv-bg3.webp');
    background-size: 105%;
    background-position: center;
    background-repeat: no-repeat;
    animation: scaleDown 20s cubic-bezier(0.1, 0, 0.1, 1) infinite;
    animation-delay: 10s;
    opacity: 0;
}

.fv-slide:nth-child(4) {
    background-image: url('../assets/top/fv-bg4.webp');
    background-repeat: no-repeat;
    animation: scaleDown 20s cubic-bezier(0.1, 0, 0.1, 1) infinite;
    animation-delay: 15s;
    opacity: 0;
}

.fv::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    z-index: 10;
}

.fv-content {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5.4vw;
    margin: 0 auto;
    padding: 1.5rem 2vw 0 7.38vw;
    height: 100%;
    z-index: 50;

}

.fv-content::after {
    opacity: 0.35;
}
.fv-text {
    text-shadow: 0px 0px 8px #B3CCD8;
    color: var(--color-white);
    text-align: start;
}

.fv-title {
    font-size: 4.0625rem;
    font-style: normal;
    font-weight: 700;
    line-height: 4.6875rem; /* 115.385% */
    letter-spacing: -0.04063rem;
    margin-top: 2rem;
}

.fv-subtitle {
    font-size: 2.5rem;
    font-weight: 700;
}

.fv-description {
    font-size: 1.6875rem;
    font-weight: 500;
    margin-top: 4.75rem;
}

.fv-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.fv-image {
    width: 100%;
    max-width: 41.5625rem;
    margin-top: 15rem;
}
.fv-image.tb-sp-only {
    position: absolute;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 21.375rem;
    height: 14.5625rem;
    margin-top: 0;
    z-index: 999;
}
.fv-image.tb-sp-only img {
    width: 85%;
    height: auto;
    margin: 0 auto;
    object-fit: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}
@media screen and (max-width: 1500px) {
    .fv-content {
        gap: 4vw;
    }
    .fv-title {
        font-size: 3.125rem;
        line-height: 3.5rem;
    }
    .fv-subtitle {
        font-size: 1.875rem;
        line-height: 2.5rem;
        letter-spacing: 0.025rem;
        margin-top: 1.5rem;
    }

    .fv-image {
        width: 100%;
        max-width: 30rem;
        margin-top: 10rem;
    }

    .fv-description {
        font-size: 1.3rem;
        margin-top: 3.5rem;
    }
}
@media screen and (max-width: 1200px) {
    .fv-wrapper {
        position: relative;
    }
    .fv-content {
        flex-direction: column;
        justify-content: start;
        text-align: center;
        padding:17.05rem 3rem 40px;
        gap: 5.38rem;
    }

    .fv-title {
        /* font-size: 3rem; */
        line-height: 1.3;
        letter-spacing: 0.02rem;
    }

    .fv-subtitle {
        /* font-size: 1.25rem; */
        line-height: 2.5rem;
        letter-spacing: 0.025rem;
    }

    .fv-description {
        /* font-size: 1.0625rem; */
        line-height: 2rem;
        letter-spacing: 0.02125rem;
    }

    .fv-image {
        width: 28.375rem;
        margin: 0 auto 0;
    }
    .fv-slide:nth-child(1) {
        background-size: 310%;
        background-position: center;
        background-repeat: no-repeat;
        animation: scaleDown 20s cubic-bezier(0.1, 0, 0.1, 1) infinite;
        opacity: 0;
    }
    
    .fv-slide:nth-child(3) {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        animation: scaleDown 20s cubic-bezier(0.1, 0, 0.1, 1) infinite;
        animation-delay: 10s;
        opacity: 0;
    }
    
    .fv-slide:nth-child(4) {
        background-image: url('../assets/top/fv-bg4.webp');
        background-repeat: no-repeat;
        animation: scaleDown 20s cubic-bezier(0.1, 0, 0.1, 1) infinite;
        animation-delay: 15s;
        opacity: 0;
    }

    .fv-image.tb-sp-only {
        position: absolute;
        bottom: 15%;
        right: 10%;
        transform: translateX(-16%);
        width: 28.375rem;
        height: 14rem;
        margin-top: 0;
        z-index: 999;
    }
    .fv-image.tb-sp-only img {
        width: 100%;
        height: auto;
        margin: 0 auto;
        object-fit: cover;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@media screen and (max-width: 768px) {
    .fv {
        height: 70vh;
        margin-bottom: 0;
    }
    .fv.top {
        height: 75vh;
        margin-bottom: 0;
    }
    .fv-content {
        padding: 5rem 1.88rem 4rem;
        gap: 2rem;
        margin-top: 5rem;
    }

    .fv.top  .fv-content {
        padding: 1rem 2rem 4rem;
        gap: 2rem;
        margin-top: 5rem;
        justify-content: flex-start;
    }

    .fv-text {
        margin: 0 auto 40px;
    }

    .fv-title {
        font-size: 2rem;
        line-height: 2.5rem;
        margin-top: 1.7rem;
        text-align: start;
    }

    .fv-subtitle {
        font-size: 1.15rem;
        line-height: 2.5rem;
        letter-spacing: 0.025rem;
        margin-bottom: 0;
        text-align: left;
    }

    .fv-description {
        font-size: 1.0625rem;
        line-height: 2rem;
        letter-spacing: 0.02125rem;
        margin-top: 3rem;
        text-align: center;
    }

    .fv-description br.tb-only {
        display: none !important;
    }

    .fv-image.tb-sp-only {
        position: absolute;
        bottom: -23%;
        left: 50%;
        transform: translateX(-50%);
        width: 21.375rem;
        height: 14.5625rem;
        margin-top: 0;
        z-index: 999;
    }
    .fv-image.tb-sp-only img {
        width: 85%;
        height: auto;
        margin: 0 auto;
        object-fit: cover;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@keyframes scaleDown {
    0% {
        transform: scale(1.2);
        opacity: 1;
    }
    24.9% {
        transform: scale(1);
        opacity: 1;
    }
    25% {
        opacity: 0;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Pagination Styles */
.fv-pagination {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 15;
}

.fv-pagination-dot {
    width: 0.75rem;
    height: 0.75rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fv-pagination-dot:nth-child(1) {
    animation: activeDot 20s infinite;
}

.fv-pagination-dot:nth-child(2) {
    animation: activeDot 20s infinite;
    animation-delay: 5s;
}

.fv-pagination-dot:nth-child(3) {
    animation: activeDot 20s infinite;
    animation-delay: 10s;
}

.fv-pagination-dot:nth-child(4) {
    animation: activeDot 20s infinite;
    animation-delay: 15s;
}

@keyframes activeDot {
    0% {
        background-color: rgb(255, 255, 255);
        transform: scale(1.2);
    }
    24.9% {
        background-color: rgb(255, 255, 255);
        transform: scale(1.2);
    }
    25% {
        background-color: rgba(255, 255, 255, 0.5);
        transform: scale(1);
    }
    100% {
        background-color: rgba(255, 255, 255, 0.5);
        transform: scale(1);
    }
}

@media screen and (max-width: 768px) {
    .fv-pagination {
        bottom: 1.5rem;
        gap: 0.75rem;
    }

    .fv-pagination-dot {
        width: 0.5rem;
        height: 0.5rem;
    }
    .fv-slide:nth-child(1) {
        background-size: 380%;
    }
    .fv-slide:nth-child(3) {
        background-size: cover;
    }

}

/* ABOUT Section Styles =====================================================*/
.top-about {
    position: relative;
    background-color: #f8f9fa;
    background-image: url('../assets/top/top-about-bg.webp');
    background-size: cover;
    background-position: center;
    padding: 2.14rem 0 13rem;
    overflow: hidden;
}
.top-about-content {
    width: 100%;
}
.content-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4rem;

}

#top-about .image {
    max-width: 42%;
    margin: 2rem 0 0 0;
}

#top-about .image img {
    width: 100%;
    height: auto;
}

/* Tablet Responsive */
@media screen and (max-width: 1200px) {
    .top-about {
        position: relative;
        background-color: #f8f9fa;
        background-image: url('../assets/top/top-about-bg.webp');
        background-size: cover;
        background-position: center;
        padding: 5rem 0 6.31rem;
        overflow: hidden;
    }
    .content-body {
        flex-direction: column;
        gap: 5rem;
        margin-top: 2.5rem;
    }

    .container {
        gap: 2rem;
    }
    
    .title {
        font-size: var(--font-size-ttl-en);
    }
    
    .image {
        max-width: 100%;
    }

    #top-about .image {
        max-width: 100%;
        position: relative;
        width: 100%;
        max-width: 100%;
        height: 100%;
        /* aspect-ratio: 2 / 1; */
        margin: 0 auto 2rem;
        opacity: 1;
        pointer-events: auto;
        z-index: 1;
        overflow: hidden;
    }

        #top-about .image  img{
            height: 100%;
            width: 100%;
            object-fit: cover;
        }

}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .top-about {
        position: relative;
        background-color: #f8f9fa;
        background-image: url('../assets/top/top-about-bg.webp');
        background-size: cover;
        background-position: center;
        padding: 5rem 0 6.31rem;
        overflow: hidden;
    }
    .container {
        flex-direction: column;
        gap: 3rem;
    }

    .content-body {
        flex-direction: column;
        gap: 3.75rem;
        margin-top: 2.5rem;
        align-items: center;
    }
    .content-main {
        order: 1;
        width: 100%;

    }
    
    .image {
        order: 0;

    }
    
    .title {
        font-size: var(--font-size-ttl-en);
    }
    
    .subtitle br,
    .heading br,
    .description br {
        display: none;
    }
    
    .divider {
        margin: 1.7rem 0;
    }
    #top-about .image {
        flex: 1;
        max-width: 100%;
        margin: 0;
        max-width: 100%;
        aspect-ratio: auto;
        position: relative;
        width: 100%;
    }
    
    #top-about .image img {
        width: 100%;
        height: auto;
    }
}
/* ABOUT&CASE 左寄せセクション共通 ==========================================*/
#top-about .content-header,
#top-case .content-header {
    display: flex;
    flex-direction: column;
    align-items: start;
}

#top-about .content-body {
    margin-top: 2.5rem;
}
/* SERVICE Section Styles =====================================================*/
#top-service .content-wrapper {
    padding: 0  13vw;
}

.top-service {
    position: relative;
    background-color: var(--color-service-bg);
    background-size: cover;
    background-position: center;
    padding: 2.14rem 0 10.5rem;
    overflow: hidden;
}
.service {
    padding: 0 ;
    background-color: var(--color-white);
}

/* Service Title Styles */
.service-title {
    font-size: var(--font-size-ttl-en);
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.05em;
    color: var(--color-black-navy);
    margin-bottom: 0.5rem;
}

#top-service .description {
    width: 100%;
    text-align: center;
    margin-top: 4rem;
}

.service-subtitle {
    font-size: var(--font-size-ttl-ja);
    text-align: center;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.service-underline {
    width: 3rem;
    height: 4px;
    background-color: var(--color-lightblue);
    margin: 0 auto 2rem;
}

.service-description {
    font-size: var(--font-size-text);
    text-align: center;
    line-height: 1.8;
}

#top-service .content-main {
    display: flex;
    flex-direction: column;
    align-items:center ;
    flex: 1;
}
#top-service .more {
    margin-top: 0;
}
/* Service Grid Layout */
.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding: 4.5rem 0 4.75rem;
}

.service-card-content {

    background: linear-gradient(0deg, #19334C 0%, #1F415F 22.5%, #2B5375 44%, #395F80 67.5%, #7191AC 100%);
    color: var(--color-white);
    padding:  6.44rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
/* Apply different layout for the last two cards */
.service-grid .service-card:nth-child(n+3) {
    grid-column: span 1;
    flex-direction: column;
    height: auto;
}
.service-card:nth-child(3) .service-icon svg {
    margin-left: 0.25rem;
}

.service-grid .service-card:nth-child(n+3) .image-container img {
    aspect-ratio: 16 / 9;
}

.service-card:nth-child(1) .service-card-content,
.service-card:nth-child(2) .service-card-content {
    flex: 0 0 45%;
}

.service-card:nth-child(3) .service-card-content,
.service-card:nth-child(4) .service-card-content {
    padding: 3rem 0 3rem;
    height: auto;
}

/* Service Card Styles */
.service-card {
    display: flex;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-medium);
    height: 25rem;
}

.service-logo {
    margin-bottom: 1rem;
    color: var(--color-white);
    text-align: center;
    font-size: 2.325rem;
    font-weight: 700;
    line-height: 4rem;
letter-spacing: -0.02625rem;
}
.service-logo img {
    width: 28rem;
}

.service-card-description {
    font-size: var(--font-size-text);
    line-height: 2.2rem; /* 190.909% */
    letter-spacing: 0.0625rem;
}

.service-card-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform var(--transition-medium);
    object-position: top;
}
@media (hover: hover) and (pointer: fine) {
.service-card:hover .image-container img {
    transform: scale(1.05);
}
}

@media screen and (max-width: 1600px) {

    .service-logo {
        font-size: 1.875rem;
        margin-bottom: 0;
    }
}
@media screen and (max-width: 1500px) {
    #top-about .description {
        width: 100%;
    }
    #top-service .content-wrapper {
        padding: 0 7rem;
    }
    .service-grid {
        padding: 5rem 0 0;
    }
    .service-card {
      height: calc(100% - 1rem);
    }
    .service-card-content {
        padding: 6rem 3rem;
    }

    .service-logo img {
        width: 25rem;
    }
    .service-card-description {
        font-size: 1.105rem;
        line-height: 1.7;
    }
    .service-card:nth-child(3) .service-card-content,
.service-card:nth-child(4) .service-card-content {
    padding: 3rem 0 5rem;
    height: auto;
    gap: 1.2rem;
}
.top-service {
    padding: 6rem 0 10.5rem;
}
  }
@media screen and (max-width: 1200px) {
    .top-service {
        padding: 5rem 0 4.38rem;
    }

    .top-service .content {
        width: 100%;
    }
    #top-service .description {
        margin-top: 2.5rem;
    }

    .service-logo {
        margin-bottom: 1.5rem;
    font-size: 2rem;
    font-style: normal;
    font-weight: 700;
    line-height: 3.5rem; /* 175% */
    }
    /* Apply different layout for the last two cards */
.service-grid .service-card:nth-child(n+3) {
    grid-column: span 1;
    flex-direction: column;

}
    .service-card:nth-child(3) .service-card-content,
.service-card:nth-child(4) .service-card-content {
    padding: 1.5rem 0 4rem;
        flex: 0 0 35%;
    height: auto;
}

.service-card-description {
    width: 70%;
}

.service-logo img {
    width: 18rem;
}

.service-card:nth-child(1) .service-card-content,
.service-card:nth-child(2) .service-card-content {
    flex: 0 0 35%;
}
.service-grid .service-card:nth-child(n+3) .image-container img {
    aspect-ratio: auto;
    height: 100%;
}

}
@media screen and (max-width: 768px) {

    #top-service .content-wrapper {
        padding: 0  1.87rem;
    }

    

    /* Service Card Styles */

    .service-card {
        flex-direction: column;
        height: auto;
        /* gap: 1.5rem; */
        position: relative;
    }
    .service-card-content {
        text-align: center;
        padding-bottom: 0;
    }

    .service-card-title {
        font-size: 1.5rem;
        line-height: 2.25rem;
        margin-bottom: 1rem;
    }

    .service-card-description {
        font-size: 0.875rem;
        line-height: 1.75rem;
        width: 100%;
        text-align: left;
    }
    .service-logo img {
        width: 13rem;
    }
    .top-service {
        padding: 5rem 0 4.38rem;
    }

    #top-service .description {
        margin-top: 0.5rem;
    }
/* Apply different layout for the last two cards */
.service-grid .service-card:nth-child(n+3) {
    grid-column: span 1;
    flex-direction: column;
    height: auto;
}
    .service-card:nth-child(3) .service-card-content,
.service-card:nth-child(4) .service-card-content {
    flex: 0 0 50%;
    padding: 1.5rem 1.3rem 2rem;
    height: auto;
}

.service-card:nth-child(n + 3) .service-card-content .service-card-description {
    width: 100%;
}

.service-card:nth-child(n + 3) .service-card-content .service-logo {
    max-width: 100%;
}
.service-logo {
    margin-bottom: 0;
font-size: 1.15rem;
font-style: normal;
font-weight: 700;
line-height: 2.1875rem; /* 175% */
width: 100%;
max-width: 13rem;
}

}

/* Media Queries for Responsive Design */
@media screen and (max-width: 1200px) {
    .content-wrapper {
        padding: 0 7rem;
    }
        .service-grid {

        padding: 0;
    }

    .service-card-image {
        order: 1;
        height: 400px;
        flex: auto;
    }
}

@media screen and (max-width: 1024px) {
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        height: auto;
        flex-direction: column;
    }
    
    .service-card-content {
        padding: 1.5rem 0 4rem;
        order: 2;
    }


}

@media screen and (max-width: 768px) {
    .content-wrapper {
        padding: 0 2rem;
    }
    
    .service-title {
        margin-bottom: 0.25rem;
    }
    
    .service-subtitle {
        margin-bottom: 0.75rem;
    }
    
    .service-underline {
        margin-bottom: 1.5rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
    }
    
    .service-card {
        height: auto;
        flex-direction: column;
    }
    
    .service-card-content {
        flex: 0 0 auto;
        padding: .8rem 1.5rem 1.5rem 2rem;
        min-height: 180px;
        order: 2;
    }
    
    .service-card-image {
        height: 240px;
        order: 1;
    }
    

    .service-grid .service-card:nth-child(n+3) {
        display: flex;
    }
}
/* WORKS Section Styles =====================================================*/
.top-works .description {
    margin: 4rem 0 0 0;
}
.top-works {
    position: relative;
    background-color:  var(--color-white);
    padding: 2.14rem 0 11rem ;
    overflow: hidden;
}

#top-works .content-body {
    background-image: url('../assets/top/top-works-bg.webp');
    background-size: cover;
    background-position: center;
    justify-content: center;
    align-items: center;
    padding: 0 10vw;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    column-gap: 4.6rem;
    row-gap: 6.56rem;
    width: 100%;
    padding: 3rem 0 7.5vw;
    grid-auto-rows: 1fr;
}

.video-card {
    position: relative;
    overflow: hidden;
    transform: translateX(-20px);
    opacity: 0;
    transition: transform 0.25s ease-out, 
                opacity 0.25s ease-out;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.video-card::before {
    content: '';
    position: absolute;
    top: 8%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 84, 125, 0.5);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}
  
.video-card.appear {
    transform: translateX(0);
    opacity: 1;
}
  
.video-card.appear::before {
    animation: flashPink 0.3s ease-out forwards;
}
  
@keyframes flashPink {
    0% {
      opacity: 0;
    }
    20% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
}

.video-number {
    position: relative;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-navy);
    z-index: 2;
    padding: 0 0 0 0.7rem;
}
  
.video-thumbnail {
    position: relative;
    width: 100%;
    height: auto;
    padding-bottom: 56%;
    overflow: hidden;
    margin-top: 0.3rem;
}

.video-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(67, 67, 67, 0.00) 49%, rgba(58, 58, 58, 0.80) 100%);    z-index: 1;
    pointer-events: none;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium) ease;
}

.video-thumbnail img::after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
.video-card:hover .video-thumbnail img {
    transform: scale3d(1.1, 1.1, 1.1);
}
}
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 2px solid var(--color-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2;
}
  
.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent var(--color-white);
    margin-left: 3px;
}
  
.video-info {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}
  
.video-title {
    font-size: var(--font-size-text);
    font-weight: 700;
    color: var(--color-black-navy);
    margin-top: 1.7rem;
    min-height: 2.05rem;
}

.video-subtitle {
    font-size: var(--font-size-tag-text);
    font-weight: 500;
    color: var(--color-contents-description);
    line-height: 1.35;
    margin-top: 0.65rem;
    flex: auto;
}

.news-label {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-black-navy);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.video-description {
    font-size: 1.125rem;
    color: var(--color-contents-description);
    margin-top: 1.56rem;
    line-height: 1.6;
    flex: 1;
}
  
.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}
  
#top-works .tag,
#works-splide .tag {
    font-size: var(--font-size-tag-text);
    padding: 0.5rem 1.5rem;
    border-radius: 2.96875rem;
    background-color: var(--color-tag-bg-right);
    color: var(--color-navy);
    white-space: nowrap;
}
@media screen and (min-width: 1900px) {
    #top-works .content-body {
        background-image: url('../assets/top/top-works-bg.webp');
        background-size: cover;
        background-position: center;
        justify-content: center;
        align-items: center;
        padding: 0 13vw;
    }
    .video-grid {
        display: grid;
        grid-template-columns: repeat(3, 31rem);
        justify-content: center;
        column-gap: 4.6rem;
        row-gap: 6.56rem;
        width: 100%;
        padding: 3rem 0 10rem;
        grid-auto-rows: 1fr;
    }
    .video-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
        margin-top: 2rem;
    }
}

@media screen and (max-width: 1500px) {
    .video-title {
        margin-top: 1.25rem;
    }
    .video-subtitle {
        font-size: 0.9375rem;
        margin-top: 0.25rem;
    }
    .video-tags {
        margin-top: 1.25rem;
    }
    #top-works .tag,
    #works-splide .tag {
        padding: 0.5rem 1rem;
    }
    .video-grid {
        padding: 3rem 0 0;
        row-gap: 5rem;
    }

    #top-works .content-body {
        padding: 0 7.5vw;
    }
}
@media screen and (max-width: 1200px) {
    .content-wrapper {
      padding: 0 7rem;
    }
    
    .video-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .video-card {
        width: 80%;
    }
}
  
@media screen and (max-width: 768px) {
    .content-wrapper {
      padding: 0 1.5rem;
    }
    
    .video-grid {
      grid-template-columns: 1fr;
    }
    
    .play-button {
      width: 50px;
      height: 50px;
    }
    
    .play-button::after {
      border-width: 8px 0 8px 12px;
      margin-left: 2px;
    }


    #top-works .content-body {
        padding: 0 7.5vw;
    }

}

/* モバイル用WORKSセクション====================================================*/
.mobile-works {
    display: flex;
    position: relative;
    background-color: var(--color-white);
    padding: 8.94rem 0 13rem;
    overflow: hidden;
}

.mobile-works .content-body {
    background-image: url('../assets/top/top-works-bg.webp');
    background-size: cover;
    background-position: center;
    justify-content: center;
    align-items: center;
    padding: 0 13vw;
}

/* Splideカルーセルのスタイル調整 */
#works-splide {
    padding: 1.5rem 0 6rem;
    width: 100%;
}

#works-splide .splide__slide {
    opacity: 1;
    transform: none;
}

#works-splide .video-card {
    transform: none;
    opacity: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#works-splide .video-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#works-splide .video-description {
    flex: 1;
}

#works-splide .splide__track {
    overflow: visible;
}

#works-splide .splide__arrow {
    background: var(--color-navy);
    opacity: 1;
    width: 2.5rem;
    height: 2.5rem;
}

#works-splide .splide__arrow svg {
    fill: white;
}

#works-splide .splide__pagination {
    margin-top: 2rem;
}

#works-splide .splide__pagination__page {
    background: #ccc;
    margin: 0 0.5rem;
    opacity: 1;
}

#works-splide .splide__pagination__page.is-active {
    background: var(--color-navy);
    transform: scale(1.2);
}

@media screen and (max-width: 1200px) {
    .mobile-works {
        display: flex;
        position: relative;
        background-color: var(--color-white);
        padding: 5rem 0 4.38rem;
        overflow: hidden;
    }
    #mobile-works .description {
        margin-top: 2.5rem;
    }
}
/* メディアクエリによる表示切り替え */
@media screen and (max-width: 1024px) {
    
    /* モバイル用調整 */
    .mobile-works .content-wrapper {
        padding: 0 7rem;
            position: relative;
    }

    .mobile-works .content-wrapper::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
            background: url('../assets/top/sp-technology.webp');
            
            background-size: cover;
            background-position: center;
            width: 100%;
            height: 100%;
            z-index: 0;
            opacity: 0.2;
    }
}

@media screen and (max-width: 768px) {
    .mobile-works .content-wrapper {
        padding: 0 1.5rem;
    }
    
    #works-splide {
        padding: 2.5rem 0 5rem;
    }
    
    #works-splide .play-button {
        width: 50px;
        height: 50px;
    }
    
    #works-splide .play-button::after {
        border-width: 8px 0 8px 12px;
        margin-left: 2px;
    }
    #mobile-works .description {
        margin-top: 2.5rem;
    }
}
@media screen and (max-width: 768px) {
    .mobile-works {
        display: flex;
        position: relative;
        background-color: var(--color-white);
        padding: 5rem 0 4.38rem;
        overflow: hidden;
    }
    #mobile-works .description {
        text-align: center;
        margin-top: 0;
    }
}

/* CASE Section Styles =====================================================*/
.top-case {
    position: relative;
    background: linear-gradient(0deg, #19334C -16.16%, #1F415F 13.26%, #2B5375 41.37%, #395F80 72.09%, #7191AC 114.58%);
}   
#top-case .content-wrapper {
    align-items: flex-start;
    padding: 8.75rem 0 5.63rem 9.37rem;
}

/* CASEセクションのコンテンツを横並びに */
#top-case .content {
    display: flex;
    gap: 5rem;
}

#top-case .content-header {
    flex: 0 0 25%;
}

#top-case .content-body {
    /* flex: 0 0 65%; */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2rem;
    overflow: hidden;
    position: relative;
    width: 100%;
}

#top-case .splide {
    width: 100%;
}

#top-case .splide__slide {
    width: auto;
    height: 38.75rem;
    min-width: 0;
    box-sizing: border-box;
    flex-shrink: 0;
    margin-right: 1rem; /* 必要であれば余白 */
}
#top-case .splide__slide a {
    height: 100%;
}
#top-case .splide__ track {
    overflow: hidden;
}

#top-case .splide__list {
    width: 100%;
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
}
/* CASE Section Title Styles */
#top-case .title {
    font-size: var(--font-size-ttl-en);
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #ffffff 25%,
        #ffffff 25%,
        #B3CCD8 50%,
        #B3CCD8 50%,
        #ffffff 75%,
        #ffffff 75%,
        #ffffff 100%
    );
    background-size: 400% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    line-height: 1;
    animation: gradientMove 3s linear;
}
#top-case .subtitle {
    color: var(--color-tag-bg-right);
}
#top-case .divider {
    background: linear-gradient(90deg, var(--9, #01A1F0) 0%, var(--5, #B3CCD8) 100%);
}
#top-case .description {
    color: var(--color-white);
    width: 100%;
    margin-top: 4rem;
}
#top-case .c-link__txt {
    color: var(--color-white);
}

/* Case Card Styles */
.case-card {
    background-color: var(--color-white);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    background-color: var(--color-white);
    width: 100%;
    height: 100%;
}

.case-card-image {
    width: auto;
    height:  19.5rem;  
    overflow: hidden;
    flex: none;
}

.case-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    object-position: top;
}
@media (hover: hover) and (pointer: fine) {
.case-card:hover .case-card-image img {
    transform: scale(1.05);
}
}
.case-card-content {
    padding: 2.75rem 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.case-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-black-navy);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.case-card-company {
    font-size: 1rem;
    color: var(--color-contents-description);
    margin-bottom: 0;
    font-weight: 600;
}

.case-card-tags {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    gap: 0.67rem;
    align-items: flex-start;
}

.case-card-tags .tag {
    padding: 0.6rem 1.5rem;
}


.tag-primary {
    color: var(--color-white);
    background-color: var(--color-navy);
}

.tag-secondary {
    background-color: var(--color-tag-bg-right);
    color: var(--color-navy);
}
.tag {
    display: inline-flex;
    padding: 8px 24px;
    border-radius: 100px;
    font-size: var(--font-size-tag-text);
    transition: background-color var(--transition-fast);
}

@media screen and (min-width: 1900px) {
/* Case Card Styles */
.case-card {
    background-color: var(--color-white);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    background-color: var(--color-white);
    width: 100%;
    height: 100%;
}
}
@media screen and (max-width: 1500px) {
    #top-case .splide__slide {
        height: 30rem;
    }
    .case-card {
        height: 32.5rem;
    }
    
    #top-case .content {
        gap: 7rem;
    }
    #top-case .content-header {
        margin-top: 0;
    }
    .case-card-tags {
            margin-top: 1.5rem;
        }

        #top-case .content-wrapper {
            align-items: flex-start;
            padding: 8.75rem 0 5.63rem 7.5vw;
        }
        .case-card-content {
            padding: 2rem 2rem 2rem;
        }
        .case-card-image {
            height:  16.5rem;  
        }
}

@media screen and (max-width: 1200px) {
    #top-case .splide__slide {
        height: 100%;
    }
    .case-card-image {
        height: 19rem;
        object-fit: cover;
        width: 100%;
        min-width: 0;
    }

    .case-card {
        height: 36rem;
    }
    .case-card-content {
        padding: 2.5rem 2rem 2rem;
    }
    .case-card-title {
        font-size: 1.125rem;
    }
    #top-case .description {
        margin-top: 2.5rem;
    }

}
@media screen and (max-width: 768px) {
    .case-card {
        width: 100%;
        min-width: 0;
        height: 30rem;
    }
    .case-card-image {
        min-width: 0;
        height: 15rem;
    }
    .case-card-content {
        padding: 1rem;
    }
    #top-case .content {
        flex-direction: column;
        gap: 1.5rem;
    }
    #top-case .content-header {
        width: 100%;
        flex: none;
    }
    #top-case .content-body {
        align-items: stretch;
        gap: 1rem;
    }
    #top-case .splide__slide {
        width: calc(100% + 0rem);
    }
    #top-case .description {
        margin-top: 0.5rem;
    }
    .splide__track, .splide__list, .splide__slide {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
}
/* splide Styles====================================================*/
#top-case .splide__arrows {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

#top-case .splide__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}
@media (hover: hover) and (pointer: fine) {
#top-case .splide__arrow:hover {
    background-color: var(--color-lightblue);
}
}
#top-case .splide__arrow svg {
    fill: var(--color-white);
    width: 1.2em;
    height: 1.2em;
}

/* 事例スライダーナビゲーション */
.case-slider-nav {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin: 3rem 0 3rem;
    padding-left: 30rem;
    width: 100%;
    position: relative;
}

.case-nav-btn {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  text-decoration: none;
  color: inherit;
  gap: 0.88rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: transform 0.3s ease;
}

.case-nav-btn__txt {
  color: var(--color-black-navy);
  font-size: var(--font-size-text);
  font-family: "Noto Sans JP", sans-serif;
  transition: transform 0.3s ease;
}

/* 丸いボタンの外観 */
.case-nav-btn__circle {
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1/1;
  position: relative;
  flex-shrink: 0;
  width: 4.375rem;
  height: 4.375rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
}

/* 背景と枠線 */
.case-nav-btn__circle::before,
.case-nav-btn__circle::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 0;
}

.case-nav-btn__circle::before {
  transition: transform var(--transition), opacity var(--transition);
  background-color: rgba(255, 255, 255, 0.1);
}

.case-nav-btn__circle::after {
  background-color: #fff;
  transform: scale(1.5);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
}

/* 矢印ホルダー */
.case-nav-btn__arrow {
  display: flex;
  position: relative;
  z-index: 1;
  width: 2.4rem;
  height: 1.7rem;
  overflow: hidden;
}

/* 両方の矢印共通 */
.arrow {
  position: absolute;
  top: 0;
  font-size: 1.2rem;
  transition: transform var(--transition), opacity var(--transition);
}

/* 青い矢印：初期表示・右へスライドアウト */
.arrow--blue {
  color: var(--color-lightblue);
  left: 0;
  transform: translateY(0);
  opacity: 1;
}

/* 白い矢印：初期非表示・左からスライドイン */
.arrow--white {
  color: #fff;
  left: 0;
  transform: translateX(-100%);
  opacity: 0;
}
/* 前へボタンの矢印スタイル */
.case-nav-btn.prev-btn .arrow--blue {
  color: #fff;
  left: 0;
  transform: translateX(100%);
  opacity: 0;
}

.case-nav-btn.prev-btn .arrow--white {
  color: #fff;
  left: 0;
  transform: translateY(0);
  opacity: 1;
}

/* 次へボタンの矢印スタイル（通常通り） */
.case-nav-btn.next-btn .arrow--blue {
  color: #fff;
  left: 0;
  transform: translateY(0);
  opacity: 1;
}

.case-nav-btn.next-btn .arrow--white {
  color: #fff;
  left: 0;
  transform: translateX(-100%);
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  /* 🧲 hover時アニメーション */
  .case-nav-btn:hover .case-nav-btn__txt {
    transform: translateX(0.5rem);
  }
  
  .case-nav-btn:hover .case-nav-btn__circle::before {
    transform: scale(1.6);
    opacity: 0;
  }
  
  .case-nav-btn:hover .case-nav-btn__circle::after {
    transform: scale(1);
    opacity: 1;
  }
  
  /* 前へボタンのホバーアニメーション（逆方向） */
  .case-nav-btn.prev-btn:hover .arrow--blue {
    transform: translateY(0);
    opacity: 1;
    color: var(--color-navy);
  }
  
  .case-nav-btn.prev-btn:hover .arrow--white {
    transform: translateX(-100%);
    opacity: 0;
  }
  
  /* 次へボタンのホバーアニメーション（通常通り） */
  .case-nav-btn.next-btn:hover .arrow--blue {
    transform: translateX(100%);
    opacity: 0;
  }
  
  .case-nav-btn.next-btn:hover .arrow--white {
    transform: translateY(0);
    opacity: 1;
    color: var(--color-navy);
  }
}

/* 無効化時のスタイル */
.case-nav-btn.disabled {
  pointer-events: none;
  cursor: not-allowed;
  border-radius: 50%;
}

/* 無効化時の矢印スタイル */
.case-nav-btn.disabled .arrow--blue {
  color: var(--color-white);
  opacity: 1;
  transform: translateY(0);
}

.case-nav-btn.disabled .arrow--white {
  color: var(--color-navy);
  opacity: 0;
  transform: translateX(-100%);
}

/* 前へボタンが無効化時の矢印 */
.case-nav-btn.prev-btn.disabled .arrow--blue {
  color: var(--color-white);
}

.case-nav-btn.prev-btn.disabled .arrow--white {
  color: var(--color-navy);
}

/* 次へボタンが無効化時の矢印 */
.case-nav-btn.next-btn.disabled .arrow--blue {
  color: var(--color-white);
}

.case-nav-btn.next-btn.disabled .arrow--white {
  color: var(--color-navy);
}

.case-page-counter {
  font-size: 1.375rem;
  color: var(--color-white);
  font-weight: 500;
}

@media screen and (max-width: 768px) {
  .case-nav-btn__circle {
    width: 2.8125rem;
    height: 2.8125rem;
  }
  
  .case-nav-btn__txt {
    font-size: 0.875rem;
  }
}

/* Animations */
@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media screen and (max-width: 1500px) {
    .case-slider-nav {
        padding-left: 23rem;
    }
}
@media screen and (max-width: 1200px) {
        /* ナビゲーションボタンも中央揃えに */
        .case-slider-nav {
            gap: 1.5rem;
            padding-left: 0;
            justify-content: center;
        }
}
/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .content-wrapper {
        padding: 0 7rem;
    }

    #top-case .content-wrapper {
        padding: 5rem 7rem 6.31rem;
    }

    .case-container {
        flex-direction: column;
        gap: 2rem;
    }

    .case-header {
        flex: none;
        width: 100%;
        position: static;
    }

    #top-case .splide {
        flex: none;
        width: 100%;
        margin-right: 0;
    }
    
    /* CASEセクションをモバイル表示では中央揃えに */
    #top-case .content {
        flex-direction: column;
        gap: 2.5rem;
        align-items: center;
    }
    
    #top-case .content-header{
        flex: 1 0 100%;
        text-align: left;
        max-width: 80%;
    }

    #top-case .content-body {
        align-items: center;
        width: 100%;
        max-width: 30rem;
        margin: 0 auto;
    }
    

    
    /* ナビゲーションボタンのサイズ調整 */
    .case-nav-btn {
        width: auto;
        height: 3.5rem;
    }
}

@media screen and (max-width: 768px) {
    .content-wrapper {
        padding: 0 1.5rem;
    }

    #top-case .content-wrapper {
        padding: 6rem 1.5rem 5.7rem;
    }
    
    .case {
        padding: 3rem 0;
    }
    
    .case-title {
        font-size: var(--font-size-ttl-en);
    }
    
    .btn-view-all {
        width: 100%;
    }

    #top-case .splide {
        margin-right: 0;
    }
    #top-case .content {
        width: 100%;
    }
    #top-case .content-header {
        max-width: 100%;
    }

    #top-case .content-body {
        max-width: 100%;
        gap: 0;
    }
    
    /* ナビゲーションボタンのサイズ調整（モバイル） */
    .case-nav-btn {
        width: 3rem;
        height: 3rem;
    }
    
    .case-nav-btn span {
        font-size: 1.2rem;
        padding-bottom: 0.2rem;
    }
    
    .case-page-counter {
        font-size: 1.2rem;
    }
    
    .case-slider-nav {
        gap: 1rem;
        margin-top: 2.5rem;
        margin-bottom: 0;
        justify-content: center;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
    }
}

/* Client Logo Section Styles */
.client-logo {
    position: relative;
    width: 100%;
    height: 12vh;
    overflow: hidden;
    padding: 0;
    background-color: var(--color-white);
    display: flex;
    align-items: center;
    box-shadow: 0px 5px px 0px rgba(0, 0, 0, 0.10);  
 
}

.client-logo::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 0;
    width: 100%;
    height: 2rem;
    background: var(--color-white);
}

/* Splideスライダーの高さを調整 */
.client-logo .splide {
    width: 100%;
    height: 100%;
   
}

.client-logo .splide__track {
    height: 100%;
}

.client-logo .splide__list {
    height: 100%;
    align-items: center;
}

.client-logo .splide__slide {
    height: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.client-logo .splide__slide img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

@media screen and (min-width: 1900px) {
    /* Client Logo Section Styles */
.client-logo {
    position: relative;
    width: 100%;
    height: 14vh;
    overflow: hidden;
    padding: 1rem 0;
    background-color: var(--color-white);
}
}
@media screen and (min-width: 1025px) {
    .service-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-grid .service-card:nth-child(-n+2) {
        grid-column: 1 / -1;
    }
}
@media screen and (max-width: 768px) {
    .client-logo {
        margin-top: 6.8rem;
        margin-bottom: .5rem;
        position: relative;
        width: 100%;
        height: 8vh;
        overflow: hidden;
        padding: 0;
        background-color: var(--color-white);
        display: flex;
        align-items: center;
    }


}



    /* =============================
    動画ポップアップ用CSS
    ============================= */
    .video-popup-overlay {
        position: fixed;
        z-index: 9999;
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.85);
        display: none;
        align-items: center;
        justify-content: center;
        transition: opacity 0.2s;
        }
    
        .video-popup-overlay.active {
        display: flex;
        }
    
        .video-popup-content iframe {
            height: 30rem;
            width: 50rem;
        }
    
        .video-popup-content {
        position: relative;
        background: transparent;
        /* max-height: 90vh; */
        margin: 0 16px;
        max-width: calc(100vw - 32px);
        box-sizing: border-box;
        }
    
        .video-popup-iframe,
        .video-popup-video {
        width: 80vw;
        height: 45vw;
        max-width: 1200px;
        max-height: 70vh;
        background: #000;
        border-radius: 10px;
        box-shadow: 0 4px 24px rgba(0,0,0,0.4);
        }
    
        @media (max-width: 1200px) {
        .video-popup-content {
            margin: 0 16px;
            max-width: calc(100vw - 32px);
            box-sizing: border-box;
        }
        .video-popup-iframe,
        .video-popup-video {
            width: 100%;
            max-width: 100%;
    
        }

        .video-popup-content iframe {
            height: 20rem;
            width: 40rem;
        }
        }
    
        @media (max-width: 768px) {
        .video-popup-content {
            margin: 0 4px;
            max-width: 100vw;
            box-sizing: border-box;
        }
        .video-popup-iframe,
        .video-popup-video {
            width: 100vw;
            max-width: 100vw;
            height: 100%;
            max-height: 50vh;
            border-radius: 10px;
        }

        .video-popup-content iframe {
            height: 14rem;
            width: 20rem;
        }


        }
    
        .video-popup-close {
        position: absolute;
        top: -3rem;
        right: -3rem;
        z-index: 10;
        background: rgba(0,0,0,0.7);
        color: #fff;
        border: none;
        border-radius: 50%;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 2rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
        }
        .video-popup-close:hover {
        background: #00547D;
        }
    

        @media (max-width: 768px) {
            .video-popup-close {
                position: absolute;
                top: -3rem;
                right: -2rem;
            }
        }
    
    