/* 背景（初期状態は隠す） */
#popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    z-index: 99999 !important; /* 他の要素より確実に前に出す */
    display: flex !important;
    justify-content: center;
    align-items: center;

    /* アニメーション用設定 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* フォント共通設定 */
#popup-overlay p,
#popup-overlay h2,
#close-btn {
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", "yugo", sans-serif;
    font-weight: bold;
    line-height: 1.7;
}

#popup-overlay h3 {
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", "yugo", sans-serif;
    font-weight: bold;
    line-height: 1.7;
	font-size: 14px;
	width: 100%;
	text-align: right;
}

/* ★このクラスが付いた時に表示される★ */
#popup-overlay.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ポップアップ本体 */
.popup-content {
    background: #fff;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    box-sizing: border-box;
    transform: translateY(20px);
    transition: transform 0.5s ease;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

#popup-overlay.is-visible .popup-content {
    transform: translateY(0);
}

/* テキストエリアの調整 */
.popup-body {
    overflow-y: auto;
    text-align: left;
    margin-bottom: 10px;
}

.popup-body p {
    font-size: 16px; /* ご指定のサイズ */
    margin-bottom: 1.2em;
    color: #333;
}

.popup-title {
    font-size: 22px; /* タイトルは少し大きく調整 */
    margin-bottom: 20px;
    color: #000;
}

/* お知らせ枠（予約期限など） */
.info-box {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
	text-align: center;
	color: #D79300;
	font-size: 18px;
}

/* レスポンシブ */
@media screen and (min-width: 769px) {
    .popup-content { width: 800px; padding: 50px; }
}
@media screen and (max-width: 768px) {
    .popup-content { width: 95%; padding: 30px 20px; }
    .popup-body p { font-size: 15px; } /* スマホでは微調整 */
}

/* 閉じるボタン */
#close-btn {
    margin-top: 20px;
    padding: 12px 40px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px; /* ご指定のサイズ */
    transition: background 0.3s;
}

#close-btn:hover {
    background-color: #555;
}