﻿/*@import url(../GlobalNavigationForSP.css);*/

#headerAreaDef {
    width: 100%;
    /*height:100%;*/
    background-color: var(--background-color, #FFFDF4);
    z-index: 999999 !important;
}

.header {
    max-width: 1200px;
    margin: 0px auto;
    height: 167px;
    box-shadow: 0 2px 4px 2px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 20px 20px;

}

.header-inner {
    display: flex;
    flex-direction: row;
    max-width: 1200px;
    width: 100%;
    padding: 0px 0px;
}

.header img {
    padding-top: 0px;
}

h1.hd_header {
    margin: 0px auto;
    padding: 0px 0px 0px 0px;
}

h1.hd_header img{
    background-color:#ffffff;
}


@media screen and (max-width:980px) {
    h1.hd_header {
        margin:0px auto;
    }
}

/* ヘッダメニュー表示調整 */
@media screen and (min-width:1001px) {

    #headerAreaDef::before {
        content: '';
        width: 100%;
        height: 90px;
        display: block;
        position: absolute;
        top: 0px; /* ヘッダ上部のボーダー分の調整 */
        z-index: 10001 !important;
    }

    .header {
        position: relative;
        z-index: 10001;
        background-color: var(--background-color, #ffffff);
    }
}



/* 未使用↓ */
/* ヘッダーボタンエリア */


@media screen and (max-width:975px) {
    h1 .hd_header {
        font-weight: normal;
        display: inline-block;
        margin-top: 10px;
        margin-left: 20px;
        float: left;
        margin: 0px auto;
        text-align: center;
        position: relative;
        top: 8px;
        left: 0px;
    }

    .head_search {
        top: 80px;
        left: 50%;
        transform: translate(-50%, -50%);
        -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        max-width: 450px;
        width: 100%;
        background: #e8ecef;
        padding: 5px 0px;
        display: none;
    }
}


.head_btn {
    float: left;
    padding: 3px 20px;
    border-radius: 10px;
    margin: 0px 10px 0px 0px;
}

.Flang {
    float: left;
}

/* サイト内検索 */
#mainSearch {
    margin: 0px 15px 0px 15px;
    float: right;
}

input.searchBox {
    width: 250px;
    margin: 0px auto;
    vertical-align: middle;
}

input.btnSearch {
    margin: 0px;
    padding: 0px;
    vertical-align: middle;
}

/* サイト内検索ver2.0 */
.searchver2-input {
    width: 275px !important;
}

.IZ-select__item {
    text-align: left;
}



/* グローバルナビゲーション */


#GlobalNavigationBlock {
    /*display:none;*/
}

div#naviContainer {
    width: 99%;
    padding: 0px 0px 0px;
    margin: 0px auto;
}

div#naviArea {
    max-width: 1200px;
    margin: 0px auto;
    overflow: hidden;
    padding: 0px 0px 0px 0px;
    width: 100%;
}

    div#naviArea a {
        text-decoration: none;
        font-size: 1.1em;
        color: var(--text-color,#333333);
    }

    div#naviArea ul#navi_list {
        display: table;
        width: 100%;
        text-align: center;
        border-collapse: collapse;
        box-sizing: border-box;
    }

        div#naviArea ul#navi_list li {
            display: table-cell;
            vertical-align: middle;
            text-align: center;
            height: 38px;
            font-size: 1em;
            width: 15%;
        }


            div#naviArea ul#navi_list li div {
                vertical-align: middle;
                padding: 8px 0px 8px 0px;
            }


            div#naviArea ul#navi_list li a {
                display: block;
                border-right: 1px solid #CDCDCD;
            }


            div#naviArea ul#navi_list li:last-child a {
                border-right: none;
            }


            div#naviArea ul#navi_list li img {
                display: block;
                position: relative;
                margin: 0px auto;
                z-index: 99;
                padding: 0px 0px 0px 0px;
            }

            div#naviArea ul#navi_list li p {
                display: inline-block;
                line-height: 30px;

            }

            div#naviArea ul#navi_list li.selected p {
                /*                background-color: var(--background-color,#e0f1f1);
*/
                background: linear-gradient(transparent 75%, #ffdc00 75%);
                padding: 0px 10px;
            }

                div#naviArea ul#navi_list li.selected a {
                    color: var(--text-color,#005C7D);
                }

            /* ホームのボタン */
            div#naviArea ul#navi_list li#navi_tab_0 div {
                vertical-align: middle;
            }

