@charset "utf-8";

/* ************************************************
*	プラグインから置き換えた機能のスタイル（inc/extras.php）
* ************************************************ */

/* ---------- SNS 共有リンク ---------- */

.bd-share {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 40px 0 0 0;
	padding: 0;
}

.bd-share li {
	margin: 0;
	padding: 0;
	list-style: none;
	background: none;
}

.bd-share a {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: #fff;
	color: #666;
	font-size: 12px;
	line-height: 1.6;
	letter-spacing: 0.05em;
	text-decoration: none;
}

.bd-share a:hover,
.bd-share a:focus {
	border-color: #45AAB8;
	color: #45AAB8;
}

/* ---------- 画像の拡大表示 ---------- */

html.bd-lightbox-open {
	overflow: hidden;
}

.bd-lightbox {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 56px;
	box-sizing: border-box;
	background: rgba(20, 20, 20, 0.88);
	cursor: zoom-out;
}

.bd-lightbox[hidden] {
	display: none;
}

.bd-lightbox-figure {
	margin: 0;
	padding: 0;
	max-width: 100%;
	max-height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.bd-lightbox-image {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 140px);
	width: auto;
	height: auto;
	background: #fff;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
	cursor: default;
	transition: opacity 0.2s;
}

.bd-lightbox.is-loading .bd-lightbox-image {
	opacity: 0.2;
}

.bd-lightbox-caption {
	margin-top: 12px;
	color: #eee;
	font-size: 13px;
	font-style: normal;
	line-height: 1.6;
	text-align: center;
	overflow-wrap: break-word;
}

.bd-lightbox button {
	position: absolute;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 28px;
	line-height: 44px;
	text-align: center;
	cursor: pointer;
}

.bd-lightbox button:hover,
.bd-lightbox button:focus {
	background: rgba(69, 170, 184, 0.9);
	outline: none;
}

.bd-lightbox button[hidden] {
	display: none;
}

.bd-lightbox-close {
	top: 8px;
	right: 8px;
}

.bd-lightbox-prev {
	left: 6px;
	top: 50%;
	margin-top: -22px;
}

.bd-lightbox-next {
	right: 6px;
	top: 50%;
	margin-top: -22px;
}

@media only screen and (max-width: 767px) {
	.bd-lightbox {
		padding: 56px 8px;
	}

	.bd-lightbox-image {
		max-height: calc(100vh - 170px);
	}
}
