/*
 * 子テーマの追記スタイル（functions.php で条件付き enqueue）
 * ・商品詳細（単体アイテム）
 * ・Welcart 会員ページ（ログイン・マイページ・入会フォーム等）
 *
 * パンくず（.ips-breadcrumb）は style.css の #primary.site-content #content 共通ルールに統一。
 */

/* - item-single キャンペーン表示 */
/* - item-single.php - */
#itempage .campaign_message {
	font-size: 14px;
	margin: 0 0 15px;
	background: none;
	letter-spacing: .5px;
}

@media screen and (min-width: 38.75em) {
	#itempage .campaign_message {
		text-align: left;
	}
}

.item-info form,
.detail-box .ips-purchase-form {
    margin-bottom: 25px;
}
.item-info .skuname,
.detail-box .ips-purchase-form .skuname {
	background-color: #f5f5f5;
}
.detail-box .ips-purchase-form .skuform .skuname {
	display: block;
	margin: 0 0 1rem;
	padding: 0.4em 0.65em;
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.4;
	box-sizing: border-box;
}
/* skuname の直下：残り僅か・完売など */
.detail-box .ips-purchase-form .skuform .skuname + .itemsoldout {
	margin-top: 0;
	margin-bottom: 0.5rem;
}

@media screen and (min-width: 62.5em) {
	#itempage #img-box {
		width: 400px;
	}
}

/* スマホ：ギャラリーのフェード切り替えを滑らかに（合成レイヤ）
 * usces_cart.css の translate(-50%,-50%) 中央寄せと上書きしないよう Z を同時指定 */
@media screen and (max-width: 767.98px) {
	#itempage #img-box .itemimg img {
		-webkit-backface-visibility: hidden;
		backface-visibility: hidden;
		transform: translate3d( -50%, -50%, 0 );
	}
	#itempage #img-box .itemsubimg a img,
	#itempage #img-box .itemsubimg .itemsubimg-link img {
		transform: translate3d(-50%, -50%, 0);
	}
}

/* 商品画像エリア：横並びレイアウト時にヘッダー直下までスクロール追従 */
@media screen and (min-width: 38.75em) {
	#itempage #img-box {
		position: sticky;
		top: calc(var(--masthead-height, 124px) + 20px);
		z-index: 5;
	}
	body.admin-bar #itempage #img-box {
		top: calc(32px + var(--masthead-height, 124px));
	}
}
@media screen and (min-width: 38.75em) and (max-width: 782px) {
	body.admin-bar #itempage #img-box {
		top: calc(46px + var(--masthead-height, 124px));
	}
}

/* #img-box の sticky は .ips-item-sticky-boundary 内で終わる（お気に入りは cart 下へ移動済み） */
/* カート直下のお気に入り・お問い合わせ（.detail-box 内） */
#itempage .detail-box > .item-info--after-cart {
	clear: both;
	float: none;
	width: 100%;
	margin-top: 1.25em;
	padding-top: 0;
	box-sizing: border-box;
}

/* サブ画像（itemsubimg）6 列 — メイン .itemimg と同様：固定枠内で object-fit: contain（usces の width100%/height:auto を上書き） */
#itempage #img-box .itemsubimg {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 6px;
	margin: 0.75rem 0 0;
	overflow: visible;
}
#itempage #img-box .itemsubimg a,
#itempage #img-box .itemsubimg .itemsubimg-link {
	float: none;
	display: block;
	position: relative;
	width: calc((100% - 5 * 6px) / 6);
	max-width: calc((100% - 5 * 6px) / 6);
	flex: 0 0 calc((100% - 5 * 6px) / 6);
	margin: 0;
	box-sizing: border-box;
	text-align: center;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #ffffff;
}
#itempage #img-box .itemsubimg a img,
#itempage #img-box .itemsubimg .itemsubimg-link img {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	transform: translate(-50%, -50%);
	object-fit: contain;
	object-position: center;
	display: block;
}
/* サブ画像 → メイン差し替え用リンク（下線なし・ホバーは薄め／アクティブは白を強め） */
.single #content #itempage #img-box .itemsubimg .itemsubimg-link {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	position: relative;
}
#itempage #img-box .itemsubimg .itemsubimg-link::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: rgba( 255, 255, 255, 0.28 );
	opacity: 0;
	transition: opacity 0.2s ease, background 0.2s ease;
}
#itempage #img-box .itemsubimg .itemsubimg-link.is-active::after {
	background: rgba( 255, 255, 255, 0.46 );
}
#itempage #img-box .itemsubimg .itemsubimg-link:hover::after,
#itempage #img-box .itemsubimg .itemsubimg-link.is-active::after {
	opacity: 1;
}

#itempage .itemcode {
	font-size: 16px;
}

.itemsoldout {
	padding-bottom: 10px;
	font-weight: 500;
}
.item-info .itemsoldout {
	color: #DE0716;
}

.detail-box .item-name {
	margin: 0;
	font-weight: 700;
	line-height: 1.5;
	padding-bottom: 20px;
	font-size: 1.3125rem; /* ~21px スマホ */
}

@media screen and (min-width: 38.75em) {
	.detail-box .item-name {
		font-size: 22px;
	}
	#itempage .item-info:not( .item-info--after-cart ) {
		clear: none;
		width: 55%;
		float: right;
	}
	#itempage .detail-box > .item-info--after-cart {
		float: none;
		width: 100%;
	}
}

/* =商品ページ detail-box 内 購入フォーム（価格・カートを商品名近くに）
-------------------------------------------------------------- */
.detail-box .ips-purchase-form .skuform {
	margin-bottom: 1.5em;
}
.detail-box .ips-purchase-form .zaikostatus {
	float: left;
}
.detail-box .ips-purchase-form .field {
	padding: 0 0 .357143em;
	overflow: hidden;
	text-align: left;
}
.detail-box .ips-purchase-form .field_price {
	font-size: 36px;
	font-weight: bold;
	float: none;
	text-align: left;
}
.field_price .tax {
	font-size: 17px;
	font-weight: 600;
}
.detail-box .ips-purchase-form .field_cprice {
	color: #999;
	font-size: .6em;
	font-weight: normal;
	margin-right: .666667em;
	text-decoration: line-through;
}
.detail-box .ips-purchase-form .c-box {
	clear: both;
	padding: 0;
	text-align: left;
}
/* 数量とカートボタンを横並び（カートボタンがあるブロックのみ） */
.detail-box .ips-purchase-form .c-box:has(.cart-button) {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
}
.detail-box .ips-purchase-form .c-box:has(.cart-button) .quantity.ips-quantity-wrap {
	flex: 1 1 100%;
	width: 100%;
	min-width: 0;
}
.detail-box .ips-purchase-form .c-box:has(.cart-button) .cart-button {
	flex: 0 0 auto;
}
.detail-box .ips-purchase-form .c-box:has(.cart-button) .favorite-button:has(.add-favorite) {
	margin: 0;
	flex: 0 0 auto;
	align-self: flex-end;
}
.detail-box .ips-purchase-form .c-box:has(.cart-button) .ips-product-share-wrap {
	flex: 0 0 auto;
	align-self: flex-end;
}
/* 定期購入ブロック（フォーム外 #wc_regular）：カート＋お気に入り横並び */
.detail-box .item-info .c-box:has(.cart-button) {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px 20px;
}
.detail-box .item-info .c-box:has(.cart-button) .quantity {
	flex: 1 1 100%;
	width: 100%;
	min-width: 0;
}
.detail-box .item-info .c-box:has(.cart-button) .cart-button {
	flex: 0 0 auto;
}
.detail-box .item-info .c-box:has(.cart-button) .favorite-button:has(.add-favorite) {
	margin: 0;
	flex: 0 0 auto;
	align-self: flex-end;
}
.detail-box .item-info .c-box:has(.cart-button) .ips-product-share-wrap {
	flex: 0 0 auto;
	align-self: flex-end;
}

