/* 境内散策: CSS circles and Noto Serif JP Light (300) for every numeral. */
.keidai-page { padding-bottom: 0; font-family: "Noto Serif JP", serif; }
.keidai-page .page-header { min-height: 400px; }
.keidai-container { width: calc(100% - var(--gutter) * 2); max-width: 1000px; margin-inline: auto; }
.keidai-hero {
	width: min(1200px, calc(100% - var(--gutter) * 2));
	aspect-ratio: 2400 / 901;
	margin-inline: auto;
	overflow: hidden;
}
.keidai-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.keidai-map-heading {
	position: relative;
	margin: 0 0 64px;
	padding-block: 40px 48px;
	border-bottom: 1px solid #777;
	font-size: 28px;
	font-weight: 400;
	letter-spacing: .24em;
	text-align: center;
}
.keidai-map-heading::after { content: ''; position: absolute; left: 8%; right: 8%; bottom: -9px; border-bottom: 1px solid #777; }
.keidai-map { container-type: inline-size; position: relative; width: min(1200px, 100%); margin-inline: auto; }
.keidai-map picture, .keidai-map img { display: block; width: 100%; }
.keidai-map picture { aspect-ratio: 2401 / 1209; }
.keidai-map img { height: 100%; }
/* Match the project's font family. Only digit glyphs at Light are bundled;
   normal Japanese text keeps the shared Noto Serif JP 400/600 styles. */
@font-face {
	font-family: "Noto Serif JP";
	src: url('../fonts/keidai-noto-serif-jp-light.woff2') format('woff2');
	font-style: normal;
	font-weight: 300;
	font-display: block;
	unicode-range: U+0030-0039;
	ascent-override: 86%;
	descent-override: 14%;
	line-gap-override: 0%;
}
.keidai-map-link,
.keidai-number {
	display: inline-grid;
	place-items: center;
	width: var(--keidai-circle-size);
	height: var(--keidai-circle-size);
	border-radius: 50%;
	background: #4857a3;
	color: #fff;
	font-family: "Noto Serif JP", serif;
	font-weight: 300;
	font-style: normal;
	font-synthesis: none;
	font-variant-numeric: lining-nums tabular-nums;
	font-size: calc(var(--keidai-circle-size) * .7);
	line-height: 1;
	letter-spacing: 0;
	text-align: center;
	text-indent: 0;
}
.keidai-map-link {
	--keidai-circle-size: 3cqw;
	position: absolute;
	left: var(--map-pc-x);
	top: var(--map-pc-y);
	border: 1px solid #fff;
	transform: translate(-50%, -50%);
	text-decoration: none;
}
.keidai-map-link span { display: block; }
.keidai-map-link:hover, .keidai-map-link:focus-visible { color: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #4857a3; outline-color: #4857a3; }
.keidai-number { --keidai-circle-size: 32px; flex: 0 0 auto; }
.keidai-guide-list { width: max-content; max-width: calc(100% - var(--gutter) * 2); margin: 72px auto 88px; }
.keidai-guide-list ol { display: grid; grid-template-columns: max-content max-content; column-gap: 64px; margin: 0; padding: 0; list-style: none; }
.keidai-guide-list li:last-child { grid-column: 1 / -1; }
.keidai-guide-list a { display: flex; align-items: center; gap: 16px; min-height: 50px; font-size: 18px; text-decoration: none; }
.keidai-guide-list a:hover, .keidai-guide-list a:focus-visible { color: #4857a3; text-decoration: underline; }
.keidai-places { padding-bottom: 152px; }
.keidai-place { scroll-margin-top: calc(var(--header-height, 88px) + var(--admin-bar-offset, 0px) + 24px); }
.keidai-place + .keidai-place { margin-top: 152px; }
.keidai-place-main { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 51fr); gap: 40px; align-items: start; }
.keidai-place-photo img { width: 100%; height: auto; }
.keidai-place-body { min-width: 0; }
.keidai-place-body h2 { display: flex; align-items: center; gap: 16px; margin: 4px 0 28px; font-size: 20px; font-weight: 400; letter-spacing: .24em; }
.keidai-place-body h2 > span:last-child { min-width: 0; }
.keidai-place-body p { margin: 0; line-height: 1.9; }
.keidai-related-link { display: inline-block; color: #4857a3; }
.keidai-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.keidai-gallery-photo img { width: 100%; height: auto; aspect-ratio: 1.36; object-fit: cover; }
.keidai-gallery--single .keidai-gallery-photo img { aspect-ratio: auto; }
.keidai-gallery-photo--kouro img { object-position: center 65%; }
@media (width < 1120px) {
	.keidai-place-main { gap: 32px; }
	.keidai-place-body h2 { gap: 12px; font-size: 18px; letter-spacing: .16em; }
	.keidai-place + .keidai-place { margin-top: 112px; }
}
@media (width < 768px) {
	.keidai-page .page-header { min-height: 250px; }
	.keidai-container { width: calc(100% - 50px); }
	.keidai-hero { width: 100%; aspect-ratio: 390 / 360; max-height: 75svh; }
	.keidai-map-heading { margin-bottom: 48px; padding-block: 48px 24px; font-size: 24px; }
	.keidai-map { width: calc(100% - 50px); max-width: 500px; }
	.keidai-map picture { aspect-ratio: 681 / 1234; }
	.keidai-map-link {
		left: var(--map-sp-x);
		top: var(--map-sp-y);
		--keidai-circle-size: 8.5cqw;
	}
	.keidai-guide-list { max-width: calc(100% - 50px); margin-block: 24px 56px; }
	.keidai-guide-list ol {
		grid-template-columns: minmax(0, max-content) max-content;
		column-gap: 32px;
		row-gap: 8px;
	}
	.keidai-guide-list li { min-width: 0; }
	.keidai-guide-list li:last-child { grid-column: auto; }
	.keidai-guide-list a > span:last-child { min-width: 0; overflow-wrap: anywhere; }
	.keidai-guide-list a { min-height: 44px; gap: 10px; font-size: 15px; }
	.keidai-guide-list .keidai-number { --keidai-circle-size: 32px; }
	.keidai-places { padding-bottom: 72px; }
	.keidai-place + .keidai-place { margin-top: 96px; }
	.keidai-place-main { display: block; }
	.keidai-place-body h2 { margin-block: 16px 16px; gap: 16px; font-size: 18px; letter-spacing: .22em; }
	.keidai-place-body h2 .keidai-number { --keidai-circle-size: 32px; }
	.keidai-place-body p { font-size: 16px; line-height: 1.9; }
	.keidai-gallery { display: flex; flex-direction: column; gap: 20px; width: calc(100% - 40px); max-width: 400px; margin: 24px auto 0; }
	.keidai-gallery-photo img { aspect-ratio: auto; height: auto; }
	.keidai-gallery-photo--kouro img { aspect-ratio: 1.5; object-fit: cover; }
}
@media screen and (prefers-reduced-motion: no-preference) {
	html:has(.keidai-page) { scroll-behavior: smooth; }
}
@media print {
	.keidai-page .page-header { min-height: 0; padding-block: 24px; }
	.keidai-hero img { position: static; transform: none; }
	.keidai-guide-list { margin-block: 24px; }
	.keidai-place { break-inside: avoid; }
	.keidai-place + .keidai-place { margin-top: 48px; }
	.keidai-places { padding-bottom: 24px; }
}
