/* シミュレーター共通UI：金額プリセット、スライダー、選択ボタン、共有ボタン、比較ゲージ */
.sim-presets {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: .75rem 0;
}
.sim-presets__btn {
    background: #fff;
    border: 2px solid #c7d2fe;
    border-radius: 999px;
    color: #3730a3;
    flex: 1 1 4.5rem;
    font-weight: 700;
    min-height: 44px;
    padding: .4rem .75rem;
}
.sim-presets__btn.is-active,
.sim-presets__btn:hover {
    background: #4338ca;
    border-color: #4338ca;
    color: #fff;
}
.sim-range {
    height: 2.75rem;
}
.sim-range::-webkit-slider-thumb { width: 1.75rem; height: 1.75rem; margin-top: -.6rem; }
.sim-range::-moz-range-thumb { width: 1.75rem; height: 1.75rem; }
.sim-range__scale {
    color: #64748b;
    display: flex;
    font-size: .8rem;
    justify-content: space-between;
    margin-top: -.25rem;
}

.sim-choice {
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sim-choice .btn {
    align-items: center;
    border-radius: 12px;
    display: flex;
    font-weight: 700;
    justify-content: center;
    line-height: 1.4;
    min-height: 56px;
    padding: .5rem;
}

.sim-share {
    margin-top: 1.5rem;
}
.sim-share__note {
    color: #64748b;
    font-size: .85rem;
    margin-bottom: .5rem;
}
.sim-share__actions {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.sim-share__btn {
    align-items: center;
    border: 2px solid transparent;
    border-radius: 999px;
    display: flex;
    font-weight: 700;
    justify-content: center;
    min-height: 52px;
    padding: .6rem 1rem;
    text-align: center;
    text-decoration: none;
}
.sim-share__btn--line {
    background: #06c755;
    color: #fff;
}
.sim-share__btn--line:hover { color: #fff; filter: brightness(.94); }
.sim-share__btn--copy {
    background: #fff;
    border-color: #4338ca;
    color: #4338ca;
}
.sim-share__btn:focus-visible {
    outline: 3px solid #0f172a;
    outline-offset: 3px;
}
.sim-share__toast-container { z-index: 10000; }

.sim-gauge {
    background: linear-gradient(90deg, #22c55e 0%, #22c55e 33%, #3b82f6 33%, #3b82f6 66%, #f59e0b 66%, #f59e0b 100%);
    border-radius: 999px;
    height: 14px;
    position: relative;
}
.sim-gauge__marker {
    background: #0f172a;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
    height: 26px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: left .3s;
    width: 26px;
}
.sim-gauge__labels {
    color: #64748b;
    display: grid;
    font-size: .8rem;
    grid-template-columns: repeat(3, 1fr);
    margin-top: .4rem;
    text-align: center;
}

.sim-pattern {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
}
.sim-pattern + .sim-pattern { margin-top: .75rem; }

@media (max-width: 575.98px) {
    .sim-share__actions,
    .sim-choice { grid-template-columns: minmax(0, 1fr); }
    .sim-choice .btn { min-height: 52px; }
}
