* {
    box-sizing: border-box;
}

.modal {
    display: none;
}

.modal.is-open {
    display: block;
}

.modal-overlay {
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    opacity: 0;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transition: opacity 200ms linear;
    z-index: 9999;
}

.modal-container {
    background-color: #fff;
    border-radius: 0px;
    min-width: 300px;
    max-height: 90vh;
    padding: 1.5rem;
    transform: translateY(24px);
    transition: transform 300ms ease-in-out;
    width: 90%;
}

.modal-container {
    width: 70%;
}

.modal-title-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
}

.modal-title {
    font-size: 2rem;
}

.price_area {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-content {
    display: flex;
    margin-bottom: 15px;
}

@media screen and (max-width: 767px) {
    .modal-content {
        display: block;
    }
}

.modal-content table {
    flex: 1;
}

.modal-content table th {
    width: 20%;
}

@media screen and (max-width: 767px) {
    .modal-content table,
    .modal-content tbody,
    .modal-content table tr,
    .modal-content table th,
    .modal-content table td {
        display: block;
        width: 100%;
        padding: 1px;
    }
}

.modal-content table input,
.modal-content table select {
    padding: 10px;
}

.modal-content table select:hover {
    cursor: pointer;
}

.modal-footer {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media screen and (max-width: 767px) {
    .modal-footer {
        flex-direction: column;
    }
}

.button {
    cursor: pointer;
    background-color: #fff;
}

.modal-button {
    position: fixed;
    top: 18px;
    left: 75px;
    background-color: transparent;
}

.modal-button img {
    width: 45%;
}

.modal_submit,
.modal_reset {
    border-radius: 0px;
    color: #ffffff;
    cursor: pointer;
    display: inline-block;
    font-size: 1.4rem;
    line-height: 1;
    text-decoration: none;
    text-align: center;
    padding: 0.8em 1.6em 0.6em;
    box-shadow: 0 0 2px #b2b2b2;
    min-width: 240px;
}

.modal_submit {
    background: #c5a05b;
    border: 1px solid #c5a05b;
    margin-left: 25px;
}

@media screen and (max-width: 767px) {
    .modal_submit {
        margin-left: 0px;
    }
}

.modal_reset {
    background: #444444;
    border: 1px solid #444444;
    margin-right: 25px;
}

@media screen and (max-width: 767px) {
    .modal_reset {
        margin-right: 0px;
        margin-bottom: 20px;
    }
}

.modal_submit:hover,
.modal_reset:hover {
    opacity: 0.8;
}

/* アニメーション */

.modal[aria-hidden="false"] .modal-overlay {
    animation: fadeIn 300ms ease-in-out forwards;
}

.modal[aria-hidden="false"] .modal-container {
    animation: slideIn 300ms ease-in-out forwards;
}

.modal[aria-hidden="true"] .modal-overlay {
    animation: fadeOut 300ms ease-in-out forwards;
}

.modal[aria-hidden="true"] .modal-container {
    animation: slideOut 300ms ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(24px);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(24px);
    }
}
