﻿* {
	margin: 0;
	padding: 0;
}

.wf-sawarabigothic { font-family: "Sawarabi Gothic"; }


@media screen and (min-width: 0px) and (max-width: 480px) {
	#sortArea {
		width: 100%;
		margin: 0 auto;
	}
	#sort {
		width: 100%;
		height: 100px;
		background: #7da87b;
		box-shadow: 0 0 8px 1px #7da87b;
		position: fixed;
		top: 0;
		z-index: 99;
		font-family: "Sawarabi Gothic";
	}
	#sort_contain {
		/*display: flex;*/
		width: 90%;
		height: 100px;
		margin: 0 auto;
		background: #fff;
		text-align: center;
	}
	#sort img {
		width: 70%;
	}
	#sort ul {
		margin: -5px auto;
		padding: 0;
	}
	#sort li {
		display: inline-block;
		box-sizing: border-box;
		vertical-align: middle;
		width: 50px;
		height: 32px;
		font-size: 0.7em;
		line-height: 32px;
		border: 1px solid #393939;
		cursor: pointer;
	}
	#sort li.normal {
		background: #fffcef;
	}
	#sort li.r18 {
		background: #ffdc5b;
	}
	#sort li.link {
		background: #e0eadf;
		text-decoration: none;
	}
	#sort li.active {
		background-color: #393939;
		color: #fffcef;
		font-weight: bold;
		cursor: default;
	}

	#itemList {
		position: relative;
		width: 90%;
		margin: 120px auto 10px;
		overflow: hidden;
	}
	.fair_wrapper {
		display: inline-block;
		box-sizing: border-box;
		margin: 8px 5px;
		width: 48%;
		height: 400px;
		border: 1px solid #393939;
	}
	.fair_start {
		padding: 2px 5px;
		background: #393939;
		color: #fffcef;
		font-size: 0.8em;
		text-align: left !important;
	}
	.fair_item {
		background: url(/special/a/1/sp/fair/bg_item.png);
		height: 150px;
		text-align: center;
		line-height: 140px;
	}
	.fair_item img {
		width: auto;
		height: auto;
		max-width: 100%;
		max-height: 100%;
		vertical-align: middle;
	}
	.fair_title {
		display: flex;
		align-items: center;
		padding: 5px 2px;
		background: #393939;
		color: #fffcef;
		font-size: 0.7em;
		height: 40px;
		line-height: 13px;
		text-align: left !important;
	}
	.fair_detail {
		padding: 3px 3px;
		height: 125px;
		color: #393939;
		font-size: 0.7em;
		line-height: 13px;
		text-align: left !important;
	}
	.fair_detail p {
		text-decoration: underline;
		margin: 2px;
	}
	.fair_link {
		margin: 0 15px;
		padding: 5px 0;
		text-align: center;
		font-size: 0.7em;
		background: #393939;
		color: #fffcef;
	}
	.fair_link a {
		color: #fffcef;
		text-decoration: none;
		transition: .3s;
	}

	#footer {
		width: 100%;
		height: 45px;
		line-height: 45px;
		background: #7da87b;
		text-align: center;
		font-size: 0.7em;
		color: #fffcef;
	}
}

