/* ===== 製品アーカイブ ===== */
.jsp-archive {
	padding: 3em 1.2em 4em;
	background: #fff;
}
.jsp-archive-inner {
	max-width: 1120px;
	margin: 0 auto;
}
.jsp-archive-header {
	text-align: center;
	margin-bottom: 2em;
}
.jsp-archive-title {
	font-size: 2em;
	font-weight: 800;
	letter-spacing: .08em;
	margin: 0;
	color: #111;
}
.jsp-archive-title::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	margin: .6em auto 0;
	background: #111;
	border-radius: 3px;
}
.jsp-archive-desc {
	color: #6b7280;
	margin-top: .6em;
}
.jsp-cat-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 3em;
}
/* スマホ：カテゴリボタンを横一列に。はみ出す場合は横スクロール */
@media (max-width: 600px) {
	.jsp-cat-nav {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 8px;
		margin-bottom: 2em;
		scrollbar-width: thin;
	}
	.jsp-cat-nav::-webkit-scrollbar {
		height: 4px;
	}
	.jsp-cat-nav::-webkit-scrollbar-thumb {
		background: #ccc;
		border-radius: 4px;
	}
	.jsp-cat-nav-link {
		flex: 0 0 auto;
		white-space: nowrap;
	}
}
.jsp-cat-nav-link {
	display: inline-block;
	padding: 8px 22px;
	border: 1.5px solid #111;
	border-radius: 999px;
	font-size: .88em;
	font-weight: 600;
	letter-spacing: .03em;
	text-decoration: none;
	color: #111;
	background: #fff;
	transition: all .18s ease;
}
.jsp-cat-nav-link:hover,
.jsp-cat-nav-link.is-active {
	background: #111;
	color: #fff;
}
.jsp-cat-section {
	margin-bottom: 3.5em;
}
.jsp-cat-heading {
	display: flex;
	align-items: baseline;
	gap: .6em;
	font-size: 1.5em;
	font-weight: 800;
	letter-spacing: .04em;
	color: #111;
	margin: 0 0 1.2em;
	padding-bottom: .5em;
	border-bottom: 2px solid #111;
}
.jsp-cat-heading::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	background: #111;
	transform: rotate(45deg);
	flex: 0 0 auto;
}
.jsp-cat-heading a {
	text-decoration: none;
	color: inherit;
}
.jsp-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 24px;
}
.jsp-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #ececec;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	background: #fff;
	transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.jsp-card:hover {
	box-shadow: 0 16px 36px rgba(0, 0, 0, .14);
	transform: translateY(-4px);
	border-color: #ddd;
}
.jsp-card-thumb {
	display: block;
	aspect-ratio: 4 / 3;
	background: #f4f4f5;
	overflow: hidden;
}
.jsp-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}
.jsp-card:hover .jsp-card-thumb img {
	transform: scale(1.06);
}
.jsp-card-noimg {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #c4c4c4;
	font-size: .8em;
	letter-spacing: .15em;
}
.jsp-card-body {
	display: flex;
	flex-direction: column;
	gap: .5em;
	padding: 1.1em 1.2em 1.3em;
}
.jsp-card-title {
	font-weight: 700;
	line-height: 1.5;
	color: #1a1a1a;
}
.jsp-card-price {
	color: #111;
	font-weight: 800;
	font-size: 1.15em;
}
.jsp-card-tax {
	font-size: .62em;
	font-weight: 400;
	color: #999;
	margin-left: .2em;
}

/* ===== 購入申込フォーム ===== */
.jsp-purchase {
	--jsp-accent: #111111;
	--jsp-accent-dark: #000000;
	--jsp-ink: #1a1a1a;
	--jsp-line: #e2e2e2;
	position: relative;
	margin-top: 3em;
	padding: 2.6em 2.4em 2.8em;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .12);
	overflow: hidden;
}
.jsp-purchase::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 6px;
	background: linear-gradient(90deg, #000, #444);
}
.jsp-purchase-head {
	text-align: center;
	margin-bottom: 1.8em;
}
.jsp-purchase-title {
	font-size: 1.5em;
	font-weight: 800;
	letter-spacing: .03em;
	margin: 0 0 .4em;
	color: var(--jsp-ink);
}
.jsp-purchase-title::after {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	margin: .55em auto 0;
	border-radius: 3px;
	background: var(--jsp-accent);
}
.jsp-purchase-lead {
	color: #6b7280;
	font-size: .92em;
	margin: 0;
	line-height: 1.7;
}
.jsp-form-notice {
	padding: 1em 1.2em;
	border-radius: 10px;
	margin-bottom: 1.4em;
	font-size: .95em;
	display: flex;
	align-items: center;
	gap: .6em;
}
.jsp-form-success {
	background: #eafaf0;
	border: 1px solid #a5e0ba;
	color: #17693a;
}
.jsp-form-error {
	background: #fdeeee;
	border: 1px solid #f0b4b4;
	color: #a12a2a;
}

