:root {
    --bg: #0d0d0f;
    --line: rgba(255, 255, 255, 0.14);
    --header-h: 56px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
    color: #fff;
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 画像がタップ/クリックの挙動 */
.bl_catNav a,
.el_snsIcons a,
.el_headerLogo {
    transition: opacity 0.2s ease;
}

.bl_catNav a:hover,
.el_snsIcons a:hover,
.el_headerLogo:hover {
    opacity: 0.8;
}

/* ============================================================
   ヘッダー
   ============================================================ */
.bl_header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: #fff;
}

.el_headerLogo img {
    height: 24px;
    width: auto;
}

/* ハンバーガー */
.el_hamburger {
    width: 34px;
    height: 26px;
    background: none;
    border: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3px 0;
}

.el_hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 2px;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.el_hamburger.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.el_hamburger.active span:nth-child(2) {
    opacity: 0;
}

.el_hamburger.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ============================================================
   レイアウト
   ============================================================ */
.bl_layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* SPは画面幅 */
.bl_colMain {
    width: 100%;
    background: #000;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

.el_secImg {
    width: 100%;
}

/* TOP画像 */
.bl_colMain > .el_secImg {
    margin-bottom: 28px;
}

/* バナーのキャプション */
.el_secCaption {
    text-align: center;
    color: #999;
    font-size: 3.3cqw;
    line-height: 1.7;
    padding: 1.2cqw 1.2cqw 1.8cqw;
}

/* バナーの背景 */
.bl_contentSec {
    scroll-margin-top: var(--header-h);
    container-type: inline-size;
    background: #000;
}

/* バナーのリンク先（詳細画像）：SP追尾ヘッダー分の余白 */
#star01,
#kyoto01,
#team01 {
    scroll-margin-top: var(--header-h);
}

/* バナーマージン   */
.bl_contentSec .el_secImg {
    width: auto;
    max-width: calc(100% - 56px);
    margin: 0px auto 0px;
}

/* 左右カラムはSPでは非表示 */
.bl_colLeft,
.bl_colRight {
    display: none;
}

/* ============================================================
   フッター
   ============================================================ */
.bl_footer {
    padding: 32px 16px 40px;
    text-align: center;
    background: #0b0b0d;
    border-top: 1px solid var(--line);
}

.bl_footer img {
    height: 22px;
    width: auto;
    margin: 0 auto 12px;
    background: #fff;
    padding: 3px 6px;
    border-radius: 4px;
}

.el_copyright {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
}

/* フッターのコピーライト */
.footer-copyright p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.9;
    letter-spacing: 0.03em;
}

/* ============================================================
   ナビ共通パーツ（右カラム & SPメニュー）
   ============================================================ */
.el_navHead {
    text-align: center;
    font-weight: 700;
    font-size: 32px;
    letter-spacing: 0.02em;
    color: #fff;
    text-shadow:
        3px 3px 0 rgba(0, 0, 0, 0.7),
        5px 5px 5px rgba(0, 0, 0, 0.5);
    margin-bottom: 14px;
}

.bl_catNav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bl_catNav a {
    display: block;
    overflow: hidden;
    border: 5px solid #3b3b3b;
}

.bl_catNav img {
    width: 100%;
}

/* 公式SNS */
.bl_sns {
    margin-top: 26px;
    width: 78%;
    margin-inline: auto;
    text-align: center;
    padding: 22px 18px 26px;
    background: #000;
    border: 5px solid #3b3b3b;
}

/* — 777リーグ公式SNS — */
.el_snsHead {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    margin-bottom: 20px;
    white-space: nowrap;
}

.el_snsHead::before,
.el_snsHead::after {
    content: "";
    width: 22px;
    height: 2px;
    background: #fff;
}

.el_snsIcons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
}

/* SNSアイコン */
.el_snsIcons img {
    height: 108px;
    width: auto;
}

/* ============================================================
   SPメニュー
   ============================================================ */
.bl_overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 110;
}

.bl_overlay.active {
    opacity: 1;
    visibility: visible;
}

.bl_drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 85%;
    background: rgba(0, 0, 0, 0.7);
    padding: calc(var(--header-h) + 24px) 14px 28px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 120;
}

.bl_drawer.active {
    transform: translateX(0);
}

/* 閉じる× */
.el_drawerClose {
    position: absolute;
    top: 6px;
    right: 11px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 0;
}

