@charset "utf-8";

/************

ハンバーガーメニュー
先生のコードをコピーして扱っています。

*************/
.hum-menu {
    background-color: #252525;
    position: fixed;
    top: 3.125rem;
    bottom: 0;
    right: -100%;
    left: 100%;
    transition: transform 0.3s ease-in-out;
    z-index: 9999;
}

/* メニューが開いているとき */
body.open nav {
    transform: translateX(-100%);
}

body.open .hum-button-line {
    background-color: transparent;
}

body.open .hum-button-line:before {
    top: 0;
    transform: rotate(45deg);
}

body.open .hum-button-line:after {
    top: 0;
    transform: rotate(-45deg);

}

/* ハンバーガーボタン */
.hum-button {
    width: 50px;
    height: 50px;
    border: 0.5px solid black;
}

.hum-button-line {
    display: block;
    height: 1px;
    width: 30px;
    background-color: currentColor;
    margin: auto;
    position: relative;
}

.hum-button-line:before,
.hum-button-line:after {
    display: block;
    content: '';
    height: 100%;
    width: 100%;
    background-color: currentColor;
    position: absolute;
}

.hum-button-line:before {
    top: -8px;
}

.hum-button-line:after {
    top: 8px;
}

.main-nav {
    font-size: 1.5rem;
    list-style: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    border: 1px solid #252525;
}

.main-nav a {
    color: white;
}

.main-nav a:hover {
    color: yellow;
}



/************

ギャラリースライダー

*************/

.slider {
    margin: auto;
    width: clamp(18.125rem, 5.208rem + 64.58vw, 37.5rem);
    max-width: 600px;
}

.slider img {
    aspect-ratio: 3/2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.slider-thumb {
    width: clamp(18.125rem, 7.708rem + 52.08vw, 33.75rem);
    margin: auto;
}

.slider-thumb img {
    aspect-ratio: 3/2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}





/************

レスポンシブ

*************/
@media (min-width: 800px) {

    body.open nav {
        transform: translateX(0%);
    }

    header .broad-cast {
        position: relative;
    }

    .hum-button {
        position: fixed;
        right: -100px;
    }

    .hum-menu {
        width: 25rem;
        background: none;
        position: inherit;
        top: 0;
        bottom: 0;
        right: 0;
        left: 0;
    }

    .hum-menu .main-nav {
        flex-direction: row;
        border: none;
    }

    .hum-menu li a {
        color: #252525;
    }

    .main-nav {
        font-size: 1.5rem;
        list-style: none;
        height: auto;
        display: flex;
        align-items: center;
    }

}