@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700;900&display=swap');

/* セクション全体のスタイル */
.cm-section {
    background-color: #F8F6F4;
    font-family: 'Noto Sans JP', sans-serif;
    color: #333333;
    overflow: hidden;
}

/* ヘッダー部分 */
.cm-header {
    text-align: center;
    margin-bottom: 50px;
}

.cm-title {
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 1.3;
}

.cm-divider {
    width: 27.5%;
    height: 0;
    border: none;
    border-top: 8px solid var(--color-red);
    margin: 20px auto;
    border-radius: 4px;
}

.cm-description {
    line-height: 2;
    letter-spacing: 0.05em;
    margin:  20px 0;
}

/* カルーセルラッパー */
.cm-carousel-wrapper {
    max-width: 1515px;
    margin: 0 auto;
    position: relative;
    padding: 0 80px;
}

/* 動画リストのリセット */
.cm-videos {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 個別の動画カード */
.cm-video-card {
    display: block;
}

/* YouTubeのアスペクト比(16:9)を維持するラッパー */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background: #D9D9D9;
    border-radius: 10px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
}

/* 動画下のタイトル */
.cm-video-title {
    line-height: 1.5;
    margin-top: 5px;
    text-align: center;
}

/* --- 矢印ボタンのデザイン（Splideデフォルト上書き） --- */
.splide__arrow.cm-arrow {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.75);
    border: 2px solid var(--color-red);
    border-radius: 50%;
    opacity: 1;
    transition: opacity 0.3s ease;
    top: 40%;
    transform: translateY(-50%);
}

.splide__arrow.cm-arrow:hover:not(:disabled) {
    opacity: 0.7;
}

/* SplideのデフォルトSVGアイコンを非表示 */
.splide__arrow.cm-arrow svg {
    display: none;
}

/* 独自の矢印アイコン（CSS作成） */
.splide__arrow.cm-arrow::after {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--color-red);
    border-right: 2px solid var(--color-red);
}

/* 前へボタン */
.splide__arrow--prev.cm-arrow {
    left: 80px;
}

.splide__arrow--prev.cm-arrow::after {
    transform: rotate(-135deg);
    margin-left: 5px;
}

/* 次へボタン */
.splide__arrow--next.cm-arrow {
    right: 80px;
}

.splide__arrow--next.cm-arrow::after {
    transform: rotate(45deg);
    margin-right: 5px;
}

.splide__pagination {
    bottom: 0px;
}

.splide__pagination__page {
    background: #e0e0e0;
    width: 8px;
    height: 8px;
    margin: 0 4px;
    opacity: 1;
    transition: background-color 0.3s ease;
}

/* アクティブなドット */
.splide__pagination__page.is-active {
    background: var(--color-red) !important;
    transform: scale(1);
}

.video-swipe-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.01);
}

.video-swipe-mask.is-hidden {
    display: none;
    pointer-events: none;
}

@media (max-width: 767px) {
    .cm-section {
        padding: 50px 0 30px;
    }

    .cm-carousel-wrapper {
        padding: 0 0 50px;
    }

    .cm-video-title {
        margin-top: 10px;
    }

    .cm-divider{
        width: 72.5%;
    }
}