/* =========================================================
   あべクリニック アクセスページ専用スタイルシート (lab23-child)
   ========================================================= */

.home-rebuild {
	--green: #07913a;
	--green-d: #06762f;
	--green-bright: #00bb3d;
	--green-tint: #eef6f1;
	--ink: #2c3331;
	--sub: #5f6b66;
	--line: #e3e9e6;
	--bg-soft: #f5f8f7;
	--orange: #e8902f;
	--blue: #2f76ad;
	--line-green: #4cae4a;

	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
}

.home-rebuild *,
.home-rebuild *::before,
.home-rebuild *::after {
	box-sizing: border-box;
}

.hp-container {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 24px;
}

.hp-section {
	padding: 60px 0;
}

/* ---------- アクセスレイアウト ---------- */
.hp-access {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 40px;
	align-items: start;
	margin-bottom: 40px;
}

.hp-access__info p {
	font-size: 15px;
	line-height: 1.9;
	margin: 0 0 14px;
}

.hp-access__tel {
	margin-top: 14px;
	margin-bottom: 8px;
}

.hp-access__tel a {
	color: var(--ink);
	text-decoration: none;
	font-size: 24px;
	font-weight: 700;
	transition: color 0.2s ease;
}

.hp-access__tel a:hover {
	color: var(--green);
}

.hp-access__fax {
	font-size: 15px;
	color: var(--sub);
	margin-bottom: 20px;
}

.hp-maplink {
	display: inline-block;
	color: var(--blue);
	text-decoration: none;
	font-weight: 700;
	margin-top: 10px;
	transition: opacity 0.2s ease;
}

.hp-maplink:hover {
	opacity: 0.8;
}

.hp-access__map iframe {
	width: 100%;
	height: 380px;
	border: 0;
	border-radius: 14px;
	display: block;
}

/* 駅からの道順写真 */
.hp-access__route {
	margin-top: 40px;
}

.hp-access__route .hp-block__title {
	font-size: 22px;
	font-weight: 700;
	color: var(--ink);
	margin: 0 0 20px;
	position: relative;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--line);
}

.hp-block__title {
	font-size: 22px;
	font-weight: 700;
	color: var(--ink);
	margin: 0 0 15px;
}

.hp-access__photos {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin-top: 8px;
}

.hp-access__photo {
	margin: 0;
}

.hp-access__photo img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 10px;
	border: 1px solid var(--line);
	display: block;
	height: auto;
}

.hp-access__photo figcaption {
	font-size: 13px;
	line-height: 1.6;
	color: var(--sub);
	margin-top: 8px;
}

.hp-list {
	padding-left: 20px;
	margin: 0 0 20px 0;
}

.hp-list li {
	font-size: 15px;
	line-height: 1.8;
	color: var(--sub);
	margin-bottom: 8px;
}

.hp-list li:last-child {
	margin-bottom: 0;
}

/* ページヘッダー（タイトル帯） */
.hp-page-header {
	background: var(--green-tint);
	padding: 52px 0;
	text-align: center;
	position: static;
	height: auto;
	margin-bottom: 40px;
}

.home-rebuild .hp-page-header__eyebrow {
	display: block;
	font-size: 13px;
	letter-spacing: .18em;
	font-weight: 700;
	color: var(--green);
	margin: 0 0 10px;
}

.home-rebuild .hp-page-header__title {
	font-size: 30px;
	font-weight: 700;
	color: var(--ink);
	margin: 0;
	line-height: 1.4;
	border: none;
}

.hp-page-header__title::after {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	border-radius: 3px;
	background: var(--green-bright);
	margin: 16px auto 0;
}

/* =========================================================
   レスポンシブ対応
   ========================================================= */
@media (max-width: 991px) {
	.hp-access {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.hp-access__map iframe {
		height: 320px;
	}
}

@media (max-width: 768px) {
	.hp-section {
		padding: 40px 0;
	}

	.hp-container {
		padding: 0 18px;
	}

	.hp-page-header {
		padding: 36px 0;
	}

	.home-rebuild .hp-page-header__title {
		font-size: 22px;
	}

	.hp-block__title,
	.hp-access__route .hp-block__title {
		font-size: 18px;
	}

	.hp-access__map iframe {
		height: 280px;
	}

	/* 駅からの道順写真: モバイルは2列 */
	.hp-access__photos {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}
}

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