@charset "UTF-8";

body.is-product-modal-open {
	overflow: hidden;
}

body.is-product-modal-open > header,
body.is-product-modal-open .header--common_mypage {
	visibility: hidden !important;
	pointer-events: none !important;
}

.mogumo-product-modal[hidden] {
	display: none !important;
}

.mogumo-product-modal {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	z-index: 10000;
	font-family: "秀英角ゴシック銀 L", sans-serif;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 200ms cubic-bezier(.4, 0, 1, 1), visibility 0s linear 200ms;
}

.mogumo-product-modal.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 240ms cubic-bezier(.22, 1, .36, 1), visibility 0s linear 0s;
}

.mogumo-product-modal .works_modal_mask {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, .55);
	cursor: pointer;
}

.mogumo-product-modal .works_modal_window {
	position: relative;
	z-index: 1;
	width: calc(100% - 32px);
	max-width: 940px;
	max-height: calc(100vh - 32px);
	margin: auto;
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
	outline: none;
	opacity: 0;
	transform: translateY(8px) scale(.985);
	transition: opacity 200ms cubic-bezier(.4, 0, 1, 1), transform 200ms cubic-bezier(.4, 0, 1, 1);
	will-change: opacity, transform;
}

.mogumo-product-modal.is-visible .works_modal_window {
	opacity: 1;
	transform: translateY(0) scale(1);
	transition-duration: 240ms;
	transition-timing-function: cubic-bezier(.22, 1, .36, 1);
}

.mogumo-product-modal .works_modal_content::-webkit-scrollbar {
	display: none;
}

.mogumo-product-modal .works_modal_content {
	box-sizing: border-box;
	width: 100%;
	height: auto;
	max-height: calc(100vh - 32px);
	padding: 80px 40px 40px;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	text-align: left;
}

.mogumo-product-modal .works_modal_close {
	-webkit-appearance: none;
	appearance: none;
	position: absolute !important;
	top: 14px !important;
	right: 19px !important;
	bottom: auto !important;
	left: auto !important;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 42px !important;
	height: 42px !important;
	padding: 0;
	border: 0;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	transform: none !important;
	line-height: 0;
	cursor: pointer;
}

.mogumo-product-modal .works_modal_close svg {
	display: block;
	flex: 0 0 42px;
	width: 42px !important;
	height: 42px !important;
}

@media (prefers-reduced-motion: reduce) {
	.mogumo-product-modal,
	.mogumo-product-modal .works_modal_window {
		transition: none !important;
	}
}

.mogumo-product-modal__layout {
	display: grid;
	grid-template-columns: minmax(0, 370fr) minmax(0, 412fr);
	gap: 39px;
	align-items: start;
	width: 100%;
	max-width: 821px;
	margin: 0 auto;
}

.mogumo-product-modal__gallery {
	position: sticky;
	top: 0;
	min-width: 0;
}

.mogumo-product-gallery__main {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 9px;
	background: #f2f2f2;
	overflow: hidden;
}

.mogumo-product-gallery__main > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mogumo-product-gallery__arrow {
	position: absolute;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .9);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
	transform: translateY(-50%);
	cursor: pointer;
}

.mogumo-product-gallery__arrow[hidden],
.mogumo-product-gallery__thumbs[hidden],
.mogumo-product-modal__more[hidden] {
	display: none !important;
}

.mogumo-product-gallery__arrow--prev { left: 9px; }
.mogumo-product-gallery__arrow--next { right: 9px; }

.mogumo-product-gallery__arrow .u-icon--arrow {
	display: block;
	width: auto;
	height: auto;
	border: 0;
	font-size: 12px;
	line-height: 1;
	color: #4e310f;
}

.mogumo-product-gallery__arrow--prev .u-icon--arrow { transform: scaleX(-1); }
.mogumo-product-gallery__arrow--next .u-icon--arrow { transform: none; }

.mogumo-product-gallery__thumbs {
	display: flex;
	gap: 6px;
	justify-content: center;
	margin-top: 6px;
}

.mogumo-product-gallery__thumb {
	width: 32px;
	height: 32px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	background: #dcdcdc;
	opacity: .3;
	overflow: hidden;
	cursor: pointer;
}

.mogumo-product-gallery__thumb.is-active {
	border-color: #f27725;
	opacity: 1;
}

.mogumo-product-gallery__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mogumo-product-modal__info {
	min-width: 0;
	padding-left: 24px;
	color: #4e310f;
}

.mogumo-product-modal__title {
	margin: 0 0 8px;
	font-family: "秀英角ゴシック銀 B", sans-serif !important;
	font-size: 16px !important;
	font-weight: 600;
	line-height: 1.5;
	color: #4e310f;
	text-align: left;
}

