/* クルマの適合検索（View/Compatibility/index.ctp）。トップの「車種から探す」と同じ部品の見た目にそろえる */

.sl-compat,
.sl-compat * {
	box-sizing: border-box;
}

.sl-compat {
	padding-bottom: 80px;
	color: #1d1d1f;
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

.sl-compat p {
	margin: 0;
}

.sl-compat a {
	color: #0066cc;
	text-decoration: none;
}

.sl-compat a:hover {
	text-decoration: underline;
}

/* 車両の種類の切り替え。クルマとバイクは別ページだが、白い丸が滑って移るように見せる */
.sl-compat__tabs {
	position: relative;
	display: inline-grid;
	grid-template-columns: 1fr 1fr;
	margin-bottom: 20px;
	padding: 3px;
	border-radius: 999px;
	background: #f5f5f7;
	view-transition-name: sl-compat-tabs;
}

.sl-compat__pill {
	position: absolute;
	top: 3px;
	bottom: 3px;
	left: 3px;
	width: calc(50% - 3px);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
	view-transition-name: sl-compat-pill;
}

.sl-compat__tabs--bike .sl-compat__pill {
	transform: translateX(100%);
}

.sl-compat a.sl-compat__tab {
	position: relative;
	padding: 8px 28px;
	border-radius: 999px;
	color: #6e6e73;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
}

.sl-compat a.sl-compat__tab:hover {
	color: #1d1d1f;
}

.sl-compat a.sl-compat__tab--active {
	color: #1d1d1f;
}

/* 検索 */
.sl-compat__card {
	max-width: 760px;
	view-transition-name: sl-compat-card;
	padding: 28px;
	border: 1px solid #d2d2d7;
	border-radius: 20px;
	background: #fff;
}

.sl-compat__form {
	margin: 0;
}

.sl-compat__label {
	display: block;
	margin-bottom: 6px;
	color: #1d1d1f;
	font-size: 13px;
	font-weight: 600;
}

.sl-compat__row {
	display: flex;
	gap: 8px;
}

.sl-compat__input {
	width: 100%;
	min-width: 0;
	height: 44px;
	padding: 0 14px;
	border: 1px solid #d2d2d7;
	border-radius: 10px;
	background: #fff;
	color: #1d1d1f;
	font: inherit;
	font-size: 16px;
}

.sl-compat__input:focus {
	border-color: #0071e3;
	outline: none;
	box-shadow: 0 0 0 4px rgba(0, 113, 227, .16);
}

.sl-compat__btn {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: #0071e3;
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.sl-compat__btn:hover {
	background: #0077ed;
}

.sl-compat__btn[disabled] {
	background: #d2d2d7;
	cursor: default;
}

.sl-compat__or {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 18px 0 !important;
	color: #86868b;
	font-size: 12px;
}

.sl-compat__or::before,
.sl-compat__or::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: #e8e8ed;
}

.sl-compat__notice {
	margin-top: 20px !important;
	padding-top: 16px;
	border-top: 1px solid #e8e8ed;
	color: #6e6e73;
	font-size: 13px;
}

.sl-compat__notice-link {
	padding: 0;
	border: 0;
	background: none;
	color: #0066cc;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.sl-compat__notice-link:hover {
	text-decoration: underline;
}

/* 検索結果 */
.sl-compat__results,
.sl-compat__empty {
	margin-top: 48px;
	scroll-margin-top: 88px;
}

.sl-compat__count {
	margin-bottom: 20px !important;
	color: #6e6e73;
	font-size: 14px;
}

.sl-compat__count strong {
	color: #1d1d1f;
	font-size: 18px;
}

.sl-compat__result + .sl-compat__result {
	margin-top: 32px;
}

.sl-compat__model {
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	background: none;
	color: #1d1d1f;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
}

.sl-compat__table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.sl-compat__table {
	width: 100%;
	border-collapse: collapse;
	border-top: 1px solid #d2d2d7;
	font-size: 14px;
}

.sl-compat__table th {
	padding: 10px 12px;
	border-bottom: 1px solid #d2d2d7;
	background: #f5f5f7;
	color: #6e6e73;
	font-size: 12px;
	font-weight: 600;
	text-align: left;
	white-space: nowrap;
}

.sl-compat__table td {
	padding: 12px;
	border-bottom: 1px solid #e8e8ed;
	vertical-align: top;
}

.sl-compat__table td:first-child,
.sl-compat__table td:nth-child(2) {
	white-space: nowrap;
}

.sl-compat__table tr:hover td {
	background: #fafafc;
}

.sl-compat__detail {
	width: 1%;
	text-align: right;
	white-space: nowrap;
}

.sl-compat__detail a {
	display: inline-flex;
	align-items: center;
	padding: 4px 14px;
	border: 1px solid #d2d2d7;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
}

.sl-compat__detail a:hover {
	border-color: #0071e3;
	text-decoration: none;
}

.sl-compat__empty {
	max-width: 760px;
	padding: 24px 28px;
	border-radius: 16px;
	background: #f5f5f7;
	color: #515154;
	font-size: 14px;
}

.sl-compat__empty-title {
	margin-bottom: 6px !important;
	color: #1d1d1f;
	font-size: 16px;
	font-weight: 700;
}

.sl-compat__empty-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin-top: 12px !important;
	font-weight: 600;
}

