
body {
    font-family: sans-serif;
    padding: 20px;
  }

form {
    margin-bottom: 20px;
  }

/* ラベルと入力欄を横並びにするためのスタイル */
form div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

form p {
  display: flex;
  align-items: center;
  gap: 10px;
}

form label {
  min-width: 120px; /* ラベルの幅を調整 */
  text-align: right; /* ラベルのテキストを右寄せに */
}

form input, form select, form textarea {
  width: 300px; /* 入力欄の幅 */
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

form textarea#title {
  width: 400px;
}
form textarea#header {
  width: 800px;
}
form textarea#body {
  width: 600px;
}
form textarea#footer {
  width: 500px;
}

button {
  padding: 8px 12px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 10px;
}

a.button-link {
  padding: 8px 12px;
  background-color: #9E9E9E;
  color: white;
  border-radius: 4px;
  text-decoration: none;
}


.logout-button {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 16px;
  background-color: #f44336;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

.upload-button {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 16px;
  background-color: #4643f7;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

.copy-button {
  display: inline-block;
  margin-bottom: 5px;
  padding: 10px 16px;
  background-color: #fd1b97;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

thead {
  background-color: #f2f2f2;
}

td a {
  margin-right: 10px;
  color: #2196F3;
  text-decoration: none;
}

td a:hover {
  text-decoration: underline;
}

form input[type="file"] {
  width: 300px; /* ファイル選択ボタンの幅 */
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

form .form-fields {
  display: block; /* ここだけflexを解除 */
}

.pagination a {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 5px;
  background-color: #4CAF50; /* 緑ボタン */
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
}

.pagination a:hover {
  background-color: #45a049; /* hover時ちょっと濃い色 */
}

.pagination span {
  margin: 0 10px;
  font-weight: bold;
  font-size: 14px;
}

.search-and-content {
    display: flex;
    justify-content: space-between;  /* 左右に配置 */
    align-items: flex-start;         /* 上揃え */
    gap: 20px;                        /* 間隔 */
    margin-bottom: 20px;
}

.search-form {
    flex: 1;  /* フォームができるだけ広がる */
}

.top-right-box {
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    padding: 15px;
    width: 500px;
    font-size: 15px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 1);
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  appearance: auto;
  -webkit-appearance: checkbox;
  display: inline-block !important;
  visibility: visible !important;
  margin: 5px;
}

ul.errorlist {
  color: red;
  list-style-type: none;
  padding: 0;
  margin: 0;
}