/*pc版で表示、スマホ版で非表示*/
.pc{
    display: block;
}
    .phone{
        display: none;
    }

h4{
	font-weight: 600;
}

body{
	margin: 0px;
	padding: 0px;
    font-family: 'ヒラギノ丸ゴ Pro', 'Noto Sans JP', sans-serif;
    background-color: rgb(180, 190, 180);
}

a{
	text-decoration: none;
	color: #000;
}

/*ヘッダー*/
.header {
    display: flex;
    position: sticky; /*ヘッダーの位置を固定*/
    top: 0px;
    justify-content: space-between; /*横軸*/
    align-items: center; /*縦軸*/
    padding: 0 0.5em;
    background: rgb(140, 150, 140);
    z-index: 20;
}

/*親要素　タイトル*/
.parent_title{
    margin: 0em;
    text-align: center;
}
    
/*親要素　テキストウィンドウ*/
.parent_text{
    width: 350px;
    margin: 10px auto 10px 8px;
    display: flex;
}

/*親要素　テキスト&選択肢(エンターページ用)*/
.parent_enter{
	width: 350px;
	margin: 10px auto;
	display: flex
}

/*横並び*/
.flex{
	display: flex;
}
    
/*テキスト用枠*/
.text{
    width: 88%;
    margin: auto;
    padding: 16px 10px 16px 10px;
    background-color: rgb(210, 220, 210);
    -webkit-text-size-adjust: none; /*文字サイズ固定*/
    border-radius: 10px;
}

/*テキスト内部用*/
.text .inner{
	width: 90%;
	margin: 0 0 0 30px;
}
    
/*テキストウィンドウ風枠（タイトル用）*/
.box{
    display: inline-block;
    margin: 1em auto 1em;
    border: double 5px black;
    background-color:rgb(210, 220, 210);
    text-align: center;
    border-radius: 5px;
}

/*テキストウィンドウ風枠（見出し用）*/
.box_heading{
    display: inline-block;
    margin: 1em 1em 0 0;
    border: double 5px black;
    background-color:rgb(210, 220, 210);
    text-align: center;
    border-radius: 5px;
}
    
/*選択肢風枠*/
.choice{
    display: table;
    width: 80px;
    margin: 2em auto;
    border: double 5px black;
    background-color:rgb(210, 220, 210);
    border-radius: 5px;
}
    
/*選択肢風テキスト（中）*/
.choice .inner{
    display: table-cell;
    vertical-align: middle;
    padding-left: 1em;
}

/*メニュー風枠*/
.menu{
    display: table;
    width: 34%;
    border: double 5px black;
    background-color:rgb(210, 220, 210);
    margin-left: -1em;
}

/*メニュー風テキスト（中）*/
.menu .inner{
    display: table-cell;
    vertical-align: middle;
    padding: 1em;
}
    
/*ゲームボーイ風枠*/
.game{
    	display: block;
    	text-align: center;
    	border-style: solid;
    	border-width: 5px;
    	border-color: rgb(220, 220, 220);
    	width: 330px;
    	height: 500px;
    	margin: auto; /*中心に配置*/
    	background-color: rgb(220, 220, 220);
    	border-radius: 10px 10px 50px 10px;
    	box-shadow: 0 0 8px gray;
}
    
/*画像サイズ自動調整ほか*/
/*ゲーム風
.img{
    	max-width: 80%;
    	height: auto;
    	margin-top: 20px;
    	margin-bottom: 10px;
    	border-style: solid;
    	border-width: 15px;
    	border-radius: 5px;
    	border-color: rgb(140, 135, 140);
}*/
.img{
    	max-width: 350px;
    	height: auto;
    	margin-top: 5px;
    	margin-bottom: 5px;
}

/*ゲームのボタン*/
.game_button{
    	max-width: 90%;
    	height: auto;
    	margin-top: 20px;
}

/*画像リスト(リスト用)*/
.image_list{
	position: relative;
	display: -webkit-flex; /*safari*/
	display: flex;
	width: 300px; /*枠の大きさはここと*/
    margin: auto;
    padding: 4%; /*ここをいじるのだ*/
    background-color: rgb(210, 220, 210);
    -webkit-flex-wrap: wrap; /*safari*/
    flex-wrap: wrap;
    border-radius: 10px;
}

