/*
 * トップページ（[machinavi_home]）。list.css（カード・検索欄）の上に重ねる。
 * ジャンル色：食べる #f08300 / お買いもの #ee6d8a / キレイになる #2ea7e0 / 暮らす #b5891c / 求人 #13a596
 */
.mn-home-wrap {
	background: #fff;
}
.mn-home {
	--mn-ink: #1d1d1f;
	--mn-sub: #6e6e73;
	--mn-fill: #f5f5f7;
	color: var(--mn-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
	-webkit-font-smoothing: antialiased;
}
.mn-home *,
.mn-home *::before,
.mn-home *::after {
	box-sizing: border-box;
}
.mn-home p,
.mn-home h1,
.mn-home h2,
.mn-home h3,
.mn-home ul {
	margin: 0;
	padding: 0;
}
.mn-home ul {
	list-style: none;
}

/* ヒーロー：ジャンル色のにじみを背景に、大きな見出しと検索欄 */
.mn-hero {
	position: relative;
	overflow: hidden;
	margin: 24px auto 0;
	max-width: 1180px;
	border-radius: 32px;
	background:
		radial-gradient(40% 60% at 10% 20%, rgba(240, 131, 0, .22), transparent 70%),
		radial-gradient(35% 55% at 35% 95%, rgba(238, 109, 138, .2), transparent 70%),
		radial-gradient(40% 60% at 70% 10%, rgba(46, 167, 224, .22), transparent 70%),
		radial-gradient(35% 55% at 95% 80%, rgba(19, 165, 150, .2), transparent 70%),
		radial-gradient(30% 50% at 55% 55%, rgba(181, 137, 28, .14), transparent 70%),
		#fbfaf7;
}
.mn-hero__inner {
	max-width: 880px;
	margin: 0 auto;
	padding: 72px 24px 64px;
	text-align: center;
}
.mn-hero__eyebrow {
	color: var(--mn-sub);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .12em;
}
.mn-hero__title {
	margin: 10px 0 14px;
	color: var(--mn-ink);
	font-size: 52px;
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: .01em;
}
.mn-hero__lead {
	color: #424245;
	font-size: 18px;
	line-height: 1.7;
}
.mn-hero__search {
	display: flex;
	gap: 10px;
	max-width: 600px;
	margin: 32px auto 0;
	padding: 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .85);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	box-shadow: 0 2px 6px rgba(0, 0, 0, .05), 0 12px 32px rgba(0, 0, 0, .1);
}
.mn-hero__search .mn-search {
	flex: 1;
}
.mn-hero__search .mn-search input {
	height: 48px;
	background: transparent;
	font-size: 16px;
}
.mn-hero__search .mn-search input:focus {
	background: transparent;
	box-shadow: none;
}
.mn-hero__go {
	flex: 0 0 auto;
	height: 48px;
	padding: 0 26px;
	border: 0;
	border-radius: 999px;
	background: var(--mn-ink);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}
.mn-hero__go:hover {
	background: #424245;
}
.mn-hero__go:active {
	transform: scale(.97);
}

/* ジャンルのタイル */
.mn-tiles {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
	max-width: 1180px;
	margin: 28px auto 0;
}
.mn-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-height: 168px;
	padding: 22px 20px;
	overflow: hidden;
	border-radius: 22px;
	background: color-mix(in srgb, var(--mn-genre) 11%, #fff);
	color: var(--mn-ink);
	text-decoration: none;
	transition: transform .35s cubic-bezier(.32, .72, 0, 1), box-shadow .35s ease, background-color .3s ease;
}
.mn-tile:hover {
	transform: translateY(-4px);
	background: color-mix(in srgb, var(--mn-genre) 17%, #fff);
	box-shadow: 0 16px 36px color-mix(in srgb, var(--mn-genre) 25%, transparent);
	color: var(--mn-ink);
	text-decoration: none;
}
.mn-tile:active {
	transform: scale(.98);
}
.mn-tile__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 14px;
	border-radius: 14px;
	background: var(--mn-genre);
	color: #fff;
}
.mn-tile__icon svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.mn-tile__en {
	color: color-mix(in srgb, var(--mn-genre) 80%, #000);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
}
.mn-tile__name {
	font-size: 21px;
	font-weight: 800;
	line-height: 1.3;
}
.mn-tile__desc {
	color: #424245;
	font-size: 12.5px;
	line-height: 1.6;
}
.mn-tile::after {
	content: "";
	position: absolute;
	top: 26px;
	right: 22px;
	width: 9px;
	height: 9px;
	border-top: 2px solid color-mix(in srgb, var(--mn-genre) 70%, #000);
	border-right: 2px solid color-mix(in srgb, var(--mn-genre) 70%, #000);
	opacity: .5;
	transform: rotate(45deg);
	transition: transform .3s ease, opacity .3s ease;
}
.mn-tile:hover::after {
	opacity: 1;
	transform: translateX(3px) rotate(45deg);
}

/* セクション見出し（おすすめ・リンク集） */
.mn-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}
.mn-section-head__eyebrow {
	color: var(--mn-sub);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .14em;
}
.mn-section-head__title {
	margin-top: 4px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--mn-ink);
	font-size: 32px;
	font-weight: 800;
	line-height: 1.25;
}

/* おすすめ：横スクロールの大きなカード */
.mn-feature {
	max-width: 1180px;
	margin: 64px auto 0;
}
.mn-feature__nav {
	display: flex;
	gap: 10px;
}
.mn-round {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--mn-fill);
	color: var(--mn-ink);
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}
.mn-round:hover {
	background: #e8e8ed;
}
.mn-round:active {
	transform: scale(.94);
}
.mn-round svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.mn-feature__track {
	display: flex;
	gap: 20px;
	margin: 0 -24px;
	padding: 6px 24px 28px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 24px;
	scrollbar-width: none;
}
.mn-feature__track::-webkit-scrollbar {
	display: none;
}
.mn-feature__item {
	flex: 0 0 360px;
	scroll-snap-align: start;
}
.mn-feature__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px rgba(0, 0, 0, .08);
	color: inherit;
	text-decoration: none;
	transition: transform .35s cubic-bezier(.32, .72, 0, 1), box-shadow .35s ease;
}
.mn-feature__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 20px 44px rgba(0, 0, 0, .13);
	color: inherit;
	text-decoration: none;
}
.mn-feature__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--mn-fill);
}
.mn-home .mn-feature__media img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	transition: transform .6s cubic-bezier(.32, .72, 0, 1);
}
.mn-feature__card:hover .mn-feature__media img {
	transform: scale(1.04);
}
.mn-feature__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 22px 22px;
}
.mn-feature__label {
	align-self: flex-start;
	padding: 3px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--mn-genre) 12%, #fff);
	color: color-mix(in srgb, var(--mn-genre) 75%, #000);
	font-size: 12px;
	font-weight: 600;
}
.mn-feature__name {
	font-size: 20px;
	font-weight: 800;
	line-height: 1.35;
}
.mn-feature__text {
	color: #424245;
	font-size: 14px;
	line-height: 1.75;
}