.jsp-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.3em;
}
.jsp-field {
	margin-bottom: 1.3em;
}
.jsp-field > label {
	display: flex;
	align-items: center;
	font-weight: 700;
	font-size: .9em;
	color: var(--jsp-ink);
	margin-bottom: .5em;
	letter-spacing: .02em;
}
.jsp-req {
	display: inline-block;
	font-size: .68em;
	font-weight: 700;
	color: #fff;
	background: #e5484d;
	border-radius: 999px;
	padding: 2px 9px;
	margin-left: .5em;
	letter-spacing: .04em;
}
.jsp-field input[type="text"],
.jsp-field input[type="tel"],
.jsp-field textarea {
	width: 100%;
	padding: .85em 1em;
	border: 1.5px solid var(--jsp-line);
	border-radius: 12px;
	font-size: 1em;
	box-sizing: border-box;
	background: #f8fafc;
	color: var(--jsp-ink);
	transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.jsp-field input::placeholder,
.jsp-field textarea::placeholder {
	color: #aeb6c2;
}
.jsp-field input[type="text"]:focus,
.jsp-field input[type="tel"]:focus,
.jsp-field textarea:focus {
	outline: none;
	background: #fff;
	border-color: var(--jsp-accent);
	box-shadow: 0 0 0 4px rgba(0, 0, 0, .1);
}
.jsp-field textarea {
	resize: vertical;
}

/* 郵便番号 */
.jsp-zip-wrap {
	display: flex;
	gap: 10px;
	align-items: stretch;
}
.jsp-zip-wrap input {
	max-width: 200px;
}
.jsp-zip-btn {
	flex: 0 0 auto;
	padding: 0 1.3em;
	border: 1.5px solid var(--jsp-ink);
	border-radius: 12px;
	background: var(--jsp-ink);
	color: #fff;
	font-size: .9em;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: filter .18s ease, transform .18s ease;
}
.jsp-zip-btn:hover {
	filter: brightness(1.25);
	transform: translateY(-1px);
}
.jsp-zip-note {
	margin: .5em 0 0;
	font-size: .82em;
	color: #8a8f98;
	line-height: 1.6;
}
.jsp-zip-note.is-error {
	color: #c0392b;
}

/* カラー選択 */
.jsp-color-select {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.jsp-color-choice {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .4em;
	width: 96px;
	padding: .7em .5em;
	border: 1.5px solid var(--jsp-line);
	border-radius: 12px;
	background: #f8fafc;
	cursor: pointer;
	text-align: center;
	transition: all .15s ease;
}
.jsp-color-choice:hover {
	border-color: #b9c1cc;
	background: #fff;
}
.jsp-color-choice:has(input:checked) {
	border-color: var(--jsp-accent);
	background: #f3f3f3;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .14);
}
.jsp-color-choice input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.jsp-color-choice-visual img,
.jsp-color-choice-swatch {
	width: 64px;
	height: 64px;
	border-radius: 8px;
	display: block;
	object-fit: cover;
	border: 1px solid #e0e0e0;
}
.jsp-color-choice-name {
	font-size: .82em;
	font-weight: 600;
	color: #4b5563;
	line-height: 1.3;
}
.jsp-color-choice:has(input:checked) .jsp-color-choice-name {
	color: #111;
	font-weight: 700;
}

/* オプション選択 */
.jsp-option-select {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.jsp-option-choice {
	display: flex;
	align-items: center;
	gap: .7em;
	padding: .8em 1em;
	border: 1.5px solid var(--jsp-line);
	border-radius: 12px;
	background: #f8fafc;
	cursor: pointer;
	transition: all .15s ease;
}
.jsp-option-choice:hover {
	border-color: #b9c1cc;
	background: #fff;
}
.jsp-option-choice:has(input:checked) {
	border-color: var(--jsp-accent);
	background: #f3f3f3;
}
.jsp-option-choice input {
	width: 18px;
	height: 18px;
	margin: 0;
	flex: 0 0 auto;
	accent-color: var(--jsp-accent);
}
.jsp-option-choice-thumb img {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}
.jsp-option-choice-name {
	flex: 1 1 auto;
	font-weight: 600;
	color: var(--jsp-ink);
}
.jsp-option-choice-price {
	font-weight: 700;
	color: #c0392b;
	white-space: nowrap;
}

/* 料金サマリー */
.jsp-price-summary {
	margin: 1.4em 0 1.8em;
	padding: 1.2em 1.4em;
	border: 1.5px solid var(--jsp-line);
	border-radius: 14px;
	background: #fbfbfc;
}
.jsp-sum-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: .4em 0;
	font-size: .95em;
	color: #4b5563;
}
.jsp-sum-row + .jsp-sum-total {
	margin-top: .5em;
	padding-top: .8em;
	border-top: 2px solid #e5e5e5;
}
.jsp-sum-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-weight: 700;
	color: var(--jsp-ink);
}
.jsp-sum-total-value {
	font-size: 1.6em;
	font-weight: 800;
	color: #111;
}
.jsp-sum-sep {
	font-size: .5em;
	font-weight: 600;
	color: #6b7280;
	margin-left: .4em;
}

/* 決済方法：選択式カード */
.jsp-radios {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
.jsp-radio {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .45em;
	padding: 1.1em .8em;
	border: 1.5px solid var(--jsp-line);
	border-radius: 14px;
	background: #f8fafc;
	cursor: pointer;
	text-align: center;
	transition: all .18s ease;
}
.jsp-radio:hover {
	border-color: #b9c6dc;
	background: #fff;
}
.jsp-radio input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.jsp-radio-icon {
	font-size: 1.5em;
	line-height: 1;
}
.jsp-radio-label {
	font-size: .9em;
	font-weight: 600;
	color: #4b5563;
}
.jsp-radio:has(input:checked) {
	border-color: var(--jsp-accent);
	background: #f3f3f3;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}
.jsp-radio:has(input:checked) .jsp-radio-label {
	color: var(--jsp-accent-dark);
	font-weight: 700;
}
.jsp-radio:has(input:checked)::after {
	content: "\2713";
	position: absolute;
	top: 8px;
	right: 10px;
	width: 20px;
	height: 20px;
	line-height: 20px;
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: var(--jsp-accent);
	border-radius: 50%;
}
/* :has 非対応ブラウザ向けフォールバック */
.jsp-radio input:checked ~ .jsp-radio-label {
	color: var(--jsp-accent-dark);
	font-weight: 700;
}

.jsp-submit {
	margin-top: 2em;
	text-align: center;
}
.jsp-submit button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 280px;
	padding: 1.05em 2.4em;
	border: none;
	border-radius: 999px;
	background: linear-gradient(135deg, #2b2b2b, #000);
	color: #fff;
	font-size: 1.05em;
	font-weight: 700;
	letter-spacing: .04em;
	cursor: pointer;
	box-shadow: 0 12px 26px rgba(0, 0, 0, .32);
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.jsp-submit button:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 32px rgba(0, 0, 0, .42);
	filter: brightness(1.15);
}
.jsp-submit button:active {
	transform: translateY(0);
	box-shadow: 0 8px 18px rgba(0, 0, 0, .3);
}

/* ハニーポット（非表示） */
.jsp-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 600px) {
	.jsp-purchase {
		padding: 2em 1.3em 2.2em;
		border-radius: 14px;
	}
	.jsp-field-row {
		grid-template-columns: 1fr;
		gap: 0;
	}
	.jsp-radios {
		grid-template-columns: 1fr;
	}
	.jsp-submit button {
		width: 100%;
		min-width: 0;
	}
}

/* ===== 製品ページ タイトル周り ===== */
.single-product .jsp-product-eyebrow {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .9em;
	margin-bottom: .7em;
}
.single-product .jsp-eyebrow-cat {
	display: inline-block;
	background: #111;
	color: #fff !important;
	text-decoration: none;
	font-size: .76em;
	font-weight: 700;
	letter-spacing: .1em;
	line-height: 1;
	padding: .5em 1.2em;
	border-radius: 999px;
	transition: background .15s ease;
}
.single-product .jsp-eyebrow-cat:hover {
	background: #444;
}
.single-product .jsp-eyebrow-no {
	font-size: .8em;
	font-weight: 700;
	letter-spacing: .18em;
	color: #b0b4bb;
}
.single-product .p-articleHead.c-postTitle {
	margin-bottom: 1.6em;
	padding-bottom: 0;
	border: none;
}
.single-product .c-postTitle__ttl {
	font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.5rem) !important;
	font-weight: 800 !important;
	letter-spacing: .02em;
	line-height: 1.4;
	color: #111;
	position: relative;
	padding-bottom: .5em;
	margin: 0;
}
.single-product .c-postTitle__ttl::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 60px;
	height: 4px;
	background: #111;
	border-radius: 4px;
}
/* 製品ページでは重複するSWELL既定メタ（日付・カテゴリ）を非表示 */
.single-product .c-postTitle__date,
.single-product .p-articleMetas.-top {
	display: none !important;
}

