* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #1f1008;
    font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
    background-color: #07142d;
    overflow-x: hidden;
}

body.is-dialog-open {
    overflow: hidden;
}

button,
input {
    font: inherit;
}

[hidden] {
    display: none !important;
}

.two-choice-page {
    --two-choice-card-width: clamp(82px, 8.5vw, 102px);
    --two-choice-deck-width: clamp(108px, 13vw, 128px);

    min-height: 100vh;
    padding: 16px;
    background-color: #07142d;
    background-image: url("../images/menu/menu-stage1-space-bg.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.two-choice-panel,
.two-choice-guide-panel {
    position: relative;
    width: min(100%, 860px);
    margin: 0 auto;
    background-color: #fffdf7;
    background-image:
        linear-gradient(
            rgba(255, 253, 247, 0.78),
            rgba(255, 250, 238, 0.78)
        ),
        url("../images/menu/menu-stage1-parchment.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border: 4px solid #c89b3c;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(72, 48, 20, 0.2);
}

.two-choice-panel {
    display: flex;
    padding: 176px 28px 30px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
}

.two-choice-panel::before,
.two-choice-guide-panel::before {
    position: absolute;
    inset: 14px;
    border: 1px solid #d7b45b;
    border-radius: 10px;
    content: "";
    pointer-events: none;
}

.spread-heading {
    position: absolute;
    top: 22px;
    left: 50%;
    z-index: 2;
    width: min(84%, 470px);
    margin: 0;
    padding: 14px 24px 16px;
    text-align: center;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.32) 0%,
            rgba(255, 255, 255, 0.08) 20%,
            rgba(255, 255, 255, 0) 48%
        ),
        linear-gradient(
            180deg,
            #ffd15f 0%,
            #f3ad35 46%,
            #d98216 100%
        );
    border: 2px solid #f9d982;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.74),
        inset 0 -2px 0 rgba(125, 66, 18, 0.28),
        0 4px 0 #a95b10;
    transform: translateX(-50%);
}

#page-title {
    margin: 0;
    color: #fffdf7;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    letter-spacing: 0.08em;
    text-shadow: 0 1px 2px rgba(88, 56, 8, 0.4);
}

.spread-heading-description {
    margin: 10px 0 0;
    color: #fffdf7;
    font-size: clamp(0.78rem, 2.2vw, 0.94rem);
    font-weight: 500;
    line-height: 1.65;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(88, 56, 8, 0.35);
}

.two-choice-heading-line {
    display: inline;
}

.back-to-menu-button {
    position: relative;
    z-index: 2;
    display: inline-flex;
    min-width: 210px;
    margin: 16px 0 14px;
    padding: 9px 16px;
    align-self: center;
    align-items: center;
    justify-content: center;
    order: 1;
    color: #211008;
    font-size: 1.02rem;
    font-weight: bold;
    text-decoration: none;
    background-color: #fff7e8;
    border: 1px solid #b9843f;
    border-radius: 8px;
    box-shadow: 0 2px 0 #d4ad72;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.back-to-menu-button:hover {
    color: #43260f;
    box-shadow: 0 4px 0 #d4ad72;
    transform: translateY(-2px);
}

.back-to-menu-button:active {
    box-shadow: 0 1px 0 #d4ad72;
    transform: translateY(1px);
}

.choice-setup {
    position: relative;
    z-index: 2;
    width: min(100%, 700px);
    margin: 0 auto 10px;
    padding: 18px 20px 16px;
    align-self: center;
    order: 2;
    color: #241107;
    text-align: left;
    background-color: rgba(255, 253, 247, 0.88);
    border: 1px solid rgba(192, 142, 47, 0.58);
    border-radius: 10px;
}

.choice-setup h2 {
    margin: 0;
    color: #1f1008;
    font-size: 1.1rem;
    text-align: center;
}

.choice-setup-title-line,
.choice-input-note-line {
    display: inline;
}

.choice-setup-description {
    margin: 10px 0 16px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.8;
    text-align: center;
    text-wrap: pretty;
}

.choice-setup-description span {
    display: block;
}

.choice-input-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.choice-input-grid label {
    display: block;
    min-width: 0;
    color: #241107;
    font-size: 1rem;
    font-weight: bold;
}

.choice-input-limit {
    color: #684225;
    font-size: 0.88rem;
    font-weight: 500;
}

