.news-detail {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background: #fff;
  color: #071f47;
}
.news-detail .shell,
.news-detail :where(header, main, aside, div) {
  min-width: 0;
}
.news-detail > header {
  padding: 48px 0 54px;
  background: linear-gradient(120deg, #f7faff, #edf5ff);
}
.news-detail > header .shell {
  max-width: 1120px;
}
.news-detail .breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 25px;
  color: #637793;
  font-size: 12px;
}
.news-detail .breadcrumb a {
  color: #105cff;
  text-decoration: none;
}
.news-detail > header h1 {
  max-width: 920px;
  margin: 15px 0 17px;
  font-size: clamp(38px, 4.1vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.news-detail > header .shell > p:not(.breadcrumb) {
  max-width: 780px;
  margin: 0;
  color: #536987;
  font-size: 17px;
  line-height: 1.7;
}
.news-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 25px 0 0;
  padding: 0;
}
.news-detail-meta div {
  min-width: 150px;
  padding: 11px 14px;
  border: 1px solid #d8e5f4;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.72);
}
.news-detail-meta dt {
  margin: 0 0 3px;
  color: #66809f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.news-detail-meta dd {
  margin: 0;
  color: #163962;
  font-size: 13px;
  font-weight: 800;
}
.news-detail-layout {
  width: min(1120px, calc(100% - 64px));
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 290px);
  justify-content: space-between;
  gap: 38px;
  align-items: start;
  padding-top: 58px;
  padding-bottom: 84px;
}
.news-detail-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border: 1px solid #d5e1ef;
  border-radius: 14px;
}
.portable-content {
  max-width: 720px;
  margin: 38px 0 0;
  color: #344b6b;
  font-size: 16px;
  line-height: 1.86;
}
.portable-content h2,
.portable-content h3,
.portable-content h4 {
  color: #092651;
  line-height: 1.25;
}
.portable-content h2 {
  margin: 38px 0 14px;
  font-size: 28px;
}
.portable-content h3 {
  margin: 30px 0 12px;
  font-size: 22px;
}
.portable-content blockquote {
  margin: 30px 0;
  padding: 20px 24px;
  border-left: 3px solid #105cff;
  background: #f3f8ff;
  color: #1b3b68;
}
.portable-content figure {
  margin: 30px 0;
}
.portable-content figure img {
  display: block;
  width: 100%;
  border-radius: 10px;
}
.news-detail-layout > .news-detail-related {
  position: sticky;
  top: 100px;
  padding: 0;
  border: 0;
  background: transparent;
}
.news-detail-related > header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4px 14px;
  margin-bottom: 12px;
  padding: 18px 19px;
  border: 1px solid #cfdeef;
  border-top: 3px solid #105cff;
  border-radius: 11px;
  background: #f7faff;
}
.news-detail-related > header > span {
  grid-column: 1/-1;
  color: #105cff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.news-detail-related > header > strong {
  color: #092651;
  font-size: 18px;
  line-height: 1.25;
}
.news-detail-related > header > a {
  color: #105cff;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.news-related-list {
  display: grid;
  gap: 12px;
}
.news-related-card {
  display: block;
  overflow: hidden;
  border: 1px solid #cfdeef;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(6, 26, 61, 0.055);
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.news-related-card:hover {
  transform: translateY(-2px);
  border-color: #9dbdff;
  box-shadow: 0 13px 28px rgba(6, 26, 61, 0.1);
}
.news-related-card:focus-visible {
  outline: 3px solid rgba(16, 92, 255, 0.35);
  outline-offset: 2px;
}
.news-related-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: contain;
  object-position: center;
  border-bottom: 1px solid #dce6f2;
  background: #f4f8fd;
}
.news-related-card > span {
  display: block;
  margin: 13px 15px 0;
  color: #105cff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.news-related-card > strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 6px 15px 0;
  color: #092651;
  font-size: 14px;
  line-height: 1.35;
}
.news-related-card > p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 7px 15px 0;
  color: #60738f;
  font-size: 11px;
  line-height: 1.5;
}
.news-related-card > b {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 11px 15px 14px;
  color: #105cff;
  font-size: 11px;
}
.news-related-card > b i {
  font-style: normal;
  font-size: 14px;
  transition: transform 0.2s ease;
}
.news-related-card:hover > b i {
  transform: translateX(3px);
}
.sanity-not-found {
  padding: 120px 0;
  text-align: center;
}
.sanity-not-found p {
  color: #61748f;
}
.sanity-not-found .button {
  margin-top: 15px;
}

@media (max-width: 820px) {
  .news-detail-layout {
    width: calc(100% - 48px);
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .news-detail-layout > .news-detail-related {
    position: static;
  }
  .news-related-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .news-detail > header {
    padding: 40px 0 45px;
  }
  .news-detail .shell {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    margin-inline: auto;
  }
  .news-detail > header h1 {
    width: 100%;
    max-width: 100%;
    font-size: 34px;
    overflow-wrap: anywhere;
  }
  .news-detail > header .shell > p:not(.breadcrumb) {
    width: 100%;
    max-width: 100%;
    font-size: 15px;
    overflow-wrap: anywhere;
  }
  .news-detail-layout {
    width: calc(100% - 32px);
    padding-top: 35px;
    padding-bottom: 52px;
  }
  .news-detail-cover {
    border-radius: 9px;
  }
  .news-detail-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .news-detail-meta div {
    min-width: 0;
    padding: 10px 11px;
  }
  .news-detail-meta div:last-child {
    grid-column: 1/-1;
  }
  .portable-content {
    margin-top: 27px;
    font-size: 15px;
  }
  .news-related-list {
    grid-template-columns: 1fr;
  }
  .news-related-card > img {
    aspect-ratio: 16/9;
  }
}