/* ===== その他おすすめ商品 ===== */
.jsp-related {
	margin: 3.5em 0 1em;
}
.jsp-related-title {
	font-size: 1.6em !important;
	font-weight: 800 !important;
	letter-spacing: .04em;
	color: #111 !important;
	text-align: center;
	margin: 0 0 1.6em !important;
	padding: 0 !important;
	border: none !important;
	background: none !important;
}
.jsp-related-title::before,
.jsp-related-title::after {
	display: none !important;
}
.jsp-related-title span,
.jsp-related-inner-line {
	display: block;
}
.jsp-related-title::after {
	content: "" !important;
	display: block !important;
	width: 56px;
	height: 3px;
	margin: .5em auto 0;
	background: #111;
	border-radius: 3px;
}
.jsp-rel-section {
	margin-bottom: 2.5em;
}
.jsp-rel-cat {
	font-size: 1.15em !important;
	font-weight: 800 !important;
	color: #111 !important;
	letter-spacing: .03em;
	margin: 0 0 1em !important;
	padding: 0 0 .5em !important;
	border: none !important;
	border-bottom: 2px solid #111 !important;
	background: none !important;
	display: flex;
	align-items: center;
	gap: .5em;
}
/* SWELLの見出し既定バー（.post_content h3::before/::after）を上書きしてひし形にする */
.post_content .jsp-rel-cat::before {
	content: "" !important;
	display: inline-block !important;
	position: static !important;
	width: 9px !important;
	height: 9px !important;
	margin: 0 !important;
	background: #111 !important;
	border: none !important;
	border-radius: 0 !important;
	transform: rotate(45deg) !important;
	flex: 0 0 auto;
}
.post_content .jsp-rel-cat::after {
	content: none !important;
	display: none !important;
}
.jsp-rel-cat a {
	text-decoration: none;
	color: inherit;
}

