/*!
 * charging-spots.css ─ 充電スポット検索ページ
 */

/* ============ ページ全体 ============ */
.charging-spots {
	max-width: 720px;
	margin: 0 auto;
	padding: 24px 16px 80px;
	/* ゴシック体（履歴書フォームと同じスタック） */
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", system-ui, sans-serif;
	color: var(--ink, #2a2a2a);
}

/* パンくず */
.cs-crumb {
	font-size: 12px;
	color: var(--ink2, #777);
	margin-bottom: 16px;
}
.cs-crumb a { color: var(--ink2, #777); text-decoration: none; }
.cs-crumb a:hover { text-decoration: underline; }
.cs-crumb__sep { margin: 0 6px; color: var(--ink3, #aaa); }

/* ============ ヘッダー ============ */
.cs-head {
	text-align: center;
	margin-bottom: 28px;
	padding: 24px 16px;
	background: linear-gradient(135deg, #fff8e8 0%, #fff4d6 100%);
	border-radius: 16px;
	border: 1.5px solid #f0d784;
}
.cs-head__title {
	font-size: 26px;
	font-weight: 800;
	margin: 0 0 8px;
	color: #5a4500;
	letter-spacing: .02em;
}
.cs-head__lead {
	margin: 0;
	font-size: 13px;
	color: #876300;
	line-height: 1.7;
}

/* ============ 現在地取得 ============ */
.cs-location {
	background: #fff;
	border: 1.5px solid #e8e0d0;
	border-radius: 14px;
	padding: 20px;
	text-align: center;
	margin-bottom: 28px;
}
.cs-location__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--accent, #ff8a3d);
	color: #fff;
	border: 0;
	padding: 14px 28px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: all .15s;
	box-shadow: 0 4px 14px rgba(255,138,61,.3);
}
.cs-location__btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255,138,61,.4); }
.cs-location__btn:disabled {
	opacity: .6;
	cursor: wait;
}
.cs-location__hint {
	margin: 14px 0 0;
	font-size: 12px;
	color: #888;
	line-height: 1.6;
}
.cs-location__hint--ok    { color: #16a34a; font-weight: 700; }
.cs-location__hint--error { color: #dc2626; font-weight: 600; }

/* ============ タグフィルタ ============ */
.cs-tags { margin-bottom: 22px; }
.cs-tags__title {
	font-size: 13px;
	font-weight: 700;
	color: #555;
	margin: 0 0 10px;
}
.cs-tags__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.cs-tag {
	background: #f5f5f5;
	border: 1.5px solid #e0e0e0;
	color: #888;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all .15s;
}
.cs-tag:hover { background: #ebebeb; }
.cs-tag.is-active {
	background: var(--accent, #ff8a3d);
	border-color: var(--accent, #ff8a3d);
	color: #fff;
}
.cs-tags__reset {
	margin: 10px 0 0;
	background: transparent;
	border: 0;
	color: var(--accent, #ff8a3d);
	font-size: 12px;
	text-decoration: underline;
	cursor: pointer;
	padding: 4px 0;
}

/* ============ カードリスト ============ */
.cs-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.cs-card {
	background: #fff;
	border: 1.5px solid #e8e0d0;
	border-radius: 14px;
	padding: 18px;
	display: flex;
	gap: 14px;
	align-items: flex-start;
	transition: all .15s;
}
.cs-card[hidden] { display: none; }
.cs-card:hover {
	border-color: var(--accent, #ff8a3d);
	box-shadow: 0 4px 18px rgba(0,0,0,.06);
}
.cs-card__icon {
	font-size: 30px;
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff8e8;
	border-radius: 14px;
}
.cs-card__body {
	flex: 1;
	min-width: 0;
}
.cs-card__title {
	font-size: 17px;
	font-weight: 800;
	margin: 0 0 4px;
	color: #2a2a2a;
}
.cs-card__price {
	margin: 0 0 6px;
	font-size: 13px;
}
.cs-card__price--free {
	display: inline-block;
	background: #d1fae5;
	color: #065f46;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
}
.cs-card__price--paid {
	color: #876300;
	font-weight: 700;
}
.cs-card__desc {
	font-size: 12px;
	color: #666;
	margin: 0 0 12px;
	line-height: 1.6;
}
.cs-card__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--accent, #ff8a3d);
	color: #fff;
	padding: 10px 18px;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 700;
	font-size: 13px;
	transition: all .15s;
	box-shadow: 0 2px 8px rgba(255,138,61,.25);
}
.cs-card__btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(255,138,61,.4);
	color: #fff;
}

/* ============ フッター ============ */
.cs-foot {
	margin-top: 28px;
	padding-top: 18px;
	border-top: 1px dashed #d8d0c0;
	text-align: center;
}
.cs-foot__note {
	font-size: 11px;
	color: #999;
	margin: 0;
	line-height: 1.6;
}

/* ============ 位置情報 許可案内モーダル ============ */
.cs-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	animation: csModalIn .2s ease-out;
}
.cs-modal[hidden] { display: none; }
@keyframes csModalIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}
.cs-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.55);
	backdrop-filter: blur(2px);
	cursor: pointer;
}
.cs-modal__box {
	position: relative;
	background: #fff;
	border-radius: 16px;
	padding: 28px 24px 22px;
	max-width: 480px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 16px 48px rgba(0,0,0,.3);
	animation: csBoxIn .25s ease-out;
}
@keyframes csBoxIn {
	from { transform: scale(.95) translateY(8px); opacity: 0; }
	to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cs-modal__x {
	position: absolute;
	top: 12px;
	right: 14px;
	background: transparent;
	border: 0;
	font-size: 26px;
	font-weight: 300;
	color: #999;
	cursor: pointer;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	line-height: 1;
}
.cs-modal__x:hover { background: #f3f3f3; color: #555; }
.cs-modal__title {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 800;
	color: #2a2a2a;
}
.cs-modal__lead {
	margin: 0 0 18px;
	font-size: 13px;
	color: #666;
	line-height: 1.6;
}

/* タブ */
.cs-modal__tabs {
	display: flex;
	gap: 6px;
	margin-bottom: 16px;
	background: #f5f5f5;
	border-radius: 10px;
	padding: 4px;
}
.cs-modal__tab {
	flex: 1;
	background: transparent;
	border: 0;
	padding: 10px 8px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	color: #888;
	cursor: pointer;
	transition: all .15s;
}
.cs-modal__tab.is-active {
	background: #fff;
	color: var(--accent, #ff8a3d);
	box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

/* 手順 */
.cs-modal__content {
	background: #fafafa;
	border-radius: 12px;
	padding: 16px 18px;
	margin-bottom: 18px;
}
.cs-modal__sub {
	margin: 0 0 10px;
	font-size: 12px;
	color: #888;
	font-weight: 700;
}
.cs-modal__steps {
	margin: 0;
	padding-left: 20px;
	font-size: 14px;
	line-height: 1.8;
	color: #2a2a2a;
}
.cs-modal__steps li { margin-bottom: 6px; }
.cs-modal__steps li b { color: var(--accent, #ff8a3d); }

/* アクション */
.cs-modal__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.cs-modal__btn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px 18px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: all .15s;
	border: 0;
}
.cs-modal__btn--reload {
	background: var(--accent, #ff8a3d);
	color: #fff;
	box-shadow: 0 4px 14px rgba(255,138,61,.3);
}
.cs-modal__btn--reload:hover { transform: translateY(-1px); }
.cs-modal__btn--cancel {
	background: #f3f3f3;
	color: #666;
}
.cs-modal__btn--cancel:hover { background: #e8e8e8; }

/* ============ PC（901px以上）：3カラムグリッド & ワイド化 ============ */
@media (min-width: 901px) {
	.charging-spots {
		max-width: 1120px;
		padding: 36px 24px 100px;
	}

	/* ヘッダー：大きくインパクトある形に */
	.cs-head {
		padding: 48px 32px;
		margin-bottom: 36px;
	}
	.cs-head__title { font-size: 36px; margin-bottom: 12px; }
	.cs-head__lead  { font-size: 15px; }

	/* タグ：中央寄せ + ピル感を強く */
	.cs-tags { text-align: center; margin-bottom: 32px; }
	.cs-tags__title { font-size: 14px; margin-bottom: 14px; }
	.cs-tags__list { justify-content: center; gap: 10px; }
	.cs-tag {
		padding: 10px 18px;
		font-size: 14px;
	}

	/* カードリスト：3カラムグリッド */
	.cs-list {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}

	/* カード：縦並び（アイコン上、内容中央寄せ）に */
	.cs-card {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 28px 22px;
		gap: 16px;
		min-height: 280px;
	}
	.cs-card__icon {
		width: 78px;
		height: 78px;
		font-size: 42px;
		border-radius: 18px;
	}
	.cs-card__body { width: 100%; }
	.cs-card__title { font-size: 18px; margin-bottom: 8px; }
	.cs-card__price { margin-bottom: 8px; }
	.cs-card__desc {
		min-height: 36px;       /* 2行分の高さを確保してカードの揃え */
		margin-bottom: 16px;
	}
	.cs-card__btn {
		padding: 12px 22px;
		font-size: 14px;
	}

	/* hover を強めに */
	.cs-card:hover {
		transform: translateY(-4px);
		box-shadow: 0 12px 32px rgba(0,0,0,.10);
	}

	/* フッターも控えめに中央寄せ */
	.cs-foot { margin-top: 40px; }
	.cs-foot__note { font-size: 12px; }
}

/* ============ タブレット（768-900px）：2カラム ============ */
@media (min-width: 768px) and (max-width: 900px) {
	.charging-spots { max-width: 760px; }
	.cs-list {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
	.cs-card {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.cs-card__icon { width: 60px; height: 60px; font-size: 32px; }
}

/* ============ スマホ最適化（〜480px）：そのまま縦並び ============ */
@media (max-width: 480px) {
	.charging-spots { padding: 16px 12px 60px; }
	.cs-head { padding: 20px 12px; }
	.cs-head__title { font-size: 22px; }
	.cs-head__lead { font-size: 12px; }
	.cs-card { padding: 14px; gap: 12px; }
	.cs-card__icon { width: 48px; height: 48px; font-size: 26px; }
	.cs-card__title { font-size: 16px; }
	.cs-card__btn { padding: 9px 16px; font-size: 12px; }
}
