/* ------------------------------------------------------------
 * 共通セクションスタイル
 * - 責務: 共有パーツの外枠/見出し/装飾
 * - 非責務: Swiperナビ・ページネーション詳細（slider.css）
 * ---------------------------------------------------------- */

/* New Umaimon Section */
.km-umaimonSection {
	position: relative;
	padding: 88px 0 104px;
	background: var(--km-bg);
	overflow: visible; /* Ensure nothing is clipped */
	--km-edge-right-safe: clamp(14px, 2vw, 24px);
}

/* うまいもん特集は全ページで横幅を広く使う */
.km-umaimonSection > .km-container {
	max-width: none;
	padding-left: 20px;
	padding-right: 20px;
}

.km-page-area .km-umaimonSection > .km-container {
	max-width: none;
	padding-left: 20px;
	padding-right: 20px;
}

/* ------------------------------------------------------------
 * Floating Rail (TOP sidebar style) - shared
 * ---------------------------------------------------------- */
.km-floatRail {
	position: fixed;
	right: 16px;
	top: 224px;
	z-index: 160;
	display: grid;
	visibility: visible;
	gap: 14px;
	pointer-events: none;
}

.admin-bar .km-floatRail {
	top: 256px;
}

@media (max-width: 782px) {
	.admin-bar .km-floatRail {
		top: 366px;
	}
}

.km-followRail {
	pointer-events: auto;
	display: grid;
	justify-items: center;
	gap: 10px;
}

.km-followRail__label {
	font-weight: 900;
	letter-spacing: 0.08em;
	color: var(--km-accent);
	font-size: 15px;
	writing-mode: vertical-rl;
	text-orientation: mixed;
}

.km-followRail__sep {
	width: 32px;
	height: 2px;
	background: var(--km-accent);
	border-radius: 999px;
	opacity: 0.9;
}

.km-followRail__icons {
	display: grid;
	gap: 14px;
	justify-items: center;
}

.km-followRail__icon {
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	background: transparent;
	text-decoration: none;
	transition: transform 0.2s;
}

.km-followRail__icon:hover {
	transform: translateY(-2px);
}

.km-followRail__icon img {
	width: 36px;
	height: 36px;
	display: block;
}

.km-followRail__butacheBanner {
	width: 50px;
	min-height: 162px;
	display: grid;
	justify-items: center;
	align-content: start;
	gap: 8px;
	padding: 8px 8px 12px;
	border-radius: 14px;
	background: #72b8d8;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 6px 16px rgba(45, 81, 99, 0.24);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.km-followRail__butacheBanner:hover {
	transform: translateY(-2px);
	background: #67adce;
	box-shadow: 0 8px 20px rgba(45, 81, 99, 0.28);
}

.km-followRail__butacheBadge {
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.22);
	font-size: 18px;
	line-height: 1;
}

.km-followRail__butacheText {
	writing-mode: vertical-rl;
	text-orientation: mixed;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
}

@media (max-width: 900px) {
	.km-floatRail {
		right: 10px;
		top: 320px;
		transform: scale(0.92);
		transform-origin: top right;
	}

	.km-followRail__butacheBanner {
		min-height: 150px;
	}
}

@media (max-width: 560px) {
	.km-floatRail {
		display: none;
	}
}

/* ------------------------------------------------------------
 * Mobile Butache Sticky CTA (non-single pages)
 * ---------------------------------------------------------- */
.km-mobileButacheSticky {
	display: none;
}

@media (max-width: 640px) {
	.km-mobileButacheSticky {
		display: block;
		position: fixed;
		left: max(10px, env(safe-area-inset-left));
		bottom: calc(10px + env(safe-area-inset-bottom));
		transform: none;
		width: clamp(220px, calc(100vw - 130px), 296px);
		z-index: 216;
		transition: opacity 0.2s ease, transform 0.2s ease;
	}

	.km-mobileButacheSticky.is-hidden-near-footer {
		opacity: 0;
		pointer-events: none;
		transform: translateY(12px);
	}

	.km-mobileButacheSticky__link {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		min-height: 52px;
		padding: 8px 14px;
		border-radius: 14px;
		background: #72b8d8;
		border: 1px solid rgba(255, 255, 255, 0.35);
		box-shadow: 0 10px 18px rgba(30, 61, 76, 0.2);
		text-decoration: none;
	}

	.km-mobileButacheSticky__badge {
		width: 22px;
		height: 22px;
		display: grid;
		place-items: center;
		border-radius: 50%;
		background: rgba(255, 255, 255, 0.22);
		color: #fff;
		font-size: 12px;
		line-height: 1;
		flex-shrink: 0;
	}

	.km-mobileButacheSticky__text {
		color: #fff;
		font-family: "Zen Kaku Gothic New", sans-serif;
		font-size: 15px;
		font-weight: 700;
		line-height: 1;
		letter-spacing: 0.02em;
	}

	.km-mobileButacheSticky__icon {
		width: 42px;
		height: 42px;
		flex-shrink: 0;
		display: block;
	}

	.km-mobileButacheSticky__link:active {
		transform: translateY(1px);
	}
}

.km-umaimonSection__bg {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 70% 20%, rgba(255, 201, 60, 0.18), transparent 55%),
		radial-gradient(circle at 20% 70%, rgba(255, 153, 120, 0.18), transparent 60%);
	pointer-events: none;
}

.km-umaimonHeader {
	display: grid;
	grid-template-columns: minmax(360px, 560px) minmax(300px, 342px);
	gap: 30px;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 1;
	max-width: 980px;
	margin: 0 auto;
}

.km-umaimonHeader__lead {
	position: relative;
	max-width: 560px;
	padding-right: 132px;
	padding-top: 30px;
	isolation: isolate;
}

.km-umaimonHeader__decor {
	position: absolute;
	top: 10px;
	left: -8px;
	width: 170px;
	height: 74px;
	z-index: 3;
	pointer-events: none;
}

.km-umaimonHeader__mapWrap {
	position: absolute;
	top: -6px;
	right: -56px;
	z-index: 0;
	pointer-events: none;
}

.km-umaimonHeader__map {
	display: block;
	width: 400px;
	opacity: 0.34;
	transform: rotate(14deg);
}

.km-umaimonHeader__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 2px;
	width: 62px;
	height: 62px;
	padding: 0;
	background: url("../img/hero-star.svg") center / cover no-repeat;
	flex-shrink: 0;
	transform: rotate(-7deg);
	filter: drop-shadow(0 4px 8px rgba(84, 75, 60, 0.18));
	z-index: 2;
}

@media (min-width: 1025px) {
	.km-umaimonHeader__badge {
		left: -44px;
	}
}

.km-umaimonHeader__badgeText {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%) rotate(-12deg);
	color: var(--km-text);
	font-family: "VDL-PenLetter", "Zen Kaku Gothic New", sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.04em;
	text-align: center;
	white-space: nowrap;
}

.km-umaimonHeader__book {
	position: absolute;
	left: 98px;
	top: -12px;
	width: 62px;
	height: auto;
	display: block;
	opacity: 0.96;
	z-index: 0;
}

.km-umaimonHeader__title {
	margin: 0 0 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: var(--km-text);
	position: relative;
	z-index: 3;
}

.km-umaimonHeader__titleLine {
	font-family: "Zen Kaku Gothic New", sans-serif;
	font-size: 48px;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.06;
}

