/* ======================================================
   地域で探す ページ (area.css)
   ====================================================== */

/* ページヒーロー */
.km-pageHero {
	background: var(--km-bg);
	padding: 32px 0 40px;
}

.km-breadcrumb ol {
	display: flex;
	gap: 8px;
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	font-size: 14px;
	color: var(--km-text);
	opacity: .7;
}

.km-breadcrumb li + li::before {
	content: '›';
	margin-right: 8px;
}

.km-breadcrumb a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.km-pageHero__inner {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.km-pageHero__titleBlock {
	display: flex;
	align-items: center;
	gap: 16px;
}

.km-pageHero__icon {
	width: 56px;
	height: 56px;
	background: var(--km-white);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--km-shadow);
	flex-shrink: 0;
}

.km-pageHero__kicker {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .1em;
	color: var(--km-accent);
	margin: 0 0 2px;
}

.km-pageHero__title {
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 900;
	margin: 0;
	color: var(--km-text);
}

.km-pageHero__desc {
	font-size: 16px;
	line-height: 1.8;
	color: var(--km-text);
	max-width: 600px;
	margin: 0;
}

/* セクション共通ヘッダー */
.km-sectionHead {
	text-align: center;
	margin-bottom: 40px;
}

.km-sectionHead__kicker {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	color: var(--km-accent);
	margin: 0 0 4px;
}

.km-sectionHead__title {
	font-size: clamp(20px, 3vw, 28px);
	font-weight: 900;
	margin: 0 0 12px;
}

.km-sectionHead__desc {
	font-size: 15px;
	line-height: 1.8;
	color: var(--km-text);
	opacity: .8;
	max-width: 540px;
	margin: 0 auto;
}

/* エリアマップセクション */
.km-areaMap {
	padding: 48px 0;
	background: var(--km-white);
	flex-shrink: 0;
	width: 180px;
}

.km-areaMap__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}

.km-areaMap__image img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

.km-areaMap__buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.km-areaMapBtn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 24px;
	border-radius: var(--km-radius);
	background: var(--area-color, var(--km-accent));
	color: var(--km-white);
	font-weight: 700;
	text-decoration: none;
	transition: opacity .2s, transform .2s;
	box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.km-areaMapBtn:hover {
	opacity: .85;
	transform: translateX(4px);
}

.km-areaMapBtn__name {
	font-size: 16px;
}

.km-areaMapBtn__count {
	font-size: 15px;
	background: rgba(255,255,255,.25);
	padding: 2px 10px;
	border-radius: 100px;
}

/* エリアグリッド（動的マップ） */
.km-areaSearch {
	padding: 64px 0;
	background: var(--km-bg);
}

.km-areaGrid {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) 220px minmax(180px, 1fr);
	grid-template-areas:
		".             iga     hokubu"
		"chubu         map     hokubu"
		"higashikishu  map     iseshima";
	column-gap: 28px;
	row-gap: 16px;
	align-items: start;
}

.km-areaGrid__map { grid-area: map; justify-self: center; }
.km-areaPanel--hokubu      { grid-area: hokubu; }
.km-areaPanel--iga         { grid-area: iga; }
.km-areaPanel--chubu       { grid-area: chubu; }
.km-areaPanel--iseshima    { grid-area: iseshima; }
.km-areaPanel--higashikishu { grid-area: higashikishu; }

.km-areaMap svg {
	display: block;
	width: 100%;
	height: auto;
}

.km-areaMap__group {
	cursor: pointer;
}

.km-areaMap__group:not(.is-active) path {
	fill: #C4C4C4;
	transition: fill 0.2s ease;
}

.km-areaMap__group:hover:not(.is-active) path {
	fill: #AAAAAA;
}

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

.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;
}

/* エリアカラー定義は shared.css に統一済み */

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

.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: var(--km-white);
}

/* エリアごとのオススメ */
.km-areaRecommend:not(.km-areaRecommend--shared) {
	padding: 48px 0 24px;
	background: var(--km-white);
}

.km-sectionHeading__desc {
	margin-top: 8px;
	text-align: center;
	font-size: 15px;
	color: #8b8b8b;
}

.km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
}

