/* ヘッダーのスタイルを定義するCSS */

/* ヘッダーラベル */
.el_headerLabel {
    height: 30px;
    display: flex;
    align-items: center;
    font-size: 14px;
    background-color: var(--custom-theme-background);
}

.el_headerLabel_text {
    width: 100%;
    color: var(--custom-theme-text);
    max-width: var(--custom-width);
    margin: 0 auto;
    padding-left: 10px;
    text-align: left;
}

/* spボタンメニュー */
.el_spMenuBtn {
    width: 50px;
    min-width: 50px;
    height: 50px;
    cursor: pointer;
    position: relative;
}

.el_spMenuBtn_line {
    display: block;
    margin: 0;
    border: none;
    width: 50%;
    height: 3px;
    background: var(--custom-black);
    transform-origin: 0% 50%;
    position: absolute;
    left: 25%;
    transition: .3s;
}

.el_spMenuBtn:hover .el_spMenuBtn_line {
    background: var(--custom-theme-hoverColor);
}

.el_spMenuBtn_line1 {
    top: 12px;
}

.el_spMenuBtn_line2 {
    top: 21px;
}

.el_spMenuBtn_line3 {
    top: 30px;
}

.open .el_spMenuBtn_line {
    left: 30%;
}

.open .el_spMenuBtn_line1 {
    transform: rotate(45deg);
    width: 52%;
}

.open .el_spMenuBtn_line2 {
    opacity: 0;
}

.open .el_spMenuBtn_line3 {
    top: 30px;
    transform: rotate(-45deg);
    width: 52%;
}

/* SPヘッダーユニット */
.bl_spHeaderUnit {
    background-color: var(--custom-white);
    display: none;
    align-items: center;
    justify-content: space-between;
    padding-left: 10px;
    padding-right: 10px;
}

@media screen and (max-width:1280px) {
    .bl_spHeaderUnit {
        display: flex;
    }
}

