@import url('https://fonts.googleapis.com');
@import url('https://fonts.gstatic.com');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');



html {
    font-size: 10px;
}


.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}


a:focus,
button:focus,
input:focus {
    outline: none;
}

header#header_global {
    /* ヘッダ追従型 */
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    height: 105px;
    box-shadow: 0 1px 10px rgba(0, 0, 0, .3);
    /* position: fixed; */
    width: 100%;
}

nav #global_header {
    position: relative;
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    /* height: 140px; */
    width: 100%;
    font-size: clamp(1.2rem, calc(6.184615384615385px + 0.6153846153846154vw), 1.8rem);
    font-weight: 600;
    /* padding: 0 80px; */
}


#global_header .btn_alfa:hover {
    opacity: 0.8;
    filter: alpha(opacity=80);
    -ms-filter: "alpha( opacity=80 )";
}

#global_header_inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(5px, 80px) minmax(140px, 171px) minmax(10px, 36px) minmax(40px, 196px) minmax(auto, 1174px) minmax(10px, 50px) minmax(92px, 130px) minmax(5px, 80px);
    /* grid-template-rows: 30px 42px 46px; */
    grid-template-rows: 20px 32px 36px;
    justify-content: center;
}

/* MBSラジオロゴ */
#global_header_inner .logo_part {
    position: relative;
    grid-column: 2 / 3;
    grid-row: 2 / 4;
    align-self: center;
    justify-self: end;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
}

#global_header_inner .logo_part img {
    position: relative;
    /* height: 60px; */
    height: auto;
    max-height: 60px;
    width: 100%;
    aspect-ratio: 25 / 8;
    /* または 300 / 96 でも動作します */
    object-fit: contain;
    object-fit: contain;

}

/* SNSアイコン */
#global_header_inner .icon_part {
    position: relative;
    grid-column: 4;
    grid-row: 2 / 4;
    align-self: center;

}

#global_header_inner .icon_part img {
    max-height: 45px;
    max-width: 45px;
}


#global_header_inner .icon_inner {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(30px, 45px));
    grid-template-rows: 1fr;
    column-gap: 3rem;
    justify-content: space-between;
}

/* #global_header_inner .icon_inner li {
    min-width: 30px;
} */

/* 検索 */
#global_header_inner .search_part * {
    padding: 0;
    box-sizing: border-box;
}

#global_header_inner .search_part {
    width: 13.96%;
    min-width: 268px;
    grid-column: 5;
    grid-row: 2 / 3;
    justify-self: self-end;



    /* 装飾 */
    line-height: 1;
    border: #00a0da 2px solid;
    border-radius: 7px;
    background-color: #fff;
    font-size: 1.6rem;
}

#global_header_inner #cse-search-box {
    display: flex;
    justify-content: space-between;
}

#global_header .search_part input[type="text"] {
    color: #333333;
    line-height: 1.744;
    font-size: 1.593rem;
    outline: none;
    border: none;
    position: relative;
    /* top: 50%;
    transform: translateY(-50%); */
}

#global_header .search_part .input_pro {
    width: 100%;
}

#global_header .search_part .input_pro:focus {
    outline: none;
}

#global_header .search_part .searchText.contents-l {
    width: 90%;
    padding-left: 1.1rem;
    height: 100%;
}

#global_header .search_part .searchBtn {
    width: 28px;
}

#global_header .search_part .searchBtn input {
    width: 100%;
    height: 28px;
    line-height: 1;
    background-image: url('/include/header/images/icon_search.svg');
    background-repeat: no-repeat;
    background-size: 17px;
    background-position: left center;
}

#global_header .search_part .searchBtn input:hover {
    cursor: pointer;
}

#global_header .search_part .searchBtn input[type="submit"] {
    border: none;
    background-color: transparent;
}

