/*
 * Benchmark homepage variant.
 * Closely follows the information hierarchy of large comparison services,
 * while using only Korenisuru branding, copy, content and assets.
 */

.ks-home-variant-mybest {
	background: #fff;
}

.ks-home-variant-mybest .ks-header {
	position: relative;
	background: #fff;
	border-bottom: 1px solid #ededed;
}

.ks-home-variant-mybest .ks-header-inner {
	min-height: 64px;
	position: relative;
	justify-content: center;
}

.ks-home-variant-mybest .ks-header-inner::before {
	content: "商品比較サービス";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	font-size: .75rem;
	font-weight: 700;
	color: #777;
}

.ks-home-variant-mybest .ks-brand {
	font-size: 1.35rem;
	font-weight: 900;
	letter-spacing: -.04em;
	color: #111;
}

.ks-home-variant-mybest .ks-nav {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	gap: 16px;
}

.ks-home-variant-mybest .ks-nav a {
	font-size: .76rem;
	font-weight: 700;
	color: #555;
}

.ks-home-variant-mybest .ks-nav a:nth-child(2),
.ks-home-variant-mybest .ks-nav a:nth-child(3) {
	display: none;
}

.ks-mb-shell,
.ks-mb-content {
	width: min(100% - 40px, 1080px);
	margin-inline: auto;
}

.ks-mb-hero {
	padding: 72px 0 46px;
	background: #fff;
	text-align: center;
}

.ks-mb-hero-label {
	margin: 0 0 14px;
	font-size: .86rem;
	font-weight: 700;
	color: #6a6a6a;
}

.ks-mb-hero h1 {
	margin: 0;
	font-size: clamp(3rem, 7vw, 5.7rem);
	line-height: 1.03;
	letter-spacing: -.065em;
	font-weight: 900;
	color: #111;
}

.ks-mb-mobile-break {
	display: none;
}

.ks-mb-hero-copy {
	max-width: 620px;
	margin: 22px auto 0;
	font-size: 1rem;
	line-height: 1.8;
	color: #666;
}

.ks-mb-search {
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr) auto;
	align-items: center;
	max-width: 680px;
	margin: 30px auto 0;
	padding: 7px 8px 7px 18px;
	border: 1px solid #d9d9d9;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0,0,0,.03);
}

.ks-mb-search-icon {
	width: 16px;
	height: 16px;
	border: 2px solid #8a8a8a;
	border-radius: 50%;
	position: relative;
}

.ks-mb-search-icon::after {
	content: "";
	position: absolute;
	width: 7px;
	height: 2px;
	background: #8a8a8a;
	right: -5px;
	bottom: -2px;
	transform: rotate(45deg);
	border-radius: 2px;
}

.ks-mb-search input {
	width: 100%;
	border: 0;
	outline: 0;
	padding: 10px 12px;
	background: transparent;
	font-size: .95rem;
	color: #222;
}

.ks-mb-search input::placeholder {
	color: #aaa;
}

.ks-mb-search button {
	border: 0;
	border-radius: 6px;
	padding: 11px 20px;
	background: #14a34a;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.ks-mb-category-nav {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 22px;
}

.ks-mb-category-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 8px 15px;
	border: 1px solid #e4e4e4;
	border-radius: 999px;
	background: #fff;
	font-size: .82rem;
	font-weight: 600;
	color: #444;
}

.ks-mb-category-nav a:hover {
	border-color: #14a34a;
	color: #11883f;
}

.ks-mb-recommendations {
	padding: 52px 0 68px;
	background: #f7f7f7;
	border-top: 1px solid #efefef;
}

.ks-mb-section-head {
	margin-bottom: 24px;
}

.ks-mb-section-head p {
	margin: 0 0 6px;
	font-size: .82rem;
	font-weight: 700;
	color: #14a34a;
}

.ks-mb-section-head h2 {
	margin: 0;
	font-size: clamp(1.7rem, 3vw, 2.35rem);
	line-height: 1.2;
	letter-spacing: -.045em;
	color: #151515;
}

.ks-mb-card-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.ks-mb-card {
	display: block;
	min-width: 0;
	border: 1px solid #e3e3e3;
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0,0,0,.03);
	transition: box-shadow .18s ease, transform .18s ease;
}

.ks-mb-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0,0,0,.07);
}

.ks-mb-card-visual {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	padding: 22px 22px 18px;
	background: #fafafa;
}

.ks-mb-card-visual > div {
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: 7px;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}

