/* =============================================
   店舗ランキングテンプレート専用スタイル
   SWELL子テーマ用 — SWELLのh2/h3装飾をリセットして独自デザイン適用
   ============================================= */

/* =============================================
   相場表示
   ============================================= */
.str-market-price {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 1.5em 0 2em;
	padding: 16px 20px;
	background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
	border: 1px solid #bdd8f1;
	border-left: 4px solid #2563eb;
	border-radius: 8px;
}

.str-market-price__label {
	font-size: 0.9rem;
	font-weight: 600;
	color: #334155;
	white-space: nowrap;
}

.str-market-price__value {
	font-size: 1.3rem;
	font-weight: 700;
	color: #e74c3c;
}

@media (max-width: 600px) {
	.str-market-price {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
		padding: 14px 16px;
	}

	.str-market-price__value {
		font-size: 1.15rem;
	}
}

/* =============================================
   地図
   ============================================= */
.str-map-wrap {
	margin-bottom: 28px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

#str-map {
	width: 100%;
	height: 380px;
}

/* カスタムピン */
.str-map-pin {
	background: none !important;
	border: none !important;
}

/* ピン外形（しずく型） */
.str-map-pin__body {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: #e74c3c;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* 数字（逆回転で正位置に戻す） */
.str-map-pin__number {
	display: block;
	transform: rotate(45deg);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
	text-align: center;
}

/* Leafletポップアップ調整 */
.str-map-wrap .leaflet-popup-content {
	font-size: 0.85rem;
	line-height: 1.5;
	margin: 10px 14px;
}

.str-map-wrap .leaflet-popup-content a {
	color: #2563eb;
	font-weight: 600;
	text-decoration: none;
}

.str-map-wrap .leaflet-popup-content a:hover {
	text-decoration: underline;
}

@media (max-width: 600px) {
	#str-map {
		height: 260px;
	}
}

/* =============================================
   SWELLのh2装飾をリセット（.str-ranking 内のみ）
   ============================================= */
.post_content .str-ranking h2.str-ranking__title {
	/* SWELLのデフォルト装飾をリセット */
	background: none;
	border: none;
	padding: 0 0 12px 0;
	margin: 0 0 8px 0;
	position: static;
	z-index: auto;
	color: #1a1a2e;
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.4;
	/* 独自の下線 */
	border-bottom: 3px solid #ff6b35;
}

.post_content .str-ranking h2.str-ranking__title::before,
.post_content .str-ranking h2.str-ranking__title::after {
	display: none !important;
	content: none !important;
}

/* SWELLのh2 左右マイナスマージンを無効化 */
.post_content > .str-ranking h2.str-ranking__title {
	margin-left: 0;
	margin-right: 0;
}

/* =============================================
   SWELLのh3装飾をリセット（.str-card 内のみ）
   ============================================= */
.post_content .str-card h3.str-card__name {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	position: static;
	font-size: 1.15rem;
	font-weight: 700;
	color: #1a1a2e;
	line-height: 1.4;
}

.post_content .str-card h3.str-card__name::before,
.post_content .str-card h3.str-card__name::after {
	display: none !important;
	content: none !important;
}

/* =============================================
   ランキングセクション全体
   ============================================= */
.str-ranking {
	margin: 2em 0 0;
}

.str-ranking__count {
	font-size: 0.9rem;
	color: #666;
	margin: 0 0 28px;
}

.str-ranking__count strong {
	color: #ff6b35;
	font-size: 1.1rem;
}

/* =============================================
   ランキング一覧表（冒頭の概要テーブル）
   ============================================= */
.str-overview {
	margin-bottom: 40px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.str-overview__table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	font-size: 0.9rem;
}

.str-overview__table thead th {
	background: #2d3748;
	color: #fff;
	font-weight: 600;
	padding: 10px 14px;
	text-align: left;
	font-size: 0.8rem;
	letter-spacing: 0.03em;
	white-space: nowrap;
	border: none;
}

.str-overview__table tbody tr {
	transition: background 0.15s ease;
}

.str-overview__table tbody tr:nth-child(even) {
	background: #f8fafc;
}

