@charset "utf-8";
/* CSS Document */


header{
    width: 100%;
    height: 80px;
    position: relative;
    background-color: #fff;
    top: -80px;
    transition: all .5s;
}

header.fixed{
    position: fixed;
    z-index: 9999;
    top: 0;
    transition: all .5s;
}

h1 img{
    width: 350.378px;
    height: auto;
    position: absolute;
    top: 16.8676px;
    left: 12.6855px;
    transition: all .5s;
}

h1:hover img{
    transform: scale(1.05);
    transition: all .5s;
}
.header_trial_bt{
    width: 298.4107px;
    position: absolute;
    top: 8.1987px;
    right: 90.324px;
    transition: all .5s;
    z-index: 9000;
}

.header_trial_bt img{
    position: absolute;
    width: 100%;
    height: auto;
    top: 0;
    left: 0;
}

.trial_hover{
    transition: all .5s;
    
}

.trial_hover:hover{
    opacity: 0;
    transition: all .5s;
}



/*========= ボタンのためのCSS ===============*/
.openbtn1{
    position:relative;
    z-index: 9000;/*ボタンを最前面に*/
    top:0;
    right: 0;
    cursor: pointer;
    width: 80px;
    height:80px;
    background-color: #2a74b7;
    margin: 0 0 0 auto;
    transition: all .5s;
}

.openbtn1:hover{
    background-color: #31373a;
    transition: all .5s;
}

/*×に変化*/  
.openbtn1 span{
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 15px;
    height: 2px;
    background-color: #fff;
    width: 50px;
}

.openbtn1 span:nth-of-type(1) {
    top:25px; 
}

.openbtn1 span:nth-of-type(2) {
    top:40px;
}

.openbtn1 span:nth-of-type(3) {
    top:55px;
}

.openbtn1.active span:nth-of-type(1) {
    top: 40px;
    left: 9px;
    transform: rotate(-25deg);
    width: 60px;
}


.openbtn1.active span:nth-of-type(2) {
    opacity: 0;
}

.openbtn1.active span:nth-of-type(3){
    top: 40px;
    left: 9px;
    transform: rotate(25deg);
    width: 60px;
}

/*========= ナビゲーションのためのCSS ===============*/

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

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

/*ナビゲーションの縦スクロール*/
#g-nav.panelactive #g-nav-list{
    /*ナビの数が増えた場合縦スクロール*/
    position: relative;
    z-index: 999;
    width: 100%;
    height: calc(100vh - 100px);
    top: 90px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/*ナビゲーション*/
#g-nav ul {
    display: none;
    /*ナビゲーション天地中央揃え*/

    position: absolute;
    z-index: 999;
    top: 50%;
    right: 50%;
    left: unset;
    transform: translate(50%,-50%);

}

#g-nav.panelactive ul {
    display: block;
}

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

#g-nav li{
  list-style: none;
    text-align: center; 
}

#g-nav li a{
    font-size: 2.2rem;
    color: #31373a;
    width: 317px;
    text-decoration: none;
    padding: 15px 0;
    display: block;
    letter-spacing: 0em;
    font-weight: bold;
    background-color: #fff;
    margin-bottom: 31px;
    transition: all .5s;
}

#g-nav li a:hover{
    color: #2a74b7;
    background-color: #f2f2f2;
    transition: all .5s;
}

.linkicon a{
    position: relative;
}

.linkicon a::before{
    content: '';
    position: absolute;
    width:17.7782px;
    height:17.7782px;
    background-image: url(../images/1st/common/linkicon_hover.webp);
    background-repeat: no-repeat;
    background-size: cover;
    top: 50%;
    transform: translateY(-50%);
}

#g-nav li:nth-child(5).linkicon a::before{
    right: 25%;
}

#g-nav li:nth-child(5).linkicon a::after{
    right: 25%;
}

#g-nav li:nth-child(6).linkicon a::before{
    right: 28%;
}
#g-nav li:nth-child(6).linkicon a::after{
    right: 28%;
}

#g-nav li:nth-child(7).linkicon a::before{
    right: 20%;
}
#g-nav li:nth-child(7).linkicon a::after{
    right: 20%;
}


.linkicon a::after{
    content: '';
    position: absolute;
    width:17.7782px;
    height:17.7782px;
    background-image: url(../images/1st/common/linkicon.webp);
    background-repeat: no-repeat;
    background-size: cover;
    top: 50%;
    transform: translateY(-50%);
    transition: all .5s;
}

