@charset "UTF-8";
/* ==========================================================
   街ガイド 追加分（グルメ10選・くらしのリンク・ページ内ナビ）2026-10-12
   辻堂：緑 #50ba8e／茅ヶ崎：オレンジ #f59d2c
   ========================================================== */

body#machi-guide {
	--mg-c: #50ba8e;
	--mg-c2: #3fa379;
	--mg-bg: #eaf7eb;
	--mg-food: #f59d2c;
	--mg-food-tx: #b4630b;
	--mg-food-bg: #fdf1e1;
}
body#machi-guide.chigasaki {
	--mg-c: #f59d2c;
	--mg-c2: #c9700f;
	--mg-bg: #f8ebda;
	--mg-food: #50ba8e;
	--mg-food-tx: #2f8a63;
	--mg-food-bg: #e7f6ec;
}

/* ページ内ナビ */
body#machi-guide .mg-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 40px 0 0;
}
body#machi-guide .mg-nav a {
	display: inline-flex;
	align-items: center;
	padding: 9px 20px;
	border-radius: 20px;
	background: var(--mg-bg);
	color: #333;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: background .2s, color .2s;
}
body#machi-guide .mg-nav a::before {
	content: "↓";
	margin-right: 0.4em;
	color: var(--mg-c2);
}
body#machi-guide .mg-nav a:hover {
	background: var(--mg-c);
	color: #fff;
}
body#machi-guide .mg-nav a:hover::before {
	color: #fff;
}

/* 見出し */
body#machi-guide .mg-h2 {
	text-align: center;
	font-size: 26px;
	font-weight: 400;
	letter-spacing: 0.06em;
	line-height: 1.4;
	color: #111;
	margin: 64px 0 0;
	scroll-margin-top: 90px;
}
body#machi-guide .mg-h2 small {
	display: block;
	font-family: "Roboto Slab", serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--mg-c2);
	margin-bottom: 6px;
	text-align: center !important;
}
body#machi-guide #area_list,
body#machi-guide #sec_gmap,
body#machi-guide .mg-sec {
	scroll-margin-top: 90px;
}
body#machi-guide .mg-sec {
	padding-top: 64px;
}
body#machi-guide .mg-sec > .mg-h2 {
	margin-top: 0;
}
body#machi-guide .mg-lead {
	max-width: 760px;
	margin: 16px auto 28px;
	text-align: center;
	font-size: 15px;
	line-height: 1.9;
	color: #444;
}
body#machi-guide .mg-note {
	margin-top: 14px;
	font-size: 12.5px;
	color: #777;
	text-align: right;
}

/* グルメ10選 */
body#machi-guide .mg-food {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: mgf;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}
body#machi-guide .mg-food li {
	counter-increment: mgf;
	position: relative;
	background: #fff;
	border: 1px solid #e3e9e5;
	border-radius: 12px;
	padding: 18px 20px 18px 70px;
	scroll-margin-top: 90px;
}
body#machi-guide .mg-food li::before {
	content: counter(mgf, decimal-leading-zero);
	position: absolute;
	left: 18px;
	top: 18px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--mg-food);
	color: #fff;
	font-family: Barlow, sans-serif;
	font-size: 15px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
}
body#machi-guide .mg-food li:target {
	border-color: var(--mg-food);
	box-shadow: 0 0 0 3px rgba(245, 157, 44, .18);
}
body#machi-guide .mg-food .g {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 500;
	color: var(--mg-food-tx);
	background: var(--mg-food-bg);
	border-radius: 3px;
	padding: 2px 8px;
	margin: 0 0 6px;
}
body#machi-guide .mg-food h3 {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
	margin: 0;
}
body#machi-guide .mg-food h3 a {
	color: #222;
	text-decoration: none;
}
body#machi-guide .mg-food h3 a:hover {
	color: var(--mg-c2);
	text-decoration: underline;
}
body#machi-guide .mg-food h3 small {
	font-size: 12px;
	font-weight: 400;
	color: #888;
	margin-left: 0.6em;
}
body#machi-guide .mg-food .a {
	font-size: 13px;
	color: var(--mg-c2);
	font-weight: 500;
	margin: 4px 0 0;
}
body#machi-guide .mg-food .a::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--mg-c);
	margin-right: 6px;
	vertical-align: 1px;
}
body#machi-guide .mg-food .d {
	font-size: 14px;
	line-height: 1.85;
	color: #444;
	margin: 8px 0 0;
}