/* SP：カートは1行全体 → 改行後にお気に入り（左）＋共有（右）を隣接 */
@media screen and (max-width: 782px) {
	.detail-box .ips-purchase-form .c-box:has(.cart-button),
	.detail-box .item-info .c-box:has(.cart-button) {
		align-items: flex-start;
	}
	.detail-box .ips-purchase-form .c-box:has(.cart-button) .cart-button,
	.detail-box .item-info .c-box:has(.cart-button) .cart-button {
		flex: 1 1 100%;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}
	.detail-box .ips-purchase-form .c-box:has(.cart-button) .cart-button .skubutton,
	.detail-box .item-info .c-box:has(.cart-button) .cart-button .skubutton {
		width: 100%;
		box-sizing: border-box;
	}
	.detail-box .ips-purchase-form .c-box:has(.cart-button) .favorite-button:has(.add-favorite),
	.detail-box .ips-purchase-form .c-box:has(.cart-button) .ips-product-share-wrap,
	.detail-box .item-info .c-box:has(.cart-button) .favorite-button:has(.add-favorite),
	.detail-box .item-info .c-box:has(.cart-button) .ips-product-share-wrap {
		align-self: flex-start;
		flex: 0 0 auto;
	}
}

/* ステッパー（44px + 枠2px）とカートボタンの見た目の高さを揃える（skubutton は input 想定） */
.detail-box .ips-purchase-form .c-box:has(.cart-button) .skubutton {
	box-sizing: border-box;
	height: 46px;
	min-height: 46px;
	padding: 0 3.75em;
	line-height: 46px;
	vertical-align: middle;
	text-align: center;
}
.detail-box .ips-purchase-form #discount_msg {
	text-align: left;
}
/* トップの .itempoints .point-value と同じ赤（付与ポイント表示） */
#itempage #discount_msg.itempoints .point-value,
.detail-box .ips-purchase-form #discount_msg .point-value {
	color: #DE0716;
	font-weight: bold;
}
.detail-box .ips-purchase-form .ips-product-rating {
	clear: both;
	margin-top: 0.5em;
	margin-bottom: 0.75em;
}
.detail-box .ips-purchase-form .quantity.ips-quantity-wrap {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	vertical-align: middle;
	gap: 6px;
}
.detail-box .ips-purchase-form .ips-quantity-label {
	display: block;
	font-size: 14px;
	color: #333;
	font-weight: 400;
	line-height: 1.3;
}
.detail-box .ips-purchase-form .ips-quantity-row {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.detail-box .ips-purchase-form .ips-quantity-stepper {
	display: inline-flex;
	align-items: stretch;
	box-sizing: border-box;
	min-height: 46px;
	border: 1px solid #d0d0d0;
	border-radius: 3px;
	overflow: hidden;
	background: #fff;
	vertical-align: middle;
}
.detail-box .ips-purchase-form .ips-quantity-stepper__btn {
	box-sizing: border-box;
	width: 44px;
	min-width: 44px;
	min-height: 44px;
	border: 0;
	background: #fff;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	color: #111;
	padding: 0;
	transition: background 0.15s ease;
}
.detail-box .ips-purchase-form .ips-quantity-stepper__btn--minus {
	border-right: 1px solid #e0e0e0;
}
.detail-box .ips-purchase-form .ips-quantity-stepper__btn--plus {
	border-left: 1px solid #e0e0e0;
}
.detail-box .ips-purchase-form .ips-quantity-stepper__btn:hover {
	background: #f5f5f5;
}
.detail-box .ips-purchase-form .ips-quantity-stepper__btn:focus-visible {
	outline: 2px solid #DE0716;
	outline-offset: 2px;
}
.detail-box .ips-purchase-form .ips-quantity-stepper__field {
	flex: 1 1 auto;
	min-width: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
}
.detail-box .ips-purchase-form .ips-quantity-stepper input.skuquantity {
	box-sizing: border-box;
	width: 100%;
	min-width: 44px;
	max-width: 72px;
	height: 44px;
	margin: 0;
	padding: 0 8px;
	border: none;
	text-align: center;
	font-size: 16px;
	font-weight: 700;
	border-radius: 0;
	background: transparent;
	color: #111;
}
.detail-box .ips-purchase-form .ips-quantity-stepper input.skuquantity:focus {
	outline: none;
	box-shadow: inset 0 0 0 2px rgba(222, 7, 22, 0.28);
}
.detail-box .ips-purchase-form .itemsoldout {
	color: #DE0716;
}
.detail-box .ips-purchase-form .cart-button {
	display: inline-block;
	vertical-align: middle;
}
.detail-box .ips-purchase-form .skubutton {
	display: inline-block;
	box-sizing: border-box;
	vertical-align: middle;
	text-align: center;
	font-family: FontAwesome;
	font-weight: bold;
	padding: .714286em 2.142856em;
	letter-spacing: 1px;
	border: none;
	border-radius: 3px;
	background-color: #111;
	color: #fff;
	transition: .3s ease all;
}
.detail-box .ips-purchase-form .skubutton:hover {
	background-color: #666;
	cursor: pointer;
}
.detail-box .item-description {
	margin-top: 2em;
	clear: both;
}

/* 商品メディア（動画 / Instagram / カタログPDF） */
.detail-box .item-description .ips-item-media {
	margin-top: 1.75em;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}
.detail-box .item-description .ips-item-media-block {
	margin: 0;
	padding: 1.25rem 0 0;
	border-top: 1px solid #e5e5e5;
}
.detail-box .item-description .ips-item-media-block:first-child {
	padding-top: 0;
	border-top: none;
}
.detail-box .item-description .ips-item-media-block__heading {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
}
.detail-box .item-description .ips-item-media-block__pdf-cover-link {
	display: block;
	/* max-width: min(100%, 320px); */
	margin: 0 0 0.85rem;
	line-height: 0;
	overflow: hidden;
	border: 1px solid #e0e0e0;
	transition: opacity 0.2s ease;
}
/* .single #content a { text-decoration: underline } より優先 */
.single #content .detail-box .item-description .ips-item-media-block__pdf-cover-link {
	text-decoration: none;
}
.detail-box .item-description .ips-item-media-block__pdf-cover-link:hover {
	opacity: 0.92;
}
.detail-box .item-description .ips-item-media-block__cover-img {
	width: 100%;
	height: auto;
	display: block;
}
.detail-box .item-description .ips-item-media-block__pdf {
	margin: 0;
}
/* レビュー「投稿」ボタン（.ips-review-post-btn）と同系の枠・ホバー */
.detail-box .item-description .ips-item-media-block__pdf-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border: 1px solid #ddd;
	border-radius: 3px;
	background: #fff;
	font-size: 14px;
	color: #333;
	text-decoration: none;
	font-weight: 400;
	cursor: pointer;
	font-family: inherit;
	line-height: 1.3;
	flex-shrink: 0;
	transition: border-color 0.2s, color 0.2s;
}
.single #content .detail-box .item-description .ips-item-media-block__pdf-link {
	text-decoration: none;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
}
.single #content .detail-box .item-description .ips-item-media-block__pdf-link:hover,
.single #content .detail-box .item-description .ips-item-media-block__pdf-link:focus,
.single #content .detail-box .item-description .ips-item-media-block__pdf-link:visited {
	text-decoration: none;
}
.single #content .detail-box .item-description .ips-item-media-block__pdf-link:hover {
	opacity: .7;
}
.detail-box .item-description .ips-item-media-block__pdf-icon {
	display: inline-flex;
	flex-shrink: 0;
	line-height: 0;
}
.detail-box .item-description .ips-item-media-block__pdf-icon img {
	display: block;
	width: 1.25em;
	height: auto;
	vertical-align: middle;
}
.detail-box .item-description .ips-item-media-block__pdf-link:hover {
	border-color: #bbb;
	color: #111;
}
.detail-box .item-description .ips-item-media-block__pdf-link:focus-visible {
	outline: 2px solid #DE0716;
	outline-offset: 2px;
}
.detail-box .item-description .ips-item-embed {
	margin-top: 0;
	max-width: 100%;
}
.detail-box .item-description .ips-item-embed__inner iframe {
	max-width: 100%;
}
.detail-box .item-description .ips-item-embed--youtube .ips-item-embed__inner {
	aspect-ratio: 16 / 9;
	max-width: 100%;
	width: min( 100%, 640px );
}
.detail-box .item-description .ips-item-embed--youtube .ips-item-embed__inner iframe {
	width: 100%;
	height: 100%;
	display: block;
	border: 0;
}
.detail-box .item-description .ips-item-embed--instagram .ips-item-embed__inner {
	max-width: 100%;
	width: min(100%, 540px);
	margin: 0 auto;
}
.detail-box .item-description .ips-item-embed--instagram .ips-item-embed__inner iframe {
	width: 100%;
	min-height: 560px;
	display: block;
	border: 0;
}