.linkicon:hover a::after{
    opacity: 0;
    transition: all .5s;
}

.linkicon a{
    position: relative;
}

#g-nav li:last-child a{
    margin-bottom: 0;
}


/*-----------------------------------------------------------------------------
	SP
-----------------------------------------------------------------------------*/
@media screen and (max-width:767px){
  
header{
    width: 100%;
    height: 16vw;
    position: relative;
    background-color: #fff;
    z-index: 9000;
    top: -16vw;
}

h1:hover img{
    transform:none;
}

h1 img{
    width: 39.76vw;
    top: 50%;
    transform: translateY(-50%);
    left: 2vw;
}

.header_trial_bt{
    width: 35.86vw;
    height: 11.52vw;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9000;
    right:18vw;
}

.header_trial_bt img{
    position: absolute;
    width: 100%;
    height: auto;
    top: 0;
    left: 0;
}

.trial_hover:hover{
    opacity: 1;
}



/*========= ボタンのためのCSS ===============*/
.openbtn1{
    position:relative;
    z-index: 9000;/*ボタンを最前面に*/
    top:0;
    right: 0;
    cursor: pointer;
    width: 16vw;
    height: 16vw;
    background-color: #2a74b7;
    margin: 0 0 0 auto;
}

.openbtn1:hover{
    background-color: #2a74b7;
}

/*×に変化*/  
.openbtn1 span{
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 2.5vw;
    height: 2px;
    background-color: #fff;
    width: 11vw;
}

.openbtn1 span:nth-of-type(1) {
    top:5vw; 
}

.openbtn1 span:nth-of-type(2) {
    top:8vw;
}

.openbtn1 span:nth-of-type(3) {
    top:11vw;
}

.openbtn1.active span:nth-of-type(1) {
    top: 8vw;
    left: 2.5vw;
    transform: rotate(-25deg);
    width: 11vw;
}


.openbtn1.active span:nth-of-type(2) {
    opacity: 0;
}

.openbtn1.active span:nth-of-type(3){
    top: 8vw;
    left: 2.5vw;
    transform: rotate(25deg);
    width: 11vw;
}

/*========= ナビゲーションのためのCSS ===============*/

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

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

/*ナビゲーションの縦スクロール*/
#g-nav.panelactive #g-nav-list{
    position: relative;
    z-index: 999;
    width: 100%;
    height: 100vh;
    top: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;

}

/*ナビゲーション*/
#g-nav ul {
    width: 74.3vw;
    position: absolute;
    z-index: 999;
    top: 50%;
    right: unset;
    left: 50%;
    padding-top: 8vw;
    transform: translate(-50% , -50%);
}

#g-nav.panelactive ul {
    display: block;
}

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

#g-nav li{
  list-style: none;
    text-align: center; 
}

#g-nav li a{
    font-size: 5.066vw;
    width: 74.3vw;
    padding: 3.5vw 0;
    margin-bottom: 6vw;
}

#g-nav li a:hover{
    color:  #31373a;
    background-color: #fff;
}

.linkicon a{
    position: relative;
}

.linkicon a::before{
    content: '';
    position: absolute;
    width:17.7782px;
    height:17.7782px;
    background-image: url(../images/1st/common/linkicon_hover.webp);
    background-repeat: no-repeat;
    background-size: cover;
    top: 50%;
    transform: translateY(-50%);
}

#g-nav li:nth-child(5).linkicon a::before{
    right: 25%;
}

#g-nav li:nth-child(5).linkicon a::after{
    right: 25%;
}


#g-nav li:nth-child(6).linkicon a::before{
    right: 28%;
}
#g-nav li:nth-child(6).linkicon a::after{
    right: 28%;
}

#g-nav li:nth-child(7).linkicon a::before{
    right: 20%;
}
#g-nav li:nth-child(7).linkicon a::after{
    right: 20%;
}


.linkicon a::after{
    content: '';
    position: absolute;
    width:17.7782px;
    height:17.7782px;
    background-image: url(../images/1st/common/linkicon.webp);
    background-repeat: no-repeat;
    background-size: cover;
    top: 50%;
    transform: translateY(-50%);
    transition: all .5s;
}

.linkicon:hover a::after{
    opacity: 0;
    transition: all .5s;
}

.linkicon a{
    position: relative;
}

#g-nav li:last-child a{
    margin-bottom: 0;
}

  
}