*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', sans-serif;
    background: #f0f4f8;
    color: #333;
    min-height: 100vh;
}

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

.login-container {
    padding-top: 60px;
    text-align: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #1a4f8a;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

h1 {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 32px;
}

h2 {
    font-size: 1.1rem;
    color: #1a4f8a;
    margin-bottom: 16px;
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    margin: 16px 0 6px;
    text-align: left;
}

select, input[type="password"], input[type="number"], input[type="text"] {
    width: 100%;
    padding: 14px 12px;
    font-size: 1.1rem;
    border: 2px solid #cdd5e0;
    border-radius: 8px;
    background: #fff;
    appearance: none;
}

select:focus, input:focus {
    outline: none;
    border-color: #1a4f8a;
}

.btn {
    display: block;
    width: 100%;
    padding: 18px;
    margin-top: 24px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn:active { opacity: 0.8; }

.btn-primary { background: #1a4f8a; color: #fff; }
.btn-success { background: #2e7d32; color: #fff; }
.btn-danger  { background: #c62828; color: #fff; }
.btn-secondary { background: #546e7a; color: #fff; }

.error { color: #c62828; margin-bottom: 16px; font-weight: bold; }

/* header bar */
.topbar {
    background: #1a4f8a;
    color: #fff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.topbar-name { font-weight: bold; font-size: 1rem; }

.logout-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.6);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
}

/* checklist */
.category-block { margin-bottom: 8px; }

.category-header {
    background: #e3eaf4;
    padding: 12px 16px;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
}

.checklist-items { padding: 4px 0 8px; }

.check-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    transition: background 0.15s;
}

.check-item.checked { background: #e8f5e9; }

.check-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #bbb;
    margin-right: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.check-item.checked .check-icon {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #fff;
}

.important-badge {
    display: inline-block;
    background: #c62828;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.progress-bar-wrap {
    background: #e0e0e0;
    border-radius: 4px;
    height: 8px;
    margin: 8px 0 16px;
}

.progress-bar {
    height: 8px;
    background: #2e7d32;
    border-radius: 4px;
    transition: width 0.3s;
}

.floor-heading {
    margin: 20px 0 6px;
    font-size: 1rem;
    font-weight: bold;
    color: #555;
    border-bottom: 1px solid #ddd;
    padding-bottom: 4px;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 0 0 8px;
}

.room-btn {
    padding: 20px 8px;
    font-size: 1.1rem;
    font-weight: bold;
    border: 2px solid #1a4f8a;
    background: #fff;
    color: #1a4f8a;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.room-btn.selected, .room-btn:active {
    background: #1a4f8a;
    color: #fff;
}

/* 確認モーダル */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-box {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px 20px;
    max-width: 320px;
    width: 90%;
    text-align: center;
}

.modal-body {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    gap: 12px;
}

.modal-buttons .btn {
    margin-top: 0;
    flex: 1;
}

.modal-buttons .btn-secondary {
    font-size: 0.82rem;
    white-space: nowrap;
    padding: 18px 8px;
}
