

/* ============================================== */
/* 1. 汎用ダイアログ (Summary Modal等) */
/* ============================================== */
.dialog-overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2100; /* 最前面 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.dialog-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 450px;
}

.dialog-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.dialog-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.btn-primary {
    background-color: #1E88E5;
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.btn-secondary {
    background-color: #f1f1f1;
    color: #333;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.summary-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem 1.5rem;
    align-items: center;
}

    .summary-grid span {
        color: #6c757d;
        text-align: right;
    }

/* スピナー（保存中アニメーション） */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border-left-color: #09f;
    animation: spin 1s ease infinite;
}

.registering-text {
    margin-left: 8px;
    color: #555;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ============================================== */
/* 2. ステージボタン (P検, P部検など) */
/* ============================================== */
.stage-button-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 56px;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

    .stage-button-wrapper:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    }

.stage-button-inner {
    text-transform: none !important;
    font-size: 1rem !important;
    font-weight: bold !important;
    width: 100%;
    height: 100%;
    border-radius: 50px !important;
    justify-content: center !important;
}

.stage-button-click-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50px;
}

/* 各ステージの色定義 */
.stage-style-1 {
    background-color: #E3F2FD;
    color: #333;
}

.stage-style-2 {
    background-color: #BBDEFB;
    color: #673AB7;
}

.stage-style-3 {
    background-color: #90CAF9;
    color: #673AB7;
}

.stage-style-4 {
    background-color: #64B5F6;
    color: #673AB7;
}

.stage-style-5 {
    background-color: #42A5F5;
    color: #fff;
}

.stage-style-6 {
    background-color: #1E88E5;
    color: #fff;
}

.stage-style-7 {
    background-color: #333434;
    color: #fff;
    border-color: #4CAF50;
    border-radius: 0;
}

.stage-style-8 {
    background-color: #333434;
    color: #fff;
    border: 2px solid #FB0A0A;
    border-radius: 0;
}

/* テキスト色調整 */
.stage-style-2 .stage-button-inner,
.stage-style-3 .stage-button-inner,
.stage-style-4 .stage-button-inner {
    color: #673AB7;
}

.stage-style-5 .stage-button-inner,
.stage-style-6 .stage-button-inner,
.stage-style-7 .stage-button-inner,
.stage-style-8 .stage-button-inner {
    color: white;
}


/* ============================================== */
/* 3. ユーティリティ & アニメーション */
/* ============================================== */

/* ボタンリセット (透明化) */
.button-reset {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    outline: none;
    text-align: inherit;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes slide-up {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* パネル入力用ユーティリティ */
.panel-btn.key-blue {
    color: #1890ff;
    font-weight: bold;
}

.panel-btn.key-red {
    color: #ff4d4f;
    font-weight: bold;
}