.km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__col {
	flex: 0 1 320px;
	max-width: 320px;
	width: 100%;
	background: #f7f7f7;
	border-radius: 16px;
	padding: 14px 16px 10px;
	box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__header {
	text-align: center;
	padding: 6px 16px;
	color: var(--km-white);
	font-weight: 900;
	font-size: 15px;
	border-radius: 999px;
	margin: 2px auto 12px;
	display: inline-flex;
	justify-content: center;
	min-width: 140px;
}

.km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__headerLink {
	color: inherit;
	text-decoration: none;
}

.km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__header--hokubu { background: #C44B3E; }
.km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__header--chubu { background: #3A6FA3; }
.km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__header--iseshima { background: #F39800; }
.km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__header--iga { background: #3E7B5B; }
.km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__header--higashikishu { background: #6D5AA6; }

/* 地域で探すページ: 5件構成を 3件 + 2件 で固定 */
.km-page-area .km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 24px;
}

.km-page-area .km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__col {
	grid-column: span 2;
	flex: initial;
	max-width: none;
}

.km-page-area .km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__col:nth-child(1) { grid-column: 1 / span 2; }
.km-page-area .km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__col:nth-child(2) { grid-column: 3 / span 2; }
.km-page-area .km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__col:nth-child(3) { grid-column: 5 / span 2; }
.km-page-area .km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__col:nth-child(4) { grid-column: 2 / span 2; } /* 伊賀 */
.km-page-area .km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__col:nth-child(5) { grid-column: 4 / span 2; } /* 東紀州 */

.km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__item a {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 700;
	color: var(--km-text);
	text-decoration: none;
}

.km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__item a:hover {
	opacity: 0.8;
}

.km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__itemTitle {
	flex: 1;
}

.km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__trophy {
	font-size: 18px;
}

.km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__trophy--gold { color: #F5C518; }
.km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__trophy--silver { color: #B0B0B0; }
.km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__trophy--bronze { color: #CD7F32; }

.km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__empty {
	font-size: 14px;
	color: var(--km-gray-mid);
	padding: 10px 0;
	text-align: center;
}

@media (max-width: 900px) {
	.km-areaGrid {
		grid-template-columns: 1fr;
		grid-template-areas:
			"map"
			"hokubu"
			"iga"
			"chubu"
			"iseshima"
			"higashikishu";
		row-gap: 16px;
	}
	.km-areaGrid__map {
		max-width: 200px;
		margin: 0 auto;
	}
	.km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__grid {
		gap: 16px;
	}
	.km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__col {
		flex: 1 1 calc(50% - 8px);
		max-width: none;
	}

	.km-page-area .km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.km-page-area .km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__col,
	.km-page-area .km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__col:nth-child(1),
	.km-page-area .km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__col:nth-child(2),
	.km-page-area .km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__col:nth-child(3),
	.km-page-area .km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__col:nth-child(4),
	.km-page-area .km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__col:nth-child(5) {
		grid-column: auto;
	}
}

@media (max-width: 560px) {
	.km-page-area .km-areaRecommend:not(.km-areaRecommend--shared) .km-areaRecommend__grid {
		grid-template-columns: 1fr;
	}
}

/* ブタ★のコメント */
.km-pigComment {
	padding: 48px 0;
	background: var(--km-sand);
}

.km-pigComment__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	max-width: 720px;
	margin: 0 auto;
}

.km-pigComment__pig {
	flex-shrink: 0;
}

.km-pigComment__bubble {
	position: relative;
	background: var(--km-white);
	border-radius: var(--km-radius);
	padding: 20px 24px;
	box-shadow: var(--km-shadow);
}

.km-pigComment__bubble::before {
	content: '';
	position: absolute;
	left: -16px;
	top: 50%;
	transform: translateY(-50%);
	border: 8px solid transparent;
	border-right-color: var(--km-white);
}

.km-pigComment__text {
	margin: 0;
	font-size: 16px;
	line-height: 1.8;
}

/* レスポンシブ */
@media (max-width: 768px) {
	.km-areaMap__inner {
		grid-template-columns: 1fr;
	}

	.km-areaGrid {
		grid-template-columns: 1fr 1fr;
	}
	.km-pigComment__inner {
		flex-direction: column;
		text-align: center;
	}

	.km-pigComment__bubble::before {
		display: none;
	}
}

@media (max-width: 480px) {
	.km-areaGrid {
		grid-template-columns: 1fr;
	}

}

/* --------------------------------------------------------
   地域で探す（フルスペック版）の完全再現レイアウト
----------------------------------------------------------- */

.km-fullAreaGrid {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    height: 800px;
    background-color: #f3f0e9;
    border-radius: 32px;
    overflow: visible;
    padding: 20px;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.02);
}

.km-fullAreaGrid::before,
.km-fullAreaGrid::after {
    content: none;
    position: absolute;
    inset: 14px;
    border-radius: 24px;
    pointer-events: none;
    z-index: 0;
}

/* 地域ページはフル幅で見せる */
.page-template-page-area .km-container {
    max-width: 1420px;
    padding-left: 28px;
    padding-right: 28px;
}

/* 中央の地図 */
.km-fullAreaGrid__map {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 338px;
    z-index: 1;
}

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

.km-fullAreaGrid__outsideLinkWrap {
    position: absolute;
    right: 22px;
    bottom: 18px;
    z-index: 4;
}

.km-fullAreaGrid__outsideLink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(84, 75, 60, 0.22);
    background: rgba(255, 255, 255, 0.94);
    color: #6f6455;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(84, 75, 60, 0.12);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.km-fullAreaGrid__outsideLink:hover {
    background: #ece5d9;
    color: #544b3c;
    border-color: rgba(84, 75, 60, 0.3);
}

/* エリアごとのオススメはカテゴリアーカイブと同じ横幅に統一 */
.km-page-area .km-recommendSection--areaShared .km-container {
	max-width: var(--km-container);
	padding-left: 80px;
	padding-right: 80px;
}

@media (max-width: 900px) {
	.km-page-area .km-recommendSection--areaShared .km-container {
		padding-left: 32px;
		padding-right: 32px;
	}
}

@media (max-width: 560px) {
	.km-page-area .km-recommendSection--areaShared .km-container {
		padding-left: 20px;
		padding-right: 20px;
	}
}

/* エリアごとのオススメの上余白を詰める（地域ページのみ） */
.page-template-page-area .km-recommendSection {
    padding-top: 24px;
}

/* エリア共通パネル */
.km-fullAreaPanel {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: auto;
    overflow: visible;
    transition: transform 0.16s ease;
}

.km-fullAreaPanel__line {
    position: absolute;
    height: 2px;
    width: 170px;
    background: linear-gradient(90deg, currentColor 0%, rgba(255,255,255,0.0) 100%);
    border-radius: 999px;
    opacity: 0;
    transform: translateY(-50%) rotate(var(--line-rot, 0deg)) scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease, opacity 0.2s ease;
    pointer-events: none;
    z-index: 0;
}

.km-fullAreaPanel__line::after {
    content: "";
    position: absolute;
    right: 6px;
    top: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    box-shadow: 0 0 10px rgba(255,255,255,0.7);
    opacity: 0.6;
}

.km-fullAreaPanel.is-area-linked .km-fullAreaPanel__line {
    opacity: 0.9;
    transform: translateY(-50%) rotate(var(--line-rot, 0deg)) scaleX(1);
}

.km-fullAreaPanel__heading {
    display: inline-block;
    padding: 6px 20px;
    background: #aaa; /* デフォルト色 */
    color: #fff;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    width: fit-content;
    margin-bottom: 5px;
    transition: box-shadow 0.18s ease, filter 0.18s ease, transform 0.18s ease;
    position: relative;
    z-index: 2;
}

.km-fullAreaPanel__headingLink {
    color: inherit;
    text-decoration: none;
}

.km-fullAreaPanel__catch {
    margin: -1px 0 6px;
    max-width: none;
    padding: 0;
    background: transparent;
    color: #524b40;
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.015em;
    white-space: nowrap;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* 各エリア固有の配置と色 */
/* 北部（右上） */
.km-fullAreaPanel--hokubu {
    top: 50px;
    right: 150px;
    color: #C44B3E;
}
.km-fullAreaPanel--hokubu .km-fullAreaPanel__heading { background: #C44B3E; }

/* 伊賀（左上） */
.km-fullAreaPanel--iga {
    top: 40px;
    left: 320px;
    color: #3E7B5B;
}
.km-fullAreaPanel--iga .km-fullAreaPanel__heading { background: #3E7B5B; }

/* 中部（中左） */
.km-fullAreaPanel--chubu {
    top: 240px;
    left: 160px;
    color: #3A6FA3;
}
.km-fullAreaPanel--chubu .km-fullAreaPanel__heading { background: #3A6FA3; }

/* 伊勢志摩（右下） */
.km-fullAreaPanel--iseshima {
    bottom: 60px;
    right: 180px;
    color: #F39800;
}
.km-fullAreaPanel--iseshima .km-fullAreaPanel__heading { background: #F39800; }

/* 東紀州（左下） */
.km-fullAreaPanel--higashikishu {
    bottom: 40px;
    left: 160px;
    color: #6D5AA6;
}
.km-fullAreaPanel--higashikishu .km-fullAreaPanel__heading { background: #6D5AA6; }

/* 地図SVGの塗り色とラベル色を統一 */
.km-fullAreaGrid__map [data-area="hokubu"] path { fill: #C44B3E; }
.km-fullAreaGrid__map [data-area="iga"] path { fill: #3E7B5B; }
.km-fullAreaGrid__map [data-area="chubu"] path { fill: #3A6FA3; }
.km-fullAreaGrid__map [data-area="iseshima"] path { fill: #F39800; }
.km-fullAreaGrid__map [data-area="higashikishu"] path { fill: #6D5AA6; }

/* 市町村ボタン（白カプセル） */
.km-fullAreaPanel__cities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 14px;
    position: relative;
    z-index: 3;
}

.km-fullAreaCity {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    padding: 10px 16px;
    background: #fff;
    border-radius: 50px;
    text-decoration: none;
    color: #333;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s, background 0.2s;
}

.km-fullAreaCity:hover {
    transform: translateY(-2px);
    background: #eee;
}

.km-fullAreaGrid__map [data-area] path {
    transition: opacity 0.16s ease, fill 0.16s ease;
}

.km-fullAreaGrid__map [data-area].is-area-linked path {
    opacity: 0.94;
    stroke: rgba(255,255,255,0.8);
    stroke-width: 1px;
}

.km-fullAreaPanel.is-area-linked .km-fullAreaPanel__heading {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.72), 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.km-fullAreaCity--hasDesc {
    cursor: pointer;
}

.km-fullAreaCity--hasDesc::after {
    content: attr(data-city-description);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 14px);
    top: auto;
    transform: translateX(-50%) translateY(8px);
    width: min(260px, calc(100vw - 48px));
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(34, 34, 34, 0.96);
    color: #fff;
    font-size: 0.83rem;
    font-weight: 500;
    line-height: 1.65;
    white-space: normal;
    text-align: left;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 120;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.km-fullAreaCity--hasDesc::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    top: auto;
    transform: translateX(-50%) translateY(6px) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(34, 34, 34, 0.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 119;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.km-fullAreaCity--hasDesc:hover::after,
.km-fullAreaCity--hasDesc:hover::before,
.km-fullAreaCity--hasDesc:focus-visible::after,
.km-fullAreaCity--hasDesc:focus-visible::before {
    opacity: 1;
    visibility: visible;
}

.km-fullAreaCity--hasDesc:hover::after,
.km-fullAreaCity--hasDesc:focus-visible::after {
    transform: translateX(-50%) translateY(0);
}

.km-fullAreaCity--hasDesc:hover::before,
.km-fullAreaCity--hasDesc:focus-visible::before {
    transform: translateX(-50%) translateY(0) rotate(45deg);
}

.km-fullAreaCity__count {
    font-size: 0.82rem;
    color: #888;
    margin-left: 6px;
}

/* ===========================================================
   タブレット中間帯（901–1100px）
   - PCの印象を維持しつつ、絶対配置同士の衝突を回避
   =========================================================== */
@media (min-width: 901px) and (max-width: 1100px) {
    .km-fullAreaGrid {
        height: 680px;
        padding: 14px;
    }

    .km-fullAreaGrid__map {
        width: 272px;
    }

    .km-fullAreaPanel {
        gap: 6px;
    }

    .km-fullAreaPanel__heading {
        padding: 5px 15px;
        font-size: 0.9rem;
        margin-bottom: 2px;
    }

    .km-fullAreaPanel__catch {
        font-size: 0.94rem;
        line-height: 1.25;
        max-width: 240px;
    }

    .km-fullAreaPanel__cities {
        gap: 8px 10px;
    }

    .km-fullAreaCity {
        padding: 8px 12px;
        font-size: 0.86rem;
    }

    /* 中間帯専用の絶対座標（1024px基準で重なり回避） */
    .km-fullAreaPanel--hokubu {
        top: 36px;
        right: 56px;
    }

    .km-fullAreaPanel--iga {
        top: 32px;
        left: 112px;
    }

    .km-fullAreaPanel--chubu {
        top: 200px;
        left: 32px;
    }

    .km-fullAreaPanel--iseshima {
        bottom: 44px;
        right: 72px;
    }

    .km-fullAreaPanel--higashikishu {
        bottom: 34px;
        left: 42px;
    }

    .km-fullAreaGrid__outsideLinkWrap {
        right: 14px;
        bottom: 12px;
    }
}

/* 1102px付近の段差対策: 中間帯→PC帯の橋渡し */
@media (min-width: 1101px) and (max-width: 1200px) {
    .km-fullAreaGrid {
        height: 730px;
        padding: 16px;
    }

    .km-fullAreaGrid__map {
        width: 300px;
    }

    .km-fullAreaPanel__heading {
        padding: 6px 17px;
        font-size: 0.98rem;
    }

    .km-fullAreaPanel__catch {
        font-size: 1rem;
        line-height: 1.3;
    }

    .km-fullAreaPanel__cities {
        gap: 10px 12px;
    }

    .km-fullAreaCity {
        padding: 9px 14px;
        font-size: 0.92rem;
    }

    .km-fullAreaPanel--hokubu {
        top: 40px;
        right: 96px;
    }

    .km-fullAreaPanel--iga {
        top: 34px;
        left: 196px;
    }

    .km-fullAreaPanel--chubu {
        top: 214px;
        left: 86px;
    }

    .km-fullAreaPanel--iseshima {
        bottom: 48px;
        right: 112px;
    }

    .km-fullAreaPanel--higashikishu {
        bottom: 34px;
        left: 94px;
    }
}

/* レスポンシブ対応 */
@media (max-width: 900px) {
    .km-fullAreaGrid {
        height: auto;
        display: flex;
        flex-direction: column;
        padding: 20px;
        gap: 30px;
    }
    .km-fullAreaGrid__map, .km-fullAreaPanel {
        position: static;
        transform: none;
        width: 100%;
        margin: 0;
    }
    .km-fullAreaGrid__outsideLinkWrap {
        position: static;
        align-self: flex-end;
        margin-top: -6px;
    }
    .page-template-page-area .km-container {
        padding-left: 32px;
        padding-right: 32px;
    }
}

@media (max-width: 560px) {
    .page-template-page-area .km-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .km-fullAreaCity--hasDesc::after {
        width: min(220px, calc(100vw - 40px));
        font-size: 0.78rem;
    }
}

/* ===========================================================
   モバイル: マップカード（ラベルのみ表示）+ エリアリスト
   =========================================================== */

/* デスクトップではモバイルリストを非表示 */
.km-areaMobileList {
    display: none;
}

/* 地域ページ: モバイルでヒーローの三重県アウトラインマップを非表示 */
@media (max-width: 640px) {
    .km-page-area .km-nonTopHero__mieMap {
        display: none;
    }
}

@media (max-width: 900px) {
    /* マップカードを位置指定レイアウトで維持 */
    .page-template-page-area .km-fullAreaGrid,
    .page-template-page-area-php .km-fullAreaGrid,
    .km-page-area .km-fullAreaGrid {
        position: relative;
        display: block;
        height: 320px;
        padding: 16px;
    }

    .page-template-page-area .km-fullAreaGrid__map,
    .page-template-page-area-php .km-fullAreaGrid__map,
    .km-page-area .km-fullAreaGrid__map {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 160px;
        margin: 0;
    }

    /* パネルは絶対配置を維持（都市・レーザーは非表示、説明文は表示） */
    .page-template-page-area .km-fullAreaPanel,
    .page-template-page-area-php .km-fullAreaPanel,
    .km-page-area .km-fullAreaPanel {
        position: absolute;
        width: auto;
        transform: none;
        gap: 0;
    }

    .page-template-page-area .km-fullAreaPanel__cities,
    .page-template-page-area .km-fullAreaPanel__line,
    .page-template-page-area-php .km-fullAreaPanel__cities,
    .page-template-page-area-php .km-fullAreaPanel__line,
    .km-page-area .km-fullAreaPanel__cities,
    .km-page-area .km-fullAreaPanel__line {
        display: none;
    }

    .page-template-page-area .km-fullAreaPanel__catch,
    .page-template-page-area-php .km-fullAreaPanel__catch,
    .km-page-area .km-fullAreaPanel__catch {
        display: block;
        margin: 6px 0 0;
        max-width: min(220px, calc(100vw - 170px));
        font-size: 0.68rem;
        line-height: 1.35;
        color: #4a4341;
        overflow-wrap: anywhere;
        word-break: break-word;
        background: rgba(255, 255, 255, 0.7);
        padding: 1px 4px;
        border-radius: 3px;
        box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
    }

    .km-fullAreaPanel__heading {
        font-size: 0.75rem;
        padding: 4px 12px;
        margin-bottom: 0;
    }

    /* モバイル用エリアラベル位置 */
    .km-fullAreaPanel--hokubu       { top: 14px;   right: 10px;  left: auto;  bottom: auto; }
    .km-fullAreaPanel--iga          { top: 62px;   left: 10px;   right: auto; bottom: auto; }
    .km-fullAreaPanel--chubu        { top: 148px;  left: 10px;   right: auto; bottom: auto; }
    .km-fullAreaPanel--iseshima     { bottom: 58px; right: 10px; left: auto;  top: auto;    }
    .km-fullAreaPanel--higashikishu { bottom: 14px; left: 10px;  right: auto; top: auto;    }

    .page-template-page-area .km-fullAreaGrid__outsideLinkWrap,
    .page-template-page-area-php .km-fullAreaGrid__outsideLinkWrap,
    .km-page-area .km-fullAreaGrid__outsideLinkWrap {
        position: absolute;
        right: 10px;
        bottom: 10px;
        margin-top: 0;
        align-self: unset;
    }

    /* モバイルエリアリスト表示 */
    .km-areaMobileList {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 24px;
        padding: 0 4px;
    }
}

@media (max-width: 640px) {
    /* 地域ページ（SP）では中央地図を少し縮小してラベルの干渉を防ぐ */
    .page-template-page-area .km-fullAreaGrid__map,
    .page-template-page-area-php .km-fullAreaGrid__map,
    .km-page-area .km-fullAreaGrid__map {
        width: 136px;
    }

    /* 地域ページ（SP）ではレーザー演出を無効化 */
    .page-template-page-area .km-fullAreaPanel__line,
    .page-template-page-area-php .km-fullAreaPanel__line,
    .km-page-area .km-fullAreaPanel__line {
        display: none;
    }

    .page-template-page-area .km-fullAreaPanel__catch,
    .page-template-page-area-php .km-fullAreaPanel__catch,
    .km-page-area .km-fullAreaPanel__catch {
        max-width: min(180px, calc(100vw - 150px));
        font-size: 0.64rem;
        line-height: 1.3;
        overflow-wrap: anywhere;
        word-break: break-word;
        background: rgba(255, 255, 255, 0.7);
        padding: 1px 4px;
        border-radius: 3px;
        box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
    }
}

.km-areaMobileList__section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.km-areaMobileList__catch {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: #4a4341;
    font-weight: 600;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.km-areaMobileList__label {
    display: inline-flex;
    align-items: center;
    padding: 6px 20px;
    border-radius: 50px;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    width: fit-content;
}

.km-areaMobileList__label--hokubu       { background: #C44B3E; }
.km-areaMobileList__label--iga          { background: #3E7B5B; }
.km-areaMobileList__label--chubu        { background: #3A6FA3; }
.km-areaMobileList__label--iseshima     { background: #F39800; }
.km-areaMobileList__label--higashikishu { background: #6D5AA6; }

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

.km-areaMobileList__city {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #fff;
    border-radius: 50px;
    border: 1px solid rgba(84, 75, 60, 0.1);
    text-decoration: none;
    color: #333;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    transition: background 0.15s;
}

.km-areaMobileList__city:hover {
    background: #f0ece4;
}

.km-areaMobileList__cityCount {
    color: #999;
    font-size: 0.82rem;
    margin-left: 2px;
}
