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

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #111, #222);
  color: #fff;
  line-height: 1.6;
  min-height: 100vh;
}

/* ログインページのスタイル */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2em;
}

.login-box {
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #C00;
  border-radius: 10px;
  padding: 3em;
  text-align: center;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 0 20px rgba(204, 0, 0, 0.3);
}

.logo {
  font-size: 2.5em;
  font-weight: bold;
  color: #C00;
  margin-bottom: 1em;
}

.login-box h1 {
  font-size: 1.8em;
  margin-bottom: 0.5em;
  color: #fff;
}

.subtitle {
  color: #ccc;
  margin-bottom: 2em;
}

.login-form {
  text-align: left;
}

.form-group {
  margin-bottom: 1.5em;
}

.form-group label {
  display: block;
  margin-bottom: 0.5em;
  color: #fff;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 0.8em;
  border: 1px solid #444;
  border-radius: 5px;
  background: #222;
  color: #fff;
  font-size: 1em;
}

.form-group input:focus {
  outline: none;
  border-color: #C00;
  box-shadow: 0 0 5px rgba(204, 0, 0, 0.5);
}

.login-btn {
  width: 100%;
  background: #C00;
  color: white;
  padding: 1em;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.login-btn:hover {
  background: #900;
}

.login-info {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid #444;
  color: #ccc;
  font-size: 0.9em;
}

.login-info a {
  color: #C00;
  text-decoration: none;
}

.login-info a:hover {
  text-decoration: underline;
}

/* メンバーダッシュボードのスタイル */
.dashboard {
  display: block;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

.dashboard-header {
  background: #000;
  padding: 1em 2em;
  border-bottom: 2px solid #C00;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.dashboard-nav {
  display: flex;
  list-style: none;
  gap: 20px;
  flex-wrap: wrap;
}

.dashboard-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5em 1em;
  border-radius: 5px;
  transition: background 0.3s;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
  background: #C00;
  color: #fff;
}

.logout-btn {
  background: #C00;
  color: white;
  padding: 0.5em 1em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.logout-btn:hover {
  background: #900;
}

.dashboard-content {
  padding: 2em;
}

.section {
  margin-bottom: 3em;
}

.section h2 {
  font-size: 2em;
  margin-bottom: 1em;
  color: #C00;
  border-bottom: 2px solid #C00;
  padding-bottom: 0.5em;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
  margin-top: 1em;
}

.card {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #444;
  border-radius: 10px;
  padding: 1.5em;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(204, 0, 0, 0.3);
}

.card h3 {
  color: #C00;
  margin-bottom: 1em;
  font-size: 1.3em;
}

.card p {
  color: #ccc;
  margin-bottom: 0.5em;
}

.status-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.5em;
}

.status-active {
  background: #0f0;
}

.status-warning {
  background: #ff0;
}

.status-danger {
  background: #f00;
}

.member-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
  padding: 20px;
}
.member-row {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
  justify-content: center;
  width: 100%;
}
.member-item {
  background: #222;
  color: #fff;
  border-radius: 16px;
  border: 2.5px solid #444;
  width: 100%;
  max-width: 800px;
  min-width: 320px;
  min-height: 180px;
  height: auto;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 32px;
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  gap: 24px;
  overflow: hidden;
}
.member-avatar {
  font-size: 2em;
  width: 56px;
  height: 56px;
  background: #444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0;
}
.member-info {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  flex: 1;
  min-width: 0;
  white-space: normal;
  overflow: visible;
}
.member-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.member-main div {
  white-space: normal;
  overflow: visible;
  text-overflow: initial;
  font-size: 1em;
  color: #fff !important;
}
.member-btns {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.member-btns button {
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}
.member-item h4, .member-item p {
  margin: 0 0 2px 0;
  color: #fff !important;
}
.member-item h4 {
  margin-bottom: 6px;
  font-size: 1.2em;
  color: #fff !important;
}
.member-item .ban-label {
  margin-left: 8px;
}
.member-item > div:last-child {
  margin-top: 0;
  margin-left: auto;
}

/* 管理者用 規制・バン・消去ボタン */
.member-ban-btn {
  margin: 2px 4px;
  background: #616161;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background 0.2s;
}
.member-ban-btn:hover {
  background: #212121;
}
.ban-label {
  color: #d32f2f !important;
  font-weight: bold;
  margin-left: 8px;
}

/* 会員証ボタン */
.member-card-btn {
  margin: 2px 4px;
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background 0.2s;
}
.member-card-btn:hover {
  background: #0d47a1;
}
/* 会員証モーダル */
#memberCardModal {
  z-index: 9999;
}
#memberCardModal input, #memberCardModal select {
  margin-left: 8px;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #90caf9;
}
#memberCardModal button[type="submit"] {
  margin-top: 8px;
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 16px;
  cursor: pointer;
  font-size: 1em;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .login-box {
    padding: 2em;
  }
  
  .dashboard-nav {
    flex-direction: column;
    gap: 10px;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .member-list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

/* 活動報告ページのスタイル */
.report-form-container {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #444;
  border-radius: 10px;
  padding: 2em;
  margin-bottom: 3em;
}

.report-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5em;
}

