:root {
    --color-main: #2d9464;
}

html,
body {
    /* オーバーレイ時にスクロール防止 */
    height: 100%;
    overflow: auto;
}

#over {
    width: 100vw;
    max-width: none;
    height: 100vh;
    background: rgba(0, 0, 0, .3);
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s linear;
    text-align: center;
    z-index: 1000;

    &.show {
        opacity: 1;
        visibility: visible;
    }

    .ovr-box {
        max-width: 800px;
        max-height: calc(100vh - 2em);
        background: white;
        border-radius: 4px;
        margin: 1em auto;
        overflow-y: auto;
        display: none;
        padding: 1rem;

        &.show {
            display: block;
        }

        h3,
        table {
            width: 100%;
        }

        h3 {
            border-bottom: solid var(--color-main) 2px;
            border-radius: 0;
            color: var(--color-main);
            padding: 0 .5em 16px;
            margin: auto;
            max-width: none;
        }

        table {
            th {
                text-align: right;
            }

            td {
                &>p {
                    margin-left: 1em;
                }

                img {
                    max-width: 640px;
                }
            }

            th~td {
                text-align: left;
            }
        }

        .btn {
            border-radius: 4px;
            border: none;
            height: auto;
            width: auto;
            min-width: 8em;
            padding: .5em;

            &.btn-primary {
                --bg: var(--color-main);
                background: var(--bg);
                color: white;

                &:hover {
                    --bg: #198050;
                }

                &:disabled {
                    --bg: #4fc797;
                }
            }

            &.btn-secondary {
                --bg: #555;
                background: var(--bg);
                color: white;

                &:hover {
                    --bg: #414141;
                }

                &:disabled {
                    --bg: #888888;
                }
            }
        }
    }

    .shadow {
        box-shadow: 3px 3px 6px rgba(0, 0, 0, .2);
    }
}
