.news-alert__header {
  display: flex;
  justify-content: center;
  background: #0c233c;
}

.news-alert__header > img {
  width: 100%;
  max-width: 960px;
}

section:not(:first-of-type) {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 1.5rem auto;
  padding: 3rem 0;
}

section:nth-child(2n + 1) {
  background-color: #ffffff;
}

section:last-of-type {
  margin-bottom: 0;
}

.news-alert__cta-title {
  margin-top: 0;
  padding: 1rem 2rem;
  font-size: 2rem;
  font-weight: 900;
}

.news-alert__title {
  margin-top: 0;
  padding: 1rem 2rem;
  color: #fff;
  background: #27aedf;
  -webkit-box-shadow: 5px 5px 0 #004d66;
  box-shadow: 5px 5px 0 #004d66;
  font-size: 2rem;
  font-weight: 900;
  width: 100%;
  max-width: 60rem;
}

.news-alert__sub-title {
  background: linear-gradient(transparent 60%, #ffff66 60%);
  font-size: 1.375rem;
  font-weight: bold;
  display: block;
  width: fit-content;
  margin-top: 0;
}

.news-alert__content {
  padding: 0 1.5rem;
  max-width: 60rem;
}

.news-alert__content > span {
  font-size: 1rem;
}

.news-alert__content > div {
  display: flex;
  margin-top: 1rem;
}

.news-alert__box {
  margin: 2em 0.5rem;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.22);
  border-radius: 6px;
  width: 50%;
}

.news-alert__box .news-alert__box-title > h4 {
  font-size: 1.5rem;
  font-weight: bold;
  background: #4c4948;
  padding: 0.5rem;
  text-align: center;
  color: #fff;
  letter-spacing: 0.05em;
  margin: 0;
  border-radius: 6px 6px 0 0;
}

.news-alert__box-description {
  padding: 1rem;
}

.news-alert__box-description > span {
  margin: 0;
  font-size: 1rem;
}

.line-break {
  display: none;
}

.news-alert__inner {
  font-size: 1rem;
}

.news-alert__inner ol {
  margin-top: 0;
}
.news-alert__qa {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.news-alert__qa > dl {
  width: 50%;
}

.news-alert__qa > dl > dt {
  padding: 10px 10px 10px 35px;
  border-radius: 5px;
  text-indent: -25px;
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: bold;
}

.news-alert__qa > dl > dt:before {
  content: "Q.";
  font-weight: bold;
  margin-right: 7px;
}

.news-alert__qa > dl > dd {
  margin: 0.5rem;
  font-size: 1rem;
}
.image-gallery {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  justify-content: space-between;
}

.image-gallery > div {
  cursor: pointer;
  flex: 1 1 calc(16.666% - 10px);
  max-width: calc(16.666% - 10px);
}

.image-gallery .modal__trigger img {
  object-fit: contain;
  width: 100%;
}

.modal {
  z-index: 10000;
}

/* モーダルを開くボタン */
.modal__images {
  display: flex;
  flex-wrap: wrap;
}

.modal__images .modal__image {
  position: relative;
  width: calc((100% - (32px * 2)) / 3);
  transition: opacity 0.6s;
}

.modal__images .modal__image:hover {
  opacity: 0.6;
}

.modal__images .modal__trigger {
  cursor: pointer;
}

.modal__images .modal__image:nth-child(3n - 1),
.modal__images .modal__image:nth-child(3n) {
  margin-left: 32px;
}

.modal__images .modal__image:nth-child(n + 4) {
  margin-top: 32px;
}

.modal__images .modal__image:before {
  display: block;
  padding-top: calc((2 / 3) * 100%);
  padding-top: 100%;
  content: "";
}

.modal__images .modal__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* モーダル本体 */
.modal__wrapper {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  width: 100%;
  height: 100%;
}

.modal__layer {
  height: 100%;
  background: rgba(50, 50, 50, 0.85);
  cursor: pointer;
}

.modal__container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* overflow-y: scroll; */
  width: min(calc(100% - 40px), 1000px);
  max-height: calc(100% - 40px);
}

/* モーダルを閉じるボタン */
.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(50, 50, 50, 1);
  cursor: pointer;
  transition: opacity 0.6s;
}

.modal__close:hover {
  opacity: 0.6;
}

.modal__close:before,
.modal__close:after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 1px;
  background: #fff;
  content: "";
}

.modal__close:before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal__close:after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal__content .modal__image img,
.modal__content > .modal__trigger,
.modal__content > .modal__trigger > img {
  width: 100%;
}

.swiper-container.swiper-container--mobile {
  display: none;
}

.modal-image {
  width: 100%;
}

@media screen and (max-width: 767px) {
  .news-alert__content {
    padding-right: 0;
    padding-left: 0;
  }
  .swiper-button-next {
    right: 0;
  }
  .swiper-button-prev {
    left: 0;
  }
  .desktop-images {
    display: none;
  }

  .swiper-container.swiper-container--mobile {
    display: block;
    width: 100%;
    overflow: hidden;
  }

  .swiper-wrapper {
    display: flex;
    width: 100%;
  }

  .swiper-slide > img {
    width: 80%;
    margin: 0 auto;
    display: block;
  }

  .swiper-slide {
    width: 100%;
    margin-right: 0 !important;
  }
  .news-alert__inner {
    flex-direction: column;
    align-items: center;
  }
  .news-alert__inner > strong {
    text-align: left;
    width: 100%;
  }

  .modal__content,
  .modal__content > div,
  .modal__content img {
    width: 100% !important;
  }

  .mobile-images {
    position: fixed;
  }

  .news-alert__header > img {
    width: 100%;
  }

  .news-alert__title {
    font-size: 1.75rem;
  }
  .news-alert__sub-title {
    font-size: 1.25rem;
  }

  section:not(:first-of-type) {
    padding: 1.5rem 1rem;
  }

  .news-alert__content {
    width: 100%;
  }

  .tab-list-item > img {
    width: 100%;
  }

  .table-wrapper {
    width: 100%;
    overflow-x: scroll;
  }
  .table-wrapper::-webkit-scrollbar {
    background: #fff;
    border-radius: 5px;
    height: 4px;
    border: 1px solid #000;
  }
  .table-wrapper::-webkit-scrollbar-thumb {
    background: #000;
    border-radius: 5px;
  }
}

@media screen and (max-width: 480px) {
  .news-alert__title {
    font-size: 1.625rem;
  }
  .news-alert__qa {
    padding: 0 0.5rem;
  }

  .news-alert__qa {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .news-alert__qa > dl {
    width: 100%;
  }

  .news-alert__qa > dl > dt {
    padding: 10px 0 10px 26px;
    font-size: 1.125rem;
  }

  .news-alert__sub-title {
    display: inline;
  }

  .line-break {
    display: block;
  }

  .news-alert__box {
    width: 100%;
  }
  .tab-list {
    padding: 0;
  }
  .tab-list-item {
    padding: 0 2px;
  }
  .tab-contents-wrap {
    width: 100%;
  }
  .tab-contents > div > h4,
  .news-alert__box .news-alert__box-title > h4 {
    font-size: 1.25rem;
  }
  #modal-container {
    display: none;
    position: fixed;
    background: rgba(0, 0, 0, 0.6);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
  }

  #modal-container > div {
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
  }

  #modal-container > div > img {
    max-width: calc(100vw - 30px);
    max-height: calc(100vh - 30px);
  }

  img.is-img-active {
    cursor: pointer;
  }

  .news-alert__cta-title {
    font-size: 1.5rem;
    text-align: center;
  }
}
