
/* ヘッダーのスタイルシートです */

:root{
    --menu_padding_right: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: black;
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
}

.logo {
    font-size: 30px;
    padding-left: 10px;
}

.nav {
    display: block;
    padding-right: var(--menu_padding_right);
}

.menu {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li a {
    color: white;
    text-decoration: none;
}

.hamburger {
    display: none;
    padding-right: var(--menu_padding_right);
}

.menu-toggle {
    display: none;
}


.submenu{
    display: none;
    background-color: black;
    position: absolute;
    padding: 30px;
    top: 50px;
    text-decoration: underline;
}

.li_submenu{
    padding: 10px 10px;
    border-radius: 8px;
    font-size: 20px;
}

.li_submenu:hover {
    background-color: #2980b9;
    transform: translateY(-2px); /* 浮かせる演出 */
}

.li_submenu:active {
    transform: scale(0.97);
    background-color: #1c6690;
}


.bt_category_show{
    background-color: black;
    width: 100%;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.bt_category_show:hover {
    background-color: #2980b9;
    transform: translateY(-2px); /* 浮かせる演出 */
}

.bt_category_show:active {
    transform: scale(0.97);
    background-color: #1c6690;
}


/* --- スマホ用スタイル（画面幅767px以下） --- */
@media screen and (max-width: 767px) {
    
    .logo{
        font-size: 25px;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        width: 25px;
        height: 20px;
        justify-content: space-between;
    }

    .hamburger span {
        background: white;
        height: 3px;
        width: 100%;
        display: block;
        border-radius: 2px;
    }

    .nav {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: black;
        display: none;
    }

    .menu {
        flex-direction: column;
    }

    .menu li {
        text-align: center;
        padding: 10px 0;
    }

    .menu-toggle:checked + .hamburger + .nav {
        display: block;
    }

    /* サブメニューの初期状態は非表示 */
    .submenu {
        display: none;
        position: relative;
        padding: 0px;
        top: 0px;
        height: 200px;
        overflow-y: auto;
        background-color: #fff;    /* 任意：背景を白に */

    }

    .has-submenu > .submenu-toggle {
        background: none;
        border: none;
        color: white;
        font-size: 1em;
        padding: 10px;
        cursor: pointer;
        width: 100%;
        text-align: left;
    }

    .bt_category_show{
        background-color: white;
        color: black;
    }

    /* サブメニュー項目 */
    .submenu li {
        padding: 5px 0;
    }

    .li_submenu{
        font-size: 16px;
    }
}