/* ========================================
   News Page
======================================== */

.news-page {
  min-height: 100vh;
  background: #004ea2;
}


/* ========================================
   News Page Visual
======================================== */

.news-page-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 420px;
  padding: 80px 30px;
  overflow: hidden;
  background-image: linear-gradient(rgba(0, 78, 162, 0.72), rgba(0, 78, 162, 0.72)), url("../img/mainvisual-pc.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.news-page-logo {
  position: relative;
  z-index: 1;
  width: min(44vw, 500px);
}

.news-page-logo a {
  display: block;
}

.news-page-logo img {
  width: 100%;
  height: auto;
}

.news-page-heading {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 42px 0 0;
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.news-page-heading::before,
.news-page-heading::after {
  width: 36px;
  height: 2px;
  content: "";
  background: #bdd9ec;
}

.news-page-heading::before {
  transform: skewX(-45deg);
}

.news-page-heading::after {
  transform: skewX(45deg);
}


/* ========================================
   News Archive
======================================== */

.news-archive {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 80px 30px 120px;
}

.news-page-list {
  width: 100%;
}

.news-page-item {
  padding: 0 0 80px;
  scroll-margin-top: 80px;
}

.news-page-item+.news-page-item {
  margin-top: 20px;
}

.news-page-item-header {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 30px;
  align-items: center;
  margin-bottom: 32px;
  padding: 18px 20px;
  border-left: 3px solid #bdd9ec;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.news-page-date {
  color: #bdd9ec;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
}

.news-page-title {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

.news-page-body {
  padding: 0 20px;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
}

.news-page-body p {
  margin: 0;
}

.news-page-body p+p {
  margin-top: 1.5em;
}

.news-page-body h2,
.news-page-body h3,
.news-page-body h4 {
  margin: 2em 0 0.8em;
  color: #fff;
  font-weight: 600;
  line-height: 1.5;
}

.news-page-body h2 {
  font-size: 22px;
}

.news-page-body h3 {
  font-size: 19px;
}

.news-page-body h4 {
  font-size: 17px;
}

.news-page-body figure {
  width: 90%;
  margin: 32px auto;
}

.news-page-body img {
  display: block;
  width: 80%;
  max-width: 100%;
  height: auto;
  margin: 32px auto;
}

.news-page-body figure img {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.news-page-body a {
  color: #bdd9ec;
  text-decoration: underline;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.news-page-body ul,
.news-page-body ol {
  margin: 1.5em 0;
  padding-left: 1.5em;
}

.news-page-body li+li {
  margin-top: 0.5em;
}

.news-page-error {
  margin: 0;
  padding: 40px 0;
  color: #fff;
  font-size: 16px;
  text-align: center;
}


/* ========================================
   Responsive
======================================== */

@media (max-width: 767px) {

  .news-page-visual {
    min-height: 340px;
    padding: 64px 20px;
    background-image: linear-gradient(rgba(0, 78, 162, 0.72), rgba(0, 78, 162, 0.72)), url("../img/mainvisual-sp.jpg");
  }

  .news-page-logo {
    width: min(90%, 360px);
  }

  .news-page-heading {
    gap: 10px;
    margin-top: 32px;
    font-size: 30px;
  }

  .news-page-heading::before,
  .news-page-heading::after {
    width: 24px;
  }

  .news-archive {
    padding: 64px 20px 80px;
  }

  .news-page-item {
    padding-bottom: 60px;
  }

  .news-page-item+.news-page-item {
    margin-top: 12px;
  }

  .news-page-item-header {
    display: block;
    margin-bottom: 24px;
    padding: 14px 16px;
  }

  .news-page-date {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
  }

  .news-page-title {
    font-size: 17px;
  }

  .news-page-body {
    padding: 0 16px;
    font-size: 15px;
    line-height: 1.8;
  }

  .news-page-body h2 {
    font-size: 20px;
  }

  .news-page-body h3 {
    font-size: 18px;
  }

  .news-page-body h4 {
    font-size: 16px;
  }

  .news-page-body figure {
    width: 100%;
    margin: 24px auto;
  }

  .news-page-body img {
    width: 90%;
    margin: 24px auto;
  }

}