/*
 * カラーシミュレーター
 * デザイン（デザイナー納品）に合わせた作り。PC は幅1300px、SP は幅640px を基準に、
 * 各サイズを --u（1pxにあたる長さ）の倍率で指定しているので、幅が変わっても全体が同じ比率で縮む。
 * PC / SP の切り替えは、シミュレーターの幅 960px（customize.js の PC_MIN_WIDTH）で、JS が .is-pc / .is-sp を付ける。
 * 色・文字サイズは、デザイナーのコーダー指示書のとおり。
 */
.bike-sim {
	--sim_dark: #362e2b; /* 白文字の背景・枠線 */
	--sim_orange: #e79120; /* 選択カラー */
	--sim_red: #8f1313; /* 注意 */
	--sim_gray: #b3b3b3; /* (ボディ) などの箇所 */
	--sim_bg_image: url(/files/customize/img/design/pc/design05_bg.png);
}
.bike-sim button {
	font-family: inherit;
	cursor: pointer;
}
.bike-sim .sim {
	container-type: inline-size;
	max-width: 1300px;
	margin: 0 auto 50px;
	line-height: 1.5;
	color: #000;
}
.bike-sim .sim p {
	margin: 0;
}
.bike-sim .sim img {
	max-width: none;
	border: 0;
}
.bike-sim .sim-wrap {
	--u: calc(100cqw / 1300);
	position: relative;
	box-sizing: border-box;
}

/* ページ見出し（INTRO を設定したときだけ出る） */
.bike-sim .sim-intro {
	max-width: 1300px;
	margin: 0 auto 28px;
}
.bike-sim .sim-intro-en {
	margin: 0 0 4px;
	font-size: 12px;
	letter-spacing: 0.2em;
}
.bike-sim .sim-intro-title {
	margin: 0 0 8px;
	font-size: 44px;
	font-weight: bold;
	line-height: 1.2;
}
.bike-sim .sim-intro-sub {
	margin: 0;
	font-size: 16px;
}

/* パーツボタン（ホバーで小さく、選択中は ON 画像） */
.bike-sim .sim-nav {
	display: flex;
}
.bike-sim .sim-navbtn {
	display: block;
	padding: 0;
	border: 0;
	background: none;
	line-height: 0;
	transition: transform 0.15s;
}
.bike-sim .sim-navbtn img {
	display: block;
}
.bike-sim .sim-navbtn:hover {
	transform: scale(0.94);
}

/* 車体プレビュー: 車体画像 → Box背景 → ボディ → ホイール → シート → Box の順に重ねる */
.bike-sim .sim-stage {
	position: relative;
	width: calc(var(--w) * var(--u));
	height: calc(var(--h) * var(--u));
}
.bike-sim .sim-base,
.bike-sim .sim-part {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.bike-sim .sim-layer {
	position: absolute;
	inset: 0;
	isolation: isolate;
}
/* 着色: 元画像（無彩色にして明るさ補正）に、色を乗算する */
.bike-sim .sim-layer img {
	display: block;
	width: 100%;
	height: 100%;
	filter: grayscale(1) brightness(var(--b, 1));
}
.bike-sim .sim-layer i {
	position: absolute;
	inset: 0;
	background: var(--col);
	mix-blend-mode: multiply;
	-webkit-mask: var(--m) center / 100% 100% no-repeat;
	mask: var(--m) center / 100% 100% no-repeat;
}
/* Seat: 平らな色の代わりに、表皮の写真を敷き詰めて重ねる */
.bike-sim .sim-layer.is-tex i {
	background: var(--tex) 0 0 / var(--tsz, 35%) auto repeat;
}

/* カラーを選択 */
.bike-sim .sim-panel {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	border: calc(2 * var(--u)) solid var(--sim_dark);
	border-radius: calc(10 * var(--u));
	background: #fff;
	overflow: hidden;
}
.bike-sim .sim-panel-head {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: calc(6 * var(--u));
	padding: 0 calc(14 * var(--u));
	height: calc(38 * var(--u));
	background: var(--sim_dark);
	color: #fff;
}
.bike-sim .sim-panel-head b {
	font-size: max(13px, calc(20 * var(--u)));
	font-weight: bold;
	letter-spacing: 0.04em;
}
.bike-sim .sim-panel-head span {
	font-size: max(11px, calc(16 * var(--u)));
	color: var(--sim_gray);
}
.bike-sim .sim-panel-body {
	flex: 1 1 auto;
	min-height: 0;
	/* 選択中の丸の枠（outline）が、スクロール領域の端で切れないように余白をとる */
	padding: 8px calc(10 * var(--u));
	overflow-y: auto;
}
.bike-sim .sim-sub {
	margin: 10px 0 6px;
	font-weight: bold;
	font-size: max(11px, calc(14 * var(--u)));
}
.bike-sim .sim-sub:first-child {
	margin-top: 0;
}
.bike-sim .sim-sws {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 10px 2px;
}
.bike-sim .sim-sw {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
	padding: 2px 0;
	border: 0;
	background: none;
	color: #000;
}
.bike-sim .sim-dot {
	position: relative;
	display: block;
	width: calc(38 * var(--u));
	height: calc(38 * var(--u));
	min-width: 28px;
	min-height: 28px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.2);
	box-sizing: border-box;
}
.bike-sim .sim-sw.is-on .sim-dot {
	outline: 3px solid var(--sim_dark);
	outline-offset: 2px;
}
/* 選択中の丸には、チェックマークを出す */
.bike-sim .sim-sw.is-on .sim-dot::after {
	content: '\2713';
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 18px;
	font-weight: bold;
	text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
}
.bike-sim .sim-code {
	max-width: 100%;
	margin-top: 3px;
	font-size: max(9px, calc(11 * var(--u)));
	line-height: 1.2;
	word-break: break-all;
	text-align: center;
}
/* 特別オプション色（資料の緑ラベル） */
.bike-sim .sim-sw.is-extra .sim-code {
	padding: 0 3px;
	background: #7bc96f;
}
.bike-sim .sim-dot-s {
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 4px;
	vertical-align: middle;
	background: #7bc96f;
	border-radius: 2px;
}
.bike-sim .sim-note {
	margin: 10px 0 0;
	font-size: max(11px, calc(12 * var(--u)));
}
.bike-sim .sim-radios {
	display: flex;
	gap: 16px;
	margin: 6px 0;
	font-size: max(12px, calc(14 * var(--u)));
}
.bike-sim .sim-radios label {
	cursor: pointer;
}

/* カスタマイズ仕様 */
.bike-sim .sim-spec {
	box-sizing: border-box;
	border: calc(2 * var(--u)) solid var(--sim_dark);
	border-radius: calc(10 * var(--u));
	background: #fff;
	overflow: hidden;
}
.bike-sim .sim-spec-head {
	background: var(--sim_dark);
	color: #fff;
	font-weight: bold;
	white-space: nowrap;
}
.bike-sim .sim-spec-l {
	font-size: max(10px, calc(12 * var(--u)));
	font-weight: bold;
}
.bike-sim .sim-spec-v {
	font-size: max(12px, calc(16 * var(--u)));
	font-weight: bold;
	color: var(--sim_orange);
}

/* 注意書き */
.bike-sim .sim-notice {
	box-sizing: border-box;
	border: calc(2 * var(--u)) solid var(--sim_dark);
	border-radius: calc(10 * var(--u));
	background: #fff;
}
.bike-sim .sim-notice-ttl {
	color: var(--sim_red);
	font-weight: bold;
}
.bike-sim .sim-notice-txt {
	color: #000;
}

/* 見積りボタン */
.bike-sim .sim-btn {
	display: block;
	position: relative;
	line-height: 0;
}
.bike-sim .sim-btn img {
	display: block;
	width: 100%;
	height: auto;
}
.bike-sim .sim-btn .sim-btn-on {
	position: absolute;
	inset: 0;
	opacity: 0;
}
.bike-sim .sim-btn:hover .sim-btn-on {
	opacity: 1;
}
.bike-sim .sim-btn:hover .sim-btn-off {
	opacity: 0;
}

