/*
 * セクション（R8）
 *
 * 値は公開サイトの表示を測った仕様書（docs/specs/home ほか）から。class 名・作りは自社のもの。
 * 動きは assets/js/gb-sections.js（スライド・横送りは Swiper・MIT）。
 */

/* ------------------------------------------------------------------ セクションの枠と余白 */

/* 上下の余白は PC 80px・スマホ 50px。セクションごとに「余白をなくす」を選べる。
   余白は外側（margin）に取る：余白のあるセクションが続くとき、間は 2 つ分ではなく 1 つ分になる（公開サイトと同じ） */
.gb-sec {
	--gb-sec-space: 50px;
	margin-block: var(--gb-sec-space);
	overflow-x: clip;
}

@media (min-width: 768px) {
	.gb-sec {
		--gb-sec-space: 80px;
	}
}

.gb-sec--flush-top {
	margin-top: 0;
}

.gb-sec--flush-bottom {
	margin-bottom: 0;
}

/* 文・タブ付きの文・カード 2 枚は、余白を内側（padding）に取る：前後のセクションの余白と重ならず、足し合わされる（公開サイトと同じ） */
.gb-sec--rich-text,
.gb-sec--card-pair,
.gb-sec--faq,
.gb-sec--image-text,
.gb-sec--tabbed-content {
	margin-block: 0;
	padding-block: var(--gb-sec-space);
}

.gb-sec--rich-text.gb-sec--flush-top,
.gb-sec--card-pair.gb-sec--flush-top,
.gb-sec--faq.gb-sec--flush-top,
.gb-sec--image-text.gb-sec--flush-top,
.gb-sec--tabbed-content.gb-sec--flush-top {
	padding-top: 0;
}

.gb-sec--rich-text.gb-sec--flush-bottom,
.gb-sec--card-pair.gb-sec--flush-bottom,
.gb-sec--faq.gb-sec--flush-bottom,
.gb-sec--image-text.gb-sec--flush-bottom,
.gb-sec--tabbed-content.gb-sec--flush-bottom {
	padding-bottom: 0;
}

/* 見出しの行：左に見出しと説明文、右にタブや「すべて見る」 */
.gb-sec-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 15px 30px;
	margin-bottom: 30px;
}

.gb-sec-header__title {
	margin: 0;
}

.gb-sec-header__desc {
	margin: 10px 0 0;
	font-size: 15px;
	line-height: 24px;
}

@media (min-width: 768px) {
	.gb-sec-header__desc {
		font-size: 17px;
		line-height: 1.6;
	}
}

.gb-sec-header__extra {
	max-width: 100%;
}

.gb-sec-header__more {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 27px;
	color: var(--gb-color-accent);
}

/* 小さな赤いリンク（続きを読む ›） */
.gb-more-link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: var(--gb-color-accent);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
}

/* 見出しの下線（文字の下に重ねる） */
.gb-marker {
	position: relative;
	display: inline-block;
}

.gb-marker__line {
	position: absolute;
	right: 0;
	bottom: -8px;
	left: 0;
	z-index: -1;
	width: 100%;
	height: 12.6px;
	color: #fd6262;
}

/* 丸い矢印のボタン */
.gb-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	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);
	cursor: pointer;
	transition: all var(--gb-duration) var(--gb-ease);
}

.gb-arrow:hover {
	background: var(--gb-color-text);
	color: #fff;
}

.gb-arrow:disabled {
	opacity: 0;
	pointer-events: none;
}

/* 進み具合の線 */
.gb-progress {
	position: relative;
	height: 1px;
	margin-top: 20px;
	border-radius: 0.5px;
	background: #dadce0;
}

.gb-progress span {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 0;
	border-radius: 0.5px;
	background: var(--gb-color-text);
}

/* ------------------------------------------------------------------ 流れる文字 */

.gb-sec--scrolling-text {
	margin-block: 0;
}

.gb-marquee {
	padding-block: 10px;
	overflow: hidden;
	background: #f5f5f5;
}

.gb-marquee__track {
	display: flex;
	width: max-content;
	animation: gb-marquee var(--gb-marquee-time, 30s) linear infinite;
}

.gb-marquee:hover .gb-marquee__track {
	animation-play-state: paused;
}

.gb-marquee__group {
	display: flex;
	flex: none;
	align-items: center;
}

.gb-marquee__text,
.gb-marquee__sep {
	flex: none;
	font-size: 11.2px;
	line-height: 1.6;
	white-space: nowrap;
}

.gb-marquee__text {
	margin-inline: 20px;
	color: #3f72e5;
}

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

@media (min-width: 768px) {
	.gb-marquee__text,
	.gb-marquee__sep {
		font-size: 14px;
	}
}

@keyframes gb-marquee {
	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.gb-marquee__track {
		animation: none;
	}
}

/* ------------------------------------------------------------------ スライドショー */

.gb-sec--slideshow {
	margin-block: 0;
}

.gb-slideshow {
	position: relative;
	height: 450px;
	overflow: hidden;
	background: rgba(var(--gb-color-text-rgb), 0.03);
}

@media (min-width: 768px) {
	.gb-slideshow {
		height: auto;
		aspect-ratio: var(--gb-slideshow-ratio);
	}
}

.gb-slideshow__slides,
.gb-slideshow__slides .swiper-wrapper,
.gb-slideshow .gb-slideshow__slide {
	height: 100%;
}

.gb-slideshow .gb-slideshow__slide {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	overflow: hidden;
	background: #f5f5f5;
	text-align: center;
}

/* JS が動く前は 1 枚目だけを出す */
.gb-slideshow__slides:not(.swiper-initialized) .gb-slideshow__slide:not(:first-child) {
	display: none;
}

.gb-slideshow__media,
.gb-slideshow__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.gb-slideshow__image {
	object-fit: cover;
}

.gb-slideshow__cover {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.gb-slideshow__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 15px 20px;
	width: 100%;
	max-width: 640px;
	padding: 65px 15px 55px;
	pointer-events: none;
}

.gb-slideshow__content > * {
	pointer-events: auto;
}

.gb-slideshow__link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
}

.gb-slideshow__link:hover {
	color: #fff;
	opacity: 0.8;
}

