/* =============================================
   フロントページ専用スタイル
   Namespace: fp- (front-page)
   SWELL子テーマ用 — SWELLのh2/h3装飾をリセットして独自デザイン適用
   ============================================= */

/* =============================================
   SWELLのh2装飾リセット（fp-スコープ）
   ============================================= */
.post_content .fp-area h2.fp-area__heading,
.post_content .fp-region-list h2.fp-region-list__heading,
.post_content .fp-station h2.fp-station__heading {
	background: none;
	border: none;
	padding: 0 0 12px 0;
	margin: 0 0 24px 0;
	position: static;
	z-index: auto;
	color: #1a1a2e;
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.4;
	border-bottom: 3px solid #2563eb;
	margin-left: 0;
	margin-right: 0;
}

.post_content .fp-area h2.fp-area__heading::before,
.post_content .fp-area h2.fp-area__heading::after,
.post_content .fp-region-list h2.fp-region-list__heading::before,
.post_content .fp-region-list h2.fp-region-list__heading::after,
.post_content .fp-station h2.fp-station__heading::before,
.post_content .fp-station h2.fp-station__heading::after {
	display: none !important;
	content: none !important;
}

/* SWELLのh3装飾リセット */
.post_content .fp-region-list h3.fp-region-list__region {
	background: none;
	border: none;
	padding: 0;
	margin: 0 0 10px 0;
	position: static;
	font-size: 1rem;
	font-weight: 700;
	color: #334155;
	line-height: 1.4;
}

.post_content .fp-region-list h3.fp-region-list__region::before,
.post_content .fp-region-list h3.fp-region-list__region::after {
	display: none !important;
	content: none !important;
}

/* =============================================
   セクション1: 日本地図（CSSグリッド）
   ============================================= */
.fp-area {
	margin: 2em 0 2.5em;
}

.fp-map {
	display: grid;
	grid-template-columns: repeat(13, 1fr);
	grid-template-rows: repeat(15, auto);
	gap: 3px;
	max-width: 650px;
	margin: 0 auto;
	padding: 20px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
}

/* 都道府県セル */
.fp-map__cell {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	border-radius: 6px;
	font-size: 0.72rem;
	font-weight: 700;
	color: #fff !important;
	text-decoration: none !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
	line-height: 1.2;
	text-align: center;
	min-width: 0;
	cursor: pointer;
}

.fp-map__cell:hover {
	transform: scale(1.18);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	filter: brightness(1.1);
	z-index: 2;
	color: #fff !important;
	text-decoration: none !important;
}

/* 地域別カラー（data-region属性セレクタ） */
.fp-map__cell[data-region="北海道"]     { background: #6366f1; }
.fp-map__cell[data-region="東北"]       { background: #3b82f6; }
.fp-map__cell[data-region="関東"]       { background: #22c55e; }
.fp-map__cell[data-region="中部"]       { background: #eab308; }
.fp-map__cell[data-region="近畿"]       { background: #f97316; }
.fp-map__cell[data-region="中国"]       { background: #ec4899; }
.fp-map__cell[data-region="四国"]       { background: #8b5cf6; }
.fp-map__cell[data-region="九州・沖縄"] { background: #ef4444; }

/* 凡例 */
.fp-map__legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 16px;
	margin-top: 16px;
	font-size: 0.78rem;
	color: #64748b;
}

.fp-map__legend-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.fp-map__legend-dot {
	width: 12px;
	height: 12px;
	border-radius: 3px;
	flex-shrink: 0;
}

/* =============================================
   セクション2: 地域別テキストリンク
   ============================================= */
.fp-region-list {
	margin: 0 0 2.5em;
}

.fp-region-list__group {
	margin-bottom: 16px;
	padding: 16px 20px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
}

.fp-region-list__group:last-child {
	margin-bottom: 0;
}

.fp-region-list__prefs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fp-region-list__link {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	color: #2563eb;
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
	line-height: 1.4;
}

.fp-region-list__link:hover {
	background: #eff6ff;
	border-color: #93c5fd;
	color: #1d4ed8;
	transform: translateY(-1px);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* =============================================
   セクション3: 駅名検索（プレースホルダー）
   ============================================= */
.fp-station {
	margin: 0 0 2em;
}

.fp-station__coming {
	padding: 24px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	text-align: center;
	color: #94a3b8;
	font-size: 0.95rem;
}

/* =============================================
   レスポンシブ: モバイル
   ============================================= */
@media (max-width: 600px) {
	.fp-map {
		gap: 2px;
		padding: 10px;
		max-width: 100%;
	}

	.fp-map__cell {
		font-size: 0.5rem;
		border-radius: 3px;
	}

	.fp-map__legend {
		font-size: 0.7rem;
		gap: 4px 10px;
	}

	.post_content .fp-area h2.fp-area__heading,
	.post_content .fp-region-list h2.fp-region-list__heading,
	.post_content .fp-station h2.fp-station__heading {
		font-size: 1.15rem;
	}

	.fp-region-list__group {
		padding: 12px 14px;
	}

	.fp-region-list__link {
		padding: 6px 10px;
		font-size: 0.82rem;
	}
}

/* =============================================
   レスポンシブ: タブレット
   ============================================= */
@media (min-width: 601px) and (max-width: 960px) {
	.fp-map {
		max-width: 520px;
	}

	.fp-map__cell {
		font-size: 0.6rem;
	}
}
