@charset "UTF-8";


/* ====================================
	共通スタイル
 ==================================== */

/* メインコンテンツコンテナ */
.lineup-container {
	margin-top: 2rem;
}

/* 製品アイテム */
.product-item {
	position: relative;
}

/* リンクエリア設定 */
.product-link {
	display: block;
	text-align: center;
	text-decoration: none;

	img {
		transition: opacity 0.3s ease;
	}

	&:hover {
		text-decoration: underline 2px;
		text-underline-position: from-font;

		img {
			opacity: 0.7;
		}
	}
}

.product-info {
	text-align: center;
}

.product-category {
	display: inline-block;
	font-size: 1.2rem;
	margin-top: 0.8rem;
}

.product-model {
	font-size: 2rem;
	font-weight: 700;
}

.product-capacity {
	font-size: 1.2rem;
	font-weight: 400;
}

.product-image {
	display: grid;
	place-items: center;
	aspect-ratio: 1 / 1;
	padding: 2.5rem 7%;
	background: #f5f5f5;
	position: relative;
}

.product-year {
	position: absolute;
	right: 0.5rem;
	bottom: 0.5rem;
	font-size: 1.2rem;
	font-weight: 400;
}

/* 製品リスト */
.product-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 3rem 5%;
	margin-top: 4rem;
}

/* カラーアイコンリスト */
.product-color-list {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

/* 製品コピー */
.product-copy {
	font-size: 1.4rem;
	margin-top: 0.8rem;
	line-height: 1.5;
}

/* アイコンリスト */
.product-icon-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1.6rem;
	margin-top: 1rem;

	img {
		block-size: 30px;
		inline-size: auto;
	}
}

/* 機能タグ */
.product-feature-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1rem;

	&>li {
		padding: 0.3em 0.5em;
		border: 1px solid #727272;
		font-size: 1.1rem;
		line-height: 1;
	}
}

/* 吹き出し：リセット状態で移動 */
.button-outline:has(.balloon-reset) {
	position: relative;
}

.button-outline:has(.balloon-reset)>a {
	position: relative;
	z-index: 1;
	background-color: #fff;

	&:hover {
		background-color: #000;
	}
}

.balloon-reset {
	position: absolute;
	inset-block-start: 100%;
	inset-inline-end: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	transform: translateY(calc(-100% - 4px));
	transition: transform 0.3s ease;
}

.button-outline.sp-only .balloon-reset {
	inset-inline-end: unset;
	justify-self: center;
}

.balloon-reset.is-visible {
	transform: translateY(0);
}

.balloon-reset::before {
	content: "";
	display: block;
	inline-size: 0;
	block-size: 0;
	border-inline: 6px solid transparent;
	border-block-end: 7px solid #000;
	margin-inline-end: 12px;
}

.button-outline.sp-only .balloon-reset::before {
		margin-inline: auto;
}

.balloon-reset__text {
	padding: 0.2em 0.5em;
	background: #000;
	color: #fff;
	font-size: 1.2rem;
	line-height: 1.5;
	border-radius: 5px;
}

/* ====================================
	スティッキーボトムバー
===================================== */

.sticky-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	inline-size: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	padding: 1.2rem 1.5rem;
	background: rgba(0, 0, 0, 0.8);
	z-index: 11;
}

.sticky-bar__text {
	font-size: 1.4rem;
	font-weight: 700;
	color: #fff;
	line-height: 1.5;
}

.sticky-bar__count {
	display: inline-block;
	margin-inline: 0.3em;
	font-size: 2rem;
	font-weight: 700;
}

.sticky-bar__link {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	padding: 0.6rem 2rem;
	font-size: 1.6rem;
	font-weight: 700;
	color: #000;
	background: var(--gray-50);
	border-radius: 5px;
	text-decoration: none;
	line-height: 1.5;
	transition: opacity 0.3s ease;

	&:hover {
		opacity: 0.7;
		text-decoration: none;
	}
}

/* スティッキーバー アニメーション */
.sticky-bar-enter-active,
.sticky-bar-leave-active {
	transition: transform 0.3s ease;
}

.sticky-bar-enter-from,
.sticky-bar-leave-to {
	transform: translateY(100%);
}


/* ページトップボタンの位置調整 */
#pageTop.has-sticky-bar {
	bottom: 5.5rem;
}

/* ====================================
	768px未満専用スタイル
===================================== */
@media screen and (width < 768px) {

	/* SP用 仕様比較ボタン */
	.button-outline.sp-only {
		inline-size: fit-content;
		margin: 4rem auto 0;
	}
}

/* ====================================
	768px以上専用スタイル
===================================== */
@media screen and (width >=768px) {

	/* メインコンテンツコンテナ */
	.lineup-container {
		margin-top: 4rem;
	}

	/* カテゴリ */
	.product-category {
		font-size: 1.4rem;
		margin-top: 1rem;
	}

	.product-model {
		font-size: 2.4rem;
	}

	.product-capacity {
		font-size: 1.4rem;
	}

	/* 製品コピー */
	.product-copy {
		font-size: 1.5rem;
	}

	/* 製品リスト - 2カラムグリッド */
	.product-list {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
		gap: 4rem 5%;
	}

	/* アイコンリスト */
	.product-icon-list img {
		block-size: 4rem;
	}

	/* 機能タグ */
	.product-feature-list {
		gap: 0.6rem;
		margin-top: 0.8rem;

		&>li {
			padding: 0.3em 0.5em;
			font-size: 1.2rem;
		}
	}

	/* スティッキーボトムバー */
	.sticky-bar {
		gap: 3rem;
		padding: 2rem 3rem;
	}

	.sticky-bar__text {
		font-size: 1.8rem;
	}

	.sticky-bar__count {
		font-size: 2.4rem;
	}

	.sticky-bar__link {
		font-size: 2rem;
		padding: 0.8rem 3rem;
	}

	#pageTop.has-sticky-bar {
		bottom: 8.6rem;
	}
}