.bl_sizeBtn_wrap {
    position: absolute; /* fixed から absolute に変更 */
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: block; /* コメントを解除 */
    align-items: center;
    justify-content: center;
    gap: 10px; /* ボタン間のスペースを拡大 */
}

.bl_sizeBtn {
    width: 80px; /* デフォルトサイズを拡大 */
    height: 50px;
    font-size: 22px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid #333; /* 境界線を太く */
    background-color: #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-weight: bold; /* 文字を太く */
}

.bl_sizeBtn:hover {
    background-color: #ddd;
    transform: scale(1.05); /* ホバー時に少し拡大 */
}

.bl_sizeBtn.is_active {
    background-color: #f97948;
    color: white;
    border-color: #e86837; /* アクティブ時の境界線色 */
}

/* スマホ向けのスタイル */
@media screen and (max-width: 768px) {
    .bl_sizeBtn_wrap {
        top: 10px;
        right: 10px;
        padding: 12px;
        border-radius: 12px;
    }

    .bl_sizeBtn {
        width: 100px; /* スマホでの標準サイズ */
        height: 60px;
        font-size: 24px;
    }
}

/* 大きいフォントサイズが選択されている場合のスマホ向けスタイル */
@media screen and (max-width: 768px) {
    html[style*="font-size: 300%"] .bl_sizeBtn {
        width: 120px; /* フォントサイズが大きい時のボタンサイズ */
        height: 70px;
        font-size: 26px;
    }
}