/* お店をさがす（list.css の一覧をトップ用に） */
.mn-home .mn-list {
	max-width: 1180px;
	padding-top: 56px;
	padding-bottom: 24px;
}
.mn-home .mn-list__title {
	font-size: 32px;
	font-weight: 800;
}
.mn-home .mn-list__eyebrow {
	color: var(--mn-sub);
}

/* リンク集 */
.mn-links {
	max-width: 1180px;
	margin: 48px auto 0;
}
.mn-links__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}
.mn-links__group {
	padding: 20px;
	border-radius: 20px;
	background: var(--mn-fill);
}
.mn-links__label {
	margin-bottom: 10px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--mn-sub);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
}
.mn-links__group li + li {
	border-top: 1px solid rgba(0, 0, 0, .06);
}
.mn-links__group a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	color: var(--mn-ink);
	text-decoration: none;
}
.mn-links__group a:hover .mn-links__name {
	color: #0066cc;
}
.mn-links__group img {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	object-fit: cover;
	background: #fff;
}
.mn-links__name {
	display: block;
	font-size: 15px;
	font-weight: 600;
	transition: color .2s ease;
}
.mn-links__text {
	display: block;
	color: var(--mn-sub);
	font-size: 12.5px;
}

/* 協賛・関連サイト */
.mn-partners {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 16px;
	max-width: 1180px;
	margin: 48px auto 80px;
}
.mn-partner {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 20px;
	background: #fff;
}
.mn-partner__main {
	display: block;
}
.mn-partner__main img {
	display: block;
	max-width: 100%;
	max-height: 90px;
	margin: 0 auto;
	object-fit: contain;
}
.mn-partner__name {
	font-size: 17px;
	font-weight: 700;
}
.mn-partner__text {
	color: #424245;
	font-size: 13px;
	line-height: 1.7;
}
.mn-partner__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.mn-partner__links a {
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--mn-fill);
	color: #0066cc;
	font-size: 13px;
	text-decoration: none;
}
.mn-partner__links a:hover {
	background: #e8e8ed;
}

@media screen and (max-width: 1220px) {
	.mn-hero,
	.mn-tiles,
	.mn-feature,
	.mn-links,
	.mn-partners,
	.mn-home .mn-list {
		margin-right: 20px;
		margin-left: 20px;
	}
	.mn-home .mn-list {
		max-width: none;
	}
}
@media screen and (max-width: 900px) {
	.mn-tiles {
		grid-template-columns: repeat(3, 1fr);
	}
	.mn-partners {
		grid-template-columns: 1fr;
	}
}
@media screen and (max-width: 768px) {
	.mn-hero,
	.mn-tiles,
	.mn-feature,
	.mn-links,
	.mn-partners {
		margin-right: 16px;
		margin-left: 16px;
	}
	.mn-home .mn-list {
		margin: 0;
	}
	.mn-hero {
		margin-top: 12px;
		border-radius: 24px;
	}
	.mn-hero__inner {
		padding: 44px 18px 36px;
	}
	.mn-hero__title {
		font-size: 34px;
	}
	.mn-hero__lead {
		font-size: 15px;
	}
	.mn-hero__go {
		padding: 0 18px;
	}
	/* タイルは横にスクロール */
	.mn-tiles {
		display: flex;
		gap: 12px;
		margin-right: 0;
		margin-left: 0;
		padding: 0 16px 6px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding: 0 16px;
		scrollbar-width: none;
	}
	.mn-tiles::-webkit-scrollbar {
		display: none;
	}
	.mn-tile {
		flex: 0 0 150px;
		min-height: 150px;
		padding: 18px 16px;
		scroll-snap-align: start;
	}
	.mn-tile__desc {
		display: none;
	}
	.mn-feature {
		margin-top: 44px;
	}
	.mn-feature__nav {
		display: none;
	}
	.mn-feature__track {
		margin: 0 -16px;
		padding: 6px 16px 24px;
		scroll-padding: 0 16px;
	}
	.mn-feature__item {
		flex-basis: 80%;
	}
	.mn-section-head__title,
	.mn-home .mn-list__title {
		font-size: 26px;
	}
	.mn-partners {
		margin-bottom: 110px;
	}
}