/* ヘッダーロゴ */
.el_headerLogo {
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.el_headerLogo_img {
    height: 42px;
}

.el_headerLogo_text {
    font-size: 22px;
    font-weight: bold;
}

@media screen and (max-width:1280px) {
    .el_headerLogo {
        cursor: pointer;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .el_headerLogo_img {
        width: 30px;
    }

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

/* ヘッダーボタン */
.el_headerBtn {
    cursor: pointer;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    border: solid 1px var(--custom-gray-2);
    height: 30px;
    width: 100%;
}

.el_headerBtn:hover {
    background-color: var(--custom-gray-11);
}

.el_headerBtn:hover .el_headerBtn_text {
    color: var(--custom-theme-hoverColor);
}

.el_headerBtn_img {
    height: 14px;
    transform: rotate(-90deg);
}

@media screen and (max-width:1280px) {
    .el_headerBtn {
        border-radius: 0;
        border: none;
        justify-content: flex-start;
    }

    .el_headerBtn_img {
        display: none;
    }
}

/* その他の地域を見るボタン */
.el_headerBtn2 {
    cursor: pointer;
    display: flex;
    height: 80px;
    width: 100%;
    border-left: 1px solid var(--custom-gray-3);
    border-right: 1px solid var(--custom-gray-3);
    border-top: none;
    border-bottom: none;
    background-color: var(--custom-white);
    align-items: center;
    justify-content: center;
}

@media screen and (min-width:1281px) {
    .el_headerBtn2:hover {
        background-color: var(--custom-gray-11);
    }
}

.el_headerBtn2_img {
    margin-right: 5px;
}

.el_headerBtn2_text {
    margin-right: 10px;
    color: var();
}

.el_headerBtn2:hover .el_headerBtn2_text {
    color: var(--custom-theme-hoverColor);
}


.el_headerBtn2_img2 {
    transform: rotate(90deg);
}

@media screen and (max-width:1280px) {
    .el_headerBtn2 {
        border: none;
        justify-content: flex-start;
    }
}

/* ヘッダーカード */
.el_headerCard {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 5px;
}

.el_headerCard:hover {
    background-color: var(--custom-gray-11);
}

.el_headerCard_img {
    height: 24px;
}

.el_headerCard_text {
    font-size: 14px;
    word-break: keep-all;
}

.el_headerCard:hover .el_headerCard_text {
    color: var(--custom-theme-hoverColor);
}

@media screen and (max-width:1280px) {
    .el_headerCard_img {
        display: none;
    }

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

/* ヘッダーナビボタン */
.el_headerNavBtn {
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    padding: 0 10px;
    height: 35px;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.el_headerNavBtn_text {
    font-size: 18px;
}

.el_headerNavBtn:hover .el_headerNavBtn_text {
    color: var(--custom-theme-hoverColor);
}

.el_headerNavBtn_img {
    transform: rotate(90deg);
}

.el_headerNavBtn_img2 {
    display: none;
}

.el_headerNavBtn.js_headerNavBtn_active {
    background-color: var(--custom-gray-2);
}

.el_headerNavBtn.js_headerNavBtn_active .el_headerNavBtn_text {
    color: var(--custom-white);
}

.el_headerNavBtn.js_headerNavBtn_active .el_headerNavBtn_img {
    display: none;
}

.el_headerNavBtn.js_headerNavBtn_active .el_headerNavBtn_img2 {
    display: block;
}

@media screen and (max-width:1280px) {
    .el_headerNavBtn {
        justify-content: flex-start;
        padding: 0;
    }

    .el_headerNavBtn_text {
        font-size: 16px;
    }

    .el_headerNavBtn.js_headerNavBtn_active {
        background-color: var(--custom-white);
    }

    .el_headerNavBtn.js_headerNavBtn_active .el_headerNavBtn_text {
        color: var(--custom-gray-2);
    }

    .el_headerNavBtn.js_headerNavBtn_active .el_headerNavBtn_img {
        display: none;
    }

    .el_headerNavBtn.js_headerNavBtn_active .el_headerNavBtn_img2 {
        display: none;
    }
}

/* ヘッダーカードユニット */
.bl_headerCardUnit {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding-left: 25px;
}

@media screen and (max-width:1280px) {
    .bl_headerCardUnit {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding-left: 0;
    }
}

/* ヘッダーユニット */
.bl_headerUnit {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bl_headerUnit_btn {
    width: 120px;
    margin-right: 20px;
}

.bl_headerUnit_btn2 {
    width: 268px;
}


@media screen and (max-width:1280px) {
    .bl_headerUnit {
        flex-direction: column;
    }

    .bl_headerUnit_btn {
        margin-top: 10px;
        width: 100%;
        margin-right: 0;
    }

    .bl_headerUnit_btn2 {
        width: 100%;
    }
}

.js_areaModal {
    display: none;
    transition: height 0.3s ease;
    overflow: hidden;
    height: auto;
    position: fixed;
    background-color: var(--custom-white);
}

@media (max-width: 1280px) {
    .js_areaModal {
        display: flex;
        height: 0px;
        position: static;
    }
}

/* ヘッダーユニット2 */
.bl_headerUnit2 {
    width: 100%;
    border-top: 1px solid var(--custom-gray-3);
    border-bottom: 1px solid var(--custom-gray-3);
}

.bl_headerUnit2_container {
    max-width: var(--custom-width);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}

@media screen and (max-width:1280px) {
    .bl_headerUnit2 {
        border: none;
    }

    .bl_headerUnit2_container {
        align-items: stretch;
        flex-direction: column;
        height: auto;
        gap: 10px;
    }
}

/* メガメニューアイテム */
.el_megaMenuItem {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.el_megaMenuItem_text {
    display: block;
    width: 100%;
    padding-bottom: 5px;
    color: var(--custom-blue-2);
    border-bottom: 2px solid var(--custom-blue-2);
    margin-bottom: 10px;
}

.el_megaMenuItem_text__green {
    color: var(--custom-green);
    border-bottom: 2px solid var(--custom-green);
}

.el_megaMenuItem_text2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.el_megaMenuItem_list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: 20px;
    padding-left: 15px;
    border-left: solid 1px var(--custom-gray-3);
}

.el_megaMenuItem_list__2column {
    height: 67px;
    column-gap: 60px;
    row-gap: 20px;
    flex-wrap: wrap;
}

@media screen and (max-width:1280px) {
    .el_megaMenuItem_list__2column {
        height: auto;
        flex-wrap: nowrap;
    }

    .el_megaMenuItem_text {
        display: none;
    }

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

.el_megaMenuItem_list_item {}

.el_megaMenuItem_list_item:hover .el_megaMenuItem_list_item_text {
    color: var(--custom-theme-hoverColor);
}

/* メガメニュー */
.bl_megaMenu {
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
    height: 600px;
}

.bl_megaMenu_top {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 290px;
    height: 410px;
}

.bl_megaMenu_top_left {
    font-size: 24px;
}

.bl_megaMenu_top_right {
    display: flex;
    width: 500px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
}

.bl_megaMenu_top_right_item1 {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: stretch;
    align-items: flex-start;
    gap: 60px;
}

.bl_megaMenu_top_right_item1_item {
    flex-grow: 1;
}

.bl_megaMenu_bottom {
    background-color: var(--custom-gray-11);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bl_megaMenu_bottom_btn {
    width: 142px;
}

@media screen and (max-width:1280px) {
    .bl_megaMenu {
        height: auto;
        margin-top: 10px;
        position: static;
        overflow-y: visible;
    }

    .bl_megaMenu_top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        height: auto;
    }

    .bl_megaMenu_top_left {
        font-size: 16px;
    }

    .bl_megaMenu_top_right {
        width: 100%;
        justify-content: center;
        align-items: flex-start;
        gap: 10px;
        padding-left: 30px;
    }

    .bl_megaMenu_top_right_item1 {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .bl_megaMenu_top_right_item2 {
        display: none;
    }

    .bl_megaMenu_top_right_item1_item {
        flex-grow: unset;
    }

    .bl_megaMenu_bottom {
        display: none;
    }

    .bl_megaMenu_bottom_btn {}
}

/* レイアウト */
.ly_header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

.ly_header_container {
    display: grid;
    background-color: var(--custom-white);
    margin-left: auto;
    margin-right: auto;
    grid-template:
        ". header_container_item1 . header_container_item2 ." auto
        "header_container_item3 header_container_item3 header_container_item3 header_container_item3 header_container_item3" auto
        "header_container_item4 header_container_item4 header_container_item4 header_container_item4 header_container_item4" auto
        /1fr 586px minmax(auto, 120px) 574px 1fr;
}

.ly_header_container_item1 {
    grid-area: header_container_item1;
}

.ly_header_container_item2 {
    grid-area: header_container_item2;
}

.ly_header_container_item3 {
    grid-area: header_container_item3;
}

.ly_header_container_item4 {
    grid-area: header_container_item4;
}

.js_megaMenu {
    height: 0px;
}

@media screen and (max-width:1280px) {
    .js_megaMenu {
        height: auto;
    }
}

.js_megaMenu.open {
    height: auto;
}

/* position: fixed;
        top: 0;
        left: 0;
        width: 100%; */
@media screen and (max-width:1280px) {
    .ly_header {
        border-bottom: 1px solid var(--custom-gray-3);
    }

    .ly_header_container {
        padding-top: 30px;
        padding-bottom: 100px;
        display: none;
        height: calc(100vw - 80px);
        min-height: calc(100vh - 80px);
        max-height: calc(100vh - 80px);
        overflow-y: scroll;
        align-items: flex-start;
        grid-template:
            ". header_container_item3 ." auto
            ". header_container_item4 ." auto
            ". header_container_item2 ." auto
            /1fr var(--custom-width3) 1fr;
    }

    .ly_header_container_item1 {
        display: none;
    }

    .open.ly_header_container {
        display: grid;
    }
}

@media screen and (max-width:1280px) {
    .js_megaMenuBtn {
        display: none;
    }
}