/* =商品ページ 5つ星レビュー
-------------------------------------------------------------- */
/* Unicode ★ より角の丸いシルエット（images/ips-star-rounded.svg をマスク） */
.ips-review-stars .ips-star,
.ips-review_stars .ips-star,
.ips-review-stars-input .ips-star {
	position: relative;
	display: inline-block;
	width: 1em;
	height: 1em;
	overflow: hidden;
	line-height: 0;
	text-indent: -9999px;
	vertical-align: -0.14em;
}
.ips-review-stars .ips-star::before,
.ips-review_stars .ips-star::before,
.ips-review-stars-input .ips-star::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: currentColor;
	-webkit-mask-image: url('../images/ips-star-rounded.svg');
	mask-image: url('../images/ips-star-rounded.svg');
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}
.ips-product-rating {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 12px;
}
.ips-product-rating .ips-review-stars {
	display: inline-flex;
	align-items: center;
	gap: 1px;
}
.ips-product-rating .ips-star {
	color: #ddd;
	font-size: 18px;
}
.ips-product-rating .ips-review-stars .ips-star.filled,
.ips-product-rating .ips-star.filled {
	color: #ffc107;
}
.ips-product-rating .ips-review-score {
	font-size: 10px;
	font-weight: 600;
	color: #DE0716;
}
.ips-product-rating .ips-review-count {
	font-size: 10px;
	color: #666;
}
a.ips-product-rating-jump,
.single #content a.ips-product-rating-jump {
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}
a.ips-product-rating-jump:hover,
a.ips-product-rating-jump:active,
.single #content a.ips-product-rating-jump:hover,
.single #content a.ips-product-rating-jump:active {
	color: inherit;
	text-decoration: none;
}
a.ips-product-rating-jump:focus-visible {
	outline: 2px solid #DE0716;
	outline-offset: 3px;
}

/* 商品ページ：#itempage 直下で全幅（従来は .item-info 55% 内に収まっていた） */
#itempage #comments.ips-product-reviews {
	clear: both;
	float: none;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

/* 商品仕様（Welcart カスタムフィールド table）：レビューと同じ全幅ブロック */
#itempage .ips-item-spec {
	clear: both;
	float: none;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	margin: 0;
	padding: 48px 0 0;
	scroll-margin-top: calc(var(--masthead-height, 124px) + 12px);
}

/* ご利用ガイド：フッター「営業日／配送・送料」アンカー（固定ヘッダーで隠れにくくする） */
body.page-slug-guide #ips-guide-handover,
body.page-slug-guide #ips-guide-payment {
	scroll-margin-top: calc(var(--masthead-height, 124px) + 48px);
}
body.admin-bar.page-slug-guide #ips-guide-handover,
body.admin-bar.page-slug-guide #ips-guide-payment {
	scroll-margin-top: calc(32px + var(--masthead-height, 124px) + 48px);
}
@media screen and (max-width: 782px) {
	body.admin-bar.page-slug-guide #ips-guide-handover,
	body.admin-bar.page-slug-guide #ips-guide-payment {
		scroll-margin-top: calc(46px + var(--masthead-height, 124px) + 48px);
	}
}
#itempage .ips-item-spec__title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 16px;
}
#itempage .ips-item-spec__body {
	width: 100%;
}
#itempage .ips-item-spec table.item_custom_field {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
}
#itempage .ips-item-spec table.item_custom_field th,
#itempage .ips-item-spec table.item_custom_field td {
	border-style: solid;
	border-color: #e8e8e8;
	border-width: 0;
	border-bottom-width: 1px;
	padding: 17px 20px;
	vertical-align: middle;
	color: #222;
}
#itempage .ips-item-spec table.item_custom_field tr:first-child th,
#itempage .ips-item-spec table.item_custom_field tr:first-child td {
	border-top-width: 1px;
}
#itempage .ips-item-spec table.item_custom_field th {
	width: 30%;
	background: #f8f8f8;
	text-align: left;
	font-weight: 400;
}
#itempage .ips-item-spec table.item_custom_field td {
	width: 70%;
	background: #fff;
	text-align: left;
	padding-left: 16px;
	padding-right: 16px;
}