/* 地図の凡例 */
body#machi-guide .mg-legend {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px 20px;
	font-size: 13px;
	color: #555;
	margin: -6px 0 14px;
}
body#machi-guide .mg-legend span::before {
	content: "";
	display: inline-block;
	width: 11px;
	height: 11px;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	margin-right: 6px;
	vertical-align: 0;
}
body#machi-guide .mg-legend .g::before { background: #50ba8e; }
body#machi-guide .mg-legend .o::before { background: #f59d2c; }
body#machi-guide .mg-legend .spot::before { background: var(--mg-c); }
body#machi-guide .mg-legend .food::before { background: var(--mg-food); }

/* くらしのリンク */
body#machi-guide .mg-links {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
body#machi-guide .mg-links .grp {
	background: #f7f9f8;
	border-radius: 12px;
	padding: 18px 18px 14px;
}
body#machi-guide .mg-links h3 {
	font-size: 15px;
	font-weight: 500;
	color: var(--mg-c2);
	margin: 0 0 8px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--mg-c);
}
body#machi-guide .mg-links ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
body#machi-guide .mg-links li {
	border-bottom: 1px solid #e6ece8;
}
body#machi-guide .mg-links li:last-child {
	border-bottom: 0;
}
body#machi-guide .mg-links a {
	display: block;
	position: relative;
	padding: 10px 20px 10px 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	color: #154595;
	text-decoration: none;
}
body#machi-guide .mg-links a::after {
	content: "›";
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	color: #aaa;
	font-size: 18px;
}
body#machi-guide .mg-links a[target="_blank"]::after {
	content: "↗";
	font-size: 12px;
}
body#machi-guide .mg-links a:hover {
	text-decoration: underline;
}
body#machi-guide .mg-links a small {
	display: block;
	font-size: 12px;
	font-weight: 400;
	color: #777;
	margin-top: 2px;
}

body#machi-guide .mg-cta {
	list-style: none;
	margin: 36px 0 72px;
	padding: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
}
body#machi-guide .mg-cta a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	min-width: 260px;
	padding: 0 24px;
	border-radius: 26px;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	box-sizing: border-box;
}
body#machi-guide .mg-cta li:first-child a {
	background: #35579e;
	color: #fff;
}
body#machi-guide .mg-cta li:last-child a {
	border: 1px solid #35579e;
	color: #35579e;
	background: #fff;
}

/* タブレット */
@media (max-width: 1024px) {
	body#machi-guide .mg-links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* スマホ */
@media (max-width: 767px) {
	body#machi-guide .mg-nav {
		margin-top: 24px;
		gap: 6px;
	}
	body#machi-guide .mg-nav a {
		padding: 8px 14px;
		font-size: 13px;
	}
	body#machi-guide .mg-h2 {
		font-size: 21px;
		font-weight: 500;
		margin-top: 44px;
		scroll-margin-top: 70px;
	}
	body#machi-guide .mg-sec {
		padding-top: 44px;
	}
	body#machi-guide .mg-lead {
		font-size: 14px;
		text-align: left;
		margin: 12px 0 20px;
	}
	body#machi-guide .mg-food {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	body#machi-guide .mg-food li {
		padding: 16px 16px 16px 60px;
	}
	body#machi-guide .mg-food li::before {
		left: 14px;
		top: 16px;
		width: 34px;
		height: 34px;
		font-size: 14px;
	}
	body#machi-guide .mg-food h3 {
		font-size: 16.5px;
	}
	body#machi-guide .mg-food h3 small {
		display: block;
		margin: 2px 0 0;
	}
	body#machi-guide .mg-food .d {
		font-size: 13.5px;
	}
	body#machi-guide .mg-note {
		text-align: left;
	}
	body#machi-guide .mg-links {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	body#machi-guide .mg-cta {
		flex-direction: column;
		margin: 28px 0 56px;
	}
	body#machi-guide .mg-cta a {
		min-width: 0;
		width: 100%;
	}
}

/* ==========================================================
   スマホ：地図（Google マップ）が下の「くらし情報」に重なるのを直す（2026-10-13）
   machi-guide.css はスマホ幅で枠（#box_gmap）の高さだけ 150vw に縮めていて、
   中の地図（#map）が 1080px のまま枠からはみ出していた。地図を枠の高さに合わせる。
   ========================================================== */
@media (max-width: 767px) {
	body#machi-guide #box_gmap #map {
		height: 100%;
	}
}