.jsp-product-details {
	margin-top: 2em;
}
.jsp-product-details .jsp-section {
	margin: 2em 0;
}
.jsp-product-details .jsp-section-title {
	font-size: 1.2em;
	border-left: 4px solid currentColor;
	padding-left: .6em;
	margin-bottom: .8em;
}

/* 本文（詳細）内で手動入力された見出しの装飾（SWELL既定スタイルを上書き） */
.post_content .jsp-section-detail h2,
.post_content .jsp-section-detail h2.wp-block-heading {
	font-size: 1.35em !important;
	font-weight: 800 !important;
	color: #111 !important;
	line-height: 1.5 !important;
	background: none !important;
	border: none !important;
	border-left: 5px solid #111 !important;
	border-radius: 0 !important;
	padding: .15em 0 .15em .7em !important;
	margin: 1.8em 0 .9em !important;
}
.post_content .jsp-section-detail h3,
.post_content .jsp-section-detail h3.wp-block-heading {
	font-size: 1.15em !important;
	font-weight: 700 !important;
	color: #1a1a1a !important;
	line-height: 1.5 !important;
	background: none !important;
	border: none !important;
	border-bottom: 2px solid #e2e2e2 !important;
	border-radius: 0 !important;
	padding: 0 0 .35em !important;
	margin: 1.6em 0 .8em !important;
	position: relative;
}
.post_content .jsp-section-detail h3::before {
	content: "" !important;
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 2.5em;
	height: 2px;
	background: #111 !important;
	border: none !important;
	margin: 0 !important;
}
.post_content .jsp-section-detail h4,
.post_content .jsp-section-detail h4.wp-block-heading {
	font-size: 1.03em !important;
	font-weight: 700 !important;
	color: #1a1a1a !important;
	line-height: 1.5 !important;
	background: none !important;
	border: none !important;
	border-left: 3px solid #9ca3af !important;
	border-radius: 0 !important;
	padding: .05em 0 .05em .55em !important;
	margin: 1.4em 0 .7em !important;
}
/* SWELL側の見出し疑似要素（アイコン/バー）を無効化 */
.post_content .jsp-section-detail h2::before,
.post_content .jsp-section-detail h2::after,
.post_content .jsp-section-detail h4::before,
.post_content .jsp-section-detail h4::after {
	display: none !important;
}

