body {
    background: #00baff;
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.info-text-1 {
    margin-top: 8px;
    font-size: 0.9em;
    color: #666;
}

.slot-container {
    background: #fff;
    border-radius: 16px;
    width: 99vw;
    max-width: 420px;
    padding: 18px 2vw 24px 2vw;
    box-sizing: border-box;
    text-align: center;
    margin-top: 18px;
    box-shadow: 0 2px 8px #bbb;
}

.slot-title {
    color: #fff;
    background: #0094cc;
    margin: 0 0 18px 0;
    padding: 14px 0;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
}

.select-row {
    margin-bottom: 14px;
    text-align: left;
    font-size: 1.05em;
}

select {
    font-size: 1.05em;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid #bbb;
    margin-left: 10px;
    margin-right: 10px;
}

.reels-wrap {
    width: 100%;
    overflow-x: hidden;
    margin-bottom: 20px;
}

.reels {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    min-width: 0;
    width: 100%;
}

.reel {
    min-width: 0;
    flex-shrink: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    overflow: hidden;
    box-shadow: 0 0 5px #bbb inset;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: bold;
    color: #0094cc;
    position: relative;
    transition: background 0.3s, color 0.3s;
    margin: 0;
    border: 2px solid #e0e0e0;
}

.reel.spinning {
    background: #e0f7ff;
    color: #00baff;
    animation: spinflash 0.6s linear infinite;
}

@keyframes spinflash {
    0% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.4);
    }

    100% {
        filter: brightness(1);
    }
}

.reel.stopped {
    animation: none;
}

.reel.bonus {
    border: 2px solid #ff9800;
}

.bonus-label {
    position: absolute;
    top: -17px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff9800;
    color: #fff;
    font-size: 0.72rem;
    font-weight: bold;
    border-radius: 8px;
    padding: 2px 7px;
    box-shadow: 0 1px 4px #bbb;
    letter-spacing: 0.05em;
    white-space: nowrap;
    z-index: 2;
    pointer-events: none;
}

button {
    background: #0094cc;
    border: none;
    color: white;
    font-size: 1.08rem;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 6px;
    margin-bottom: 0;
    min-width: 100px;
}

button:disabled {
    background: #aaa;
    cursor: default;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
    margin-bottom: 12px;
}

.button-group button {
    flex: 1;
    padding: 8px 5px;
    font-size: 0.95rem;
    min-width: 120px;
}

.method-explanation {
    margin-top: 18px;
    background: #f0f8ff;
    border-radius: 10px;
    padding: 12px;
    text-align: left;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px #bbb;
    border: 1px solid #b0d4f1;
}

.method-explanation h3 {
    color: #0094cc;
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    border-bottom: 2px solid #0094cc;
    padding-bottom: 4px;
}

.method-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.method-card {
    background: #fff;
    border-radius: 8px;
    padding: 8px;
    border: 1px solid #ddd;
}

.method-card h4 {
    margin: 0 0 6px 0;
    color: #0094cc;
    font-size: 0.95rem;
}

.method-card ul {
    margin: 4px 0 0 16px;
    padding: 0;
    font-size: 0.9rem;
}

.method-card li {
    margin-bottom: 2px;
}

.analysis-box {
    margin-top: 18px;
    background: #f4f8fb;
    border-radius: 10px;
    padding: 12px;
    text-align: left;
    font-size: 0.98rem;
    box-shadow: 0 2px 8px #bbb;
}

.analysis-box ul {
    margin: 8px 0 0 18px;
    padding: 0;
}

.analysis-box li {
    margin-bottom: 4px;
}

.analysis-box strong {
    color: #0094cc;
}

.analysis-box .source {
    font-size: 0.95em;
    color: #555;
    margin-top: 10px;
    display: block;
}

.analysis-box a {
    color: #0077cc;
}

.caution {
    margin-top: 14px;
    font-size: 0.95em;
    color: #b00;
    background: #fff7e7;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: left;
    border-left: 5px solid #ff9800;
}

/* モーダル用スタイル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 24px 18px 18px 18px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 4px 16px #888;
    position: relative;
    font-size: 1.01rem;
    line-height: 1.7;
}

.close {
    color: #aaa;
    position: absolute;
    right: 18px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #0094cc;
    text-decoration: none;
    cursor: pointer;
}

.modal-title {
    font-weight: bold;
    color: #0094cc;
    font-size: 1.13rem;
    margin-bottom: 10px;
}

.modal-number-list {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.modal-number-list .reel {
    margin-right: 0;
    margin-bottom: 0;
}

.modal-bonus-label {
    font-size: 0.8em;
    color: #ff9800;
    margin-left: 2px;
}

/* カラフルボール色割り当て */
.ball-color1 {
    background: #f44336 !important;
    color: #fff !important;
}

