/* =========================================
   お知らせ・停波情報
========================================= */

.news-page {
  --news-blue: #003aa6;
  --news-deep: #001c54;
  --news-border: #d8e1ee;
  --news-text: #0a2450;
  color: var(--news-text);
  background: #fff;
}

.news-page *,
.news-page *::before,
.news-page *::after {
  box-sizing: border-box;
}

.news-container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* Hero
----------------------------------------- */

.news-hero {
  position: relative;
  min-height: 360px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 30, 91, 0.94), rgba(0, 53, 130, 0.68)),
    url("../images/news/hero__image--01.webp") center / cover no-repeat;
  overflow: hidden;
}

.news-breadcrumb {
  padding-top: 18px;
  font-size: 12px;
}

.news-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.news-breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  opacity: 0.75;
}

.news-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.news-hero__content {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 48px 0 58px;
  text-align: center;
}

.news-hero__content h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.35;
}

.news-hero__en {
  margin: 8px 0 24px;
  color: #1e8cff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.news-hero__lead {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 2;
}

/* Archive
----------------------------------------- */

.news-archive {
  padding: 54px 0 72px;
}

.news-category-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-bottom: 42px;
}

.news-category-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid #3d69c6;
  border-radius: 4px;
  color: var(--news-blue);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: 0.2s ease;
}

.news-category-nav a:hover,
.news-category-nav a.is-current {
  color: #fff;
  background: linear-gradient(135deg, #0f5dcc, #123c9b);
}

.news-list {
  border-top: 1px solid var(--news-border);
}

.news-list__item {
  margin: 0;
  border-bottom: 1px solid var(--news-border);
}

.news-list__link {
  display: grid;
  grid-template-columns: 140px 150px minmax(0, 1fr) 24px;
  gap: 24px;
  align-items: center;
  min-height: 94px;
  padding: 18px 16px;
  color: inherit;
  text-decoration: none;
}

.news-list__date {
  font-size: 14px;
  font-weight: 700;
}

.news-list__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.65;
}

.news-list__arrow {
  width: 11px;
  height: 11px;
  border-top: 2px solid var(--news-blue);
  border-right: 2px solid var(--news-blue);
  transform: rotate(45deg);
}

.news-category-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 2px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.news-category-badge--outage {
  background: linear-gradient(135deg, #6333dd, #a149ed);
}

.news-category-badge--pickup {
  background: linear-gradient(135deg, #ff5d00, #ff8a00);
}

.news-category-badge--exhibition {
  background: linear-gradient(135deg, #35b22e, #6bd13e);
}

.news-category-badge--recruit {
  background: linear-gradient(135deg, #1082e7, #36a1ff);
}

.news-category-badge--other {
  background: linear-gradient(135deg, #60718e, #8998ae);
}

/* Pagination
----------------------------------------- */

.news-pagination {
  margin-top: 44px;
}

.news-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.news-pagination .page-numbers {
  display: grid;
  min-width: 36px;
  height: 36px;
  place-items: center;
  padding: 0 10px;
  color: var(--news-blue);
  text-decoration: none;
}

.news-pagination .page-numbers.current {
  color: #fff;
  background: var(--news-blue);
  border-radius: 3px;
}

/* Single
----------------------------------------- */

.news-single {
  padding: 48px 0 72px;
}

.news-single__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: start;
}

.news-article {
  padding: 34px 42px;
  border: 1px solid #e0e7f0;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 34, 92, 0.05);
}

.news-article__header {
  padding-bottom: 24px;
  border-bottom: 1px solid #9db0ce;
}

.news-article__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.news-article__meta time {
  font-size: 13px;
  font-weight: 700;
}

.news-article__title {
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.45;
}

.news-article__content {
  padding-top: 28px;
  font-size: 15px;
  line-height: 2;
}

.news-article__content h2 {
  margin: 42px 0 16px;
  padding-left: 14px;
  border-left: 5px solid #0f65dc;
  font-size: 22px;
}

.news-article__content h3 {
  margin: 32px 0 14px;
  color: var(--news-blue);
  font-size: 18px;
}

.news-article__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
}

.news-article__content th,
.news-article__content td {
  padding: 14px 16px;
  border: 1px solid #b9c8de;
  text-align: center;
}

.news-article__content th {
  background: #edf4ff;
}

.news-single__back {
  margin-top: 32px;
  text-align: center;
}

.news-single__back a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 300px;
  min-height: 52px;
  justify-content: center;
  border: 1px solid #2e66cf;
  color: var(--news-blue);
  text-decoration: none;
}

/* Sidebar
----------------------------------------- */

.news-sidebar {
  padding: 28px 26px;
  border: 1px solid #e0e7f0;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 34, 92, 0.05);
}

.news-sidebar__title {
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #9db0ce;
  font-size: 20px;
}

.news-category-nav--sidebar {
  display: block;
  margin: 0;
}

.news-category-nav--sidebar a {
  justify-content: space-between;
  min-height: 50px;
  padding: 12px 4px;
  border: 0;
  border-bottom: 1px solid #9db0ce;
  border-radius: 0;
  background: transparent;
  color: var(--news-text);
}

.news-category-nav--sidebar a:hover,
.news-category-nav--sidebar a.is-current {
  color: #1469e2;
  background: transparent;
}

/* Responsive
----------------------------------------- */

@media (max-width: 900px) {
  .news-category-nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .news-list__link {
    grid-template-columns: 110px 130px minmax(0, 1fr) 20px;
    gap: 16px;
  }

  .news-single__layout {
    grid-template-columns: 1fr;
  }

  .news-sidebar {
    order: -1;
  }
}

@media (max-width: 767px) {
  .news-container {
    width: calc(100% - 32px);
  }

  .news-hero {
    min-height: 300px;
  }

  .news-hero__content {
    min-height: 240px;
  }

  .news-category-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .news-list__link {
    grid-template-columns: 1fr 24px;
    gap: 8px 12px;
    padding: 18px 4px;
  }

  .news-list__date,
  .news-list__category {
    grid-column: 1;
  }

  .news-list__title {
    grid-column: 1;
  }

  .news-list__arrow {
    grid-column: 2;
    grid-row: 1 / 4;
  }

  .news-article {
    padding: 26px 20px;
  }

  .news-single__back a {
    width: 100%;
    min-width: 0;
  }
}
