/************************

        ヘッダー（SP）
************************/
@media screen and (max-width: 450px){
    .header_pc {
        display: none;
    }
    /*
    ヘッダー上下動きの時間調整
    */
    header {
        position: fixed;
        width: 100%;
        z-index: 1000;
        transition: top 0.8s ease;
    }
    /*
    ロゴとボタンの配置
    */
    .header_sp_top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1;
    }
    .header_sp_top_1 {
        z-index: 10;
        padding: 2vw 0 2vw 5vw;
    }
    #humbergur_btn {
        display: none;
    }
    .header_humbergur {
        z-index: 10;
        padding-right: 8vw;
    }
    nav {
        display: flex;
        background-color: #404040;
        padding: 10px;
        position: fixed;
        width: 100%;
    }
    nav a {
        color: #fff;
        text-decoration: none;
        margin: 0 15px;
    }
    nav a:hover {
        border-bottom: 1px solid #fff;
    }
    /* 画面幅が600px以下になると適用される */
    /* ハンバーガーボタン */
    #humbergur_btn {
        width: 37px;
        height: 45px;
        z-index: 10;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        cursor: pointer;
    }
    /*ハンバーガーボタンの３本線 */
    #humbergur_btn span {
        display: block;
        background-color: #fff;
        width: 30px;
        height: 3px;
        border-radius: 10px;
        transition: all 0.5s ease;
    }
    #humbergur_btn.on span:nth-of-type(1) {
        transform: translateY(13px) rotate(45deg);
    }
    #humbergur_btn.on span:nth-of-type(2) {
        transform: scale(0);
    }
    #humbergur_btn.on span:nth-of-type(3) {
        transform: translateY(-12px) rotate(-45deg);
    }
    /* ハンバーガーメニュー内のナビ */
    nav {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transition: all 0.5s ease;
        top: -680px;
    }
    /* ハンバーガーメニューが開いた時のスタイル */
    nav.on {
        top: 0;
        height: 100vh; /* 画面の高さいっぱいに広がるように設定 */
        overflow-y: auto; /* メニューが画面より大きい場合にスクロールできるようにする */
    }
    /* ハンバーガーメニュー内のナビ */
    nav.on {
        flex-direction: column;
        align-items: center;
        transition: all 0.5s ease;
        display: flex;
        justify-content: center;
    }
    nav a {
        margin: 3vw auto;
    }
   
    .no-scroll {
        overflow: hidden;
    }
    /*
    ハンバーガーメニューのmenuテキスト
    */
    .header_sp_top p {
        font-size: 12px;
        color: #fff;
        text-align: center;
    }
    /*
    ハンバーガーメニューのmenuカラー
    */

    #header_menu_text.invert{
        color: #000;
    }
    #header_menu_text.on{
        color: #fff;
    }
    /*
    FV以外でのハンバーガーメニューカラー
    */
    .invert#humbergur_btn span {
        background-color: #000;
    }
    /*
    * @parts：ヘッダーバックカラー
    * @design：指定のpx分スクロールするとバックカラー変化
    */
    .invert#header_sp_top {
        background-color: #fff;
    }
    /* ハンバーガーボタンを押したら×に変わる */
    #humbergur_btn.on span {
        background-color: #fff;
    }
    .header_sp_humbergur_img {
        display: flex;
        justify-content: space-around;
        width: 36%;
        margin: 10vw 0;
    }
    .header_sp_humbergur_img img{
        width: 10vw;
        height: 10vw;
    }
    .header_sp_humbergur_btn1 {
        width: 70vw;
        height: 13vw;
        border: 2px solid #fff;
        border-radius: 26px;
        text-align: center;
        margin-bottom: 10vw;
    }
    .header_sp_humbergur_btn2 {
        width: 70vw;
        height: 13vw;
        background-color: #fff;
        border: 2px solid #fff;
        border-radius: 26px;
        text-align: center;
        color: #000;
    }
    .header_sp_humbergur_btn2 a {
        color: #000;
    }
}

