/* =========================================================
   大和観光株式会社：お知らせ一覧
   ========================================================= */

.news-list-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--dw-border);
  border-radius: var(--dw-radius-md);
  -webkit-overflow-scrolling: touch;
}

.news-list-table {
  width: 100%;
  min-width: 720px;
  margin: 0;
  background: #fff;
  border: 0;
  border-collapse: collapse;
  border-radius: 0;
  box-shadow: none;
  font-size: var(--dw-font-size-base);
}

.news-list-table th,
.news-list-table td {
  padding: 18px 20px;
  border: 0;
  border-bottom: 1px solid var(--dw-border);
  overflow-wrap: anywhere;
  text-align: left;
  vertical-align: middle;
  word-break: break-all;
}

.news-list-table thead th {
  color: #fff;
  background: var(--dw-navy);
  font-weight: 800;
  white-space: nowrap;
}

.news-list-table tbody tr:last-child td {
  border-bottom: 0;
}

.news-list-table tbody tr:hover {
  background: rgba(247, 241, 229, 0.62);
}

.news-list-table__date {
  width: 150px;
  color: var(--dw-gray);
  white-space: nowrap;
}

.news-list-table__category {
  width: 170px;
}

.news-list-table__category > span {
  display: inline-block;
  padding: 4px 10px;
  color: var(--dw-navy);
  background: var(--dw-cream);
  border-radius: 4px;
  font-size: var(--dw-font-size-x-small);
  font-weight: 700;
}

.news-list-table__title a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--dw-navy);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(7, 43, 74, 0.3);
  text-underline-offset: 0.22em;
}

.news-list-table__title a:hover,
.news-list-table__title a:focus-visible {
  color: var(--dw-coral);
  text-decoration-color: currentColor;
}

.news-list-file-link > span {
  min-width: 0;
}

.news-list-file-link b {
  overflow-wrap: anywhere;
  word-break: break-all;
}
.news-list-file-link__icon {
  flex: 0 0 auto;
  font-size: 1.75rem;
}

.news-list-file-link--pdf .news-list-file-link__icon { color: #d94b45; }
.news-list-file-link--xlsx .news-list-file-link__icon { color: #238558; }
.news-list-file-link--docx .news-list-file-link__icon { color: #2868a9; }
.news-list-file-link--file .news-list-file-link__icon { color: var(--dw-navy); }

.news-list-file-link b,
.news-list-file-link small {
  display: block;
}

.news-list-file-link small {
  margin-top: 3px;
  color: var(--dw-gray);
  font-size: var(--dw-font-size-2x-small);
  font-weight: 400;
  text-decoration: none;
}

.news-list-empty {
  margin: 0;
  color: var(--dw-gray);
  text-align: center;
}

@media (max-width: 760px) {
  .news-list-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .news-list-table {
    display: block;
    min-width: 0;
    background: transparent;
  }

  .news-list-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .news-list-table tbody {
    display: block;
  }

  .news-list-table tbody tr {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 10px 14px;
    padding: 16px 4px 18px;
    border-bottom: 1px solid var(--dw-border);
  }

  .news-list-table tbody tr:first-child {
    padding-top: 4px;
  }

  .news-list-table tbody tr:last-child {
    border-bottom: 0;
  }

  .news-list-table td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }

  .news-list-table__date {
    align-self: center;
    font-size: var(--dw-font-size-x-small);
  }

  .news-list-table__category {
    align-self: center;
  }

  .news-list-table__category > span {
    padding: 3px 9px;
  }

  .news-list-table__title {
    grid-column: 1 / -1;
    font-size: var(--dw-font-size-base);
    line-height: 1.65;
  }

  .news-list-table__title a {
    display: inline-flex;
  }
}
