/* ===========================================================
   Top page styles for ムダシル。 (front-page.php)
   =========================================================== */

/* ---------- Hero ---------- */
.hero {
	padding: 24px 16px 16px;
	position: relative;
	overflow: hidden;
}
@media (min-width: 960px) {
	.hero { padding: 48px 36px 36px; }
}
.hero__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-direction: column;
	max-width: 1180px;
	margin-inline: auto;
}
@media (min-width: 960px) {
	.hero__inner { flex-direction: row; }
}
.hero__txt { flex: 1; max-width: 100%; }
@media (min-width: 960px) { .hero__txt { max-width: 60%; } }
.hero__pill {
	display: inline-block;
	padding: 4px 12px;
	border-radius: var(--r-pill);
	background: var(--ink);
	color: #fff;
	font-size: var(--fs-mini);
	font-weight: 700;
	letter-spacing: .15em;
	margin-bottom: 18px;
}
.hero__h1 {
	font-family: var(--font-heading);
	font-weight: 900;
	font-size: 34px;
	line-height: 1.18;
	margin: 0 0 18px;
	color: var(--ink);
	letter-spacing: .005em;
	text-wrap: pretty;
}
@media (min-width: 640px) { .hero__h1 { font-size: 44px; } }
@media (min-width: 960px) { .hero__h1 { font-size: 54px; } }
.hero__marker {
	position: relative;
	display: inline-block;
}
.hero__marker::after {
	content: '';
	position: absolute;
	left: -4px; right: -4px; bottom: 4px;
	height: .4em;
	background: var(--sun);
	z-index: -1;
	border-radius: 4px;
	transform: rotate(-.6deg);
}
.hero__lede {
	font-size: 14px;
	color: var(--ink-soft);
	line-height: 1.85;
	margin: 0 0 22px;
	max-width: 520px;
}
@media (min-width: 640px) { .hero__lede { font-size: 16px; } }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__mascot {
	flex: 0 0 280px;
	display: flex;
	justify-content: center;
	position: relative;
	margin-top: 12px;
}
@media (max-width: 959px) { .hero__mascot { display: none; } }
.hero__mascot-wrap {
	position: relative;
	width: 240px;
	height: 240px;
}
.hero__mascot-wrap img,
.hero__mascot-wrap svg { width: 100%; height: 100%; display: block; }

.hero__chip-bubble {
	position: absolute;
	background: var(--paper);
	border: 2px solid var(--ink);
	border-radius: var(--r-lg);
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 700;
	box-shadow: 0 3px 0 var(--ink);
	white-space: nowrap;
	color: var(--ink);
}
.hero__chip-bubble--1 { top: -6px;  left: -30px; }
.hero__chip-bubble--2 { bottom: 24px; right: -50px; background: var(--sun); }
.hero__chip-bubble--3 { bottom: -6px; left: -20px; background: var(--accent); color: #fff; }

/* ---------- Section common ---------- */
.section-row {
	padding: 8px 16px 24px;
	max-width: 1180px;
	margin: 0 auto;
}
@media (min-width: 960px) {
	.section-row { padding: 8px 36px 36px; }
}
.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 18px;
	gap: 12px;
}
.section-head__h {
	font-family: var(--font-heading);
	font-weight: 900;
	font-size: var(--fs-h2);
	margin: 0;
	position: relative;
	display: inline-block;
	color: var(--ink);
}
.section-head__h::after {
	content: '';
	position: absolute;
	left: -4px; right: -4px; bottom: 2px;
	height: .45em;
	background: var(--sun);
	z-index: -1;
	border-radius: 4px;
	transform: rotate(-.5deg);
}
.section-head__more {
	font-size: 12px;
	color: var(--ink-mute);
	font-weight: 700;
	text-decoration: none;
}
.section-head__more:hover { color: var(--ink-soft); }

/* ---------- Featured row ---------- */
.featured__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}
@media (min-width: 960px) {
	.featured__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* Featured card variant (larger overlay-style card) */
.card--feature {
	position: relative;
	overflow: hidden;
}
.card--feature .card__eye { aspect-ratio: 2 / 1; }
.card--feature .card__cat-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 6px;
	background: var(--brand);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	margin-bottom: 10px;
}
.card--feature .card__title {
	font-family: var(--font-heading);
	font-weight: 900;
	font-size: 22px;
	line-height: 1.4;
	margin: 0 0 6px;
	color: var(--ink);
	text-wrap: pretty;
}
.card--feature .card__body { padding: 18px 22px 22px; }

/* ---------- Category grid ---------- */
.category-grid__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
@media (min-width: 960px) {
	.category-grid__grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

/* ---------- New row ---------- */
.new-row__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
@media (min-width: 960px) {
	.new-row__grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

/* ---------- Popular (TOP5) ---------- */
.popular {
	background: var(--paper);
	border-radius: 18px;
	padding: 18px;
	border: 1.5px solid var(--line);
}
@media (min-width: 960px) {
	.popular { padding: 28px 32px; }
}
.popular__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 14px;
}
.popular__meta {
	font-size: 10px;
	color: var(--ink-mute);
	letter-spacing: .1em;
}

/* ---------- Question wanted CTA ---------- */
.wanted {
	background: var(--ink);
	color: #fff;
	border-radius: 20px;
	padding: 24px 20px;
	position: relative;
	overflow: hidden;
}
@media (min-width: 640px) {
	.wanted { padding: 36px 40px; }
}
.wanted__bg {
	position: absolute;
	right: -30px;
	bottom: -30px;
	opacity: .12;
	font-family: var(--font-quote);
	font-size: 240px;
	font-weight: 800;
	color: var(--sun);
	line-height: .8;
	pointer-events: none;
}
.wanted__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: flex-start;
}
@media (min-width: 640px) {
	.wanted__inner { flex-direction: row; align-items: center; gap: 24px; }
}
.wanted__txt { flex: 1; }
.wanted__lbl {
	font-size: 11px;
	font-weight: 700;
	color: var(--sun);
	letter-spacing: .2em;
	margin-bottom: 10px;
}
.wanted__h {
	font-family: var(--font-heading);
	font-weight: 900;
	font-size: 22px;
	line-height: 1.35;
	margin: 0 0 12px;
	text-wrap: pretty;
}
@media (min-width: 640px) { .wanted__h { font-size: 30px; } }
.wanted__lede {
	font-size: 13px;
	color: rgba(255, 255, 255, .75);
	line-height: 1.8;
	margin: 0;
	max-width: 560px;
}
