@charset "UTF-8";

/*
GENERAL STYLING
================================================ */
html {
    font-size: 62.5%;
}
body {
	color: #1a1a1a;
	font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: .075rem;
}

/*
COMMON
================================================ */
p,
td {
    line-height: 2;
    
}

.flex {
    display:-webkit-box;
    display:-ms-flexbox;
    display:flex
}

.flex-wrap{
    -ms-flex-wrap:wrap;
    flex-wrap:wrap
}

/* Layout */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.text-center {
    text-align: center;
}

/* Heading */
.title {
    font-family: 'Open Sans', sans-serif;
    letter-spacing: .5rem;
    font-weight: 700;
}

.title:first-letter {
    color: #EBCD00;
   }

/*
HEADER
================================================ */
@media only screen and (max-width: 767px) {
    header {
        position: fixed;
        background-color:  #fff;
        width: 100%;
        z-index: 100;
    }

    .headerwrap {
        width: 100%;
        justify-content: space-between;
        position: relative;
    }
    
    .logo {
        width: 75%;
        padding: 20px 0 20px 20px;
    }

    /* チェックボックスを非表示にする */
    .drawer_hidden {
        display: none;
    }
  
    /* ハンバーガーアイコンの設置スペース */
    .drawer_open {
        display: flex;
        height: 30px;
        width: 30px;
        justify-content: center;
        align-items: center;
        position: absolute;
        right: 20px;
        top: 20px;
        z-index: 100;/* 重なり順を一番上にする */
        cursor: pointer;
     }
  
    /* ハンバーガーメニューのアイコン */
    .openbtn{
        position:fixed;
        z-index: 9999;/*ボタンを最前面に*/
        top:10px;
        right: 10px;
        cursor: pointer;
        width: 50px;
        height:50px;
    }
        
    /*×に変化*/	
    .openbtn span{
        display: inline-block;
        transition: all .4s;
        position: absolute;
        left: 14px;
        height: 3px;
        border-radius: 2px;
        background-color: #666;
          width: 45%;
      }
    
    .openbtn span:nth-of-type(1) {
        top:15px;	
    }
    
    .openbtn span:nth-of-type(2) {
        top:23px;
    }
    
    .openbtn span:nth-of-type(3) {
        top:31px;
    }
    
    .openbtn.active span:nth-of-type(1) {
        top: 18px;
        left: 18px;
        transform: translateY(6px) rotate(-45deg);
        width: 30%;
    }
    
    .openbtn.active span:nth-of-type(2) {
        opacity: 0;
    }
    
    .openbtn.active span:nth-of-type(3){
        top: 30px;
        left: 18px;
        transform: translateY(-6px) rotate(45deg);
        width: 30%;
    }    

    #gnav {
         /*position:fixed;にし、z-indexの数値を小さくして最背面へ*/
        position: fixed;
        z-index:  -1;
        opacity: 0;/*はじめは透過0*/
        /*ナビの位置と形状*/
        top: 0;
        width: 100%;
        height: 100vh;/*ナビの高さ*/
        background: #282828;
        /*動き*/
        transition: all 0.3s;
    }

    /*アクティブクラスがついたら透過なしにして最前面へ*/
    #gnav.panelactive{
        opacity: 1;
        z-index:999;
}


    /*ナビゲーション*/
    #gnav ul { 
        display: none;
        /*ナビゲーション天地中央揃え*/
        position: absolute;
        z-index: 999;
        top:50%;
        left:50%;
        transform: translate(-50%,-50%);
    }

    #gnav.panelactive ul {
        display: block;
    }

    /*リストのレイアウト設定*/

    #gnav ul li{
        list-style: none;
        text-align: center; 
    }

    #gnav ul li a {
        color: #fff;
        text-decoration: none;
        font-size: 2rem;
        line-height: 200%;
        padding:10px;
        display: block;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-weight: bold;
    }


    
}
 

/* Footer */
footer {
    background: #282828;
    color: #969696;
    text-align: center;
    padding: 80px 0 40px;
}

footer h2 {
    margin-bottom: 60px;
}

footer .sns {
    margin: 0 auto 40px;
    max-width: 100px;
}

footer .sns i {
    margin: 0 20px 0 0;
}

footer .copyright {
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
}

/*
DESKTOP SIZE
================================================ */
@media (min-width: 768px) {
/* Header */
    header {
        position: fixed;
        background-color:  #fff;
        width: 100%;
        z-index: 100;
        padding: 20px 30px;
    }

    #gnav {
        margin: 13px 30px 0 auto;
    }

    #gnav ul {
        display: flex;
    }
    #gnav ul li {
        text-align: right;
        font-size: 1.6rem;
        font-family: 'Open Sans', sans-serif;
    }
    .logo {
        width: 100%;
    }
    #gnav a {
        margin: 0 0 0 auto;
        display: block;
        padding: 0 0 0 4rem;
    }


/* Common */
    .btn {
        width: auto;
    }
    .title {
        font-size: 5.4rem;
    }

/* Link */
    a:hover {
        opacity: 0.7;
        text-decoration: none;
        transition: all 0.6s;
    }

/* Header */
    
    .main-nav li {
        margin-left: 2rem;
        font-family: 'Sawarabi Mincho', sans-serif;
        font-size: 1.25rem;
    }
    .main-nav a {
        width: auto;
    }
    .main-nav a:hover,
    .main-nav .current {
        border-bottom: 2px solid #2d3374;
        padding-bottom: .5rem;
        background: none;
    }
    .main-nav a::before {
        content: '';
    }

    /* Footer */
    footer {
        background: #282828;
        color: #969696;
        text-align: center;
        padding: 80px 0 40px;
    }

    footer h2 {
        margin-bottom: 60px;
    }

    footer .sns {
        margin: 0 auto 40px;
        max-width: 100px;
    }

    footer .sns i {
        margin: 0 20px 0 0;
    }

    footer .copyright {
        font-size: 1rem;
        font-family: 'Open Sans', sans-serif;
    }

}
