@charset "UTF-8";

/* --------------- common --------------- */
* {
	color: #222;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}


html,
body {
	height: 100%;
	line-height: 1.65;
}


body {
	background: #fafafa;
	min-width: 380px;
	height: 100%;
}


.wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

main {
	flex: 1;
	width: 100%;
}

/* --------------- header --------------- */

header {
	background: #fff;
	border-bottom: 1px solid #e5e7eb;
	position: sticky;
	top: 0;
	width: 100%;
	height: 64px;
	line-height: 64px;
	z-index: 100;

	h1 {
		font-size: 0.9rem;
	}

	.pcNav {
		display: flex;
		gap: 16px;
	}

}

.textArea {
	display: flex;
	justify-content: space-between;
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 14px 16px;
}

ul li {
	list-style: none;
	font-size: 14px;
}

ul li a {
	text-decoration: none;
	padding: 8px 10px;
	text-align: center;
}

nav ul li a:hover {
	background: rgba(37, 99, 235, .08);
	color: #2563eb;
	border-radius: 10%;
}

/* --------------- HamburgerMenu --------------- */
#openMenu {
	font-size: 32px;
	line-height: 64px;
	cursor: pointer;
}

#openMenu.hideMenu {
	visibility: hidden;
}

.overlayMenu {
	background: rgba(255, 255, 255, 0.95);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	opacity: 0;
	pointer-events: none;
	transition: opacity .6s;
}

.overlayMenu li {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .3s, transform .3s;
}

.overlayMenu.showMenu li {
	opacity: 1;
	transform: none
}

.overlayMenu.showMenu li:nth-child(1) {
	transition-delay: .1s;
}

.overlayMenu.showMenu li:nth-child(2) {
	transition-delay: .2s;
}

.overlayMenu.showMenu li:nth-child(3) {
	transition-delay: .3s;
}

.overlayMenu.showMenu li:nth-child(4) {
	transition-delay: .4s;
}

.overlayMenu.showMenu {
	opacity: 1;
	pointer-events: auto;
}

.closeContents {
	max-width: 1080px;
	margin: 0 auto;
	padding: 10px 16px;
	text-align: right;
}

#closeMenu {
	font-size: 32px;
	cursor: pointer;
	top: 16px;
	right: 16px;
}


/* --------------- main --------------- */

main {
	max-width: 1080px;
	margin: 0 auto;
	z-index: 10;
}

.breadcrumb {
	padding: 12px 0;
	font-size: 1rem;

	ol {
		display: flex;

		li {
			list-style: none;
			font-size: 0.8rem;
			color: #666;

			&:not(:first-child)::before {
				content: "›";
				margin: 0 6px;
			}

			a {
				text-decoration: none;
				color: #666;
			}
		}
	}
}

.productArea {
	display: grid;
	gap: 0 16px;
	grid-template-columns: 1fr 1fr 1fr;
	padding: 8px 0 40px;
	width: 100%;
	max-width: 1080px;

	a {
		text-decoration: none;
	}
}

.product {
	background: #fff;
	border-radius: 16px;
	margin: 10px 0;
	box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.04);
	width: 100%;
	min-width: 250px;
	padding: 0 0 12px 0;

	&:hover {
		transform: translateY(-2px);
		box-shadow: 0 .5px .5px .5px rgba(0, 0, 0, 0.04), 0 8px 32px rgba(0, 0, 0, 0.04);
	}

	h3 {
		font-size: 16px;
	}
}

.productImg {
	background-image: url(../../asset/bg.png);
	text-align: center;
	width: 100%;
	border-radius: 16px 16px 0 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;

	img {
		width: 100% !important;
		height: 100% !important;
		object-fit: contain;
	}
}

