@charset "UTF-8";

/*
 * C7-17 Homepage Discovery Experience v1.
 * LOCAL CANDIDATE ONLY.
 */

:root {
	--nidomi-home-ink: #17191d;
	--nidomi-home-paper: #f4efe6;
	--nidomi-home-paper-deep: #e8dece;
	--nidomi-home-accent: #8a263f;
	--nidomi-home-accent-bright: #b74359;
	--nidomi-home-gold: #b9985b;
	--nidomi-home-line: rgba(23, 25, 29, 0.18);
	--nidomi-home-soft-line: rgba(23, 25, 29, 0.09);
	--nidomi-home-serif: "Yu Mincho", "游明朝", "Hiragino Mincho ProN", serif;
	--nidomi-home-sans: "Hiragino Sans", "Yu Gothic", "游ゴシック", sans-serif;
}

.nidomi-home {
	position: relative;
	margin: -8px 0 0;
	color: var(--nidomi-home-ink);
	font-family: var(--nidomi-home-sans);
}

.nidomi-home::before {
	position: fixed;
	z-index: -1;
	inset: 0;
	background:
		radial-gradient(circle at 78% 12%, rgba(138, 38, 63, 0.08), transparent 31rem),
		linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35)),
		repeating-linear-gradient(0deg, transparent 0 7px, rgba(23, 25, 29, 0.018) 7px 8px),
		var(--nidomi-home-paper);
	content: "";
}

.nidomi-home a {
	text-underline-offset: 0.22em;
}

.nidomi-home-hero {
	position: relative;
	display: grid;
	min-height: clamp(520px, 69vh, 720px);
	grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.78fr);
	align-items: center;
	gap: clamp(32px, 7vw, 96px);
	overflow: hidden;
	margin-bottom: clamp(76px, 11vw, 138px);
	padding: clamp(56px, 9vw, 118px) clamp(24px, 6vw, 76px);
	border: 1px solid var(--nidomi-home-line);
	background: var(--nidomi-home-paper);
	box-shadow: 0 30px 90px rgba(42, 29, 24, 0.09);
}

.nidomi-home-hero::before,
.nidomi-home-hero::after {
	position: absolute;
	content: "";
}

.nidomi-home-hero::before {
	width: 1px;
	top: 0;
	bottom: 0;
	left: clamp(16px, 3vw, 42px);
	background: var(--nidomi-home-line);
}

.nidomi-home-hero::after {
	width: 42%;
	height: 8px;
	right: 0;
	bottom: 0;
	background: var(--nidomi-home-accent);
}

.nidomi-home-hero__copy {
	position: relative;
	z-index: 2;
	max-width: 760px;
}

.nidomi-home-eyebrow,
.nidomi-home-section__number,
.nidomi-home-daily__label {
	margin: 0;
	color: var(--nidomi-home-accent);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.19em;
	line-height: 1.5;
}

.nidomi-home-hero h1 {
	margin: clamp(18px, 3vw, 30px) 0 0;
	font-family: var(--nidomi-home-serif);
	font-size: clamp(2.35rem, 5.2vw, 4.6rem);
	font-weight: 500;
	letter-spacing: -0.035em;
	line-height: 1.18;
}

.nidomi-home-hero__lead {
	max-width: 630px;
	margin: clamp(28px, 4vw, 42px) 0 0;
	font-size: clamp(1rem, 1.6vw, 1.16rem);
	line-height: 2;
}

.nidomi-home-hero__actions,
.nidomi-finder__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 18px 24px;
	margin-top: 34px;
}

.nidomi-home-button {
	display: inline-flex;
	min-height: 50px;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	border: 1px solid transparent;
	border-radius: 0;
	font-weight: 800;
	letter-spacing: 0.05em;
	line-height: 1.4;
	text-decoration: none !important;
	transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.nidomi-home-button:hover,
.nidomi-home-button:focus-visible {
	transform: translateY(-2px);
}

.nidomi-home-button--ink {
	background: var(--nidomi-home-ink);
	color: #fff !important;
}

.nidomi-home-button--ink:hover,
.nidomi-home-button--ink:focus-visible {
	background: var(--nidomi-home-accent);
}

.nidomi-home-button--accent {
	border: 0;
	background: var(--nidomi-home-accent);
	color: #fff;
	cursor: pointer;
}

.nidomi-home-button--accent:hover,
.nidomi-home-button--accent:focus-visible {
	background: var(--nidomi-home-ink);
}

.nidomi-home-text-link {
	color: var(--nidomi-home-ink) !important;
	font-weight: 800;
	text-decoration-color: var(--nidomi-home-accent) !important;
}

.nidomi-home-hero__mark {
	position: relative;
	display: grid;
	width: min(100%, 420px);
	aspect-ratio: 1;
	place-items: center;
	justify-self: end;
}

.nidomi-home-hero__ring {
	position: absolute;
	border: 1px solid var(--nidomi-home-line);
	border-radius: 50%;
}

.nidomi-home-hero__ring--outer {
	inset: 3%;
	animation: nidomi-home-orbit 26s linear infinite;
}

.nidomi-home-hero__ring--outer::before,
.nidomi-home-hero__ring--outer::after {
	position: absolute;
	width: 10px;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--nidomi-home-accent);
	content: "";
}

