@charset "UTF-8";
body {
    font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium","游ゴシック", "Yu Gothic", sans-serif;
    background-image: url(../images/background.jpg);/* 写真の箱が別ファイルにあるから../ で戻って選択 */

    background-repeat:no-repeat;
    /* タイル状に繰り返し表示しない */
    
    background-position: center top;
    /* topはブラウザの上に、centerは左右中央に配置
    background-position: 横の位置 縦の位置;
    で配置する。横縦をcenter、left、right、top、bottomによって指定をする。pxや%指定でもOK */

    background-size: cover;
    /* 元画像の縦横比は保持して、要素をちょうどよく覆うサイズにしてくれる*/

    background-attachment: fixed;
    /* コンテンツの高さが画像の高さより大きい時、動かないように固定する*/
    margin: 0;
    width: auto;;
}

/*== ボタンのためのCSS */

/* ボタン全体の形状 */
.openbtn{
    /* 初めは非表示に */
    display: none;
    /* ボタンの位置 */
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 999;
    /* ボタンの形状 */
    background: #666;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 5px;
}

/* ボタンのアイコン設定 */
.openbtn span{
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background-color: #fff;
    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;
}


/* activeクラスが付与された後のボタンのアイコン設定 */
.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%;
}

/*fadeDownクラスが付与された後のボタンの出現アニメーション設定*/
.fadeDown {
    animation-name: fadeDownAnime;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
    opacity: 0;
    display: block;
}
@keyframes fadeDownAnime{
from {
    opacity: 0;
	transform: translateY(-100px);
}

to {
    opacity: 1;
	transform: translateY(0);
}
}


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

/*==ヘッダーの形状*/
#header{
	height: 70px;
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background:#333;
	color:#fff;
	text-align: center;
	padding: 20px 0;
}

/*.doneクラスがついたヘッダー*/
#header.dnone {
	opacity: 0;/*透過0にして非表示に*/
    z-index: -999;
}

/*メニューボタンをクリックした際に付与されるpanelactiveクラスがついたら*/
#header.dnone.panelactive {
	opacity: 1;/*不透明にして出現*/
}


/*==ヘッダーのテキストナビゲーションの形状*/
#g-navi ul{
	list-style: none;
	display: flex;
	justify-content: center;
}

#g-navi ul li a{
	display: block;
	text-decoration: none;
	color: #666;
	padding:10px;
}

#g-navi ul li.current a,
#g-navi ul li a:hover{
	color:#fff;	
}

/*.doneクラスがついたヘッダーのテキストナビゲーションの形状*/
#header.dnone #g-navi{
    /*固定位置にして最背面に*/
    position:fixed;
	top: 0;
    left: 0;
	z-index: -1;
    /*高さと幅*/  
	width:100%;
	height: 100vh;
    /*天地中央＆テキスト中央揃え*/  
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
    /*はじめは透過0に*/  
    opacity: 0;
	transition: all 0.4s;
    visibility: hidden;
}

/*メニューボタンをクリックした際に付与されるpanelactiveクラスがついたナビゲーションの形状*/
#header.dnone.panelactive #g-navi{
	opacity: 1;/*不透明に*/
	z-index:3;/*最前面に*/
	background:#eee;
    visibility: visible;
}

#header.dnone.panelactive #g-navi ul{
	display:block;/*flexの横並びをblockにして縦並びに*/
}


/*リストの形状*/

#header.dnone.panelactive #g-navi li a{
	color: #333;
	text-decoration: none;
	padding:10px;
	display: block;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: bold;
	transition:all 0.3s;
}
section{
    position: relative;
    z-index: 1;
}



/* ここから下がスライドショーに関するCSS */
#slider {
    width: 100%;
    height: 100vh;/*スライダー全体の縦幅を画面の高さいっぱい（100vh）にする*/

}

/* ここまでがスライドショーに関するCSS */


header{
    margin-bottom: 0px;
}
header img{
    padding-left: 20px;
}



.profile{
    width: 60%;
    height: auto;
    margin: 20px 20%;
    justify-content: center;
}

.pro p{
    width: 90%;
    padding-bottom: 2em;
    margin: 0 auto;
    z-index: 500;
}

