.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.6); /* 背景を60%の暗さに */
display: flex;
justify-content: center;
align-items: center;
z-index: 9999; /* 確実に最前面に表示 */
opacity: 1;
transition: opacity 0.3s ease;
}
/* ポップアップの白いボックス本体 */
.modal-content {
background-color: #ffffff;
padding: 32px;
border-radius: 12px;
max-width: 600px;
width: 90%;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
animation: slideUp 0.4s ease;
}
/* 各言語セクションのスタイル */
.notice-section h2 {
font-size: 1.1rem;
color: #1a1a1a;
margin-top: 0;
margin-bottom: 12px;
font-weight: 700;
}
.notice-section p {
font-size: 0.9rem;
color: #4a4a4a;
line-height: 1.6;
margin: 0 0 12px 0;
}
.notice-section p:last-child {
margin-bottom: 0;
}
/* 英語と日本語の間の区切り線 */
.modal-divider {
border: none;
border-top: 1px solid #e5e7eb;
margin: 20px 0;
}
/* ボタンの配置エリア */
.modal-actions {
text-align: center;
margin-top: 24px;
}
/* 閉じるボタンのデザイン */
.modal-btn {
background-color: #1f2937; /* 洗練されたダークグレー */
color: #ffffff;
border: none;
padding: 12px 36px;
font-size: 0.95rem;
font-weight: 600;
border-radius: 6px;
cursor: pointer;
transition: background-color 0.2s ease, transform 0.1s ease;
}
.modal-btn:hover {
background-color: #374151; /* ホバー時に少し明るく */
}
.modal-btn:active {
transform: scale(0.98); /* クリック時に少し縮むエフェクト */
}
/* 非表示にするためのクラス（JSで使用） */
.modal-overlay.is-hidden {
opacity: 0;
pointer-events: none; /* クリックを無効化 */
}
/* ふんわり下から浮き出るアニメーション */
@keyframes slideUp {
from {
transform: translateY(20px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}