@charset "UTF-8";

/*ページ全体の設定*/
body{
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    color: #324e60;
}

/*「ヘッダー」ブロック*/
header{
    padding: 25px 15px;
    font-size: 30px;
    font-family: 'Khula', sans-serif;
    text-align: center;
    font-weight: 800;
}

/*リンク*/
a{
    color: inherit;
    text-decoration: none;
}

a:hover{
    opacity: 0.7;
}

/*ナビゲーション*/
ul{
    list-style-type: none;
    padding: 0;
    color: #a9a9a9;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    justify-content: center;
}

li:not(:last-child){
    margin-right: 20px;
}

li a:hover{
    color: #f8b62b;
    opacity: 0.7;
}
/*== hoverの細かい設定 ==*/
.gnavi li a{
    /*テキストの基点とするためrelativeを指定*/
  position: relative;
    /*はみ出る要素を隠す*/
  overflow: hidden;
  padding:0px 40px;
}

.gnavi li span{
    /*絶対配置でテキストの位置を決める*/
  position: absolute;
  left: 50%;
  top:0;
    /*アニメーションの指定*/
  transition: all .5s;
  transform: translate(-50%, 0);/*X方向に-50% ※中央寄せにするため*/
  /*ブロック要素にして透過なし、テキスト折り返しなし*/  
  display: block;
  opacity:1;
  white-space: nowrap;
}

/*差し替わるテキストの設定*/
.gnavi li span:nth-child(2){
  opacity:0;/*透過0に*/
    transform: translate(-50%,100%);/*X方向に-50% Y方向に100%*/
}

/*hoverするとテキストが入れ替わる設定*/
.gnavi li:hover span:nth-child(1){
  opacity:0;/*透過0に*/
    transform: translate(-50%,-100%);/*X方向に-50% Y方向に-100%*/
}

.gnavi li:hover span:nth-child(2){
  opacity:1;/*不透明に*/
  transform: translate(-50%, 0);/*X方向に-50% Y方向に0*/
}
/*== hoverの細かい設定 終わり ==*/


/*「コンテンツ」ブロック*/
.contens{
    background-color: #324e60;
    padding: 40px 15px;
}

/*画像*/
img{
    width: 100%;
    height: auto;
}

figure{
    margin: 0;
    padding-bottom: 20px;
}

/*記事*/
article{
    background-color: #fff;
    padding: 20px;
}

h1{
    font-size: 30px;
}

p{
    line-height: 2;
}

.sub_title{
    font-size: 18px;
    font-weight: bold;
    background:linear-gradient(transparent 80%, #f8b62b 60%);/*マーカーの設定*/
}

/*「フッター」ブロック*/
footer{
    background-color: #f8b62b;
    padding: 25px 15px;
    font-family: 'Khula', sans-serif;
    font-weight: 800;
    font-size: 14px;
    text-align: center;
}




/* === タブレット版 === */
@media (min-width:600px){

    /*タブレット版：コンテナ*/
    .container{
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    /*タブレット版：「ヘッダー」ブロック内のコンテナ*/
    header .container{
        display: flex;
        justify-content: space-between;
    }

    /*タブレット版：記事*/
    article{
        padding-left: 60px;
        padding-right: 60px;

    }

    h1{
        font-size: 40px;

    }

    .sub_title{
        font-size: 25px;
    
    }

    p{
        font-size: 18px;

    }

}

/* === タブレット版の設定ここまで === */


/* === PC版 === */
@media (min-width:1025px){
    /*PC版：コンテナ*/
    .container{
        max-width: 1100px;

    }

}
/* === PC版の設定ここまで === */