/* 右上：自動送りの残り時間の輪 */
.gb-slideshow__timer {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 3;
	color: var(--gb-color-text);
	transform: rotate(-90deg);
}

.gb-slideshow__timer circle {
	stroke-dasharray: 100;
	stroke-dashoffset: calc(100 - var(--gb-slideshow-progress, 0) * 100);
}

/* 右下：矢印 */
.gb-slideshow__arrows {
	position: absolute;
	right: 15px;
	bottom: 15px;
	z-index: 3;
	display: flex;
	gap: 8px;
}

@media (min-width: 768px) {
	.gb-slideshow__arrows {
		right: 50px;
		bottom: 20px;
	}
}

@media (min-width: 1380px) {
	.gb-slideshow__arrows {
		right: 80px;
	}
}

/* ------------------------------------------------------------------ 商品の並び */

/* セクションを、中の「位置を指定した要素」の基準にする。
   基準がないと、横に送る並びの中の読み上げ用の文字（.gb-visually-hidden。position: absolute）が、並びの外にあるものとして数えられ、
   スマホでページ全体が横に広がってしまう（トップの成分のカードで起きていた） */
.gb-sec {
	position: relative;
}

.gb-products-row {
	--gb-row-gap: 8px;
	--gb-row-visible: 2;
	position: relative;
	container-type: inline-size;
}

@media (min-width: 768px) {
	.gb-products-row {
		--gb-row-gap: 20px;
		--gb-row-visible: var(--gb-row-columns, 6);
	}
}

/* Swiper の既定（幅 100%）より強く指定する。スマホは 2 つ見せる（列の少ない並びは、少し小さくして 3 つ目をのぞかせる） */
.gb-products-row .gb-products-row__item {
	width: calc((100% - var(--gb-row-mobile-gaps, 1) * var(--gb-row-gap)) / 2);
	flex: none;
}

.gb-products-row .gb-card {
	margin-bottom: 0;
}

/* 格子：スマホは横に送る 1 行（画面の端まで）、タブレット以上は格子 */
.gb-products-row--grid {
	display: flex;
	gap: var(--gb-row-gap);
	margin-inline: -15px;
	padding-inline: 15px;
	overflow-x: auto;
	container-type: normal;
	scrollbar-width: none;
}

.gb-products-row--grid::-webkit-scrollbar {
	display: none;
}

.gb-products-row--grid .gb-products-row__item {
	width: 176px;
}

@media (min-width: 768px) {
	.gb-products-row--grid {
		flex-wrap: wrap;
		margin-inline: 0;
		padding: 0 0 20px;
		overflow: visible;
		row-gap: 20px;
	}

	.gb-products-row--grid .gb-products-row__item {
		width: calc((100% - (var(--gb-row-visible) - 1) * var(--gb-row-gap)) / var(--gb-row-visible));
	}
}

/* 横に送る：スマホは次の商品が少し見える（画面の端まで） */
.gb-products-row .gb-products-row__viewport {
	overflow: visible;
}

.gb-products-row__viewport:not(.swiper-initialized) .swiper-wrapper {
	display: flex;
	gap: var(--gb-row-gap);
	overflow-x: auto;
}

@media (min-width: 768px) {
	.gb-products-row .gb-products-row__item {
		width: calc((100% - (var(--gb-row-visible) - 1) * var(--gb-row-gap)) / var(--gb-row-visible));
	}

	.gb-products-row .gb-products-row__viewport {
		overflow: hidden;
	}
}

/* 矢印：商品の画像の高さの真ん中。マウスを乗せると出る */
.gb-products-row .gb-arrow {
	position: absolute;
	top: calc((100cqw - (var(--gb-row-visible) - 1) * var(--gb-row-gap)) / var(--gb-row-visible) / 2);
	z-index: 5;
	display: none;
	margin-top: -21px;
	opacity: 0;
}

.gb-products-row .gb-arrow--prev {
	left: -21px;
}

.gb-products-row .gb-arrow--next {
	right: -21px;
}

@media (min-width: 768px) and (hover: hover) {
	.gb-products-row .gb-arrow {
		display: flex;
	}

	.gb-products-row:hover .gb-arrow:not(:disabled),
	.gb-products-row .gb-arrow:focus-visible {
		opacity: 1;
	}
}

.gb-products-row__empty {
	margin: 0;
	color: rgba(var(--gb-color-text-rgb), 0.6);
}

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

/* ------------------------------------------------------------------ タブ付きの文 */

.gb-ttabs {
	margin-bottom: 30px;
}

.gb-ttabs__tab {
	position: relative;
	display: inline-flex;
	flex: none;
	align-items: center;
	margin: 0 40px 0 0;
	padding: 2px 0 5px;
	border: 0;
	background: none;
	color: rgba(63, 114, 229, 0.6);
	font-family: var(--gb-font-heading);
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: all var(--gb-duration) var(--gb-ease);
}

.gb-ttabs__tab::after {
	content: '';
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 2px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--gb-duration) var(--gb-ease);
}

.gb-ttabs__tab:hover,
.gb-ttabs__tab[aria-selected='true'] {
	color: #3f72e5;
}

.gb-ttabs__tab[aria-selected='true']::after {
	transform: scaleX(1);
}

.gb-ttabs__panel {
	font-size: 15px;
	line-height: 24px;
}

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

.gb-ttabs__panel p {
	margin: 0;
}

@media (min-width: 768px) {
	.gb-ttabs__panel p {
		margin-bottom: 20px;
	}
}

/* ------------------------------------------------------------------ 説明カードと成分カード */

.gb-sec--ingredient-cards {
	margin-block: 0;
}

