
                 
 /* ===== トースト／報酬系===== */

    .reward-toast,
    .reward-total-bar,
    .float-btns {
    z-index: var(--z-top);
    }

    .reward-toast {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) ;
        font-size: 48px;
        font-weight: 900;
        color: #ffcc00;
        text-shadow: 0 0 10px #ffd700, 0 0 20px #fff;
        animation: glow 0.8s ease-out;

    }

    .reward-toast__spin {
    display: inline-block;
    animation: spin 1s linear;
    }
    .reward-total-bar {
        position: fixed;
        top: 10px;
        right: 12px;
        background: #fff8d6;
        padding: 6px 14px;
        border-radius: 10px;
        font-weight: 700;
        font-size: 16px;
        color: #8a5a00;
        box-shadow: 0 0 6px rgba(0,0,0,0.15);

    }


    

/* ===== アニメーション===== */        


    @keyframes glow {
        0%   { box-shadow: 0 0 0px gold; opacity: 1; }
        100% { box-shadow: 0 0 60px gold; opacity: 0; }
    }

    @keyframes beat {
        0%   { transform: scale(1); }
        50%  { transform: scale(1.15); }
        100% { transform: scale(1); }
    }


    /* 自動スクロールで着地した要素を一瞬ハイライト */
    @keyframes flash {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 223, 0, .9);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 223, 0, 0);
    }
    }

               

/* ===== today 専用状態表現===== */                          
                    
    /* 習慣化表示のスタイル */
    .habit-streak {
        margin: 6px 0 8px;
        font-size: 0.95em;
        font-weight: 500;
        color: #8b6e79; /* 落ち着いたピンクグレー */
    }
    .habit-streak .auto-zone {
        color: #b8b8b8;
    }

    .habit-streak .heart {
        display: inline-block;
        animation: beat 1.8s infinite ease-in-out;
    }
    





    /* 🔁 ブロック重複の注意 */
    .overlap {
    margin: 8px 0;
    padding: 8px 10px;
    border-radius: 10px;
    background: #fff3f3;
    color: #b00020;
    border-left: 6px solid #e53935;
    font-weight: 600;
    }
    


    .block.autofocus,
    .block._jumpflash {
    outline: 3px solid rgba(255, 223, 0, .5);
    outline-offset: 2px;
    }

    .block.autofocus { animation: flash 1s ease; }
    .block._jumpflash { animation: flash 900ms ease-out 1; }


/* ===== チェックリスト系===== */   

    /* ✅ チェックリスト */
    .checklist {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: grid;
    gap: 6px;
    }

    .check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #00000008;
    }

    .check-item.done {
    opacity: .6;
    /* 全体をちょっと薄くするだけ */
    }

    .check-item.done .check-text {
    text-decoration: line-through;
    /* 文字だけ取り消し線 */
    color: #777;
    /* 文字色もグレー */
    }


    .check-item form {
    margin: 0;
    }

    .check-toggle {
    all: unset;
    /* 既定の装飾を完全リセット */
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 2px solid #bdbdbd;
    /* 外枠はこれだけ */
    background: #fff;
    box-shadow: 0 1px 2px #0001;
    font-weight: 400;
    font-size: 18px;
    /* ✓ を見やすく */
    line-height: 1;
    /* 余白のズレ防止 */
    cursor: pointer;
    outline: none;
    /* フォーカス輪郭を消す（必要なら別途 :focus 可視化を） */
    }

    .check-item.done .check-toggle {
    border-color: #aaa;
    /* 薄グレー枠 */
    background: #f1f2f4;
    /* 親カードと同じ背景色 */
    color: #666;
    /* チェックマークもグレー */
    }

    .check-item.dragging {
    opacity: .5
    }

    .check-item.drop-target {
    outline: 2px dashed #aaa;
    outline-offset: 4px
    }   

 /* =====today 操作UI===== */



     /* =====タグ選択＋オフセットI===== */
    .setrow {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px
    }

    .setrow-inline {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    }


    /* 時間選択フォームコントロール */
    .form-control {
    padding: 8px 10px;
    border: 1px solid #0003;
    border-radius: 10px;
    background: #fff;
    font-size: 0.95rem;
    }



  
    

    /* 右下固定のフローティングボタン群（今へ / TOPへ） */

    /* ===== floating buttons (appearance only) ===== */
    .btn--float {
    padding: 12px 16px;
    min-height: 44px;
    border: none;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(0,0,0,.2);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    }

   /* ===== floatボタンブロック ===== */
    .float-btns {
    position: fixed;
    right: 14px;
    bottom: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* ボタン間のすき間 */
    }

   /* ===== 未来へリンクの見た目 ===== */
    .float-btns .float-btn-link {
    display: inline-block;
    padding: 8px 12px;
    background: #4f46e5;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 4px;
    }



    /* 個別色（見た目クラス基準） */
    .btn.btn--jump-now,
    .btn.btn--progress-now {background:#0ea5e9; }  
    .btn.btn--to-top     { background: #64748b; }
    .btn.btn--jump-cook  { background: #e09728ff; }
    .btn.btn--jump-todo  { background: #0ddf4cff; }



    /* 進捗の状態 */
    .btn.is-high { background:#22c55e; }
    .btn.is-mid  { background:#f59e0b; }
    .btn.is-low  { background:#ef4444; }
        





    .drag-handle {
    cursor: grab;
    user-select: none;
    opacity: .6;
    margin-right: .25rem
    }


    #today-events-section { margin-bottom: 16px; }
    #today-events-section h2 { font-size: 1.2em; margin-bottom: 4px; }

    .event-row { margin: 4px 0; }
    .event-row .time { display: inline-block; width: 60px; }
    .event-row.done { color: #999; text-decoration: line-through; }
    .check-btn { min-width: 2em; }

/* =====today レイアウト===== */




/* =====totoday 固有の .block 状態差分===== */


    /* ✅ 完了の見た目（グレーアウト） */
    .block.done {
    filter: grayscale(100%);
    opacity: .55;
    background: #f1f2f4;
    border-left-color: #c8c8c8 !important;
    box-shadow: none;
    }

    .block.done .title {
    text-decoration: line-through;
    color: #888;
    }

    .block.done .time {
    color: #8a8a8a;
    }

    /* ⏰ 未完のまま終了 */
    .block.overdue {
    border-left-color: #e63946 !important;
    background: #fff5f5;
    }

    .block.overdue .title {
    color: #c1121f;
    }

    .block.overdue .time .badge {
        background: #e63946;
        color: #fff;
        }


    /* 🔴 進行中 */
    .block.ongoing {
    background: linear-gradient(to bottom, #ffe9e9 0%, #fff 100%);
    border-left-color: #e63946 !important;
    }

    .block.ongoing .title {
    color: #b00020;
    }

 