.pro{
    width: 80%;
    border: solid #333 5px;
    padding-top: 2em;
    margin: 0 auto;
}


/*全て共通：hideエリアをはじめは非表示*/
.hide-area{
	display: none;
}

/*全て共通：モーダルのボタンの色を変更したい場合*/
.modaal-close:after, 
.modaal-close:before{
	background:#ccc;	
}

.modaal-close:focus:after,
.modaal-close:focus:before,
.modaal-close:hover:after,
.modaal-close:hover:before{
	background:#666;
}


.pictsing{
    display: flex;
}


.pict{
    width: 300px;
}

.pict1{
    width: 300px;

}


.pict img{
    width: 150px;
    height: 150px;
    margin-top: 60px;
}

.pict1 img{
    width: 150px;
    height: 150px;
    margin-top: 60px;
}

.best{
    display: flex;
}

.disc3{
    width: 30% ;
    margin-right: 0;
    margin-left: 5%;
}

.disc2{
    width: 45% ;
    margin-right: 0;
    margin-left: 5%;
}


/*表示するテキストが切り替わる*/
.btntextchange{
    margin-top: 40px;
    margin-right: 40px;
    /*テキストの基点とするためrelativeを指定*/
	position: relative;
    /*ボタンの形状*/
	border: 1px solid #555;
	border-radius:25px;
    min-width:210px;
	padding: 20px;
    text-align: center;
	display: inline-block;
    text-decoration: none;
    color: #333;
    outline: none;
    /*アニメーションの指定*/
    transition: all .2s;
}

/*hoverした際の変化*/
.btntextchange:hover{
  background:#333;
  color:#fff;
}

.btntextchange span{
    /*絶対配置でテキストの位置を決める*/
	position: absolute;
	left: 50%;
	top:50%;
    transform:translate(-50%,-50%);
    /*アニメーションの指定*/
    transition: all .5s;
  /*ブロック要素にしてテキスト折り返しなし*/  
	display: block;
	white-space: nowrap;
}

/*差し替わるテキストの設定*/
.btntextchange span:nth-child(2){
	opacity:0;/*透過0に*/
}

/*hoverするとテキストが入れ替わる設定*/
.btntextchange:hover span:nth-child(1){
	opacity:0;/*透過0に*/
}

.btntextchange:hover span:nth-child(2){
	opacity:1;/*不透明に*/
}

/* ここまでがモーダルに関するCSS */

/* ====== モバイル用レスポンシブ ====== */
@media screen and (max-width: 998px) {
    /* ヘッダーをコンパクトにしてハンバーガーを表示 */
    #header{
        height: 60px;
        width: 100%;
    }

    /* ナビは非表示（ハンバーガーボタンで開く想定） */
    #g-navi{
        display: none;
    }

    /* ハンバーガーボタンを表示 */
    .openbtn{
        display: block;
    }

    /* ハンバーガーで開いたときの縦並びナビ */
    #header.dnone.panelactive #g-navi{
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        overflow-y: auto;
        padding-top: 80px; /* ヘッダー分の余白 */
    }

    #header.dnone.panelactive #g-navi ul{
        display: block;
        padding: 0 20px;
    }

    #header.dnone.panelactive #g-navi li{
        margin-bottom: 8px;
    }

    /* メインコンテンツ幅調整 */
    .profile{
        width: 80%;
        margin: 16px 10%;
    }

    .pro{
        width: 94%;
        border-width: 3px;
        padding: 1.2em;
    }

    .pro p{
        width: 100%;
        padding-bottom: 1.2em;
    }

    /* スライダーの高さを縮める（モバイルで100vhは重いことがあるため） */
    #slider{ height: 50vh; }

    /* フレックスを縦並びに切り替え */
    .pictsing, .best, .flex{
        display: block;
    }

    .pict, .pict1, .disc2, .disc3{
        width: 100%;
        margin: 0 0 12px 0;
    }

    /* ニュース等の横並び要素を縦に */
    .news{ flex-direction: column; }
    .news img{ width: 100%; margin: 0 0 10px 0; }

    /* フォントサイズ調整 */
    .main{ font-size: 16px; }
}