.gb-showcase {
	padding: 40px 16px;
	background: linear-gradient(135deg, #fff 0%, rgba(240, 248, 255, 0.3) 25%, rgba(255, 240, 245, 0.3) 50%, rgba(255, 250, 240, 0.3) 75%, #fff 100%);
}

.gb-showcase__notes {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin-bottom: 40px;
}

.gb-showcase__note {
	padding: 32px 24px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	text-align: center;
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.gb-showcase__note:hover,
.gb-showcase__card:hover {
	transform: translateY(-4px);
}

.gb-showcase__title {
	margin: 0 0 12px;
	color: var(--gb-color-text);
	font-size: 17.6px;
	font-weight: 600;
	line-height: 30px;
}

.gb-showcase__text {
	margin: 0;
	font-size: 11.9px;
	line-height: 1.6;
}

.gb-showcase__scroller {
	margin-inline: -16px;
	padding: 20px 26px;
	overflow-x: auto;
	scrollbar-width: thin;
	scrollbar-color: #ccc #f5f5f5;
}

.gb-showcase__cards {
	display: flex;
	justify-content: center;
	gap: 24px;
	width: max-content;
	min-width: 100%;
}

.gb-showcase__card {
	display: flex;
	flex: none;
	flex-direction: column;
	width: 310px;
	padding: 32px 24px 24px;
	border-radius: 20px;
	background: #fff;
	box-shadow:
		0 4px 16px rgba(0, 255, 255, 0.15),
		0 8px 32px rgba(255, 0, 255, 0.1),
		0 2px 8px rgba(255, 215, 0, 0.08);
	text-align: center;
	transition:
		box-shadow 0.3s ease,
		transform 0.3s ease;
}

.gb-showcase__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	margin-bottom: 20px;
}

.gb-showcase__title--card {
	margin-bottom: 16px;
	font-size: 22px;
}

.gb-showcase__tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.gb-showcase__tags li {
	padding: 6px 14px;
	border-radius: 16px;
	background: #3f72e5;
	color: #fff;
	font-size: 12px;
	line-height: 1.6;
}

.gb-showcase__text--card {
	flex: 1;
	font-size: 14px;
	margin-bottom: 24px;
}

.gb-showcase__button {
	display: block;
	padding: 12px 24px;
	border-radius: 8px;
	background: var(--gb-color-text);
	color: #fff;
	font-size: 14px;
	line-height: 1.6;
	text-align: center;
	transition: background-color 0.3s;
}

.gb-showcase__button:hover {
	background: var(--gb-color-accent);
	color: #fff;
}

@media (min-width: 768px) {
	.gb-showcase {
		padding: 60px 20px;
	}

	.gb-showcase__notes {
		grid-template-columns: repeat(4, 1fr);
		gap: 24px;
	}

	.gb-showcase__notes {
		margin-bottom: 60px;
	}

	.gb-showcase__title {
		font-size: 22px;
		line-height: 42px;
	}

	.gb-showcase__text,
	.gb-showcase__text--card {
		font-size: 14px;
	}

	.gb-showcase__scroller {
		margin-inline: -20px;
		padding-inline: 40px;
	}

	.gb-showcase__card {
		width: 320px;
	}
}

/* ------------------------------------------------------------------ ランキング */

.gb-sec--ranking {
	margin-block: 0;
}

.gb-ranking {
	padding: 40px 16px;
	background: #f5f5f5;
}

.gb-ranking__header {
	margin-bottom: 32px;
	text-align: center;
}

.gb-ranking__title {
	margin: 0 0 12px;
	font-size: 22.4px;
	font-weight: 700;
	line-height: 40px;
}

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

.gb-ranking__list {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gb-ranking__item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	padding: 16px;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	background: #fff;
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.gb-ranking__item:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.gb-ranking__rank {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, #ed1c24, #ff6b6b);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
}

.gb-ranking__image {
	flex: none;
	width: 80px;
	height: 80px;
	overflow: hidden;
	border-radius: 8px;
	background: #f4f4f4;
}

.gb-ranking__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gb-ranking__info {
	flex: 1 0 100%;
	min-width: 0;
}

.gb-ranking__name {
	margin: 0 0 8px;
	color: inherit;
	font-family: var(--gb-font-heading);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0;
}

.gb-ranking__name a {
	color: inherit;
}

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

.gb-ranking__rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 12px;
}

/* 星 5 つ（14px・間 2px）を、スコアの割合で金色に塗る */
.gb-ranking__stars {
	width: 78px;
	height: 14px;
	background: linear-gradient(90deg, #ffd700 var(--gb-stars), #e0e0e0 var(--gb-stars));
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27.43 24'%3E%3Cpath d='M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z'/%3E%3C/svg%3E") left / 16px 14px repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27.43 24'%3E%3Cpath d='M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z'/%3E%3C/svg%3E") left / 16px 14px repeat-x;
}

.gb-ranking__score {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;
}

.gb-ranking__count {
	color: #666;
	font-size: 12px;
	line-height: 1.6;
}

.gb-ranking__buy {
	display: flex;
	flex: 1 0 100%;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.gb-ranking__price {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.6;
}

.gb-ranking__price ins {
	text-decoration: none;
}

.gb-ranking__price del {
	margin-right: 8px;
	color: #666;
	font-size: 14px;
	font-weight: 400;
}

.gb-ranking__button {
	display: block;
	padding: 8px 20px;
	border-radius: 8px;
	background: var(--gb-color-text);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;
	text-align: center;
	transition: background-color 0.3s;
}

.gb-ranking__button:hover {
	background: var(--gb-color-accent);
	color: #fff;
}

@media (min-width: 768px) {
	.gb-ranking {
		padding: 40px;
	}

	.gb-ranking__title {
		font-size: 28px;
		line-height: 50px;
	}

	.gb-ranking__item {
		flex-wrap: nowrap;
	}

	.gb-ranking__info {
		flex: 1;
	}

	.gb-ranking__buy {
		flex: none;
		flex-direction: column;
		align-items: flex-end;
	}
}

/* ------------------------------------------------------------------ お客様の声 */

.gb-sec--reviews-carousel {
	margin-block: 0;
}

.gb-voices {
	max-width: 1600px;
	margin-inline: auto;
	padding: 48px 15px 76px;
}

.gb-voices__header {
	margin-bottom: 32px;
	padding-inline: 10px;
}

.gb-voices__title {
	margin: 0;
	font-size: 28px;
	line-height: 36px;
}

.gb-voices__summary {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.gb-voices__count {
	line-height: 1.6;
}

/* 四角い星（桃色の四角に白い星）。5 つを、評価の割合で塗り分ける */
.gb-boxstars {
	--gb-boxstars-size: 19px;
	--gb-boxstars-step: 23.6px;
	display: block;
	width: calc(var(--gb-boxstars-step) * 5);
	height: var(--gb-boxstars-size);
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-5.2 -3.4 34.4 27.7'%3E%3Cpath fill='%23fff' d='M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z'/%3E%3C/svg%3E") left / var(--gb-boxstars-step) var(--gb-boxstars-size) repeat-x,
		linear-gradient(90deg, #ffc4c4 var(--gb-stars), #dadada var(--gb-stars));
	/* 四角と四角の間（4px）を切り抜く */
	-webkit-mask: linear-gradient(90deg, transparent 2px, #000 2px, #000 calc(100% - 2px), transparent calc(100% - 2px)) left / var(--gb-boxstars-step) 100% repeat-x;
	mask: linear-gradient(90deg, transparent 2px, #000 2px, #000 calc(100% - 2px), transparent calc(100% - 2px)) left / var(--gb-boxstars-step) 100% repeat-x;
}

.gb-boxstars--lg {
	--gb-boxstars-size: 23px;
	--gb-boxstars-step: 27px;
	margin: 2px 0 3px;
}

.gb-voices__carousel {
	position: relative;
	padding-inline: 40px;
}

.gb-voices .gb-voices__viewport {
	margin: -12px;
	padding: 12px;
	overflow: hidden;
}

.gb-voices__viewport:not(.swiper-initialized) .swiper-wrapper {
	display: flex;
	gap: 40px;
	overflow-x: auto;
}

.gb-voices .gb-voices__slide {
	width: 100%;
	height: auto;
}

.gb-voice {
	display: block;
	height: 184px;
	padding: 16px;
	overflow: hidden;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	color: #333;
	line-height: 1.4;
}

.gb-voice:hover {
	color: #333;
}

.gb-voice__title {
	display: block;
	margin-top: 9px;
	overflow: hidden;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gb-voice__body {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
}

.gb-voices__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	padding: 8px;
	border: 0;
	background: none;
	color: #ddd;
	cursor: pointer;
	transform: translateY(-50%);
	transition: color var(--gb-duration) var(--gb-ease);
}

.gb-voices__arrow:hover {
	color: #999;
}

.gb-voices__arrow--prev {
	left: -5px;
}

.gb-voices__arrow--next {
	right: -5px;
}

@media (min-width: 768px) {
	.gb-voices {
		padding-inline: 50px;
	}

	.gb-voices__title {
		font-size: 42px;
		line-height: 50px;
	}

	.gb-voices .gb-voices__slide {
		width: calc((100% - 80px) / 3);
	}

	.gb-voices__carousel {
		padding-inline: 10px;
	}

	.gb-voices__arrow--prev {
		left: -46px;
	}

	.gb-voices__arrow--next {
		right: -46px;
	}
}

/* ------------------------------------------------------------------ ブログの記事 */

.gb-blog-cards {
	display: flex;
	gap: 15px;
	margin-inline: -15px;
	padding-inline: 15px;
	overflow-x: auto;
	scrollbar-width: none;
}

.gb-blog-cards::-webkit-scrollbar {
	display: none;
}

.gb-blog-card {
	display: flex;
	flex: 0 0 85%;
	flex-direction: column;
	margin-bottom: 30px;
	overflow: hidden;
	border-radius: var(--gb-radius-card, 16px);
	background: #fff;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.gb-blog-card__media {
	display: block;
	aspect-ratio: 8 / 5;
	overflow: hidden;
	background: rgba(var(--gb-color-text-rgb), 0.03);
}

.gb-blog-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1s var(--gb-ease);
}

.gb-blog-card:hover .gb-blog-card__media img {
	transform: scale(1.05);
}

.gb-blog-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 20px;
}

.gb-blog-card__title {
	margin: 0 0 9px;
	font-size: 20px;
	line-height: 1.4;
}

.gb-blog-card__title a {
	color: var(--gb-color-text);
}

.gb-blog-card__title a:hover {
	color: var(--gb-color-accent);
}

@media (min-width: 768px) {
	.gb-blog-cards {
		gap: 30px;
		margin-inline: 0;
		padding-inline: 0;
		overflow: visible;
	}

	.gb-blog-card {
		flex: 0 0 calc((100% - 60px) / 3);
	}

	.gb-blog-card__body {
		padding: 28px 30px 30px;
	}

	.gb-blog-card__title {
		font-size: 24px;
	}
}

/* ------------------------------------------------------------------ 画像と文 */

.gb-image-text {
	display: grid;
	gap: 30px;
	align-items: center;
}

.gb-image-text__media {
	display: flex;
	justify-content: center;
}

.gb-image-text__media img {
	display: block;
	width: 70%;
	max-width: 460px;
	height: auto;
}

.gb-image-text__body {
	padding-top: 20px;
	text-align: center;
}

.gb-image-text__title {
	margin-bottom: 23px;
	font-size: 26px;
	line-height: 30px;
}

.gb-image-text__text {
	font-size: 15px;
	line-height: 24px;
}

.gb-image-text__text p {
	margin: 0 0 20px;
}

.gb-image-text__button {
	margin-top: 24px;
}

@media (min-width: 768px) {
	.gb-image-text {
		grid-template-columns: 625fr 570fr;
		gap: 85px;
	}

	.gb-image-text--left .gb-image-text__text {
		line-height: 1.6;
	}

	.gb-image-text__title {
		font-size: 34px;
		line-height: 42px;
	}

	.gb-image-text__text {
		font-size: 17px;
		line-height: 1.46;
	}
}

/* ------------------------------------------------------------------ 文（中央寄せ） */

.gb-rich {
	border-radius: 16px;
	background: #f5f5f5;
	text-align: center;
}

.gb-rich__inner {
	max-width: 580px;
	margin-inline: auto;
}

.gb-rich__title {
	margin-bottom: 20px;
}

.gb-rich__text {
	font-size: 17px;
	line-height: 1.6;
}

.gb-rich__text--small {
	font-size: 15px;
	line-height: 24px;
}

.gb-rich__text p {
	margin: 0;
}

.gb-rich__text + .gb-rich__button {
	margin-top: 35px;
}

/* ------------------------------------------------------------------ お問い合わせフォーム */

.gb-sec--contact-form .gb-sec-header {
	margin-bottom: 0;
}

@media (min-width: 1068px) {
	.gb-contact {
		max-width: calc((100% + 30px) * 8 / 12 - 30px);
	}
}

.gb-contact__notice {
	margin: 15px 0;
	padding: 12px 17px;
	border-radius: var(--gb-radius-input);
	font-size: 15px;
	line-height: 1.6;
}

.gb-contact__notice--ok {
	background: rgba(42, 150, 90, 0.1);
	color: #1c6e40;
}

.gb-contact__notice--error {
	background: rgba(237, 28, 36, 0.08);
	color: var(--gb-color-accent);
}

/* ------------------------------------------------------------------ 文：左寄せ・大きな見出し・画像 */

.gb-rich--left {
	text-align: left;
}

.gb-rich--left .gb-rich__inner {
	margin-inline: 0;
}

.gb-rich__image {
	margin-bottom: 30px;
}

.gb-rich__image img {
	display: block;
	margin-inline: auto;
	max-width: 100%;
	height: auto;
}

.gb-rich__text p + p {
	margin-top: 20px;
}

/* ------------------------------------------------------------------ パンくずとページのタイトル */

.gb-sec--page-header {
	margin-block: 0;
}

.gb-page-heading {
	margin: 15px 0 30px;
}

/* ------------------------------------------------------------------ よくある質問 */

.gb-faq__title {
	margin-bottom: 30px;
}

.gb-faq__list {
	margin-bottom: 0;
}

.gb-faq__list > .gb-accordion:last-child {
	border-bottom: 0;
}

.gb-faq .gb-accordion__content p {
	margin: 0 0 20px;
}

@media (min-width: 1068px) {
	.gb-faq {
		display: grid;
		grid-template-columns: 1fr calc((100% + 30px) * 0.5 - 40px);
		align-items: start;
		gap: 30px;
	}

	.gb-faq__title {
		position: sticky;
		top: 120px;
		margin-bottom: 0;
	}
}

/* ------------------------------------------------------------------ 画像と文：重ねた画像・左寄せ */

.gb-image-text--left .gb-image-text__body {
	text-align: left;
}

.gb-image-text__image {
	width: 70%;
	max-width: 460px;
	overflow: hidden;
}

.gb-image-text__media .gb-image-text__image img {
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
}

.gb-image-text__image--landscape {
	aspect-ratio: 4 / 3;
}

.gb-image-text__image--portrait {
	aspect-ratio: 4 / 5;
}

.gb-image-text__image--square {
	aspect-ratio: 1;
}

/* 重ねる：主の画像を中央に、左下と右上に小さい画像を少しはみ出させて置く */
.gb-image-text__media--layered {
	position: relative;
	display: block;
	max-width: 625px;
	margin-inline: auto;
	padding-bottom: 8px;
}

.gb-image-text__media--layered .gb-image-text__image--main {
	width: 73.6%;
	max-width: none;
	margin-left: 12.3%;
}

.gb-image-text__media--layered .gb-image-text__image--second {
	position: absolute;
	bottom: 0;
	left: -2.4%;
	z-index: 1;
	width: 29.4%;
}

.gb-image-text__media--layered .gb-image-text__image--third {
	position: absolute;
	top: 2%;
	left: 58.3%;
	z-index: 1;
	width: 40.5%;
}

/* ------------------------------------------------------------------ アイコン付きの文 */

/* 背景を付けるとき（会社概要）は、上下に 30px の内側の余白 */
.gb-icon-texts--boxed {
	padding-block: 30px;
	background: #f5f5f5;
}

.gb-icon-texts__list {
	display: flex;
	gap: 20px;
	margin-inline: -15px;
	padding-inline: 15px;
	overflow-x: auto;
	scrollbar-width: none;
}

.gb-icon-texts__list::-webkit-scrollbar {
	display: none;
}

.gb-icon-text {
	display: flex;
	flex: 0 0 250px;
	align-items: center;
	gap: 20px;
}

.gb-icon-text__icon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
}

.gb-icon-text__icon img {
	display: block;
	width: 64px;
	height: 64px;
	object-fit: contain;
}

.gb-icon-text__title {
	margin: 0 0 10px;
	color: var(--gb-icon-texts-heading, var(--gb-color-heading));
	font-size: 20px;
	line-height: 1;
}

.gb-icon-text__text {
	font-size: 15px;
	line-height: 24px;
}

.gb-icon-text__text p {
	margin: 0;
}

@media (min-width: 768px) {
	.gb-icon-text {
		flex-basis: 300px;
	}

	.gb-icon-texts__list {
		justify-content: center;
		margin-inline: 0;
		padding-inline: 0;
		overflow: visible;
	}
}

/* ------------------------------------------------------------------ 動画（再生前の画像と再生ボタン） */

.gb-video {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #000;
	color: #fff;
}

.gb-video--playing {
	width: 100%;
	height: auto;
	border: 0;
}

.gb-video__poster {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gb-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	padding-left: 6px;
	border-radius: 50%;
	background: rgba(44, 45, 46, 0.8);
	transform: translate(-50%, -50%);
	transition: background-color var(--gb-duration) var(--gb-ease);
}

.gb-video:hover {
	color: #fff;
}

.gb-video:hover .gb-video__play {
	background: var(--gb-color-accent);
}

.gb-video__note {
	position: absolute;
	right: 12px;
	bottom: 10px;
	padding: 4px 10px;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.6);
	font-size: 12px;
	line-height: 1.6;
}

/* ------------------------------------------------------------------ 色のタイル */

/* スマホは 2 列（横幅 2 つ分のタイルは 1 行を使う） */
.gb-tiles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.gb-tile--wide {
	grid-column: span 2;
}

.gb-tile {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 250px;
	padding: 20px;
	overflow: hidden;
	border-radius: 16px;
	background: var(--gb-color-text);
	color: #f5f5f5;
	text-align: center;
}

a.gb-tile:hover {
	color: #f5f5f5;
}

.gb-tile__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gb-tile__body {
	position: relative;
	display: block;
}

.gb-tile__sub,
.gb-tile__title {
	display: block;
}

.gb-tile__title {
	font-family: var(--gb-font-heading);
	font-size: 20px;
	font-weight: 500;
	line-height: 28px;
	letter-spacing: -0.02em;
}

@media (min-width: 768px) {
	.gb-tiles {
		grid-template-columns: repeat(4, 1fr);
		gap: 20px;
	}

	.gb-tile {
		min-height: 300px;
		padding: 35px;
	}

	.gb-tile--wide {
		grid-column: span 2;
	}

	.gb-tile__title {
		font-size: 28px;
		line-height: 36px;
	}

	.gb-tile__title--lg {
		font-size: 34px;
		line-height: 42px;
	}
}

/* ------------------------------------------------------------------ 横棒グラフ */

.gb-bars {
	display: grid;
	gap: 0;
	padding-bottom: 26px;
}

.gb-bar__label {
	display: block;
	margin-bottom: 13px;
	font-weight: 500;
}

.gb-bar__track {
	position: relative;
	height: 14px;
	margin-bottom: 30px;
	border-radius: 7px;
	background: #fcfcfc;
}

.gb-bar__fill {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: var(--gb-bar-value);
	border-radius: 7px;
	background: var(--gb-bars-color, var(--gb-color-accent));
}

.gb-bar__value {
	position: absolute;
	top: 24px;
	left: var(--gb-bar-value);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.6;
	transform: translateX(-50%);
}

@media (min-width: 768px) {
	.gb-bars {
		grid-template-columns: 1fr 1fr;
		gap: 0 30px;
	}
}

/* ------------------------------------------------------------------ カード（星・見出し・本文） */

.gb-note-cards {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	margin-inline: -15px;
	padding-inline: 15px;
	overflow-x: auto;
	scrollbar-width: none;
}

.gb-note-cards::-webkit-scrollbar {
	display: none;
}

.gb-note-card {
	flex: 0 0 80%;
	padding: 30px;
	border-radius: 16px;
	background: #fff;
}

.gb-note-card__stars {
	display: block;
	margin: 0 0 10px;
	font-size: 20px;
	line-height: 27px;
}

.gb-note-card__title {
	margin: 0 0 8px;
	color: var(--gb-note-cards-heading, #3f72e5);
	font-size: 18px;
	line-height: 26px;
}

.gb-note-card__text {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.5;
}

.gb-note-card__author {
	margin: 0;
	font-size: 12px;
	line-height: 1;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	opacity: 0.7;
}

@media (min-width: 768px) {
	.gb-note-cards {
		gap: 30px;
		margin-inline: 0;
		padding-inline: 0;
		overflow: visible;
	}

	.gb-note-card {
		flex: 0 0 calc((100% - 90px) / 4);
	}
}

/* ------------------------------------------------------------------ ブログの記事（1 つを大きく） */

.gb-blog-feature {
	display: flex;
	flex-direction: column;
	margin-bottom: 30px;
	overflow: hidden;
	border-radius: 16px;
	background: #fff;
}

.gb-blog-feature__media {
	display: block;
	aspect-ratio: 8 / 5;
	overflow: hidden;
	background: rgba(var(--gb-color-text-rgb), 0.03);
}

.gb-blog-feature__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1s var(--gb-ease);
}

.gb-blog-feature:hover .gb-blog-feature__media img {
	transform: scale(1.05);
}

.gb-blog-feature__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 30px 20px;
}

.gb-blog-feature__date {
	margin-bottom: 15px;
	font-size: 12px;
	line-height: 1;
	opacity: 0.7;
}

.gb-blog-feature__title {
	margin: 0 0 15px;
	font-size: 24px;
	line-height: 1.33;
}

.gb-blog-feature__title a {
	color: var(--gb-color-text);
}

.gb-blog-feature__title a:hover {
	color: var(--gb-color-accent);
}

.gb-blog-feature__excerpt {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-size: 15px;
	line-height: 24px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
	line-clamp: 5;
}

.gb-blog-feature__more {
	margin-top: 30px;
}

@media (min-width: 768px) {
	.gb-blog-feature {
		flex-direction: row;
	}

	.gb-blog-feature__media {
		flex: 0 0 62.5%;
	}

	.gb-blog-feature__body {
		flex: 1;
		padding: 50px;
	}

	.gb-blog-feature__title {
		font-size: 34px;
		line-height: 43.75px;
	}
}

/* ------------------------------------------------------------------ お問い合わせフォーム：中央に置く */

.gb-contact--center {
	margin-inline: auto;
}

/* ------------------------------------------------------------------ スライドショー：高さの指定と、スライドの上の文字 */

@media (max-width: 767px) {
	.gb-slideshow {
		height: var(--gb-slideshow-mobile, 450px);
	}
}

@media (min-width: 768px) {
	.gb-slideshow--fixed {
		height: var(--gb-slideshow-height);
		aspect-ratio: auto;
	}
}

.gb-slideshow__content--text {
	flex-direction: column;
	align-items: flex-start;
	padding-bottom: 50px;
	color: #fff;
	text-align: left;
}

.gb-slideshow__text .gb-subheading {
	margin-bottom: 20px;
}

.gb-slideshow__title {
	margin: 0;
	color: #fff;
}

.gb-slideshow__badge {
	margin-bottom: 20px;
}

/* 文字のあるスライドは、文字が読めるように画像をわずかに暗くする */
.gb-slideshow__slide:has(.gb-slideshow__content--text)::after {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0) 100%);
	pointer-events: none;
}