/* 仕様の直後にレビューがあるときは上パディングを詰める */
#itempage .ips-item-spec + #comments.ips-product-reviews {
	padding-top: 40px;
}

/* 図面（商品メタ・メディア）— 仕様と同じ全幅 */
#itempage .ips-item-drawing {
	clear: both;
	float: none;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	margin: 0;
	padding: 40px 0 0;
	scroll-margin-top: calc(var(--masthead-height, 124px) + 12px);
	text-align: center;
}
#itempage .ips-item-drawing__body {
	width: 100%;
	text-align: center;
}
#itempage .ips-item-drawing__item {
	margin-bottom: 2.5rem;
}
#itempage .ips-item-drawing__item:last-child {
	margin-bottom: 0;
}
#itempage .ips-item-drawing__img {
	display: block;
	max-width: 100%;
	height: auto;
	margin-left: auto;
	margin-right: auto;
}
#itempage .ips-item-drawing__pdf {
	display: block;
	width: 100%;
	max-width: 1200px;
	min-height: 70vh;
	margin-left: auto;
	margin-right: auto;
	border: 1px solid #e8e8e8;
	box-sizing: border-box;
}
#itempage .ips-item-drawing__pdf-link {
	margin: 12px 0 0;
	font-size: 15px;
}
#itempage .ips-item-drawing__file {
	margin: 0;
	font-size: 15px;
}
#itempage .ips-item-spec + .ips-item-drawing {
	padding-top: 32px;
}
#itempage .ips-item-drawing + #comments.ips-product-reviews {
	padding-top: 40px;
}

/* 商品詳細：レビュー下のトップ同等ブロック（新商品・人気ランキング・限定商品） */
#itempage .ips-itempage-home-rows {
	clear: both;
	float: none;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	margin: 0;
	padding: 56px 0 0;
}
#itempage .ips-itempage-home-rows #featured_wrap,
#itempage .ips-itempage-home-rows #ranking_wrap,
#itempage .ips-itempage-home-rows #limited_wrap {
	margin-bottom: 48px;
}
#itempage .ips-itempage-home-rows #limited_wrap {
	margin-bottom: 0;
}

.ips-product-reviews {
	display: block;
	width: 100%;
	padding-top: 80px;
	clear: both;
	scroll-margin-top: calc(var(--masthead-height, 124px) + 12px);
}
.ips-product-reviews .ips-reviews-title {
	font-size: 20px;
	margin: 0;
}
.ips-product-reviews__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}
.ips-product-reviews__headtext {
	flex: 1;
	min-width: 200px;
}
.ips-product-reviews__overall {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin-top: 30px;
}
.ips-product-reviews__overall-label {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	color: #333;
	line-height: 1.3;
	flex-shrink: 0;
}
.ips-product-reviews__overall-rating.ips-product-rating {
	margin-top: 0;
	margin-bottom: 0;
	gap: 8px;
}
.ips-product-reviews__overall-rating.ips-product-rating .ips-star {
	font-size: 22px;
}
.ips-product-reviews__overall-rating.ips-product-rating .ips-review-score {
	font-size: 15px;
}
.ips-product-reviews__overall-rating.ips-product-rating .ips-review-count {
	font-size: 14px;
}
.ips-product-reviews__sub {
	font-size: 14px;
	color: #999;
	margin: 12px 0 0;
	line-height: 1.5;
}
@media screen and (max-width: 767.98px) {
	.ips-product-reviews__header {
		flex-direction: column;
		align-items: stretch;
	}
	.ips-product-reviews__headtext {
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}
	.ips-product-reviews__sub {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}
	.ips-review-post-btn {
		align-self: flex-end;
	}
}
.ips-review-post-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border: 1px solid #ddd;
	border-radius: 3px;
	background: #fff;
	font-size: 14px;
	color: #333;
	cursor: pointer;
	font-family: inherit;
	flex-shrink: 0;
	line-height: 1.3;
	transition: border-color 0.2s, color 0.2s;
}
.ips-review-post-btn:hover {
	border-color: #bbb;
	color: #111;
}
.ips-review-post-btn:focus-visible {
	outline: 2px solid #DE0716;
	outline-offset: 2px;
}

/* 404：トップへ戻る */
.ips-error-404-home {
	margin: 0 0 2.5em;
	padding: 0 1em 2em;
	text-align: center;
	box-sizing: border-box;
}
.ips-error-404-home__btn,
.ips-error-404-home__btn:link,
.ips-error-404-home__btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 28px;
	border: 1px solid #ddd;
	border-radius: 3px;
	background: #fff;
	font-size: 15px;
	font-weight: bold;
	color: #333;
	text-decoration: none;
	line-height: 1.3;
	transition: border-color 0.2s, color 0.2s, background-color 0.2s;
	box-sizing: border-box;
}
.ips-error-404-home__btn:hover {
	border-color: #bbb;
	color: #111;
	background: #fafafa;
}
.ips-error-404-home__btn:focus-visible {
	outline: 2px solid #DE0716;
	outline-offset: 2px;
}

