:root {
  --news-navy: #17365f;
  --news-blue: #1f6fb2;
  --news-blue-soft: #eaf4fc;
  --news-yellow: #f4ca3f;
  --news-text: #1f2937;
  --news-muted: #667085;
  --news-border: #dbe5ef;
  --news-bg: #f6f9fc;
}

.news-page,
.news-latest {
  color: var(--news-text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

.news-page {
  min-height: 100vh;
  padding: 56px 20px 80px;
  background: var(--news-bg);
}

.news-container {
  width: min(960px, 100%);
  margin: 0 auto;
}

.news-page-header {
  margin-bottom: 30px;
}

.news-page-header__kicker,
.news-latest__kicker {
  margin: 0 0 8px;
  color: var(--news-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
}

.news-page-header h1,
.news-latest h2 {
  margin: 0;
  color: var(--news-navy);
  line-height: 1.35;
}

.news-page-header p:last-child {
  margin: 12px 0 0;
  color: var(--news-muted);
}

.news-list {
  display: grid;
  gap: 14px;
}

.news-list-item {
  display: grid;
  grid-template-columns: 120px 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 21px 22px;
  border: 1px solid var(--news-border);
  border-radius: 16px;
  color: inherit;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(31, 66, 102, .05);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.news-list-item:hover {
  border-color: #9bc5e7;
  box-shadow: 0 12px 28px rgba(31, 66, 102, .1);
  transform: translateY(-2px);
}

.news-list-item time {
  color: var(--news-muted);
  font-size: 14px;
}

.news-list-item__category,
.news-detail__category {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--news-blue);
  background: var(--news-blue-soft);
  font-size: 12px;
  font-weight: 800;
}

.news-list-item strong {
  color: var(--news-navy);
  font-size: 16px;
  line-height: 1.6;
}

.news-list-item__arrow {
  color: var(--news-blue);
  font-size: 20px;
}

.news-empty {
  padding: 42px 24px;
  border: 1px dashed #b7cadc;
  border-radius: 16px;
  color: var(--news-muted);
  background: #fff;
  text-align: center;
}

.news-detail {
  overflow: hidden;
  border: 1px solid var(--news-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(30, 62, 94, .08);
}

.news-detail__header {
  padding: clamp(28px, 6vw, 56px);
  border-bottom: 1px solid var(--news-border);
  background: linear-gradient(135deg, #f8fbff 0%, #eef7ff 100%);
}

.news-detail__header h1 {
  margin: 18px 0 14px;
  color: var(--news-navy);
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.35;
}

.news-detail__header time {
  color: var(--news-muted);
  font-size: 14px;
}

.news-detail__visual {
  margin: 0;
  padding: clamp(24px, 5vw, 48px) clamp(24px, 6vw, 64px) 0;
}

.news-detail__visual img {
  display: block;
  width: 100%;
  max-height: 560px;
  border-radius: 18px;
  object-fit: cover;
}

.news-detail__body {
  padding: clamp(30px, 6vw, 64px);
  font-size: 16px;
  line-height: 1.95;
}

.news-detail__body > :first-child {
  margin-top: 0;
}

.news-detail__body > :last-child {
  margin-bottom: 0;
}

.news-detail__body h2,
.news-detail__body h3,
.news-detail__body h4 {
  color: var(--news-navy);
  line-height: 1.5;
}

.news-detail__body h2 {
  margin: 2.4em 0 .8em;
  padding-bottom: .45em;
  border-bottom: 2px solid var(--news-blue-soft);
  font-size: 1.55em;
}

.news-detail__body h3 {
  margin: 2em 0 .65em;
  font-size: 1.28em;
}

.news-detail__body p,
.news-detail__body ul,
.news-detail__body ol,
.news-detail__body blockquote,
.news-detail__body table {
  margin: 0 0 1.4em;
}

.news-detail__body a {
  color: var(--news-blue);
}

.news-detail__body blockquote {
  padding: 18px 20px;
  border-left: 4px solid var(--news-blue);
  background: #f4f8fc;
}

.news-detail__body img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.news-detail__body table {
  width: 100%;
  border-collapse: collapse;
}

.news-detail__body th,
.news-detail__body td {
  padding: 12px;
  border: 1px solid var(--news-border);
  text-align: left;
}

.news-detail__back {
  margin: 0;
  padding: 0 clamp(24px, 6vw, 64px) clamp(30px, 6vw, 64px);
}

.news-detail__back a,
.news-latest__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--news-blue);
  font-weight: 800;
  text-decoration: none;
}

.news-detail__back a::before {
  content: "←";
}

.news-latest {
  padding: clamp(54px, 8vw, 96px) 20px;
  background: #fff;
}

.news-latest__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.news-latest__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.news-latest__list {
  display: grid;
  gap: 12px;
}

.news-latest__item {
  display: grid;
  grid-template-columns: 110px 105px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--news-border);
  border-radius: 14px;
  color: inherit;
  background: #fff;
  text-decoration: none;
}

.news-latest__item:hover {
  border-color: #9bc5e7;
  background: #fbfdff;
}

.news-latest__item time {
  color: var(--news-muted);
  font-size: 14px;
}

.news-latest__item strong {
  color: var(--news-navy);
}

.news-latest__item-arrow {
  color: var(--news-blue);
}

@media (max-width: 700px) {
  .news-page {
    padding: 30px 14px 56px;
  }

  .news-list-item,
  .news-latest__item {
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
  }

  .news-list-item time,
  .news-latest__item time {
    grid-column: 1;
    grid-row: 1;
  }

  .news-list-item__category,
  .news-latest__item .news-list-item__category {
    grid-column: 2;
    grid-row: 1;
  }

  .news-list-item strong,
  .news-latest__item strong {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .news-list-item__arrow,
  .news-latest__item-arrow {
    display: none;
  }

  .news-latest__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-detail__body {
    font-size: 15px;
  }
}

.news-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.news-pagination a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--news-border);
  border-radius: 10px;
  color: var(--news-blue);
  background: #fff;
  font-weight: 800;
  text-decoration: none;
}

.news-pagination a:hover,
.news-pagination a.is-current {
  border-color: var(--news-blue);
  color: #fff;
  background: var(--news-blue);
}