/* ------------------------------------------------------------------ 画像の上に文字 */

.gb-sec--image-overlay {
	margin-block: 0;
}

.gb-cover {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: var(--gb-cover-height-mobile, 500px);
	padding: 50px 15px;
	overflow: hidden;
	background: var(--gb-color-text);
	color: #fff;
}

.gb-cover__media,
.gb-cover__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.gb-cover__image {
	object-fit: cover;
}

.gb-cover__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, var(--gb-cover-dark, 0.3));
}

.gb-cover__content {
	position: relative;
	width: 100%;
	max-width: 650px;
}

.gb-cover__sub {
	opacity: 0.6;
}

.gb-cover__title {
	color: #fff;
}

.gb-cover__text {
	font-size: 17px;
	line-height: 32px;
}

.gb-cover__text p {
	margin: 0 0 20px;
}

@media (min-width: 768px) {
	.gb-cover {
		min-height: var(--gb-cover-height, 650px);
		padding-block: 80px;
	}

	.gb-cover__text {
		font-size: 20px;
	}
}

/* ------------------------------------------------------------------ 画像のカードと文のカード */

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

.gb-pair__media,
.gb-pair__body {
	overflow: hidden;
	border-radius: 16px;
}

.gb-pair__media {
	background: var(--gb-pair-image-bg, transparent);
}

