:root {
  --detail-primary: #0b9894;
  --detail-bg: #e8f3f1;
  --detail-text: #4b5563;
  --detail-text-soft: #8a94a6;
}

.news-detail-page {
  background: var(--detail-bg);
  overflow-x: hidden;
  overflow-y: visible;
}

.news-detail-fixed {
  width: 100%;
  min-width: 0;
  position: relative;
  background: var(--detail-bg);
}

.news-detail-hero {
  position: relative;
  height: min(calc(615 / 1920 * 100vw), 615px);
  min-height: 320px;
  background: #0b9894;
}

.news-detail-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.news-detail-hero-overlay-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.news-detail-hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(11, 152, 148, 1) 0%, rgba(11, 152, 148, 0.92) 30%, rgba(11, 152, 148, 0.42) 58%, rgba(11, 152, 148, 0) 100%);
}

.news-detail-hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
}

.news-detail-hero-title {
  position: absolute;
  left: min(calc(160 / 1920 * 100vw), 160px);
  bottom: min(calc(80 / 1920 * 100vw), 80px);
  z-index: 3;
  color: #fff;
  line-height: 1.2;
}

.news-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #000;
  line-height: 1.5;
}

.news-detail-back--top {
  position: absolute;
  left: min(calc(160 / 1920 * 100vw), 160px);
  top: min(calc(728 / 1920 * 100vw), 728px);
}

.news-detail-back-icon {
  width: 34px;
  height: 34px;
  border: 1px solid var(--detail-primary);
  border-radius: 50%;
  color: var(--detail-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  background: #fff;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.news-detail-back-icon img {
  width: 10px;
  height: 10px;
  display: block;
  object-fit: contain;
  transition: filter 0.22s ease;
}

.news-detail-back:hover .news-detail-back-icon,
.news-detail-back:focus-visible .news-detail-back-icon {
  background: var(--detail-primary);
  border-color: var(--detail-primary);
  color: #fff;
}

.news-detail-back:hover .news-detail-back-icon img,
.news-detail-back:focus-visible .news-detail-back-icon img {
  filter: brightness(0) invert(1);
}

.news-detail-article {
  padding-top: min(calc(229 / 1920 * 100vw), 229px);
}

.news-detail-article-inner {
  width: min(960px, calc(100% - min(calc(320 / 1920 * 100vw), 320px)));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: min(calc(48 / 1920 * 100vw), 48px);
}

.news-detail-article-head {
  display: flex;
  flex-direction: column;
  gap: min(calc(68 / 1920 * 100vw), 68px);
}

.news-detail-article-inner h2 {
  line-height: 1.5;
  color: #000;
}

.news-detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-detail-meta time {
  color: #666;
  line-height: 1.5;
}

.news-detail-share-btn {
  border: 0;
  background: transparent;
  color: #666;
  cursor: pointer;
  line-height: 1;
  width: 24px;
  height: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.news-detail-share-btn img {
  display: block;
  width: 100%;
  height: 100%;
}

.news-detail-meta-line {
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.8);
}

.news-detail-article-content {
  display: flex;
  flex-direction: column;
  gap: min(calc(48 / 1920 * 100vw), 48px);
}

.news-detail-lead,
.news-detail-body p {
  color: #000;
  opacity: 0.6;
  line-height: 1.5;
}

.news-detail-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-detail-main-photo,
.news-detail-sub-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 960 / 430;
  object-fit: cover;
}

.news-detail-bottom-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: min(calc(24 / 1920 * 100vw), 24px);
}

