.news-detail-page {
  padding: 34px 0 64px;
}

.news-detail-content {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 0 18px;
}

.news-detail-card {
  padding: 36px 36px 34px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(233, 247, 255, 0.95), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(243, 251, 255, 0.94) 100%);
  border: 1px solid rgba(83, 178, 233, 0.18);
  box-shadow: 0 22px 42px rgba(70, 145, 188, 0.12);
}

.news-detail-card--empty {
  text-align: center;
}

.news-detail-date {
  margin: 0 0 10px;
  color: #5e7f91;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.news-detail-title {
  margin: 0 0 24px;
  color: #53b2e9;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.3;
  font-weight: 800;
}

.news-detail-main-image {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(70, 145, 188, 0.12);
}

.news-detail-main-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.news-detail-body {
  color: #345669;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 2;
  font-weight: 500;
  white-space: normal;
}

.news-detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

/* ==================================================
   News detail hero
================================================== */
.page-hero--news-detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;

  box-sizing: border-box;
  height: auto;
  min-height: 180px;
  padding: 20px 18px 28px;
}

.page-hero--news-detail .page-breadcrumb {
  position: static;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.page-hero--news-detail .page-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  row-gap: 5px;
  margin: 0;
  padding: 0;
}

.page-hero--news-detail .page-breadcrumb li {
  min-width: 0;
}

.page-hero--news-detail .page-breadcrumb li[aria-current="page"] {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-hero--news-detail h1 {
  position: static;
  width: min(100%, 1000px);
  margin: 0 auto;
  padding: 0;

  overflow-wrap: anywhere;
  word-break: auto;
  line-height: 1.35;
  text-align: center;
}

.news-detail-gallery__item {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(70, 145, 188, 0.12);
}

.news-detail-gallery__item img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.news-detail-actions {
  margin: 30px 0 0;
  text-align: center;
}

.news-detail-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(83, 178, 233, 0.24);
  color: #2e89bc;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(70, 145, 188, 0.1);
}
.news-detail-pdfs {
  margin-top: 36px;
  padding: 26px 28px;

  background: rgba(240, 250, 255, 0.8);
  border: 1px solid rgba(72, 185, 220, 0.35);
  border-radius: 18px;
}

.news-detail-pdfs h2 {
  margin: 0 0 18px;

  color: #285b73;
  font-size: 22px;
  line-height: 1.5;
}

.news-detail-pdfs ul {
  display: grid;
  gap: 12px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.news-detail-pdfs li {
  margin: 0;
}

.news-detail-pdfs a {
  position: relative;

  display: flex;
  align-items: center;

  width: 100%;
  min-height: 54px;
  box-sizing: border-box;
  padding: 12px 48px 12px 50px;

  color: #176b91;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;

  background: #fff;
  border: 1px solid rgba(72, 185, 220, 0.45);
  border-radius: 14px;

  box-shadow: 0 8px 20px rgba(54, 137, 176, 0.08);

  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* PDFアイコン */
.news-detail-pdfs a::before {
  content: "PDF";

  position: absolute;
  left: 14px;

  display: grid;
  place-items: center;

  width: 28px;
  height: 28px;

  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;

  background: #ef5361;
  border-radius: 6px;
}

/* 別タブで開くことを示す矢印 */
.news-detail-pdfs a::after {
  content: "↗";

  position: absolute;
  right: 18px;

  color: #48b9dc;
  font-size: 18px;
  line-height: 1;
}

.news-detail-pdfs a:hover {
  color: #fff;

  background: #48b9dc;
  border-color: #48b9dc;

  box-shadow: 0 12px 24px rgba(54, 137, 176, 0.18);

  transform: translateY(-2px);
}

.news-detail-pdfs a:hover::after {
  color: #fff;
}

.news-detail-pdfs a:focus-visible {
  outline: 3px solid rgba(72, 185, 220, 0.35);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .news-detail-page {
    padding: 24px 0 44px;
  }

  .news-detail-content {
    padding: 0 12px;
  }

  .news-detail-card {
    padding: 26px 18px 24px;
    border-radius: 24px;
  }

  .news-detail-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .news-detail-body {
    font-size: 16px;
    line-height: 1.9;
  }

  .page-hero--news-detail {
    gap: 18px;
    min-height: 170px;
    padding: 18px 18px 24px;
  }

  .page-hero--news-detail .page-breadcrumb ol {
    row-gap: 4px;
  }

  .page-hero--news-detail h1 {
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.4;
  }

  .news-detail-pdfs {
    margin-top: 28px;
    padding: 20px 16px;
    border-radius: 14px;
  }

  .news-detail-pdfs h2 {
    margin-bottom: 14px;
    font-size: 20px;
  }

  .news-detail-pdfs a {
    min-height: 52px;
    padding: 11px 42px 11px 46px;
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .news-detail-pdfs a::before {
    left: 12px;
    width: 26px;
    height: 26px;
    font-size: 9px;
  }

  .news-detail-pdfs a::after {
    right: 14px;
  }

}