@media screen and (min-width: 481px) and (max-width: 768px) {
	#sortArea {
		width: 100%;
		margin: 0 auto;
	}
	#sort {
		width: 100%;
		height: 100px;
		line-height: 99px;
		background: #7da87b;
		box-shadow: 0 0 8px 1px #7da87b;
		position: fixed;
		top: 0;
		z-index: 99;
		font-family: "Sawarabi Gothic";
	}
	#sort_contain {
		display: flex;
		width: 90%;
		height: 100%;
		margin: 0 auto;
		background: #fff;
	}
	#sort img {
		width: 278px;
		height: 50px;
		margin: 30px 10px 0 0;
	}
	#sort ul {
		margin: 0;
		padding: 0;
	}
	#sort li {
		display: inline-block;
		box-sizing: border-box;
		text-align: center;
		vertical-align: middle;
		width: 70px;
		height: 70px;
		font-family: "Sawarabi Gothic";
		font-size: 0.9em;
		line-height: 70px;
		border: 1px solid #393939;
		cursor: pointer;
	}
	#sort li.normal {
		background: #fffcef;
	}
	#sort li.r18 {
		background: #ffdc5b;
	}
	#sort li.link {
		background: #e0eadf;
		text-decoration: none;
	}
	#sort li.active {
		background-color: #393939;
		color: #fffcef;
		font-weight: bold;
		cursor: default;
	}
	#itemList {
		position: relative;
		width: 90%;
		margin: 120px auto 20px;
		overflow: hidden;
	}
	.fair_wrapper {
		display: inline-block;
		box-sizing: border-box;
		margin: 12px 8px;
		width: 215px;
		height: 450px;
		border: 1px solid #393939;
	}
	.fair_start {
		padding: 5px 5px;
		background: #393939;
		color: #fffcef;
		font-size: 16px;
	}
	.fair_item {
		background: url(/special/a/1/sp/fair/bg_item.png);
		height: 200px;
		text-align: center;
		line-height: 199px;
	}
	.fair_item img {
		width: auto;
		height: auto;
		max-width: 100%;
		max-height: 100%;
		vertical-align: middle;
	}
	.fair_title {
		display: flex;
		align-items: center;
		padding: 5px 2px;
		background: #393939;
		color: #fffcef;
		font-size: 12px;
		height: 40px;
		line-height: 16px;
	}
	.fair_detail {
		padding: 3px 3px;
		height: 122px;
		font-size: 12px;
		line-height: 16px;
	}
	.fair_detail p {
		text-decoration: underline;
		margin: 2px;
	}
	.fair_link {
		margin: 0 15px;
		padding: 5px 0;
		text-align: center;
		font-size: 13px;
		background: #393939;
		color: #fffcef;
	}
	.fair_link a {
		color: #fffcef;
		text-decoration: none;
		transition: .3s;
	}

	#footer {
		width: 100%;
		height: 55px;
		line-height: 55px;
		background: #7da87b;
		text-align: center;
		font-size: 0.8em;
		color: #fffcef;
	}
}

@media screen and (min-width: 769px) and (max-width: 3000px) {
	#sortArea {
		width: 100%;
		margin: 0 auto;
	}
	#sort {
		width: 100%;
		height: 100px;
		line-height: 99px;
		background: #7da87b;
		box-shadow: 0 0 8px 1px #7da87b;
		position: fixed;
		top: 0;
		z-index: 99;
		font-family: "Sawarabi Gothic";
	}
	#sort_contain {
		display: flex;
		width: 1030px;
		margin: 0 auto;
		background: #fff;
	}
	#sort img {
		width: auto;
	}
	#sort ul {
		margin: 0 auto;
		padding: 0;
	}
	#sort li {
		display: inline-block;
		box-sizing: border-box;
		text-align: center;
		vertical-align: middle;
		width: 80px;
		height: 80px;
		font-family: "Sawarabi Gothic";
		font-size: 1.0em;
		line-height: 79px;
		border: 1px solid #393939;
		cursor: pointer;
	}
	#sort li.normal {
		background: #fffcef;
	}
	#sort li.r18 {
		background: #ffdc5b;
	}
	#sort li.link {
		background: #e0eadf;
		text-decoration: none;
	}
	#sort li.active {
		background-color: #393939;
		color: #fffcef;
		font-weight: bold;
		cursor: default;
	}
	#itemList {
		position: relative;
		width: 1030px;
		margin: 120px auto 20px;
		overflow: hidden;
	}
	.fair_wrapper {
		display: inline-block;
		box-sizing: border-box;
		margin: 10px 6px;
		width: 250px;
		height: 520px;
		border: 1px solid #393939;
	}
	.fair_start {
		padding: 5px 5px;
		background: #393939;
		color: #fffcef;
		font-size: 16px;
	}
	.fair_item {
		background: url(/special/a/1/sp/fair/bg_item.png);
		height: 250px;
		text-align: center;
		line-height: 249px;
	}
	.fair_item img {
		width: auto;
		height: auto;
		max-width: 100%;
		max-height: 100%;
		vertical-align: middle;
	}
	.fair_title {
		display: flex;
		align-items: center;
		padding: 5px 5px;
		background: #393939;
		color: #fffcef;
		font-size: 12px;
		height: 40px;
		line-height: 16px;
	}
	.fair_detail {
		padding: 5px 5px;
		height: 130px;
		font-size: 12px;
		line-height: 17px;
		color: #393939;
	}
	.fair_detail p {
		text-decoration: underline;
		margin: 2px;
	}
	.fair_link {
		margin: 0 15px;
		padding: 5px 0;
		text-align: center;
		font-size: 15px;
		background: #393939;
		color: #fffcef;
	}
	.fair_link a {
		color: #fffcef;
		text-decoration: none;
		transition: .3s;
	}

	#footer {
		width: 100%;
		height: 55px;
		line-height: 55px;
		background: #7da87b;
		text-align: center;
		font-size: 0.8em;
		color: #fffcef;
	}
}