.ks-mb-card-visual img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.ks-mb-img-jackery img,
.ks-mb-img-iodata img {
	mix-blend-mode: multiply;
}

.ks-mb-img-jackery img {
	transform: scale(1.06);
}

.ks-mb-img-iodata img {
	transform: scale(1.04);
}

.ks-mb-card-body {
	padding: 22px 24px 24px;
}

.ks-mb-card-category {
	margin: 0 0 8px;
	font-size: .75rem;
	font-weight: 700;
	color: #777;
}

.ks-mb-card h3 {
	margin: 0;
	font-size: 1.35rem;
	line-height: 1.45;
	letter-spacing: -.025em;
	color: #111;
}

.ks-mb-card-body > p:not(.ks-mb-card-category) {
	margin: 12px 0 0;
	font-size: .9rem;
	line-height: 1.75;
	color: #666;
}

.ks-mb-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #ededed;
}

.ks-mb-card-meta span {
	font-size: .75rem;
	font-weight: 600;
	color: #888;
}

.ks-mb-card-meta strong {
	font-size: .82rem;
	font-weight: 700;
	color: #159447;
}

.ks-mb-categories {
	padding: 56px 0 78px;
	background: #fff;
}

.ks-mb-section-head-small {
	margin-bottom: 18px;
}

.ks-mb-section-head-small h2 {
	font-size: 1.65rem;
}

.ks-mb-category-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0,1fr));
	border-top: 1px solid #e8e8e8;
}

.ks-mb-category-list a {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto 18px;
	align-items: center;
	gap: 16px;
	min-height: 72px;
	padding: 0 18px 0 4px;
	border-bottom: 1px solid #e8e8e8;
	color: #222;
}

.ks-mb-category-list a:nth-child(odd) {
	margin-right: 22px;
}

.ks-mb-category-list span {
	font-weight: 700;
}

.ks-mb-category-list small {
	font-size: .76rem;
	color: #888;
}

.ks-mb-category-list b {
	font-size: 1.5rem;
	font-weight: 400;
	color: #aaa;
}

.ks-home-variant-mybest .ks-footer {
	background: #f6f6f6;
	border-top: 1px solid #e9e9e9;
}

@media (max-width: 760px) {
	.ks-home-variant-mybest .ks-header-inner {
		min-height: 56px;
		justify-content: flex-start;
	}

	.ks-home-variant-mybest .ks-header-inner::before,
	.ks-home-variant-mybest .ks-nav {
		display: none;
	}

	.ks-home-variant-mybest .ks-brand {
		font-size: 1.25rem;
	}

	.ks-mb-shell,
	.ks-mb-content {
		width: min(100% - 28px, 1080px);
	}

	.ks-mb-hero {
		padding: 48px 0 34px;
	}

	.ks-mb-hero h1 {
		font-size: 2.7rem;
	}

	.ks-mb-mobile-break {
		display: block;
	}

	.ks-mb-hero-copy {
		margin-top: 16px;
		font-size: .91rem;
		line-height: 1.75;
	}

	.ks-mb-search {
		margin-top: 22px;
		padding-left: 14px;
	}

	.ks-mb-search button {
		padding-inline: 16px;
	}

	.ks-mb-category-nav {
		justify-content: flex-start;
		overflow-x: auto;
		flex-wrap: nowrap;
		padding-bottom: 2px;
		scrollbar-width: none;
	}

	.ks-mb-category-nav::-webkit-scrollbar {
		display: none;
	}

	.ks-mb-category-nav a {
		white-space: nowrap;
	}

	.ks-mb-recommendations {
		padding: 38px 0 52px;
	}

	.ks-mb-card-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.ks-mb-card-visual {
		padding: 16px;
		gap: 6px;
	}

	.ks-mb-card-body {
		padding: 18px 18px 20px;
	}

	.ks-mb-card h3 {
		font-size: 1.18rem;
	}

	.ks-mb-categories {
		padding: 42px 0 62px;
	}

	.ks-mb-category-list {
		grid-template-columns: 1fr;
	}

	.ks-mb-category-list a:nth-child(odd) {
		margin-right: 0;
	}
}

@media (max-width: 420px) {
	.ks-mb-hero-label {
		font-size: .78rem;
	}

	.ks-mb-hero h1 {
		font-size: 2.45rem;
	}

	.ks-mb-search {
		grid-template-columns: 22px minmax(0,1fr);
		padding-right: 12px;
	}

	.ks-mb-search button {
		display: none;
	}

	.ks-mb-card-visual > div {
		padding: 5px;
	}
}
