/* 追従背景レイヤー */
#fixed-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    /* コンテンツの後ろに配置 */
    pointer-events: none;
    /* マウスイベントをすべて透過（クリック干渉防止） */

    /* 背景画像の基本設定 */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    /* 画面全体にフィット */
}

/* スマホ用画像（標準） */
#fixed-bg {
    background-image: url('../img/2026/2026special_bg_sp.jpg');
    background-size: cover;
    background-color: #000;
}

.ye-title-image {
    margin: 20px 0 40px;
    text-align: center;
}

.ye-title-image img {
    display: block;
    margin: 0 auto;
}

@media screen and (max-width: 767px) {
    .ye-title-image {
        margin: 40px 0;
    }
}

/* PC用画像（768px以上で切り替え） */
@media screen and (min-width: 768px) {
    #fixed-bg {
        background-image: url('../img/2026/2026special_bg_pc.jpg');
        background-size: cover;
        /* または contain など */
        background-color: #000;
    }
}

/* 文字色を白にする汎用クラス */
.text-white {
    color: #ffffff !important;
}

/* クラス内のすべての要素（見出し・段落・リスト等）の文字色を白にする場合 */
.text-white * {
    color: #ffffff !important;
}

/* =========================================================
   1カラム設定（親要素の幅にフィット）
   ========================================================= */

/* ① 1カラム：透ける黒背景 */
.content-card-dark {
    width: 100%;
    /* 親要素の幅いっぱいに指定 */
    margin: 0 0 40px;
    /* 横マージンは親に任せて下マージンのみ設定 */
    padding: 30px;
    border-radius: 16px;

    /* 背景色（黒）：最後の「0.6」が透明度（α値）。0.0〜1.0で調整してください */
    background-color: rgba(0, 0, 0, 0.6);

    color: #ffffff;
    box-sizing: border-box;
}

/* 上部3カラムカード */
.column-3-card-stacked {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    box-sizing: border-box;
}

.column-3-card-stacked-gif {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 180px;
    flex: 0 0 180px;
    margin-top: 16px;
    box-sizing: border-box;
}

.column-3-card-stacked-gif img {
    display: block;
    width: 50%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
}

.column-3-card-stacked-button {
    margin-top: auto;
    padding-top: 16px;
}

.column-3-card-stacked-button .ye-btn {
    margin: 0 auto;
}

/* 下部特集カード：上部の stacked カードとは独立した可変コンテンツ */
.column-3-editorial-card {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    box-sizing: border-box;
}

.column-3-editorial-card__title {
    margin: 0;
    text-align: center;
}

.column-3-editorial-card__media {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-top: 16px;
    overflow: hidden;
    border-radius: 8px;
    flex: 0 0 auto;
}

.column-3-editorial-card__media>img,
.column-3-editorial-card__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.column-3-editorial-card__track {
    display: flex;
    width: 200%;
    height: 100%;
    animation: column-3-editorial-carousel-2 8s infinite;
}

.column-3-editorial-card__slide {
    flex: 0 0 50%;
    width: 50%;
    height: 100%;
}

