:root {
    --primary-color: #85c1e9;
    --success-color: #a2d9ce;
    --warning-color: #f9e79f;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-main: #333333;
}
body { font-family: 'Noto Sans JP', sans-serif; background-color: var(--bg-color); color: var(--text-main); margin: 0; }
.app-header { background: var(--card-bg); padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.portal-container { display: grid; grid-template-columns: 350px 1fr 350px; gap: 20px; padding: 20px; max-width: 1400px; margin: 0 auto; }
.card { background: var(--card-bg); padding: 20px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.03); margin-bottom: 20px; }
.card h2 { font-size: 16px; margin-top: 0; display: flex; align-items: center; gap: 8px; color: #666; border-bottom: 2px solid var(--bg-color); padding-bottom: 10px; }
.btn-primary { background: var(--primary-color); color: white; border: none; padding: 10px 15px; border-radius: 8px; cursor: pointer; font-weight: bold; }
.task-card { transition: transform 0.2s; }
.task-card:hover { transform: translateY(-2px); }

/* ==========================================
   フォーカスモード（ADHD対応保護用）
========================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000;
}
.modal-content {
    background: white; padding: 40px; border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center; max-width: 500px; width: 90%;
    position: relative;
    border: 4px solid var(--primary-color);
}
.close-modal {
    position: absolute; top: 15px; right: 15px;
    background: #f1f1f1; border: none; border-radius: 50%;
    width: 40px; height: 40px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.focus-badge {
    display: inline-block; background: #ffebee; color: #d32f2f;
    padding: 5px 15px; border-radius: 20px; font-weight: bold; font-size: 0.9rem;
    margin-bottom: 20px;
}
.focus-parent-title { color: #888; font-size: 0.9rem; margin-bottom: 5px; }
.focus-title { font-size: 2rem; color: #333; margin: 0 0 30px 0; line-height: 1.4; }
.btn-success {
    background: var(--success-color); color: white; border: none;
    padding: 15px 40px; border-radius: 30px; font-size: 1.2rem; font-weight: bold;
    cursor: pointer; box-shadow: 0 4px 15px rgba(162, 217, 206, 0.5);
    transition: transform 0.2s;
}
.btn-success:hover { transform: scale(1.05); }
.hidden { display: none !important; }

/* ==========================================
   紙吹雪エフェクト（ADHD対応保護用）
========================================== */
.effect-container {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 2000; overflow: hidden;
}
.confetti {
    position: absolute; width: 10px; height: 10px; top: -10px;
    animation: confetti-fall 2s ease-in forwards;
}
@keyframes confetti-fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* インプット関連の緊急対応スタイル */
#task-input, #chat-input {
    flex: 1; padding: 10px; border-radius: 8px; border: 1px solid #ccc; font-size: 14px; outline: none;
}
#task-input:focus, #chat-input:focus { border-color: var(--primary-color); }
