/* =========================================================
   診療時間・アクセス 専用CSS（page-access.php）
   共通部分は soshigaya-base.css
========================================================= */

/* --- 完全予約制のご案内 --- */
.p-ssg .p-access-top {
	padding-bottom: 100px;
}
.p-access-intro {
	display: grid;
	grid-template-columns: 51% 1fr;
	gap: 40px;
	align-items: center;
	max-width: 1280px;
	margin: 0 auto;
}
.p-access-intro__img img {
	width: 100%;
	aspect-ratio: 650 / 398;
	object-fit: cover;
	border-radius: 0 var(--ssg-radius) var(--ssg-radius) 0;
}
.p-access-intro__body {
	max-width: 420px;
	padding-right: 20px;
}
.p-ssg .p-access-intro__title {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.75;
	letter-spacing: .04em;
}
.p-access-intro__text {
	margin-top: 22px !important;
}

.p-access-btns {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 50px;
}
.p-access-tel__title {
	margin-top: 20px !important;
	font-family: var(--ssg-font);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.6;
}
.p-access-tel__title a {
	text-decoration: none;
}
.p-access-tel__note {
	margin-top: 8px !important;
	font-size: 13px;
}

/* --- クリニック情報・地図 --- */
.p-access-info {
	display: grid;
	grid-template-columns: minmax(0, 588px) minmax(0, 427px);
	justify-content: space-between;
	gap: 40px;
	margin-top: 80px;
}
.p-access-info__map {
	position: relative;
	aspect-ratio: 588 / 355;
	border-radius: var(--ssg-radius);
	overflow: hidden;
	background: #eee;
}
.p-access-info__map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.p-access-info__logo {
	width: 268px;
}
.p-ssg .p-access-info__name {
	margin-top: 18px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.5;
}
.p-access-info__dept {
	margin-top: 8px !important;
	font-size: 14px;
}
.p-access-info__dept span {
	margin: 0 .4em;
	color: #bbb;
}
.p-access-info__address {
	margin-top: 26px !important;
	font-size: 14px;
	line-height: 1.8;
}
.p-ssgBtn.p-access-info__btn {
	display: flex;
	margin-top: 26px;
}

/* --- 診療時間表 --- */
.p-access-hours {
	margin-top: 60px;
	overflow-x: auto;
}
.p-access-hours__table {
	width: 100%;
	min-width: 640px;
	margin: 0;
	border-collapse: collapse;
	table-layout: fixed;
	font-family: var(--ssg-font);
	font-size: 16px;
	line-height: 1.8;
	text-align: center;
}
.p-access-hours__table th,
.p-access-hours__table td {
	padding: 18px 6px;
	border: 2px solid #e8e3dc;
	vertical-align: middle;
}
.p-access-hours__table thead th {
	padding: 6px;
	background: var(--ssg-teal);
	color: #fff;
	font-weight: 700;
}
.p-access-hours__table thead th:first-child {
	width: 16.5%;
}
.p-access-hours__table tbody th {
	background: #fff;
	font-weight: 700;
}
.p-access-hours__table td {
	background: var(--ssg-cream);
}
.p-access-hours__note {
	margin-top: 22px !important;
	font-size: 14px;
}
.p-access-hours__note span {
	margin-left: 1em;
}

/* --- 駐車場・駐輪場 --- */
.p-access-parking {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 420px;
	gap: 30px;
	align-items: start;
	margin-top: 80px;
	padding: 40px 40px 40px 40px;
	border-radius: 12px;
	background: var(--ssg-gray);
}
.p-ssg .p-access-parking__title {
	margin-bottom: 16px;
	font-size: 25px;
	font-weight: 700;
	line-height: 1.5;
}
.p-access-parking__img img {
	width: 100%;
	aspect-ratio: 420 / 300;
	object-fit: cover;
	border-radius: var(--ssg-radius);
}

/* --- 所在地 --- */
.p-access-location__inner {
	display: grid;
	grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
	gap: 40px;
	align-items: center;
}
.p-access-location__map img {
	width: 100%;
	border: 1px solid var(--ssg-brown);
	border-radius: var(--ssg-radius);
}
.p-ssg .p-access-location__name {
	font-size: 25px;
	font-weight: 700;
	line-height: 1.5;
}
.p-access-location__address {
	margin-top: 48px !important;
	font-size: 17px;
	line-height: 1.9;
}
.p-access-location__station {
	margin-top: 24px !important;
	font-family: var(--ssg-font);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.9;
}

