/* ===========================================
   satorader - 高齢者にも優しい明快UI
   フォントサイズ大・コントラスト高・タッチ領域広い
   =========================================== */

/* --- リセット & ベース --- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: "Hiragino Kaku Gothic Pro", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #222;
    background: #eef2f7;
    -webkit-font-smoothing: antialiased;
}

/* --- サイトヘッダー --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.header-top {
    background: linear-gradient(135deg, #0f2b47 0%, #1a3a5c 60%, #244b6e 100%);
    color: #fff;
}
.header-top-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}
.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #ff6b35;
    border-radius: 10px;
    font-size: 1.2rem;
}
.brand-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}
.header-user {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
}
.header-club {
    background: rgba(255,255,255,0.12);
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
}
.header-name {
    font-weight: 600;
    opacity: 0.9;
}
.header-logout {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    transition: all .2s;
}
.header-logout:hover {
    color: #fff;
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.4);
}
.header-menu-toggle {
    display: none;
    background: none;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 8px;
    color: #fff;
    font-size: 1.3rem;
    padding: 6px 12px;
    cursor: pointer;
}
/* ナビゲーションバー */
.header-nav {
    background: #fff;
    border-bottom: 3px solid #ff6b35;
}
.header-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    padding: 0 12px;
}
.header-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    text-decoration: none;
    color: #444;
    font-size: 1.05rem;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    transition: all .15s;
    white-space: nowrap;
}
.header-nav-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    color: #888;
    transition: color .15s;
}
.header-nav-item:hover {
    color: #1a6bc4;
    background: #f0f6ff;
}
.header-nav-item:hover i {
    color: #1a6bc4;
}
.header-nav-item.active {
    color: #1a3a5c;
    border-bottom-color: #ff6b35;
    font-weight: 700;
    background: #fef7f3;
}
.header-nav-item.active i {
    color: #ff6b35;
}
/* ナビ ドロップダウン */
.header-nav-dropdown {
    position: relative;
}
.header-nav-dropdown .dropdown-menu {
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border: 1px solid #e0e0e0;
    padding: 6px 0;
    margin-top: 0;
}
.header-nav-dropdown .dropdown-item {
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #444;
}
.header-nav-dropdown .dropdown-item i {
    color: #888;
    margin-right: 8px;
}
.header-nav-dropdown .dropdown-item:hover {
    background: #f0f6ff;
    color: #1a6bc4;
}
.header-nav-dropdown .dropdown-item:hover i {
    color: #1a6bc4;
}

@media (max-width: 992px) {
    .header-user { display: none; }
    .header-menu-toggle { display: block; }
    .header-nav {
        display: none;
        border-bottom: none;
    }
    .header-nav.open {
        display: block;
    }
    .header-nav-inner {
        flex-direction: column;
        padding: 0;
    }
    .header-nav-item {
        padding: 16px 24px;
        border-bottom: 1px solid #eee;
        margin-bottom: 0;
        font-size: 1.1rem;
    }
    .header-nav-item:last-child { border-bottom: none; }
    .header-nav-item.active {
        border-bottom-color: #eee;
        background: #fef7f3;
        border-left: 4px solid #ff6b35;
    }
    .header-nav-dropdown .dropdown-menu {
        position: static !important;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        background: #f8f9fa;
    }
    .header-nav-dropdown .dropdown-item {
        padding: 14px 24px 14px 44px;
        border-bottom: 1px solid #eee;
    }
}