.gb-pair__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gb-pair__body {
	display: flex;
	align-items: center;
	padding: 25px;
	background: var(--gb-pair-bg, #fff);
	color: var(--gb-pair-text, var(--gb-color-text));
}

.gb-pair__title {
	color: inherit;
}

.gb-pair__text p {
	margin: 0 0 20px;
}

.gb-pair__body .gb-pair__button {
	--gb-btn-bg: var(--gb-pair-text, var(--gb-color-text));
	--gb-btn-bg-hover: var(--gb-pair-text, var(--gb-color-text));
	--gb-btn-text: var(--gb-pair-bg, #fff);
}

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

	.gb-pair--image-right .gb-pair__media {
		order: 2;
	}

	.gb-pair__body {
		padding: 70px;
	}
}

/* ------------------------------------------------------------------ 手順 */

.gb-step__badge {
	position: relative;
	display: inline-flex;
	align-items: center;
	margin-bottom: 25px;
	padding: 8px 15px 8px 30px;
	border-radius: 15px;
	background: #3f72e5;
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	line-height: 14px;
}

.gb-step__badge::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 14px;
	width: 6px;
	height: 6px;
	margin-top: -3px;
	border-radius: 3px;
	background: currentColor;
}

.gb-steps__visual {
	display: none;
}