/* 閉じる×のスタイル */
.el_drawerClose::before,
.el_drawerClose::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34px;
    height: 2px;
    background: #fff;
}

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

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

/* バナーのマージン */
.bl_drawerNav a {
    display: block;
    margin: 20px 20px;
}

.bl_drawerNav img {
    width: 100%;
}

/* SPメニュー内の公式HPロゴ */
.bl_drawerNav .el_drawerLogo {
    width: 80%;
    margin-inline: auto;
    margin-bottom: 40px;
}

/* SNSアイコン */
.bl_drawerSns {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 52px;
}

.bl_drawerSns img {
    height: 72px;
    width: auto;
}

/* ============================================================
   PC（3カラム）
   ============================================================ */
@media (min-width: 769px) {
    :root {
        --header-h: 60px;
    }

    /* PCヘッダー */
    .bl_header {
        position: static;
    }

    .bl_contentSec,
    #star01,
    #kyoto01,
    #team01 {
        scroll-margin-top: 0;
    }

    .el_hamburger {
        display: none;
    }

    .bl_layout {
        gap: 0;
        align-items: stretch;
        min-height: 100vh;
    }

    /* 左右カラム表示 */
    .bl_colLeft,
    .bl_colRight {
        display: block;
    }

    /* 左：公式取材サイト */
    .bl_colLeft {
        flex: 1 1 0;
        min-width: 0;
        overflow: clip;
        background: #0a0a0a;
        position: relative;
    }

    .el_leftInner {
        position: sticky;
        top: 0;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px 24px;
        background:
            url("../img/pc/777_lp_pc_back_l.png") right / cover no-repeat,
            #0a0a0a;
    }

    /* 縦書きテキスト画像 */
    .el_leftTxt {
        width: auto;
        height: auto;
        max-width: 88%;
        max-height: 84vh;
    }

    /* 中央：メイン */
    .bl_colMain {
        flex: 0 0 500px;
        min-width: 0;
        overflow: clip;
    }

    /* 右：取材を選択 + SNS */
    .bl_colRight {
        flex: 1 1 0;
        min-width: 0;
        overflow: clip;
        background: #0a0a0a;
    }

    .el_rightInner {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
        padding: 34px 26px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background:
            url("../img/pc/777_lp_pc_back_r.png") left / cover no-repeat,
            #0a0a0a;
    }

    /* 右カラムの中身は上限幅で拡大停止（背景はカラム幅に追従して拡大） */
    .el_rightBody {
        align-self: center;
        width: 100%;
        max-width: 500px;
        display: flex;
        flex-direction: column;
        container-type: inline-size;
    }

    .el_rightInner .bl_catNav {
        gap: 14px;
        align-items: center;
    }

    .el_rightInner .bl_catNav a {
        width: 78%;
    }

    .el_rightInner .bl_sns {
        margin-top: 30px;
    }

    /* 右カラムの見出し・SNSを幅に応じて比率スケール */
    .el_rightInner .el_navHead {
        font-size: 7.3cqw;
    }

    .el_rightInner .el_snsHead {
        font-size: 5.5cqw;
        gap: 2.7cqw;
    }

    .el_rightInner .el_snsHead::before,
    .el_rightInner .el_snsHead::after {
        width: 5cqw;
    }

    .el_rightInner .el_snsIcons {
        gap: 12.8cqw;
    }

    .el_rightInner .el_snsIcons img {
        height: 24.7cqw;
    }
}

/* 768〜900px：左右コンテンツは非表示（背景画像だけ表示） */
@media (min-width: 768px) and (max-width: 900px) {
    .el_leftTxt,
    .el_rightBody {
        display: none;
    }
}

/* 詳細ページ：最後の画像とフッターの間のスペーサー（色は各ページで指定） */
.el_pageSpacer {
    height: 360px;
}

.el_pageSpacer_star {
    background: #240002;
}

.el_pageSpacer_kyoto {
    background: #080033;
}

.el_pageSpacer_team {
    background: #121212;
}


/* テスト：中身が少なくても最低1画面・フッターを画面下端に（固定スペーサーを廃し残り高さを埋める） */
.p_fill .bl_colMain {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.p_fill .el_pageSpacer {
    flex: 1 1 auto;
    height: auto; /* 固定1000pxを打ち消す */
    min-height: 0;
}
