/* ==================== 1_base.css ==================== */

div#shokuiku-contents {
	padding-bottom: 0;
}

.Illust {
	background-color: #fffeeb;
	background-image:
		url(../images/bg_head.png),
		url(../images/bg_foot.png),
		linear-gradient(0deg, #fff9cf, #fff9cf);
	background-position:
		center top,
		center bottom,
		center top;
	background-repeat: no-repeat;
	text-align: center;
}

.Illust:not([data-category=index]) #index,
.Illust[data-category=index] #list {
	display: none;
}

@media all and (max-width: 640px) {
	.Illust {
		padding-top: 1em;
		padding-bottom: 4em;
		font-size: 80%;
		line-height: 1.5;
		background-size:
			120% auto,
			120% auto,
			100% 100%;
	}
	.Illust[data-category=index] {
		padding-bottom: 6em;
	}
	.Illust:not([data-category=index]) {
		background-position:
			center -1em,
			center bottom,
			center top;
	}
	.Illust img {
		font-size: 4vw;
	}
}

@media all and (min-width: 641px) {
	.Illust {
		padding: 38px calc((100% - 758px) / 2) 140px;
		background-size:
			758px auto,
			758px auto,
			758px 100%;
	}
	.Illust:not([data-category=index]) {
		padding-top: 20px;
		background-position:
			center -50px,
			center bottom,
			center top;
	}
	.Illust img {
		font-size: 20px;
	}
}



/* ==================== download.css ==================== */

#download {
	position: fixed;
	z-index: 999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	color: #4f1f00;
	background: rgba(0, 0, 0, 0.2);
	font-family: 'Hiragino Kaku Gothic', 'Meiryo', sans-serif;
	text-align: center;
}

#download .body {
	position: absolute;
	left: 50%;
	top: 50%;
	box-sizing: border-box;
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	background: rgba(255, 255, 255, 0.9);
	border-radius: 2em;
	box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.1);
}

#download button {
	border: none;
	margin: 0;
	padding: 0;
	background: none;
	cursor: pointer;
}

#download button.close {
	position: absolute;
	right: 2em;
	top: 2em;
}

#download .name strong {
	display: inline-block;
	padding-right: 0.5em;
	font-size: 110%;
}

@media all and (max-width: 640px) {
	#download {
		font-size: 90%;
	}
	#donwload img {
		font-size: 4vw;
	}
	#download button.close {
		opacity: 0.5;
	}
	
	#download .body {
		width: 300px;
		padding: 2em 1em;
	}
	
	#download .image img {
		width: 70%;
	}
	
	#download .name {
		margin-top: 1em;
	}
	
	#download .download {
		margin-top: 1em;
	}
	
	#download .download img {
		width: 80%;
	}
}

@media all and (min-width: 641px) {
	#download img {
		font-size: 20px;
	}
	#download .body {
		width: 560px;
		padding: 30px;
	}
	
	#download .image img {
		width: 320px;
		height: auto;
	}
	
	#download .name {
		margin-top: 2em;
		font-size: 150%;
	}
	
	#download .download {
		margin-top: 2em;
	}
}



/* ==================== head.css ==================== */

.Head h1 {
	margin: 0 auto;
}

.Head p {
	margin: 1em 0 0;
	color: #4f1f00;
	font-family: 'Shin Maru Go Medium';
	font-feature-settings: 'palt';
}

@media all and (max-width: 640px) {
	.Head h1 img {
		width: 90%;
	}
	.Illust:not([data-category=index]) .Head h1 img {
		width: 70%;
	}
	.Head p {
		padding: 0 1em;
		font-size: 110%;
		text-align: left;
	}
	.Head p br {
		display: none;
	}
}

@media all and (min-width: 641px) {
	.Head h1 img {
		width: 474px;
		height: auto;
	}
	.Illust:not([data-category=index]) .Head h1 img {
		width: 320px;
	}
	.Head p {
		font-size: 130%;
	}
}



/* ==================== itemlist.css ==================== */

.ItemList {
	position: relative;
}

.ItemList ul {
	/*
	display: inline-block;
	text-align: left;
	*/
	display: inline-flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style-type: none;
}

.ItemList li {
	box-sizing: border-box;
	text-align: center;
}


.ItemList .item.hide {
	display: none;
}

.ItemList li span {
	display: block;
}

.ItemList li .image {
	border: 1px solid #ffde7a;
	border-radius: 0.5em;
	margin: 2%;
	padding: 8%;
	background: white;
}

.ItemList li .image img {
	vertical-align: bottom;
}

.ItemList li .name {
	margin-top: 0.5em;
	font-size: 90%;
}

.ItemList li a {
	color: #4f1f00;
}

.ItemList .item.new,
.ItemList ul.new li {
	position: relative;
}

.ItemList .item.new::before,
.ItemList ul.new li::before {
	content: '';
	display: block;
	position: absolute;
	z-index: 1;
	right: -0.5em;
	top: -0.5em;
	width: 2.5em;
	height: 2.5em;
	background: url(../images/new.svg) no-repeat center center;
	background-size: contain;
	visibility: visible;
}

@media all and (max-width: 640px) {
	.ItemList h2 {
		margin: 0.5em 0 0;
		text-align: left;
	}
	.ItemList ul {
		width: 90vw;
	}
	.ItemList li {
		width: 22.5vw;
	}

	.ItemList .name {
		display: none;
	}
}

@media all and (min-width: 641px) {
	.ItemList ul {
		width: 700px;
	}
	.ItemList li {
		box-sizing: border-box;
		width: 140px;
		padding: 5px;
	}

}



/* ==================== submenu.css ==================== */

.SubMenu ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

.SubMenu li {
	display: inline-block;
	min-width: 4em;
	margin: 0.5em 0;
	padding-bottom: 0.4em;
	background: no-repeat center bottom;
	background-size: calc(100% - 1em) 0.75em;
	font-size: 140%;
	line-height: 1;
}

.SubMenu.human li {
	color: #d43b3b;
	background-image: url(../images/index_subcategory_base_human.png);
}
.SubMenu.food li {
	color: #e66400;
	background-image: url(../images/index_subcategory_base_food.png);
}
.SubMenu.events li {
	color: #218500;
	background-image: url(../images/index_subcategory_base_events.png);
}

.SubMenu li a {
	display: block;
	padding: 0 1em;
	color: inherit;
	font-family: 'Shin Maru Go DemiBold';
	text-decoration: none;
	transform-origin: 50% 100%;
	transition: transform 200ms ease;
}
.SubMenu li a:hover {
	transform: scale(1.1);
}

@media all and (max-width: 640px) {
	.SubMenu {
		padding: 0 1em;
	}
	.Illust[data-category="food"] .SubMenu li {
		font-size: 120%;
	}
	.Tab.selected .SubMenu li:not(.selected) {
		background: none;
	}
}

@media all and (min-width: 641px) {
	.Illust[data-category="food"] .SubMenu li {
		font-size: 120%;
	}
	.Illust[data-category="food"] .SubMenu li a {
		padding: 0 0.75em;
	}
	.SubMenu li.selected {
		background: none;
	}
	
}