.gb-steps__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gb-step {
	margin-bottom: 50px;
}

.gb-step:last-child {
	margin-bottom: 0;
}

.gb-step__image {
	margin-bottom: 25px;
	overflow: hidden;
	border-radius: 16px;
	aspect-ratio: 1;
}

.gb-step__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gb-step__text p {
	margin: 0 0 20px;
}

.gb-step__link {
	color: var(--gb-color-text);
}

@media (min-width: 1068px) {
	.gb-steps {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 50px;
		align-items: start;
	}

	.gb-steps__visual {
		position: sticky;
		top: calc(50vh - 307px);
		display: block;
	}

	.gb-steps__images {
		position: relative;
		aspect-ratio: 1;
		overflow: hidden;
		border-radius: 16px;
		background: rgba(var(--gb-color-text-rgb), 0.03);
	}

	.gb-steps__image {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		opacity: 0;
		transition: opacity 0.5s var(--gb-ease);
	}

	.gb-steps__image.is-active {
		opacity: 1;
	}

	/* 画像の左：いまの手順を示す縦の印 */
	.gb-steps__dots {
		position: absolute;
		top: 50%;
		left: -38px;
		display: flex;
		flex-direction: column;
		transform: translateY(-50%);
	}

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

	.gb-steps__dot.is-active {
		height: 32px;
		opacity: 1;
	}

	.gb-step {
		display: flex;
		align-items: center;
		min-height: 615px;
		margin-bottom: 50px;
	}

	.gb-step__image {
		display: none;
	}
}