@keyframes column-3-editorial-carousel-2 {
    0%, 20% {
        transform: translateX(0);
    }

    50%, 70% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.column-3-editorial-card__content {
    margin-top: 20px;
}

.column-3-editorial-card__content p {
    margin: 0;
}

.column-3-editorial-card__button {
    margin-top: auto;
    padding-top: 16px;
}

.column-3-editorial-card__button .ye-btn {
    margin: 0 auto;
}

/* =========================================================
   年末企画専用ボタン 共通スタイル
   ========================================================= */
.ye-btn {
    width: 315px;
    /* ボタンの横幅 */
    max-width: 100%;
    /* 画面幅が狭い場合のはみ出し防止 */
    height: 45px;
    /* ボタンの高さ */
    margin: 15px auto;
    /* 中央寄せ（必要に応じて調整可） */
    box-sizing: border-box;

}

/* <a>タグをボタン全体に広げてクリック可能にする処理 */
.ye-btn a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;

    /* ↓【角丸調整】数値（px）を変更して角丸の丸みを調整してください */
    border-radius: 8px;
    /* カプセル型（丸み最大）にする場合は 22.5px や 999px */

    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    box-sizing: border-box;

    /* ホバー時の色変化を滑らかにするアニメーション設定 */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* =========================================================
   ① 枠線白 / 背景透過 / 文字白（ホバー時：背景白 / 文字黒）
   ========================================================= */
.ye-btn--white a {
    border: 1px solid #ffffff;
    /* 白ボーダー1px */
    background-color: transparent;
    /* 背景透明 */
    color: #ffffff;
    /* 文字色：白 */
}

/* マウスオーバー（ホバー）時 */
.ye-btn--white a:hover {
    background-color: #ffffff;
    /* 背景色：白 */
    color: #000000;
    /* 文字色：黒 */
}

/* =========================================================
   スマホでスライダー（横スクロール）化する3カラムレイアウト
   ========================================================= */

/* 親コンテナ（PCでは通常の3カラム横並び） */
.column-3-slider-container {
    width: 100%;
    margin: 0 0 40px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    box-sizing: border-box;
}

/* =========================================================
   レスポンシブ：スマホ表示（横幅767px以下）でスライダー化
   ========================================================= */
@media screen and (max-width: 767px) {
    .column-3-slider-container {
        /* 横スクロールを有効化 */
        overflow-x: auto;
        overflow-y: hidden;

        /* 1カードごとにピタッと止める設定 */
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        /* iOSのなめらかなスクロール対応 */

        /* カード間の隙間と左右の余白調整 */
        gap: 16px;
        padding-bottom: 16px;
        /* スクロールバーとの接触防止用マージン */

        /* 横並びを維持してはみ出させる */
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .column-3-editorial-container {
        align-items: stretch;
    }

    /* スライダー化時のカードサイズ調整 */
    .column-3-slider-container>.column-3-card-stacked {
        /* スマホ画面の85%幅でカードを表示（右端に次のカードがチラ見えしてスライドできるとわかる絶妙なサイズ） */
        flex: 0 0 85%;
        max-width: 85%;

        /* スライド時に画面中央（または端）にピタッと止まる指定 */
        scroll-snap-align: center;
    }

    .column-3-editorial-container>.column-3-editorial-card {
        flex: 0 0 85%;
        max-width: 85%;
        align-self: stretch;
        height: auto;
        scroll-snap-align: center;
    }

    /* スマホでスクロールバーをすっきり見せる（非表示、または薄く表示） */
    .column-3-slider-container::-webkit-scrollbar {
        height: 4px;
    }

    .column-3-slider-container::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 4px;
    }
}

/* =========================================================
   2カラム（1つの大きなカードの中に2つのエリアを配置）
   ========================================================= */

/* 2カラムベースカード（共通設定） */
.ye-column-2-card {
    width: 100%;
    margin: 0 0 40px;
    padding: 30px;
    border-radius: 16px;
    /* カード全体の角丸 */
    box-sizing: border-box;

    /* Flexboxで内部の2エリアを横並び化 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* 上下中央揃え（上揃えにしたい場合は flex-start に変更） */
    gap: 24px;
    /* 内部の左右2エリア間の隙間 */
}

/* カード内部の2つのエリア（左右等分） */
.ye-column-2-card>div {
    flex: 1;
    /* 左右を50%ずつ均等幅にする */
    box-sizing: border-box;
}

/* ---------------------------------------------------------
   ① 背景：薄黒 / 文字：白
   --------------------------------------------------------- */
.ye-column-2-card--dark {
    /* 背景色（黒）：最後の「0.6」が透明度（α値） */
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
}

/* ---------------------------------------------------------
   ② 2カラム：内部を上揃えにする
   --------------------------------------------------------- */
.ye-column-2-card--top {
    align-items: flex-start;
}

.ye-title-center {
    text-align: center;
}

.ye-audio-card {
    width: 100%;
    margin: 0 0 40px;
    padding: 30px;
    border-radius: 16px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    box-sizing: border-box;
}

.ye-audio-card__title,
.ye-audio-card__description {
    margin: 0 0 24px;
}

.ye-audio-card__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding: 20px 0px 20px 0px;
}