div#popNaviArea {
    display: block;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: -1px auto;
    z-index: 99999;
    padding: 0px 0px 0px;
}

    div#popNaviArea ul.g_navi {
        position: absolute;
        max-width: 1200px;
        width: 100%;
        padding: 0px 0px 20px 0px;
        margin: 0px auto 0px auto;
        box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
        background-color: var(--background-color,#FFF3E4);
        border: 3px solid #D77619;
        border-radius: 20px;
        top: 20px;
    }


div#naviArea ul#navi_list li.now {
/*    background-color: var(--background-color,#FDF9EA);
*/}

    div#naviArea ul#navi_list li.now a p {
        color: var(--text-color,#005C7D);
        background: linear-gradient(transparent 75%, #f6ae54 75%);
        padding: 0px 10px;
    }


div#popNaviArea ul#g_navi_0 {
    border: none;
    padding: 0px;
}

    div#popNaviArea li.navi_child {
        width: 23%;
        display: inline-block;
        vertical-align: top;
        padding:10px 0px 18px 15px;
    }

    div#popNaviArea h3.navi_child_name {
        margin: 0px 5px;
        padding: 30px 2px 5px 0px;
        font-size: 1em;
        font-weight: bold;
        border-bottom: 1px solid #5188b1;
    }

    div#popNaviArea li.navi_child ul {
        padding: 0px 13px;
        margin-top: -5px;
    }

    div#popNaviArea li.navi_child li {
        font-size: 0.9em;
        line-height: 1.3em;
        padding: 4px 2px 4px 8px;
        margin-top: 8px;
        background-image: url("../../images/ya_red.png");
        background-repeat: no-repeat;
        background-position: 1px 0.6em;
    }

        div#popNaviArea li.navi_child li.exsistpic {
            background-image: none;
        }

    div#popNaviArea li.navi_child img {
        margin-right: 3px;
    }

    div#popNaviArea li.navi_child a {
        display: table-cell;
        vertical-align: middle;
    }

    div#popNaviArea li.navi_type_2 {
        width: auto;
        display: block;
    }

        div#popNaviArea li.navi_type_2 li {
            display: inline-block;
            width: 23%;
            vertical-align: middle;
        }
    /* 親メニュー（大分類） */
    div#popNaviArea .parentMenu {
        width: 100%;
        float: left;
        margin: 8px auto;
    }

        div#popNaviArea .parentMenu .parentlink {
            margin: 0px 0px 0px 20px;
            float: left;
            font-weight: bold;
        }

        div#popNaviArea .parentMenu .closelink {
            margin: 0px 20px 0px 0px;
            float: right;
        }
    /* 親メニュー（中分類） */
    div#popNaviArea .navi_child .close {
        display: none;
    }

    div#popNaviArea .navi_child .childlink {
        background: none;
        padding: 0px 2px 0px 0px;
    }

.noChild {
    background: none !important;
}


.SP_search {
    display: none;
}

/*:::::::::::::::::::::::::
 * レスポンシブル用
 *::::::::::::::::::::::::*/





@media screen and (max-width:1190px) {
    h1 .hd_header {
        line-height: 1em;
        float: left;
    }

    #headerMenu {
    }

    .header_bottom img {
        display: none;
        height: 0px;
    }
}

