/* styles.css */
body,
html {
  height: auto;
  width: 100%;
  margin: 0;
  background: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #333;
}

.container {
  width: 70%;
  max-width: 2000px;
  margin-top: 60px;
  padding: 40px;
  background: #ffffff;
}

h1,
h2 {
  font-size: 100px;
  color: #333;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}

.trackcontainer {
  margin: 30px 0;
}

.tracking-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: #333;
}

#formContainer p {
  width: 30%;
}

.form-group input {
  width: 150px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* 結果表示 */

.result {
  display: none; /* デフォルトで非表示にする */
  flex-direction: row; /* 横並びに変更 */

  margin-top: 10px;
  padding: 10px;
  border: 1px solid #007bff;
  border-radius: 5px;
  background-color: #e7f1ff;
  /* white-space: pre-line; 改行を有効にする */
}

.event-table {
  width: 70%;
  border-collapse: collapse;
}

.event-table th,
.event-table td {
  border: 1px solid #007bff;
  padding: 8px;
  text-align: left;
}

.event-table th {
  background-color: #007bff;
  color: white;
}

.event-table tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* 結果表示終了 */

.button-group {
  display: flex;
  /* justify-content: space-between; */
  margin-bottom: 20px;
}

.submit-btn,
.reset-btn {
  width: 200px;
  height: 50px;
  margin-right: 10px;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 1000;
}

.submit-btn {
  background-color: #333; /* 黒系統 */
  color: #fff;
}

.submit-btn:hover {
  background-color: #000; /* 黒系統 */
}

.reset-btn {
  background-color: #fff; /* 白系統 */
  color: #333;
  border: 1px solid #ccc; /* 枠線追加 */
}

.reset-btn:hover {
  background-color: #f4f4f4; /* 白系統 */
}

/* 中くらいの画面（タブレット向け） */
@media (min-width: 600px) and (max-width: 1199px) {
  .container {
    width: 90%;
    max-width: 2000px;
    padding: 10px;
    margin: 60px 5px 5px 5px;
    background: #ffffff;
  }
  .form-group {
    font-size: 12px;
  }
  .form-group label {
    font-size: 12px;
  }
  .form-group input {
    width: 150px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  #formContainer p {
    width: 100%;
  }
  .event-table {
    width: 100%;
  }
  .result {
    flex-direction: column; /* 横並びに変更 */
  }
  .submit-btn,
  .reset-btn {
    width: auto;
    height: 40px;
    font-size: 14px;
  }
}

/* 小さい画面（スマートフォン向け） */
@media (max-width: 599px) {
  .container {
    width: 100%;
    max-width: 2000px;
    padding: 3px;
    margin: 60px 5px 5px 5px;
    background: #ffffff;
  }
  .form-group {
    font-size: 10.5px;
  }
  .form-group label {
    font-size: 10.5px;
  }
  .form-group input {
    width: 150px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  #formContainer p {
    width: 100%;
  }
  .event-table {
    width: 100%;
  }
  .result {
    flex-direction: column; /* 横並びに変更 */
  }
  .submit-btn,
  .reset-btn {
    width: auto;
    height: 40px;
    font-size: 12px;
  }
}
