/*
 * 商品ページ（R5）
 *
 * 値は公開サイトの表示を測った仕様書（docs/specs/product/）から。
 * 画面の幅：スマホ 〜767px ／ タブレット 768〜1067px（画像の下に商品情報） ／ PC 1068px〜（左右に並ぶ）
 */

/* ------------------------------------------------------------------ 全体の並び */

/* PC：右の商品情報は幅の 45%（最大 500px）、間は 5%（30〜40px） */
@media (min-width: 1068px) {
	.gb-product {
		display: grid;
		grid-template-columns: minmax(0, 1fr) min(45%, 500px);
		column-gap: clamp(30px, 5%, 40px);
		align-items: start;
	}

	/* 画像はスクロールしても付いてくる（固定ヘッダー 80px の下 20px） */
	.gb-product__media {
		position: sticky;
		top: 100px;
	}
}

@media (max-width: 1067px) {
	.gb-product__media {
		margin-bottom: 80px;
	}
}

@media (max-width: 767px) {
	.gb-product__media {
		margin-bottom: 40px;
	}
}

/* 商品情報と下のセクションの間の線（上下 40px、スマホ 30px） */
.gb-product-divider {
	position: relative;
	height: 80px;
}

.gb-product-divider::before {
	content: '';
	position: absolute;
	top: 40px;
	right: 0;
	left: 0;
	height: 1px;
	background: var(--gb-color-border);
}

.gb-product-end {
	height: 120px;
}

@media (max-width: 767px) {
	.gb-product-divider {
		height: 60px;
	}

	.gb-product-divider::before {
		top: 30px;
	}

	.gb-product-end {
		height: 75px;
	}
}

/* ------------------------------------------------------------------ 画像（ギャラリー） */

.gb-gallery {
	position: relative;
	padding-left: 80px;
}

.gb-gallery--single {
	padding-left: 0;
}

.gb-gallery__main {
	padding-inline: 25px;
}

.gb-gallery__stage {
	position: relative;
	max-width: 640px;
	user-select: none;
}

.gb-gallery__slider {
	overflow: hidden;
	border-radius: var(--gb-radius-block);
}

.gb-gallery__slide {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
}

.gb-gallery__image {
	position: absolute;
	inset: 0;
	z-index: 5;
	width: 100%;
	height: 100%;
	object-fit: cover;
	cursor: zoom-in;
}

/* 右上の拡大ボタン（今の画像だけに出す） */
.gb-gallery__zoom {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
	color: var(--gb-color-text);
	opacity: 0;
	transition: opacity var(--gb-duration) var(--gb-ease);
}

.swiper-slide-active .gb-gallery__zoom,
.gb-gallery--single .gb-gallery__zoom {
	opacity: 1;
}

/* 左右の矢印：画像にマウスを乗せると出る。矢印に乗せると 1.2 倍 */
.gb-gallery__arrow {
	position: absolute;
	top: 50%;
	z-index: 30;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin-top: -21px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
	color: var(--gb-color-text);
	opacity: 0;
	cursor: pointer;
	transition: opacity var(--gb-duration) var(--gb-ease);
}

.gb-gallery__arrow--prev {
	left: 20px;
}

.gb-gallery__arrow--next {
	right: 20px;
}

.gb-gallery__arrow .gb-icon {
	pointer-events: none;
	transition: transform var(--gb-duration) var(--gb-ease);
}

.gb-gallery__stage:hover .gb-gallery__arrow,
.gb-gallery__arrow:focus-visible {
	opacity: 1;
}

.gb-gallery__arrow:hover .gb-icon {
	transform: scale(1.2);
}

/* サムネイル：80px・間隔 10px。選んでいるものに 1px の線 */
.gb-gallery__thumbs {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 20;
	display: grid;
	grid-template-columns: 80px;
	grid-auto-rows: 80px;
	align-content: start;
	gap: 10px;
	width: 80px;
	overflow-y: auto;
	scrollbar-width: none;
}

.gb-gallery__thumbs::-webkit-scrollbar {
	display: none;
}

