﻿#DivHeader {
    position:fixed;
    background:#fff;
    top:0;
    height: 5vw;
    width: 100%;
    z-index:3000;
    transition:0.5s;
}
#DivHeader.narrow {
    height: 3vw;
    box-shadow: 0px 7px 7px -5px rgba(0, 0, 0, 0.24);
}
.header {
    display: grid;
    width: 95%;
    height: 100%;
    margin: auto;
    grid-template-columns: 17% 70% 13%;
}
/*　社名　*/
#LogoName {
    font-size: 2vw;
    font-family: "MS P明朝","Noto Serif JP";
    font-family: "BIZ UDPMincho", serif;
    transition: 0.5s;
    margin: auto 0;
    display:flex;    
}
#LogoName a{
    line-height: 2vw;
}
.logo{
    background-image:url("../images/logo.png");
    width:2.3vw;
    height:2vw;
    background-repeat:no-repeat;
    background-size:contain;
}
#LogoName.small a {
    font-size: 1.2vw;
    line-height: 1.5vw;
}
#LogoName.small .logo {
    width: 1.8vw;
    height: 1.5vw;
}
/* メニュー部 */
#Menu {
    display: flex;
    justify-content:end;
}
.header .menu {
    margin: auto 2vw;
    font-size: 1vw;
    cursor: pointer;
    transition: 0.3s;
}
.header .menu:before {
    content:"";
    display:block;
    border:solid 1px #008267;
    position:relative;
    transform: rotate(90deg);
    margin:auto;
    width:30px;
    top:-60px;
    transition:0.3s;
}
.header .menu:hover{
    color:#008267;
}
.header .menu:hover::before{
    top:-20px;
}
.header a {
    color: #000000;
    transition: 0.3s;
    font-weight: 300;
}
.header a:hover {
    color: #008267;
    font-weight: normal;
}
/* お問い合わせ */
#Contact {
    text-align: center;
    margin: auto;
    cursor:pointer;
}
.menu-contact {
    background: #585858;
    color: #ffffff;
    padding: 0.3vw 0.8vw;
    border-radius: 10px;
    transition: 0.3s;
    line-height: 1.3vw;
    transition: 0.3s;
}
.menu-contact a{
    display:flex;
}
.menu-contact a .text{
    color:#fff;
    transition:0.3s;
    font-size:1vw;
}
.arrow-right {
    display: flex;
    align-items: center;
    background: #000000;
    border-radius: 50%;
    margin: auto 0 auto 0.5em;
    width: 1.3em;
    height: 1.3em;
    overflow:hidden;
}
.arrow-right::before,
.arrow-right::after
{
    content: '';
    position:relative;
    width: 0.9em;
    height: 0.9em;
    clip-path: polygon(45% 8%, 58% 8%, 100% 50%, 58% 92%, 45% 92%, 84% 54%, 0 54%, 0 46%, 84% 46%);
    flex-shrink: 0;
    background-color: #fff;
    transform-origin:center center;
    transition:0.3s;
}
.arrow-right::before
{
    transform:translateX(-19px);
}
.arrow-right::after{
    transform:translateX(-11px);
}
.menu-contact:hover {
    border: solid 1px #585858;
    background:#fff;
}
.menu-contact:hover a .text{
    color:#000;
}
.menu-contact:hover a .arrow-right::before {
    transform: translateX(2px);
}
.menu-contact:hover a .arrow-right::after {
    transform: translateX(100px);
}
/*---------------------------------------*/
/*               スマホ　     　　       */
/*---------------------------------------*/
@media screen and (min-width:320px ) and (max-width:1079px) {

    #DivHeader {
        position: fixed;
        background: #fff;
        top: 0;
        height: 15vw;
        width: 100%;
        z-index: 3000;
        transition: 0.5s;
        padding-top:2vw;
    }
    #DivHeader.narrow {
        height: 10vw;
        box-shadow: 0px 7px 7px -5px rgba(0, 0, 0, 0.7);
    }
    .header{
        display:none;
    }
    .header-phone {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
        background: #fff;
    }
    /*　社名　*/
    #PhoneLogoName {
        font-family: "MS P明朝","Noto Serif JP";
        font-family: "BIZ UDPMincho", serif;
        transition: 0.5s;
        margin: auto 0;
        display:flex;
    }
    #PhoneLogoName a{
        color: #000;
        font-size: 5vw;
        transition: 0.5s;
    }
    #PhoneLogoName.small a{
        font-size: 3.5vw;
        transition: 0.5s;
    }
    #PhoneLogoName .logo {
        background-image: url("../images/logo.png");
        width: 5.5vw;
        height: 5vw;
        background-repeat: no-repeat;
        background-size: contain;
    }
    #PhoneLogoName.small .logo {
        width: 4vw;
        height: 3.5vw;
    }
    .drawer_hidden {
      display: none;
    }
    /* ハンバーガーアイコンの設置スペース */
    .drawer_open {
        display: flex;
        height: 10vw;
        width: 10vw;
        justify-content: end;
        align-items: center;
        position: relative;
        z-index: 100; /* 重なり順を一番上にする */
        cursor: pointer;
    }
    /* ハンバーガーメニューのアイコン */
    .drawer_open span,
    .drawer_open span:before,
    .drawer_open span:after {
      content: '';
      display: block;
      height: 1px;
      width: 25px;
      border-radius: 3px;
      background: #333;
      transition: 0.5s;
      position: absolute;
    }
    /* 三本線の一番上の棒の位置調整 */
    .drawer_open span:before {
      bottom: 8px;
    }
    /* 三本線の一番下の棒の位置調整 */
    .drawer_open span:after {
      top: 8px;
    }
    /* アイコンがクリックされたら真ん中の線を透明にする */
    #drawer_input:checked ~ .drawer_open span {
      background: rgba(255, 255, 255, 0);
    }
    /* アイコンがクリックされたらアイコンが×印になように上下の線を回転 */
    #drawer_input:checked ~ .drawer_open span::before {
      bottom: 0;
      transform: rotate(45deg);
    }
    #drawer_input:checked ~ .drawer_open span::after {
      top: 0;
      transform: rotate(-45deg);
    }  
    /* メニューのデザイン*/
    .nav_content {
      width: 100%;
      height: 100%;
      position: fixed;
      top: 0;
      left: 100%; /* メニューを画面の外に飛ばす */
      z-index: 99;
      background: rgba(255,255,255,0.9);
      transition: .5s;
      text-align:center;
      padding-top:15vw;
    }
    /* メニュー黒ポチを消す */
    .nav_list {
      list-style: none;
      margin-left:-4vw;
    }
    /* アイコンがクリックされたらメニューを表示 */
    #drawer_input:checked ~ .nav_content {
      left: 0;/* メニューを画面に入れる */
    }
    .header-phone li{
        font-size:3.5vw;
        line-height:12vw;
    }
    .header-phone li a{
        color: #000;
        opacity:0.8;
        letter-spacing:1px;
    }
}
/*---------------------------------------*/

/*               PC     　　       */

/*---------------------------------------*/

@media screen and (min-width:1080px ) {

    .header-phone {
        display: none;
    }
}