/* ------------------------------------------------------------------ 波形の区切り */

.gb-sec--waves {
	margin-block: -100px 0;
	overflow: hidden;
	pointer-events: none;
}

/* 上下を逆にした波（色の帯の下のふち）は、下のセクションに重なる */
.gb-sec--waves:has(.gb-waves--flip) {
	margin-block: 0 -100px;
}

.gb-waves {
	position: relative;
	height: 200px;
	overflow: hidden;
}

/* 2 周期ぶんの波を、1 周期ぶんだけ横に動かして繰り返す */
.gb-waves__svg {
	position: absolute;
	bottom: 0;
	left: 0;
	display: block;
	width: 200%;
	max-width: none;
	height: 90px;
	animation: gb-waves 10s linear infinite;
}

.gb-waves--flip .gb-waves__svg {
	top: 0;
	bottom: auto;
	height: 70px;
	transform-origin: center;
	animation-name: gb-waves-flip;
}

@keyframes gb-waves {
	to {
		transform: translateX(-50%);
	}
}

@keyframes gb-waves-flip {
	from {
		transform: scaleY(-1) translateX(0);
	}

	to {
		transform: scaleY(-1) translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.gb-waves__svg {
		animation: none;
	}

	.gb-waves--flip .gb-waves__svg {
		transform: scaleY(-1);
	}
}

/* ------------------------------------------------------------------ レビューの一覧（全商品） */

.gb-reviews--all {
	max-width: 1080px;
	margin-inline: auto;
	padding-block: 0;
}

.gb-reviews-all__summary {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 30px;
}

.gb-reviews-all__cards {
	columns: 1;
	column-gap: 16px;
}

.gb-reviews-all__item {
	position: relative;
	break-inside: avoid;
}

/* 商品名は、カードの下のふちの内側に置く */
.gb-reviews-all__item .gb-review {
	padding-bottom: 58px;
}

.gb-reviews-all__product {
	position: absolute;
	right: 16px;
	bottom: 32px;
	left: 16px;
	overflow: hidden;
	color: #7b7b7b;
	font-size: 13.6px;
	line-height: 1.4;
	text-overflow: ellipsis;
	white-space: nowrap;
}

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

@media (min-width: 768px) {
	.gb-reviews-all__cards {
		columns: 3;
	}
}

/* ------------------------------------------------------------------ スマホ幅の測り直し（2026-10-02。公開サイトの 390px と 1440px の箱に合わせる） */

/* 文（中央寄せ）：文で終わるとき（ボタンがないとき）は、下に 35px（公開サイトの .rte の下の余白） */
.gb-sec--rich-text > .gb-container:has(.gb-rich__inner > .gb-rich__text:last-child) {
	padding-bottom: 35px;
}

/* 画像と文（重ねた画像）：見出しの下 20px、本文はスマホでも 17px、文とボタンの間は段落の余白だけ */
.gb-image-text:has(> .gb-image-text__media--layered) .gb-image-text__body {
	padding-top: 0;
}

.gb-image-text:has(> .gb-image-text__media--layered) .gb-image-text__title {
	margin-bottom: 20px;
}

.gb-image-text:has(> .gb-image-text__media--layered) .gb-image-text__text {
	font-size: 17px;
	line-height: 1.6;
}

.gb-image-text:has(> .gb-image-text__media--layered) .gb-image-text__button {
	margin-top: 0;
}

@media (max-width: 767.98px) {
	.gb-image-text:has(> .gb-image-text__media--layered) {
		gap: 25px;
	}

	.gb-image-text__media--layered .gb-image-text__image--main {
		width: 72%;
		margin-left: 14%;
	}

	.gb-image-text__media--layered .gb-image-text__image--second {
		width: 28.9%;
	}

	.gb-image-text__media--layered .gb-image-text__image--third {
		width: 39.5%;
	}

	/* 商品の格子：「スマホでも格子」のときは、横に送らずに 2 列で折り返す */
	.gb-products-row--grid.gb-products-row--wrap {
		flex-wrap: wrap;
		row-gap: 30px;
		margin-inline: 0;
		padding: 0 0 30px;
		overflow: visible;
	}

	.gb-products-row--grid.gb-products-row--wrap .gb-products-row__item {
		width: calc((100% - var(--gb-row-gap)) / 2);
	}
}

@media (max-width: 767.98px) {
	/* 見出しの行：「すべて見る」が下の行に回るとき、間をあけない */
	.gb-sec--featured-collection .gb-sec-header {
		row-gap: 0;
	}

	/* 商品の格子（横に送る 1 行）：下に 30px */
	.gb-products-row--grid:not(.gb-products-row--wrap) {
		padding-bottom: 30px;
	}

	/* 画像と文：画像は幅の 72%、下に 8px。文との間は 25px。本文は 17px、見出しの下 20px、ボタンの上 20px */
	.gb-image-text {
		gap: 25px;
	}

	.gb-image-text__media:not(.gb-image-text__media--layered) {
		padding-bottom: 8px;
	}

	.gb-image-text__media:not(.gb-image-text__media--layered) .gb-image-text__image {
		width: 72%;
	}

	.gb-image-text__title {
		margin-bottom: 20px;
	}

	.gb-image-text__text {
		font-size: 17px;
		line-height: 1.6;
	}

	.gb-image-text__button {
		margin-top: 20px;
	}
}

/* ------------------------------------------------------------------ 演出（R10。公開サイトの動きを測って合わせた。docs/rewrite-plan.md の R10 の記録）
   html に class「gb-anim」が付いているときだけ動く（JS が使えて、「動きを減らす」設定でないとき。inc/sections.php）。
   付いていないときは、最初からすべて出ている。 */

/* 見出しのマーカー：画面に入ると、線が左から右へ描かれる（約 1 秒） */
.gb-anim .gb-marker__line {
	clip-path: inset(-20px 100% -20px 0);
	transition: clip-path 1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s;
}

.gb-anim .gb-marker.is-inview .gb-marker__line {
	clip-path: inset(-20px 0 -20px 0);
}

/* スライド：切り替わると、ボタンが下から出る（50px・約 0.5 秒）。文字のリンクは 15px。文字は少し遅れて出る */
.gb-anim .gb-slideshow__slide .gb-btn,
.gb-anim .gb-slideshow__slide .gb-slideshow__link,
.gb-anim .gb-slideshow__slide .gb-slideshow__text {
	transform: translateY(50px);
}

.gb-anim .gb-slideshow__slide .gb-slideshow__link {
	transform: translateY(15px);
}

.gb-anim .gb-slideshow__slide .gb-slideshow__text {
	transform: translateY(30px);
	opacity: 0;
}

.gb-anim .gb-slideshow__slide.swiper-slide-active .gb-btn,
.gb-anim .gb-slideshow__slide.swiper-slide-active .gb-slideshow__link,
.gb-anim .gb-slideshow__slide.swiper-slide-active .gb-slideshow__text {
	transform: none;
	opacity: 1;
	transition:
		transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
		opacity 0.55s ease-out,
		color var(--gb-duration) var(--gb-ease),
		background-color var(--gb-duration) var(--gb-ease);
}

/* 画像の上に文字（LP）：小見出しはふわっと出る。見出しと文は、行ごとに下からせり上がる */
.gb-line {
	display: block;
	overflow: hidden;
}

.gb-line__in {
	display: block;
}

.gb-anim .gb-cover .gb-cover__sub {
	opacity: 0;
	transition: opacity 0.5s ease-out 0.3s;
}

.gb-anim .gb-cover.is-inview .gb-cover__sub {
	opacity: 0.6;
}

.gb-anim .gb-cover .gb-line__in {
	transform: translateY(100%);
	transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
	transition-delay: calc(0.3s + var(--gb-line-i, 0) * 0.08s);
}

.gb-anim .gb-cover.is-inview .gb-line__in {
	transform: none;
}

.gb-anim .gb-cover .gb-btn {
	opacity: 0;
	transition:
		opacity 0.5s ease-out 0.9s,
		color var(--gb-duration) var(--gb-ease),
		background-color var(--gb-duration) var(--gb-ease);
}

.gb-anim .gb-cover.is-inview .gb-btn {
	opacity: 1;
}

/* 視差：スクロールに合わせて、画像が少しずれる（値は assets/js/gb-sections.js が入れる） */
.gb-anim .gb-cover__image {
	top: -10%;
	height: 120%;
	transform: translate3d(0, var(--gb-parallax, 0px), 0);
	will-change: transform;
}

.gb-anim .gb-image-text__media--layered .gb-image-text__image--second,
.gb-anim .gb-image-text__media--layered .gb-image-text__image--third {
	transform: translate3d(0, var(--gb-parallax, 0px), 0);
	will-change: transform;
}