/* 料金 */
.jsp-price-block {
	display: flex;
	align-items: baseline;
	gap: .6em;
	padding: 1em 1.2em;
	background: #f7f7f8;
	border-radius: 8px;
	margin: 1.5em 0;
}
.jsp-price-label {
	font-size: .9em;
	color: #666;
}
.jsp-price-value {
	font-size: 1.9em;
	font-weight: 700;
	line-height: 1;
	color: #c0392b;
}
.jsp-price-unit {
	font-size: .55em;
	font-weight: 400;
	margin-left: .15em;
}

/* 商品画像スライダー */
.jsp-slider {
	max-width: none;
	margin: 0;
}
.jsp-slider-viewport {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	border: 1px solid #eee;
	background: #f7f7f8;
}
.jsp-slider-track {
	display: flex;
	transition: transform .35s ease;
}
.jsp-slide {
	flex: 0 0 100%;
	width: 100%;
	aspect-ratio: 16 / 9;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
}
.jsp-slide-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.jsp-slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, .5);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s ease;
	z-index: 2;
}
.jsp-slider-arrow:hover {
	background: rgba(0, 0, 0, .75);
}
.jsp-slider-prev { left: 10px; }
.jsp-slider-next { right: 10px; }
.jsp-slider-counter {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 3px 10px;
	border-radius: 12px;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	font-size: 12px;
	z-index: 2;
}
.jsp-slider-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}
.jsp-slider-thumb {
	width: 64px;
	height: 64px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 5px;
	overflow: hidden;
	cursor: pointer;
	background: #fff;
	opacity: .6;
	transition: opacity .2s ease, border-color .2s ease;
}
.jsp-slider-thumb.is-active {
	opacity: 1;
	border-color: #111111;
}
.jsp-slider-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* カラーバリエーション */
.jsp-color-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0;
	padding: 0;
}
.jsp-color-item {
	width: 120px;
	text-align: center;
}
.jsp-color-img {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid #eee;
	display: block;
}
.jsp-color-swatch {
	display: inline-block;
	width: 120px;
	height: 120px;
	border-radius: 6px;
	border: 1px solid #ddd;
}
.jsp-color-name {
	display: block;
	margin-top: .4em;
	font-size: .9em;
}

/* オプション */
.jsp-option-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.jsp-option-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: .7em 0;
	border-bottom: 1px solid #eee;
}
.jsp-option-thumb img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}
.jsp-option-name {
	flex: 1 1 auto;
	font-weight: 600;
}
.jsp-option-price {
	color: #c0392b;
	font-weight: 700;
	white-space: nowrap;
}

/* ===== バリエーション（選択・在庫） ===== */
/* 加算価格ラベル（選択UI） */
.jsp-var-add-price {
	display: block;
	margin-top: .2em;
	font-size: .82em;
	font-weight: 700;
	color: #c0392b;
}
/* 在庫数ラベル（選択UI） */
.jsp-var-stock-label {
	display: block;
	margin-top: .2em;
	font-size: .74em;
	font-weight: 700;
	color: #1a7f37;
	line-height: 1.2;
	min-height: 1em;
}
.jsp-var-stock-label:empty {
	display: none;
}
/* バリエーションなし商品の在庫表示 */
.jsp-simple-stock {
	margin: 0 0 1em;
	font-weight: 700;
	color: #1a7f37;
}

