/* 画面全体の設定 */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #000; /* ページ全体のベースを黒に */
}

/* 背景（オーバーレイ）の設定 */
.modal-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9); /* 濃いめの半透明な黒 */
}

/* 画像とボタンを包むコンテナ */
.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

/* メイン画像 */
.center-img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    height: auto;
    border: 2px solid #333; /* 画像の輪郭を少し強調 */
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* 閉じるボタン */
.close-btn {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 44px;
    height: 44px;
    background-color: #ff4081; /* アクセントカラーのピンク */
    color: #fff;
    text-decoration: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    font-family: sans-serif;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    z-index: 10;
}

/* ボタンのホバー演出 */
.close-btn:hover {
    transform: scale(1.1) rotate(90deg);
    background-color: #fff;
    color: #ff4081;
}