.news-breadcrumb {
  min-height: 30px;
  display: flex;
  align-items: center;
  background: #fafafa;
}

.news-breadcrumb .site-container {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
}

.news-breadcrumb a:hover,
.news-breadcrumb a:focus-visible {
  color: var(--green-dark);
}

.news-breadcrumb [aria-current="page"] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-detail-section {
  padding: 44px 0 45px;
  background: #fff;
}

.news-detail-layout {
  display: grid;
  grid-template-columns: 852px 325px;
  column-gap: 101px;
  align-items: start;
}

.news-article,
.news-sidebar {
  min-width: 0;
}

.news-article-header {
  min-height: 91px;
}

.news-article h1 {
  max-width: 840px;
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.08;
}

.news-article time {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 3px;
  color: #666;
  font-size: 16px;
  line-height: 1.2;
}

.news-article time .iconfont {
  color: #177599;
  font-size: 18px;
}

.news-article-cover {
  width: 100%;
  height: 260px;
  border-radius: 10px;
  object-fit: cover;
}

.news-article-lead {
  min-height: 125px;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  align-items: start;
  gap: 0;
  margin: 26px 0 0;
  padding: 17px 28px 17px 17px;
  border-radius: 11px;
  background: #f2f7fd;
}

.news-article-lead > span {
  color: #1171c5;
  font-size: 40px;
  font-weight: 700;
  line-height: 0.95;
}

.news-article-lead p {
  margin: 0;
  color: #666;
  font-size: 16px;
  line-height: 1.4375;
}

.news-copy-block {
  margin-top: 25px;
}

.news-copy-block + .news-copy-block {
  margin-top: 29px;
}

.news-copy-block:first-of-type + .news-copy-block {
  margin-top: 53px;
}

.news-copy-block h2 {
  min-height: 42px;
  display: flex;
  align-items: center;
  margin: 0 0 17px;
  padding: 5px 53px;
  border-radius: 4px;
  background: #f0f0f0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.16;
}

.news-copy-block p {
  margin: 0;
  color: #666;
  font-size: 16px;
  line-height: 1.5;
}

.news-copy-block p + p {
  margin-top: 27px;
}

@media (min-width: 641px) {
  .news-copy-block:first-of-type p + p {
    margin-top: 24px;
  }

  .news-copy-block:first-of-type + .news-copy-block {
    margin-top: 56px;
  }

  .news-copy-block:nth-of-type(2) p + p {
    margin-top: 24px;
  }

  .news-copy-block:nth-of-type(2) + .news-copy-block {
    margin-top: 32px;
  }

  .news-copy-block:nth-of-type(3) p + p {
    margin-top: 24px;
  }

  .news-copy-block:nth-of-type(3) + .news-copy-block {
    margin-top: 32px;
  }

  .news-copy-block:nth-of-type(4) p + p {
    margin-top: 24px;
  }

  .news-copy-block:nth-of-type(4) + .article-navigation {
    margin-top: 41px;
  }
}

.article-navigation {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 38px;
}

.article-navigation a {
  display: grid;
  justify-items: start;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.article-navigation a:last-child {
  justify-items: end;
}

.article-navigation a:last-child span {
  width: 48px;
  padding-inline: 0;
  text-align: center;
}

.article-navigation span {
  min-height: 18px;
  padding-inline: 40px;
  font-size: 31px;
  font-weight: 300;
  line-height: 0.55;
}

.article-navigation strong {
  font: inherit;
}

.article-navigation a:hover,
.article-navigation a:focus-visible {
  color: var(--green-dark);
}

.news-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
}

.sidebar-section h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.recent-posts {
  display: grid;
  gap: 20px;
  margin-top: 14px;
}

.recent-post {
  min-width: 0;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: #111;
  font-size: 12px;
  line-height: 1.55;
}

.recent-post img {
  width: 104px;
  height: 64px;
  border-radius: 9px;
  object-fit: cover;
}

.recent-post:hover,
.recent-post:focus-visible {
  color: var(--green-dark);
}

.sidebar-categories {
  margin-top: 31px;
}

.sidebar-categories ul {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.sidebar-categories a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-right: 18px;
  font-size: 16px;
  line-height: 1.15;
}

.sidebar-categories a > span:last-child {
  font-size: 28px;
  line-height: 14px;
}

.sidebar-categories a:hover,
.sidebar-categories a:focus-visible {
  color: var(--green-dark);
}

.sidebar-contact {
  margin-top: 28px;
}

.sidebar-contact p {
  margin: 12px 0 9px;
  font-size: 14px;
  line-height: 1.5;
}

.sidebar-contact > a {
  display: block;
  overflow: hidden;
  border-radius: 4px;
}

.sidebar-contact img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.sidebar-contact > a:hover img,
.sidebar-contact > a:focus-visible img {
  transform: scale(1.02);
}

.news-detail-page .inquiry-section {
  scroll-margin-top: 100px;
}

