.post {
  padding-top: 80px;
  padding-bottom: 80px;
  padding-inline: 20px;
  max-width: 928px;
  margin: 0 auto;
  overflow: visible;
}

.post__wrapper {
  max-width: 736px;
  margin: 0 auto;
}

.post__category-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

.post__category {
  display: none;
}

.post__category-item {
  width: fit-content;
  margin-right: auto;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  color: #000000;
  padding: 4px 8px;
  border: 1px solid #000000;
  border-radius: 4px;
  white-space: nowrap;
}

.post__title {
  font-size: 24px;
  text-align: center;
  margin-top: 24px;
  color: var(--color-black);
  line-height: 1.6;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.post__main-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #a0a0a0;
  margin: 22px auto 0;
}

.post__subtitle {
  position: relative;
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.8;
}
.post__wrapper h2 {
  position: relative;
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.8;
}

.post__subtitle-sec {
  position: relative;
  margin-top: 20px;
  font-size: 16px;
  line-height: 24px;
  color: #3b4043;
  padding: 0 16px 0 24px;
}

.post__subtitle-sec::before {
  content: "";
  display: block;
  position: absolute;
  width: 16px;
  height: 100%;
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
  background-color: #1b4765;
  left: 0;
  top: 0;
}

.post__text {
  margin-top: 16px;
  font-size: 16px;
  line-height: 2;
}

.post__images {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
  justify-content: center;
}

.post__images-item {
  width: 100%;
  background-color: #d9d9d9;
  overflow: hidden;
  border-radius: 16px;
  display: block;
}

.navi_buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 896px;
  margin: 40px auto 0;
  gap: 48px;
}

.navi_buttons__nav {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.navi_buttons__prev,
.navi_buttons__next {
  width: 112px;
  height: 30px;
  border: 1px solid #000000;
  border-radius: 4px;
  background-color: #ffffff;
  color: var(--color-black);
  font-weight: 400;
  line-height: 1.4;
  position: relative;
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  font-family: var(--font-sans);
}

.navi_buttons__prev {
  text-align: right;
}
.navi_buttons__next {
  margin-left: auto;
  margin-right: 0;
}
.navi_buttons__prev::before,
.navi_buttons__next::before {
  position: absolute;
  display: block;
  width: 16px;
  height: 16px;
  content: "";
  background-image: url("../images/news-detail/arrow_pager_ic.png");
  background-size: contain;
  background-repeat: no-repeat;
  top: 50%;
  transform: translateY(-50%);
}

.navi_buttons__prev::before {
  left: 11px;
}

.navi_buttons__next::before {
  right: 11px;
  transform: translateY(-50%) rotate(180deg);
}

.navi_buttons__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 32px;
  background: var(--color-red);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.navi_buttons__back::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url("/images/news-detail/arrow-ic.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

@media (max-width: 360px) {
  .navi_buttons__prev,
  .navi_buttons__next {
    width: 120px;
    font-size: 14px;
  }

  .navi_buttons__prev {
    padding-right: 10px;
  }

  .navi_buttons__next {
    padding-left: 8px;
  }
}

@media (min-width: 768px) {
  .post {
    padding-top: 200px;
    padding-bottom: 120px;
  }

  .post__title {
    font-size: 28px;
    line-height: 1.4;
    margin-top: 64px;
    margin-bottom: 65px;
  }

  .post__category {
    display: flex;
    flex-direction: row;
    gap: 20px;
  }

  .post__main-image {
    width: 100%;
    aspect-ratio: 736 / 490;
    background-color: #a0a0a0;
    margin: 65px auto 0;
    border-radius: 16px;
  }

  .post__subtitle {
    position: relative;
    margin-top: 40px;
    font-size: 24px;
    line-height: 1.5;
  }
  .post__wrapper h2 {
    position: relative;
    margin-top: 40px;
    font-size: 24px;
    line-height: 1.5;
  }
  .post__subtitle-sec {
    margin-top: 50px;
    font-size: 20px;
    line-height: 32px;
    padding: 10px 36px;
  }

  .post__text {
    margin-top: 16px;
    line-height: 32px;
  }

  .post__images {
    margin-top: 40px;
    width: 100%;
    flex-wrap: inherit;
  }

  .navi_buttons {
    margin: 64px auto 0 auto;
    gap: 100px;
  }

  .navi_buttons__back {
    background: #e0e0e0;
    color: #272727;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 20px;
    transition:
      background 0.2s,
      color 0.2s,
      border-color 0.2s;
    max-width: 256px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navi_buttons__back::after {
    filter: brightness(0);
    transition: filter 0.2s;
  }

  .navi_buttons__back:hover {
    background: var(--color-red);
    color: #ffffff;
    border-color: var(--color-red);
  }

  .navi_buttons__back:hover::after {
    filter: none;
  }
}

.post__wrapper tr {
  display: flex;
  flex-wrap: wrap;
}

.post__wrapper tr td {
  width: 100% !important;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .post__wrapper tr {
    flex-wrap: inherit;
  }

  .post__wrapper tr td {
    width: calc((100% - 15px) / 2);
  }

  .post__wrapper tr td:first-child {
    margin-right: 15px;
  }
}