.nidomi-home-hero__ring--outer::before {
	top: 12%;
	right: 15%;
}

.nidomi-home-hero__ring--outer::after {
	left: 3%;
	bottom: 32%;
	background: var(--nidomi-home-gold);
}

.nidomi-home-hero__ring--inner {
	inset: 22%;
	border-color: var(--nidomi-home-accent);
	background: rgba(255, 255, 255, 0.28);
	box-shadow: inset 0 0 0 22px rgba(138, 38, 63, 0.035);
}

.nidomi-home-hero__glyph {
	position: relative;
	font-family: var(--nidomi-home-serif);
	font-size: clamp(5rem, 13vw, 9rem);
	font-weight: 500;
	line-height: 1;
}

.nidomi-home-hero__index {
	position: absolute;
	right: 3%;
	bottom: 3%;
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.2em;
	transform: rotate(-90deg) translateX(100%);
	transform-origin: right bottom;
}

@keyframes nidomi-home-orbit {
	to { transform: rotate(360deg); }
}

.nidomi-home-section {
	margin: 0 0 clamp(86px, 12vw, 148px);
}

.nidomi-home-section__header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: clamp(28px, 4vw, 48px);
	padding-bottom: 18px;
	border-bottom: 1px solid var(--nidomi-home-line);
}

.nidomi-home-section__header h2 {
	margin: 10px 0 0;
	font-family: var(--nidomi-home-serif);
	font-size: clamp(1.85rem, 4vw, 3.45rem);
	font-weight: 500;
	letter-spacing: -0.025em;
	line-height: 1.25;
}

.nidomi-home-section__header h2 span {
	font-size: 0.55em;
	white-space: nowrap;
}

.nidomi-home-section__header > p,
.nidomi-home-section__header time {
	max-width: 430px;
	margin: 0;
	color: #5f5a53;
	font-size: 0.82rem;
	line-height: 1.8;
}

.nidomi-home-daily__layout {
	display: grid;
	grid-template-columns: minmax(220px, 0.72fr) minmax(280px, 1fr);
	align-items: center;
	gap: clamp(30px, 7vw, 92px);
	padding: clamp(28px, 5vw, 64px);
	background:
		linear-gradient(118deg, var(--nidomi-home-ink) 0 42%, transparent 42%),
		var(--nidomi-home-paper-deep);
}

.nidomi-home-daily__note {
	align-self: center;
	color: #fff;
}

.nidomi-home-daily__note p:last-child {
	margin: 18px 0 0;
	font-family: var(--nidomi-home-serif);
	font-size: clamp(1.1rem, 2vw, 1.45rem);
	line-height: 1.95;
}

.nidomi-home-daily__label {
	color: #dbad78;
}

.nidomi-home-daily .nidomi-card {
	max-width: 420px;
	justify-self: end;
	border-radius: 0;
	box-shadow: 18px 18px 0 rgba(138, 38, 63, 0.14);
}

.nidomi-home-finder {
	padding: clamp(26px, 5vw, 64px);
	background: var(--nidomi-home-ink);
	color: #fff;
}

.nidomi-home-finder .nidomi-home-section__header {
	border-color: rgba(255, 255, 255, 0.22);
}

.nidomi-home-finder .nidomi-home-section__number,
.nidomi-home-finder .nidomi-home-section__header > p {
	color: #d9aa73;
}

.nidomi-finder__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
}

.nidomi-finder__field {
	display: grid;
	gap: 9px;
}

.nidomi-finder__field > span {
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.1em;
}

.nidomi-finder__field select {
	width: 100%;
	min-height: 52px;
	padding: 10px 36px 10px 13px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 0;
	background: #24272d;
	color: #fff;
	font: inherit;
}

.nidomi-finder__actions > a {
	color: #fff;
	font-weight: 700;
}

.nidomi-finder-results {
	margin-top: 52px;
	padding-top: 34px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.nidomi-finder-results__heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 26px;
}

.nidomi-finder-results__heading p {
	margin: 0;
	color: #d9aa73;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.18em;
}

