.content-section{
    margin-bottom: 2%;
}
.content-section header{
    padding:1% 1% 1% 3%;
    margin-bottom: 2%;
    font-size: 1.4em;
}

.content-section header img{
    display: inline-block;
    vertical-align: bottom;
    height: 2em;
    margin-right: 1%;
}

#pickup.content-section header{
    background-color: #fbd9d7;
}
#new.content-section header{
    background-color: #e3f1ce;
}
#views_top.content-section header{
    background-color: #d3d9e9;
}

.content-section .slide .content-link{
    font-size: 1.6em;
    font-weight: bold;
    display: flex;
    flex-direction: column;
}
.content-section .slide .content-link .image-area{
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 3%;
}
.content-section .slide .content-link .image-area img{
    width: 100%;
    position: absolute;
    top:0;
    bottom:0;
    margin:auto;

}
.content-section .slide .content-link .title{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden; 
    overflow-wrap: break-word;
    height: 4.5em;
    padding-bottom: 0;
}
.slick-prev {
    left: 0.5vw;
    z-index: 10;
    width:auto;
}
.slick-prev img{
    width: 100%;
}
.slick-prev::before {
    content:"";
}
.slick-next {
    right: 0.5vw;
    width:auto;
}
.slick-prev.slick-disabled,.slick-next.slick-disabled{
    visibility: hidden;
}
.slick-next img{
    width: 100%;
}
.slick-next::before {
    content:"";
}
.slick-prev, .slick-next {
    height: auto;
}
.content-section .slide{
    padding: 0 3%;
}
.slick-track{
    margin-left:0;
}
#global-wrap .content-section.content-movie .section-content.movie-info h3 img{
    display: inline-block;
    margin-right: 1%;
    vertical-align: sub;
}
#global-wrap .content-section.content-movie .info-image-pdf {
    position: relative;
    overflow: hidden;
}
#global-wrap .content-section.content-movie .info-image-movie iframe,
#global-wrap .content-section.content-movie .info-image-movie video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* PDFリンクマウスオーバー時にサムネイルを暗くして「PDFを見る」を表示する */
.mask {
    width: 100%;
    height: 100%;
    position: absolute;
    overflow: hidden;
    top: 0;
    left: 0;
    opacity: 0;
    background-color: #000;
    transition: all 0.3s ease-in-out;
}
.mask p {
    font-size: 32px;
    font-weight: bold;
    position: relative;
    color: #fff;
    text-align: center;
    display: flex;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
}
.info-image-pdf-a:hover .mask {
    opacity: 0.5;
}

/* PCタブレット用スタイル */
@media screen and (min-width: 768px) {
    #global-wrap .content-section.content-movie{
        display: flex;
        padding:0 3%;
    }
    #global-wrap .content-section.content-movie .info-image-movie{
        width: 55%;
        margin-right: 5%;
        border-radius: 10px;
    }
    #global-wrap .content-section.content-movie .info-image-pdf{
        width: 55%;
        margin-right: 5%;
    }
    #global-wrap .content-section.content-movie .info-image-pdf div{
        border-radius: 10px;
        overflow: hidden;
    }
    #global-wrap .content-section.content-movie .info-image-pdf img{
        display: block;
    }
    #global-wrap .content-section.content-movie .info-content{
        width: 40%;
    }
    #global-wrap .content-section.content-movie .info-content .section-header{
        margin-bottom: 5%;
    }
    #global-wrap .content-section.content-movie .section-content.movie-info{
        padding:5%;
        border-radius: 10px;
        border: solid #ccc 2px;
    }
    #global-wrap .content-section.content-movie .section-content.movie-info h3{
        margin-bottom: 2%;
    }

    #global-wrap .content-section .section-content .content-list.movie-list li{
        margin-bottom: 2%;
    }
    .slick-slide {
        margin: 0 5px;
    }
    /* the parent */
    .slick-list {
        margin: 0 -5px;
    }
    .slick-prev {
        width: 1.5vw;
    }
    .slick-next {
        width: 1.5vw;
    }
    .content-section .content-link div{
        min-height: 2em;
    }
    .content-section .slide .content-link .image-area{
        /* aspect-ratio: 5 / 3; */
        padding-top: 56.25%; /* safari対応 */
    }
}

/* スマホ用スタイル */
@media screen and (max-width: 767px) {
    #global-wrap .content-section.content-movie{
        padding:0 3%;
    }
    #global-wrap .content-section.content-movie .info-image-movie{
        width: 100%;
        margin-bottom: 16px;
         border-radius: 10px;
    }
    #global-wrap .content-section.content-movie .info-image-pdf{
        width: 100%;
        margin-bottom: 16px;
    }
    #global-wrap .content-section.content-movie .info-image-pdf div{
        border-radius: 10px;
        overflow: hidden;
    }
    #global-wrap .content-section.content-movie .info-image-pdf img{
        display: block;
    }
    .content-section .slide{
        padding: 0 10%;
    }
    .content-section .slide .content-link .image-area{
        /* aspect-ratio: 5 / 3; */
        padding-top: 56.25%; /* safari対応 */
    }
}

/* ─────────── 拍手（いいね） / 閲覧数 ─────────── */

.counter-wrapper {
    display: flex;
    justify-content: flex-end;
    margin: 12px 0;
    gap: 12px;
}

.counter-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 2px 6px;
    border-radius: 14px;
    font-size: 17px;
    user-select: none;
    white-space: nowrap;
    line-height: 1;
    flex-shrink: 0;
    width: 100px;
}

.applause-box {
    background: #fff;
    border: 2px solid #8fda8f;
    color: #6bc96b;
    cursor: pointer;
}

.applause-box.applauded {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.view-icon {
    width: 24px;
    height: 24px;
    transition: 0.2s;
}

.clap-icon{
    width: auto;
    height: 32px;
    transition: 0.2s;
    position: relative;
    top: -2px;
}

.view-box {
    background: #007bff;
    border: 2px solid #007bff;
    color: #fff;
}

/* ─────────── PDF / 動画 サムネイル（完全統一）────────── */

/* 共通：16:9 枠を作成 */
.info-image-pdf-a,
.info-image-movie-a {
    position: relative;
    display: block;
    padding-top: 56.25%; /* 16:9 */
    border-radius: 10px;
    overflow: hidden;
}

/* PDF画像 */
.info-image-pdf-a img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 動画 */
.info-image-movie {
    width: 55%;
    margin-right: 5%;
}

.info-image-movie-a video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ─────────── レスポンシブ ─────────── */
@media (max-width: 768px) {

    .counter-wrapper {
        margin-top: 8px;
        gap: 8px;
    }

    .counter-box {
        padding: 2px 1px;
        font-size: 15px;
        gap: 4px;
        width: 90px;
    }

    /* アイコン：拍手 & 閲覧数 */
    .view-icon {
    width: auto;
    height: 24px;
    }

    .clap-icon{
    width: auto;
    height: 32px;
    }

    /* PDF / 動画をスマホで100%化 */
    .info-image-pdf,
    .info-image-movie {
        width: 100%;
        margin-right: 0;
        margin-bottom: 16px;
    }
}