/* タイル並び（アクセスの施設写真） */
.bgolf-tiles {
	align-items: start;
	display: grid;
	gap: var(--gap, 3px);
	grid-template-columns: repeat(auto-fill, minmax(var(--col-min, 240px), 1fr));
	margin: 0 auto;
}
.bgolf-tile {
	background: var(--tile-bg, #f0f0f0);
	display: block;
	overflow: hidden;
	position: relative;
}
.bgolf-tile > span {
	display: block;
}
.bgolf-tile img {
	height: 100%;
	left: 0;
	object-fit: cover;
	position: absolute;
	top: 0;
	width: 100%;
}
.bgolf-tiles.has-overlay .bgolf-tile:after {
	background: var(--overlay, rgba(0, 0, 0, 0.4)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-5-5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 30px 30px no-repeat;
	bottom: 0;
	content: "";
	left: 0;
	opacity: 0;
	position: absolute;
	right: 0;
	top: 0;
	transition: opacity 0.2s ease;
}
.bgolf-tiles.has-overlay .bgolf-tile:hover:after,
.bgolf-tiles.has-overlay .bgolf-tile:focus:after {
	opacity: 1;
}
@media only screen and (max-width: 520px) {
	.bgolf-tiles {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* カード型カルーセル（コーチ・スタッフ紹介） */
.bgolf-carousel {
	margin: 0 auto;
	max-width: 100%;
	padding: var(--pad, 8px) 0;
}
.bgolf-carousel-view {
	margin: 0 auto;
	max-width: 100%;
	overflow: hidden;
	width: var(--tile-w, 300px);
}
.bgolf-carousel-track {
	display: flex;
	gap: var(--space, 20px);
	will-change: transform;
}
.bgolf-card {
	background: var(--tile-bg, #333);
	color: inherit;
	display: flex;
	flex: 0 0 var(--card-w, var(--tile-w, 300px));
	flex-direction: column;
	height: var(--tile-h, 400px);
	overflow: hidden;
	position: relative;
	text-decoration: none;
}
.bgolf-card-image {
	display: block;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
	position: relative;
}
.bgolf-card-image img {
	height: 100%;
	left: 0;
	object-fit: cover;
	position: absolute;
	top: 0;
	transition: filter 0.3s ease;
	width: 100%;
}
.bgolf-carousel.has-overlay .bgolf-card-image:after {
	background: var(--overlay, rgba(0, 0, 0, 0.4)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.66 0l3-3a4 4 0 0 0-5.66-5.66l-1 1'/%3E%3Cpath d='M14 10a4 4 0 0 0-5.66 0l-3 3a4 4 0 0 0 5.66 5.66l1-1'/%3E%3C/svg%3E") center / 30px 30px no-repeat;
	bottom: 0;
	content: "";
	left: 0;
	opacity: 0;
	position: absolute;
	right: 0;
	top: 0;
	transition: opacity 0.3s ease;
}
.bgolf-carousel.has-overlay a.bgolf-card:hover .bgolf-card-image:after,
.bgolf-carousel.has-overlay a.bgolf-card:focus .bgolf-card-image:after {
	opacity: 1;
}
.bgolf-carousel.has-bw-hover .bgolf-card:hover img,
.bgolf-carousel.has-bw-hover .bgolf-card:focus img {
	filter: grayscale(1);
}
.bgolf-card-text {
	background: var(--panel-bg, rgba(0, 0, 0, 0.6));
	display: block;
	flex: 0 0 auto;
	font-family: Arial, Helvetica, sans-serif;
	padding: var(--panel-pad, 8px 11px);
	text-align: left;
}
.bgolf-card-title {
	color: var(--title-color, #fff);
	display: block;
	font-size: var(--title-size, 14px);
	font-weight: var(--title-weight, 700);
	line-height: 1;
}
.bgolf-card-desc {
	color: var(--desc-color, #fff);
	display: block;
	font-size: var(--desc-size, 14px);
	line-height: 1;
	margin-top: 5px;
}
.bgolf-carousel-nav {
	display: flex;
	gap: var(--arrow-space, 5px);
	justify-content: center;
	margin-top: var(--nav-margin, 20px);
}
.bgolf-carousel-prev,
.bgolf-carousel-next {
	background: #000;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	height: 36px;
	padding: 0;
	position: relative;
	width: 36px;
}
.bgolf-carousel-prev:hover,
.bgolf-carousel-next:hover {
	background: #333;
}
.bgolf-carousel-prev:before,
.bgolf-carousel-next:before {
	border-left: 3px solid #fff;
	border-top: 3px solid #fff;
	content: "";
	height: 10px;
	left: 50%;
	position: absolute;
	top: 50%;
	width: 10px;
}
.bgolf-carousel-prev:before {
	transform: translate(-30%, -50%) rotate(-45deg);
}
.bgolf-carousel-next:before {
	transform: translate(-70%, -50%) rotate(135deg);
}

/* 拡大表示 */
.bgolf-lb {
	align-items: center;
	background: #000;
	bottom: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	left: 0;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 100000;
}
.bgolf-lb[hidden] {
	display: none;
}
.bgolf-lb img {
	max-height: 82vh;
	max-width: 86vw;
	object-fit: contain;
}
.bgolf-lb-caption {
	color: #e5e5e5;
	font-size: 14px;
	margin-top: 12px;
	max-width: 550px;
	min-height: 1em;
	text-align: left;
}
.bgolf-lb-num {
	color: #e5e5e5;
	font-size: 14px;
	left: 16px;
	position: absolute;
	top: 14px;
}
.bgolf-lb-close,
.bgolf-lb-prev,
.bgolf-lb-next {
	background: transparent;
	border: 0;
	color: #fff;
	cursor: pointer;
	font-size: 44px;
	line-height: 1;
	padding: 8px 12px;
	position: absolute;
}
.bgolf-lb-close {
	right: 8px;
	top: 0;
}
.bgolf-lb-prev {
	left: 4px;
	top: 50%;
	transform: translateY(-50%);
}
.bgolf-lb-next {
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
}
