* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background: linear-gradient(180deg, #1a1820 0%, #2a2435 100%);
    color: #e4e6eb;
    font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans CJK JP', 'Segoe UI', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}
.container { max-width: 1024px; margin: 0 auto; padding: 32px 28px; }
a { color: #d4b8ff; }
a:hover { color: #ffeaa0; }

/* ヘッダ */
.site-header {
    background: linear-gradient(135deg, #4a2e6a 0%, #2d4a5a 100%);
    padding: 28px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.site-logo { display: flex; align-items: center; gap: 16px; }
.logo-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    object-fit: cover;
}
.site-title { font-size: 26px; font-weight: 700; color: #ffeaa0; }
.site-subtitle { font-size: 13px; color: #c4b5e0; margin-top: 4px; }
.site-date { text-align: right; }
.site-date .date { font-size: 18px; font-weight: 600; color: #f0e4ff; }
.site-date .weather { font-size: 13px; color: #b8a4d6; margin-top: 4px; }

/* ナビ */
.nav { display: flex; gap: 8px; margin-bottom: 24px; padding: 0 4px; flex-wrap: wrap; }
.nav a {
    color: #b8a4d6;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}
.nav a.active, .nav a:hover { background: rgba(180, 140, 240, 0.2); color: #ffeaa0; }

/* ブロック共通 */
.block {
    background: rgba(40, 36, 56, 0.6);
    border: 1px solid rgba(180, 140, 240, 0.15);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}
.block-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffeaa0;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.block-title .badge {
    font-size: 11px;
    background: rgba(180, 140, 240, 0.2);
    color: #d4b8ff;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 400;
}

.loading {
    color: #9b9b9b;
    font-style: italic;
    padding: 12px 0;
    font-size: 13px;
}

/* Block 1: からくり町 */
.karakuri-summary { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.karakuri-thumb-wrap { position: relative; aspect-ratio: 9/16; background: #1a1822; border-radius: 8px; overflow: hidden; }
.karakuri-image { width: 100%; height: auto; display: block; }
.karakuri-image[src=""] { display: none; }
.image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9b9b9b;
    font-size: 13px;
    padding: 16px;
    text-align: center;
}
.karakuri-meta { font-size: 14px; color: #c4b5e0; }
.karakuri-meta .stat { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.karakuri-meta .stat span { background: rgba(180, 140, 240, 0.1); padding: 6px 10px; border-radius: 6px; font-size: 12px; color: #d4b8ff; }
.karakuri-meta .summary-text { line-height: 1.7; color: #e4e6eb; }
.karakuri-meta .highlight {
    color: #ffd591;
    font-weight: 600;
    margin-top: 14px;
    font-size: 13px;
    padding-left: 12px;
    border-left: 3px solid #ffd591;
}

/* Block 2: ELYTH */
.elyth-post {
    background: rgba(60, 50, 80, 0.4);
    border-left: 3px solid #d4b8ff;
    padding: 14px 16px;
    margin-bottom: 12px;
    border-radius: 4px 8px 8px 4px;
}
.elyth-post .meta { font-size: 11px; color: #9b9b9b; margin-bottom: 6px; }
.elyth-post .meta .tag { background: rgba(180, 140, 240, 0.2); color: #d4b8ff; padding: 1px 6px; border-radius: 4px; font-size: 10px; margin-left: 6px; }
.elyth-post .content { font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
.elyth-post .reactions { font-size: 11px; color: #9b9b9b; margin-top: 8px; }

/* Block 3: Bluesky */
.bsky-post {
    background: rgba(50, 60, 80, 0.4);
    border-left: 3px solid #5dade2;
    padding: 14px 16px;
    margin-bottom: 12px;
    border-radius: 4px 8px 8px 4px;
}
.bsky-post .meta { font-size: 11px; color: #9b9b9b; margin-bottom: 6px; }
.bsky-post .content { font-size: 14px; line-height: 1.7; white-space: pre-wrap; }

/* Block 4: 1日総括 */
.summary-block { font-size: 14px; line-height: 1.8; }
.summary-block h3 { font-size: 15px; color: #ffd591; margin-top: 14px; margin-bottom: 6px; }
.summary-block p { color: #d4d4dc; margin-bottom: 8px; }
.summary-block .quote {
    border-left: 3px solid #ffd591;
    padding-left: 12px;
    font-style: italic;
    color: #c4b5e0;
    margin: 10px 0;
}

/* フッター */
.site-footer { text-align: center; padding: 32px 0 16px; color: #6a6478; font-size: 12px; }
.site-footer .made-by { color: #b8a4d6; margin-top: 6px; }

/* レスポンシブ */
@media (max-width: 768px) {
    .karakuri-summary { grid-template-columns: 1fr; }
    .karakuri-thumb-wrap { aspect-ratio: auto; max-height: 400px; }
    .site-header { flex-direction: column; align-items: flex-start; }
    .site-date { text-align: left; }
    .container { padding: 20px 16px; }
}
