@charset "UTF-8";
/* ============================================================
   YouTube動画 紹介セクション & ライトボックス
   対象ページ: 料金案内 / 施設紹介 / 女性向け / ジム未経験の方向け
   表示時は自前サムネイル画像のみ読み込み、
   再生ボタン押下時に初めてYouTube(iframe)を読み込む構成
   ============================================================ */

/* ---------- 紹介セクション ---------- */
.video-intro {
    padding: 50px 20px 60px;
    text-align: center;
}

.video-intro__head {
    position: relative;
    display: inline-block;
    padding: 0 44px;
    margin-bottom: 28px;
}

/* 左右の斜め線 */
.video-intro__head::before,
.video-intro__head::after {
    content: "";
    position: absolute;
    bottom: 8px;
    width: 72px;
    height: 4px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.15);
}

.video-intro__head::before {
    left: -12px;
    transform: rotate(74deg);
    transform-origin: center;
}

.video-intro__head::after {
    right: -12px;
    transform: rotate(-74deg);
    transform-origin: center;
}

.video-intro__catch {
    font-size: 14px;
    font-weight: 800;
    color: #333;
    margin-bottom: 6px;
}

.video-intro__title {
    font-size: 20px;
    font-weight: 800;
    color: #333;
    line-height: 1.4;
}

/* 蛍光マーカー風の下地 (デフォルト: 黄緑) */
.video-intro__title span {
    background: linear-gradient(transparent 62%, #eff9b8 62%, #eff9b8 100%);
    padding: 0 4px 6px;
}

/* 女性向けページはピンク */
.video-intro--for-women .video-intro__title span {
    background: linear-gradient(transparent 62%, #ffe8eb 62%, #ffe8eb 100%);
}

/* ---------- サムネイル + 再生ボタン ---------- */
.video-intro__thumb {
    position: relative;
    display: block;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    overflow: hidden; /* ロールオーバー時のズームをはみ出させない */
}

.video-intro__thumb img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease, filter 0.5s ease;
}

/* ロールオーバー: サムネイルを暗く + クローズアップ */
.video-intro__thumb:hover img,
.video-intro__thumb:focus-visible img {
    transform: scale(1.06);
    filter: brightness(0.6);
}

.video-intro__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 92px;
    height: 92px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(69, 69, 69, 0.7);
    transition: background 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

/* 白い三角 */
.video-intro__play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 16px 0 16px 28px;
    border-color: transparent transparent transparent #fff;
}

.video-intro__thumb:hover .video-intro__play,
.video-intro__thumb:focus-visible .video-intro__play {
    background: rgba(69, 69, 69, 0.9);
    transform: translate(-50%, -50%) scale(1.08);
}

/* ロールオーバー時に▶ボタン直下へ表示する PLAY MOVIE */
.video-intro__label {
    position: absolute;
    top: calc(50% + 56px);
    left: 50%;
    transform: translate(-50%, 12px);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.18em;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.35s ease 0.05s, transform 0.35s ease 0.05s;
    pointer-events: none;
}

.video-intro__thumb:hover .video-intro__label,
.video-intro__thumb:focus-visible .video-intro__label {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media screen and (max-width: 599px) {
    .video-intro {
        padding: 40px 15px 45px;
    }

    .video-intro__head {
        padding: 0 30px;
    }

    .video-intro__head::before,
    .video-intro__head::after {
        width: 50px;
        bottom: 4px;
    }

    .video-intro__head::before {
        left: -14px;
    }

    .video-intro__head::after {
        right: -14px;
    }

    .video-intro__catch {
        font-size: 12px;
    }

    .video-intro__title {
        font-size: 16px;
    }

    .video-intro__play {
        width: 64px;
        height: 64px;
    }

    .video-intro__play::before {
        border-width: 11px 0 11px 19px;
    }

    .video-intro__label {
        top: calc(50% + 40px);
        font-size: 12px;
    }
}

@media screen and (min-width: 1025px) {
    .video-intro {
        padding: 70px 20px 80px;
    }

    .video-intro__catch {
        font-size: 16px;
    }

    .video-intro__title {
        font-size: 24px;
    }
}

/* ---------- ライトボックス ---------- */
.video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.video-lightbox.is-visible {
    opacity: 1;
}

.video-lightbox__inner {
    position: relative;
    width: 100%;
    max-width: 960px;
}

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

/* aspect-ratio非対応の古いブラウザ向けフォールバック */
@supports not (aspect-ratio: 16 / 9) {
    .video-lightbox__player {
        height: 0;
        padding-bottom: 56.25%;
    }
}

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

.video-lightbox__close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.video-lightbox__close::before,
.video-lightbox__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

.video-lightbox__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.video-lightbox__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* ライトボックス表示中の背面スクロール禁止 */
body.video-lightbox-open {
    overflow: hidden;
}