/* navメニュー */
#global_header_inner .menu_part {
    grid-column: 5 / 6;
    grid-row: 3 /4;
    justify-self: self-end;
    align-self: center;
    /* width: clamp(322px, calc(108.95652173913044px + 21.304347826086957vw), 518px); */
    padding-top: 2rem;
    font-size: clamp(1.20rem, calc(0.64vw + 1.02rem), 1.79rem);

}

#global_header_inner .menu_part ul.menu_article {
    position: relative;
    display: grid;
    grid-template: 1fr / repeat(4, auto);
    column-gap: 30px;
}

/* #global_header_inner .menu_article {
    display: flex;
    justify-content: space-between;

} */
#global_header_inner .menu_article li {
    position: relative;
    width: 100%;
}

#global_header .menu_article a,
#global_header .menu_article a:visited {
    color: #00a0da;
    text-decoration: none;
}

#global_header .menu_article a:hover {
    border-bottom: .12rem solid #00a0da;
    padding-bottom: 2px;
}

/* 週間番組表 */
#global_header_inner .program_part {
    grid-column: 7 / 8;
    grid-row: 1 / 4;
    justify-self: self-start;
    align-self: self-start;
}

#global_header_inner .program_part img {
    width: 100%;
}

/* ハンバーガー */
#global_header_inner .header__hamburger,
#global_header_inner .header__nav {
    display: none;
}

header#header_global * .fade_in_global {
    opacity: 0;
    /* 最初は透明 */
    animation: fadeIn ease 1.5s;
    /* アニメーション名、速度、時間を指定 */
    animation-fill-mode: forwards;
    /* アニメーション終了時の状態を保持 */
}

/* フェードインのアニメーション定義 */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
        /* 最終的に不透明に */
    }
}

/*===============================================
●style.css 画面の横幅が1300pxまで
===============================================*/