.nidomi-finder-results__heading h3 {
	margin: 0;
	font-family: var(--nidomi-home-serif);
	font-size: clamp(1.5rem, 3vw, 2.4rem);
	font-weight: 500;
}

.nidomi-home-finder .nidomi-card-grid {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}

.nidomi-home-finder .nidomi-card {
	max-width: none;
	color: var(--nidomi-home-ink);
}

.nidomi-finder-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	margin-top: 34px;
}

.nidomi-finder-pagination a {
	color: #fff;
	font-weight: 800;
}

.nidomi-home-recent__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.nidomi-home-recent__grid .nidomi-card {
	max-width: none;
	border-radius: 0;
	box-shadow: none;
}

.nidomi-home-recent__grid .nidomi-card:nth-child(3n + 2) {
	transform: translateY(26px);
}

.nidomi-home-recent__grid .nidomi-card:nth-child(3n + 2):hover {
	transform: translateY(22px);
}

.nidomi-feature-routes {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border-top: 1px solid var(--nidomi-home-line);
	border-left: 1px solid var(--nidomi-home-line);
}

.nidomi-feature-routes__group {
	min-width: 0;
	padding: clamp(24px, 4vw, 44px);
	border-right: 1px solid var(--nidomi-home-line);
	border-bottom: 1px solid var(--nidomi-home-line);
}

.nidomi-feature-routes__group:nth-child(5) {
	grid-column: 1 / -1;
}

.nidomi-feature-routes__group h3 {
	margin: 0 0 22px;
	font-family: var(--nidomi-home-serif);
	font-size: clamp(1.35rem, 2.3vw, 2rem);
	font-weight: 500;
}

.nidomi-feature-routes__group ul {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nidomi-feature-routes__group li {
	margin: 0;
}

.nidomi-feature-routes__group a {
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	gap: 10px;
	padding: 7px 8px 7px 14px;
	border: 1px solid var(--nidomi-home-line);
	background: rgba(255, 255, 255, 0.45);
	color: var(--nidomi-home-ink);
	font-weight: 750;
	text-decoration: none;
	transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.nidomi-feature-routes__group a:hover,
.nidomi-feature-routes__group a:focus-visible {
	border-color: var(--nidomi-home-accent);
	background: #fff;
	color: var(--nidomi-home-accent);
}

.nidomi-feature-routes__group small {
	display: grid;
	min-width: 27px;
	height: 27px;
	place-items: center;
	background: var(--nidomi-home-ink);
	color: #fff;
	font-size: 0.66rem;
}

.nidomi-home-empty {
	padding: 34px;
	border: 1px dashed currentColor;
	font-family: var(--nidomi-home-serif);
	font-size: 1.05rem;
	line-height: 1.8;
	text-align: center;
}

.nidomi-home :focus-visible {
	outline: 3px solid rgba(183, 67, 89, 0.55);
	outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
	.nidomi-home *,
	.nidomi-home *::before,
	.nidomi-home *::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

@media screen and (max-width: 1023px) {
	.nidomi-home-hero {
		grid-template-columns: 1fr minmax(230px, 0.55fr);
	}

	.nidomi-finder__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media screen and (max-width: 834px) {
	.nidomi-home-hero {
		min-height: auto;
		grid-template-columns: 1fr;
	}

	.nidomi-home-hero__mark {
		width: min(70vw, 340px);
		justify-self: center;
	}

	.nidomi-home-daily__layout {
		grid-template-columns: 1fr;
		background:
			linear-gradient(var(--nidomi-home-ink) 0 38%, transparent 38%),
			var(--nidomi-home-paper-deep);
	}

	.nidomi-home-daily__note {
		padding-bottom: 16px;
	}

	.nidomi-home-daily .nidomi-card {
		width: min(100%, 430px);
		justify-self: center;
	}

	.nidomi-home-recent__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nidomi-home-recent__grid .nidomi-card:nth-child(3n + 2),
	.nidomi-home-recent__grid .nidomi-card:nth-child(3n + 2):hover {
		transform: none;
	}
}

@media screen and (max-width: 620px) {
	.nidomi-home-hero {
		padding: 48px 24px 54px 34px;
	}

	.nidomi-home-hero h1 br {
		display: none;
	}

	.nidomi-home-section__header,
	.nidomi-home-section__header--finder {
		align-items: flex-start;
		flex-direction: column;
	}

	.nidomi-finder__grid,
	.nidomi-home-recent__grid,
	.nidomi-feature-routes {
		grid-template-columns: 1fr;
	}

	.nidomi-feature-routes__group:nth-child(5) {
		grid-column: 1;
	}

	.nidomi-home-recent__grid .nidomi-card {
		width: 100%;
	}

	.nidomi-finder-results__heading {
		align-items: flex-start;
		flex-direction: column;
	}
}