.news-detail-switch {
  width: min(463px, 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
}

.news-detail-switch-prev {
  width: 100%;
  height: 24px;
  overflow: hidden;
  color: #000;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.news-detail-switch-next {
  width: 100%;
  height: 24px;
  overflow: hidden;
  color: #000;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.news-detail-switch a:hover,
.news-detail-switch a:focus-visible {
  color: var(--detail-primary);
}

.news-related {
  background: var(--detail-bg);
}

.news-related-inner {
  width: min(1600px, calc(100% - min(calc(320 / 1920 * 100vw), 320px)));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: min(calc(48 / 1920 * 100vw), 48px);
}

.news-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-related-head h2 {
  line-height: 1.5;
  color: #000;
}

.news-related-more {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.729vw;
  min-width: min(150px, 30vw);
  height: min(calc(47 / 1920 * 100vw), 47px);
  padding: 0 min(calc(10 / 1920 * 100vw), 10px) 0 min(calc(28 / 1920 * 100vw), 28px);
  border: 1px solid var(--detail-primary);
  border-radius: 999px;
  color: var(--detail-primary);
  background: transparent;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.news-related-more .news-related-more-text {
  flex-shrink: 0;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.news-related-more .pill-btn-icon {
  flex-shrink: 0;
  width: min(calc(34 / 1920 * 100vw), 34px);
  min-width: 30px;
  height: min(calc(34 / 1920 * 100vw), 34px);
  min-height: 30px;
  display: block;
  object-fit: contain;
  pointer-events: none;
  overflow: visible;
  transition: transform 0.22s ease;
}

.news-related-more .pill-btn-arrow-layer {
  transform-origin: 17px 17px;
  transition: transform 0.22s ease;
}

.news-related-more .pill-btn-icon-disc,
.news-related-more .pill-btn-icon-chevron {
  transition: fill 0.22s ease;
}

.news-related-more .pill-btn-icon-disc {
  fill: var(--detail-primary);
}

.news-related-more .pill-btn-icon-chevron {
  fill: #fff;
}

.news-related-more:hover,
.news-related-more:focus-visible {
  transform: translateY(-2px);
  background: var(--detail-primary);
  border-color: var(--detail-primary);
  color: #fff;
}

.news-related-more:hover .pill-btn-arrow-layer,
.news-related-more:focus-visible .pill-btn-arrow-layer {
  transform: rotate(30deg);
}

.news-related-more:hover .pill-btn-icon,
.news-related-more:focus-visible .pill-btn-icon {
  transform: translateX(4px);
}

.news-related-more:hover .pill-btn-icon-disc,
.news-related-more:focus-visible .pill-btn-icon-disc {
  fill: #fff;
}

.news-related-more:hover .pill-btn-icon-chevron,
.news-related-more:focus-visible .pill-btn-icon-chevron {
  fill: var(--detail-primary);
}

.news-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: min(calc(32 / 1920 * 100vw), 32px);
}

.news-related-card {
  display: flex;
  flex-direction: column;
  gap: min(calc(36 / 1920 * 100vw), 36px);
  cursor: pointer;
  transition: transform 0.22s ease;
}

.news-related-card:hover,
.news-related-card:focus-visible {
  transform: translateY(-2px);
}

.news-related-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 512 / 268;
  border-radius: 16px;
  object-fit: cover;
}

.news-related-copy {
  display: flex;
  flex-direction: column;
  gap: min(calc(28 / 1920 * 100vw), 28px);
}

.news-related-tag {
  width: 124px;
  height: 36px;
  border-radius: 6px;
  background: var(--detail-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.news-related-copy h3 {
  min-height: min(calc(117 / 1920 * 100vw), 117px);
  color: var(--detail-text);
  line-height: 1.5;
  overflow: hidden;
}

.news-related-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-related-meta time {
  color: var(--detail-text-soft);
  line-height: 1.5;
}

.news-related-meta a {
  color: var(--detail-text);
  line-height: 1.5;
  transition: color 0.2s ease;
}

.news-related-meta a:hover,
.news-related-meta a:focus-visible {
  color: var(--detail-primary);
}

@media screen and (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .news-detail-page,
  .news-detail-fixed {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .news-detail-hero {
    height: auto;
    min-height: 280px;
  }

  .news-detail-hero-title {
    position: static;
    padding: 92px 16px 36px;
  }

  .news-detail-back--top {
    position: static;
    margin: 16px 16px 0;
  }

  .news-detail-back-icon {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  .news-detail-article {
    padding-top: 28px;
  }

  .news-detail-article-inner {
    width: calc(100% - 32px);
    gap: 24px;
  }

  .news-detail-article-head {
    gap: 24px;
  }

  .news-detail-article-inner h2 {
    font-size: clamp(28px, 7.2vw, 36px);
    line-height: 1.35;
  }

  .news-detail-article-content {
    gap: 24px;
  }

  .news-detail-main-photo,
  .news-detail-sub-photo {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
  }

  .news-detail-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .news-detail-switch {
    width: 100%;
    gap: 10px;
  }

  .news-detail-switch-prev,
  .news-detail-switch-next {
    height: auto;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .news-related.pd_120 {
    padding: 48px 0;
  }

  .news-related-inner {
    width: calc(100% - 32px);
    gap: 24px;
  }

  .news-related-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .news-related-more {
    min-width: 136px;
    height: 42px;
    padding: 0 8px 0 16px;
  }

  .news-related-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-related-card {
    gap: 16px;
  }

  .news-related-copy {
    gap: 14px;
  }

  .news-related-copy h3 {
    min-height: 0;
  }

  .news-related-meta {
    flex-wrap: wrap;
    gap: 8px 16px;
  }
}
