/* スムーズスクロール無効化 */
html, body {
    scroll-behavior: auto !important;
}

*, *::before, *::after {
    scroll-behavior: auto !important;
}

/* タイムテーブルと同じカラーテーマ */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --completed-color: #43e97b;
    --incomplete-color: #95a5a6;
    --border-color: #e9ecef;
    --text-dark: #2d3436;
    --text-light: #636e72;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-container {
    background: rgba(255, 255, 255, 0.1);
    min-height: 100vh;
    padding: 2rem 0;
}

.page-title {
    background: linear-gradient(45deg, #667eea, #764ba2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ナビゲーションバー */
.navigation-bar {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.nav-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* ホバーエフェクト（PC/タブレットのみ） */
@media (hover: hover) {
    .nav-btn:hover {
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
    }

    .reset-btn:hover {
        box-shadow: 0 8px 16px rgba(255, 107, 107, 0.4);
    }
}

.reset-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
}

/* 統計セクション */
.stats-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.stat-item i {
    margin-right: 0.5rem;
}

/* 部屋カードセクション */
.rooms-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ホバーエフェクト（PC/タブレットのみ） */
@media (hover: hover) {
    .rooms-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    }
}

.rooms-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rooms-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0;
}

/* 部屋グリッド */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    background: white;
}

/* 個別部屋カード */
.room-item {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* ホバーエフェクト（PC/タブレットのみ） */
@media (hover: hover) {
    .room-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s ease;
    }

    .room-item:hover::before {
        left: 100%;
    }

    .room-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }
}

.room-item.completed {
    background: linear-gradient(135deg, var(--completed-color), #38f9d7);
    border-color: var(--completed-color);
    color: white;
}

.room-item.completed .room-number {
    color: white;
}

.room-item.completed .form-label {
    color: rgba(255, 255, 255, 0.9);
}

.room-item.incomplete {
    background: linear-gradient(135deg, var(--incomplete-color), #bdc3c7);
    border-color: var(--incomplete-color);
    color: white;
}

.room-item.incomplete .room-number {
    color: white;
}

.room-item.incomplete .form-label {
    color: rgba(255, 255, 255, 0.9);
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.room-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.room-item.completed .check-icon,
.room-item.incomplete .check-icon {
    font-size: 1.5rem;
}

.room-item.completed .check-icon {
    color: white;
}

.room-item.incomplete .check-icon {
    color: rgba(255, 255, 255, 0.5);
}

/* チェックボックス */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-check-input {
    width: 24px;
    height: 24px;
    cursor: pointer;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--completed-color);
    border-color: var(--completed-color);
}

.room-item.completed .form-check-input,
.room-item.incomplete .form-check-input {
    border-color: rgba(255, 255, 255, 0.5);
}

.form-check-label {
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

/* 備考入力 */
.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.room-item.completed .form-control,
.room-item.incomplete .form-control {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .room-item {
        padding: 1rem;
    }

    .room-number {
        font-size: 1.2rem;
    }

    .stats-section {
        flex-direction: column;
        gap: 0.5rem;
    }

    .stat-item {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 右下固定リロードボタン（FAB） */
.reload-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ホバーエフェクト（PC/タブレットのみ） */
@media (hover: hover) {
    .reload-fab:hover {
        transform: scale(1.1) translateY(-3px);
        box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
    }
}

.reload-fab:active {
    transform: scale(0.95) translateY(0);
}

.reload-fab:active i {
    animation: spin 0.6s ease-in-out;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* スマホ対応 */
@media (max-width: 768px) {
    .reload-fab {
        width: 60px;
        height: 60px;
        font-size: 22px;
        bottom: 20px;
        right: 20px;
    }
}