.str-overview__table tbody tr:hover {
	background: #fff7ed;
}

.str-overview__table tbody td {
	padding: 10px 14px;
	border-bottom: 1px solid #edf2f7;
	vertical-align: middle;
	color: #333;
}

.str-overview__table tbody tr:last-child td {
	border-bottom: none;
}

/* 順位セル */
.str-overview__rank {
	font-weight: 700;
	text-align: center;
	width: 48px;
	white-space: nowrap;
}

.str-overview__rank.-top {
	color: #d97706;
}

/* 店舗名リンク（表内） */
.str-overview__link {
	color: #2563eb;
	text-decoration: none;
	font-weight: 600;
}

.str-overview__link:hover {
	color: #1d4ed8;
	text-decoration: underline;
}

/* 価格セル */
.str-overview__price {
	color: #e74c3c;
	font-weight: 700;
	white-space: nowrap;
}

/* タイプバッジ（表内） */
.str-overview__type {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: 600;
}

.str-overview__type.-indoor {
	background: #dbeafe;
	color: #1e40af;
}

.str-overview__type.-outdoor {
	background: #dcfce7;
	color: #166534;
}

/* アクセス列 */
.str-overview__access {
	font-size: 0.8rem;
	color: #555;
}

/* =============================================
   店舗カード
   ============================================= */