.card-body {
	padding: 14px 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;

	.productname {
		width: 100%;
		height: 200px;
	}

	.ProductName p {
		font-size: 24px;
		font-weight: normal;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.Price {
		text-align: center;
		font-size: 24px;
	}

	.Stock {
		text-align: right;
		font-size: 16px;
	}

}

.date {
	display: flex;
	gap: 8px;
	font-size: 12px;

	p {
		font-size: 12px;
		color: #666;
	}
}

time {
	color: #666;
	font-size: 12px;
}

.explanation p {
	font-size: 14px;
}

.tag {
	display: flex;
	gap: 8px;
	padding: 4px 0 0 0;

	span {
		border: 1px #e5e7eb solid;
		border-radius: 14px;
		padding: 4px 8px;
		font-size: 12px;
	}
}

.more {
	display: flex;
	margin: 6px 0 0 0;

	a {
		text-decoration: none;
		color: #2563eb;
		font-weight: bold;
	}
}

/* --------------- footer --------------- */

footer {
	padding: 16px 0;
	background: #fff;
	border-top: 1px solid #e5e7eb;
}

.copyright {
	max-width: 1080px;
	margin: 0 auto;
	font-size: 0.9rem;
	font-weight: 300;
	color: #666;
}

/* --------------- 商品一覧 --------------- */

.selectCategory {
	width: 170px;
	height: 32px;
	margin: 0px 16px 0 0;
}

.itemFilter {
	display: flex;
	justify-content: space-between;
}

.priceFilter {
	display: flex;

	span {
		margin-right: 8px;
	}
}

.inputPrice {
	input {
		width: 100px;
		height: 32px;
	}
}

/*ページネーション*/
/* ページネーション全体のレイアウト */
.pager {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 32px;
}

/* ページ番号のリスト */
.pager ul {
	display: flex;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0;
}

/* 共通スタイル */
.pager li {
	border: 1px solid #ccc;
	background: #f9f9f9;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* ページ番号のサイズ */
.pager li:not(.prev):not(.next) {
	width: 40px;
	height: 36px;
}

/* 前へ・次へボタンのサイズ*/
.pager li.prev,
.pager li.next {
	min-width: 70px;
	height: 36px;
}

/* 現在ページ */
.pager li.currentpage {
	font-weight: bold;
	background: #333;
	color: #fff;
}

/* 無効状態 */
.pager li.disabled {
	color: #aaa;
	cursor: default;
}


/* --------------- 商品詳細 --------------- */

.upper {
	display: grid;
	grid-template-columns: 5fr 2fr;
	gap: 16px;
	max-width: 1080px;
	margin: 0 auto;
}


.mainVisual {
	background-image: url(../../asset/bg.png);
	background-repeat: no-repeat;
	background-size: cover;
	max-width: 1080px;
	max-height: 350px;
	text-align: center;
	height: 100%;


	img {
		width: auto !important;
		height: 100% !important;
		object-fit: cover;
	}
}

.titleArea {
	max-width: 1080px;
	background: #fff;
	padding: 16px;
	border: #222 solid 1px;
}

.itemCategory {
	font-size: 16px;
}

.itemName {
	font-size: 24px;
}

.itemPrice {
	font-size: 24px;
	text-align: center;
	margin-top: 16px;
}

.itemStock {
	font-size: 16px;
	margin-top: 16px;
}

.itemQuantity {
	font-size: 16px;
	margin-top: 16px;
}

.quantity {
	display: flex;
}

.selectQ {
	margin-right: 8px;
	width: 96px;
	height: 32px;
}

.cartIn {
	width: 128px;
	height: 32px;
}


button:disabled {
	background-color: #ccc;
	color: #666;
}

.title {
	display: flex;

	time {
		margin: 0 16px 0 0
	}

	p {
		font-size: 0.8rem;
		margin: 0 16px 0 0;
		color: #666;
	}
}

.author {
	margin: 6px 0 0 0;
	font-size: 0.8rem;
	color: #666;
}

.descriptionArea {
	margin: 16px 0 64px 0;
	width: 100%;
	max-width: 1080px;
	background-color: #fff;
	border: #222 solid 1px;

	descriptionRange {
		height: 100%;
	}

	p {
		white-space: pre-line;
		padding: 16px 32px;
	}

}

/* --------------- カートページ --------------- */
.cartItems {
	padding: 16px 16px 32px 16px;
	margin: 0 auto;
	background: #fff;
	border: #222 solid 1px;
}

.itemContainer {
	display: grid;
	grid-template-columns: 2fr 3fr 1fr;
	gap: 16px;
	border-bottom: 1px solid #222;
	padding: 16px 0 16px 64px;
}

.cartItemName {
	font-size: 24px;
}

.emptyCart {
	text-align: center;
	margin-top: 16px;
}

.cItemImg {
	background-image: url(../../asset/bg.png);
	background-repeat: no-repeat;
	background-size: cover;
	max-width: 1080px;
	text-align: center;
	height: 200px;
}

.dummyImg {
	background-image: url(../../asset/bg.png);
	background-repeat: no-repeat;
	background-size: cover;
	height: 200px;
	max-width: 200px;
}

.itemArea {
	max-width: 1080px;
	padding: 16px;
}

.namePrice {
	margin-right: 64px;
}

.priceArea {
	text-align: right;
	padding: 0 96px 0 0;
	margin-top: 32px;

	.shippingFee {
		margin-top: 12px;
	}

	.totalPrice {
		font-size: 24px;
		margin-top: 12px
	}
}

.pageNav {
	display: flex;
	justify-content: center;
	width: 100%;
	max-width: 1080px;
	margin: 32px auto 0;
	text-align: center;
	gap: 128px;

	a {
		display: block;
		text-decoration: none;
		width: 150px;
		padding: 16px 0;
		border: #222 solid 1px;
	}
}

/* --------------- 注文情報入力 --------------- */
.infoForm {
	background: #fff;
	border: #222 solid 1px;
	width: 100%;
	max-width: 1080px;
	padding: 64px 128px;
	margin: 16px 0 32px 0;

	h2 {
		text-align: center;
		margin-bottom: 24px;
	}

	tr {
		display: flex;
		flex-direction: column;
	}

	th {
		text-align: left;
		font-weight: normal;
		margin-bottom: 8px;
	}

	td {
		margin-bottom: 24px;
	}

	.PersonName {
		width: 320px;
		max-width: 100%;
	}

	.Email {
		width: 600px;
		max-width: 100%;
	}

	.Postal {
		width: 280px;
		max-width: 100%;
	}

	.Address {
		width: 600px;
		max-width: 100%;
	}

	.Tel {
		width: 280px;
		max-width: 100%;
	}


	input[type="text"],
	input[type="email"],
	input[type="tel"] {
		height: 40px;
		line-height: 40px;
	}

}

.orderBtn {
	width: 150px;
	padding: 18px 0;
	font-size: 16px;
	background-color: #fff;
	border: #222 solid 1px;
}

/* --------------- 注文完了 --------------- */
.orderComplete {
	text-align: center;
	font-size: 32px;
	margin-bottom: 32px;
}

.returnTop a {
	display: block;
	text-decoration: none;
	width: 200px;
	padding: 16px 0;
	border: #222 solid 1px;
}

/* --------------- レスポンシブ --------------- */

/* 1列（～589px） */
@media screen and (max-width: 590px) {
	ul li {
		&:first-child {
			margin-right: 0;
		}
	}

	.pcNav li a {
		display: none;
	}

	.productArea {
		display: grid;
		grid-template-columns: 1fr;
		margin: 8px auto 3rem;
		width: 100%;
		gap: 0;
		justify-content: center;
	}

	.product {
		margin: 16px 0;
	}

	.textArea {
		padding: 0 16px;
	}

	main {
		padding: 0 16px;
	}

	.copyright {
		padding: 0 0 0 16px;
	}

	.quantity {
		display: block;
	}

	.itemFilter {
		display: block;
		justify-content: normal;
	}

	.priceFilter {
		margin-top: 12px;
	}

	.pager {
		display: block;
		text-align: center;

		ul {
			justify-content: center;
		}
	}

	.upper {
		display: block;
	}

	.mainVisual {
		height: 300px;

		img {
			height: 300px !important;
		}
	}

	.titleArea {
		margin-top: 16px;
	}

	.itemContainer {
		display: block;
		padding: 16px 0 16px 16px;
	}

	.cartItemName {
		text-align: center;
	}

	.quantityArea {
		text-align: center;
	}

	.namePrice {
		margin: 0;
	}

	.priceArea {
		padding: 0;
	}

	.selectQ {
		margin: 0;
	}

	.deleteBtn {
		margin-top: 12px;
	}

	.pageNav {
		display: block;

		.moveOn {
			margin-top: 16px;
		}

		a {
			width: 100%;
		}
	}

	.infoForm {
		padding: 64px 20px;

		.Email {
			width: 100%;
		}

		.Address {
			width: 100%;
		}
	}

	.orderBtn {
		width: 100%;
		margin-top: 16px;
	}
}

/* 2列（590～899px） */
@media screen and (min-width: 590px) and (max-width: 900px) {
	ul li {

		&:first-child {
			margin-right: 0;
		}
	}

	.productArea {
		display: grid;
		grid-template-columns: 1fr 1fr;
		margin: 32px auto 3rem;
		width: 100%;
		gap: 0 16px;
	}

	.textArea {
		padding: 0 16px;
	}

	main {
		padding: 0 16px;
	}

	.copyright {
		padding: 0 0 0 16px;
	}

	.quantity {
		display: block;
	}

	.itemCategory {
		font-size: 14px;
	}

	.itemName {
		font-size: 16px;
	}

	.cartIn {
		margin-top: 6px;
	}

	.itemContainer {
		display: block;
		padding: 16px 0 16px 16px;
	}

	.cartItemName {
		text-align: center;
	}

	.quantityArea {
		text-align: center;
	}

	.namePrice {
		margin: 0;
	}

	.priceArea {
		padding: 0;
	}

	.selectQ {
		margin: 0;
	}

	.deleteBtn {
		margin-top: 12px;
	}

	.infoForm {
		padding: 64px 20px;

		.Email {
			width: 400px;
		}

		.Address {
			width: 400px;
		}
	}

}


/* 3列（900px～） */
@media screen and (min-width: 900px) {
	.productArea {
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
		width: 100%;
	}

	.textArea {
		padding: 0 16px;
	}

	main {
		padding: 0 16px;
	}

	.copyright {
		padding: 0 0 0 16px;
	}
}