/* ============ PC ============ */
.bike-sim .is-pc .sim-wrap {
	aspect-ratio: 1300 / 1050;
	border-radius: calc(20 * var(--u));
	background: var(--sim_bg_image) center / cover;
	overflow: hidden;
}
.bike-sim .is-pc .sim-hero {
	display: contents;
}
.bike-sim .is-pc .sim-ttl {
	position: absolute;
	left: calc(170 * var(--u));
	top: 0;
	width: calc(960 * var(--u));
	height: auto;
}
/* 「カスタムパーツ」は、いまの背景画像に文字が入っているので出さない。背景から消えたら display を block にする */
.bike-sim .is-pc .sim-lbl {
	display: none;
	position: absolute;
	left: calc(167 * var(--u));
	top: calc(233 * var(--u));
	font-size: calc(20 * var(--u));
	line-height: 1.2;
}
.bike-sim .is-pc .sim-nav {
	position: absolute;
	left: calc(170 * var(--u));
	top: calc(270 * var(--u));
	gap: calc(5 * var(--u));
}
.bike-sim .is-pc .sim-navbtn img {
	width: calc(100 * var(--u));
	height: calc(80 * var(--u));
}
.bike-sim .is-pc .sim-stage {
	position: absolute;
	left: calc(650 * var(--u));
	top: calc(var(--top) * var(--u));
}
.bike-sim .is-pc .sim-panel {
	position: absolute;
	left: calc(170 * var(--u));
	top: calc(367 * var(--u));
	width: calc(415 * var(--u));
	height: calc(385 * var(--u));
}
.bike-sim .is-pc .sim-spec {
	position: absolute;
	left: calc(170 * var(--u));
	top: calc(772 * var(--u));
	width: calc(960 * var(--u));
	height: calc(53 * var(--u));
	display: flex;
}
.bike-sim .is-pc .sim-spec-head {
	display: flex;
	align-items: center;
	padding: 0 calc(22 * var(--u));
	font-size: max(13px, calc(20 * var(--u)));
}
.bike-sim .is-pc .sim-spec-body {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: space-around;
	gap: calc(10 * var(--u));
	padding: 0 calc(16 * var(--u));
}
.bike-sim .is-pc .sim-spec-item {
	white-space: nowrap;
}
.bike-sim .is-pc .sim-notice {
	position: absolute;
	left: calc(170 * var(--u));
	top: calc(840 * var(--u));
	width: calc(960 * var(--u));
	height: calc(128 * var(--u));
	padding: calc(22 * var(--u)) calc(372 * var(--u)) 0 calc(24 * var(--u)); /* 右は見積りボタンの分をあける */
}
.bike-sim .is-pc .sim-notice-ttl {
	margin-bottom: calc(6 * var(--u));
	font-size: max(12px, calc(16 * var(--u)));
}
.bike-sim .is-pc .sim-notice-txt {
	font-size: max(9px, calc(12 * var(--u)));
	line-height: 1.7;
}
.bike-sim .is-pc .sim-btn {
	position: absolute;
	left: calc((170 + 960 - 344 - 30) * var(--u));
	top: calc((840 + (128 - 85) / 2) * var(--u));
	width: calc(344 * var(--u));
	height: calc(85 * var(--u));
}