@media (min-width: 1421px) {
  .news-breadcrumb .site-container,
  .news-detail-layout,
  .news-detail-page .inquiry-section > .site-container {
    position: relative;
    left: 7px;
  }
}

@media (min-width: 1161px) and (max-width: 1420px) {
  .news-detail-layout {
    grid-template-columns: minmax(0, 2.55fr) minmax(275px, 1fr);
    column-gap: 48px;
  }
}

@media (min-width: 1161px) and (max-width: 1201px) {
  .news-copy-block:first-of-type h2 {
    padding-inline: 35px;
    font-size: 21px;
  }
}

@media (max-width: 1160px) {
  .news-sidebar {
    top: 104px;
  }

  .news-detail-section {
    padding-top: 40px;
  }

  .news-detail-layout {
    grid-template-columns: minmax(0, 2.2fr) minmax(250px, 1fr);
    column-gap: 34px;
  }

  .news-article h1 {
    font-size: 27px;
  }

  .news-article-cover {
    height: auto;
    aspect-ratio: 852 / 260;
  }

  .news-copy-block h2 {
    padding-inline: 35px;
    font-size: 21px;
  }

  .recent-post {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
  }

  .recent-post img {
    width: 88px;
    height: 58px;
  }
}

@media (max-width: 900px) {
  .news-detail-layout {
    grid-template-columns: 1fr;
  }

  .news-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 34px;
    margin-top: 60px;
    padding-top: 38px;
    border-top: 1px solid #e7e7e7;
  }

  .recent-posts {
    grid-template-columns: 1fr;
  }

  .sidebar-categories,
  .sidebar-contact {
    margin-top: 0;
  }

  .sidebar-contact {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .news-breadcrumb {
    min-height: 38px;
  }

  .news-breadcrumb .site-container {
    font-size: 11px;
  }

  .news-detail-section {
    padding: 30px 0 42px;
  }

  .news-article-header {
    min-height: 0;
    margin-bottom: 20px;
  }

  .news-article h1 {
    font-size: 25px;
    line-height: 1.18;
  }

  .news-article time {
    justify-content: flex-start;
    margin-top: 14px;
    font-size: 14px;
  }

  .news-article-lead {
    min-height: 0;
    grid-template-columns: 26px minmax(0, 1fr);
    margin-top: 20px;
    padding: 16px 17px 18px 14px;
    border-radius: 9px;
  }

  .news-article-lead > span {
    font-size: 31px;
  }

  .news-article-lead p,
  .news-copy-block p {
    font-size: 14px;
    line-height: 1.65;
  }

  .news-copy-block,
  .news-copy-block + .news-copy-block {
    margin-top: 34px;
  }

  .news-copy-block:first-of-type + .news-copy-block {
    margin-top: 34px;
  }

  .news-copy-block h2 {
    min-height: 0;
    margin-bottom: 14px;
    padding: 9px 14px;
    font-size: 18px;
    line-height: 1.25;
  }

  .news-copy-block p + p {
    margin-top: 19px;
  }

  .article-navigation {
    margin-top: 32px;
  }

  .article-navigation a {
    font-size: 14px;
  }

  .article-navigation span {
    padding-inline: 25px;
    font-size: 26px;
  }

  .news-sidebar {
    grid-template-columns: 1fr;
    gap: 34px;
    margin-top: 43px;
    padding-top: 30px;
  }

  .recent-posts {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .recent-post {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .recent-post img {
    width: 104px;
    height: 64px;
  }

  .sidebar-contact {
    grid-column: auto;
  }

  .news-detail-page .inquiry-section {
    padding-top: 49px;
  }
}

@media (max-width: 360px) {
  .news-article h1 {
    font-size: 22px;
    line-height: 1.2;
  }
}

/* Dynamic article titles keep long news headings inside the content column. */
.article-navigation.article-navigation--titles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid #e1e5e3;
}
.article-navigation--titles .article-navigation__link {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid #e1e5e3;
  border-radius: 10px;
  text-align: left;
  text-transform: none;
  line-height: 1.5;
}
.article-navigation--titles .article-navigation__link--next {
  grid-column: 2;
  text-align: right;
}
.article-navigation__label {
  color: #69736e;
  font-size: 13px;
  font-weight: 500;
}
.article-navigation__link--prev .article-navigation__label::before { content: "← "; }
.article-navigation__link--next .article-navigation__label::after { content: " →"; }
.article-navigation--titles .article-navigation__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.article-navigation--titles .article-navigation__link:hover,
.article-navigation--titles .article-navigation__link:focus-visible {
  border-color: var(--green-dark);
}
@media (max-width: 640px) {
  .article-navigation.article-navigation--titles {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding-top: 20px;
  }
  .article-navigation--titles .article-navigation__link--next { grid-column: auto; }
  .article-navigation--titles .article-navigation__link { padding: 14px 16px; }
  .article-navigation--titles .article-navigation__title { font-size: 15px; }
}
