body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #767676; /* スマホ以外背景色 */
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    user-select: none; /* テキスト選択無効化 */
}

/* スマホのフレーム（デスクトッププレビュー用） */
.phone-frame {
    width: 100%;
    height: 100vh;
    max-width: 400px;
    max-height: 850px;
    background: url('kabegami.jpg') no-repeat center center / cover;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.phone-frame.no-wallpaper {
    background-image: none !important;
    background-color: #000;
}

/* PC画面で見る時のための角丸とボーダー（スマホ実機の場合はフルスクリーン） */
@media (min-width: 450px) {
    .phone-frame {
        border-radius: 40px;
        border: 8px solid #000;
    }
}

/* ガラスモーフィズム（通知カード） */
.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    z-index: 10;
    overflow: hidden; /* 消去時の高さ縮小を滑らかにするため追加 */
}

.glass-card:active {
    transform: scale(0.98);
}

/* 通知のアクション展開エリア */
.actions-area {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card.expanded .actions-area {
    max-height: 100px;
    opacity: 1;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* 通知が消えるアニメーション (横滑り＆高さ縮小でスムーズな押し上げ) */
.slide-out-right {
    animation: slideOut 0.4s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideOut {
    0% {
        transform: translateX(0);
        opacity: 1;
        max-height: 200px;
        margin-bottom: 0.75rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    40% {
        transform: translateX(120%);
        opacity: 0;
        max-height: 200px;
        margin-bottom: 0.75rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    100% {
        transform: translateX(120%);
        opacity: 0;
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-width: 0;
    }
}

/* トースト通知 */
.toast {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    transition: bottom 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 50;
    width: max-content;
    max-width: 80%;
    text-align: center;
    word-break: break-word;
}
.toast.show {
    bottom: 40px;
    opacity: 1;
}

/* スクロールバー非表示 */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.clock-font {
    font-family: 'Inter', sans-serif;
    font-weight: 200;
}

/* 遊び方画面用のカスタムスクロールバー */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px; /* スクロールバーの細さ */
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent; /* トラック（背景）は透明 */
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3); /* 半透明の白色 */
    border-radius: 10px; /* 丸みを持たせる */
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5); /* ホバー時少し濃くする */
}
/* Firefox用 */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}