.gb-gallery__thumb {
	position: relative;
	width: 80px;
	height: 80px;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: var(--gb-radius-block);
	background: none;
	cursor: pointer;
}

.gb-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gb-gallery__thumb::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: var(--gb-radius-block);
	box-shadow: inset 0 0 0 1px transparent;
	transition: box-shadow var(--gb-duration) var(--gb-ease);
}

.gb-gallery__thumb.is-active::after {
	box-shadow: inset 0 0 0 1px var(--gb-color-text);
}

.gb-gallery__dots {
	display: none;
}

/* スマホ：画像は幅の 75%（間 4px）で前後が見える。下に点（今の画像は横長） */
@media (max-width: 767px) {
	.gb-gallery {
		padding-left: 0;
	}

	.gb-gallery__thumbs,
	.gb-gallery__arrow {
		display: none;
	}

	.gb-gallery__main {
		padding-inline: 0;
	}

	.gb-gallery__slider {
		border-radius: 8px;
	}

	/* Swiper の既定（幅 100%）より強く指定する */
	.gb-gallery .gb-gallery__slide {
		width: 75%;
	}

	.gb-gallery__dots {
		display: flex;
		justify-content: center;
		align-items: center;
		margin: 11px 0 0;
		padding: 0 0 8px;
		list-style: none;
		line-height: 0;
	}

	.gb-gallery__dot {
		width: 8px;
		height: 8px;
		margin: 0 6px;
		border-radius: 4px;
		background: var(--gb-color-text);
		opacity: 0.2;
		transition:
			width var(--gb-duration) var(--gb-ease),
			opacity var(--gb-duration) var(--gb-ease);
	}

	.gb-gallery__dot.is-active {
		width: 32px;
		opacity: 1;
	}
}

/* ------------------------------------------------------------------ 拡大表示（PhotoSwipe） */

/* PhotoSwipe の CSS より後から効くように、開くときに付ける .gb-pswp で指定する。
 * 背景はページと同じ色。枚数は左上の白い丸枠、閉じる・前後は白い丸（48px） */
.pswp.gb-pswp {
	--pswp-bg: var(--gb-color-bg);
	--pswp-placeholder-bg: var(--gb-color-bg);
	--pswp-icon-color: var(--gb-color-text);
	--pswp-icon-color-secondary: var(--gb-color-text);
	--pswp-icon-stroke-color: var(--gb-color-text);
	--pswp-icon-stroke-width: 0;
	--pswp-root-z-index: 1500;
}

.gb-pswp .pswp__top-bar {
	top: 48px;
	right: 48px;
	left: 48px;
	width: auto;
	height: 48px;
	pointer-events: none;
}

.gb-pswp .pswp__counter {
	display: flex;
	align-items: center;
	height: 38px;
	margin: 0;
	padding-inline: 15px;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
	color: var(--gb-color-text);
	font-size: 15px;
	line-height: 24px;
	text-shadow: none;
	opacity: 1;
	pointer-events: auto;
}

.gb-pswp .pswp__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
	color: var(--gb-color-text);
	opacity: 1;
	pointer-events: auto;
}

.gb-pswp .pswp__button .gb-icon {
	transition: transform var(--gb-duration) var(--gb-ease);
}

.gb-pswp .pswp__button:hover .gb-icon {
	transform: scale(1.2);
}

.gb-pswp .pswp__button--close {
	margin-left: auto;
}

.gb-pswp .pswp__button--arrow {
	top: 50%;
	width: 48px;
	height: 48px;
	margin-top: -24px;
}

.gb-pswp .pswp__button--arrow--prev {
	left: 48px;
}

.gb-pswp .pswp__button--arrow--next {
	right: 48px;
}

.gb-pswp .pswp__button--arrow .gb-icon {
	position: static;
}

@media (max-width: 767px) {
	.gb-pswp .pswp__top-bar {
		top: 15px;
		right: 15px;
		left: 15px;
	}

	.gb-pswp .pswp__button--arrow--prev {
		left: 15px;
	}

	.gb-pswp .pswp__button--arrow--next {
		right: 15px;
	}
}

