/* SP CSS */
@media screen and (max-width: 799px) {
	html {
	}
	body {
		margin: 0 auto;
	}
	#main, .container {
		width: 95% ;
	}
	#main{
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
	
	#header {
		background-size:100% auto;
		height:0;
		border-radius: 0;
		padding-bottom: 13.5%;
	}

	.item-meta {
		font-size:95%;
	}

	.item-meta .comment-num,.item-author,.item-views {
		display:none;
	}
	
	.wp-pagenavi {
		display: flex;
		justify-content: space-around;
		flex-wrap:wrap;
		flex-grow: 1;
		flex-basis: auto;
		text-align: center;
		font-size:150%;
	}
	#footer {
		border-radius: 0;
	}
	.footer-menu {
		display:none;
	}
	#header h1 {
		font-family: "Century Gothic","Trebuchet MS";
		font-size: 150% ;
	}
	#header #description {
		font-family: "Century Gothic","Trebuchet MS";
		font-size: 80%;
	}
	#menu .menu {
	}
	
	.search_form {
		margin-right:10px;
	}
	
	.amz2024 {
		display: block;
		border: 1px solid #ccc;
		padding:10px;
		background: url(./img/2amz_Logo_200.png) no-repeat 95% 99%;
		background-size: 40%;
	}
	.amz2024 p {
		margin: 0 auto;
	}
	.amz2024 img {
		width: 98%;
		margin: 0 auto 10px;
		display: block;
	}
	
	.amachazl-box {
		display: flex;
	}
	.amachazl-box,.amachazl-info {
		width:100%;
	}
	.amazlet-box {
		display: flex;
	}
	.amazlet-box,.amazlet-info {
		width:100%;
	}
	.iframeWrapper {
		position: relative;
		width: 100%;
		padding-top: 75%;
	}
	.iframeWrapper iframe {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
	}
	#sidebar {
		float:none;
		width: 95%;
		margin:10px 0 10px 10px;
	}
	#categories-2 ul {
		display: inline-flex;
		flex-wrap: wrap;
		justify-content: flex-start;
		margin-left: -5px;
	}
	#categories-2 li {
		list-style: none;
	}
	#categories-2 li a {
		background: #fbf8e5;
		white-space: nowrap;
		color: #a97837;
		line-height: 1.7;
		padding: 2px 8px;
		margin: 0 0 0 5px;
		text-decoration: none;
		-webkit-border-radius: 3px;
		-moz-border-radius: 3px;
		border-radius: 3px;
		border: 2px solid #D4CFC1;
	}
	#categories-2 li a:hover {
		color: #b54f41;
		background: #fbf855;
	}
	#text-3, #text-4, #wpp-2, #categories-2, #tag_cloud-2, #recent-comments-2, #newpostcatch-2, #custom_html-5, .TB-title, .TB-field {
		display:none;
	}
	
	#posts {
		float:none;
		width: 95%;
		margin-top:10px;
		font-size: 100%;
	}
	.footer-navi {
		position: fixed;
		bottom: 0px;
		right: 5px;
		font-size: 300%;
		z-index:1;
	}
	.item-content {
		/*display: flex*/
		/*flex-wrap: wrap;*/
	}
	.eyecatch-image {
		/*float:none;*/
		margin-right:10px;
	}
	.item-body {
		margin-left:0px;
	}
	img{
		max-width: 100%;
		height: auto;
		width: auto\9; /* ie8 */
	}
	.SNS_BTN {
		display: flex;
		flex-wrap: wrap;
		margin: 30px 0;
		width: 100%;
	}
	.FB-Share-button {
		padding: 0 10px 0 0;
		height: 35px;
	}

	/* archive-pages ------------------- */
	.archive-pages {
		display: flex;
		justify-content: space-between;
		font-size: 50px;
		margin: 10px 0;
	}
	.newers {
		margin-right: auto;
	}
	.olders {
		margin-left: auto;
	}
	/* Twitter */
	.SandboxRoot .env-bp-550 .timeline-Tweet-text {
		font-size: 10px !important;
	}
}

/* SP HBmenu */
#nav-drawer {
	position: relative;
}

#main input[type="radio"], input[type="checkbox"], label {
    cursor: pointer;
    margin: 0 0 0 0px;
}

/*チェックボックス等は非表示に*/
.nav-unshown {
	display:none;
}

/*アイコンのスペース*/
#nav-open {
	display: inline-block;
	width: 30px;
	height: 22px;
	vertical-align: middle;
}

/*ハンバーガーアイコンをCSSだけで表現*/
#nav-open span, #nav-open span:before, #nav-open span:after {
	position: absolute;
	height: 3px;/*線の太さ*/
	width: 25px;/*長さ*/
	border-radius: 3px;
	background: #555;
	display: block;
	content: '';
	cursor: pointer;
}
#nav-open span:before {
	bottom: -8px;
}
#nav-open span:after {
	bottom: -16px;
}

/*閉じる用の薄黒カバー*/
#nav-close {
	display: none;/*はじめは隠しておく*/
	position: fixed;
	z-index: 99;
	top: 0;/*全体に広がるように*/
	left: 0;
	width: 100%;
	height: 100%;
	background: black;
	opacity: 0;
	transition: .3s ease-in-out;
}

/*中身*/
#nav-content {
	overflow: auto;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9999;/*最前面に*/
	width: 100%;/*右側に隙間を作る（閉じるカバーを表示）*/
	max-width: 150px;/*最大幅（調整してください）*/
	height: 100%;
	background: rgba(0, 0, 0, 0.4);/*背景色*/
	transition: .3s ease-in-out;/*滑らかに表示*/
	-webkit-transform: translateX(-105%);
	transform: translateX(-105%);/*左に隠しておく*/
}

#nav-content .menu li {
	display: block;
	margin:10px;
}

/*チェックが入ったらもろもろ表示*/
#nav-input:checked ~ #nav-close {
	display: block;/*カバーを表示*/
	opacity: .5;
}

#nav-input:checked ~ #nav-content {
	-webkit-transform: translateX(0%);
	transform: translateX(0%);/*中身を表示（右へスライド）*/
	box-shadow: 6px 0 25px rgba(0,0,0,.15);
}

@media screen and (max-width:480px){
	#menu .menu {
		width: 150px;
	}
}


/*@media screen and (min-width:480px) {
	#nav-open {
		display:none;
	}
}*/