.mogumo-product-modal__review-summary {
	min-height: 0;
	margin: 0 0 8px;
}

.mogumo-product-modal__review-summary[hidden] {
	display: none !important;
}

.mogumo-product-modal__review-summary .review-summary-container.is-normalized > *:not(.mogumo-product-modal__review-row) {
	display: none !important;
}

.mogumo-product-modal__review-row {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-family: "秀英角ゴシック銀 B", sans-serif !important;
	font-size: 13px;
	font-weight: 600;
	line-height: 23.466px;
	color: #2a2929;
}

.mogumo-product-modal__review-row svg {
	flex: 0 0 14.1641px;
	width: 14.1641px;
	height: 14.1641px;
}

.mogumo-product-modal__lead {
	position: relative;
	font-size: 14px;
	line-height: 2;
	color: #4e310f;
}

.mogumo-product-modal__lead.is-collapsed,
.js-product-detail-lead.is-collapsed {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

.mogumo-product-modal .mogumo-product-modal__more,
#products_details.mogumo-public-product-detail .mogumo-product-modal__more {
	-webkit-appearance: none;
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 126px;
	min-width: 126px;
	height: 37px;
	min-height: 37px;
	padding: 0 32px;
	margin: 16px auto 0;
	border: 1px solid #e1e4e4;
	border-radius: 56px;
	background: #fff;
	font-family: "秀英角ゴシック銀 L", sans-serif !important;
	font-size: 12px;
	font-weight: 400;
	line-height: 1;
	color: #737373;
	cursor: pointer;
}

.mogumo-product-modal__divider {
	width: 100%;
	height: 1px;
	margin: 16px 0;
	background: #e1e4e4;
}

.mogumo-product-modal .mogumo-product-modal__add {
	-webkit-appearance: none;
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	height: 44px;
	min-height: 44px;
	padding: 0;
	margin: 0 0 16px;
	border: 0;
	border-radius: 52px;
	background: #e25d20;
	font-family: "秀英角ゴシック銀 B", sans-serif !important;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	color: #fff;
	cursor: pointer;
}

.mogumo-product-modal .mogumo-product-modal__add:disabled,
.mogumo-product-modal .mogumo-product-modal__add.is-disabled {
	background: #c9c9c9;
	cursor: not-allowed;
	pointer-events: none;
}

.mogumo-product-detail {
	width: 100%;
	font-family: "秀英角ゴシック銀 L", sans-serif;
	color: #4e310f;
}

.mogumo-product-detail__age {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.55;
}

.mogumo-product-detail__tabs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 4px;
	width: 100%;
	min-height: 56px;
	padding: 4px;
	margin: 0 0 16px;
	border-radius: 8px;
	background: #fbf9f5;
}

.mogumo-product-detail__tab {
	min-width: 0;
	min-height: 48px;
	padding: 8px 5px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	font-family: "秀英角ゴシック銀 B", sans-serif !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #737373;
	cursor: pointer;
}

.mogumo-product-detail__tab[aria-selected="true"] {
	background: #fff8dd;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
	color: #2f2f2f;
}

.mogumo-product-detail__panel[hidden] { display: none; }

.mogumo-product-detail__item { margin-bottom: 16px; }

.mogumo-product-detail__item-title {
	margin: 0 0 8px;
	padding: 0 0 8px;
	border-bottom: 1px dashed #c0a581;
	font-family: "秀英角ゴシック銀 B", sans-serif !important;
	font-size: 16px;
	font-weight: 600;
	line-height: 2;
	color: #4e310f;
}

.mogumo-product-detail__item-body {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #4e310f;
}

.mogumo-product-detail__comparison {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.mogumo-product-detail__comparison-block {
	min-width: 0;
}

.mogumo-product-detail__comparison-label {
	margin: 0 0 6px;
	font-family: "秀英角ゴシック銀 B", sans-serif !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	color: #737373;
}

.mogumo-product-detail__comparison-content {
	font-size: 14px;
	line-height: 1.55;
}

.mogumo-product-detail__comparison-content > br:first-child,
.mogumo-product-detail__comparison-content > br:last-child,
.mogumo-product-detail__comparison--chips .cateList > br {
	display: none;
}

.mogumo-product-detail__item-body .mogumo-product-detail__comparison--chips .cateList {
	padding-bottom: 0;
}

.mogumo-product-detail__item-body .cateList {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding-bottom: 8px;
}

.mogumo-product-detail__item-body .cateList .list--item {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	height: 32px;
	padding: 0 16px;
	margin: 0;
	border: 0;
	border-radius: 9999px;
	background: #f9dfd2;
	font-family: "秀英角ゴシック銀 L", sans-serif !important;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	color: #4e310f;
}

.mogumo-product-detail .productDetail-howto {
	width: 100%;
	margin: 30px 0 0;
	border: 0;
	border-top: 1px solid #ded9c1;
	border-bottom: 1px solid #ded9c1;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	overflow: visible;
}

.mogumo-product-detail .productDetail-howto dt {
	position: relative;
	width: 100%;
	padding: 8px 32px 8px 0;
	font-family: "秀英角ゴシック銀 B", sans-serif !important;
	font-size: 16px;
	font-weight: 600;
	line-height: 2;
	color: #4e310f;
	cursor: pointer;
}

.mogumo-product-detail .productDetail-howto dt::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 13px;
	width: 8px;
	height: 8px;
	border-right: 1px solid #4e310f;
	border-bottom: 1px solid #4e310f;
	background: none;
	transform: translateY(-70%) rotate(45deg);
	transition: transform .2s ease;
}

