/* ポップアップ全体（普段は非表示） */
.popup {
    display: none;
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.popup:target { display: flex; }   /* URLが #about のときだけ表示 */

/* 明るい背景（押すと閉じる） */
.popup_bg {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(255, 255, 255, 0.6);
}

/* 角丸長方形の本体 */
.popup_inner {
    position: relative;
    width: 560px;
    max-width: 100%;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 56px 40px 36px;
    border-radius: 25px;
    background: #D9D9D9;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.popup_title {
    margin: 0 0 20px;
    font-family: "Corporate Logo ver3", "Noto Sans JP", sans-serif;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}
.popup_text {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    line-height: 1.9;
}
.popup_text p { margin: 0 0 1em; }

/* 閉じるボタン */
.popup .popup_close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #333;
    font-size: 28px;
    line-height: 1;
    background: linear-gradient(180deg, transparent 0%, #FFFFFF 100%);
    text-decoration: none;
}

.popup .popup_close:hover {
    background: rgba(0, 0, 0, 0.1);
    text-decoration: none;
}
