#scroll-top-btn {
    position: fixed;
    bottom: 1em;
    right: 1em;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    font-size: 18px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

#scroll-top-btn:hover {
    background-color: #0056b3;
}

.markdown-content {
    background-color: #fefefe;
    padding: 0.6em;
    border-radius: 5px;
    white-space: pre-wrap;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #222;
}
#custom-view-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

#right-panel {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid #ccc;
    padding-top: 1em;
}
/* 📱 モバイル用：カレンダー・月別アーカイブ・再読み込みボタンを非表示 */
#calendar,
#archive-list,
#refresh-cache-btn,
#right-panel h2:has(+ #calendar),
#right-panel h2:has(+ #archive-list),
#right-panel h2:has(+ div + ul#archive-list),
#right-panel div:has(#refresh-cache-btn) {
    display: none !important;
}
html, body {
    height: auto;
    overflow-x: hidden;
}

#scroll-top-btn {
    display: block !important;
}