.report-form .form-group:nth-child(1),
.report-form .form-group:nth-child(2),
.report-form .form-group:nth-child(3),
.report-form .form-group:nth-child(4),
.report-form .form-group:nth-child(5),
.report-form .form-group:nth-child(8),
.report-form .form-group:nth-child(9) {
  grid-column: 1 / -1;
}

.submit-btn {
  background: #C00;
  color: white;
  padding: 1em 2em;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  grid-column: 1 / -1;
}

.submit-btn:hover {
  background: #900;
}

.recent-reports {
  margin-top: 3em;
}

.recent-reports h3 {
  color: #C00;
  margin-bottom: 1em;
  font-size: 1.5em;
}

.reports-list {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.report-item {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #444;
  border-radius: 10px;
  padding: 1.5em;
  transition: transform 0.3s, box-shadow 0.3s;
}

.report-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(204, 0, 0, 0.2);
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid #444;
}

.report-header h4 {
  color: #C00;
  font-size: 1.2em;
  margin: 0;
}

.report-type {
  padding: 0.3em 0.8em;
  border-radius: 15px;
  font-size: 0.8em;
  font-weight: bold;
  text-transform: uppercase;
}

.report-type.event {
  background: #0066cc;
  color: white;
}

.report-type.volunteer {
  background: #00cc66;
  color: white;
}

.report-type.disaster {
  background: #cc0000;
  color: white;
}

.report-type.training {
  background: #cc6600;
  color: white;
}

.report-type.other {
  background: #666;
  color: white;
}

.report-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5em;
  margin-bottom: 1em;
}

.report-details p {
  margin: 0;
  color: #ccc;
}

.report-description {
  margin-bottom: 1em;
}

.report-description p {
  color: #fff;
  line-height: 1.6;
}

.report-impact {
  background: rgba(0, 102, 204, 0.1);
  border-left: 3px solid #0066cc;
  padding: 1em;
  margin-bottom: 1em;
}

.report-impact p {
  margin: 0;
  color: #ccc;
}

.report-photos {
  margin-top: 1em;
}

.report-photos a {
  color: #C00;
  text-decoration: none;
  font-weight: bold;
}

.report-photos a:hover {
  text-decoration: underline;
}

.no-reports {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 2em;
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1em 2em;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  z-index: 1000;
  animation: slideIn 0.3s ease-out;
}

.notification.success {
  background: #00cc66;
}

.notification.error {
  background: #cc0000;
}

.notification.info {
  background: #0066cc;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .report-form {
    grid-template-columns: 1fr;
  }
  
  .report-details {
    grid-template-columns: 1fr;
  }
  
  .report-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5em;
  }
} 

/* 災害状況の検索・フィルタリング機能 */
.disaster-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin-bottom: 2em;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  padding: 1.5em;
  border-radius: 10px;
  border: 1px solid #444;
}

.search-box input {
  padding: 0.8em;
  border: 1px solid #444;
  border-radius: 5px;
  background: #222;
  color: #fff;
  font-size: 1em;
  min-width: 200px;
}

.search-box input:focus {
  outline: none;
  border-color: #C00;
  box-shadow: 0 0 5px rgba(204, 0, 0, 0.5);
}

.status-filter {
  display: flex;
  gap: 1em;
  align-items: center;
}