/* レビュー投稿モーダル */
.ips-review-modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	box-sizing: border-box;
}
.ips-review-modal[hidden] {
	display: none !important;
}
.ips-review-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}
.ips-review-modal__panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 560px;
	max-height: min(90vh, 900px);
	overflow-y: auto;
	padding: 20px 25px 30px;
	background: #fff;
	border-radius: 22px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
	box-sizing: border-box;
}
/* レビュー／お気に入り共通：角丸ストロークのバツ（閉じるテキストなし） */
.ips-review-modal__close,
#tofavorite-content #tofavorite-close.tofavorite-button-link,
#tofavorite-content a#tofavorite-close {
	position: absolute;
	top: 16px;
	right: 18px;
	z-index: 2;
	width: 40px;
	height: 40px;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	font-size: 0 !important;
	line-height: 0 !important;
	text-align: left !important;
	text-indent: -9999px !important;
	overflow: hidden;
	white-space: nowrap;
	color: #5c6773;
	cursor: pointer;
	border-radius: 3px;
	box-sizing: border-box;
	transition: color 0.2s ease;
}
.ips-review-modal__close:hover,
.ips-review-modal__close:focus-visible,
#tofavorite-content #tofavorite-close:hover,
#tofavorite-content #tofavorite-close:focus-visible {
	color: #3d4550;
}
.ips-review-modal__close:focus-visible,
#tofavorite-content #tofavorite-close:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}
.ips-review-modal__close::before,
.ips-review-modal__close::after,
#tofavorite-content #tofavorite-close::before,
#tofavorite-content #tofavorite-close::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 20px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	box-sizing: border-box;
}
.ips-review-modal__close::before,
#tofavorite-content #tofavorite-close::before {
	transform: translate(-50%, -50%) rotate(45deg);
}
.ips-review-modal__close::after,
#tofavorite-content #tofavorite-close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}
.ips-review-modal__title {
	margin: 0 0 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #ddd;
	font-size: 22px;
	font-weight: bold;
	text-align: center;
	color: #333;
	font-family: 'Noto Sans JP', sans-serif;
}
.ips-review-modal__intro {
	font-size: 15px;
	line-height: 1.7;
	color: #555;
	margin: 0 0 24px;
}
/* レビュー：未ログイン時の案内モーダル */
.ips-review-auth-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin: 0 0 20px;
}
.ips-review-auth-modal__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 140px;
	padding: 12px 20px;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: #fff;
	color: #333;
	font-size: 15px;
	text-decoration: none;
	line-height: 1.3;
	box-sizing: border-box;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.ips-review-auth-modal__btn:hover {
	border-color: #999;
	background: #f7f7f7;
	color: #111;
}
/* .single #content 配下の a:link/a:visited より確実に上書き */
.ips-review-auth-modal .ips-review-auth-modal__btn,
.ips-review-auth-modal .ips-review-auth-modal__btn:link,
.ips-review-auth-modal .ips-review-auth-modal__btn:visited,
.ips-review-auth-modal .ips-review-auth-modal__btn:active {
	color: #333;
}
.ips-review-auth-modal .ips-review-auth-modal__btn--primary,
.ips-review-auth-modal .ips-review-auth-modal__btn--primary:link,
.ips-review-auth-modal .ips-review-auth-modal__btn--primary:visited,
.ips-review-auth-modal .ips-review-auth-modal__btn--primary:active {
	background: #333;
	border-color: #333;
	color: #fff;
}
.ips-review-auth-modal .ips-review-auth-modal__btn--primary:hover,
.ips-review-auth-modal .ips-review-auth-modal__btn--primary:focus {
	background: #1a1a1a;
	border-color: #1a1a1a;
	color: #fff;
}
.single #content .ips-review-auth-modal .ips-review-auth-modal__btn--primary,
.single #content .ips-review-auth-modal .ips-review-auth-modal__btn--primary:link,
.single #content .ips-review-auth-modal .ips-review-auth-modal__btn--primary:visited,
.single #content .ips-review-auth-modal .ips-review-auth-modal__btn--primary:hover,
.single #content .ips-review-auth-modal .ips-review-auth-modal__btn--primary:focus,
.single #content .ips-review-auth-modal .ips-review-auth-modal__btn--primary:active {
	color: #fff;
}

/* モーダル内コメントフォーム */
.ips-review-modal__panel #respond {
	margin-top: 0;
	padding-top: 0;
	border: none;
}
.ips-review-modal__panel .comment-reply-title:empty {
	display: none;
}
.ips-review-modal__panel .ips-review-nickname-field label,
.ips-review-modal__panel .ips-review-title-field label {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}
.ips-review-modal__panel .ips-review-nickname-field label .ips-required-badge,
.ips-review-modal__panel .ips-review-title-field label .ips-required-badge {
	margin-left: 0;
}
.ips-review-modal__panel .ips-review-moderation-note {
	font-size: 13px;
	margin-bottom: 16px;
}
.ips-review-modal__panel #respond label {
	font-size: 14px;
}
.ips-review-modal__panel .comment-form-comment .ips-review-field-hint,
.ips-review-modal__panel .ips-review-title-field .ips-review-field-hint {
	display: block;
	font-size: 13px;
	color: #b3b3b3;
	line-height: 1.45;
	margin: 6px 0 10px;
}
.ips-review-modal__panel #respond input[type="text"],
.ips-review-modal__panel #respond input[type="email"],
.ips-review-modal__panel #respond input[type="url"] {
	width: 100%;
	max-width: 100%;
	padding: 12px 14px;
	border: 1px solid #ddd;
	border-radius: 3px;
	font-size: 15px;
	box-sizing: border-box;
}
.ips-review-modal__panel #respond textarea {
	width: 100%;
	max-width: 100%;
	padding: 12px 14px;
	border: 1px solid #ddd;
	border-radius: 3px;
	font-size: 15px;
	box-sizing: border-box;
	min-height: 125px;
	height: 125px;
	resize: vertical;
}
.ips-review-modal__panel #respond .form-submit {
	padding-bottom: 0;
	margin-top: 20px;
	text-align: center;
}
.ips-review-modal__panel #respond .form-submit .ips-review-submit,
.ips-review-modal__panel #respond .form-submit input[type="submit"].ips-review-submit {
	display: inline-block;
	min-width: 200px;
	padding: 14px 36px;
	background: #2d2d2d;
	color: #fff;
	border: none;
	border-radius: 3px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.2s;
}
.ips-review-modal__panel #respond .form-submit input[type="submit"].ips-review-submit:hover {
	background: #444;
}
/* レビュー画像アップロード（モーダル内・フォーム最下部付近） */
.ips-review-image-field {
	margin: 24px 0 8px;
}
.ips-review-image-field__head {
	display: block;
	margin-bottom: 10px;
}
.ips-review-image-field__label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #111;
	margin-bottom: 6px;
}
.ips-review-image-field__hint {
	display: block;
	font-size: 13px;
	color: #b3b3b3;
	line-height: 1.45;
}
.ips-review-image-slots {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 12px;
}
.ips-review-image-upload {
	position: relative;
	margin-top: 12px;
}
.ips-review-image-slots .ips-review-image-upload--slot {
	margin-top: 0;
}
.ips-review-image-slot-body {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}
.ips-review-image-preview-wrap {
	display: none;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}