/* 売り切れバッジ（選択UI・デフォルト非表示） */
.jsp-var-choice {
	position: relative;
}
.jsp-var-soldout {
	display: none;
}
.jsp-var-choice.is-soldout {
	opacity: .45;
	cursor: not-allowed;
	pointer-events: none;
	filter: grayscale(1);
}
.jsp-var-choice.is-soldout .jsp-var-soldout {
	display: block;
	position: absolute;
	top: 6px;
	left: 50%;
	transform: translateX(-50%);
	background: #6b7280;
	color: #fff;
	font-size: .68em;
	font-weight: 700;
	line-height: 1;
	padding: .3em .6em;
	border-radius: 999px;
	white-space: nowrap;
}

/* 品切れ時の申込ボタン・注意書き */
.jsp-soldout-note {
	margin: 0 0 .8em;
	color: #c0392b;
	font-weight: 700;
	text-align: center;
}
.jsp-submit button:disabled {
	opacity: .5;
	cursor: not-allowed;
}

/* ===== バリエーション（商品ページ表示） ===== */
.jsp-color-item {
	position: relative;
}
.jsp-color-price {
	display: inline-block;
	font-size: .82em;
	font-weight: 700;
	color: #c0392b;
}
.jsp-color-item.is-soldout {
	opacity: .5;
	filter: grayscale(1);
}
.jsp-color-soldout {
	display: inline-block;
	margin-top: .3em;
	background: #6b7280;
	color: #fff;
	font-size: .72em;
	font-weight: 700;
	line-height: 1;
	padding: .3em .7em;
	border-radius: 999px;
}

