/* center/css/modal.css */

/* モーダルのオーバーレイ背景 */
.apply-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5); /* 半透明の黒 */
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.3s ease,
		visibility 0.3s ease;
	z-index: 9999; /* 他の要素より手前に表示 */
}

/* モーダル表示時のクラス */
.apply-modal-overlay.is-active {
	opacity: 1;
	visibility: visible;
}

/* モーダル本体 */
.apply-modal-content {
	background-color: #fff;
	border-radius: 8px;
	width: 90%;
	max-width: 500px;
	padding: 24px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	transform: translateY(20px);
	transition: transform 0.3s ease;
	position: relative;
}

.apply-modal-overlay.is-active .apply-modal-content {
	transform: translateY(0);
}

/* モーダルのヘッダー */
.apply-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 20px;
	border-bottom: 2px solid #f0f4f8;
	padding-bottom: 12px;
}

.apply-modal-title {
	font-size: 1.25rem;
	font-weight: bold;
	color: #333;
	margin: 0;
	line-height: 1.4;
}

/* 閉じるボタン */
.apply-modal-close {
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: #999;
	padding: 0;
	line-height: 1;
	width: 30px;
	height: 30px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
	transition:
		background-color 0.2s,
		color 0.2s;
	flex-shrink: 0; /* タイトルが長くても縮まないように */
}

.apply-modal-close:hover {
	background-color: #f5f5f5;
	color: #333;
}

/* 日程リストのエリア */
.apply-modal-body {
	margin-bottom: 20px;
}

.apply-modal-desc {
	font-size: 0.95rem;
	color: #666;
	margin-bottom: 16px;
}

.apply-modal-dates {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* 各日程の選択ボタン */
.apply-modal-date-btn {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	background-color: #f8fbff;
	border: 1px solid #cce0ff;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	color: #333;
}

.apply-modal-date-btn:hover {
	background-color: #e6f0ff;
	border-color: #0056b3;
	transform: translateY(-2px);
	box-shadow: 0 2px 8px rgba(0, 86, 179, 0.1);
}

.apply-modal-date-month {
	font-weight: bold;
	color: #0056b3;
	margin-right: 12px;
	font-size: 1.1rem;
}

.apply-modal-date-days {
	font-size: 1rem;
	flex-grow: 1;
}

.apply-modal-date-arrow {
	color: #0056b3;
	font-weight: bold;
}

/* 日程がない場合のメッセージ */
.apply-modal-empty {
	text-align: center;
	color: #888;
	padding: 20px 0;
	background-color: #f9f9f9;
	border-radius: 6px;
}
