.modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.license-details {
    position: relative;
    width: fit-content;
}

.license-details[open] {
    position: static;
}

.license-details[open] .license-summary {
    display: none;
}

.license-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.license-content {
    width: 100%;
    max-width: 500px;
    margin: 1rem;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: modal-fade 0.3s ease-out;
}

@keyframes modal-fade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.license-summary {
    display: inline-block;
    padding: 0.75rem 2.5rem;
    font-weight: bold;
    cursor: pointer;
    background-color: #e95295e6;
    color: #fef4f4;
    border: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.license-summary:hover {
    background-color: #f5fcff;
    color: #e95295e6;
}

.license-summary::-webkit-details-marker {
    display: none;
}

.license-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.license-item-title {
    font-size: 1.1rem;
}

.license-item-price {
    font-weight: bold;
    color: #2c5282;
}

.license-button {
    text-align: center;
}

.purchase-button {
    padding: 0.75rem 2.5rem;
    background-color: #4299e1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 1rem;
}

.purchase-button:hover {
    background-color: #2b6cb0;
}


.purchase-license-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    background-color: #fef4f4;
    padding: 1rem;
    margin: 1.5rem 2rem;
    border-radius: 1rem;
}

.purchase-license-title {
    font-size: 1.2rem;
    font-weight: bold;
    width: 100%;
    color: #e95295e6;
}

.purchase-license-count-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.7rem;
    font-weight: bold;
    color: #e95295e6;
    padding: 0.5rem 0;
}

.purchase-license-register-container {
    width: 100%;
    text-align: right;
}

/* モーダルを閉じるための領域をクリックできるようにする */
.license-details[open] .modal-wrapper::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: -1;
} 