/* --- ダッシュボードトップ --- */
.dashboard-hero {
    background: linear-gradient(135deg, #1a3a5c 0%, #2a5a8c 100%);
    color: #fff;
    padding: 36px 0;
}
.dashboard-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.dashboard-greeting {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.dashboard-club {
    font-size: 1rem;
    opacity: 0.85;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: -30px auto 0;
    padding: 0 20px 40px;
    position: relative;
    z-index: 1;
}
.dash-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all .2s;
    display: flex;
    flex-direction: column;
}
.dash-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.13);
    color: inherit;
}
.dash-card-icon {
    padding: 28px 24px 16px;
    text-align: center;
}
.dash-card-icon i {
    font-size: 2.4rem;
}
.dash-card-body {
    padding: 0 24px 24px;
    text-align: center;
    flex: 1;
}
.dash-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
}
.dash-card-desc {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.5;
}
.dash-card-accent-calendar .dash-card-icon i { color: #1a6bc4; }
.dash-card-accent-ops .dash-card-icon i { color: #e65100; }
.dash-card-accent-download .dash-card-icon i { color: #2e7d32; }
.dash-card-accent-members .dash-card-icon i { color: #6a1b9a; }
.dash-card-accent-map .dash-card-icon i { color: #00838f; }
.dash-card-accent-settings .dash-card-icon i { color: #546e7a; }

/* --- メインエリア --- */
#main_area {
    min-height: calc(100vh - 64px);
    padding-bottom: 40px;
}

/* --- コンテナ --- */
.container {
    max-width: 1200px;
}

/* --- ページヘッダー --- */
.page-header {
    background: linear-gradient(135deg, #1a3a5c 0%, #2a5a8c 100%);
    color: #fff;
    padding: 24px 30px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(26,58,92,0.2);
}
.page-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}
.page-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.page-header-form {
    display: flex;
    align-items: center;
    gap: 8px;
}
.month-input {
    width: 160px;
    background: #fff !important;
    color: #222 !important;
}

/* --- カード --- */
.card {
    border: 2px solid #d0d8e0 !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    overflow: hidden;
}
.card-body {
    padding: 24px !important;
}
.card-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #1a3a5c;
    border-bottom: 3px solid #ff6b35;
    padding-bottom: 10px;
    margin-bottom: 20px !important;
}

/* --- ボタン --- */
.btn {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    padding: 10px 22px !important;
    border-radius: 8px !important;
    transition: all .2s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-primary {
    background: #1a6bc4 !important;
    border-color: #1a6bc4 !important;
}
.btn-primary:hover, .btn-primary:focus {
    background: #145aa8 !important;
    border-color: #145aa8 !important;
    box-shadow: 0 4px 12px rgba(26,107,196,0.3);
}
.btn-danger {
    background: #c62828 !important;
    border-color: #c62828 !important;
}
.btn-danger:hover {
    background: #a41c1c !important;
    box-shadow: 0 4px 12px rgba(198,40,40,0.3);
}
.btn-success {
    background: #2e7d32 !important;
    border-color: #2e7d32 !important;
}
.btn-success:hover {
    background: #1b5e20 !important;
}
.btn-warning {
    background: #e65100 !important;
    border-color: #e65100 !important;
    color: #fff !important;
}
.btn-warning:hover {
    background: #bf360c !important;
}
.btn-secondary {
    background: #546e7a !important;
    border-color: #546e7a !important;
    color: #fff !important;
}
.btn-secondary:hover {
    background: #37474f !important;
}
.btn-outline-primary {
    color: #1a6bc4 !important;
    border: 2px solid #1a6bc4 !important;
    font-weight: 700 !important;
}
.btn-outline-primary:hover {
    background: #1a6bc4 !important;
    color: #fff !important;
}
.btn-outline-success {
    color: #2e7d32 !important;
    border: 2px solid #2e7d32 !important;
    font-weight: 700 !important;
}
.btn-outline-success:hover {
    background: #2e7d32 !important;
    color: #fff !important;
}
.btn-outline-warning {
    color: #e65100 !important;
    border: 2px solid #e65100 !important;
    font-weight: 700 !important;
}
.btn-outline-warning:hover {
    background: #e65100 !important;
    color: #fff !important;
}
.btn-outline-secondary {
    color: #546e7a !important;
    border: 2px solid #546e7a !important;
    font-weight: 700 !important;
}
.btn-outline-secondary:hover {
    background: #546e7a !important;
    color: #fff !important;
}
.btn-lg, .btn-secondary-custom {
    padding: 14px 28px !important;
    font-size: 1.15rem !important;
}
.btn-sm {
    font-size: 0.95rem !important;
    padding: 8px 14px !important;
    min-height: 38px;
}

/* 大きなアクションボタン（予定追加等） */
.btn-action {
    background: #ff6b35;
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 3px 10px rgba(255,107,53,0.3);
}
.btn-action:hover {
    background: #e55a25;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255,107,53,0.35);
}

/* --- テーブル --- */
.table {
    font-size: 1.05rem;
    border: 2px solid #d0d8e0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.table thead th {
    background: #1a3a5c !important;
    color: #fff !important;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 14px 16px !important;
    border-bottom: none !important;
    text-align: center;
    white-space: nowrap;
}
.table tbody td {
    padding: 14px 16px !important;
    vertical-align: middle;
    border-bottom: 1px solid #e8ecf0 !important;
    color: #222;
    font-weight: 500;
}
.table tbody tr:hover {
    background: #f0f6ff !important;
}
.table tbody tr:nth-child(even) {
    background: #f8fafc;
}

/* --- フォーム --- */
.form-control, .form-select {
    font-size: 1.1rem !important;
    padding: 12px 14px !important;
    border: 2px solid #b0bec5 !important;
    border-radius: 8px !important;
    color: #222 !important;
    background: #fff !important;
    min-height: 48px;
    transition: border-color .2s;
}
.form-control:focus, .form-select:focus {
    border-color: #1a6bc4 !important;
    box-shadow: 0 0 0 3px rgba(26,107,196,0.15) !important;
    background: #fafcff !important;
}
.form-label {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin-bottom: 6px !important;
}
.form-check-input {
    width: 24px !important;
    height: 24px !important;
    border: 2px solid #1a6bc4 !important;
    margin-top: 2px !important;
}
.form-check-input:checked {
    background-color: #1a6bc4 !important;
    border-color: #1a6bc4 !important;
}
.form-check-label {
    font-size: 1.05rem !important;
    font-weight: 600;
    margin-left: 6px;
    padding-top: 2px;
}
textarea.form-control {
    min-height: 100px;
}

/* 大きなチェックボックス（出席表用） */
input[type="checkbox"].attend-check {
    width: 28px;
    height: 28px;
    accent-color: #1a6bc4;
    cursor: pointer;
}

/* --- アラート --- */
.alert {
    font-size: 1.05rem !important;
    font-weight: 600;
    padding: 14px 20px !important;
    border-radius: 10px !important;
    border-width: 2px !important;
}

/* --- ステータスバッジ --- */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.status-ok {
    background: #2e7d32;
    color: #fff;
}
.status-ng {
    background: #bdbdbd;
    color: #fff;
}

/* --- ページタブ（捕獲確認書） --- */
.page-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.page-tab {
    padding: 10px 20px;
    border: 2px solid #d0d8e0;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    font-size: 1rem;
    font-weight: 600;
    transition: all .2s;
    background: #fff;
}
.page-tab:hover {
    background: #f0f6ff;
    border-color: #1a6bc4;
    color: #1a6bc4;
}
.page-tab.active {
    background: #1a6bc4;
    color: #fff;
    border-color: #1a6bc4;
}

/* --- セクション区切り --- */
.division-section {
    background: #fff;
    border: 2px solid #d0d8e0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}
.division-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid #ff6b35;
}

/* --- カレンダー --- */
.calendar-header {
    background: linear-gradient(135deg, #1a3a5c 0%, #2a5a8c 100%);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-radius: 12px;
    padding: 20px 28px;
    box-shadow: 0 4px 12px rgba(26,58,92,0.2);
}
.calendar-title {
    font-size: 1.4rem;
    color: #fff;
    margin: 0;
    font-weight: 700;
}
.calendar-container {
    background: #fff;
    border: 2px solid #d0d8e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* FullCalendar カスタマイズ */
.fc { font-family: inherit; font-size: 16px; }
.fc-header-toolbar {
    margin-bottom: 16px !important;
    padding: 12px;
    background: #f5f8fb;
    border: 1px solid #d0d8e0;
    border-radius: 8px;
}
.fc-button {
    background: #1a6bc4 !important;
    border: none !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 10px 18px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}
.fc-button:hover { background: #145aa8 !important; }
.fc-button-active { background: #0d4a8a !important; }
.fc-col-header-cell {
    background: #f5f8fb !important;
    color: #333 !important;
    padding: 12px 0 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
}
.fc-daygrid-day-top { font-size: 1rem !important; font-weight: 600; }
.fc-event {
    border-left: 4px solid currentColor !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #222 !important;
    background: #f0f4f8 !important;
}
.fc-event .fc-event-title { color: #222 !important; }
.fc-event .fc-event-time { color: #555 !important; }
.fc-list-event-dot { border-color: var(--fc-event-border-color) !important; }
.fc-list-event-title { color: #222 !important; }
.fc-list-event-title a { color: #222 !important; text-decoration: none !important; }
.fc-list-event-time { color: #555 !important; }
.fc-list-event td { color: #222 !important; }
.fc-list-event:hover td { background: #f0f6ff !important; }
.fc-day-sat { background-color: #e8f0fb !important; }
.fc-day-sun { background-color: #fdf0f0 !important; }
.fc-day-holiday { background-color: #fff5ec !important; }

/* --- モーダル --- */
.modal-content {
    border: 2px solid #d0d8e0 !important;
    border-radius: 12px !important;
}
.modal-header {
    background: #f5f8fb;
    border-bottom: 2px solid #d0d8e0 !important;
    padding: 18px 24px !important;
}
.modal-title {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: #1a3a5c;
}
.modal-body {
    padding: 24px !important;
}
.modal-body .table-container {
    background: #fafcfe;
    border: 1px solid #d0d8e0;
    border-radius: 8px;
    padding: 16px;
}
.modal-body .table-container td {
    padding: 12px 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e8ecf0;
}
.modal-body .table-container td:first-child {
    font-weight: 700;
    color: #1a3a5c;
    white-space: nowrap;
    width: 120px;
}
.modal-body .table-container input,
.modal-body .table-container select,
.modal-body .table-container textarea {
    font-size: 1.05rem;
    padding: 10px;
    border: 2px solid #b0bec5;
    border-radius: 6px;
    width: 100%;
}
.modal-body .table-container input:focus,
.modal-body .table-container select:focus,
.modal-body .table-container textarea:focus {
    border-color: #1a6bc4;
    outline: none;
}
.modal-footer {
    background: #f5f8fb;
    border-top: 2px solid #d0d8e0 !important;
    padding: 14px 24px !important;
    gap: 10px;
}

/* --- 詳細カード --- */
.detail-container { max-width: 800px; margin: 0 auto; }
.detail-card {
    background: #fff;
    border: 2px solid #d0d8e0;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.detail-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #ff6b35;
}
.detail-card table { width: 100%; }
.detail-card td {
    padding: 12px;
    font-size: 1.05rem;
    vertical-align: top;
}
.detail-card td:first-child {
    width: 120px;
    font-weight: 700;
    color: #1a3a5c;
}
.detail-card input, .detail-card select, .detail-card textarea {
    font-size: 1.05rem;
    padding: 10px;
    border: 2px solid #b0bec5;
    border-radius: 6px;
    width: 100%;
}
.detail-card input:focus, .detail-card select:focus, .detail-card textarea:focus {
    border-color: #1a6bc4;
    outline: none;
}
.detail-card textarea { min-height: 80px; resize: vertical; }

/* ステータス表示（有害管理） */
.hunt-status { margin-top: 16px; }
.hunt-status span {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 6px;
    margin-right: 8px;
    font-size: 1rem;
    font-weight: 700;
}
.status-label-ok { background: #e8f5e9; color: #1b5e20; border: 2px solid #a5d6a7; }
.status-label-ng { background: #fce4ec; color: #b71c1c; border: 2px solid #ef9a9a; }

/* --- ログイン画面 --- */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a3a5c 0%, #2a5a8c 50%, #1a3a5c 100%);
}
.login-card {
    background: #fff;
    padding: 40px 36px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 420px;
}
.login-card h1 {
    text-align: center;
    margin-bottom: 8px;
    color: #1a3a5c;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 3px;
}
.login-card .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 28px;
    font-size: 1rem;
    font-weight: 600;
}
.login-card .form-group {
    margin-bottom: 18px;
}
.login-card .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #333;
    font-size: 1rem;
}
.login-card .form-control {
    width: 100%;
    padding: 14px !important;
    border: 2px solid #b0bec5 !important;
    border-radius: 10px !important;
    font-size: 1.1rem !important;
}
.login-card .form-control:focus {
    border-color: #1a6bc4 !important;
    box-shadow: 0 0 0 3px rgba(26,107,196,0.15) !important;
}
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1a6bc4 0%, #1a3a5c 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: all .2s;
}
.btn-login:hover {
    box-shadow: 0 6px 20px rgba(26,107,196,0.3);
    transform: translateY(-1px);
}
.error-list {
    color: #c62828;
    list-style: none;
    padding: 12px 16px;
    margin: 0 0 16px;
    font-size: 1rem;
    font-weight: 600;
    background: #fce4ec;
    border: 2px solid #ef9a9a;
    border-radius: 8px;
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
    body { font-size: 16px; }

    /* ページヘッダー */
    .page-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 16px;
        border-radius: 10px;
    }
    .page-header h3 { font-size: 1.15rem; }
    .page-header-actions {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }
    .page-header-actions .btn-action {
        width: 100%;
        text-align: center;
    }
    .page-header-form {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }
    .page-header-form .month-input {
        width: 100% !important;
    }
    .page-header-form .btn-action {
        width: 100%;
    }
    .page-header .btn-action {
        width: 100%;
        text-align: center;
    }

    /* ボタン */
    .btn { font-size: 0.95rem !important; padding: 10px 14px !important; }
    .btn-lg { font-size: 1rem !important; padding: 12px 18px !important; }
    .btn-action { width: 100%; text-align: center; padding: 12px 16px; }

    /* カレンダー */
    .calendar-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 16px;
        border-radius: 10px;
    }
    .calendar-header .btn-secondary-custom { width: 100%; }
    .calendar-title { font-size: 1.05rem; }
    .calendar-container { padding: 10px; border-radius: 10px; }
    .fc-header-toolbar {
        flex-direction: column !important;
        gap: 8px;
        padding: 8px !important;
    }
    .fc-toolbar-chunk { display: flex; justify-content: center; }
    .fc-button { padding: 8px 12px !important; font-size: 0.85rem !important; }
    .fc-col-header-cell { padding: 8px 0 !important; font-size: 0.85rem !important; }
    .fc-daygrid-day-top { font-size: 0.85rem !important; }
    .fc-event { font-size: 0.8rem !important; padding: 2px 4px !important; }

    /* テーブル */
    .table thead th { font-size: 0.9rem; padding: 10px 8px !important; white-space: normal; }
    .table tbody td { font-size: 0.9rem; padding: 10px 8px !important; }

    /* カード */
    .card-body { padding: 16px !important; }
    .card-title { font-size: 1.1rem !important; }
    .detail-card { padding: 16px; }

    /* イベントカード */
    .event-card-header {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 14px;
    }
    .event-card-date { text-align: center; }
    .event-card-body {
        flex-direction: column;
        padding: 12px 14px;
        gap: 8px;
    }
    .event-card-body .btn {
        flex: none;
        width: 100%;
    }

    /* モーダル */
    .modal-body .table-container td {
        display: block;
        width: 100%;
        padding: 6px 8px;
    }
    .modal-body .table-container td:first-child {
        width: 100%;
        border-bottom: none;
        padding-bottom: 2px;
        font-size: 0.9rem;
    }
    .modal-body .table-container tr {
        border-bottom: 1px solid #e8ecf0;
        display: block;
        padding: 4px 0;
    }

    /* ダッシュボード */
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 0 12px 24px;
        margin-top: -20px;
    }
    .dash-card-icon { padding: 20px 16px 10px; }
    .dash-card-icon i { font-size: 1.8rem; }
    .dash-card-body { padding: 0 16px 16px; }
    .dash-card-title { font-size: 1rem; }
    .dash-card-desc { font-size: 0.8rem; }
    .dashboard-hero { padding: 24px 0; }
    .dashboard-greeting { font-size: 1.2rem; }

    /* 地図ピッカー */
    .map-picker { height: 280px; }
    .map-picker-label { font-size: 0.9rem; padding: 8px 12px; }
    .map-picker-label small { display: none; }

    /* 捕獲確認書 ページタブ */
    .page-tabs { gap: 4px; }
    .page-tab { padding: 8px 12px; font-size: 0.9rem; }

    /* フォーム */
    .form-control, .form-select { font-size: 1rem !important; padding: 10px 12px !important; min-height: 44px; }

    /* ヘッダー */
    .brand-text { font-size: 1.2rem; }
}

/* --- 高コントラストモード --- */
@media (prefers-contrast: high) {
    .card, .detail-card, .division-section { border-color: #000; }
    .form-control, .form-select { border-color: #000 !important; }
    .btn-primary { background: #000 !important; }
    .navbar { background: #000 !important; }
}

/* --- btn-secondary-custom / btn-danger-custom（カレンダー用） --- */
.btn-secondary-custom {
    background: #ff6b35;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
}
.btn-secondary-custom:hover { background: #e55a25; }
.btn-danger-custom {
    background: #546e7a;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
}
.btn-danger-custom:hover { background: #37474f; }

/* ===========================================
   イベント操作ナビゲーションバー
   =========================================== */
.event-nav-bar {
    background: #fff;
    border: 2px solid #d0d8e0;
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.event-nav-info {
    background: linear-gradient(135deg, #1a3a5c 0%, #2a5a8c 100%);
    color: #fff;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.event-nav-date {
    background: rgba(255,255,255,0.2);
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
}
.event-nav-title {
    font-size: 1.2rem;
    font-weight: 700;
}
.event-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    background: #f5f8fb;
    border-top: 1px solid #d0d8e0;
}
.event-nav-tab {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 12px;
    text-decoration: none;
    color: #555;
    font-size: 1rem;
    font-weight: 600;
    border-right: 1px solid #e0e6ec;
    transition: all .2s;
    min-width: 0;
    text-align: center;
}
.event-nav-tab:last-child { border-right: none; }
.event-nav-tab i {
    font-size: 1.1rem;
    flex-shrink: 0;
}
.event-nav-tab:hover {
    background: #e8f0ff;
    color: #1a6bc4;
}
.event-nav-tab.active {
    background: #1a6bc4;
    color: #fff;
    font-weight: 700;
}
.event-nav-tab.nav-back {
    background: #f0f0f0;
    color: #666;
    flex: 0 0 auto;
    min-width: 120px;
}
.event-nav-tab.nav-back:hover {
    background: #e0e0e0;
    color: #333;
}
@media (max-width: 768px) {
    .event-nav-tabs {
        flex-direction: column;
    }
    .event-nav-tab {
        border-right: none;
        border-bottom: 1px solid #e0e6ec;
        padding: 12px 16px;
        justify-content: flex-start;
    }
    .event-nav-tab:last-child { border-bottom: none; }
    .event-nav-tab.nav-back { min-width: auto; }
    .event-nav-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ===========================================
   有害管理一覧 イベントカード
   =========================================== */
.event-card {
    background: #fff;
    border: 2px solid #d0d8e0;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow .2s;
}
.event-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.event-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e8ecf0;
    flex-wrap: wrap;
    gap: 10px;
}
.event-card-date {
    background: #1a3a5c;
    color: #fff;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
}
.event-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #222;
    flex: 1;
    min-width: 0;
}
.event-card-status {
    display: flex;
    gap: 6px;
}
.event-card-body {
    padding: 16px 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.event-card-body .btn {
    flex: 1 1 100px;
    text-align: center;
}
/* 済 / 未 操作ボタン */
.btn-op-done {
    background: #e8f5e9 !important;
    color: #1b5e20 !important;
    border: 2px solid #66bb6a !important;
    font-weight: 700 !important;
}
.btn-op-done:hover {
    background: #c8e6c9 !important;
}
.btn-op-todo {
    background: #fff3e0 !important;
    color: #e65100 !important;
    border: 2px solid #ffb74d !important;
    font-weight: 700 !important;
}
.btn-op-todo:hover {
    background: #ffe0b2 !important;
}
@media (max-width: 576px) {
    .event-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .event-card-body {
        flex-direction: column;
    }
    .event-card-body .btn {
        flex: none;
        width: 100%;
    }
}
