/**
 * /sotomachi 専用レイアウト（style.css は極力触らない）
 * 参考: https://ozuanimal.com/sotomachi/
 */

.sotomachi-page .sotomachi-main-banner {
	margin: 0 auto 40px;
	text-align: center;
}

/* PC: 拡大せず実寸（コンテナ幅を超えない範囲）・中央 */
.sotomachi-page .sotomachi-main-banner img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

.sotomachi-page .cmn_inner > .sotomachi-main-banner:last-child {
	margin: 40px 0 0;
}

.sotomachi-page .sotomachi-section {
	margin: 36px 0;
}

.sotomachi-page .sotomachi-section:first-of-type {
	margin-top: 0;
}

.sotomachi-page .sotomachi-section:last-of-type {
	margin-bottom: 0;
}

.sotomachi-page .sotomachi-section .cmn_txt:last-child,
.sotomachi-page .sotomachi-section .cmn_attn:last-child,
.sotomachi-page .sotomachi-section .cmn_list:last-child {
	margin-bottom: 0;
}

/* このページでは h3 の上余白を常に統一 */
.sotomachi-page .cmn_ttl03 {
	margin-top: 40px;
}

.sotomachi-page .sotomachi-line-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px 32px;
	margin: 32px 0 48px;
	align-items: start;
}

.sotomachi-page .sotomachi-line-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.sotomachi-page .sotomachi-line-block .cmn_txt {
	text-align: center;
	margin-bottom: 12px;
}

.sotomachi-page .sotomachi-line-block .cmn_txt:last-child {
	margin-bottom: 0;
}

.sotomachi-page .sotomachi-line-block img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

.sotomachi-page .sotomachi-qr {
	width: 100%;
	margin: 16px auto 0;
}

.sotomachi-page .sotomachi-qr img {
	width: 100%;
	height: auto;
}

/* 説明動画：PCは横並び・SPは縦積み */
.sotomachi-page .sotomachi-videos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 32px 24px;
	margin: 24px 0 40px;
}

.sotomachi-page .sotomachi-video-card {
	flex: 1 1 280px;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0 auto;
}

.sotomachi-page .sotomachi-video-card__title {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: bold;
	color: #189f83;
	text-align: center;
	line-height: 1.4;
}

.sotomachi-page .sotomachi-video {
	position: relative;
	width: min(100%, 340px);
	aspect-ratio: 9 / 16;
	background: #272727;
	margin: 0 auto;
}

.sotomachi-page .sotomachi-video__play {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	padding: 0;
	border: none;
	cursor: pointer;
	background: transparent;
}

.sotomachi-page .sotomachi-video__thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sotomachi-page .sotomachi-video__icon {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	pointer-events: none;
}

.sotomachi-page .sotomachi-video__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	width: 0;
	height: 0;
	margin: -12px 0 0 -8px;
	border-style: solid;
	border-width: 12px 0 12px 20px;
	border-color: transparent transparent transparent #fff;
}

.sotomachi-page .sotomachi-video.is-playing .sotomachi-video__play {
	display: none;
}

.sotomachi-page .sotomachi-video iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.sotomachi-page .sotomachi-video__fallback {
	margin: 8px 0 0;
	font-size: 14px;
	text-align: center;
	color: #272727;
}

@media screen and (max-width: 768px) {
	.sotomachi-page .sotomachi-main-banner img {
		width: 100%;
	}

	.sotomachi-page .sotomachi-line-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.sotomachi-page .sotomachi-video-card {
		max-width: 100%;
		flex: 1 1 100%;
	}

	.sotomachi-page .sotomachi-video {
		max-width: 420px;
		margin: 0 auto;
	}
}
