input#open {
    display: none;
}

.popup-content {
    visibility: hidden;
    opacity: 0;
}

#open:checked~.popup-content {
    visibility: visible;
    opacity: 1;
    transition: .3s;
}

.overlay {
    display: none;
}

#open:checked~.overlay {
    /* background: rgb(51, 51, 51, .8); */
    background: #000000;
    opacity: 0.6;

    display: block;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    transition: .3s;
    z-index: 99;
}

.popup-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: auto;
    width: auto;
    /* background-color: aliceblue; */
    background-color: #FFFFFF;
    border: 5px solid #333;
    z-index: 99;
    transition: .1s;
    padding: 0.5em;
    border-radius: 10px;
    min-width: 25em;
    max-width: calc(100% - 50px);
}

.popup-content * {
    margin: 0.5em;
}

.popup-content input[type="text"], .popup-content input[type="password"] {
    width: 25em;
    padding: 8px 10px;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    color: var(--gray);
}

.popup-content input[type="text"]::placeholder {
    color: #999;
}

.popup-content .button-white {
    padding: .9em 2em;
    border: none;
    border-radius: 5px;
    background-color: #fff;
    border: 1px solid #e2e2e2;
    padding: .5em 2em;
    font-weight: 600;
    cursor: pointer;
    margin-right: 0;
}

.popup-content .button-white:hover {
    background-color: #efefef;
}

.popup-content .button-color {
    padding: .9em 2em;
    border: none;
    border-radius: 5px;
    background-color: #333;
    color: #fff;
    padding: .5em 2em;
    font-weight: 600;
    cursor: pointer;
    margin-right: 0;
}

.popup-content .button-color:hover {
    background-color: #555;
}

.popup-buttons {
    text-align: right;
}

/* @media (orientation: landscape) {
    .popup-content {
        width: 55%;
    }
} */

label.close-btn {
    position: absolute;
    top: -15px;
    right: -14px;
    background: #FFFFFF;
    color: #333;
    width: 26px;
    height: 26px;
    text-align: center;
    border-radius: 50px;
    line-height: 1.6;
    border: 5px solid #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

label.close-btn span {
    color: #333;
    font-weight: 800;
    font-size: 25px;
}


.tooltip {
    display: inline-block;
    position: relative;
}

.tooltip > div {
    cursor: pointer;
}

.tooltip > span {
    display: flex;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    padding: .5em 1em;
    border-radius: 3px;
    background-color: #333;
    color: #ffffff;
    font-size: .7em;
    white-space: nowrap;
    transition: opacity .3s;
}

.tooltip > span::before {
    position: absolute;
    bottom: -6px;
    width: 9px;
    height: 6px;
    background-color: inherit;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    content: '';
}

/*モーダル本体*/
.modal-msg-box {
    display: none;    /*初期状態を非表示*/
    background-color: #333; /*背景色を黒系に*/
    position: fixed;  /*位置をFIX*/
    bottom: 4em;     /*ウィンドウの下端からの位置*/
    right: 1.5em;      /*ウィンドウの右端からの位置*/
    z-index: 999;     /*重なり順を最前列に*/
    padding: 0.75em;    /*サイズ指定（モーダル余白）*/
    min-width: 15em; /*サイズ指定（モーダル横幅）*/
    border-radius: 0.5em;
}
/*モーダルの中のテキスト*/
.modal-msg-box-text {
    color: #fff;   /*フォント色*/
}