.ball-color2 {
    background: #e91e63 !important;
    color: #fff !important;
}

.ball-color3 {
    background: #9c27b0 !important;
    color: #fff !important;
}

.ball-color4 {
    background: #3f51b5 !important;
    color: #fff !important;
}

.ball-color5 {
    background: #2196f3 !important;
    color: #fff !important;
}

.ball-color6 {
    background: #009688 !important;
    color: #fff !important;
}

.ball-color7 {
    background: #4caf50 !important;
    color: #fff !important;
}

.ball-color8 {
    background: #cddc39 !important;
    color: #333 !important;
}

.ball-color9 {
    background: #ffeb3b !important;
    color: #b25c00 !important;
}

.ball-color10 {
    background: #ffc107 !important;
    color: #b25c00 !important;
}

.ball-color11 {
    background: #ff9800 !important;
    color: #fff !important;
}

.ball-color12 {
    background: #ff5722 !important;
    color: #fff !important;
}

.ball-color13 {
    background: #795548 !important;
    color: #fff !important;
}

.ball-color14 {
    background: #607d8b !important;
    color: #fff !important;
}

.ball-color15 {
    background: #00bcd4 !important;
    color: #fff !important;
}

.ball-color16 {
    background: #8bc34a !important;
    color: #fff !important;
}

.ball-color17 {
    background: #e040fb !important;
    color: #fff !important;
}

.ball-color18 {
    background: #00e676 !important;
    color: #fff !important;
}

.ball-color19 {
    background: #b2ff59 !important;
    color: #333 !important;
}

.ball-color20 {
    background: #ffb300 !important;
    color: #fff !important;
}

.ball-color21 {
    background: #f06292 !important;
    color: #fff !important;
}

.ball-color22 {
    background: #ba68c8 !important;
    color: #fff !important;
}

.ball-color23 {
    background: #64b5f6 !important;
    color: #fff !important;
}

.ball-color24 {
    background: #4db6ac !important;
    color: #fff !important;
}

.ball-color25 {
    background: #aed581 !important;
    color: #333 !important;
}

.ball-color26 {
    background: #fff176 !important;
    color: #b25c00 !important;
}

.ball-color27 {
    background: #ffd54f !important;
    color: #b25c00 !important;
}

.ball-color28 {
    background: #ff8a65 !important;
    color: #fff !important;
}

.ball-color29 {
    background: #a1887f !important;
    color: #fff !important;
}

.ball-color30 {
    background: #90a4ae !important;
    color: #fff !important;
}

.ball-color31 {
    background: #b388ff !important;
    color: #fff !important;
}

.ball-color32 {
    background: #8c9eff !important;
    color: #fff !important;
}

.ball-color33 {
    background: #80d8ff !important;
    color: #fff !important;
}

.ball-color34 {
    background: #a7ffeb !important;
    color: #333 !important;
}

.ball-color35 {
    background: #ccff90 !important;
    color: #333 !important;
}

.ball-color36 {
    background: #ffff8d !important;
    color: #b25c00 !important;
}

.ball-color37 {
    background: #ffd180 !important;
    color: #b25c00 !important;
}

.ball-color38 {
    background: #ff9e80 !important;
    color: #fff !important;
}

.ball-color39 {
    background: #bcaaa4 !important;
    color: #fff !important;
}

.ball-color40 {
    background: #cfd8dc !important;
    color: #333 !important;
}

.ball-color41 {
    background: #c5e1a5 !important;
    color: #333 !important;
}

.ball-color42 {
    background: #ffe082 !important;
    color: #b25c00 !important;
}

.ball-color43 {
    background: #ffccbc !important;
    color: #b25c00 !important;
}

.dt-buttons {
    margin-bottom: 6px;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 480px) {
    .slot-container {
        width: 99vw;
        max-width: none;
        padding-left: 2vw;
        padding-right: 2vw;
    }

    .reel {
        width: 8vw;
        height: 8vw;
        min-width: 22px;
        min-height: 22px;
        font-size: 0.95rem;
    }

    .bonus-label {
        font-size: 0.67rem;
        top: -13px;
    }

    .method-comparison {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}