.choice-input-grid input {
    display: block;
    width: 100%;
    min-height: 46px;
    margin-top: 7px;
    padding: 10px 12px;
    color: #1f1008;
    font-size: 1rem;
    background-color: #fffdf7;
    border: 1px solid #9f7442;
    border-radius: 7px;
    box-shadow: inset 0 1px 3px rgba(72, 48, 20, 0.1);
}

.choice-input-grid input::placeholder {
    color: #8b7666;
    opacity: 1;
}

.choice-input-grid input:focus {
    outline: 3px solid rgba(75, 125, 158, 0.38);
    outline-offset: 1px;
    border-color: #4b7d9e;
}

.choice-input-grid input:disabled {
    color: #6e5a4b;
    background-color: #eee3d6;
    cursor: not-allowed;
}

.choice-input-note {
    margin: 12px 0 0;
    color: #684225;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.65;
    text-align: center;
    text-wrap: pretty;
}

.two-choice-lead {
    margin: 12px 0 0;
    color: #804003;
    font-size: 1.04rem;
    font-weight: bold;
    line-height: 1.75;
    text-align: center;
}

.mobile-line-break {
    display: none;
}

.two-choice-status {
    position: relative;
    z-index: 6;
    min-height: 42px;
    margin: 0 auto 8px;
    padding: 0 8px;
    order: 3;
    color: #241107;
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1.7;
    letter-spacing: 0.015em;
    background-color: #fffdf7;
}

.two-choice-deck-area {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 286px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    order: 4;
}

.two-choice-deck-stack {
    position: relative;
    width: var(--two-choice-deck-width);
    aspect-ratio: var(--tarot-card-ratio, 1109 / 1920);
    isolation: isolate;
}

.two-choice-deck-layer {
    position: absolute;
    inset: 0;
    z-index: var(--deck-z);
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 12px rgba(72, 48, 20, 0.22);
    transform:
        translate(var(--rest-x), var(--rest-y))
        rotate(var(--rest-rotate));
    transition:
        opacity 0.25s,
        transform 0.25s;
    transform-origin: center;
}

.two-choice-deck-stack.is-shuffling .two-choice-deck-layer {
    animation: tarot-deck-shuffle var(--shuffle-duration) ease-in-out infinite;
    animation-delay: var(--shuffle-delay);
}

@keyframes tarot-deck-shuffle {
    0%,
    100% {
        transform:
            translate(var(--rest-x), var(--rest-y))
            rotate(var(--rest-rotate));
    }

    25% {
        transform:
            translate(var(--move-1-x), var(--move-1-y))
            rotate(var(--move-1-rotate))
            scale(var(--shuffle-card-scale));
    }

    50% {
        transform:
            translate(var(--move-2-x), var(--move-2-y))
            rotate(var(--move-2-rotate))
            scale(var(--shuffle-card-scale));
    }

    75% {
        transform:
            translate(var(--move-3-x), var(--move-3-y))
            rotate(var(--move-3-rotate))
            scale(var(--shuffle-card-scale));
    }
}

.two-choice-stage {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(100%, 760px);
    min-height: 460px;
    margin: 0 auto;
    padding: 8px 8px 6px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
        ". current current ."
        "a-title a-title b-title b-title"
        "a-flow a-caution b-flow b-caution";
    align-items: start;
    justify-items: center;
    gap: 10px clamp(14px, 3vw, 28px);
    order: 4;
}