/* ------------------------------------------------------------------ 商品情報（上半分） */

.gb-product-summary__vendor {
	margin: 0 0 10px;
	font-size: 11px;
	line-height: 1.6;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.8;
}

.gb-product-summary__heading {
	margin-bottom: 20px;
}

/* 商品名は本文の書体・本文の色（見出しの書体ではない） */
.gb-product-summary__title {
	margin: 0 0 3px;
	color: var(--gb-color-text);
	font-family: var(--gb-font-body);
	font-size: 34px;
	font-weight: 500;
	line-height: 42px;
	letter-spacing: -0.02em;
}

.gb-product-summary__price-row {
	display: flex;
	align-items: center;
	margin-right: 11px;
}

.gb-product-summary__price {
	display: flex;
	align-items: center;
}

.gb-product-summary__badges:empty {
	display: none;
}

.gb-product-summary__badges {
	display: flex;
	margin-left: 11px;
}

.gb-product-summary__badge {
	height: 28px;
	margin-right: 5px;
	padding: 0 11px;
	border-radius: 14px;
}

.gb-product-summary__tax {
	margin-top: 3px;
	font-size: 12px;
	line-height: 1.6;
	opacity: 0.8;
}

/* 予約商品：発送予定 */
.gb-product-summary__preorder {
	margin-top: 14px;
	padding: 12px 14px;
	border: 1px solid var(--gb-color-border, #dadce0);
	border-radius: 4px;
	background: #fff;
}

.gb-product-summary__preorder-date {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.6;
}

.gb-product-summary__preorder-text {
	margin: 4px 0 0;
	font-size: 12px;
	line-height: 1.7;
	opacity: 0.8;
}

.gb-product-summary__notice {
	margin: 16px 0 0;
	font-size: 12px;
	line-height: 1.7;
	opacity: 0.8;
}

.gb-product-summary__tax a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* 星は 16px、数値は出さない */
.gb-product-summary__rating {
	display: block;
	margin-top: 5px;
	font-size: 13px;
	line-height: 0;
}

.gb-product-summary__rating .gb-stars {
	margin: 0 12px 0 0;
	font-size: 16px;
	line-height: 16px;
}

.gb-product-summary__rating .gb-stars span {
	display: none;
}

/* セット商品の印 */
.gb-product-summary__icons {
	margin-bottom: 20px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.6;
}

.gb-product-summary__icons ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gb-product-summary__icon {
	display: inline-block;
	margin-right: 16px;
	vertical-align: middle;
}

.gb-product-summary__icon .gb-icon {
	display: block;
}

/* 在庫：緑（在庫あり）・オレンジ（在庫わずか）の点が 2 秒ごとに広がる */
.gb-stock {
	display: flex;
	align-items: center;
	height: 16px;
	margin-bottom: 20px;
	color: var(--gb-color-stock-in, #279a4b);
	font-size: 13px;
	line-height: 13px;
}

.gb-stock[data-state='low'] {
	color: var(--gb-color-stock-low, #e97f32);
}

.gb-stock[data-state='pre'] {
	color: var(--gb-color-header-links-hover, #3f72e5);
}

.gb-stock[hidden] {
	display: none;
}

.gb-stock__dot {
	position: relative;
	flex: none;
	width: 8px;
	height: 8px;
	margin: 4px 12px 4px 4px;
	border-radius: 50%;
	background: currentColor;
}

.gb-stock__dot::after {
	content: '';
	position: absolute;
	inset: -4px;
	border-radius: 8px;
	background: currentColor;
	animation: gb-stock-pulse 2s ease-out infinite;
}

@keyframes gb-stock-pulse {
	from {
		opacity: 0.6;
		transform: scale(0.5);
	}

	to {
		opacity: 0;
		transform: scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.gb-stock__dot::after {
		animation: none;
		opacity: 0;
	}
}

/* 残り○個（数は赤） */
.gb-stock-count {
	width: fit-content;
	margin: 10px 0;
	background: #fff;
	color: #000;
	font-size: 12px;
	line-height: 1.6;
}

.gb-stock-count span {
	color: #f00;
}

.gb-stock-count[hidden] {
	display: none;
}

/* フレーバーのボタン */
.gb-options {
	display: flex;
	flex-wrap: wrap;
	min-width: 0;
	margin: 0 0 14px;
	padding: 0;
	border: 0;
}

.gb-options__legend {
	display: flex;
	align-items: center;
	float: left;
	width: 100%;
	margin-bottom: 9px;
	padding: 0;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.6;
}

.gb-options__current {
	margin-right: 20px;
	padding-left: 2px;
	font-weight: 400;
}

.gb-options__input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.gb-options__button {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	margin: 0 6px 6px 0;
	padding: 5px 15px;
	overflow: hidden;
	border: 0;
	border-radius: 6px;
	background: none;
	box-shadow: inset 0 0 0 1px var(--gb-color-input-border);
	color: inherit;
	font-family: inherit;
	font-size: 13px;
	line-height: 1.6;
	letter-spacing: 0.02em;
	cursor: pointer;
}

.gb-options__input:checked + .gb-options__button,
.gb-options__button.is-selected {
	z-index: 5;
	box-shadow: inset 0 0 0 1px var(--gb-color-text);
}

.gb-options__input:focus-visible + .gb-options__button {
	outline: 2px solid var(--gb-color-focus);
	outline-offset: 2px;
}

/* 在庫のないフレーバー：文字を薄くして斜線 */
.gb-options__button.is-soldout span {
	opacity: 0.4;
}

.gb-options__button.is-soldout::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to right bottom, transparent 48%, var(--gb-color-border) 49%, var(--gb-color-border) 51%, transparent 52%) no-repeat;
}

/* 数量・購入ボタン */
.gb-product-summary__qty {
	padding-top: 9px;
}

.gb-product-summary__qty[hidden] {
	display: none;
}

.gb-product-summary__qty .gb-qty {
	margin-bottom: 30px;
}

.gb-product-summary__form {
	margin: 0;
}

.gb-product-summary__buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 25px;
}

.gb-product-summary__buttons[data-state='out'] {
	grid-template-columns: 1fr;
}

.gb-product-summary__buttons .gb-btn {
	width: 100%;
	line-height: 15px;
}

.gb-product-summary__buy {
	--gb-btn-bg: var(--gb-color-text);
	--gb-btn-bg-hover: #1b1b1c;
	--gb-btn-text: var(--gb-color-bg);
	transition: background-color 0.2s ease-in-out;
}

.gb-product-summary__buy[hidden] {
	display: none;
}

/* 完売：薄い灰色で押せない */
.gb-product-summary__add:disabled {
	--gb-btn-bg: rgba(var(--gb-color-text-rgb), 0.4);
	--gb-btn-bg-hover: rgba(var(--gb-color-text-rgb), 0.4);
	color: #fff;
	opacity: 1;
}

@media (max-width: 767px) {
	.gb-product-summary__buttons {
		grid-template-columns: 1fr;
	}
}

.gb-product-summary__note {
	margin: 0 0 20px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* ------------------------------------------------------------------ 商品情報（下半分） */

.gb-product-details__description {
	margin-bottom: 25px;
	font-size: 15px;
	line-height: 24px;
}

.gb-product-details__description > * + * {
	margin-top: 0;
}

.gb-product-details__description p {
	margin: 0 0 10px;
}

.gb-product-details__description h3 {
	margin: 30px 0 20px;
	color: var(--gb-color-heading);
	font-family: var(--gb-font-heading);
	font-size: 34px;
	font-weight: 500;
	line-height: 42px;
	letter-spacing: -0.02em;
}

.gb-product-details__description > :first-child {
	margin-top: 0;
}

@media (max-width: 767px) {
	.gb-product-details__description h3 {
		font-size: 26px;
		line-height: 30px;
	}
}

.gb-product-details__description strong {
	font-weight: 500;
}

/* シェア */
.gb-share {
	display: flex;
	align-items: center;
	margin-bottom: 25px;
	font-size: 13px;
	line-height: 13px;
}

.gb-share__label {
	display: block;
	margin-right: 10px;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.gb-share__link {
	display: flex;
	align-items: center;
	margin: 0 2px;
	padding: 4px 5px;
	white-space: nowrap;
	transition: color var(--gb-duration) var(--gb-ease);
}

.gb-share__link:hover {
	color: var(--gb-color-accent);
}

/* ------------------------------------------------------------------ おすすめの商品 */

.gb-recommendations {
	padding-bottom: 80px;
}

.gb-recommendations__header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 30px;
	padding-bottom: 30px;
}

.gb-recommendations__title {
	margin: 0;
	color: var(--gb-color-heading);
	font-family: var(--gb-font-heading);
	font-size: 34px;
	font-weight: 500;
	line-height: 42px;
	letter-spacing: -0.02em;
}

.gb-recommendations__list {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -10px;
	padding: 0;
	list-style: none;
}

.gb-recommendations__item {
	flex: 0 0 25%;
	max-width: 25%;
	padding-inline: 10px;
}

/* スマホ：横にスクロール（1 列 184px、端までぴったり止まる） */
@media (max-width: 767px) {
	.gb-recommendations {
		padding-bottom: 50px;
	}

	.gb-recommendations__header {
		flex-direction: column;
		align-items: stretch;
	}

	.gb-recommendations__title {
		font-size: 26px;
		line-height: 30px;
	}

	.gb-recommendations__list {
		display: grid;
		grid-auto-columns: 184px;
		grid-auto-flow: column;
		margin: 0 -15px;
		padding: 0 11px;
		overflow-x: auto;
		scroll-padding-inline: 11px;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.gb-recommendations__list::-webkit-scrollbar {
		display: none;
	}

	.gb-recommendations__item {
		max-width: 100%;
		padding-inline: 4px;
		scroll-snap-align: start;
	}
}

/* ------------------------------------------------------------------ 固定のカートボタン（右下） */

.gb-sticky-atc {
	position: fixed;
	right: 30px;
	bottom: 30px;
	z-index: 31;
	width: 420px;
	max-width: calc(100vw - 30px);
	padding: 15px;
	border-radius: var(--gb-radius-block);
	background: #fff;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
	transform: translateX(470px);
	visibility: hidden;
	transition:
		transform var(--gb-duration) var(--gb-ease),
		visibility 0s linear var(--gb-duration);
}

.gb-sticky-atc.is-visible {
	transform: none;
	visibility: visible;
	transition:
		transform var(--gb-duration) var(--gb-ease),
		visibility 0s;
}

.gb-sticky-atc__toggle {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	padding: 0 50px 0 0;
	border: 0;
	background: none;
	color: inherit;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
}

.gb-sticky-atc__image {
	flex: none;
	width: 48px;
	height: 48px;
	margin-right: 18px;
	overflow: hidden;
	border-radius: 8px;
}

.gb-sticky-atc__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gb-sticky-atc__title {
	display: block;
	margin-bottom: 5px;
	font-size: 15px;
	font-weight: 500;
	line-height: 21px;
}

.gb-sticky-atc__price {
	display: block;
	font-size: 15px;
	line-height: 15px;
}

.gb-sticky-atc__chevron {
	position: absolute;
	top: 50%;
	right: 8px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 19px;
	height: 19px;
	margin-top: -9.5px;
	color: var(--gb-color-heading);
}

.gb-sticky-atc__chevron .gb-icon {
	transition: transform var(--gb-duration) var(--gb-ease);
}

.gb-sticky-atc__toggle[aria-expanded='true'] .gb-sticky-atc__chevron .gb-icon {
	transform: scaleY(-1);
}

.gb-sticky-atc__panel {
	padding-top: 18px;
}

.gb-sticky-atc__panel .gb-options {
	margin-bottom: 14px;
}

@media (max-width: 767px) {
	.gb-sticky-atc {
		right: 15px;
		bottom: 15px;
		left: 15px;
		width: auto;
		max-width: 420px;
		transform: translateX(calc(100% + 50px));
	}
}

@media (prefers-reduced-motion: reduce) {
	.gb-sticky-atc,
	.gb-sticky-atc.is-visible {
		transition: none;
	}
}

/* ------------------------------------------------------------------ 簡易表示（ポップアップ） */

/* PC：画面の中央に 1160×860（白・角丸 16px）。スマホ：上下左右 10px の余白で、右から入る */
.gb-quick-view {
	position: fixed;
	inset: 0;
	width: calc(100vw - 40px);
	max-width: 1160px;
	height: calc(100dvh - 40px);
	max-height: 860px;
	margin: auto;
	padding: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 0;
	border-radius: var(--gb-radius-block);
	background: #fff;
	box-shadow: none;
	color: var(--gb-color-text);
	opacity: 0;
	transition:
		opacity 0.22s var(--gb-ease),
		box-shadow 0.25s var(--gb-ease);
}

.gb-quick-view.is-open {
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
	opacity: 1;
}

.gb-quick-view::backdrop {
	background: rgba(var(--gb-color-overlay-rgb), 0.4);
	-webkit-backdrop-filter: blur(7px);
	backdrop-filter: blur(7px);
}

.gb-quick-view__close {
	position: absolute;
	top: 5px;
	right: 5px;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--gb-color-text);
	cursor: pointer;
}

.gb-quick-view__content {
	padding: 40px;
	font-size: 15px;
	line-height: 24px;
}

.gb-quick-view .gb-product__media {
	top: 40px;
}

.gb-quick-view .gb-product-summary__description {
	margin-bottom: 25px;
}

/* 元の縦横比の画像：正方形に切り抜かない */
.gb-gallery--adapt .gb-gallery__slide {
	aspect-ratio: auto;
}

.gb-gallery--adapt .gb-gallery__image {
	position: static;
	height: auto;
	cursor: grab;
}

.gb-gallery--adapt .gb-gallery__thumbs {
	grid-auto-rows: auto;
}

.gb-gallery--adapt .gb-gallery__thumb {
	height: auto;
}

.gb-gallery--adapt .gb-gallery__thumb img {
	height: auto;
}

@media (max-width: 767px) {
	.gb-quick-view {
		inset: 10px;
		width: auto;
		max-width: 100%;
		height: auto;
		max-height: none;
		margin: 0;
		transform: translateX(370px);
		transition:
			opacity 0.22s var(--gb-ease),
			transform 0.22s var(--gb-ease),
			box-shadow 0.25s var(--gb-ease);
	}

	.gb-quick-view.is-open {
		transform: none;
	}

	.gb-quick-view__content {
		padding: 10px 20px 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gb-quick-view,
	.gb-quick-view.is-open {
		transform: none;
		transition: none;
	}
}

/* ------------------------------------------------------------------ 再入荷のお知らせ（売り切れのとき） */

.gb-restock {
	margin: 0 0 25px;
	padding: 20px;
	border: 1px solid var(--gb-color-border);
	border-radius: 12px;
}

.gb-restock[hidden],
.gb-restock__form[hidden] {
	display: none;
}

.gb-restock__title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.6;
}

.gb-restock__lead {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.6;
}

.gb-restock__row {
	display: grid;
	gap: 10px;
}

.gb-restock__button {
	width: 100%;
}

.gb-restock__note {
	margin: 10px 0 0;
	font-size: 12px;
	line-height: 1.6;
	opacity: 0.8;
}

.gb-restock__result {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.6;
}

.gb-restock__result + .gb-restock__form:not([hidden]) {
	margin-top: 12px;
}

.gb-restock__result--error {
	color: var(--gb-color-accent);
}

@media (min-width: 768px) {
	.gb-restock__row {
		grid-template-columns: 1fr auto;
	}

	.gb-restock__row > :only-child {
		grid-column: 1 / -1;
	}

	.gb-restock__button {
		width: auto;
	}
}

