@charset "utf-8";
/* ===== スライド表示カート（js/cart-drawer.js） =====
 * スマホ（幅768px未満）：下からせり上がって全画面
 * PC：右側から幅400pxで表示
 */

html.opus-cart-lock,
html.opus-cart-lock body {
	overflow: hidden;
}

.opus-cart {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100000;
	visibility: hidden;
	pointer-events: none;
	transition: visibility 0s linear .35s;
	font-size: 14px;
	line-height: 1.5;
	color: #000;
}
.opus-cart.is-open {
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}

.opus-cart__overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0, 0, 0, .45);
	opacity: 0;
	transition: opacity .35s ease;
}
.opus-cart.is-open .opus-cart__overlay {
	opacity: 1;
}

/* パネル（スマホ：下から全画面） */
.opus-cart__panel {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 100%;
	background: #fff;
	display: flex;
	flex-direction: column;
	transform: translateY(100%);
	transition: transform .35s ease;
	outline: none;
	padding-bottom: env(safe-area-inset-bottom);
	box-sizing: border-box;
}
.opus-cart.is-open .opus-cart__panel {
	transform: translateY(0);
}

/* PC：右側から */
@media (min-width: 768px) {
	.opus-cart__panel {
		left: auto;
		top: 0;
		width: 400px;
		max-width: 90vw;
		transform: translateX(100%);
		box-shadow: -4px 0 16px rgba(0, 0, 0, .15);
		padding-bottom: 28px; /* PCは下の余白を広めに */
	}
	.opus-cart.is-open .opus-cart__panel {
		transform: translateX(0);
	}
}

.opus-cart__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	padding-top: calc(14px + env(safe-area-inset-top));
	border-bottom: 1px solid #ddd;
}
.opus-cart__title {
	margin: 0;
	padding: 0;
	font-size: 17px;
	font-weight: bold;
	color: #42210b;
	background: none;
	border: none;
}
.opus-cart__count {
	font-size: 14px;
	font-weight: normal;
	margin-left: 4px;
}
.opus-cart__close {
	width: 40px;
	height: 40px;
	margin: -8px -8px -8px 0;
	border: none;
	background: none;
	font-size: 28px;
	line-height: 1;
	color: #000;
	cursor: pointer;
}

.opus-cart__body {
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 0 16px;
}

.opus-cart__msg {
	display: none;
	margin: 12px 0 0;
	padding: 8px 10px;
	border-radius: 4px;
	font-size: 14px;
}
.opus-cart__msg.is-show { display: block; }
.opus-cart__msg.is-ok { background: #e6f2ec; color: #006837; }
.opus-cart__msg.is-info { background: #f3efe9; color: #42210b; }
.opus-cart__msg.is-error { background: #fbeaea; color: #a32d2d; }

.opus-cart__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.opus-cart__item {
	display: flex;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid #eee;
	margin: 0;
	background: none;
}
.opus-cart__thumb {
	width: 64px;
	height: 64px;
	flex: none;
	object-fit: cover;
	border-radius: 3px;
	background: #b7a594;
}
.opus-cart__info {
	flex: 1;
	min-width: 0;
}
.opus-cart__name {
	margin: 0 0 2px;
	font-size: 14px;
	word-break: break-all;
}
.opus-cart__price {
	margin: 0 0 6px;
	font-size: 14px;
	color: #000;
}
.opus-cart__ctrl {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.opus-cart__qty {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
}
.opus-cart__qty input {
	width: 56px;
	height: 32px;
	padding: 0 6px;
	font-size: 16px; /* スマホで拡大されないように16px */
	text-align: center;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}
.opus-cart__remove {
	border: none;
	background: none;
	color: #000;
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
	padding: 6px 0 6px 8px;
}

.opus-cart__empty {
	margin: 40px 0;
	text-align: center;
	color: #000;
}

.opus-cart__foot {
	padding: 12px 16px 4px;
	border-top: 1px solid #ddd;
}
.opus-cart__sum {
	display: flex;
	justify-content: space-between;
	font-size: 15px;
	margin-bottom: 2px;
}
.opus-cart__total {
	font-weight: bold;
	font-size: 20px;
}
.opus-cart__note {
	margin: 2px 0 12px;
	font-size: 14px;
	color: #000;
}
.opus-cart__checkout {
	display: block;
	width: 100%;
	height: 48px;
	border: none;
	border-radius: 6px;
	background: #006837;
	color: #fff;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
}
.opus-cart__checkout:hover { opacity: .9; }
.opus-cart__continue {
	display: block;
	width: calc(100% - 32px);
	height: 44px;
	margin: 8px 16px 12px;
	border: 1px solid #42210b;
	border-radius: 6px;
	background: #fff;
	color: #42210b;
	font-size: 15px;
	font-weight: bold;
	cursor: pointer;
}
.opus-cart__continue:hover { background: #f3efe9; }

/* 通信中は操作を止めて薄く */
.opus-cart.is-busy .opus-cart__body,
.opus-cart.is-busy .opus-cart__foot {
	opacity: .5;
	pointer-events: none;
}

/* ヘッダーのカートボタンの点数 */
.opus-cart-badge-wrap {
	position: relative;
	display: inline-block;
}
.opus-cart-badge {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: #EB6101; /* 朱色 */
	color: #fff;
	font-size: 11px;
	line-height: 18px;
	text-align: center;
	box-sizing: border-box;
}

/* ===== 購入手続き（入力・確認・完了）をカートの中に表示 ===== */
.opus-cart__frame {
	display: none;
	flex: 1;
	width: 100%;
	min-height: 0;
	border: 0;
	background: #f6f4f1;
	transition: opacity .2s;
}
.opus-cart.is-checkout .opus-cart__frame { display: block; }
.opus-cart.is-checkout .opus-cart__body,
.opus-cart.is-checkout .opus-cart__foot,
.opus-cart.is-checkout .opus-cart__continue { display: none !important; }
.opus-cart.is-frame-loading .opus-cart__frame { opacity: .4; }
@media (min-width: 768px) {
	.opus-cart.is-checkout .opus-cart__panel {
		width: 480px;
		padding-bottom: 0;
	}
}

/* ヘッダーのカートボタン：点数の丸を付けても以前のレイアウトのまま
 * （style.css と同じく CART を左寄せ・右に10px空けて CONTACT を並べる）
 */
header .btn .opus-cart-badge-wrap {
	float: left;
	margin-right: 10px;
}
header .btn .opus-cart-badge-wrap .btncart {
	margin-right: 0;
}
.sp .btn .opus-cart-badge-wrap {
	margin-right: 10px;
}
.sp .btn .opus-cart-badge-wrap .btncart {
	margin-right: 0;
}

/* スマホ下部のカートボタン：画像はブロックの中央にあるので、丸は画像の右上に置く */
#ft_sp .opus-cart-badge-wrap {
	display: block;
	position: relative;
	float: none;
	margin: 0;
}
#ft_sp .opus-cart-badge {
	top: 4px;
	right: auto;
	left: calc(50% + 14px);
	min-width: 20px;
	height: 20px;
	line-height: 20px;
	border-radius: 10px;
	font-size: 12px;
}