@media screen and (max-width:1158px) {
    .header {

        height: 190px;
    }
}

    @media screen and (max-width:975px) {
        h1.hd_header {
            float: none;
            top: 7px;
            left: 0px;
        }
    }

    @media screen and (min-width:975px) {
        #headMenu, #naviContainerSP {
            display: none !important;
        }
    }

    @media screen and (max-width:1080px) {
        #hd_header img {
            margin-left: 10px;
            max-width: 400px;
        }
    }

    @media screen and (max-width:1000px) {
        .headerMenu {
            display: none;
        }
    }


    /* スマホ用 */
    @media screen and (max-width:975px) {
        .header {
            min-height: 90px;
            margin: 0px auto;
            text-align: center;
            height: 90px;
            border-radius: 0px;
            background-color: var(--background-color,#ffffff);
        }

        #headMenu img {
            width: 50px;
        }

        #navimenu {
            display: none !important;
        }

        .Navigation, #naviContainer, .headerMenu, .headerMenu02 {
            display: none;
        }

        .btn_bar {
            display: none !important;
        }

        #keepSavePage-container {
            display: none !important;
        }

        /* グローバルナビゲーション */
        #headMenu {
            display: block;
            position: absolute;
            right: 2px;
            top: 0px;
            width: 55px;
        }

        .header_bottom {
            margin: 0px auto;
            height: 0px;
            padding: 0px;
            position: unset;
            z-index: 99;
            text-align: center;
        }

        .SP_search {
            display: block;
            position: absolute;
            right: 58px;
            top: 15px;
            width: 35px;
            font-size: 1.7em;
        }


        #naviAreaSP {
            padding: 6px;
            background-color: #0f7ead !important;
        }

        #navi_listSP {
            background: #0f7ead;
        }




        div#naviAreaSP a {
            display: block;
            color: #ffffff;
            padding: 10px;
            background: url("../../images/top1/ya_sp.png") no-repeat 98% center;
            background-size: 15px 15px;
            text-decoration: none;
            border-bottom: 1px dotted #ffffff;
        }

        div#naviAreaSP ul#navi_listSP li a {
            color: #ffffff;
        }

        #header_img {
            top: 0px;
        }
    }

    @media screen and (max-width:767px) {
        #header {
            text-align: left;
            padding: 0px 0px 0px 0px;
        }
    }

    @media screen and (max-width:599px) {
        #header img {
            margin-left: 5px;
            max-width: 100%;
        }

        .search_item img {
            max-width: 150px;
            width: 100%;
        }

        h1.hd_header img{
            width:230px;
        }
    }

    .siteSearchArea .searchver2-input {
        height: 35px;
        max-width: 315px;
    }

    /* サブサイトハンバーガーメニュー内行政トップボタン*/
    .topLink {
        display: none;
    }


    /* ヘッダー調整*/

    .acc_wp {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        align-items: center;
    }

    .yasashii_wp {
        width: 135px;
        border: 1px solid #DBBEA1;
        background-color: var(--background-color,#FDF9EA);
        font-size: 0.9rem;
        text-align: center;
        position: relative;
        padding: 3px;
    }

        .yasashii_wp:hover {
            background-color: var(--background-color,#f8f4e6);
            border-radius: 10px;
        }

    .easyJapaneseButtonArea {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

        .easyJapaneseButtonArea a {
            color: var(--text-color,#333333);
        }


    .easyJapaneseButton,
    .easyJapaneseResetButton {
        width: 135px;
        border: 1px solid #DBBEA1;
        background-color: var(--background-color,#FDF9EA);
        font-size: 0.9rem;
        text-align: center;
        padding: 3px;
    }

        .easyJapaneseButton:hover,
        .easyJapaneseResetButton:hover {
            background-color: var(--background-color,#f8f4e6);
            border-radius: 10px;
        }

    .easyJapaneseVoiceReadingButton {
        position: absolute;
        top: 95px;
        right: 215px;
    }

    .easyJapaneseVoiceReadingButton {
        display: none;
    }

.font-size_wrap {
    position: relative;
    padding: 0px 0px 18px;
    top: 1px;
}

.change_title {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    padding: 10px 0px 17px;
}

        .change_title:before,
        .change_title:after {
            content: "";
            height: 1px;
            flex-grow: 1;
            background-color: #666;
        }

        .change_title:before {
            margin-right: 1rem;
        }

        .change_title:after {
            margin-left: 1rem;
        }

    .change_haikei {
        display: flex;
        align-items: center;
        font-size: 0.9rem;
        padding: 15px 0px 18px;
    }

    .haikei_wrap {
        position: relative;
        padding: 0px 0px 18px;
        top: -1px;
    }

    .change_haikei:before,
    .change_haikei:after {
        content: "";
        height: 1px;
        flex-grow: 1;
        background-color: #666;
    }

    .change_haikei:before {
        margin-right: 1rem;
    }

    .change_haikei:after {
        margin-left: 1rem;
    }

    .change_haikei-item-wrap {
        padding: 10px 0px 0px 0px;
    }

    .headbtn_wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 8px 8px;
    }

    .headbtn_text {
        font-size: 0.9rem;
    }

    .headbtn_text_L {
        font-size: 0.95rem;
        margin: 3px 0px 0px 0px;
    }

    .headbtn_wrap:hover {
        background-color: var(--background-color,#f8f4e6);
        border-radius: 10px;
    }

    .headermenu-wrap {
        padding: 0px 20px 0px 0px;
    }


    .submenu-area {
        display: flex;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 7px;
        padding: 5px 0px 0px;
    }

        .submenu-area a {
            color: var(--text-color,#333333);
        }



    .submenu-item01 {
        font-size: 0.9rem;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
        width: 120px;
        text-align: center;
        background-color: var(--background-color,#FDF9EA);
        padding: 5px 0px 5px 10px;
        position: relative;
    }

        .submenu-item01::before {
            content: url('../../images/top1/icon_back.svg');
            position: absolute;
            top: 4px;
            left: 4px;
        }


    .submenu-item02 {
        font-size: 0.9rem;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
        width: 120px;
        text-align: center;
        background-color: var(--background-color,#FDF9EA);
        padding: 5px 0px 5px 10px;
        position: relative;
    }

        .submenu-item02::before {
            content: url('../../images/top1/icon_key.svg');
            position: absolute;
            top: 4px;
            left: 5px;
        }

    .menu_title {
        padding: 5px 0px 0px;
    }

    #g_navi_103 {
        box-shadow: none !important;
        border: none !important;
    }

    #navi_tab_101::after, #navi_tab_102::after, #navi_tab_104::after, #navi_tab_105::after, #navi_tab_106::after, #navi_tab_107::after {
        content: "";
        position: absolute;
        bottom: -20px;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: none;
        border-bottom: 12px solid #D77619;
        opacity: 0;
        transition: opacity 0s !important;
        pointer-events: none;
        z-index: 10;
    }

    /* ホバー時に表示させるためのセレクタ */
    /* navi_tab_3, 4, 36, 42 共通の設定にクラスを追加 */
    #navi_tab_101:hover::after, #navi_tab_101.selected::after,
    #navi_tab_102:hover::after, #navi_tab_102.selected::after,
    #navi_tab_104:hover::after, #navi_tab_104.selected::after,
    #navi_tab_105:hover::after, #navi_tab_105.selected::after,
    #navi_tab_106:hover::after, #navi_tab_106.selected::after,
    #navi_tab_107:hover::after, #navi_tab_107.selected::after {
        opacity: 1;
        transition: opacity 0.3s ease !important;
    }

    /* 1. 透明な「橋」を作る（判定用エリア） */
    #navi_tab_101::before, #navi_tab_102::before, #navi_tab_104::before, #navi_tab_105::before, #navi_tab_106::before, #navi_tab_107::before {
        content: "";
        position: absolute;
        top: 100%; /* タブのすぐ下から開始 */
        left: 50%;
        transform: translateX(-50%);
        width: 100%; /* タブの幅いっぱいの判定 */
        height: 30px; /* メニューまでの隙間を埋める高さ（適宜調整） */
        background: transparent; /* 透明なので見えません */
        z-index: 5;
        display: none; /* 初期状態はオフ */
    }

    /* ホバー中だけ判定エリアを有効にする */
    #navi_tab_101:hover::before, #navi_tab_102:hover::before,
    #navi_tab_104:hover::before, #navi_tab_105:hover::before,
    #navi_tab_106:hover::before, #navi_tab_107:hover::before {
        display: block;
    }

    div#popNaviArea li.navi_child a:hover {
        text-decoration: underline !important;
    }


    @media screen and (max-width: 1000px) {
        .acc_wp {
            display: none;
        }

        .submenu-area {
            display: none;
        }

        div#naviArea {
            display: none;
        }

        .header {
            height: 120px;
        }
    }

@media screen and (max-width: 599px) {
    .header {
        height: 100px;
    }
}