.status-filter label {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.status-filter input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.view-controls {
  display: flex;
  gap: 0.5em;
}

.view-btn {
  background: #C00;
  color: white;
  padding: 0.5em 1em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.view-btn:hover {
  background: #900;
}

.disaster-card {
  border-left: 4px solid #444;
}

.disaster-card.normal {
  border-left-color: #0f0;
}

.disaster-card.warning {
  border-left-color: #ff0;
}

.disaster-card.danger {
  background: #300;
  border: 2px solid #f00;
  color: #fff;
}
.status-indicator.status-danger {
  background: #f00;
  border: 2px solid #900;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .disaster-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-box input {
    min-width: auto;
  }
  
  .status-filter {
    justify-content: center;
  }
  
  .view-controls {
    justify-content: center;
  }
} 

/* アラートバナーのスタイル */
.alert-banner {
  width: 100%;
  padding: 1.5em;
  margin: 0;
  border: none;
  border-radius: 0;
  animation: slideDown 0.5s ease-out;
}

.danger-alert {
  background: linear-gradient(135deg, #cc0000, #990000);
  border-bottom: 3px solid #ff0000;
  box-shadow: 0 2px 10px rgba(204, 0, 0, 0.3);
}

.warning-alert {
  background: linear-gradient(135deg, #ff6600, #cc5500);
  border-bottom: 3px solid #ff8800;
  box-shadow: 0 2px 10px rgba(255, 102, 0, 0.3);
}

.alert-content {
  display: flex;
  align-items: flex-start;
  gap: 1em;
  max-width: 1200px;
  margin: 0 auto;
}

.alert-icon {
  font-size: 2em;
  flex-shrink: 0;
  margin-top: 0.2em;
}

.alert-text {
  flex: 1;
  color: white;
}

.alert-text h3 {
  margin: 0 0 0.5em 0;
  font-size: 1.5em;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.alert-text p {
  margin: 0.5em 0;
  font-size: 1.1em;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.alert-text strong {
  color: #ffff00;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .alert-content {
    flex-direction: column;
    text-align: center;
  }
  
  .alert-icon {
    margin: 0 auto 0.5em;
  }
  
  .alert-text h3 {
    font-size: 1.3em;
  }
  
  .alert-text p {
    font-size: 1em;
  }
} 

/* APIエラーメッセージ */
.api-error {
  padding: 2em;
}

.error-message {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 2em;
  margin: 1em 0;
  display: flex;
  align-items: center;
  gap: 1.5em;
}

.error-icon {
  font-size: 3em;
  color: #f39c12;
}

.error-content h3 {
  color: #e67e22;
  margin-top: 0;
  margin-bottom: 0.5em;
}

.error-content p {
  margin: 0.5em 0;
  color: #2c3e50;
}

.retry-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 0.8em 1.5em;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  margin-top: 1em;
  transition: background 0.3s;
}

.retry-btn:hover {
  background: #2980b9;
} 

.disaster-list-table {
  width: 100%;
  max-width: 900px;
  margin: 2em auto;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow-x: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: block;
}

.disaster-list-table table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.disaster-list-table th, .disaster-list-table td {
  padding: 0.7em 1em;
  text-align: left;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
}

.disaster-list-table th {
  background: #f7f7f7;
  font-weight: bold;
  font-size: 1em;
}

.disaster-list-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 700px) {
  .disaster-list-table table {
    min-width: 600px;
  }
} 

.disaster-list-table,
.disaster-list-table th,
.disaster-list-table td {
  background: #fff;
  color: #000;
}

.register-form {
  background: rgba(255, 108, 108, 0.95);
  color: #000;
}

.register-form label,
.register-form input,
.register-form select {
  color: #000;
}

.disaster-list-table {
  width: 100%;
  max-width: 900px;
  margin: 2em auto;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow-x: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: block;
}
.disaster-list-table table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}
.disaster-list-table th, .disaster-list-table td {
  padding: 0.7em 1em;
  text-align: left;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
}
.disaster-list-table th {
  background: #f7f7f7;
  font-weight: bold;
  font-size: 1em;
}
.disaster-list-table tr:last-child td {
  border-bottom: none;
}
@media (max-width: 700px) {
  .disaster-list-table table {
    min-width: 600px;
  }
}

/* 出動依頼タブ用スタイル */
.dispatch-card {
  border: 1px solid #000000;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  background: #000000;
  box-shadow: 0 2px 6px rgba(33,150,243,0.08);
}
.dispatch-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.dispatch-btn {
  padding: 6px 16px;
  border: none;
  border-radius: 4px;
  background: #2196f3;
  color: #fff;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s;
}
.dispatch-btn:disabled {
  background: #000000;
  cursor: not-allowed;
}
.dispatch-status {
  font-weight: bold;
  color: #1976d2;
  margin-left: 8px;
} 

/* 出動依頼作成フォーム */
.dispatch-form {
  background: #000000;
  border: 1px solid #000000;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}
.dispatch-form h3 {
  margin-top: 0;
}
.dispatch-form label {
  display: block;
  margin-bottom: 8px;
}
.dispatch-form input,
.dispatch-form select {
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #000000;
}
.dispatch-form button[type="submit"] {
  margin-top: 8px;
  background: #1976d2;
  color: #000000;
  border: none;
  border-radius: 4px;
  padding: 6px 16px;
  cursor: pointer;
  font-size: 1em;
} 

/* 管理者用 出動者・非出動者リスト */
.dispatch-admin-list {
  margin-top: 10px;
  padding: 8px;
  background: #000000;
  border-radius: 6px;
  font-size: 0.95em;
}
.dispatch-admin-list strong {
  color: #1976d2;
} 

/* 出動依頼削除ボタン */
.dispatch-delete-btn {
  margin-left: 8px;
  background: #d32f2f;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.95em;
  transition: background 0.2s;
}
.dispatch-delete-btn:hover {
  background: #b71c1c;
} 

.member-birthday {
  margin-top: 8px;
  color: #fff !important;
  font-size: 0.98em;
  text-align: right;
  opacity: 0.85;
} 


