﻿@charset "utf-8";
/*------------------------------------------------*/
/* 構成
/*------------------------------------------------*/
#container {
    width: 100%;
    padding: 85px 0 20px;
}

/*------------------------------------------------*/
/* ヘッダー
/*------------------------------------------------*/
#header {
    position: fixed;
    width: 100%;
    background-color: var(--color-white);
    z-index: 99999;
}

.header_inner {
    display: flex;
    position: relative;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    height: 85px;
    padding-right: 9rem;
    padding-left: 200px;
}

#logo {
    display: inline-block;
    position: absolute;
    top: 3px;
    left: 10px;
}

#logo a:hover {
    opacity: 0.7;
    filter: alpha(opacity=70);
}

.logo_img {
    width: 100%;
    max-height: 75px;
    padding: 8px;
}


/* トップ　メニュー　(PC)*/
@media screen and (min-width: 768px) {   
    #nav {
        display: flex;
        padding: .5rem ;
    }

   .menu_list {
        display: flex;
        font-size: 87.5%;
    }

   .menu_item { 
        position: relative; 
        padding: 1rem 0;
    }    

    .menu_item+.menu_item::before {
        display: block;
        position: absolute;
        height: 1rem;
        top: 0;
        bottom: 0;
        margin: auto;
        border-left: 1px solid var(--color-black);
        transform: rotate(45deg);
        content: "";
    }

    .menu_item_link {
        position: relative;
        padding: 0 15px;
    }

    .menu_item_link:after {
        display: block;
        position: absolute;
        top: 16px;
        border-style: solid;
        left: 50%;
        margin-left: -15px;
        border: 15px solid transparent;
        border-bottom: 15px solid var(--color-orange);
        opacity: 0;
        content: ""; 
        transition: all .8s ease;
    }

    .menu_item:hover .menu_item_link {
        color: var(--color-orange);
    }

    .menu_item:hover .menu_item_link::after {
        opacity: 1;
    }
    
    .menu_item:hover .menu_second {
        visibility: visible;
        opacity: 1;
    }

    .menu_second {            
        position: absolute;  
        visibility: hidden;
        opacity: 0; 
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
        width: 280px;
        margin: 0 auto;
        padding: 2rem;
        background: var(--color-orange);
        color: var(--color-white);
        border-radius: 10px;
        transition: all .8s ease;
        overflow: hidden;
    }

    .menu_second_heading {
        font-size: 120%;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--color-white);
    }

    .menu_second_list {
        margin: 1rem 0 0;
    }

    .menu_second_item a {        
        display: block;
        line-height: 2.5rem;
        color: inherit;
    }

    .menu_second_item a:hover {
        color: var(--color-black);
    }

    .menu_contact {
        position: absolute;
        right: 10px;
        margin-right: .5rem;
        padding: 1rem;
        background-color: var(--color-orange);
        text-align: center;
        overflow: hidden;
    }

    .menu_contact a {
        color: var(--color-white);
    }

    .menu_contact:hover {
        background-color: var(--color-black);
        transition: all 1s;
    }
}


/* トップ　メニュー　(モバイル) */
@media only screen and (max-width: 767.9px) {

    #nav {
        display: none;
        position: relative;
        width: 100%;
    }

    .header_inner {
        padding-right: 10px;
    }

    .menu_list {
        display: block;
        position: fixed;
        top: 5rem;
        left: 0;
        bottom: 0;
        width: 100%;
        height: calc(100% - 150px); 
        padding: 0 20px 20px;        
        background-color: var(--color-orange);
        overflow-y: scroll;
    }

    .menu_item_link {
        display: block;
        margin: 15px 0;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--color-white);
        font-size: 120%;
        color: var(--color-white);
    }

    .menu_second_heading {
        display: none;
    }

    .menu_second_item {
        display: block;
        padding: 5px 20px;
    }

    .menu_second_item a {
        color: var(--color-white);
    }
    
    .menu_contact {        
        display: block;
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 80px;
        background-color: var(--color-white);
        text-align: center;
    }

    .menu_contact a {
        display: block;
        width: 15rem;
        margin: 10px auto;
        padding: 20px 0;
        border-radius: 10px;
        background-color: var(--color-orange);
        color: var(--color-white);
    }
}