:root { 
    --p: #2196F3; --bg: #F0F2F5; --c: #FFFFFF; --t: #333; 
    --clock-f: 'sans-serif'; --clock-c: #FFFFFF;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --notice-bg: rgba(255,255,255,0.15);
}

/* 広告・不要要素の強制非表示 */
iframe, [id*="ad-"], [class*="ad-"], ins.adsbygoogle, .ads { display: none !important; }

body { margin: 0; font-family: -apple-system, sans-serif; background-color: var(--bg); color: var(--t); transition: 0.3s; }
 
header { 
    background-color: var(--p); color: var(--clock-c); padding: 20px; text-align: center; 
    position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-top { position: relative; max-width: 1100px; margin: 0 auto; }
.settings-trigger-top { position: absolute; right: 0; top: 0; cursor: pointer; padding: 8px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.settings-trigger-top:hover { background: rgba(255,255,255,0.2); }

#clock { font-size: clamp(2.5rem, 8vw, 3.2rem); font-family: var(--clock-f); color: var(--clock-c); line-height: 1.1; }

/* お知らせ枠のデザイン */
.notice-board {
    max-width: 800px; margin: 12px auto 0; background: var(--notice-bg);
    padding: 10px 18px; border-radius: 8px; font-size: 0.9rem; color: var(--clock-c);
    backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.2); text-align: left;
    line-height: 1.4;
}
.notice-tag { font-weight: bold; background: rgba(255,255,255,0.3); padding: 2px 8px; border-radius: 4px; margin-right: 8px; font-size: 0.75rem; }

.search-container { width: 90%; max-width: 600px; margin: 25px auto; }
.search-form { display: flex; background: #fff; border-radius: 50px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid #ddd; }
.search-bar { flex: 1; padding: 15px 20px; border: none; outline: none; font-size: 1rem; }
.search-button { background: transparent; border: none; padding: 0 20px; cursor: pointer; color: var(--p); display: flex; align-items: center; }

.container { width: 95%; max-width: 1100px; margin: 0 auto; padding-bottom: 50px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.card { background: #fff; border-radius: 16px; padding: 20px; box-shadow: var(--shadow); height: fit-content; margin-bottom: 20px; border-top: 4px solid var(--p); }
h3 { margin-top: 0; color: var(--p); font-size: 1.1rem; }

main { grid-column: span 7; }
aside { grid-column: span 5; }
@media (max-width: 900px) { main, aside { grid-column: span 12; } }

textarea { width: 100%; height: 280px; border: 1px solid #eee; border-radius: 10px; padding: 15px; resize: none; box-sizing: border-box; font-size: 1rem; }
.bookmark-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 10px; }
.bookmark-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #555; font-size: 0.75rem; text-align: center; }
.icon-placeholder { width: 44px; height: 44px; background: #f0f7ff; border-radius: 12px; margin-bottom: 5px; display: grid; place-items: center; font-weight: bold; color: var(--p); }

.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 2100; backdrop-filter: blur(5px); }
.modal { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: white; padding: 25px; border-radius: 24px; width: 90%; max-width: 450px; color: #333; }
.picker { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 15px; }
.color-dot { width: 35px; height: 35px; border-radius: 8px; cursor: pointer; border: 2px solid #eee; }
.font-btn { padding: 8px 12px; border: 1px solid #ddd; border-radius: 8px; cursor: pointer; font-size: 0.8rem; background: #fff; }

#news-list { list-style: none; padding: 0; margin: 0; }
#news-list li { padding: 10px 0; border-bottom: 1px solid #f0f0f0; font-size: 0.95rem; }
#news-list a { color: #333; text-decoration: none; }
