/* ---- モーダルのオーバーレイ ---- */

.modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	display: none;
	/* 初期状態は非表示 */
	align-items: center;
	justify-content: center;
	z-index: 999;
}

.modal.is-open {
	display: flex;
}

/* ---- モーダル本体 ---- */
.modal__content {
	background: #fff;
	max-width: 900px;
	width: 90%;
	max-height: 90vh;
	border-radius: 1rem;
	padding: 1.5rem 1.5rem 1.125rem;
	box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, 0.25);
	position: relative;
	overflow-y: auto;
}

.modal__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

.modal__title {
	margin: 0;
	font-size: 1.35rem !important;
	font-weight: 600;
	padding-bottom: .5rem;
}

.modal__close-btn {
	background: transparent;
	border: none;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	padding: 4px;
}

.modal__section {
	margin-bottom: 1.125rem;
}

.modal__images-row {
	display: flex;
	gap: 1rem;
	margin-bottom: 8px;
}

.modal__image-wrap {
	flex: 1 1 0;
	border-radius: .5rem;
	overflow: hidden;
	border: 1px solid #eee;
	background: #fafafa;
}

.modal__image-st {
	font-size: 1.125rem;
	font-weight: 500;
	text-align: center;
	padding: .25rem;
	width: 100%;
	background: #14aacf;
	color: white;
}

.modal__image-wrap:nth-child(2n) .modal__image-st {
	background: var(--red);
	color: white;
}

.modal__image {
	width: 100%;
	display: block;
	object-fit: cover;
}

.modal__description {
	font-size: 1.125rem;
	line-height: 1.6;
	color: #333;
}

/* ---- SP向け（横並びを縦積みに） ---- */
@media (max-width: 599px) {
	.modal__images-row {
		flex-direction: column;
	}

	.modal__image-wrap {
		flex: unset;
	}
}

/* ------------------------------- */

.btn {
	width: 100%;
	border: unset;
	font-size: 1.125rem;
	cursor: pointer;
	border-radius: .25rem;
	padding: .5rem;
	margin-bottom: .5rem;
}

.btn--primary {
	background: #14aacf;
	color: white;
}