/* 購入フォームの機種・柄グリッド：PC5列 / SP3列（画像も拡大） */
.jsp-color-select.jsp-var-select {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
}
.jsp-var-select .jsp-color-choice {
	width: auto;
	max-width: none;
}
.jsp-var-select .jsp-color-choice-visual {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
}
.jsp-var-select .jsp-color-choice-visual img,
.jsp-var-select .jsp-color-choice-swatch {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
@media (max-width: 600px) {
	.jsp-color-select.jsp-var-select {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* スライダー下の機種・柄リスト：PC5列 / SP3列（画像も拡大） */
.jsp-color-list {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 14px;
}
.jsp-color-list .jsp-color-item {
	width: auto;
	max-width: none;
}
.jsp-color-list .jsp-color-img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
@media (max-width: 600px) {
	.jsp-color-list {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* メインビジュアル（スライダー）：縦長画像は高さに合わせて全体表示＋虫眼鏡で拡大 */
.jsp-slide { position: relative; }
.jsp-slide-img { object-fit: contain; background: #f4f6f8; }
.jsp-slide .jsp-zoom-btn { width: 32px; height: 32px; top: 10px; right: 10px; }

/* メインビジュアルのサムネイル：常に1行、はみ出す場合は横スクロール */
.jsp-slider-thumbs {
	flex-wrap: nowrap;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}
.jsp-slider-thumbs .jsp-slider-thumb {
	flex: 0 0 auto;
}


/* テキストのみ（画像なし）の選択肢をボタン表示 */
.jsp-var-choice.jsp-choice-textonly{justify-content:center;min-height:3.4em;padding:.9em .8em;text-align:center}
.jsp-var-choice.jsp-choice-textonly .jsp-color-choice-visual{display:none}
.jsp-var-choice.jsp-choice-textonly .jsp-color-choice-name{font-weight:700;font-size:1em;line-height:1.3}


/* バリエーションカード：本体クリックで拡大、「選択」ボタンで選択（2026-07-29） */
.jsp-var-choice[data-full],
.jsp-var-choice[data-full] .jsp-color-choice-visual { cursor: zoom-in; }
.jsp-var-choice:not([data-full]) { cursor: default; }
.jsp-var-select-btn {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: .5em .4em;
	border: 1.5px solid var(--jsp-accent);
	border-radius: 8px;
	background: #fff;
	color: var(--jsp-accent);
	font-size: .8em;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: all .15s ease;
}
.jsp-var-select-btn:hover { background: var(--jsp-accent); color: #fff; }
.jsp-color-choice:has(input:checked) .jsp-var-select-btn { background: var(--jsp-accent); color: #fff; }
.jsp-color-choice:has(input:checked) .jsp-var-select-btn-text::before { content: "\2713 "; }


/* ==========================================================================
 * カート & 数量 & チェックアウト  2026-07-29 追加
 * ========================================================================== */
/* 数量セレクタ（商品ページ・カート共通） */
.jsp-qty-field { max-width: 220px; }
.jsp-qty-wrap { display: inline-flex; align-items: stretch; border: 1.5px solid var(--jsp-line); border-radius: 10px; overflow: hidden; }
.jsp-qty-btn { width: 40px; border: none; background: #f3f4f6; color: #111; font-size: 18px; line-height: 1; cursor: pointer; }
.jsp-qty-btn:hover { background: #e5e7eb; }
.jsp-qty-input { width: 60px; border: none; border-left: 1px solid var(--jsp-line); border-right: 1px solid var(--jsp-line); text-align: center; font-size: 15px; font-weight: 700; -moz-appearance: textfield; }
.jsp-qty-input::-webkit-outer-spin-button, .jsp-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* カートに入れる */
.jsp-cart-actions { margin-top: 1em; }
.jsp-add-cart-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; width: 100%; padding: 1em 1.2em; border: none; border-radius: 12px; background: var(--jsp-accent); color: #fff; font-size: 1.05em; font-weight: 800; cursor: pointer; transition: opacity .15s ease, transform .05s ease; }
.jsp-add-cart-btn:hover { opacity: .9; }
.jsp-add-cart-btn:active { transform: translateY(1px); }
.jsp-add-cart-btn:disabled { background: #c7ccd3; cursor: not-allowed; }
.jsp-cart-added { margin: .8em 0 0; padding: .7em 1em; background: #ecfdf3; border: 1px solid #abefc6; border-radius: 10px; color: #067647; font-weight: 700; }
.jsp-cart-added-link { margin-left: .4em; color: #067647; text-decoration: underline; font-weight: 800; }
.jsp-cart-error { margin: .6em 0 0; color: #b42318; font-weight: 700; }

/* フローティングカートボタン */
.jsp-cart-fab { position: fixed; right: 18px; bottom: 18px; z-index: 9998; display: none; align-items: center; gap: 6px; padding: 12px 16px 12px 14px; background: var(--jsp-accent); color: #fff; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.22); text-decoration: none; font-weight: 800; }
.jsp-cart-fab:hover { color: #fff; opacity: .92; }
.jsp-cart-fab-count { min-width: 22px; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--jsp-accent); border-radius: 999px; font-size: 12px; font-weight: 800; }

/* カートページ */
.jsp-cart-page { max-width: 760px; margin: 0 auto; }
.jsp-cart-loading { padding: 2em 0; text-align: center; color: #6b7280; }
.jsp-cart-empty { padding: 2.5em 1em; text-align: center; color: #4b5563; }
.jsp-cart-heading { font-size: 1.3em; margin: 0 0 .8em; }
.jsp-cart-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--jsp-line); }
.jsp-cart-item-img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; border: 1px solid #e5e7eb; flex: 0 0 auto; background: #f4f6f8; }
.jsp-cart-item-noimg { background: #f0f2f5; }
.jsp-cart-item-body { flex: 1 1 auto; min-width: 0; }
.jsp-cart-item-name { font-weight: 800; color: #111; line-height: 1.3; }
.jsp-cart-item-var, .jsp-cart-item-opt { font-size: .85em; color: #6b7280; margin-top: 2px; }
.jsp-cart-item-unit { font-size: .85em; color: #6b7280; margin-top: 4px; }
.jsp-cart-item-cap { font-size: .8em; color: #b54708; margin-top: 4px; }
.jsp-cart-item-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: 0 0 auto; }
.jsp-cart-item-controls .jsp-qty-wrap { border-radius: 8px; }
.jsp-cart-item-controls .jsp-qty-btn { width: 32px; font-size: 16px; }
.jsp-cart-item-controls .jsp-qty-input { width: 44px; font-size: 14px; }
.jsp-cart-item-line { font-weight: 800; color: #111; }
.jsp-cart-remove { border: none; background: none; color: #9ca3af; font-size: .82em; cursor: pointer; text-decoration: underline; padding: 0; }
.jsp-cart-remove:hover { color: #b42318; }

.jsp-cart-summary-box { margin: 18px 0 8px; padding: 16px 18px; background: #f8fafc; border: 1px solid var(--jsp-line); border-radius: 12px; }
.jsp-cart-summary-box .jsp-sum-row { display: flex; justify-content: space-between; padding: 4px 0; color: #4b5563; }
.jsp-cart-summary-box .jsp-sum-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--jsp-line); font-weight: 800; }
.jsp-cart-summary-box .jsp-sum-total span:last-child { font-size: 1.35em; color: #111; }
.jsp-cart-ship-note { margin: 6px 0 0; font-size: .8em; color: #b54708; }

.jsp-checkout-form { margin-top: 8px; }
.jsp-checkout-title { font-size: 1.1em; margin: 18px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--jsp-accent); }
.jsp-checkout-submit { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 1em; border: none; border-radius: 12px; background: var(--jsp-accent); color: #fff; font-size: 1.1em; font-weight: 800; cursor: pointer; }
.jsp-checkout-submit:hover { opacity: .9; }

.jsp-cart-thanks { text-align: center; padding: 2.5em 1em; }
.jsp-cart-thanks h2 { font-size: 1.4em; margin: 0 0 .6em; }
.jsp-btn { display: inline-block; margin-top: 1em; padding: .8em 1.6em; background: var(--jsp-accent); color: #fff; border-radius: 10px; text-decoration: none; font-weight: 700; }
.jsp-btn:hover { color: #fff; opacity: .9; }

@media ( max-width: 600px ) {
	.jsp-cart-item-img { width: 60px; height: 60px; }
	.jsp-cart-fab { right: 12px; bottom: 12px; padding: 10px 14px; }
}


/* ==========================================================================
 * グローバルナビのカート項目（他メニューとテイストを合わせる）  2026-07-30
 * ========================================================================== */
.jsp-nav-cart-item > .jsp-nav-cart-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.jsp-nav-cart-ico { position: relative; display: inline-flex; line-height: 0; }
.jsp-nav-cart-count { position: absolute; top: -7px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; background: var(--jsp-accent, #c0392b); color: #fff; border-radius: 999px; font-size: 10px; font-weight: 800; line-height: 1; box-shadow: 0 0 0 2px #fff; }
.jsp-nav-cart-item .ttl { text-align: center; }

/* フローティングカートボタンは、グローバルナビが隠れるモバイルのみ表示 */
@media ( min-width: 961px ) {
	.jsp-cart-fab { display: none !important; }
}


/* カートページのタイトルを商品一覧ページと同じ見た目に（背景帯なし・32px・中央）  2026-07-30 */
.jsp-cart-page-body .l-topTitleArea { min-height: 0 !important; height: auto !important; padding: 2.2em 0 0 !important; margin: 0 !important; background: transparent !important; }
.jsp-cart-page-body .l-topTitleArea::before,
.jsp-cart-page-body .l-topTitleArea::after,
.jsp-cart-page-body .l-topTitleArea > img,
.jsp-cart-page-body .l-topTitleArea .c-filterLayer__filter,
.jsp-cart-page-body .l-topTitleArea .p-pageHeaderImg { display: none !important; }
.jsp-cart-page-body .l-topTitleArea__body { padding: 0 24px !important; }
.jsp-cart-page-body .c-pageTitle { color: #111 !important; font-size: 32px !important; font-weight: 800 !important; letter-spacing: .08em !important; text-align: center !important; text-shadow: none !important; }
@media ( max-width: 600px ) {
	.jsp-cart-page-body .c-pageTitle { font-size: 26px !important; }
	.jsp-cart-page-body .l-topTitleArea { padding-top: 1.6em !important; }
}


/* カート追加時のポップ表示（毎回フィードバック）  2026-07-30 */
.jsp-cart-added { transform-origin: left center; }
.jsp-added-pop { animation: jspAddedPop .38s ease; }
@keyframes jspAddedPop { 0% { transform: scale( .96 ); opacity: .35; } 55% { transform: scale( 1.03 ); } 100% { transform: scale( 1 ); opacity: 1; } }