@media screen and (max-width: 1300px) {
    header#header_global {
        /* position: sticky は親要素の直下で効くため、ここでも明示します */
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 1000;
        background-color: #fff;
        width: 100%;

        /* max-height ではなく height を推奨 */
        height: 60px;
        overflow: visible;
        /* overflow-x: hidden は削除または visible に */
    }

    #global_header_inner {
        position: relative;
        display: grid;
        height: 6rem;
        width: 100%;
        padding-right: 3.3%;
        padding-left: 3.3%;
        grid-template-rows: 26.6% 53.3% 20%;
        /* grid-template-columns: 19% 35% 26.67% 3.8% minmax(8.57%, auto); */
        grid-template-columns: 19% 63% 11%;
        justify-content: space-between;
        box-sizing: border-box;


    }

    /* MBS1179ロゴ */
    #global_header_inner .logo_part {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        width: 100%;
        height: 90%;
        position: relative;
        text-align: left;

        align-self: initial;
        text-align: left;
    }

    #global_header_inner .logo_part a {
        position: relative;
    }

    #global_header_inner .logo_part img {
        height: 100%;
        width: 100%;
        float: left;
        max-height: 4rem;
    }

    /* 週間番組表 */
    #global_header_inner .program_part {
        position: relative;
        grid-column: 2 / 3;
        grid-row: 1 / 3;
        width: auto;
        height: 100%;
        text-align: right;
        margin-left: auto;
    }

    #global_header_inner .program_part picture,
    #global_header_inner .program_part picture img {
        height: 100%;
        width: 100%;
        position: relative;
        float: right;

    }



    /* ハンバーガー */
    #global_header_inner .header__hamburger {
        display: block;
        position: relative;
        grid-column: 3 / 4;
        grid-row: 2 / 3;
        text-align: center;
    }

    #global_header_inner .hamburger {
        position: relative;
        width: 100%;
        /* max-width:3rem; */
        height: 100%;
        margin: 0;
        cursor: pointer;
        border: none;
        background-color: transparent;
    }


    #global_header_inner .hamburger span {
        display: block;
        position: relative;
        left: 50%;
        width: 3rem;
        height: .3rem;
        transform: translateX(-50%);
        background: #00A0DA;
        transition: all 0.4s;
        border-radius: 1.5px;
    }

    #global_header_inner .hamburger span:nth-of-type(1) {
        top: -.6rem;
    }

    #global_header_inner .hamburger span:nth-of-type(2) {
        top: 0;
    }

    #global_header_inner .hamburger span:nth-of-type(3) {
        top: .6rem;
    }

    #global_header_inner .hamburger.is-active_gsp span:nth-of-type(1) {
        top: .2rem;
        transform: translateX(-50%) rotate(225deg);
    }

    #global_header_inner .hamburger.is-active_gsp span:nth-of-type(2) {
        opacity: 0;
    }

    #global_header_inner .hamburger.is-active_gsp span:nth-of-type(3) {
        top: -4px;
        transform: translateX(-50%) rotate(-225deg);
    }


    #global_header_inner .hamburger p {
        color: #00A0DA;
        font-size: .75rem;
        top: .8rem;
        line-height: 1;
        position: relative;
        font-weight: 600;
    }

    /* ハンバーガー開いたとき */
    /* ナビゲーションメニュー */
    #global_header_inner .header__nav {
        display: none;
        z-index: 10;
        position: absolute;
        top: 0;
        right: -100%;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        height: 100%;
        background: transparent;
        font-weight: 700;
        opacity: 0;
        transition: 0.6s;
        margin-top: 6rem;
    }

    #global_header_inner .header__nav ul li.nav__item {
        border-bottom: .2rem solid #fff;
        padding-bottom: 2rem;
        padding-top: 2rem;
    }

    #global_header_inner .header__nav ul li.nav__item:first-of-type {
        border-bottom: none;
    }

    #global_header_inner .header__nav.is-active_gsp {
        display: flex;
        /* 開いたときだけ表示させる */
        position: fixed;
        /* position:absolute; */
        top: 0;
        right: 0;
        background: rgba(0, 0, 0, .85);
        opacity: 1;
        transition: 1s;
    }

    #global_header_inner .nav__inner {
        position: relative;
        width: 85.7%;
        padding: 6rem 0;
        margin: 0 auto;
        max-width: 36rem;
    }

    #global_header_inner a.nav__link,
    #global_header_inner a.nav__link {
        text-decoration: none;
    }

    #global_header_inner a.nav__link,
    #global_header_inner a.nav__link:visited {
        font-size: 1.6rem;
        color: #fff;
        font-weight: 600;

    }

    #global_header_inner .icon_part {
        display: none;
        grid-column: none;
        grid-row: none;
    }

    #global_header_inner .menu_part {
        display: none;
        grid-column: none;
        grid-row: none;
    }

    #global_header_inner .search_part {
        display: none;
        grid-column: none;
        grid-row: none;
    }


    /* 検索 */
    #global_header_inner .header__nav ul li.nav__item:first-of-type {
        padding: 0;
    }

    #global_header_inner .header__nav ul li.nav__item:nth-of-type(2) {
        padding-top: 0;
    }

    #global_header_inner .search_part_sp {
        display: block;
    }


    #global_header_inner .search_part_sp,
    #global_header .search_part_sp .input_pro {
        background-color: rgba(255, 255, 255, .8);

    }

    #global_header .search_part_sp input[type="text"] {
        background-color: transparent;
    }

    #global_header_inner .search_part_sp {
        margin: 0 auto;
        margin-bottom: 4rem;
    }

    #global_header_inner .global_sp_icons {
        display: grid;
        grid-template: auto / minmax(auto, 4.5rem) minmax(auto, 4.5rem) minmax(auto, 4.5rem);
        column-gap: 2.6rem;
        justify-content: center;
        height: 30vh;
        align-items: end;
    }


    /* メニューが開いている時の状態 */
    body.is-locked {
        position: fixed;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    /* メニュー開閉中もヘッダーを強制的に固定する */
    body.is-locked header#header_global {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }
}