.ips-review-image-preview-wrap.is-visible {
	display: flex;
}
.ips-review-image-preview {
	display: block;
	width: 80px;
	height: 80px;
	border-radius: 3px;
	overflow: hidden;
	border: 1px solid #e0e0e0;
	background: #f5f5f5;
	flex-shrink: 0;
}
.ips-review-image-preview img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ips-review-image-remove {
	padding: 6px 12px;
	border: 1px solid #ddd;
	border-radius: 3px;
	background: #fff;
	font-size: 13px;
	color: #666;
	cursor: pointer;
	font-family: inherit;
	line-height: 1.3;
	transition: border-color 0.2s, color 0.2s;
}
.ips-review-image-remove:hover {
	border-color: #bbb;
	color: #111;
}
.ips-review-image-input {
	position: absolute;
	width: 0.1px;
	height: 0.1px;
	opacity: 0;
	overflow: hidden;
	z-index: -1;
}
.ips-review-image-browse {
	display: flex;
	align-items: center;
	gap: 10px;
	/* min-height: 52px; */
	padding: 12px 16px;
	border: 1px solid #ddd;
	border-radius: 3px;
	background: #fff;
	cursor: pointer;
	box-sizing: border-box;
	transition: border-color 0.2s, background 0.2s;
}
.ips-review-image-browse:hover {
	border-color: #bbb;
	background: #fafafa;
}
.ips-review-image-input:focus + .ips-review-image-browse {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}
.ips-review-image-browse__plus {
	font-size: 18px;
	line-height: 1;
	font-weight: 400;
	color: #333;
}
.ips-review-image-browse__text {
	font-size: 15px;
	color: #2271b1;
	font-weight: 500;
}
.ips-review-image-filename {
	font-size: 13px;
	color: #666;
	margin: 8px 0 0;
	min-height: 1.2em;
	word-break: break-all;
}
.ips-review-comment-images {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 14px;
}
.ips-review-comment-images .ips-review-comment-image {
	margin-top: 0;
	max-width: 320px;
	flex: 1 1 140px;
}
.ips-review-comment-image {
	margin-top: 14px;
	max-width: 320px;
}
.ips-review-comment-image img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid #eee;
	object-fit: cover;
}
/* 必須：ピル型「必須」（※・* 不使用） */
.ips-review-modal__panel #respond label .required.ips-required-badge,
#comments.ips-product-reviews .ips-required-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 3px 10px;
	margin-left: 6px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.35;
	color: #de0716;
	background: #ffe8ec;
	border-radius: 999px;
	vertical-align: middle;
	letter-spacing: 0.06em;
	border: none;
}
.ips-review-modal__panel .ips-review-rating-field label {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}
.ips-review-modal__panel .ips-review-rating-field label .ips-required-badge {
	margin-left: 0;
}
/* 商品レビュー一覧：トップ「最新レビュー」と同様の折りたたみ＋カード風 */
.ips-product-reviews .ips-product-reviews_list-wrap.ips-reviews_list-wrap {
	max-height: 420px;
	margin-bottom: 0;
}
.ips-product-reviews .ips-product-reviews_list-wrap .ips-review-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.ips-product-reviews .ips-product-reviews_list-wrap .ips-review-list > li {
	margin: 0;
	padding: 0;
	list-style: none;
	border: none;
}
.ips-product-reviews .ips-product-reviews_list-wrap .ips-review-comment-body {
	padding: 20px;
	margin: 0;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
}
.ips-product-reviews .ips-product-reviews_more {
	margin-top: 0;
	margin-bottom: 24px;
	position: static;
	z-index: auto;
}
/* 特異性が高い max-height:420px を上書きし、展開後は高さをフローに反映（重なり防止） */
.ips-product-reviews .ips-product-reviews_list-wrap.ips-reviews_list-wrap.ips-reviews-expanded {
	max-height: none;
	overflow: visible;
	margin-bottom: 24px;
}
.ips-product-reviews .ips-product-reviews_list-wrap.ips-reviews_list-wrap.ips-reviews-expanded::after {
	display: none;
}
.ips-review-nickname-field {
	margin-bottom: 16px;
}
.ips-review-nickname-field label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
}
.ips-review-title-field {
	margin-bottom: 16px;
}
.ips-review-title-field label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
}
.ips-review-title-field .ips-review-field-hint {
	display: block;
	font-size: 13px;
	color: #b3b3b3;
	line-height: 1.45;
	margin: 0 0 10px;
}
.ips-review-title-input::placeholder {
	font-size: 13px;
	color: #b3b3b3;
	opacity: 1;
}
.ips-review-rating-field {
	margin-bottom: 16px;
}
.ips-review-rating-field label {
	display: block;
	margin-bottom: 8px;
}
.ips-review-stars-input {
	display: inline-flex;
	gap: 4px;
	cursor: pointer;
}
.ips-review-stars-input .ips-star {
	display: inline-block;
	font-size: 28px;
	color: #ddd;
	transition: color 0.2s;
	user-select: none;
}
.ips-review-stars-input .ips-star:hover,
.ips-review-stars-input .ips-star.filled {
	color: #ffc107;
}
.ips-review-stars-input .ips-star[aria-pressed="true"] {
	color: #ffc107;
}

.ips-review-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ips-review-list .ips-review-comment-body {
	padding: 20px 0;
	border-bottom: 1px solid #eee;
}
.ips-review-list .ips-review-comment-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 8px;
}
.ips-review-list .ips-review-author {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #999;
}
.ips-review-list .ips-review-date {
	font-size: 12px;
	color: #999;
}
.ips-review-list .ips-review-stars .ips-star {
	color: #ddd;
	font-size: 15px;
}
.ips-review-list .ips-review-stars .ips-star.filled {
	color: #ffc107;
}
.ips-review-list .ips-review-comment-content {
	line-height: 1.7;
	color: #333;
}
/* トップ最新レビュー：タイトル〜続きを見るの縦並び（flex で子の min-width:0 も継承しやすく） */
#ips-reviews_wrap .ips-review_content {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-width: 0;
}

/* 商品詳細レビュー一覧・トップ最新レビュー：タイトル（本文16pxより一段効かせる・同一サイズ/weight） */
.ips-review-list .ips-review-comment-title,
#ips-reviews_wrap .ips-review_content .ips-review-comment-title {
	margin: 0 0 8px;
	padding: 0;
	font-size: 15px;
	font-weight: 500;
	color: #333;
	line-height: 1.55;
	display: block;
	width: 100%;
	box-sizing: border-box;
}

/* タイトルと抜粋の間の二重マージン防止 */
#ips-reviews_wrap .ips-review_content .ips-review-comment-title + .ips-review_text {
	margin-top: 0;
}

/* 続きを見る：ブロック左寄せ・上余白 */
#ips-reviews_wrap .ips-review_content .ips-review-expand-text {
	margin-top: 6px;
	align-self: flex-start;
}
.ips-review-closed-notice {
	margin: 0 0 24px;
	clear: both;
}
.ips-review-closed-notice .ips-product-rating.ips-review-notice-rating {
	margin-bottom: 12px;
}
.ips-review-closed-notice .ips-review-count-zero {
	margin-left: 2px;
}
.ips-review-purchaser-only {
	display: block;
	clear: both;
	padding: 16px;
	background: #f9f9f9;
	border: 1px solid #eee;
	border-radius: 4px;
	color: #666;
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
}
.ips-review-moderation-note {
	font-size: 13px;
	color: #666;
	margin: 0 0 16px;
	line-height: 1.6;
}