/*画像リスト(サムネリンク用)*/
.image_list div{
	z-index:1; /* img > button > div */
	display: block;
	position: relative;
	width: 46%;
	margin: 2%;
}

.image_list div::before {
	content: "";
	display: block;
	padding-top: 100%;
}

.image_list div::after{
	content: "";
	position: absolute;
	top: -2px;
	left: -2px;
	width: 100%;
	height: 100%;
	border-style: solid;
	border-width: 2px;
    	border-color: rgb(140, 150, 140);
	border-radius: 10px;
}

/*画像リスト(ボタン用)*/
.image_list button{
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	z-index: 10;
}

/*画像リスト(サムネ画像用)*/
.image_list img{
	width: 100%;
	height: 100%;
	z-index: 100;
	object-fit: cover;
	border-radius: 8px;
}

/*newタグ(span)*/
.new {
	position: absolute;
	top: 3px;
	left: 3px;
	padding: 2px 2px;
	width: 40px;
	height: 18px;
	background-color: crimson;
	color: white;
	font-size: 12px;
	z-index: 20;
	border-radius: 10px;
	
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
}

/*いいねボタン*/
.iine{
	z-index: 500;
	position: fixed;
	top: 90%;
	left: 90%;
}

/*ぼうけんノート風枠*/
.journal{
	width: 82%;
    margin: auto;
    padding: 16px 10px 16px 10px;
    background-color: rgb(230, 230, 230);
    color: rgb(50, 50, 50);
    border: double 5px rgb(130, 130, 130);
    border-radius: 1px;
}

/*ぼうけんノート風枠(線)*/
.journal .line{
	background-image:
     	linear-gradient( transparent 95%, rgb(210, 210, 210) 0%);
    	background-size: 100% 2em;
    	line-height: 2;
    	font-size: 14px;
	-webkit-text-size-adjust: 100%; /*文字サイズ固定*/
}

/*レポート用画像*/
.report_img{
	display: flex;
	width: 100%; /*モーダルのサイズに合わせる*/
    	margin: 0 auto;
}

/*ぼうけんノート風(文字)*/
.journal .inner{
	display: table;
	width: auto;
	margin: 0 5px 0 20px;
	font-size: 14px;
	-webkit-text-size-adjust: 100%; /*文字サイズ固定*/
}

/*戻るボタン*/
.back{
	display:block;
	width:50%;
	margin: auto;
	padding: 5px 10px;
	text-align: center; 
	color: #000;
	font-size: 16px;
	border: solid 2px #000;
	border-radius: 5px;
	background-color: rgb(248, 248, 248);
	font-family: 'ヒラギノ丸ゴ Pro', 'Noto Sans JP', sans-serif;
}

/*戻るボタン(中)*/
.back .inner{
	display: inline-block;
	margin: auto;
	line-height: 2;
    	text-align: center;
}

/*liタグ用　星*/
.star{
	list-style: none;
	position: relative;
}

.star:before {
	content: "★ ";
	position: absolute;
	left: -22.5px;
	}
    
/*ローディング画面*/
/*ページ*/
#loading {
  	width: 100vw;
  	height: 100vh;
  	transition: all 1s;
  	background-color: rgb(120, 120, 100);
  	position: fixed;
  	top: 0;
  	left: 0;
  	z-index: 9999;
}
    
/*バー*/
.bar {
    	width: 150px;
    	border-radius: 10px;
    	margin: 250px auto;
    	border: solid 5px rgb(200, 200, 168);
}
	
/*進捗状況バー*/
.bar::before {
    	content: "";
    	position: absolute; /*位置を固定*/
    	width: 150px;
   	top: 250px;
   	left: 107.5px;
    	border-radius: 10px;
    	border: solid 5px rgb(40, 40, 24);
    	animation-name: loading;
    	animation-duration: 4s;
    	animation-iteration-count: 1;
}
	
/*ロード終了後のアニメーション*/
.loaded {
    	animation: fadeOut 1s forwards;
 }
	
/*ローディングアニメーション*/
@keyframes loading {
	from {
		width: 0px;
	}
   	to {
        	width: 150px;
    	}
}
	
