.container {
  /* max-width: 1200px; */
  margin: 0;
  padding: 20px;
}
h1 {
    text-align: center;
    margin-bottom: 20px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
th, td {
    border: 1px solid #dee2e6;
    padding: 8px;
    text-align: left;
}
th {
    background-color: #6c757d;
    color: #fff;
    text-align: center;
}
tbody tr:nth-child(even) {
    background-color: #f3f4f6;
}
.pagination {
    display: flex;
    justify-content: center;
}
.pagination li {
    list-style: none;
    margin: 0 5px;
}
.pagination a, .pagination span {
    padding: 6px 12px;
    text-decoration: none;
    color: #007bff;
    border: 1px solid #dee2e6;
    border-radius: .25rem;
}
.pagination .active a {
    background-color: #007bff;
    color: #fff;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
/* Modal body input styles */
.modal-body input[type="text"],
.modal-body textarea {
    width: 100%;
    box-sizing: border-box;
}
.modal-body textarea[name="answer"] {
    height: 150px;
}

/* Button styles */
.btn {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
}

.btn-primary {
    background-color: #007bff;
    border: none;
    color: white;
}

.btn-primary:hover {
    background-color: #0069d9;
}

.btn-danger {
    background-color: #dc3545;
    border: none;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}
/* カード全体のスタイル */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 800px; /* 最大幅を800pxに制限 */
    word-wrap: break-word;
    background-color: #ffffff; /* 背景色を白に設定 */
    background-clip: border-box;
    border: 1px solid #cccccc; /* カード全体を囲む線 */
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* シャドウの色を設定 */
    margin: auto; /* カードを中央に配置 */
    overflow: hidden; /* 角が途切れないように設定 */
  }
  
  /* カードのヘッダー */
  .card-header {
    padding: 0.75rem 1.25rem;
    margin-bottom: 0;
    background-color: #ffffff; /* ヘッダーの背景色を設定 */
    border-bottom: 1px solid #cccccc; /* ヘッダーと本文を区切る線 */
    font-size: 1.25rem;
    font-weight: 500;
  }
  
  /* カードのボディ */
  .card-body {
    flex: 1 1 auto;
    padding: 1.25rem;
    background-color: #ffffff; /* ボディの背景色を白に設定 */
  }
  
  /* カードのタイトル */
  .card-title {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 500;
  }
  
  /* カードのテキスト */
  .card-text {
    margin-bottom: 1rem;
  }
  
  /* カードのフッター */
  .card-footer {
    padding: 0.75rem 1.25rem;
    background-color: #ffffff; /* フッターの背景色を設定 */
    border-top: 1px solid #cccccc; /* フッターと本文を区切る線 */
  }

   /* --------- */
  /* login.php */
 /* --------- */
  .login-body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
  
  .login-card {
    width: 100%;
    max-width: 400px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px;
    }

    .login-card-header {
        text-align: center;
        margin-bottom: 20px;
    }

    .login-card-body {
        display: flex;
        flex-direction: column;
    }

    
    .alert {
        padding: 10px;
        border-radius: 4px;
        margin-bottom: 15px;
    }

    .alert-success {
        color: #155724;
        background-color: #d4edda;
        border-color: #c3e6cb;
    }

    .alert-danger {
        color: #721c24;
        background-color: #f8d7da;
        border-color: #f5c6cb;
    }

    .form-control {
        width: 100%;
        padding: 10px;
        margin-bottom: 15px;
        border: 1px solid #ced4da;
        border-radius: 4px;
        box-sizing: border-box;
    }

    .submit-btn {
        width: 100%;
        padding: 10px;
        color: white;
        background-color: #007bff;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        text-align: center;
    }

    .submit-btn:hover {
        background-color: #0056b3;
    }

    .login-form-group {
        margin-bottom: 15px;
    }

    #logoImage {
        width: 250px;
    }

    a {
        color: #007bff;
        text-decoration: none;
    }

    a:hover {
        text-decoration: underline;
    }
  
    .login-link {
        text-align: center;
        margin-top: 15px;
    }

    
   /* ------------- */
  /* dashboard.php */
 /* ------------- */
    .dashboard-body {
        font-family: Arial, sans-serif;
        margin: 0;
      }
      /* Sidebar */
      .dashboard-sidebar {
        position: fixed;
        top: 60px; /* 初期値 */
        bottom: 0;
        left: 0;
        width: 250px;
        padding: 20px;
        background-color: #f8f9fa;
        z-index: 1000;
        margin: 0 20px 0 0;
      }
      .dashboard-sidebar ul {
        list-style: none;
        padding: 0;
      }
      .dashboard-sidebar li {
        margin-bottom: 10px;
      }
      .dashboard-sidebar a {
        text-decoration: none;
        color: #333;
        font-weight: bold;
      }
      .dashboard-sidebar li:hover {
        background-color: #dae8fc;
        cursor: pointer;
      }
      .dashboard-sidebar .selected {
        background-color: #dae8fc; /* 柔らかい青色で選択された項目を強調 */
      }
      /* フッターのスタイル */
      .dashboard-footer {
        position: fixed;
        left: 0;
        bottom: 0;
        background-color: #f8f9fa;
        padding: 10px 20px;
        text-align: left; /* 左寄せに設定 */
        width: 250px;
      }
  
      .dashboard-footer a {
        text-decoration: none;
        color: #333;
        font-weight: bold;
      }
  
      .dashboard-footer a:hover {
        color: #000;
      }
  
      /* Topbar */
      .dashboard-topbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        background-color: #f8f9fa;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1001;
      }
      /* Content */
      .dashboard-content {
        margin-left: 300px;
        margin-top: 60px;
        height: calc(100vh - 70px);
        position: relative;
      }
      /* Loading Overlay */
      .dashboard-loading-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.8);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 9999;
      }
      /* Iframe */
      .dashboard-iframe-container {
        position: relative;
        overflow: hidden;
        height: 100%;
      }
      .dashboard-iframe-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
      }
      .dashboard-loading {
        width: 65px;
        height: 65px;
        margin: 50px auto;
        border-radius: 50%;
        border: 6px solid #ddd;
        border-top-color: #999;
        animation: spin 1s infinite linear;
      }
      .dashboard-logout-btn {
        background-color: #4CAF50;
        border: none;
        color: white;
        padding: 5px 10px;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        font-size: 16px;
        margin: 4px 2px;
        cursor: pointer;
        background-color: #007bff;
        border: none;
        color: white;
      }
  
      @keyframes spin {
        from {
          transform: rotate(0);
        }
        to {
          transform: rotate(360deg);
        }
      }
  
      /* Responsive Sidebar for Mobile */
      @media (max-width: 768px) {
        .dashboard-sidebar {
          width: 100%;
          height: auto;
          position: relative;
          margin-top: 0;
          padding: 0;
          display: none; /* デフォルトで非表示 */
        }
        .dashboard-sidebar ul {
          display: flex;
          flex-direction: column;
        }
        .dashboard-topbar {
          flex-direction: column;
          align-items: flex-start;
        }
        .dashboard-topbar img {
          margin-bottom: 10px;
        }
        .dashboard-content {
          margin-left: 0;
          margin-top: 120px;
        }
      }
  
      /* Toggle button for mobile */
      .dashboard-toggle-btn {
        display: none;
        background-color: #f8f9fa;
        border: none;
        font-size: 20px;
        cursor: pointer;
      }
  
      @media (max-width: 768px) {
        .dashboard-toggle-btn {
          display: block;
        }
      }
  