/* 商品詳細：お問い合わせボタン（お気に入り横の従来レイアウト用） */
.single #content .inquiry-button {
	border: 1px solid #ddd;
	transition: border-color 0.2s, color 0.2s;
}
.single #content .inquiry-button a {
	text-decoration: none;
	color: inherit;
	background: none;
	border: 0;
	font: inherit;
	cursor: pointer;
	padding: 0;
	text-align: inherit;
}
.single #content .inquiry-button:hover {
	border-color: #bbb;
	color: #111;
}
.single #content .inquiry-button a:hover,
.single #content .inquiry-button a:focus,
.single #content .inquiry-button a:active,
.single #content .inquiry-button a:visited {
	text-decoration: none;
}
.single #content .inquiry-button a:visited {
	color: inherit;
}
.single #content .inquiry-button a:focus-visible {
	outline: 2px solid #DE0716;
	outline-offset: 2px;
}

/* wcex_favorites：外枠の円は親に、星だけ input をマスク */
.single #content .favorite-button:has(.add-favorite) {
	margin: 0;
	padding: 0;
	text-align: left;
	border: 1px solid #ddd;
	border-radius: 50%;
	width: 48px;
	height: 48px;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: #fff;
	vertical-align: middle;
	transition: border-color 0.2s;
}
.single #content .favorite-button:has(.add-favorite):hover {
	border-color: #bbb;
}
.single #content .favorite-button .add-favorite {
	width: 100%;
	height: 100%;
	min-width: 0;
	padding: 0;
	box-sizing: border-box;
	border: none !important;
	border-radius: 50%;
	background-color: #ccc;
	-webkit-mask-image: url('../images/ips-star-rounded-outline.svg');
	mask-image: url('../images/ips-star-rounded-outline.svg');
	-webkit-mask-size: 25px 25px;
	mask-size: 25px 25px;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	color: transparent !important;
	font-size: 0 !important;
	line-height: 0 !important;
	cursor: pointer;
	transition: background-color 0.2s;
	-webkit-appearance: none;
	appearance: none;
}
.single #content .favorite-button .add-favorite.added {
	background-color: #DE0716;
	-webkit-mask-image: url('../images/ips-star-rounded.svg');
	mask-image: url('../images/ips-star-rounded.svg');
}
.single #content .favorite-button .add-favorite.not-login {
	background-color: #ccc;
	-webkit-mask-image: url('../images/ips-star-rounded-outline.svg');
	mask-image: url('../images/ips-star-rounded-outline.svg');
}
.single #content .favorite-button .add-favorite:hover,
.single #content .favorite-button .add-favorite.added:hover {
	color: transparent !important;
}
.single #content .favorite-button .add-favorite.not-added:hover,
.single #content .favorite-button .add-favorite.not-login:hover {
	background-color: #ccc;
}
.single #content .favorite-button .add-favorite.added:hover {
	background-color: #DE0716;
}
.single #content .favorite-button .add-favorite:focus-visible {
	outline: 2px solid #DE0716;
	outline-offset: 2px;
}

/* 商品詳細：共有（お気に入りの右） */
.single #content .ips-product-share-wrap {
	display: inline-flex;
	vertical-align: middle;
}
.single #content .ips-product-share-trigger {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	width: 48px;
	height: 48px;
	border: 1px solid #ddd;
	border-radius: 50%;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #222;
	transition: border-color 0.2s;
	-webkit-appearance: none;
	appearance: none;
}
.single #content .ips-product-share-trigger:hover {
	border-color: #bbb;
}
.single #content .ips-product-share-trigger:focus-visible {
	outline: 2px solid #DE0716;
	outline-offset: 2px;
}
.single #content .ips-product-share-trigger__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}
.single #content .ips-product-share-svg {
	display: block;
}

/* 共有モーダル */
.ips-product-share-modal {
	position: fixed;
	inset: 0;
	z-index: 10060;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	box-sizing: border-box;
	padding: 0;
}
.ips-product-share-modal[hidden] {
	display: none !important;
}
.ips-product-share-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}
.ips-product-share-modal__panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 100%;
	margin: 0;
	background: #fff;
	border-radius: 20px 20px 0 0;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
	box-sizing: border-box;
	animation: ips-product-share-in 0.22s ease-out;
}
@keyframes ips-product-share-in {
	from {
		transform: translateY(20px);
		opacity: 0.92;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}
.ips-product-share-modal__header {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	padding: 18px 48px 14px;
	border-bottom: 1px solid #f0f0f0;
}
.ips-product-share-modal__title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: #000;
}
.ips-product-share-modal__close {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	font-size: 24px;
	font-weight: 300;
	line-height: 1;
	color: #000;
	cursor: pointer;
	border-radius: 4px;
}
.ips-product-share-modal__close:hover {
	color: #000;
	opacity: 0.65;
}
.ips-product-share-modal__close:focus-visible {
	outline: 2px solid #DE0716;
	outline-offset: 2px;
}
.ips-product-share-modal__body {
	padding: 24px 20px 32px;
}
.ips-product-share-actions {
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-between;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	max-width: 420px;
	margin-left: auto;
	margin-right: auto;
}
.ips-product-share-actions > li {
	flex: 1;
	min-width: 0;
	text-align: center;
}
.ips-product-share-action,
button.ips-product-share-action {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 0;
	border: none;
	background: none;
	text-decoration: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
	box-sizing: border-box;
	opacity: 1;
	transition: opacity 0.22s ease;
}
a.ips-product-share-action:hover,
button.ips-product-share-action:hover {
	opacity: 0.6;
}
.ips-product-share-action__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 auto;
	border: 1px solid #e8f0f5;
	border-radius: 50%;
	background: #fff;
	box-sizing: border-box;
	font-size: 20px;
	color: #000;
}
.ips-product-share-action__icon .fa {
	color: #000;
}
.ips-product-share-action__icon--copy .ips-copy-link-icon {
	display: block;
}
.ips-product-share-action__icon--facebook .ips-facebook-icon {
	display: block;
}
.ips-product-share-action__icon--x {
	color: #000;
}
.ips-product-share-action__icon--x .ips-x-icon {
	display: block;
}
.ips-product-share-action__icon--line {
	border: 1px solid #e8f0f5;
	background: #fff;
	color: #000;
}
.ips-product-share-action__icon--line .ips-line-icon {
	display: block;
}
.ips-product-share-action__label {
	display: block;
	font-size: 11px;
	color: #000;
	line-height: 1.3;
}
.ips-product-share-toast {
	margin: 16px 0 0;
	text-align: center;
	font-size: 14px;
	color: #666666;
}
.ips-product-share-toast[hidden] {
	display: none !important;
}
@media screen and (min-width: 480px) {
	.ips-product-share-modal {
		align-items: center;
		padding: 24px 16px;
	}
	.ips-product-share-modal__panel {
		max-width: 540px;
		border-radius: 20px;
		animation: none;
		box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
	}
	.ips-product-share-modal__header {
		padding: 20px 48px 16px;
	}
}