.km-umaimonHeader__titleUmaimon {
	display: inline-block;
	width: fit-content;
	font-family: "Zen Kaku Gothic New", sans-serif;
	font-size: clamp(34px, 4vw, 48px);
	font-weight: 800;
	line-height: 1.06;
	letter-spacing: 0.02em;
	transform: rotate(-3deg);
	transform-origin: left center;
}

.km-umaimonHeader__desc {
	margin: 0;
	max-width: 434px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.65;
	color: var(--km-text);
	position: relative;
	z-index: 1;
}

.km-umaimonFeature {
	background:
		linear-gradient(145deg, rgba(255, 252, 244, 0.98) 0%, rgba(255, 245, 225, 0.98) 100%);
	border: 1px solid rgba(222, 180, 102, 0.42);
	border-radius: 20px;
	padding: 14px 14px 18px;
	box-shadow:
		0 16px 36px rgba(84, 75, 60, 0.11),
		inset 0 1px 0 rgba(255, 255, 255, 0.78);
	max-width: 342px;
	width: 100%;
	margin: 0 auto;
	position: relative;
	justify-self: center;
	overflow: visible;
	isolation: isolate; /* Create new stacking context */
}

.km-umaimonFeature__hyokkori {
	position: absolute;
	right: -60px;
	bottom: 30px;
	top: auto;
	width: 70px;
	height: auto;
	z-index: -1;
	transform-origin: bottom center;
	animation: km-hyokkori-peek 8s ease-in-out infinite;
}

.km-umaimonFeature__hyokkori img {
	width: 100%;
	height: auto;
	display: block;
}

/* Speech Bubble (Standalone sibling) */
.km-umaimonFeature__bubble {
	position: absolute;
	right: -110px; /* 右上へ最大寄せ（クリップしない範囲） */
	bottom: 176px; /* 上位置は維持 */
	transform: translateX(0);
	background: #fff;
	border: 2px solid #544b3c;
	border-radius: 12px;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 800;
	color: #544b3c;
	white-space: nowrap;
	z-index: 5; /* In front of card */
	opacity: 0;
	pointer-events: none;
	animation: km-bubble-fade 8s ease-in-out infinite;
}

.km-umaimonFeature__bubble::after {
	content: "";
	position: absolute;
	bottom: -8px;
	left: 22px; /* 豚の頭方向に寄せる */
	transform: none;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 7px solid #544b3c;
}

@keyframes km-hyokkori-peek {
	0%, 100% { transform: translateX(14px) translateY(4px); opacity: 0; }
	15%, 85% { transform: translateX(0) translateY(0); opacity: 1; }
	50% { transform: translateX(-14px) translateY(-3px); opacity: 1; }
}

/* Synchronized bubble animation */
@keyframes km-bubble-fade {
	0%, 18% { opacity: 0; transform: translateX(10px) translateY(2px); }
	22%, 78% { opacity: 1; transform: translateX(0) translateY(-2px); }
	82%, 100% { opacity: 0; transform: translateX(-10px) translateY(2px); } /* 消える時は左へ */
}

.km-umaimonFeature::before {
	content: "";
	position: absolute;
	inset: 14px 12px auto auto;
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.72) 0%, rgba(255,210,110,0.3) 48%, rgba(242,168,77,0.08) 100%);
	filter: blur(2px);
	pointer-events: none;
}

.km-umaimonFeature__label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 8px 2px;
	padding: 10px 20px;
	background: #f3c55c;
	font-size: 15px;
	font-weight: 700;
	color: #544b3c;
	letter-spacing: 0.08em;
	border-radius: 9999px;
	border: 1px solid rgba(84, 75, 60, 0.14);
	box-shadow: 0 4px 8px rgba(84, 75, 60, 0.12);
	position: relative;
	z-index: 3;
}

.km-umaimonFeature__card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	text-decoration: none;
	color: inherit;
}

.km-umaimonFeature__media {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 18px;
	overflow: hidden;
	background: var(--km-gray);
	box-shadow: 0 14px 24px rgba(84, 75, 60, 0.16);
	position: relative;
}

.km-umaimonFeature__media::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 44%;
	background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.16) 100%);
	pointer-events: none;
}

.km-umaimonFeature__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.km-umaimonFeature__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0 2px;
}

.km-umaimonFeature__title {
	margin: 0;
	font-size: 1.08rem;
	font-weight: 900;
	line-height: 1.55;
	letter-spacing: 0.01em;
	color: var(--km-text);
}

.km-umaimonFeature__date {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--km-text-muted);
}

.km-umaimonFeature__date::before {
	content: "";
	width: 18px;
	height: 18px;
	border-radius: 50%;
	flex-shrink: 0;
	background:
		radial-gradient(circle at center, rgba(255,255,255,0.95) 0 28%, transparent 30%),
		linear-gradient(135deg, #f3c55c 0%, #e79a4a 100%);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.48);
}

.km-umaimonFeature__card:hover .km-umaimonFeature__media img {
	transform: scale(1.04);
}

.km-umaimonSlider {
	position: relative;
	margin-top: 32px;
	z-index: 1;
}

.km-umaimonSlider .swiper-container {
	max-width: none;
	margin: 0;
	padding: 0 56px;
}

.km-umaimonSlider__track {
	display: flex;
}

.km-umaimonSlider__item {
	flex-shrink: 0;
	width: 260px;
}

.km-umaimonCard {
	display: block;
	background: var(--km-white);
	border-radius: 12px;
	padding: 10px;
	box-shadow: 0 8px 20px rgba(0,0,0,0.06);
	text-decoration: none;
	color: inherit;
	height: 100%;
	max-width: 260px;
}

.km-umaimonCard__media {
	width: calc(100% - 12px);
	margin: 0 auto 8px;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	overflow: hidden;
	background: var(--km-gray);
}

.km-umaimonCard__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.km-umaimonCard__title {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
}

.km-umaimonCard__date {
	margin: 0;
	font-size: 12px;
	color: var(--km-text-muted);
}

.km-umaimonSlider__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--km-white);
	border: none;
	box-shadow: 0 6px 16px rgba(0,0,0,0.12);
	cursor: pointer;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s, background 0.2s;
}

.km-umaimonSlider__nav--prev {
	left: 6px;
}

.km-umaimonSlider__nav--next {
	right: 6px;
}

.km-umaimonSlider__nav::after {
	content: "";
	width: 10px;
	height: 10px;
	border-top: 3px solid var(--km-text);
	border-right: 3px solid var(--km-text);
	display: block;
}

.km-umaimonSlider__nav--next::after {
	transform: rotate(45deg);
	margin-left: -2px;
}

.km-umaimonSlider__nav--prev::after {
	transform: rotate(-135deg);
	margin-left: 2px;
}

.km-umaimonSlider__nav:hover {
	background: var(--km-yellow);
	transform: translateY(-50%) scale(1.05);
}

/* 矢印アイコンは slider.css で一括管理するため、ここでは定義しない */

.km-umaimonSection__cta {
	margin-top: 34px;
	text-align: center;
	z-index: 1;
	position: relative;
}

.km-umaimonSection__cta .km-button--outline {
	padding: 16px 80px;
	border-radius: 40px;
	outline: 1px solid #544b3c;
	outline-offset: -1px;
	background: #fff;
}

