.policy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

.policy-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.policy-modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 450px;
    transform: translate(-50%, -50%);
    width: 100%;
    max-height: 80vh;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: 100%;
    @media screen and (max-width: 480px) {
        max-width: 350px;
    }
}

.policy-modal-header {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.policy-modal-header h2 {
    margin: 0;
    font-size: 1.2em;
}

.policy-modal-close {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
}

.policy-modal-content {
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
    max-height: 60vh;
    margin: 0px 25px 0px 25px;
}

.policy-modal-footer {
    padding: 15px;
    border-top: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.policy-modal-scroll-message {
    color: #f00;
    margin-bottom: 10px;
    font-size: 0.9em;
    height: 1.2em; /* 固定の高さを設定 */
    visibility: visible; /* 初期状態は表示 */
    opacity: 1;
    transition: opacity 0.3s ease; /* フェードイン/アウト効果のためのトランジション */
}
.policy-modal-scroll-message.hidden {
    visibility: hidden;
    opacity: 0;
}
.policy-modal-tabs {
    display: flex;
    margin-bottom: 15px;
    width: 100%;
    justify-content: center;
}

.policy-modal-tab {
    padding: 8px 16px;
    margin: 0 5px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
}

.policy-modal-tab.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.policy-modal-tab.disabled {
    background-color: #f5f5f5;
    color: #aaa;
    border-color: #ddd;
    cursor: not-allowed;
    opacity: 0.6;
}

.policy-modal-agree {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.policy-modal-agree:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* ステップ表示のスタイル */
.policy-modal-steps {
    width: 100%;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0px 15px 0px;
}

.policy-modal-step {
    display: flex;
    align-items: center;
    margin: 0 5px;
}

.policy-modal-step-number {
    width: 24px;
    height: 24px;
    border-radius: 12px;
    background-color: #f5f5f5;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 5px;
    font-size: 0.9em;
}

.policy-modal-step.active .policy-modal-step-number {
    background-color: #007bff;
    color: #fff;
}

.policy-modal-step.completed .policy-modal-step-number {
    background-color: #28a745;
    color: #fff;
}

.policy-modal-step-text {
    font-size: 0.9em;
}

.policy-modal-step-separator {
    width: 20px;
    height: 1px;
    background-color: #ddd;
    margin: 0 5px;
}

/* 前進ボタン */
.policy-modal-next {
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 10px;
}

.policy-modal-next:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.policy-modal {
    animation: fadeIn 0.3s ease-in-out;
}