.home-main {
  width: var(--page-width);
  max-width: calc(100% - 32px);
  margin: 0 auto;
}

.home-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 990 / 435;
  margin-top: 20px;
  overflow: hidden;
}

.carousel-list,
.carousel-slide,
.carousel-slide a,
.carousel-slide img {
  position: absolute;
  display: block;
}

.carousel-list {
  inset: 0;
}

.carousel-slide {
  top: 7.36%;
  left: 19.19%;
  z-index: 0;
  width: 61.62%;
  height: 85.06%;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    top 600ms linear,
    left 600ms linear,
    width 600ms linear,
    height 600ms linear,
    opacity 600ms linear;
}

.carousel-slide a,
.carousel-slide img {
  inset: 0;
  width: 100%;
  height: 100%;
}

.carousel-slide img {
  transition: transform 500ms ease;
}

.carousel-slide.is-prev {
  top: 7.36%;
  left: 0;
  z-index: 1;
  width: 61.62%;
  height: 85.06%;
  opacity: 0.48;
}

.carousel-slide.is-active {
  top: 0;
  left: 14.65%;
  z-index: 3;
  width: 70.71%;
  height: 100%;
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide.is-next {
  top: 7.36%;
  left: 38.38%;
  z-index: 1;
  width: 61.62%;
  height: 85.06%;
  opacity: 0.48;
}

.carousel-slide.is-active:hover img {
  transform: scale(1.1);
}

.carousel-shade {
  position: absolute;
  top: 7.36%;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 85.06%;
  background: url("../images/carousel-shadow.png") repeat-y center;
  background-size: 100% 100%;
  pointer-events: none;
}

.carousel-control {
  position: absolute;
  top: 38.39%;
  z-index: 6;
  width: 5.86%;
  height: 22.99%;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  opacity: 0;
  transition:
    left 500ms ease,
    right 500ms ease,
    opacity 500ms ease;
}

.carousel-control img {
  display: block;
  width: 100%;
  height: 100%;
}

.carousel-control.prev {
  left: -60px;
}

.carousel-control.next {
  right: -60px;
}

.home-carousel:hover .carousel-control.prev,
.carousel-control.prev:focus-visible {
  left: 0;
  opacity: 1;
}

.home-carousel:hover .carousel-control.next,
.carousel-control.next:focus-visible {
  right: 0;
  opacity: 1;
}

.carousel-dots {
  position: absolute;
  right: 15.66%;
  bottom: 20px;
  z-index: 7;
  display: flex;
  gap: 5px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  background: #fff;
  border: 1px solid #6c6c6c;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.carousel-dot.is-active {
  background: #d60012;
  border-color: #fff;
}

.home-news {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  height: 330px;
  margin-top: 16px;
}

.news-panel {
  height: 302px;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--line-blue);
}

.news-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 6px;
  border-bottom: 2px solid var(--line-blue);
}

.news-panel-title {
  font-size: 17px;
  font-weight: 700;
}

.news-panel.party .news-panel-title {
  color: var(--party-red);
}

.news-more {
  display: block;
  min-width: 80px;
  color: var(--text-main);
  font-size: 14px;
  line-height: 40px;
  text-align: center;
}

.news-more:hover,
.news-more:focus-visible,
.news-list a:hover,
.news-list a:focus-visible {
  color: #225b9d;
}

.news-list {
  padding: 0 10px;
}

.news-list li {
  height: 30px;
  padding-left: 10px;
  overflow: hidden;
  background: url("../images/home-list-dot.png") no-repeat left center;
  border-bottom: 1px solid var(--line-gray);
  line-height: 30px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.news-list a {
  display: block;
  overflow: hidden;
  color: #161616;
  font-size: 14px;
  text-overflow: ellipsis;
}

@media (max-width: 760px) {
  .home-main {
    max-width: calc(100% - 20px);
  }

  .carousel-dots {
    bottom: 10px;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
  }

  .home-news {
    grid-template-columns: 1fr;
    height: auto;
  }

  .news-panel {
    height: 302px;
  }
}
