/*** ハンバーガーメニュー：アイコン ***/

/* 真ん中の線 */
.drawer-hamburger-icon {
    background-color: rgb(35, 24, 21) !important;
}

/* メニューがオープン時 */
.drawer-open .drawer-hamburger-icon {
    background-color: transparent !important;
}

/* 上下の線 */
.drawer-hamburger-icon::before,
.drawer-hamburger-icon::after {
    background-color: rgb(35, 24, 21) !important;
}

@media (width <=770px) {
    .drawer-hamburger-icon {
        background-color: var(--main-bg-color) !important;
    }

    /* 上下の線 */
    .drawer-hamburger-icon::before,
    .drawer-hamburger-icon::after {
        background-color: var(--main-bg-color) !important;
    }
}

/*** ***/

header#header.common-top-header,
header#header.kaisen-top-header {
    background-color: var(--header-color);
}

/*** 三城グループ総合トップ ***/
body.home header#header {
    background-color: var(--main-color-base) ;
}
.sanshiro-group-header {
    background-color: rgb(35, 24, 21);

    & .site-header {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;

        min-height: 100px;

        & h1 {
            text-align: center;
        }
    }
}

/*** 海鮮雅トップ ***/
.kaisen-top_html {
    /* reset html margin */
    margin: 0 !important;
}

/*** 海鮮雅トップ ***/
header#header.kaisen-top-header {

    background-color: rgba(255, 255, 255, 0.75) !important;
    width: auto;

    & .header_bottom {
        width: auto;
    }

    & #inner_header_parts {
        padding-top: 17px;
        height: auto;

        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-end;
        gap: 1rem;

        & .site-header-menu {
            display: flex;
        }

        & nav.main-navigation {
            display: flex;
            justify-content: flex-start;
            align-items: stretch;
            width: auto;

            & ul.primary-menu {
                display: flex;
                justify-content: stretch;
                align-items: center;
                margin: 0;
                width: auto;

                & li {

                    /* メインメニュー */
                    & a {
                        color: rgb(35, 24, 21) !important;

                        /* animation bottom-border-like */
                        &::after {
                            background: rgb(35, 24, 21, 0.5);
                        }
                    }
                }
            }

            /* ドロップダウンメニュー */
            & ul.sub-menu {
                & li.menu-item {
                    & a {
                        color: #ffffff !important;
                    }
                }
            }
        }

        & .kaisen-miyabi-tel {

            display: flex;
            justify-content: center;
            align-items: center;

            & a {
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 0.1rem;
                padding: 5px;

                color: #FFFFFF;
                background-color: rgb(35, 24, 21);
                border-radius: 10px;

                & .left-text {
                    display: flex;
                    flex-direction: column;

                    & .left-upper-text {
                        font-size: 0.7rem;
                    }

                    & .left-downer-text {
                        font-size: 0.4rem;
                    }

                    & .left-upper-text,
                    & .left-upper-text {
                        text-align: justify;
                        text-justify: inter-ideograph;
                        text-align-last: justify;
                    }
                }

                & .right-tel-number {
                    display: flex;
                    justify-content: left;
                    align-items: center;

                    font-size: 1.25rem;
                    font-weight: bold;
                }
            }
        }

        & .tabe-log-icon {

            & img {
                width: 70px;
                height: 70px;
                margin-bottom: 1rem;
                object-fit: contain;

                background-color: #FFFFFF;
                border-radius: 10px;
            }
        }
    }

    @media (width <=780px) {
        display: none;

    }
}

/*** 共通 ***/
header#header.common-top-header {

    & #inner_header_parts {
        padding-top: 0;

        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 1rem;

        & .site-branding {
            object-fit: contain;

            & img {
                /* alt text */
                color: #ffffff;
                padding: 1rem;
                width: 150px;
            }
        }

        & .header_top {
            /* flex-layout */
            gap: 1rem;
            margin-bottom: 0;

            & .kaisen-miyabi-tel {

                display: flex;
                justify-content: center;
                align-items: center;

                & a {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    gap: 0.1rem;
                    padding: 5px;

                    color: #FFFFFF;
                    background-color: #ff6900;
                    border-radius: 10px;

                    & .left-text {
                        display: flex;
                        flex-direction: column;

                        & .left-upper-text {
                            font-size: 0.7rem;
                        }

                        & .left-downer-text {
                            font-size: 0.4rem;
                        }

                        & .left-upper-text,
                        & .left-upper-text {
                            text-align: justify;
                            text-justify: inter-ideograph;
                            text-align-last: justify;
                        }
                    }

                    & .right-tel-number {
                        display: flex;
                        justify-content: left;
                        align-items: center;

                        font-size: 1.25rem;
                        font-weight: bold;
                    }
                }
            }

            & .tabe-log-icon {

                & img {
                    width: 70px;
                    height: 70px;
                    object-fit: contain;

                    background-color: #FFFFFF;
                    border-radius: 10px;
                }
            }
        }

        & nav.main-navigation {
            /* flex-layout */
            justify-content: flex-start;
            align-items: center;

            & ul.primary-menu {
                /* flex-layout */
                justify-content: center;
                align-items: center;

            }
        }

        @media ( width < 770px ) {

            .site-branding {
                h1, a {
                    height: 100%;
                }

                img {
                    padding: 0;
                    width: auto;
                }
            }
        }

        @media ( width <= 480px ) {
            padding: 10px;

            & .header-right {
                display: none;
            }
        }

        /*** ドロワーメニュー： kaisen-top-header ***/
        .drawer-nav {

            & .kaisen-header-navigation {

                & #menu-sp_sidebar_menu {
                    display: flex;
                    flex-direction: column;
                    justify-content: flex-start;
                    align-items: flex-start;
                    gap: 2rem;
                    height: 100%;
                    padding: 1rem;
                    margin-top: 3rem;

                    & * {
                        font-size: 1.2rem;
                        font-weight: bold;
                    }
                }
            }
        }
    }
}

/*** ドロワーメニュー ***/
nav.drawer-nav.sp_menu {
    padding-top: 2rem;
    padding-left: 1rem;

    ul {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        list-style-type: none;

        li {
            margin-bottom: 1rem;

            ul {
                list-style-type: disc;
                margin-top: 1rem;
                margin-left: 2rem;

                & li::marker {
                    color: rgb(83, 71, 65);
                }
            }
        }
    }
}