/************************

ヘッダー(PC)
************************/
@media screen and (min-width: 451px){
    .header_sp {
        display: none;
    }
    /*
    * @parts：ヘッダー基本
    * @design：最上部はバックカラー透明、下スライドで消え上スライドで再表示
    */
    header {
        position: fixed;
        width: 100%;
        z-index: 1000;
        transition: top 0.8s ease;
    }
    /*
    * @parts：ヘッダー基本
    * @design：ヘッダー内のブロックを横並びにする
    */
    .header_pc_main {
        display: flex;
        justify-content: space-evenly;
        height: 5vw;
    }
    .header_totonou_logo {
        display: flex;
        align-items: center;
    }
    /*
    * @parts：ヘッダーロゴのサイズ
    * @design：
    */
    .header_totonou_logo img {
        width: 12vw;
        height: 4vw;
    }
    /*
    * @parts：ヘッダーメニュー
    * @design：横並び、文字カラー白
    */
    .header_menu_1 {
        display: flex; 
        justify-content:center;
        display: flex;
        align-items: center;
        margin-left: 9%;
    }
    #header_menu_1.invert ul li a::after{
        background-color: #fff;
    }
    /*
    * @parts：ヘッダーメニュー
    * @design：横並び、文字カラー白
    */
    .global_navi_sub_navi_underbar ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
    }
    .global_navi_sub_navi_underbar ul li {
        position: relative;
    }
    .global_navi_sub_navi_underbar ul li a {
        text-decoration: none;
        color: #fff;
        position: relative;
    }
    .global_navi_sub_navi_underbar ul li a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 0;
        height: 2px;
        background-color: #fff;
        transition: width 0.2s ease;
    }
    .global_navi_sub_navi_underbar ul li a:hover::after {
        width: 100%;
    }
    .description {
        display: none;
        position: absolute;
        top: calc(100%);
        left: 50%;
        transform: translateX(-50%);
        color: #fff;
        padding: .2vw 1vw;
        border-radius: 5px;
        white-space: nowrap;
    }
    .description.invert {
        color: #000;
    }
    .global_navi_sub_navi_underbar ul li:hover .description {
        display: block;
    }
    .global_navi_sub_navi_underbar ul li:hover a::after {
        width: 100%;
    }
    /*
    * @parts：ヘッダーメニュー
    * @design：メニュー間の幅、文字サイズ
    */
    .header_menu_2 {
        display: flex;
        gap: 0 2vw;
        font-size: 1vw;
    }
    /*
    * @parts：ヘッダーSNSロゴ
    * @design：メニュー間の幅、文字サイズ
    */
    .header_img {
        display: flex; 
        align-items: center;
    }
    .header_img_line {
        margin-right: 2vw;
        width: 2vw;
        height: 2vw;
    }
    .header_img_instagram {
        width: 2vw;
        height: 2vw;
    }
    /*
    * @parts：ヘッダーボタン
    * @design：ボタンの基本設定
    */
    .header_btn_1 {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .header_btn_2 {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        width: 250px;
        height: 42px;
        margin:0 10px;
        padding: .9em 2em;
        overflow: hidden;
        border: 1px solid #fff;
        color: #fff;
        font-size: 13px;
        border-radius: 100px;
    }
    #header_btn_2.invert {
        border: 1px solid #000;
        color: #000;
    }
    /*
    * @parts：ヘッダーボタン
    * @design：ホバーした際の動き
    */
    .header_btn_2::before {
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
        width: 0;
        height: 100%;
        background-color: #000000;
        content: '';
        transition: width .3s ease;
    }
    /*
    * @parts：ヘッダーボタン
    * @design：ホバーした際の基本設定
    */
    .header_btn_2:hover {
        background-color: transparent;
        color: #fff;
        z-index: 1;
        cursor: pointer;
    }
    /*
    * @parts：ヘッダーボタン
    * @design：ホバーした際の基本設定
    */
    .header_btn_2:hover::before {
        width: 100%;
    }
    #header_btn_2.invert:hover {
        background-color: transparent;
        color: #fff;
    }
    .header.invert {
        background-color: #fff;
    }
    #header_menu_1.invert ul li a{
        color: #000;
    }
    #header_menu_1.invert ul li a::after{
        background-color: #000;
    }
}