/* 共通スタイル */
.line-visual {
  position: relative;
  margin: 20px auto;
  max-width: 960px;
  overflow: hidden;
}

.line-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.line-visual h2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2rem;
  z-index: 2;
  text-align: center;
}

/* タブスタイル */
.line-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-bottom: 20px;
  max-width: 960px;
  margin: auto;
  cursor: pointer;
}

.line-tabs div {
  padding: 10px 20px;
  background-color: lightgray;
  margin-right: 10px;
  margin-bottom: 10px;
  flex-grow: 1;
  text-align: center;
  transition: background-color 0.3s ease;
}

.line-tabs div:hover {
  background-color: #00c300;
  color: white;
}

.line-tabs .line-active-tab {
  background-color: #00c300;
  color: white;
}

/* タブコンテンツの表示/非表示 */
.line-tab-content {
  display: none;
  max-width: 960px;
  margin: auto;
}

.line-tab-content.line-active {
  display: block;
}

@media screen and (max-width: 600px) {
  .line-tabs div {
    width: 100%;
    margin-right: 0;
  }
}

/* テーブルのスタイル */
.line-table {
  width: 100%;
  max-width: 960px;
  margin: 20px auto;
  border-collapse: collapse;
}

.line-table th,
.line-table td {
  padding: 8px;
  border: 1px solid #ddd;
}

.line-table th {
  background-color: #00c300;
  color: white;
  font-weight: bold;
  text-align: center;
}

.line-table td {
  text-align: left;
  vertical-align: middle; /* 垂直方向の中央揃え */

}

/* ボタンスタイル */
.line-button {
  padding: 5px 10px;
  background-color: #00c300;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
}

.line-button:hover {
  background-color: #009900;
}

/* 無効なボタン用のスタイル */
.line-button.disabled {
  background-color: #ccc;
  color: #999;
  cursor: not-allowed;
  pointer-events: none;
    padding: 5px 10px;

}

@media screen and (max-width: 600px) {
  .line-table,
  .line-table th,
  .line-table td {
    font-size: 12px;
    padding: 8px;
  }
}

@media screen and (max-width: 517px) {
  .line-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

/* テーブルスクロールバーのスタイル */
.line-table::-webkit-scrollbar {
  height: 8px;
}

.line-table::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 10px;
}

.line-table::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

/* テーブル見出し行の固定 */
.line-table thead {
  position: sticky;
  top: 0;
  background-color: #00c300;
  z-index: 10;
}

/* レスポンシブスタイル */
@media screen and (min-width: 1025px) {
  .line-table {
    max-width: 1200px;
    margin: 0 auto;
  }

  .line-tabs {
    justify-content: center;
  }
}

/* タブカウントのスタイル */
#line-chubu-count,
#line-tohoku-count,
#line-okinawa-count,
#line-kinki-count {
  width: 960px;
  margin: auto;
}
