* {
  font-family: "M PLUS Rounded 1c", sans-serif;
}

main {
  padding: 107px min(27px, max(16px, calc(27px + 50vw - 180px))) 80px;
  max-width: 660px;
  margin: 80px auto 0;
}

.news-main-title {
  font-size: 24px;
  line-height: 34px;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #707070;
  max-width: 490px;
  margin: 0 auto;
}

.news-categories {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  margin: 20px auto 0;
}

.news-category {
  font-size: 12px;
  line-height: 17px;
  color: #707070;
  padding: 4px 8px 5px;
  border-radius: 2px;
  border: 1px solid #707070;
  font-family: "Noto Sans JP", sans-serif;
}

.news-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 40px auto 0;
  object-fit: cover;
}

.news-subtitle {
  width: 100%;
  border-radius: 1000px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: #fff;
  background-color: #2dbe95;
  margin: 40px auto 0;
  padding: 6px 26px;
  text-align: center;
}

.news-text {
  margin: 20px auto 0;
  font-size: 18px;
  line-height: 2;
}

.news-sub-subtitle {
  color: #2dbe95;
  font-size: 20px;
  line-height: 29px;
  font-weight: 700;
  margin-top: 40px;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px dotted #707070;
}

@media (min-width: 768px) {
  main {
    padding-top: 160px;
    padding-bottom: 200px;
    box-sizing: content-box;
    margin-top: 100px;
  }

  .news-image {
    margin: 80px auto 0;
  }

  .news-subtitle {
    margin: 80px auto 0;
  }

  .news-content {
    padding: 0 20px;
  }

  .news-text {
    margin-top: 40px;
  }

  .nav-buttons {
    margin-top: 55px;
  }
}