/* ============ SP ============ */
.bike-sim .is-sp {
	margin-bottom: 40px;
}
.bike-sim .is-sp .sim-wrap {
	--u: calc(100cqw / 640);
	padding: 0 calc(32 * var(--u));
}
.bike-sim .is-sp .sim-hero {
	position: relative;
	height: calc(920 * var(--u));
	border-radius: calc(30 * var(--u));
	background: var(--sim_bg_image) center / cover;
	overflow: hidden;
}
.bike-sim .is-sp .sim-ttl {
	position: absolute;
	left: 50%;
	top: 0;
	width: calc(960 * var(--u));
	height: auto;
	transform: translateX(-50%);
}
.bike-sim .is-sp .sim-lbl {
	position: absolute;
	left: calc(36 * var(--u));
	top: calc(222 * var(--u));
	font-size: calc(30 * var(--u));
	line-height: 1.2;
}
.bike-sim .is-sp .sim-nav {
	position: absolute;
	left: calc(39 * var(--u));
	top: calc(270 * var(--u));
	gap: calc(6 * var(--u));
}
.bike-sim[data-model='x'] .is-sp .sim-nav {
	gap: calc(9 * var(--u));
}
.bike-sim .is-sp .sim-navbtn img {
	width: auto;
	height: calc(100 * var(--u));
}
.bike-sim .is-sp .sim-stage {
	position: absolute;
	left: 50%;
	bottom: 0;
	width: calc(640 * var(--u));
	transform: translateX(-50%);
}
.bike-sim .is-sp .sim-panel {
	margin-top: calc(15 * var(--u));
	border-radius: calc(14 * var(--u));
	border-width: calc(3 * var(--u));
}
.bike-sim .is-sp .sim-panel-head {
	height: calc(54 * var(--u));
	padding: 0 calc(20 * var(--u));
}
.bike-sim .is-sp .sim-panel-head b {
	font-size: max(14px, calc(24 * var(--u)));
}
.bike-sim .is-sp .sim-panel-head span {
	font-size: max(11px, calc(18 * var(--u)));
}
.bike-sim .is-sp .sim-panel-body {
	height: calc(300 * var(--u));
	padding: 8px calc(14 * var(--u));
}
.bike-sim .is-sp .sim-sub {
	font-size: max(12px, calc(20 * var(--u)));
}
.bike-sim .is-sp .sim-dot {
	width: calc(62 * var(--u));
	height: calc(62 * var(--u));
}
.bike-sim .is-sp .sim-code {
	font-size: max(9px, calc(16 * var(--u)));
}
.bike-sim .is-sp .sim-note,
.bike-sim .is-sp .sim-radios {
	font-size: max(12px, calc(20 * var(--u)));
}
.bike-sim .is-sp .sim-spec {
	margin-top: calc(15 * var(--u));
	border-radius: calc(14 * var(--u));
	border-width: calc(3 * var(--u));
}
.bike-sim .is-sp .sim-spec-head {
	padding: calc(13 * var(--u)) calc(20 * var(--u));
	font-size: max(14px, calc(24 * var(--u)));
}
/* 色の名前の長さが収まるなら2列、収まらないなら参考サイトのように1列・左揃えにする */
.bike-sim .is-sp .sim-spec-body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: calc(14 * var(--u)) calc(14 * var(--u));
	padding: calc(22 * var(--u)) calc(24 * var(--u));
}
.bike-sim .is-sp .sim-spec-l {
	font-size: max(11px, calc(18 * var(--u)));
}
.bike-sim .is-sp .sim-spec-v {
	font-size: max(12px, calc(22 * var(--u)));
}
.bike-sim .is-sp .sim-notice {
	margin-top: calc(16 * var(--u));
	padding: calc(20 * var(--u)) calc(20 * var(--u)) calc(22 * var(--u));
	border-radius: calc(14 * var(--u));
	border-width: calc(3 * var(--u));
}
.bike-sim .is-sp .sim-notice-ttl {
	margin-bottom: calc(8 * var(--u));
	font-size: max(12px, calc(22 * var(--u)));
}
.bike-sim .is-sp .sim-notice-txt {
	font-size: max(10px, calc(16 * var(--u)));
	line-height: 1.6;
}
.bike-sim .is-sp .sim-btn {
	margin: calc(16 * var(--u)) calc(-32 * var(--u)) 0;
	width: calc(640 * var(--u));
}

/* ============ トップページの簡易シミュレーター（PCのみ） ============ */
/* 幅1300px・高さ610px の枠を基準に、各サイズを --u の倍率で指定している（座標は customize.js の TOP_BIKES） */
.bike-sim .top-sim {
	container-type: inline-size;
	max-width: 1300px;
	margin: 0 auto;
}
.bike-sim .top-wrap {
	--u: calc(100cqw / 1300);
	position: relative;
	width: 100%;
	aspect-ratio: 1300 / 610;
	overflow: hidden;
}
.bike-sim .top-wrap img {
	max-width: none;
	border: 0;
}
/* 背景は幅2000pxの画像で、中央の1300pxにだけ絵がある */
.bike-sim .top-bg {
	position: absolute;
	left: calc(-350 * var(--u));
	top: 0;
	width: calc(2000 * var(--u));
	height: auto;
}
.bike-sim .top-bike {
	position: absolute;
	left: calc(var(--l) * var(--u));
	top: calc(var(--t) * var(--u));
	width: calc(var(--w) * var(--u));
	height: calc(var(--h) * var(--u));
}
.bike-sim .top-dots {
	position: absolute;
	left: calc(var(--l) * var(--u));
	top: calc(var(--t) * var(--u));
	display: flex;
	flex-direction: column;
	gap: calc(11 * var(--u));
}
.bike-sim .top-dot {
	display: block;
	box-sizing: border-box;
	width: calc(36 * var(--u));
	height: calc(36 * var(--u));
	min-width: 20px;
	min-height: 20px;
	padding: 0;
	border: calc(2 * var(--u)) solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 calc(4 * var(--u)) rgba(0, 0, 0, 0.25);
	transition: transform 0.15s;
}
.bike-sim .top-dot:hover {
	transform: scale(1.1);
}
/* 矢印は、選んだ色の丸に向く */
.bike-sim .top-arrow {
	position: absolute;
	left: calc(var(--l) * var(--u));
	top: calc(var(--t) * var(--u));
	width: calc(4 * var(--u));
	height: calc(8 * var(--u));
	min-width: 4px;
	min-height: 8px;
}
/* スマホ（html に sp が付く）では、トップページの簡易シミュレーターを出さない（スマホは画像だけを入れるため） */
html.sp .bike-sim[data-model='top'] {
	display: none;
}
