* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    background-color: #aa0013;
    font-family: "Noto Sans JP", sans-serif;

}

img {
    width: 100%;
}

.container {
    width: 90%;
    max-width: 1050px;
    margin: auto;
}

.content {
    width: 90%;
    margin: auto;
    max-width: 950px;
}

.hot-line {
    width: 100%;
    background-color: #ecde2a;
    padding: 30px 0 15px;
    margin-top: 35px;
}

.image-link-container {
    display: flex;
    /* 横並びにする */
    align-items: center;
    /* 高さを中央揃え */
    justify-content: space-between;
    /* 左右に配置 */
    width: 100%;
    /* 横幅いっぱい */
    gap: 1rem;
    /* 間隔 */
    flex-wrap: nowrap;
    /* 折り返し禁止（スマホでも横並び維持） */
    margin-top: 10px;
}

.inline-image {
    flex: 0 0 auto;
    /* 画像は固定幅 */
    width: 25%;
    /* 全体の25%を画像に割り当て */
    height: auto;
    object-fit: contain;
}

.inline-link {
    flex: 1;
    /* 残りの幅をURLに割り当て */
    white-space: nowrap;
    /* 改行しない */
    overflow: hidden;
    /* はみ出し部分を隠す */
    text-overflow: ellipsis;
    /* 省略記号「…」を表示 */
    color: #007bff;
    text-decoration: none;
    font-size: min(3.5vw, 39px);
}

.anshin {
    margin-top: 50px;
}

.anshin img {
    margin-bottom: 35px;
}

.youtube {
    margin: 50px auto;
}

.youtube .new {
    background-color: #f1e197;
    padding: 50px 0;
}

.youtube-title {
    font-weight: 900;
    letter-spacing: 5px;
    font-size: min(6.5vw, 39px);
}

.youtube .new .youtube-title {
    background-color: #000;
    color: white;
    width: 100%;
    display: block;
    text-align: center;
    width: 90%;
    margin: 0 auto 50px;
    padding: 15px 0;
}

.old {
    margin: 50px auto;
    border: #fff 10px solid;
}

.old .youtube-title {
    text-align: center;
    color: white;
    margin: 15px auto;
    padding: 15px 0;
}


/*//////////////////////////
        YouTube埋め込みについて
        //////////////////////////*/

.yt-block {
    width: 90%;
    margin: auto;
}

/* ギャラリーのグリッド（幅に応じて可変） */
/* 行ごとに並べを制御 */
.yt-row {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 16px;
}

/* 2×2 グリッド */
.yt-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* カード基本 */
.yt-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.yt-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 比率切替（縦長・横長） */
.yt-card--portrait {
    aspect-ratio: 3 / 5;
}

/* 例：縦長ポスター風 */
.yt-card--wide {
    aspect-ratio: 16 / 9;
}

/* 横長バナー/サムネ */

.yt-heading {
    margin: 20px 0 12px;
    font-weight: 700;
    text-align: center;
    /* 画像の見本に寄せるなら任意 */
}

/* 再生アイコンのオーバーレイ */
/*.yt-play::before {
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.4));
        }

        .yt-play::after {
            content: "";
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.9);
            clip-path: polygon(35% 25%, 35% 75%, 75% 50%);
         
        }*/

/* モーダル */
body.modal-open {
    overflow: hidden;
}

/* モーダル本体：中央寄せ用のフレックス（or グリッドでもOK） */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    /* 初期は非表示 */
    z-index: 1000;
    align-items: center;
    /* 中央寄せ */
    justify-content: center;
    /* 中央寄せ */
    padding: 24px;
    /* 端末が小さい時の余白 */
}

.modal.is-open {
    display: flex;
}

/* オーバーレイ：全面にかぶせる */
.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

/* コンテンツ：必要なサイズのみ（全画面に広げない） */
.modal__content {
    position: relative;
    z-index: 1;
    /* オーバーレイより前面 */
    width: min(92vw, 960px);
    max-height: 90vh;
    /* 画面からはみ出さない */
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 10px;
    /* お好みで */
    overflow: hidden;
    /* 角丸適用など */
    /* 影や背景が欲しければ */
    /* background: #000; */
    /* box-shadow: 0 10px 30px rgba(0,0,0,0.4); */
}

/* 16:9 埋め込み領域はそのままでOK */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

/* 縦長（ショート等） */
.modal.is-portrait .video-wrapper {
    aspect-ratio: 9 / 16;
    /* 縦基準でフィットさせる */
    height: min(90vh, 800px);
    width: auto;
    max-width: 92vw;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* 閉じるボタン（任意） */
.modal__close {
    align-self: flex-end;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* スマホ幅の微調整（必要に応じて） */
@media (max-width: 480px) {
    .yt-row {
        gap: 12px;
    }

    .yt-grid {
        gap: 12px;
    }

    .yt-play::after {
        width: 44px;
        height: 44px;
    }
}

.cm-links {
    background-color: #1d4f87;
    color: #fff;
    text-decoration: none;
    display: block;
    margin: 25px auto;
    text-align: center;
    border-radius: 25px;
    font-size: min(2.5vw, 29px);
    padding: 10px;
}

/* アイテムのラッパー */
.yt-item {
    display: flex;
    flex-direction: column;
}

/* キャプション */
.yt-caption {
    margin-top: 8px;
    text-align: center;
    padding: 5px 0;
    /* 背景が赤ベースなので白文字に */
    color: #000;
    background-color: #dfb535;
    /* 画面幅に応じて可変 */
    font-size: min(2.5vw, 29px);
    /* 2行で揃えたい場合（任意） */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

footer {
    text-align: center;
    color: white;
    margin-bottom: 50px;
}



/* 新着（未公開）のカードスタイル */
.new-coming {
    position: relative;
    /* ::before の基準とするため */
    cursor: default;
    /* カーソルを通常に戻す */
}

/* 画像をグレーにする */
.new-coming img {
    filter: grayscale(100%) brightness(40%);
    /* グレースケールと暗くする */
    transition: none;
    /* ホバー効果などを無効にする場合は追加 */
}

/* Coming Soon を表示 */
.new-coming::before {
    content: "Coming Soon";
    /* 表示するテキスト */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 中央寄せ */
    z-index: 5;
    /* 画像の上に表示 */
    color: white;
    /* 白文字 */
    /* 背景を少し透過させた黒に */
    padding: 10px 20px;
    font-weight: 700;
    font-size: min(4vw, 30px);
    /* 画面幅に応じて調整 */
    border-radius: 5px;
    letter-spacing: 2px;
}