/* 更新履歴 */
.sl-compat__history {
	max-width: 760px;
	margin-top: 56px;
	font-size: 13px;
}

/* 注意事項 */
.sl-compat__modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, .5);
}

.sl-compat__modal[hidden] {
	display: none;
}

.sl-compat__modal-box {
	width: 100%;
	max-width: 640px;
	max-height: 80vh;
	overflow-y: auto;
	padding: 32px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
	font-size: 14px;
}

.sl-compat__modal-close {
	display: block;
	margin: 24px auto 0;
	padding: 10px 32px;
	border: 0;
	border-radius: 999px;
	background: #f5f5f7;
	color: #1d1d1f;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

@media screen and (max-width: 768px) {
	.sl-compat__tabs {
		display: grid;
	}

	.sl-compat a.sl-compat__tab {
		padding: 8px 10px;
		font-size: 13px;
	}

	.sl-compat__card {
		padding: 18px 16px;
		border-radius: 16px;
	}

	.sl-compat__row--select {
		flex-wrap: wrap;
	}

	.sl-compat__row--select select {
		flex: 1 1 calc(50% - 4px);
	}

	.sl-compat__row--select .sl-compat__btn {
		flex: 1 1 100%;
	}

	.sl-compat__model {
		font-size: 17px;
	}

	.sl-compat__table {
		font-size: 13px;
	}

	.sl-compat__modal-box {
		padding: 24px 20px;
	}
}

/* バイク：メーカーから探す */
.sl-compat__makers {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sl-compat__makers li {
	margin: 0;
	padding: 0;
	list-style: none !important;
}

.sl-compat__makers li::before {
	content: none !important;
}

.sl-compat a.sl-compat__maker {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 6px 12px;
	border: 1px solid #d2d2d7;
	border-radius: 10px;
	color: #1d1d1f;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	line-height: 1.3;
}

.sl-compat a.sl-compat__maker:hover {
	border-color: #0071e3;
	color: #0066cc;
	text-decoration: none;
}

/* バイク：検索結果 */
.sl-compat__table--bike td {
	vertical-align: middle;
}

.sl-compat__table--bike td[rowspan] {
	background: #fff;
	vertical-align: top;
	font-weight: 600;
}

.sl-compat__table tr:hover td[rowspan] {
	background: #fff;
}

.sl-compat .highlight {
	background: #fff3a3;
	font-size: inherit;
}

.sl-compat__pager {
	margin-top: 24px;
	text-align: center;
}

.sl-compat__pager .pagination {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sl-compat__pager .pagination > li {
	display: block;
}

.sl-compat__pager .pagination > li > a,
.sl-compat__pager .pagination > li > span {
	display: inline-flex;
	float: none;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	margin: 0;
	padding: 0 10px;
	border: 1px solid #d2d2d7;
	border-radius: 999px;
	background: #fff;
	color: #1d1d1f;
	font-size: 14px;
}

.sl-compat__pager .pagination > .active > a {
	border-color: #1d1d1f;
	background: #1d1d1f;
	color: #fff;
}

.sl-compat__pager .pagination > .disabled > a {
	color: #c7c7cc;
}

.sl-compat__back {
	margin-top: 32px !important;
	font-size: 14px;
}

@media screen and (max-width: 768px) {
	.sl-compat__makers {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ページの移り変わり（View Transitions）。対応していないブラウザは普通のページ移動になる */
@view-transition {
	navigation: auto;
}

::view-transition-group(*) {
	animation-duration: .28s;
	animation-timing-function: cubic-bezier(.2, .8, .2, 1);
}

::view-transition-old(root),
::view-transition-new(root) {
	animation-duration: .18s;
}

::view-transition-old(sl-compat-card),
::view-transition-new(sl-compat-card) {
	height: 100%;
	object-fit: none;
	object-position: top;
}

@media (prefers-reduced-motion: reduce) {
	@view-transition {
		navigation: none;
	}
}

/* バイク：車種ごとの適合（View/CompatibilityBike/view.ctp） */
.sl-compat--detail .sl-compat__model {
	margin-top: 40px;
}

.sl-compat--detail .sl-compat__tabs + .sl-compat__model {
	margin-top: 8px;
}

.sl-compat__spec {
	width: 100%;
	max-width: 760px;
	border-collapse: collapse;
	border-top: 1px solid #d2d2d7;
	font-size: 14px;
}

.sl-compat__spec th,
.sl-compat__spec td {
	padding: 12px;
	border-bottom: 1px solid #e8e8ed;
	text-align: left;
}

.sl-compat__spec th {
	width: 30%;
	background: #f5f5f7;
	color: #6e6e73;
	font-size: 12px;
	font-weight: 600;
}

.sl-compat__legend {
	display: grid;
	gap: 4px;
	margin-bottom: 16px;
	padding: 14px 18px;
	border-radius: 12px;
	background: #f5f5f7;
	color: #515154;
	font-size: 13px;
}

.sl-compat__legend .small {
	font-size: 13px;
}

.sl-compat--detail .bike-datas {
	width: 100%;
	margin-bottom: 24px;
	border-collapse: collapse;
	border: 0;
	border-top: 1px solid #d2d2d7;
	font-size: 14px;
}

.sl-compat--detail .bike-datas th,
.sl-compat--detail .bike-datas td {
	height: 50px;
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid #e8e8ed;
	vertical-align: middle;
}

.sl-compat--detail .bike-datas th {
	background: #f5f5f7;
	color: #1d1d1f;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
}

.sl-compat--detail .bike-datas .table-title {
	letter-spacing: .5em;
	writing-mode: vertical-rl;
}

.sl-compat--detail .bike-datas p {
	margin: 0;
	font-weight: 600;
}

.sl-compat--detail .bike-datas .btn-primary {
	display: inline-flex;
	align-items: center;
	margin-top: 6px;
	padding: 4px 14px;
	border: 1px solid #0071e3;
	border-radius: 999px;
	background: #fff;
	color: #0066cc;
	font-size: 13px;
	font-weight: 600;
}

.sl-compat--detail .bike-datas .btn-primary:hover {
	background: #0071e3;
	color: #fff;
	text-decoration: none;
}

.sl-compat--detail .panel {
	max-width: 760px;
	border-radius: 12px;
	overflow: hidden;
}

.sl-compat__note {
	color: #86868b;
	font-size: 12px;
	text-align: right;
}

@media screen and (max-width: 768px) {
	.sl-compat--detail .bike-datas {
		font-size: 13px;
	}

	.sl-compat--detail .bike-datas th,
	.sl-compat--detail .bike-datas td {
		padding: 8px 6px;
	}
}