.two-choice-slot {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(100%, var(--two-choice-card-width));
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.two-choice-slot-1 {
    grid-area: current;
}

.two-choice-slot-2 {
    grid-area: a-flow;
}

.two-choice-slot-3 {
    grid-area: a-caution;
}

.two-choice-slot-4 {
    grid-area: b-flow;
}

.two-choice-slot-5 {
    grid-area: b-caution;
}

.choice-group-title {
    width: 100%;
    margin: 8px 0 0;
    padding: 5px 8px;
    color: #804003;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    background-color: rgba(255, 253, 247, 0.9);
    border-top: 1px solid rgba(199, 150, 65, 0.7);
    border-bottom: 1px solid rgba(199, 150, 65, 0.7);
}

.choice-group-title-a {
    grid-area: a-title;
}

.choice-group-title-b {
    grid-area: b-title;
}

.slot-label {
    display: flex;
    min-height: 2.65em;
    margin: 0;
    padding: 4px 6px;
    align-items: center;
    justify-content: center;
    color: #2b1609;
    font-size: clamp(0.68rem, 1.8vw, 0.82rem);
    font-weight: bold;
    line-height: 1.25;
    text-align: center;
    background-color: rgba(255, 253, 247, 0.94);
    border: 1px solid #9f7442;
}

.two-choice-card-wrap {
    position: relative;
}

.two-choice-card-back {
    display: block;
    width: var(--two-choice-card-width);
    height: auto;
    aspect-ratio: var(--tarot-card-ratio, 1109 / 1920);
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 5px 12px rgba(72, 48, 20, 0.24);
}

.slot-number {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #4a321d;
    font-weight: bold;
    background-color: #fffdf7;
    border: 1px solid #c89b3c;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.button-area {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    min-height: 52px;
    margin-top: 10px;
    order: 5;
}

.button-area button,
.retry-button,
.retry-confirm-button,
.retry-cancel-button {
    padding: 12px 24px;
    color: #211008;
    font-size: 1.05rem;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid #70401f;
    border-radius: 10px;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.button-area button,
.retry-button,
.retry-confirm-button {
    background: linear-gradient(180deg, #ffd7b9, #f2b785);
    box-shadow: 0 3px 0 #a9673b;
}

.button-area button {
    min-width: 150px;
}

.button-area button:not(:disabled):hover,
.retry-button:hover,
.retry-confirm-button:hover {
    box-shadow: 0 5px 0 #a9673b;
    transform: translateY(-2px);
}

.button-area button:not(:disabled):active,
.retry-button:active,
.retry-confirm-button:active {
    box-shadow: 0 1px 0 #a9673b;
    transform: translateY(2px);
}

.reading-result {
    position: relative;
    z-index: 2;
    display: none;
    width: min(100%, 700px);
    margin: -24px auto 0;
    padding: 28px 24px;
    align-self: center;
    order: 6;
    color: #1f1008;
    text-align: left;
    background-color: #fffaf0;
    border: 1px solid #d7b45b;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(72, 48, 20, 0.12);
}

.reading-result-title {
    margin: 0;
    padding-bottom: 14px;
    color: #1f1008;
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    text-align: center;
    border-bottom: 2px solid #d7b45b;
}

.choice-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin: 16px 0 24px;
}

.choice-summary p {
    margin: 0;
    padding: 10px 12px;
    color: #241107;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    overflow-wrap: anywhere;
    background-color: #fffdf7;
    border: 1px solid #d9ba77;
    border-radius: 7px;
}

.choice-summary strong {
    display: block;
    margin-bottom: 2px;
    color: #804003;
}

.reading-cards {
    display: grid;
    gap: 18px;
}

.reading-card {
    padding: 18px 16px;
    background-color: #fffdf7;
    border: 1px solid #d9ba77;
    border-left: 6px solid #c89b3c;
    border-radius: 8px;
}

.reading-position {
    margin: 0 0 12px;
    color: #241107;
    font-size: 1.08rem;
    font-weight: bold;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.reading-card-name {
    margin: 0;
    color: #1f1008;
    font-size: 1.05rem;
    font-weight: bold;
}

.reading-keyword-label {
    margin: 16px 0 6px;
    color: #804003;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 0.03em;
}

.reading-keywords {
    margin: 0;
    color: #4d2a12;
    font-size: 1.02rem;
    font-weight: 500;
}

.reading-detail-block {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(199, 150, 65, 0.5);
}

.reading-detail-block h4 {
    margin: 0 0 8px;
    color: #804003;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 0.03em;
}

.reading-interpretation {
    margin: 0;
    color: #241107;
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.85;
}

.reading-actions {
    margin-top: 24px;
    text-align: center;
}

.two-choice-guide-panel {
    margin-top: 18px;
    padding: 34px 42px 36px;
    color: #241107;
}

.two-choice-guide-panel > h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 24px;
    padding-bottom: 12px;
    color: #1f1008;
    font-size: clamp(1.45rem, 3vw, 1.8rem);
    text-align: center;
    border-bottom: 2px solid #d7b45b;
}

.two-choice-guide-panel section {
    position: relative;
    z-index: 1;
    margin-top: 22px;
}

.two-choice-guide-panel h3 {
    margin: 0 0 8px;
    color: #804003;
    font-size: 1.12rem;
}

.two-choice-guide-panel p,
.two-choice-guide-panel li {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.85;
}

.two-choice-guide-panel p {
    margin: 0;
}

.two-choice-guide-panel ul,
.two-choice-guide-panel ol {
    margin: 0;
    padding-left: 1.6em;
}

.retry-confirm-dialog {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    padding: 16px;
    place-items: center;
    background-color: rgba(54, 34, 18, 0.58);
}

.retry-confirm-content {
    width: min(100%, 420px);
    padding: 28px 24px 24px;
    text-align: center;
    background-color: #fffdf7;
    border: 3px solid #c89b3c;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(35, 20, 8, 0.35);
}

.retry-confirm-content h2 {
    margin: 0 0 14px;
    color: #1f1008;
    font-size: 1.35rem;
}

.retry-confirm-content p {
    margin: 0;
    color: #241107;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.8;
}

.retry-confirm-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.retry-cancel-button {
    background-color: #fffaf0;
}

@media (min-width: 768px) {
    .two-choice-page {
        background-attachment: fixed;
    }
}

@media (max-width: 767px) {
    .two-choice-page {
        --two-choice-card-width: clamp(78px, 25vw, 100px);
        --two-choice-deck-width: min(31vw, 110px);

        padding: 16px 10px;
        background-image: none;
        background-color: #07142d;
    }

    .two-choice-panel {
        padding: 178px 14px 26px;
    }

    .spread-heading {
        width: min(88%, 430px);
        padding: 13px 12px 15px;
    }

    .spread-heading-description {
        font-size: 0.92rem;
        line-height: 1.7;
        letter-spacing: 0;
    }

    .two-choice-heading-line {
        display: block;
    }

    .back-to-menu-button {
        min-width: 180px;
        margin-top: 10px;
        margin-bottom: 18px;
        font-size: 1rem;
    }

    .choice-setup {
        padding: 16px 12px 14px;
    }

    .choice-setup h2 {
        font-size: 1rem;
        line-height: 1.65;
    }

    .choice-setup-title-line,
    .choice-input-note-line {
        display: block;
    }

    .choice-setup-description {
        font-size: 0.95rem;
        line-height: 1.75;
        text-align: left;
    }

    .choice-input-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .choice-input-grid input {
        min-height: 48px;
        font-size: 1rem;
    }

    .choice-input-note {
        font-size: 0.82rem;
        text-align: left;
    }

    .two-choice-lead {
        font-size: 1rem;
        text-align: left;
    }

    .mobile-line-break {
        display: inline;
    }

    .two-choice-status {
        min-height: 3.7em;
        font-size: 1rem;
        letter-spacing: 0;
        line-height: 1.8;
    }

    .two-choice-deck-area {
        min-height: 268px;
    }

    .two-choice-deck-stack.is-shuffling {
        transform: scale(0.9);
    }

    .two-choice-stage {
        width: min(100%, 360px);
        min-height: 720px;
        padding: 8px 0 6px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "current current"
            "a-title a-title"
            "a-flow a-caution"
            "b-title b-title"
            "b-flow b-caution";
        gap: 10px 16px;
    }

    .choice-group-title {
        margin-top: 6px;
        font-size: 0.96rem;
    }

    .slot-label {
        min-height: 3em;
        padding: 4px 5px;
        font-size: 0.78rem;
    }

    .two-choice-slot-1 {
        width: min(100%, calc(var(--two-choice-card-width) + 12px));
    }

    .two-choice-slot-1 .slot-label {
        white-space: nowrap;
    }

    .slot-number {
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
    }

    .button-area button {
        min-width: 130px;
        font-size: 1rem;
    }

    .reading-result {
        margin-top: -18px;
        padding: 22px 14px;
    }

    .reading-result-title {
        font-size: 1.45rem;
    }

    .choice-summary {
        grid-template-columns: 1fr;
        margin-bottom: 20px;
    }

    .choice-summary p,
    .reading-position,
    .reading-card-name,
    .reading-keywords,
    .reading-keyword-label,
    .reading-detail-block h4,
    .reading-interpretation {
        font-size: 1rem;
    }

    .reading-card {
        padding: 16px 13px;
    }

    .two-choice-guide-panel {
        padding: 28px 22px 30px;
    }

    .two-choice-guide-panel > h2 {
        font-size: 1.4rem;
    }

    .two-choice-guide-panel h3 {
        font-size: 1.05rem;
    }

    .two-choice-guide-panel p,
    .two-choice-guide-panel li {
        font-size: 0.98rem;
        line-height: 1.82;
    }

    .retry-confirm-content {
        padding: 24px 16px 20px;
    }

    .retry-confirm-content h2 {
        font-size: 1.28rem;
    }

    .retry-confirm-content p {
        text-align: left;
    }

    .retry-confirm-actions {
        flex-direction: column;
        align-items: center;
    }

    .retry-confirm-button,
    .retry-cancel-button {
        width: min(100%, 220px);
        font-size: 1rem;
    }
}

@media (max-width: 380px) {
    .two-choice-page {
        --two-choice-card-width: min(24vw, 88px);
    }

    .two-choice-stage {
        gap: 9px 12px;
    }

    .slot-label {
        font-size: 0.74rem;
    }
}

@media (max-width: 380px) {
    .two-choice-lead {
        font-size: 0.94rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .two-choice-deck-stack.is-shuffling .two-choice-deck-layer {
        animation: none;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto;
        transition-duration: 0.01ms !important;
    }
}


/* =========================================================
   二者択一：ビジュアルリファイン（2026-08-07）
   ・既存レイアウト／入力欄／カード配置／余白は維持
   ・見出しと操作部品の質感のみワンオラクル／スリーカード基準へ統一
   ========================================================= */

/* ブランド見出しのみ明朝系。サイズ・タイトルプレート寸法は変更しない。 */
.two-choice-page #page-title {
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
    font-weight: 700;
    letter-spacing: 0.10em;
}

/* Secondary：既存サイズを維持し、硬い立体影を整理。 */
.two-choice-page .back-to-menu-button,
.two-choice-page .back-to-menu-button:visited {
    color: #2b190e;
    background: rgba(255, 250, 240, 0.94);
    border: 1px solid #b78645;
    border-radius: 20px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 2px 6px rgba(86, 48, 14, 0.12);
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .two-choice-page .back-to-menu-button:hover {
        color: #241107;
        background: #ffefd1;
        border-color: #9b6426;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.90),
            0 6px 14px rgba(86, 48, 14, 0.20);
        transform: translateY(-2px);
    }
}

.two-choice-page .back-to-menu-button:active {
    background: #f8ead4;
    box-shadow:
        inset 0 1px 2px rgba(95, 54, 18, 0.10),
        0 1px 3px rgba(86, 48, 14, 0.10);
    transform: translateY(1px);
}

/* 入力欄のサイズ・配置はそのまま。フォーカス時の境界だけサイト色へ調和。 */
.two-choice-page .choice-input-grid input:focus {
    outline: 3px solid rgba(75, 125, 158, 0.38);
    outline-offset: 1px;
    border-color: #9b6426;
}

/* Primary CTA：既存幅・配置を維持し、金色と柔らかい影へ。 */
.two-choice-page .button-area button:not(:disabled) {
    min-height: 48px;
    color: #2a1608;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.08) 34%, rgba(255, 255, 255, 0) 56%),
        linear-gradient(180deg, #f4cf73 0%, #e2a039 100%);
    border: 1px solid #8b551d;
    border-radius: 20px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.76),
        inset 0 -1px 0 rgba(111, 62, 17, 0.12),
        0 2px 0 rgba(128, 72, 24, 0.36),
        0 5px 10px rgba(74, 42, 13, 0.16);
    text-shadow: 0 1px 0 rgba(255, 248, 229, 0.38);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        filter 180ms ease,
        border-color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .two-choice-page .button-area button:not(:disabled):hover {
        filter: brightness(1.075) saturate(1.05);
        border-color: #9f631d;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.90),
            inset 0 -1px 0 rgba(111, 62, 17, 0.08),
            0 2px 0 rgba(128, 72, 24, 0.30),
            0 8px 16px rgba(74, 42, 13, 0.23);
        transform: translateY(-2px);
    }
}

.two-choice-page .button-area button:not(:disabled):active {
    filter: brightness(0.99);
    box-shadow:
        inset 0 1px 2px rgba(94, 52, 15, 0.13),
        0 1px 0 rgba(128, 72, 24, 0.30),
        0 3px 6px rgba(74, 42, 13, 0.13);
    transform: translateY(1px);
}

.two-choice-page .button-area button:disabled {
    color: #8c7564;
    background: #eadfd5;
    border: 1px solid #baa693;
    border-radius: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.two-choice-page .button-area button:focus-visible,
.two-choice-page .back-to-menu-button:focus-visible,
.two-choice-page .retry-confirm-actions button:focus-visible {
    outline: 3px solid #4b7d9e;
    outline-offset: 3px;
}

/* 結果見出しと操作部品のみ統一。結果本文の配置は変更しない。 */
.two-choice-page .reading-result-title,
.two-choice-page .retry-confirm-content h2 {
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
}

.two-choice-page .result-navigation-actions .result-menu-button,
.two-choice-page .result-navigation-actions .result-menu-button:visited {
    color: #2b190e;
    background: rgba(255, 250, 240, 0.96);
    border: 1px solid #b78645;
    border-radius: 20px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 2px 6px rgba(86, 48, 14, 0.12);
}

.two-choice-page .result-navigation-actions .result-retry-button {
    color: #2a1608;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.08) 34%, rgba(255, 255, 255, 0) 56%),
        linear-gradient(180deg, #f4cf73 0%, #e2a039 100%);
    border: 1px solid #8b551d;
    border-radius: 20px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.76),
        inset 0 -1px 0 rgba(111, 62, 17, 0.12),
        0 2px 0 rgba(128, 72, 24, 0.36),
        0 5px 10px rgba(74, 42, 13, 0.16);
}

@media (hover: hover) and (pointer: fine) {
    .two-choice-page .result-navigation-actions .result-menu-button:hover {
        background: #ffefd1;
        border-color: #9b6426;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.90),
            0 6px 14px rgba(86, 48, 14, 0.20);
        transform: translateY(-2px);
    }

    .two-choice-page .result-navigation-actions .result-retry-button:hover {
        filter: brightness(1.075) saturate(1.05);
        border-color: #9f631d;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.90),
            inset 0 -1px 0 rgba(111, 62, 17, 0.08),
            0 2px 0 rgba(128, 72, 24, 0.30),
            0 8px 16px rgba(74, 42, 13, 0.23);
        transform: translateY(-2px);
    }
}

.two-choice-page .result-navigation-actions .result-menu-button:active {
    background: #f8ead4;
    box-shadow:
        inset 0 1px 2px rgba(95, 54, 18, 0.10),
        0 2px 5px rgba(86, 48, 14, 0.10);
    transform: translateY(1px);
}

.two-choice-page .result-navigation-actions .result-retry-button:active {
    filter: brightness(0.99);
    box-shadow:
        inset 0 1px 2px rgba(94, 52, 15, 0.13),
        0 1px 0 rgba(128, 72, 24, 0.30),
        0 3px 6px rgba(74, 42, 13, 0.13);
    transform: translateY(1px);
}

/* 再占い確認：Primary / Secondaryの役割のみ整理。 */
.two-choice-page .retry-confirm-actions .retry-cancel-button {
    color: #2b190e;
    background: #fffaf0;
    border: 1px solid #b78645;
    border-radius: 20px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 2px 6px rgba(86, 48, 14, 0.12);
}

.two-choice-page .retry-confirm-actions .retry-confirm-button {
    color: #2a1608;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.08) 34%, rgba(255, 255, 255, 0) 56%),
        linear-gradient(180deg, #f4cf73 0%, #e2a039 100%);
    border: 1px solid #8b551d;
    border-radius: 20px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.76),
        0 2px 0 rgba(128, 72, 24, 0.36),
        0 5px 10px rgba(74, 42, 13, 0.16);
}

@media (hover: hover) and (pointer: fine) {
    .two-choice-page .retry-confirm-actions .retry-cancel-button:hover {
        background: #ffefd1;
        border-color: #9b6426;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.90),
            0 6px 14px rgba(86, 48, 14, 0.20);
        transform: translateY(-2px);
    }

    .two-choice-page .retry-confirm-actions .retry-confirm-button:hover {
        filter: brightness(1.075) saturate(1.05);
        border-color: #9f631d;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.90),
            0 2px 0 rgba(128, 72, 24, 0.30),
            0 8px 16px rgba(74, 42, 13, 0.23);
        transform: translateY(-2px);
    }
}

.two-choice-page .retry-confirm-actions .retry-cancel-button:active {
    background: #f8ead4;
    box-shadow:
        inset 0 1px 2px rgba(95, 54, 18, 0.10),
        0 2px 5px rgba(86, 48, 14, 0.10);
    transform: translateY(1px);
}

.two-choice-page .retry-confirm-actions .retry-confirm-button:active {
    filter: brightness(0.99);
    box-shadow:
        inset 0 1px 2px rgba(94, 52, 15, 0.13),
        0 1px 0 rgba(128, 72, 24, 0.30),
        0 3px 6px rgba(74, 42, 13, 0.13);
    transform: translateY(1px);
}