.km-umaimonSection__cta .km-button--outline svg {
	margin-left: 2px;
}

/* 共通特集スライダーはTOP.svg比率に寄せて、1枚の横幅をやや抑える */
.km-umaimonSection .km-recommendSlider {
	max-width: 840px;
	--km-slider-inner-edge: clamp(36px, 4.2vw, 44px);
	--km-slider-nav-edge: var(--km-edge-right-safe);
}

@media (max-width: 1024px) {
	.km-umaimonHeader {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.km-umaimonHeader__lead {
		padding-right: 0;
		max-width: 720px;
		margin: 0 auto;
		padding-top: 26px;
	}

	.km-umaimonHeader__decor {
		top: 8px;
		left: -4px;
		width: 158px;
		height: 70px;
	}

	.km-umaimonHeader__mapWrap {
		position: absolute;
		top: -2px;
		right: -24px;
		left: auto;
		margin: 0;
		z-index: 0;
		pointer-events: none;
	}

	.km-umaimonHeader__map {
		transform: rotate(8deg);
		width: 260px;
		opacity: 0.3;
	}

	.km-umaimonSlider__item,
	.km-umaimonCard {
		max-width: 230px;
		width: 230px;
	}

	.km-umaimonSlider .swiper-container {
		margin: 0;
		padding: 0 44px;
	}
}

@media (min-width: 641px) and (max-width: 900px) {
	/* この帯域では見出し装飾がタイトルに重なりやすいため、外側へ逃がして固定 */
	.km-umaimonHeader__lead {
		padding-top: 32px;
		padding-left: 28px;
	}

	.km-umaimonHeader__decor {
		top: 4px;
		left: -28px;
		width: 186px;
		height: 78px;
	}

	.km-umaimonHeader__badge {
		left: 0;
		top: 0;
	}

	.km-umaimonHeader__book {
		left: 124px;
		top: -16px;
	}

	.km-umaimonHeader__title {
		position: relative;
		z-index: 3;
	}
}

@media (max-width: 640px) {
	.km-umaimonSection {
		padding: 0 0 96px;
		background: #FFF7E9;
	}

	.km-umaimonSection > .km-container {
		width: 100%;
		max-width: 390px;
		padding: 0 16px;
		margin: 0 auto;
		box-sizing: border-box;
		overflow-x: clip;
	}

	.km-umaimonHeader {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
		width: 100%;
		position: relative;
		padding-top: 48px;
		padding-left: 0;
		min-height: 280px;
		overflow: visible;
	}

	.km-umaimonHeader__mapWrap {
		position: absolute;
		right: -10px;
		top: 0;
		left: auto;
		transform: none;
		width: 230px;
		height: auto;
		z-index: 0;
		opacity: 0.65;
		pointer-events: none;
	}

	.km-umaimonHeader__map {
		width: 100%;
		height: auto;
		transform: rotate(10deg);
	}

	.km-umaimonHeader__lead {
		position: relative;
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		padding: 0 20px 0 40px;
		z-index: 1;
	}

	.km-umaimonHeader__decor {
		position: relative;
		left: auto;
		top: auto;
		width: 100%;
		height: 48px;
	}

	.km-umaimonHeader__badge {
		left: auto;
		right: 10px;
		top: -4px;
		transform: rotate(12deg);
	}

	.km-umaimonHeader__title {
		margin: 16px 0 16px;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.km-umaimonHeader__titleLine {
		font-size: 32px;
		font-weight: 800;
		line-height: 1.2;
		letter-spacing: 0.05em;
	}

	.km-umaimonHeader__titleUmaimon {
		font-size: 32px;
		font-weight: 800;
		transform: rotate(-3deg);
		transform-origin: 20px center;
	}

	.km-umaimonHeader__desc {
		padding: 0;
		font-size: 14px;
		line-height: 1.6;
		margin-bottom: 24px;
		max-width: 240px;
	}

	/* Feature card sizing */
	.km-umaimonFeature {
		max-width: min(342px, 100%);
		margin: 24px auto 0;
		background: #fff;
		border-radius: 20px;
		box-shadow: 0 10px 30px rgba(84, 75, 60, 0.12);
		position: relative;
		z-index: 1;
		isolation: isolate;
	}

	.km-umaimonFeature__hyokkori,
	.km-umaimonFeature__bubble {
		display: none;
	}

	/* Global override: Slider to vertical list on mobile */
	.km-umaimonSection .km-recommendSlider {
		display: block;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		margin: 14px 0 0;
		padding: 0;
		overflow: hidden;
	}

	.km-umaimonSection .km-recommendSlider .swiper-container,
	.km-umaimonSection .km-recommendSlider .swiper {
		width: 100%;
		max-width: 100%;
		margin: 0;
		box-sizing: border-box;
		overflow: hidden;
	}

	.km-umaimonSection .km-recommendSlider .swiper-wrapper,
	.km-umaimonSection .km-recommendSlider .km-recommendSlider__track {
		display: flex;
		flex-direction: column;
		gap: 12px;
		transform: none;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		height: auto;
		margin: 0;
	}

	.km-umaimonSection .km-recommendSlider .km-magazineCard {
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	.km-umaimonSection .km-recommendSlider .swiper-slide {
		display: block;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		height: auto;
		margin: 0;
	}

	.km-umaimonSection .km-recommendSlider .km-magazineCard__inner {
		display: grid;
		grid-template-columns: 120px minmax(0, 1fr);
		gap: 12px;
		padding: 8px 0;
		background: transparent;
		box-shadow: none;
		border-radius: 0;
		align-items: start;
		box-sizing: border-box;
		width: 100%;
	}

	.km-umaimonSection .km-recommendSlider .km-magazineCard__media {
		width: 120px;
		height: 80px;
		border-radius: 8px;
		margin: 0;
	}

	.km-umaimonSection .km-recommendSlider .km-magazineCard__body {
		padding: 0;
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		min-width: 0;
		overflow: hidden;
	}

	.km-umaimonSection .km-recommendSlider .km-magazineCard__title {
		font-size: 14px;
		font-weight: 800;
		line-height: 1.4;
		margin-bottom: 6px;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		color: #544B3C;
		max-width: 15em; /* Approximately 15 characters */
	}

	.km-umaimonSection .km-recommendSlider .km-magazineCard__date {
		font-size: 11px;
		font-weight: 700;
		color: #888;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.km-umaimonSection .km-recommendSlider .km-magazineCard__date::after {
		content: "";
		width: 5px;
		height: 5px;
		border-top: 1.5px solid #544B3C;
		border-right: 1.5px solid #544B3C;
		transform: rotate(45deg);
		margin-right: 4px;
	}

	.km-umaimonSection .km-recommendSlider__nav,
	.km-umaimonSection .km-recommendSlider .swiper-pagination {
		display: none;
	}

	.km-umaimonSection__cta .km-button--outline {
		width: 100%;
		max-width: 280px;
		height: 50px;
		margin: 24px auto 0;
	}
}

/* ------------------------------------------------------------
 * Magazine Section — Slider & Cards (全ページ統一)
 * ジャンルページのデザインを基準としてすべてのページに適用
 * ---------------------------------------------------------- */

.km-magazineCard {
	height: auto;
}

.km-magazineCard__inner {
	display: block;
	padding: 24px 12px;
	background: #fff;
	text-decoration: none;
	color: var(--km-text);
	position: relative;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	transition: transform 0.2s, box-shadow 0.2s;
}

.km-magazineCard__inner:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.km-magazineCard__media {
	width: 100%;
	aspect-ratio: 3 / 2;
	margin: 0 auto 12px;
	overflow: hidden;
	border-radius: 8px;
}

.km-magazineCard__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.km-magazineCard__title {
	margin: 0 0 8px;
	font-family: "Zen Kaku Gothic New", sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--km-text);
	text-align: justify;
}

/* TOPなどの特集スライダーのみ、カードを少しコンパクトにする */
.km-recommendSlider .km-magazineCard__inner {
	padding: 16px 10px;
}

.km-recommendSlider .km-magazineCard__body {
	display: flex;
	flex-direction: column;
	min-height: 88px;
	min-width: 0;
}

.km-recommendSlider .km-magazineCard__title {
	font-size: 14px;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.km-magazineCard__date {
	margin: 0;
	font-family: "Zen Kaku Gothic New", sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: var(--km-text-muted);
}

.km-magazineCard--featured .km-magazineCard__inner {
	position: relative;
	padding: 12px;
	border-radius: 14px;
	box-shadow: none;
	border: 1px solid rgba(84, 75, 60, 0.08);
	z-index: 11;
	overflow: hidden;
	background: #fff;
	isolation: isolate;
	opacity: 1;
	filter: none;
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background-color 0.2s;
}

.km-magazineCard--featured {
	display: block;
	position: relative;
	z-index: 20;
	isolation: isolate;
}

.km-magazineCard--featured .km-magazineCard__inner:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	border-color: rgba(84, 75, 60, 0.28);
	background: #fff;
	opacity: 1;
	filter: none;
}

.km-magazineCard--featured .km-magazineCard__inner:hover .km-magazineCard__media img {
	opacity: 1;
	filter: none;
}

.km-magazineCard--featured .km-magazineCard__media {
	aspect-ratio: 17 / 10;
	margin-bottom: 12px;
	border-radius: 12px;
}

.km-magazineCard--featured .km-magazineCard__title {
	margin-bottom: 10px;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.km-magazineCard--featured .km-magazineCard__date {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	font-size: 12px;
	font-weight: 700;
}

.km-magazineCard--featured .km-magazineCard__date::after {
	content: "";
	margin-left: auto;
	width: 7px;
	height: 7px;
	border-top: 1.5px solid #544b3c;
	border-right: 1.5px solid #544b3c;
	transform: rotate(45deg);
	flex-shrink: 0;
}

/* Magazine sliderのナビ/ページネーション責務は slider.css に集約 */

/* ------------------------------------------------------------
 * Search Navigation (top: 691px)
 * ---------------------------------------------------------- */
.km-section--searchNav {
	padding: 0;
	background: var(--km-bg);
}

.km-searchNav {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 0 16px;
	width: 100%;
	max-width: 1320px;
	margin-top: -84px; /* ヒーローセクションとの重なり調整 */
	margin-left: auto;
	margin-right: auto;
	position: relative;
	z-index: 10;
}

.km-searchNav__item {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 220px;
	height: 64px;
	background: white;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
	border-radius: 20px 20px 0 0;
	padding: 0 16px;
	text-decoration: none;
	color: var(--km-text);
	border: 1px solid rgba(84, 75, 60, 0.08);
	cursor: pointer;
	font-family: "Zen Kaku Gothic New", sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 18px;
	opacity: 0.7;
	filter: saturate(0.82);
	transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s, opacity 0.2s, filter 0.2s, border-color 0.2s;
}

.km-searchNav__item:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
	opacity: 0.92;
}

.km-searchNav__item.is-active {
	background: linear-gradient(180deg, #fff 0%, #fff8eb 100%);
	border-color: rgba(226, 166, 95, 0.55);
	box-shadow: 0 14px 30px rgba(84, 75, 60, 0.12);
	opacity: 1;
	filter: none;
	position: relative;
	z-index: 2;
}

.km-searchNav__item::after {
	content: "";
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 8px;
	height: 4px;
	border-radius: 999px;
	background: linear-gradient(90deg, #f4c24f 0%, #e4974c 100%);
	transform: scaleX(0);
	transform-origin: center;
	opacity: 0;
	transition: transform 180ms ease, opacity 180ms ease;
}

.km-searchNav__item:last-child {
	width: 270px;
}

.km-searchNav__icon {
	width: 30px;
	height: 28px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.km-searchNav__icon img {
	width: 100%;
	height: auto;
}

.km-searchNav__search {
	flex: 1;
	position: relative;
	display: flex;
	align-items: stretch;
}

.km-searchNav__input {
	width: 100%;
	max-width: 280px;
	height: 48px;
	background: var(--km-gray);
	border-radius: 999px;
	border: 0;
	padding: 0 16px;
	font-family: "Zen Kaku Gothic New", sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: var(--km-text);
}

.km-searchTabPanels {
	width: 100%;
	max-width: 1320px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 16px;
	margin-top: 6px;
}

.km-searchNav__input::placeholder {
	color: var(--km-text);
	opacity: 0.40;
}

/* ------------------------------------------------------------
 * Hero Ambient Memories (走馬灯背景演出)
 * なぜ: top.css ではなく shared.css へ定義することで確実に読み込ませる
 * ---------------------------------------------------------- */
.km-heroAmbient {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	overflow: hidden;
	pointer-events: none;
	opacity: 0.8;
	display: block;
}

.km-heroAmbient__item {
	display: block;
	position: absolute;
	top: 10%;
	left: 10%;
	width: 240px;
	height: auto;
	opacity: 0;
	animation: km-ambient-drift 60s ease-in-out infinite; /* Slower: 60s cycle */
	will-change: transform, opacity;
	pointer-events: auto;
	cursor: pointer;
	text-decoration: none;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.km-heroAmbient__item:nth-child(1)  { top: 58%; left: 82%; animation-delay: 0s; }
.km-heroAmbient__item:nth-child(2)  { top: 12%; left: 8%;  animation-delay: 5s; }
.km-heroAmbient__item:nth-child(3)  { top: 75%; left: 42%; animation-delay: 10s; }
.km-heroAmbient__item:nth-child(4)  { top: 25%; left: 85%; animation-delay: 15s; }
.km-heroAmbient__item:nth-child(5)  { top: 48%; left: 10%; animation-delay: 20s; }
.km-heroAmbient__item:nth-child(6)  { top: 14%; left: 78%; animation-delay: 25s; }
.km-heroAmbient__item:nth-child(7)  { top: 82%; left: 88%; animation-delay: 30s; }
.km-heroAmbient__item:nth-child(8)  { top: 32%; left: 45%; animation-delay: 35s; }
.km-heroAmbient__item:nth-child(9)  { top: 8%;  left: 56%; animation-delay: 40s; }
.km-heroAmbient__item:nth-child(10) { top: 68%; left: 12%; animation-delay: 45s; }
.km-heroAmbient__item:nth-child(11) { top: 28%; left: 15%; animation-delay: 50s; }
.km-heroAmbient__item:nth-child(12) { top: 52%; left: 35%; animation-delay: 55s; }

@media (max-width: 768px) {
	.km-heroAmbient {
		display: none;
	}
}

.km-heroAmbient__item:nth-child(3n) { width: 210px; }
.km-heroAmbient__item:nth-child(4n) { width: 260px; }

.km-heroAmbient__item:hover {
	opacity: 1;
	z-index: 60;
}

.km-heroAmbient__item:hover img {
	transform: scale(1.08);
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.km-heroAmbient__item img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@keyframes km-ambient-drift {
	0% { opacity: 0; transform: scale(0.85) rotate(-3deg) translateY(60px); }
	4% { opacity: 0.7; transform: scale(0.88) rotate(-2deg) translateY(40px); }
	21% { opacity: 0.7; transform: scale(1.02) rotate(2deg) translateY(-40px); }
	25% { opacity: 0; transform: scale(1.05) rotate(3deg) translateY(-60px); }
	100% { opacity: 0; transform: scale(1.05) rotate(3deg) translateY(-60px); }
}

/* --- Purpose Component (共通) --- */
.km-section--purpose,
.km-purposeSection {
	--km-purpose-grid-template: repeat(4, minmax(0, 1fr));
	--km-purpose-grid-gap: 22px 20px;
	--km-purpose-grid-padding: 18px 0 8px;
	--km-purpose-item-gap: 12px;
	--km-purpose-item-padding: 0;
	--km-purpose-item-radius: 20px;
	--km-purpose-hover-translate: -3px;
	--km-purpose-icon-size: 72px;
	--km-purpose-media-size: 56px;
	--km-purpose-label-size: 15px;
	--km-purpose-label-line-height: 1.2;
	--km-purpose-label-white-space: nowrap;
	--km-purpose-label-align: center;
	--km-purpose-icon-bg: var(--km-sand);
}

/* お出かけ先・目的別グリッド */
.km-purposeGrid {
	display: grid;
	grid-template-columns: var(--km-purpose-grid-template, repeat(4, minmax(0, 1fr)));
	gap: var(--km-purpose-grid-gap, 22px 20px);
	padding: var(--km-purpose-grid-padding, 18px 0 8px);
}

.km-purposeItem {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--km-purpose-item-gap, 12px);
	padding: var(--km-purpose-item-padding, 0);
	background: transparent;
	border-radius: var(--km-purpose-item-radius, 20px);
	text-decoration: none;
	color: var(--km-text);
	box-shadow: none;
	transition: transform 0.2s, box-shadow 0.2s;
}

.km-purposeItem:hover {
	transform: translateY(var(--km-purpose-hover-translate, -3px));
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* has-photo: カバー写真あり状態 */
.km-purposeItem.has-photo {
	padding: 0;
	min-height: unset;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	gap: 0;
	width: 100%;
	min-width: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.km-purposeItem.has-photo .km-purposeItem__photo {
	position: relative;
	width: 100%;
	height: 0;
	padding-top: 62.5%; /* 16:10 */
	overflow: hidden;
	border-radius: 14px;
	background: #f0f0f0;
	flex-shrink: 0;
	margin: 0;
}

.km-purposeItem.has-photo .km-purposeItem__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.km-purposeItem.has-photo .km-purposeItem__icon {
	display: none;
}

.km-purposeItem.has-photo .km-purposeItem__label {
	position: relative;
	z-index: 10;
	width: calc(100% - 20px);
	margin: -14px auto 0;
	background: #fff;
	padding: 6px 10px;
	border-radius: 999px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
	color: #333;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.2;
}

.km-purposeItem__icon {
	width: var(--km-purpose-icon-size, 72px);
	height: var(--km-purpose-icon-size, 72px);
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--km-purpose-icon-bg, var(--km-sand));
	border-radius: 50%;
	margin-bottom: 8px;
	transition: background 0.2s;
}

.km-purposeItem__icon img,
.km-purposeItem__icon svg {
	width: var(--km-purpose-media-size, 56px);
	height: var(--km-purpose-media-size, 56px);
	object-fit: contain;
	transition: filter 0.2s;
}

.km-purposeItem:hover .km-purposeItem__icon {
	background: #2b2b2b;
}

.km-purposeItem:hover .km-purposeItem__icon img,
.km-purposeItem:hover .km-purposeItem__icon svg {
	filter: invert(1) brightness(1.2);
}

.km-purposeItem__label {
	font-family: "Zen Kaku Gothic New", sans-serif;
	font-size: var(--km-purpose-label-size, 15px);
	font-weight: 700;
	line-height: var(--km-purpose-label-line-height, 1.2);
	text-align: var(--km-purpose-label-align, center);
	white-space: var(--km-purpose-label-white-space, nowrap);
}

.km-searchNav__cta {
	text-align: center;
	margin-top: 48px;
	padding: 0 200px;
}

.km-searchNav__advanced {
	text-align: center;
	margin-top: 24px;
	padding: 0 200px;
}

/* ------------------------------------------------------------
 * Search Tabs Panels (地域/ジャンル/おでかけ先)
 * - 上部3ボタンはタブ、ここはパネル領域（Renewal_designes 参照）
 * ---------------------------------------------------------- */
.km-searchTab {
	border: 0;
	cursor: pointer;
}

.km-searchTab.is-active {
	transform: translateY(-2px);
}

.km-searchNav__item.is-active::after {
	transform: scaleX(1);
	opacity: 1;
}

.km-searchNav__item.is-active .km-searchNav__label {
	color: #4d3b28;
}

.km-searchNav__item:not(.is-active) .km-searchNav__label {
	color: rgba(84, 75, 60, 0.72);
}

.km-searchNav__item:not(.is-active) .km-searchNav__icon img {
	opacity: 0.7;
	filter: grayscale(0.15);
}

.km-searchTabPanel {
	background: #f7f2e8;
	border-radius: 30px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
	padding: 22px 24px 20px;
}

/* 地図で探すタブのみ全体を白背景に */
#km-searchPanel-area {
	background: var(--km-white);
	padding-top: 12px;
	padding-bottom: 10px;
}

.km-searchPanel__inner {
	display: block;
}

.km-searchPanel__map {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 2px 0 8px;
}

.km-searchPanel__mapImg {
	width: min(360px, 100%);
	height: auto;
	display: block;
	opacity: 0.95;
	transform: rotate(34deg) scale(0.92);
	transform-origin: center;
}

.km-areaHint {
	position: absolute;
	left: 0;
	bottom: -6px;
	display: flex;
	align-items: flex-end;
	gap: 12px;
}

.km-areaHint__bubble {
	background: var(--km-white);
	border: 2px solid #E6D8C9;
	border-radius: 18px;
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 700;
	color: var(--km-text);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
	position: relative;
	white-space: nowrap;
}

.km-areaHint__bubble::after {
	content: "";
	position: absolute;
	right: -8px;
	top: 50%;
	width: 14px;
	height: 14px;
	background: #fff;
	border-top: 2px solid #E6D8C9;
	border-right: 2px solid #E6D8C9;
	transform: translateY(-50%) rotate(45deg);
	border-radius: 2px;
}

.km-areaHint__bubble::before {
	content: none;
}

.km-areaHint__pig {
	width: 74px;
	height: auto;
	transform: translateY(10px);
}

/* Scroll reveal (lightweight) */
.km-revealItem {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 360ms ease, transform 360ms ease;
}

.km-revealItem.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* reveal遅延はクラス化し、JSの inline style 依存を減らす */
.km-revealDelay-0 { transition-delay: 0ms; }
.km-revealDelay-1 { transition-delay: 24ms; }
.km-revealDelay-2 { transition-delay: 48ms; }
.km-revealDelay-3 { transition-delay: 72ms; }
.km-revealDelay-4 { transition-delay: 96ms; }
.km-revealDelay-5 { transition-delay: 120ms; }
.km-revealDelay-6 { transition-delay: 144ms; }
.km-revealDelay-7 { transition-delay: 168ms; }
.km-revealDelay-8 { transition-delay: 192ms; }
.km-revealDelay-9 { transition-delay: 216ms; }

.km-chipList {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.km-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	background: white;
	border-radius: 30px;
	color: var(--km-text);
	text-decoration: none;
	font-size: 16px;
	font-weight: 700;
	line-height: 22.4px;
	white-space: nowrap;
	outline: 1px solid rgba(84, 75, 60, 0.16);
	outline-offset: -1px;
	transition: background 0.2s, color 0.2s, transform 0.2s;
}

.km-chip:hover {
	background: var(--km-text);
	color: white;
	transform: translateY(-1px);
}

.km-searchPanel__more {
	margin-top: 10px;
}

.km-searchPanel__moreLink {
	font-size: 16px;
	font-weight: 700;
	color: var(--km-text);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.km-searchPanel__empty {
	display: inline-block;
	font-size: 16px;
	font-weight: 700;
	opacity: 0.7;
	color: var(--km-text);
}

/* CTA inside panel */
.km-searchPanel__cta {
	text-align: center;
	margin-top: 20px;
}

/* --------------------------------------------------------
 * 地域パネル: インタラクティブマップ＋エリア別市町村
 * -------------------------------------------------------- */

/* --- 三重マップ（インラインSVG） --- */
.km-areaMap {
	flex-shrink: 0;
	width: 155px;
}

.km-areaMap svg {
	display: block;
	width: 100%;
	height: auto;
	transform: rotate(16deg) scale(0.85);
	transform-origin: center;
}

.km-areaMap__group {
	cursor: pointer;
	outline: none;
}

/* 通常時（グレー） */
.km-areaMap__group path {
	fill: #D9D9D9;
	transition: fill 0.15s ease;
}

/* ホバー時（少し濃いグレー） */
.km-areaMap__group:hover:not(.is-active) path {
	fill: #BFBFBF;
}

/* アクティブ時（エリア別カラー） */
.km-areaMap__group.is-active[data-area="hokubu"] path { fill: #C44B3E; }
.km-areaMap__group.is-active[data-area="iga"] path { fill: #3E7B5B; }
.km-areaMap__group.is-active[data-area="chubu"] path { fill: #3A6FA3; }
.km-areaMap__group.is-active[data-area="iseshima"] path { fill: #F39800; }
.km-areaMap__group.is-active[data-area="higashikishu"] path { fill: #6D5AA6; }

/* --- スポットライト演出 --- */

/* いずれかのエリアがアクティブな時、非アクティブパネルを薄く */
.km-section--searchNav .km-areaGrid:has(.is-active) .km-areaPanel {
	opacity: 0.45;
	transition: opacity 0.2s ease;
}

/* アクティブなエリアパネルだけを強調 */
.km-section--searchNav .km-areaGrid .km-areaPanel.is-active {
	opacity: 1;
	z-index: 10;
}

/* パネル内のラベル強調（非アクティブ時は透過など） */
.km-areaPanel:not(.is-active) .km-areaPanel__label {
	opacity: 0.8;
}

.km-areaMap__group:focus-visible {
	outline: 2px solid var(--km-accent, var(--km-yellow));
	outline-offset: 2px;
}

/* --- グリッドレイアウト --- */
.km-section--searchNav .km-areaGrid {
	display: grid;
	grid-template-columns: 200px 160px 240px;
	grid-template-areas:
		".             iga     hokubu"
		"chubu         map     hokubu"
		"higashikishu  map     iseshima";
	column-gap: 28px;
	row-gap: 12px;
	align-items: start;
	justify-content: center; /* グリッド全体を中央寄せ */
	margin: 0 auto;
}

.km-section--searchNav .km-areaGrid__map           { grid-area: map; }
.km-section--searchNav .km-areaPanel--hokubu       { grid-area: hokubu; }
.km-section--searchNav .km-areaPanel--iga          { grid-area: iga; }
.km-section--searchNav .km-areaPanel--chubu        { grid-area: chubu; }
.km-section--searchNav .km-areaPanel--iseshima     { grid-area: iseshima; }
.km-section--searchNav .km-areaPanel--higashikishu { grid-area: higashikishu; }

/* --- エリアパネル --- */
.km-areaPanel__label {
	display: inline-flex;
	align-items: center;
	padding: 5px 14px;
	border-radius: 20px;
	font-size: 16px;
	font-weight: 700;
	color: var(--km-white);
	text-decoration: none;
	margin-bottom: 10px;
	opacity: 0.4;
	transition: opacity 0.2s, filter 0.2s;
	filter: grayscale(0.6);
}
.km-areaPanel.is-active .km-areaPanel__label {
	opacity: 1;
	filter: none;
}
.km-areaPanel__label:hover { opacity: 0.75; }

.km-areaPanel__catch {
	margin: 8px 0 0;
	font-size: 0.98rem;
	font-weight: 700;
	color: #4a4341;
	line-height: 1.5;
}

.km-areaPanel--hokubu      .km-areaPanel__label { background: #C44B3E; }
.km-areaPanel--iga         .km-areaPanel__label { background: #3E7B5B; }
.km-areaPanel--chubu       .km-areaPanel__label { background: #3A6FA3; color: var(--km-white); }
.km-areaPanel--iseshima    .km-areaPanel__label { background: #F39800; }
.km-areaPanel--higashikishu .km-areaPanel__label { background: #6D5AA6; }

/* archive/list title prefix */
.km-newBadgeInline {
	display: inline-block;
	margin-right: 8px;
	font-size: 0.82em;
	font-weight: 800;
	line-height: 1;
	color: #e4512b;
	letter-spacing: 0.02em;
	vertical-align: baseline;
}

.km-areaGrid .km-areaPanel--iseshima { margin-left: 24px; }

.km-areaPanel__cities {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 8px;
}

.km-areaPanel__allWrap {
	margin-top: 15px;
}

.km-areaPanel__allLink {
	padding: 12px 28px;
	background-color: var(--km-area-color, var(--km-accent));
	color: var(--km-area-text, #fff);
	text-decoration: none;
	border-radius: 50px;
	font-weight: 800;
	font-size: 1.1rem;
	display: inline-block;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.14);
	white-space: nowrap;
	outline: none;
}

.km-areaPanel__allLink:hover {
	filter: brightness(0.95);
	color: var(--km-area-text, #fff);
}

.km-searchPanel__cta--topArea {
	margin-top: 40px;
	display: flex;
	justify-content: center;
	padding-bottom: 28px;
}

.km-areaCity {
	font-size: 15px;
	font-weight: 700;
	color: var(--km-text);
	text-decoration: none;
	padding: 4px 10px;
	background: white;
	border-radius: 20px;
	outline: 1px solid rgba(84, 75, 60, 0.15);
	outline-offset: -1px;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s;
}

.km-areaCity:hover {
	background: var(--km-text);
	color: white;
}

/* --------------------------------------------------------
 * ジャンルパネル: カテゴリフィルタータブ＋グリッド
 * -------------------------------------------------------- */
.km-genreFilterRow {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 16px;
}

.km-genreFilter {
	appearance: none;
	border: 0;
	padding: 6px 14px;
	background: white;
	border-radius: 20px;
	font-family: "Zen Kaku Gothic New", sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: var(--km-text);
	cursor: pointer;
	outline: 1px solid rgba(84, 75, 60, 0.15);
	outline-offset: -1px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
	transition: background 0.15s, color 0.15s, outline-color 0.15s, box-shadow 0.15s;
}

.km-genreFilter:hover {
	background: #E6D8C9;
	outline-color: rgba(84, 75, 60, 0.35);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.km-genreFilter.is-active {
	background: var(--km-text);
	color: white;
	outline-color: var(--km-text);
}

.km-genreFilter.is-active:hover {
	background: #3a3329;
	outline-color: #3a3329;
}

/* NOTE:
 * 旧「km-purposeGrid.is-animated」系のアニメ実装は、
 * 現行の .km-revealItem IntersectionObserver 実装と責務重複していたため削除。
 */


.km-genreGrid {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 16px;
}

.km-genreGrid.is-hidden {
	display: none;
}

.km-genreItem {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 10px 6px;
	background: white;
	border-radius: 12px;
	text-decoration: none;
	color: var(--km-text);
	transition: transform 0.15s, box-shadow 0.15s;
}

.km-genreItem:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.km-genreItem__icon {
	width: 86px;
	height: 86px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border-radius: 0;
	overflow: visible;
	margin-bottom: 4px;
}

.km-genreItem__icon img {
	width: 72px;
	height: 72px;
	object-fit: contain;
}

.km-genreItem__label {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
}

@media (max-width: 1440px) {
	.km-searchNav {
		padding: 0 16px;
	}

	.km-searchTabPanels {
		padding: 0 16px;
	}

	.km-searchNav__cta,
	.km-searchNav__advanced {
		padding: 0 16px;
	}
}

@media (max-width: 900px) {
	.km-searchNav {
		flex-wrap: wrap;
		gap: 12px;
		padding: 0 16px;
	}

	.km-searchNav__item {
		flex: 1 1 calc(50% - 6px);
		min-width: 0;
		height: 56px;
		font-size: 16px;
		padding: 0 12px;
		border-radius: 0 0 20px 20px;
	}

	.km-searchNav__item:last-child {
		width: 100%;
		flex: 1 1 100%;
	}

	.km-searchNav__search {
		width: 100%;
		margin-top: 8px;
	}

	.km-searchNav__input {
		max-width: none;
		height: 44px;
	}

	.km-searchTabPanels {
		display: block;
		padding: 0 16px;
		margin-top: 12px;
	}

	.km-searchNav__cta,
	.km-searchNav__advanced {
		padding: 0 16px;
	}

	.km-section--purpose,
	.km-purposeSection {
		--km-purpose-grid-template: repeat(2, minmax(0, 1fr));
		--km-purpose-grid-gap: 12px;
		--km-purpose-item-padding: 16px 8px;
		--km-purpose-item-radius: 16px;
		--km-purpose-icon-size: 40px;
		--km-purpose-media-size: 24px;
		--km-purpose-label-size: 15px;
	}

	.km-section--searchNav .km-areaGrid {
		grid-template-columns: 1fr;
		grid-template-areas:
			"map"
			"hokubu"
			"iga"
			"chubu"
			"iseshima"
			"higashikishu";
		row-gap: 16px;
	}

	.km-section--searchNav .km-areaGrid__map {
		max-width: 200px;
		margin: 0 auto;
	}

	.km-genreGrid {
		grid-template-columns: repeat(4, 1fr);
	}

	.km-genreFilterRow {
		gap: 4px;
	}

	.km-genreFilter {
		font-size: 14px;
		padding: 5px 10px;
	}
}

/* ==========================================
   Responsive: スマホ小（460px以下）
   ジャンルグリッド: 4列→3列（86pxアイコンがセル幅を超えるため）
   ========================================== */

@media (max-width: 460px) {
	.km-genreGrid {
		grid-template-columns: repeat(3, 1fr);
		gap: 8px;
	}

	.km-genreItem {
		padding: 8px 4px;
	}

	.km-genreItem__icon {
		width: 64px;
		height: 64px;
	}

	.km-genreItem__icon img {
		width: 50px;
		height: 50px;
	}

	.km-genreItem__label {
		font-size: 13px;
	}
}

/* ------------------------------------------------------------
 * 記事本文の吹き出し（post / new_magazines 共通）
 * ---------------------------------------------------------- */
.article-content .l-fuki,
.article-content .r-fuki {
	position: relative;
	width: calc(100% - 82px);
	padding: 1em;
	border-radius: 6px;
	border: 2px solid var(--km-brown);
	background-color: #FEEEED;
	z-index: 1;
	box-sizing: border-box;
}

.article-content .l-fuki::before,
.article-content .r-fuki::before {
	position: absolute;
	content: "";
	top: 16px;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--km-brown);
	border-bottom: 2px solid var(--km-brown);
	background-color: #FEEEED;
	z-index: 2;
}

.article-content .l-fuki::after,
.article-content .r-fuki::after {
	position: absolute;
	content: "";
	width: 60px;
	height: 60px;
	top: -6px;
	border-radius: 50%;
	border: 2px solid var(--km-brown);
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	box-shadow: 1px 1px 5px var(--km-brown);
	box-sizing: border-box;
}

.article-content .l-fuki {
	margin: 20px auto 36px 0;
}

.article-content .l-fuki::before {
	right: -7px;
	transform: rotate(-45deg);
	-webkit-transform: rotate(-45deg);
}

.article-content .l-fuki::after {
	right: -82px;
}

.article-content .r-fuki {
	margin: 20px 0 36px auto;
}

.article-content .r-fuki::before {
	left: -7px;
	transform: rotate(135deg);
	-webkit-transform: rotate(135deg);
}

.article-content .r-fuki::after {
	left: -82px;
}

/* ケンスケ吹き出しのスタンプ画像（00-40） */
.article-content .kensuke00::after {
	background-image: url(img/common/line-sticker/100/ありがとう_100.png);
}
.article-content .kensuke01::after {
	background-image: url(img/common/butace.png);
}
.article-content .kensuke02::after {
	background-image: url(img/common/line-sticker/100/おはよう_100.png);
}
.article-content .kensuke03::after {
	background-image: url(img/common/line-sticker/100/了解_100.png);
}
.article-content .kensuke04::after {
	background-image: url(img/common/line-sticker/100/いいやん_100.png);
}
.article-content .kensuke05::after {
	background-image: url(img/common/line-sticker/100/お疲れ様_100.png);
}
.article-content .kensuke06::after {
	background-image: url(img/common/line-sticker/100/ま、なんでもええねん_100.png);
}
.article-content .kensuke07::after {
	background-image: url(img/common/line-sticker/100/お布団の中です_100.png);
}
.article-content .kensuke08::after {
	background-image: url(img/common/line-sticker/100/おやすみ_100.png);
}
.article-content .kensuke09::after {
	background-image: url(img/common/line-sticker/100/つかれた_100.png);
}
.article-content .kensuke10::after {
	background-image: url(img/common/line-sticker/100/ちょっと聞いてえ_100.png);
}
.article-content .kensuke11::after {
	background-image: url(img/common/line-sticker/100/ガーン_100.png);
}
.article-content .kensuke12::after {
	background-image: url(img/common/line-sticker/100/じーーー_100.png);
}
.article-content .kensuke13::after {
	background-image: url(img/common/line-sticker/100/なるほど_100.png);
}
.article-content .kensuke14::after {
	background-image: url(img/common/line-sticker/100/えええ_100.png);
}
.article-content .kensuke15::after {
	background-image: url(img/common/line-sticker/100/デートしませんか_100.png);
}
.article-content .kensuke16::after {
	background-image: url(img/common/line-sticker/100/ちょっと待って_100.png);
}
.article-content .kensuke17::after {
	background-image: url(img/common/line-sticker/100/おかわりください_100.png);
}
.article-content .kensuke18::after {
	background-image: url(img/common/line-sticker/100/ぺろぺろタイム_100.png);
}
.article-content .kensuke19::after {
	background-image: url(img/common/line-sticker/100/乾杯しましょう_100.png);
}
.article-content .kensuke20::after {
	background-image: url(img/common/line-sticker/100/最高のぺろぺろでした_100.png);
}
.article-content .kensuke21::after {
	background-image: url(img/common/line-sticker/100/めし_100.png);
}
.article-content .kensuke22::after {
	background-image: url(img/common/line-sticker/100/また行こう_100.png);
}
.article-content .kensuke23::after {
	background-image: url(img/common/line-sticker/100/まじ_100.png);
}
.article-content .kensuke24::after {
	background-image: url(img/common/line-sticker/100/頑張ります_100.png);
}
.article-content .kensuke25::after {
	background-image: url(img/common/line-sticker/100/どう_100.png);
}
.article-content .kensuke26::after {
	background-image: url(img/common/line-sticker/100/ですよね_100.png);
}
.article-content .kensuke27::after {
	background-image: url(img/common/line-sticker/100/さようなら_100.png);
}
.article-content .kensuke28::after {
	background-image: url(img/common/line-sticker/100/かしこまりました。_100.png);
}
.article-content .kensuke29::after {
	background-image: url(img/common/line-sticker/100/お大事に_100.png);
}
.article-content .kensuke30::after {
	background-image: url(img/common/line-sticker/100/おめでとう！_100.png);
}
.article-content .kensuke31::after {
	background-image: url(img/common/line-sticker/100/分かりません_100.png);
}
.article-content .kensuke32::after {
	background-image: url(img/common/line-sticker/100/ありよりのあり_100.png);
}
.article-content .kensuke33::after {
	background-image: url(img/common/line-sticker/100/ありりんちょ_100.png);
}
.article-content .kensuke34::after {
	background-image: url(img/common/line-sticker/100/やばい_100.png);
}
.article-content .kensuke35::after {
	background-image: url(img/common/line-sticker/100/それな_100.png);
}
.article-content .kensuke36::after {
	background-image: url(img/common/line-sticker/100/今から行く_100.png);
}
.article-content .kensuke37::after {
	background-image: url(img/common/line-sticker/100/申し訳ございません_100.png);
}
.article-content .kensuke38::after {
	background-image: url(img/common/line-sticker/100/よろしく_100.png);
}
.article-content .kensuke39::after {
	background-image: url(img/common/line-sticker/100/三重グルメならけんちぇ飯_100.png);
}
.article-content .kensuke40::after {
	background-image: url(img/common/line-sticker/100/三重県最高じゃ_100.png);
}

/* ------------------------------------------------------------
 * Embedded Media (Instagram / OEmbed)
 * ---------------------------------------------------------- */
.article-content .EmbeddedMedia,
.article-content .wp-block-embed.is-provider-instagram,
.article-content .wp-block-embed.wp-block-embed-instagram {
	max-width: 560px;
	margin: 24px auto;
}

.article-content .EmbeddedMedia iframe,
.article-content .wp-block-embed.is-provider-instagram iframe,
.article-content .wp-block-embed.wp-block-embed-instagram iframe,
.article-content blockquote.instagram-media {
	width: 100%;
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
}

/* archive-new_magazines: 編集部イチオシの左右比崩れ補正 */
body.post-type-archive-new_magazines .km-editorPickSection--magazine .km-editorPickGrid > .km-editorPickItem,
.km-main--nonTop .km-editorPickSection--magazine .km-editorPickGrid > .km-editorPickItem {
	grid-template-columns: minmax(0, 246fr) minmax(0, 267fr);
}

body.post-type-archive-new_magazines .km-editorPickSection--magazine .km-editorPickPersonality,
body.post-type-archive-new_magazines .km-editorPickSection--magazine .km-editorPickArticle,
.km-main--nonTop .km-editorPickSection--magazine .km-editorPickPersonality,
.km-main--nonTop .km-editorPickSection--magazine .km-editorPickArticle {
	min-width: 0;
}

body.post-type-archive-new_magazines .km-editorPickSection--magazine .km-editorPickArticleCard__title,
.km-main--nonTop .km-editorPickSection--magazine .km-editorPickArticleCard__title {
	overflow-wrap: anywhere;
	word-break: break-word;
}

@media (max-width: 1024px) {
	body.post-type-archive-new_magazines .km-editorPickSection--magazine .km-editorPickGrid > .km-editorPickItem,
	.km-main--nonTop .km-editorPickSection--magazine .km-editorPickGrid > .km-editorPickItem {
		grid-template-columns: 1fr;
		gap: 0;
	}
}



/* archive-new_magazines: 編集部イチオシ（Figma色 + 円弧テキスト位置補正） */
body.post-type-archive-new_magazines .km-editorPickSection--magazine .km-editorPickItem--1 .km-editorPickPersonality,
.km-main--nonTop .km-editorPickSection--magazine .km-editorPickItem--1 .km-editorPickPersonality {
	background: #7cacc1;
}

body.post-type-archive-new_magazines .km-editorPickSection--magazine .km-editorPickItem--2 .km-editorPickPersonality,
.km-main--nonTop .km-editorPickSection--magazine .km-editorPickItem--2 .km-editorPickPersonality {
	background: #ddc480;
}

body.post-type-archive-new_magazines .km-editorPickSection--magazine .km-editorPickItem--3 .km-editorPickPersonality,
.km-main--nonTop .km-editorPickSection--magazine .km-editorPickItem--3 .km-editorPickPersonality {
	background: #de9a9d;
}

body.post-type-archive-new_magazines .km-editorPickSection--magazine .km-editorPickItem--4 .km-editorPickPersonality,
.km-main--nonTop .km-editorPickSection--magazine .km-editorPickItem--4 .km-editorPickPersonality {
	background: #b8cc99;
}

body.post-type-archive-new_magazines .km-editorPickSection--magazine .km-editorPickPersonality__arc,
.km-main--nonTop .km-editorPickSection--magazine .km-editorPickPersonality__arc {
	width: 130px;
	height: 130px;
	top: -34px;
	left: 50%;
	transform: translateX(-50%) rotate(-10deg);
}