.str-card {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	margin-bottom: 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	overflow: hidden;
	transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.str-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

/* ヘッダー */
.str-card__header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	background: linear-gradient(135deg, #f8f9fb 0%, #f0f2f5 100%);
	border-bottom: 1px solid #e2e8f0;
}

.str-card__rank {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #6c757d;
	color: #fff;
	padding: 4px 14px;
	border-radius: 20px;
	font-weight: 700;
	font-size: 0.85rem;
	white-space: nowrap;
	min-width: 56px;
	flex-shrink: 0;
}

.str-card__rank.-gold {
	background: linear-gradient(135deg, #f7b731 0%, #e8a317 100%);
	box-shadow: 0 2px 6px rgba(247, 183, 49, 0.4);
}

.str-card__rank.-silver {
	background: linear-gradient(135deg, #a5b1c2 0%, #8b9aaf 100%);
	box-shadow: 0 2px 6px rgba(165, 177, 194, 0.4);
}

.str-card__rank.-bronze {
	background: linear-gradient(135deg, #cd8032 0%, #b06c28 100%);
	box-shadow: 0 2px 6px rgba(205, 128, 50, 0.4);
}

/* 本体 */
.str-card__body {
	padding: 20px;
}

/* 価格 */
.str-card__price {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 16px;
	padding: 12px 16px;
	background: #fff8f5;
	border: 1px solid #ffe0d0;
	border-radius: 8px;
}

.str-card__price-label {
	font-size: 0.8rem;
	color: #888;
	font-weight: 600;
	white-space: nowrap;
}

.str-card__price-value {
	font-size: 1.2rem;
	font-weight: 700;
	color: #e74c3c;
}

/* 情報テーブル */
.str-card__info {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 0;
}

.str-card__info th,
.str-card__info td {
	padding: 8px 12px;
	font-size: 0.9rem;
	line-height: 1.6;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid #f0f0f0;
}

.str-card__info th {
	width: 80px;
	color: #666;
	font-weight: 600;
	white-space: nowrap;
	background: none;
}

.str-card__info td {
	color: #333;
}

.str-card__info tr:last-child th,
.str-card__info tr:last-child td {
	border-bottom: none;
}

.str-card__walking {
	display: inline-block;
	margin-left: 4px;
	color: #555;
}

.str-card__type-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 4px;
	font-size: 0.8rem;
	font-weight: 600;
}

.str-card__type-badge.-indoor {
	background: #e3f2fd;
	color: #1565c0;
}

.str-card__type-badge.-outdoor {
	background: #e8f5e9;
	color: #2e7d32;
}

.str-card__area {
	margin-left: 8px;
	font-size: 0.85rem;
	color: #666;
}

/* タグ（特徴） */
.str-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #f0f0f0;
}

.str-card__tag {
	display: inline-block;
	background: #eef2ff;
	color: #4361ee;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 0.8rem;
	font-weight: 500;
	white-space: nowrap;
}

/* フッター：詳細ボタン */
.str-card__footer {
	padding: 0 20px 20px;
	text-align: center;
}

.str-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 360px;
	padding: 14px 24px;
	background: linear-gradient(135deg, #ff6b35 0%, #f7522e 100%);
	color: #fff !important;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none !important;
	border-radius: 50px;
	box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
	transition: all 0.3s ease;
}

.str-card__btn:hover {
	background: linear-gradient(135deg, #f7522e 0%, #e8431f 100%);
	box-shadow: 0 6px 16px rgba(247, 82, 46, 0.4);
	transform: translateY(-2px);
	color: #fff !important;
}

/* 該当なしメッセージ */
.str-ranking__empty {
	margin: 2em 0;
	padding: 24px;
	background: #fef9f0;
	border: 1px solid #fde68a;
	border-radius: 8px;
	text-align: center;
}

.str-ranking__empty p {
	color: #92400e;
	font-weight: 600;
	margin: 0;
}

/* =============================================
   近隣エリア内部リンク
   ============================================= */
.str-related {
	margin-top: 40px;
	padding: 24px 28px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
}

/* SWELLのh2装飾をリセット */
.post_content .str-ranking .str-related__title {
	background: none;
	border: none;
	padding: 0 0 12px 0;
	margin: 0 0 16px 0;
	position: static;
	z-index: auto;
	font-size: 1.1rem;
	font-weight: 700;
	color: #1a1a2e;
	line-height: 1.4;
	border-bottom: 2px solid #cbd5e1;
}

.post_content .str-ranking .str-related__title::before,
.post_content .str-ranking .str-related__title::after {
	display: none !important;
	content: none !important;
}

.str-related__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.str-related__link {
	display: inline-flex;
	align-items: center;
	padding: 10px 16px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-left: 3px solid #2563eb;
	border-radius: 6px;
	color: #2563eb;
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
	line-height: 1.4;
}

.str-related__link:hover {
	background: #eff6ff;
	border-color: #93c5fd;
	border-left-color: #2563eb;
	color: #1d4ed8;
	transform: translateY(-1px);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* 駅リンクは緑系 */
.str-related__link.-station {
	border-left-color: #10b981;
	color: #059669;
}

.str-related__link.-station:hover {
	background: #ecfdf5;
	border-color: #6ee7b7;
	border-left-color: #10b981;
	color: #047857;
}

/* =============================================
   レスポンシブ
   ============================================= */
@media (max-width: 600px) {
	/* 近隣エリア内部リンク */
	.str-related {
		padding: 16px;
		margin-top: 28px;
	}

	.str-related__links {
		gap: 8px;
	}

	.str-related__link {
		padding: 8px 12px;
		font-size: 0.82rem;
		width: 100%;
	}

	/* 概要テーブル：横スクロール */
	.str-overview {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.str-overview__table {
		min-width: 560px;
	}

	.str-overview__table thead th,
	.str-overview__table tbody td {
		padding: 8px 10px;
		font-size: 0.8rem;
	}

	/* 店舗カード */
	.str-card__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		padding: 14px 16px;
	}

	.post_content .str-card h3.str-card__name {
		font-size: 1.05rem;
	}

	.str-card__body {
		padding: 16px;
	}

	.str-card__price {
		flex-direction: column;
		gap: 4px;
		padding: 10px 14px;
	}

	.str-card__price-value {
		font-size: 1.1rem;
	}

	.str-card__info th {
		width: 70px;
		font-size: 0.8rem;
	}

	.str-card__info td {
		font-size: 0.85rem;
	}

	.str-card__footer {
		padding: 0 16px 16px;
	}

	.str-card__btn {
		font-size: 0.95rem;
		padding: 12px 20px;
	}

	.str-card__tag {
		font-size: 0.75rem;
		padding: 3px 8px;
	}

	.post_content .str-ranking h2.str-ranking__title {
		font-size: 1.15rem;
	}
}