@charset "utf-8";

/*==================================================
06 バイオバンク
===================================*/
.main-wrapper {
  line-height: normal;
  width: 90%;
  margin: 0 auto;
}

.description {
  margin: 30px auto;
  text-align: left;
  color: #263763;
  line-height: 220%;
}

.lang-switch {
  font-size: 18px;
  margin-bottom: 8px;
}

.lang-link {
  color: #0066cc;
  text-decoration: underline;
  cursor: pointer;
}

.lang-link:hover {
  opacity: 0.7;
}

.lang-link.active {
  color: #000;
  font-weight: bold;
  text-decoration: none;
  cursor: default;
}

.search-fieldset {
  border: 1px solid #ccc;
  padding: 16px 20px 20px;
  margin-bottom: 20px;
  font-size: medium;
}

.search-fieldset legend {
  padding: 0 8px;
  font-weight: bold;
  text-align: left;
  font-size: 20px;
}

.search-form {
  max-width: 700px;
  margin-bottom: 10px;
}

.search-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  margin-bottom: 10px;
  text-align: left;
}

.search-row label {
  font-weight: bold;
}

.search-row input,
.search-row select {
  padding: 6px;
  border: 1px solid #000;
  appearance: auto;
}

.text-mode-group {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 5px;
}

.search-group {
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 140px 1fr;
}

.search-group-title {
  font-weight: bold;
  margin-bottom: 10px;
  align-items: center;
  display: grid;
  text-align: left;
}

.search-group .search-row {
  margin-left: 16px;
  grid-column: 2 / 2;
}

.button-row {
  display: flex;
  gap: 10px;
  margin-block: 20px;
}

button {
  width: 140px;
  padding: 8px 20px;
  border: none;
  border-radius: 5px;
  font-size: medium;
  color: #ffffff;
  background-color: #808080;
  cursor: pointer;
}

#search-btn {
  background-color: #008000;
}

#result-area {
  font-size: medium;
}

.result-button-row {
  text-align: left;
}

#download-btn {
  width: 200px;
  font-size: small;
  background-color: #008000;
  margin-block: 25px;
}

#result-info {
  margin-bottom: 10px;
  font-weight: bold;
  text-align: left;
}

.hidden {
  display: none;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  border: 1px solid #ccc;
  padding: 8px 12px;
}

th {
  background-color: #f4f4f4;
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 24px;
}

th.sortable::after {
  content: "↕";
  position: absolute;
  right: 8px;
  color: #999;
  font-size: 0.9em;
}

th.sorted-asc::after {
  content: " ▲";
  color: #000;
}

th.sorted-desc::after {
  content: " ▼";
  color: #000;
}

tbody tr:nth-child(even) {
  background-color: #fafafa;
}

/* =========================
   CSV読み込みエラー表示
========================= */
.error {
  border: 1px solid #d93025;
  background-color: #fdecea;
  color: #d93025;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-weight: bold;
}

.error.hidden {
  display: none;
}

/* モバイル
-------------------*/

@media screen and (max-width: 767px) {
  .main-wrapper {
    width: 90%;
    margin: 0 auto;
  }

  .description {
    font-size: 16px;
    line-height: 2.1;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .search-group {
    grid-template-columns: auto 1fr;
  }

  .search-group-title {
    margin-right: 30px;
  }
}