.ye-audio-card__content-item {
    min-width: 0;
}

.ye-audio-card__audio-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
}

.ye-audio-card figure {
    width: 90%;
    margin: 0 auto 12px;
}

.ye-audio-card figcaption {
    margin-bottom: 4px;
    text-align: center;
}

.ye-audio-card audio {
    display: block;
    width: 100%;
}

.ye-image-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
}

.ye-image-carousel__track {
    display: flex;
    width: 100%;
    height: 100%;
}

.ye-image-carousel__slide {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

.ye-image-carousel__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ye-image-carousel__caption {
    top: 0%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    color: white;
    font-weight: bold;
    font-size: 3rem;
    font-family: "ヒラギノ角ゴ ProN W3";
    /* top: 45%; */
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    /* margin: 50px 50px 50px; */
    text-align: center;
    text-shadow: 1px 2px 3px #808080;
}

/* 画像枚数に応じてスライド幅と移動量を切り替える */
.ye-image-carousel:has(.ye-image-carousel__track > .ye-image-carousel__slide:nth-child(3)) .ye-image-carousel__track {
    width: 300%;
    animation: ye-image-carousel-slide-3 12s infinite;
}

.ye-image-carousel:has(.ye-image-carousel__track > .ye-image-carousel__slide:nth-child(3)) .ye-image-carousel__slide {
    flex-basis: 33.3333%;
    width: 33.3333%;
}

@keyframes ye-image-carousel-slide-3 {
    0%, 20% {
        transform: translateX(0);
    }

    33.3333%, 53.3333% {
        transform: translateX(-33.3333%);
    }

    66.6667%, 86.6667% {
        transform: translateX(-66.6667%);
    }

    100% {
        transform: translateX(0);
    }
}

/* =========================================================
   レスポンシブ対応（スマホ表示時に縦並び化）
   ========================================================= */
@media screen and (max-width: 767px) {
    .ye-column-2-card {
        flex-direction: column;
        /* スマホでは上下縦並びに切り替え */
        padding: 20px;
        gap: 16px;
    }

    .ye-column-2-card>div {
        width: 100%;
        /* スマホでは横幅100%に広げる */
    }

    .ye-audio-card {
        padding: 20px;
    }

    .ye-audio-card__content {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* =========================================================
   ビジュアルステージ演出
   ========================================================= */
.visual-stage {
    position: fixed;
    inset: 0;
    z-index: 1;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    color: #ffffff;
    pointer-events: none;
}

.visual-stage.is-paused {
    visibility: visible;
}

.visual-stage__scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
    /* 背景画像は #fixed-bg に任せ、この透明な座標レイヤーにタイトルと演出を重ねる */
}

.effect-layer {
    position: absolute;
    inset: 0;
}

.effect-layer {
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.effect-layer::before {
    content: "";
    position: absolute;
    inset: 0;
    /* ●の位置: backgroundの「circle at 左 右」を変更 */
    background: radial-gradient(circle at 22% 15%,
            rgba(255, 255, 245, 0.95) 0 0.275%,
            transparent 0.625%);
    filter: drop-shadow(0 0 0.35rem rgba(255, 255, 235, 0.55));
    animation: visual-twinkle 4s ease-in-out infinite;
}

.effect-layer::after {
    content: "";
    position: absolute;
    inset: 0;
    /* ●の位置: backgroundの「circle at 左 右」を変更 */
    background: radial-gradient(circle at 67% 28%,
            rgba(255, 255, 245, 0.95) 0 0.1833%,
            transparent 0.4167%);
    filter: drop-shadow(0 0 0.35rem rgba(255, 255, 235, 0.55));
    animation: visual-twinkle-two 4s ease-in-out 1s infinite;
}

.effect-shooting-star::before {
    content: "";
    position: absolute;
    inset: 0;
    /* ●の位置: backgroundの「circle at 左 右」を変更 */
    background: radial-gradient(circle at 83% 41%,
            rgba(255, 255, 245, 0.95) 0 0.1375%,
            transparent 0.3125%);
    filter: drop-shadow(0 0 0.35rem rgba(255, 255, 235, 0.55));
    animation: visual-twinkle-three 4s ease-in-out 2s infinite;
}

@keyframes visual-twinkle {
    0%, 100% {
        opacity: 0.35;
    }

    50% {
        opacity: 1;
    }
}

@keyframes visual-twinkle-two {
    0%, 100% {
        opacity: 0.35;
    }

    50% {
        opacity: 1;
    }
}

@keyframes visual-twinkle-three {
    0%, 100% {
        opacity: 0.35;
    }

    50% {
        opacity: 1;
    }
}

.effect-shooting-star {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.effect-sparkle {
    position: absolute;
    /* 棒で作る星の大きさ: widthを変更 */
    width: 3.5%;
    aspect-ratio: 1;
    pointer-events: none;
    background:
        linear-gradient(#ffffff, #ffffff) center / 1px 100% no-repeat,
        linear-gradient(90deg, #ffffff, #ffffff) center / 100% 1px no-repeat,
        linear-gradient(45deg, transparent 47%, #ffffff 49% 51%, transparent 53%) center / 75% 75% no-repeat,
        linear-gradient(-45deg, transparent 47%, #ffffff 49% 51%, transparent 53%) center / 75% 75% no-repeat;
    animation: visual-sparkle 2.4s ease-in-out var(--sparkle-delay, 0s) infinite;
}

.effect-sparkle--glasses {
    /* 棒で作る星の位置: top / leftを変更 */
    top: 69%;
    left: 35%;
}

.effect-sparkle--houses {
    /* 棒で作る星の位置: top / leftを変更 */
    top: 75%;
    left: 73%;
    --sparkle-delay: -0.8s;
}

.effect-sparkle--fish {
    /* 棒で作る星の位置: top / leftを変更 */
    top: 87%;
    left: 56%;
    --sparkle-delay: -1.6s;
}

.effect-shooting-star-item {
    position: absolute;
    display: block;
    /* 出現位置はJSのleft / topでランダム設定 */
    /* 流れ星の長さ: widthを変更 */
    width: 11%;
    height: 2px;
    border-radius: 50%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9) 75%, #ffffff);
    box-shadow: 0 0 0.5rem rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: rotate(-35deg);
    transform-origin: right center;
    animation: visual-shooting-star 1.2s linear forwards;
}

@keyframes visual-shooting-star {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) rotate(-35deg);
    }

    12% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        /* 流れ星の移動量: translate3dの1・2つ目の値を変更 */
        transform: translate3d(-110px, 75px, 0) rotate(-35deg);
    }
}

@keyframes visual-sparkle {
    0%, 100% {
        opacity: 0.35;
    }

    50% {
        opacity: 1;
    }
}

.visual-stage.is-paused .effect-layer::before,
.visual-stage.is-paused .effect-layer::after,
.visual-stage.is-paused .effect-shooting-star::before,
.visual-stage.is-paused .effect-sparkle,
.visual-stage.is-paused .effect-shooting-star-item {
    animation-play-state: paused;
}

@media screen and (max-width: 767px) {
    .visual-stage {
        position: fixed;
        inset: 0;
        z-index: 0;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
        visibility: visible;
        pointer-events: none;
    }

    .visual-stage.is-paused {
        visibility: visible;
    }

    .visual-stage__scene {
        position: absolute;
        inset: 0;
    }

    .effect-layer {
        z-index: 2;
    }

    #contents {
        position: relative;
        z-index: 1;
    }

    #wrapper>iframe {
        position: relative;
        z-index: 2;
    }

}