/* モーダル */
.modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s;
}

.modal-backdrop.show {
	opacity: 1;
	visibility: visible;
}

.modal-content {
	background-color: white;
	border-radius: 10px;
	width: 400px;
	max-width: 90%;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	transform: translateY(-20px);
	transition: all 0.3s;
}

.modal-backdrop.show .modal-content {
	transform: translateY(0);
}

.modal-header {
	padding: 15px 20px;
	border-bottom: 1px solid #e0e0e0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.modal-title {
	font-size: 18px;
	font-weight: bold;
}

.close-modal {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #999;
	transition: color 0.2s;
}

.close-modal:hover {
	color: #333;
}

.modal-body {
	padding: 20px;
}

.form-group {
	margin-bottom: 15px;
}

.form-label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
}

.form-input {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 5px;
	transition: border-color 0.2s;
}

.form-input:focus {
	outline: none;
	border-color: #000000;
}

.color-options {
	display: flex;
	gap: 10px;
	margin-top: 10px;
	flex-wrap: wrap;
}

.color-option {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
}

.color-option:hover {
	transform: scale(1.2);
}

.color-option.selected {
	transform: scale(1.2);
	box-shadow: 0 0 0 2px white, 0 0 0 4px currentColor;
}

.modal-footer {
	padding: 15px 20px;
	border-top: 1px solid #e0e0e0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.modal-btn {
	padding: 8px 16px;
	border-radius: 5px;
	cursor: pointer;
	font-weight: bold;
	transition: background-color 0.2s, transform 0.2s;
}

.modal-btn:hover {
	transform: translateY(-2px);
}

.modal-btn:active {
	transform: translateY(1px);
}

.modal-btn-cancel {
	background-color: #f0f0f0;
	border: 1px solid #ccc;
	color: #333;
}

.modal-btn-cancel:hover {
	background-color: #e0e0e0;
}

.modal-btn-primary {
	background-color: #000000;
	border: 1px solid #333333;
	color: white;
}

.modal-btn-primary:hover {
	background-color: #333333;
}

.modal-btn-text {
	background: none;
	border: none;
	color: #666;
	text-decoration: underline;
	padding: 5px;
}

.modal-btn-text:hover {
	color: #000;
}

.form-message {
	margin-top: 10px;
	padding: 8px;
	border-radius: 5px;
	font-size: 14px;
}

.form-message.error {
	background-color: #ffebee;
	color: #d32f2f;
	border: 1px solid #ffcdd2;
}

.form-message.success {
	background-color: #e8f5e9;
	color: #388e3c;
	border: 1px solid #c8e6c9;
}