/* --- 駅からの道のり --- */
.p-access-route__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 70px 40px;
	margin-top: 70px !important;
}
.p-access-route__img {
	position: relative;
}
.p-access-route__img img {
	width: 100%;
	aspect-ratio: 440 / 330;
	object-fit: cover;
	border-radius: var(--ssg-radius);
}
.p-access-route__num {
	position: absolute;
	top: -30px;
	left: -10px;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 85px;
	height: 85px;
	border-radius: 50%;
	background: var(--ssg-teal);
	color: #fff;
	font-family: var(--ssg-font-body);
	font-size: 40px;
	font-weight: 700;
	line-height: 1;
}
.p-access-route__text {
	margin-top: 26px !important;
	font-size: 16px;
}

/* --- 道のり動画 --- */
.p-access-video {
	margin-top: 80px;
	border: 1px solid var(--ssg-teal);
	border-radius: 6px;
	overflow: hidden;
}
.p-ssg .p-access-video__title {
	padding: 10px 20px;
	background: var(--ssg-teal);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.6;
	text-align: center;
}
.p-access-video__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
}
.p-access-video__frame iframe,
.p-access-video__frame img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	border: 0;
	object-fit: cover;
}

/* =========================================================
   タブレット（〜1024px）
========================================================= */
@media (max-width: 1024px) {
	.p-access-intro {
		grid-template-columns: 48% 1fr;
		gap: 30px;
	}
	.p-ssg .p-access-intro__title {
		font-size: 22px;
	}
	.p-access-info {
		grid-template-columns: 1fr 1fr;
	}
	.p-access-parking {
		grid-template-columns: 1fr 1fr;
	}
	.p-access-location__inner {
		grid-template-columns: 1fr 1fr;
	}
}

/* =========================================================
   SP（〜767px）
========================================================= */
@media (max-width: 767px) {
	.p-ssg .p-access-top {
		padding-bottom: 60px;
	}
	.p-access-intro {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.p-access-intro__img {
		padding-right: 20px;
	}
	.p-access-intro__body {
		max-width: none;
		padding: 0 20px;
	}
	.p-ssg .p-access-intro__title {
		font-size: 19px;
		letter-spacing: .02em;
	}
	.p-access-intro__title br {
		display: none;
	}
	.p-access-btns {
		grid-template-columns: 1fr;
		gap: 10px;
		margin-top: 32px;
	}
	.p-access-tel__title {
		font-size: 15px;
	}
	.p-access-tel__note {
		font-size: 12px;
	}

	.p-access-info {
		grid-template-columns: 1fr;
		gap: 24px;
		margin-top: 50px;
	}
	.p-access-info__logo {
		width: 200px;
	}
	.p-ssg .p-access-info__name {
		font-size: 19px;
	}
	.p-access-info__address {
		margin-top: 16px !important;
	}

	.p-access-hours {
		margin-top: 40px;
		margin-right: -20px;
	}
	.p-access-hours__table {
		min-width: 560px;
		font-size: 13px;
		line-height: 1.6;
	}
	.p-access-hours__table th,
	.p-access-hours__table td {
		padding: 12px 4px;
	}
	.p-access-hours__table thead th:first-child {
		width: 22%;
	}
	.p-access-hours__note span {
		display: block;
		margin-left: 0;
	}

	.p-access-parking {
		grid-template-columns: 1fr;
		gap: 20px;
		margin-top: 50px;
		padding: 24px 20px;
	}
	.p-ssg .p-access-parking__title {
		font-size: 19px;
	}

	.p-access-location__inner {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.p-ssg .p-access-location__name {
		font-size: 19px;
	}
	.p-access-location__address {
		margin-top: 16px !important;
		font-size: 15px;
	}
	.p-access-location__station {
		margin-top: 12px !important;
		font-size: 15px;
	}

	.p-access-route__list {
		grid-template-columns: 1fr;
		gap: 50px;
		margin-top: 40px !important;
		padding: 0 0 0 10px !important;
	}
	.p-access-route__num {
		top: -20px;
		width: 56px;
		height: 56px;
		font-size: 26px;
	}
	.p-access-route__text {
		margin-top: 14px !important;
		font-size: 14px;
	}
	.p-access-video {
		margin-top: 50px;
	}
	.p-ssg .p-access-video__title {
		font-size: 15px;
	}
}