.mogumo-product-detail .productDetail-howto dt.is-open::after {
	background: none;
	transform: translateY(-30%) rotate(225deg);
}

.mogumo-product-detail .productDetail-howto dd {
	display: none;
	padding: 0 0 16px;
	font-size: 13px;
	line-height: 1.6;
	color: #4e310f;
}

.mogumo-product-detail .productDetail-howto dd .mogumo-product-detail__comparison-label {
	margin-bottom: 0;
}

.mogumo-product-detail .productDetail-howto dd .mogumo-product-detail__comparison-label--after {
	margin-top: 16px;
}

.mogumo-product-detail .productDetail-howto dd .mogumo-product-detail__howto-leading-break {
	display: none;
}

.mogumo-product-detail .productDetail-howto dd strong {
	display: block;
	margin: 16px 0 5px;
	font-family: "秀英角ゴシック銀 B", sans-serif !important;
	font-weight: 600;
}

.mogumo-product-detail .productDetail-howto dd span { color: #e60012; }

.mogumo-product-detail .productDetail-howto dd span.bold {
	font-weight: 600;
	color: #4e310f;
}

/* 公開商品詳細。外枠は既存のmogumo／モグモデリ型2カラムを維持し、情報表示を共通化する。 */
#products_details.mogumo-public-product-detail .products_details__main { align-items: flex-start; }

#products_details.mogumo-public-product-detail .products_details__image__slide img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

#products_details.mogumo-public-product-detail .products_details__info {
	padding: 0;
	background: #fff;
}

#products_details.mogumo-public-product-detail .products_details__info__inner {
	max-width: 860px;
	margin: 0 auto;
}

@media (any-hover: hover) {
	.mogumo-product-modal__more:hover,
	.mogumo-product-detail__tab:hover { opacity: .75; }
}

@media (max-width: 719px) {
	.mogumo-product-modal {
		align-items: flex-end;
		transition: opacity 280ms ease, visibility 0s linear 280ms;
	}

	.mogumo-product-modal.is-visible {
		transition: opacity 280ms ease, visibility 0s linear 0s;
	}

	.mogumo-product-modal .works_modal_window {
		width: 100%;
		max-width: none;
		height: calc(100vh - 16px);
		height: calc(100dvh - 16px);
		max-height: calc(100vh - 16px);
		max-height: calc(100dvh - 16px);
		margin: 16px 0 0;
		border-radius: 20px 20px 0 0;
		transform: translate3d(0, 100%, 0);
		transition: opacity 280ms ease, transform 280ms ease;
	}

	.mogumo-product-modal.is-visible .works_modal_window {
		transform: translate3d(0, 0, 0);
		transition-duration: 280ms;
		transition-timing-function: ease;
	}

	.mogumo-product-modal .works_modal_content {
		height: 100%;
		max-height: none;
		padding: 70px 16px calc(96px + env(safe-area-inset-bottom));
	}

	.mogumo-product-modal .works_modal_close {
		top: 8px !important;
		right: 8px !important;
	}

	.mogumo-product-modal__layout { display: block; }

	.mogumo-product-gallery__main { touch-action: pan-y; }

	.mogumo-product-detail__item-body .cateList .list--item { font-size: 12px; }

	.mogumo-product-modal__gallery {
		position: static;
		width: 100%;
		max-width: 370px;
		margin: 0 auto 24px;
	}

	.mogumo-product-modal__info { padding-left: 0; }
	.mogumo-product-modal__title { font-size: 20px !important; }

	.mogumo-product-modal .mogumo-product-modal__add {
		position: absolute;
		right: 16px;
		bottom: calc(8px + env(safe-area-inset-bottom));
		left: 16px;
		z-index: 4;
		width: auto;
		margin: 0;
		box-shadow: 0 4px 14px rgba(78, 49, 15, .18);
	}

	#products_details.mogumo-public-product-detail .products_details__info {
		padding: 0;
		border-radius: 16px;
	}
}