/* 会員お気に入り一覧：ハート画像を商品詳細と同じ角丸星マスクに（.ips-favorite-star-toggle は wc_favorite_page.php） */
#member-favorite .ips-favorite-star-toggle {
	width: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
#member-favorite .ips-favorite-star-toggle .favorite-added,
#member-favorite .ips-favorite-star-toggle .favorite-not-added {
	display: inline-block;
	width: 24px;
	height: 24px;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: none;
	vertical-align: middle;
	cursor: pointer;
	background-color: #DE0716;
	-webkit-mask-image: url('../images/ips-star-rounded.svg');
	mask-image: url('../images/ips-star-rounded.svg');
	-webkit-mask-size: 22px 22px;
	mask-size: 22px 22px;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-appearance: none;
	appearance: none;
}
#member-favorite .ips-favorite-star-toggle .favorite-not-added {
	background-color: #ccc;
	-webkit-mask-image: url('../images/ips-star-rounded-outline.svg');
	mask-image: url('../images/ips-star-rounded-outline.svg');
}
#member-favorite .ips-favorite-star-toggle .favorite-added:hover {
	background-color: #b80614;
}
#member-favorite .ips-favorite-star-toggle .favorite-not-added:hover {
	background-color: #b3b3b3;
}
#member-favorite .ips-favorite-star-toggle .favorite-added:focus-visible,
#member-favorite .ips-favorite-star-toggle .favorite-not-added:focus-visible {
	outline: 2px solid #DE0716;
	outline-offset: 2px;
}

/* wcex_favorites：完了／ログイン案内モーダルが商品画像（#img-box z-index:5）に隠れないよう重ね順を上げる（レビューモーダル 10050 より下） */
#tofavorite-overlay {
	z-index: 10040 !important;
	background-color: rgba( 0, 0, 0, 0.45 ) !important;
}
#tofavorite-content {
	z-index: 10041 !important;
	/* .ips-review-modal__panel に寄せたカード */
	width: calc( 100% - 32px );
	max-width: 560px !important;
	padding: 20px 25px 30px !important;
	border: none !important;
	border-radius: 22px !important;
	box-shadow: 0 20px 60px rgba( 0, 0, 0, 0.18 ) !important;
	box-sizing: border-box;
	font-family: 'Noto Sans JP', sans-serif;
}
#tofavorite-content > p:last-child {
	margin: 0 !important;
	padding: 0 !important;
	height: 0;
	line-height: 0;
	overflow: visible;
	pointer-events: none;
}
#tofavorite-content > p:last-child #tofavorite-close {
	pointer-events: auto;
}
#tofavorite-content p {
	margin: 0;
}

/* ----- 未ログイン（#tologin）：レビュー認証モーダルと同じボタン配置・配色 ----- */
#tofavorite-content #tologin {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 12px;
}
#tofavorite-content #tologin::before {
	content: 'お気に入り';
	flex: 0 0 100%;
	width: 100%;
	margin: 0 0 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #ddd;
	font-size: 22px;
	font-weight: bold;
	text-align: center;
	color: #333;
	font-family: 'Noto Sans JP', sans-serif;
}
#tofavorite-content #tologin .tologin-message {
	flex: 0 0 100%;
	width: 100%;
	font-size: 15px;
	line-height: 1.7;
	color: #555;
	text-align: left;
	margin: 0 0 24px !important;
}
#tofavorite-content #tologin .tologin-page-link,
#tofavorite-content #tologin .tologin-newmember-page-link {
	flex: 0 1 auto;
	margin: 0 !important;
}
#tofavorite-content #tologin .tologin-page-link a,
#tofavorite-content #tologin .tologin-newmember-page-link a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 140px;
	margin: 0 !important;
	max-width: none !important;
	width: auto !important;
	height: auto !important;
	padding: 12px 20px !important;
	border-radius: 3px !important;
	font-size: 15px !important;
	line-height: 1.3 !important;
	text-decoration: none !important;
	box-sizing: border-box;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
/* ログイン＝プライマリ（黒系） */
#tofavorite-content #tologin .tologin-page-link a,
#tofavorite-content #tologin .tologin-page-link a:link,
#tofavorite-content #tologin .tologin-page-link a:visited,
#tofavorite-content #tologin .tologin-page-link a:active {
	background: #333 !important;
	border: 1px solid #333 !important;
	color: #fff !important;
}
#tofavorite-content #tologin .tologin-page-link a:hover,
#tofavorite-content #tologin .tologin-page-link a:focus {
	background: #1a1a1a !important;
	border-color: #1a1a1a !important;
	color: #fff !important;
}
/* 会員登録＝セカンダリ（白枠） */
#tofavorite-content #tologin .tologin-newmember-page-link a,
#tofavorite-content #tologin .tologin-newmember-page-link a:link,
#tofavorite-content #tologin .tologin-newmember-page-link a:visited,
#tofavorite-content #tologin .tologin-newmember-page-link a:active {
	background: #fff !important;
	border: 1px solid #ccc !important;
	color: #333 !important;
}
#tofavorite-content #tologin .tologin-newmember-page-link a:hover,
#tofavorite-content #tologin .tologin-newmember-page-link a:focus {
	border-color: #999 !important;
	background: #f7f7f7 !important;
	color: #111 !important;
}

/* ----- 登録完了など（#tofavorite）：一覧へ＝サイト赤 ----- */
#tofavorite-content #tofavorite .tofavorite-message {
	font-size: 15px;
	line-height: 1.7;
	color: #555;
	text-align: left;
	margin: 0 0 24px !important;
}
#tofavorite-content #tofavorite .tofavorite-page-link a,
#tofavorite-content #tofavorite .tofavorite-page-link a:link,
#tofavorite-content #tofavorite .tofavorite-page-link a:visited,
#tofavorite-content #tofavorite .tofavorite-page-link a:active {
	background-color: #DE0716 !important;
	border: 1px solid #DE0716 !important;
	color: #fff !important;
	display: block;
	max-width: 300px;
	margin: 0 auto !important;
	height: 45px !important;
	line-height: 45px !important;
	border-radius: 3px !important;
	text-align: center;
	text-decoration: none !important;
	font-size: 15px !important;
}
#tofavorite-content #tofavorite .tofavorite-page-link a:hover,
#tofavorite-content #tofavorite .tofavorite-page-link a:focus {
	background-color: #b80614 !important;
	border-color: #b80614 !important;
	color: #fff !important;
}