/*フェードアウトアニメーション*/
@keyframes fadeOut {
    	from {
        	opacity: 1;
    	}
    	to {
        	display: none;
        	opacity: 0;
        	z-index: -1;
    	}
}
    
/* ここから下がハンバーガーメニューに関するCSS */
	/* チェックボックスを非表示にする */
    .drawer_hidden {
    		 display: none;
    }
          
   	/* ハンバーガーアイコンの設置スペース */
    .drawer_open {
    		display: flex;
        height: 70px;
        width: 70px;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 98;/* 重なり順 */
        cursor: pointer;
        background-color: rgb(180, 190, 180);
        border-radius: 10px;
    }
          
    /* ハンバーガーメニューのアイコン */
    .drawer_open span:nth-of-type(1),
    .drawer_open span:nth-of-type(2),
    .drawer_open span:nth-of-type(3) {
   		content: '';
        display: block;
        height: 3px;
        width: 25px;
        border-radius: 3px;
        background: #333;
        transition: 0.5s;
        position: absolute;
    }
          
    /* 三本線の一番上の棒の位置調整 */
    .drawer_open span:nth-of-type(1) {
   		top: 32px;
    }
          
    /* 三本線の真ん中の位置調整 */
    .drawer_open span:nth-of-type(2) {
    		top: 40px;
    }
          
    /* 三本線の一番下の棒の位置調整 */
    .drawer_open span:nth-of-type(3) {
        top: 48px;
    }
          
    /*「メニュー」表記*/
    .drawer_open span:nth-of-type(1):before {
        content: "メニュー";
        position: absolute;
        width: 70px;
        top: -25px;
        left: -15px;
        font-size: 0.9rem;
     }
          
     /* アイコンがクリックされたら真ん中の線を透明にする */
    #drawer_input:checked ~ .drawer_open span:nth-of-type(2) {
    		background: rgba(255, 255, 255, 0);
    }
          
     /* アイコンがクリックされたらアイコンが×印になように上下の線を回転 */
    #drawer_input:checked ~ .drawer_open span:nth-of-type(1) {
    		top: 40px;
        transform: rotate(45deg);
    }
          
    #drawer_input:checked ~ .drawer_open span:nth-of-type(3) {
    		top: 40px;
        transform: rotate(-45deg);
    }
          
    /*「閉じる」表記*/
    #drawer_input:checked ~ .drawer_open span:nth-of-type(1):before {
    		content: "閉じる";
        position: absolute;
        width: 70px;
        top: -36px;
        left: -28px;
        font-size: 0.9rem;
        transform: rotate(-45deg);
    }
            
    /* メニューのデザイン*/
    .nav_content {
    		width: 100%;
        height: 250px;
        position: fixed;
        top: 80px;
        left: 100%; /* メニューを画面の外に飛ばす */
        z-index: 99;
        background: rgb(210, 220, 210);
        transition: .3s;
    }
          
    /* メニュー黒ポチを消す */
    .nav_list {
   		list-style: none;
    }
          
    /* アイコンがクリックされたらメニューを表示 */
    #drawer_input:checked ~ .nav_content {
    		left: 60%;/* メニューを画面に入れる */
    }
    
    /*フッター用*/
    .wrapper{
    		display: flex;
    		flex-direction: column;
    		min-height: 100vh;
	}
    
    /*フッター*/
    footer{
    		text-align: center;
    		background: rgb(160, 170, 160);
    		padding-bottom: 10px;
    		
    		margin-top: auto;
    }


/*スマホ用*/
@media screen and (max-width: 768px) {
/*pc版で非表示、スマホ版で表示*/
	.pc{
    		display: none;
	}
    .phone{
        display: block;
    }

/*メニュー風枠*/
.menu{
    display: table;
    width: 61%;
    border: double 5px black;
    background-color:rgb(210, 220, 210);
    margin-left: -1em;
}

/*いいねボタン*/
.iine{
	position: fixed;
	top: 85%;
	left: 80%
}

/*ハンバーガーメニュー*/
    /* アイコンがクリックされたらメニューを表示 */
    #drawer_input:checked ~ .nav_content {
    		left: 31.5%;/* メニューを画面に入れる */
    }
}