/* ========================================
   占い結果下部：共通ナビゲーション
======================================== */

.result-navigation-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: min(100%, 460px);
    margin: 24px auto 0;
    text-align: center;
}

.result-navigation-actions .result-menu-button,
.result-navigation-actions .result-retry-button {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    margin: 0;
    padding: 11px 12px;
    align-items: center;
    justify-content: center;
    color: #211008;
    font-family: inherit;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid #70401f;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.result-navigation-actions .result-menu-button,
.result-navigation-actions .result-menu-button:visited {
    color: #2a160b;
    background: linear-gradient(180deg, #fffdf8 0%, #f8ead8 100%);
    box-shadow: 0 3px 0 #c39264;
}

.result-navigation-actions .result-retry-button {
    background: linear-gradient(180deg, #ffd7b9 0%, #f2b785 100%);
    box-shadow: 0 3px 0 #a9673b;
}

.result-navigation-actions .result-menu-button:hover {
    box-shadow: 0 5px 0 #c39264;
    transform: translateY(-2px);
}

.result-navigation-actions .result-retry-button:hover {
    box-shadow: 0 5px 0 #a9673b;
    transform: translateY(-2px);
}

.result-navigation-actions .result-menu-button:active {
    box-shadow: 0 1px 0 #c39264;
    transform: translateY(2px);
}

.result-navigation-actions .result-retry-button:active {
    box-shadow: 0 1px 0 #a9673b;
    transform: translateY(2px);
}

.result-navigation-actions .result-menu-button:focus-visible,
.result-navigation-actions .result-retry-button:focus-visible {
    outline: 3px solid #4b7d9e;
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .result-navigation-actions {
        gap: 8px;
        width: 100%;
        margin-top: 22px;
    }

    .result-navigation-actions .result-menu-button,
    .result-navigation-actions .result-retry-button {
        min-height: 50px;
        padding: 10px 6px;
        font-size: 0.9rem;
    }
}

@media (max-width: 340px) {
    .result-navigation-actions {
        gap: 6px;
    }

    .result-navigation-actions .result-menu-button,
    .result-navigation-actions .result-retry-button {
        padding-right: 4px;
        padding-left: 4px;
        font-size: 0.84rem;
    }
}

/* ワンオラクル既存ID指定の余白・最小幅を共通仕様で上書き */
.result-navigation-actions #repeat-button {
    display: flex;
    width: 100%;
    min-width: 0;
    margin: 0;
}
