@charset "UTF-8";

:root {  --primary: #1e293b;  --accent: #4f46e5;  --ok: #10b981;  --ok-bg: #d1fae5;  --time: #f59e0b;  --time-bg: #fef3c7;  --ng: #f43f5e;  --ng-bg: #ffe4e6;  --danger: #f43f5e; --bg: #f8fafc;  --surface: #ffffff;  --text: #334155;  --border: #e2e8f0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif; background: var(--bg); color: var(--text); margin: 0; padding: 0 0 60px 0; -webkit-font-smoothing: antialiased; line-height: 1.6;}

.container { max-width: 600px; margin: 24px auto 0; padding: 0 16px; }

.card { background: var(--surface); border-radius: 20px; padding: 28px; box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08); border: 1px solid rgba(255,255,255,0.5); margin-bottom: 24px; position: relative;}
h2.card-title { font-size: 1.1rem; color: var(--primary); margin: 0 0 15px 0; border-bottom: 2px solid var(--bg); padding-bottom: 10px; display: flex; align-items: center; gap: 8px; font-weight: bold;}

.navbar { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 14px 20px; box-shadow: 0 1px 0 rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; display: flex; justify-content: center;}
.navbar-brand { font-size: 1.3rem; font-weight: 800; color: var(--primary); text-decoration: none; letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px; }
.brand-icon { width: 28px; height: 28px; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.navbar-brand:hover .brand-icon { transform: scale(1.1) rotate(5deg); }

.menu-btn { background: none; border: none; padding: 8px; cursor: pointer; color: var(--primary); display: flex; align-items: center; justify-content: center; z-index: 1001; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); transition: 0.2s;}
.menu-btn:hover { background: #f1f5f9; border-radius: 8px; }
.menu-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5); z-index: 999; opacity: 0; visibility: hidden; transition: 0.3s; backdrop-filter: blur(2px); }
.menu-overlay.open { opacity: 1; visibility: visible; }
.drawer-menu { position: fixed; top: 0; right: -280px; width: 280px; height: 100dvh; background: white; z-index: 1000; box-shadow: -5px 0 25px rgba(0,0,0,0.1); transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; overflow-y: auto;}
.drawer-menu.open { right: 0; }
.drawer-header { padding: 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.drawer-title { font-weight: 900; font-size: 1.1rem; color: var(--primary); margin: 0; }
.drawer-close { background: #f1f5f9; border: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #64748b; transition: 0.2s; }
.drawer-close:hover { background: #e2e8f0; color: var(--danger); }
.drawer-list { list-style: none; padding: 12px 0; margin: 0; flex: 1; }
.drawer-item { display: flex; align-items: center; gap: 12px; padding: 14px 20px; text-decoration: none; color: var(--text); font-weight: bold; font-size: 0.95rem; transition: 0.2s; cursor: pointer; background: transparent; border: none; width: 100%; text-align: left; font-family: inherit; box-sizing: border-box;}
.drawer-item:hover { background: #f8fafc; color: var(--accent); }
.drawer-item.active { color: #94a3b8; pointer-events: none; background: transparent;}
.drawer-item.danger { color: var(--danger); margin-top: 12px; border-top: 1px dashed var(--border); padding-top: 24px; }
.drawer-item.danger:hover { background: #fff1f2; }
.drawer-icon { width: 20px; height: 20px; stroke-width: 2; opacity: 0.8; }

#toast-container { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 100000; display: flex; flex-direction: column; gap: 10px; width: 90%; max-width: 400px;}
.toast { background: #1e293b; color: white; padding: 14px 20px; border-radius: 16px; opacity: 0; transform: translateY(-20px); transition: 0.3s; font-weight: bold; display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.2);}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--danger); }

.icon { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: middle; }
custom-icon { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; line-height: 1; margin: 0; padding: 0; }
custom-icon svg {width: 100%; height: 100%; }

.spinner { animation: spin 1s linear infinite; margin-right: 8px; width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes confirmFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes confirmSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }