@charset "utf-8";
/* CSS Document */

main {
  background-color: #f7f2eb;
  padding: 90px 0 80px;
}
@media(max-width:768px) {
  main{
    padding-top: 10px;
  }
}

.pan {
  color: #2F6EB4;
  font-size: 1.6rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 29px auto 80px;
  max-width: 1280px;
  width: 80%;
}

.pan img {
  width: 16px;
  display: block;
}

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  padding: 0;
  margin: 0;
}

.breadcrumb li::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-top: 2px solid #2F6EB4;
  border-right: 2px solid #2F6EB4;
  transform: rotate(45deg);
  margin: 0 10px 2px;
}

.breadcrumb li:last-child {
  font-weight: 700;
}

.breadcrumb li:last-child::after {
  display: none;
}

.breadcrumb a{
  display: inline-block;
}

.breadcrumb li:last-child::after {
  content: "";
}

section {
  width: 80%;
  max-width: 1280px;
}

.news_wrap {
  width: 90%;
  max-width: 1280px;
  margin: 80px auto 0;
  position: relative;
  padding-bottom: 100px;
}

.news_area {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto;
}

.news h2 {
  width: 30%;
  max-width: 310px;
  margin: 0 auto;
}

.news .blog {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  width: 100%;
}

.news .article {
  width: 32%;
  aspect-ratio: 1 / 2;
  background-color: #fff;
  border-radius: 30px;
  box-shadow: 3px 3px 5px #A3A3A3;
  overflow: hidden;
  margin-bottom: 20px;
  margin-left: 1.2%;
  max-height: 395px;
}

.news .article:nth-child(1),
.news .article:nth-child(4),
.news .article:nth-child(7) {
  margin-left: 0;
}

.news .article_image {
  width: 100%;
  height: 50%;
}

.news .article_image img {
  width: 100%;
  object-fit: cover;
  object-position: top;
}

.news .article_title {
  height: 35%;
  padding: 20px 0 0 20px
}

.news .article_title h3 {
  text-align: left;
  font-weight: 800;
  color: #9F2B2C;
  font-size: 1.8rem;
}

.news .border {
  display: block;
  width: 100%;
  height: 1px;
  background-color: #A3A3A3;
}

.news .day_time {
  width: 50%;
  min-width: 165px;
  font-size: 1.4rem;
  display: flex;
  justify-content: space-between;
  padding: 10px 0px 0 20px;
  color: #a3a3a3;
}

.btn-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50%;
  margin: 30px auto 0;
}

.btn-wrap p:hover {
  transition: all 0.1s linear;
  transform: translateX(2px);
  box-shadow: unset;
}

.btn-wrap p {
  background-color: #2F6EB4;
  padding: 5px 20px;
  color: #fdfdfd;
  border-radius: 50px;
  font-size: 1.6rem;
  box-shadow: 2px 2px 4px #757B83;
  position: relative;
  width: fit-content;
}

.home-back::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 5px;
  background-image: url("../images/home-w.png");
  background-size: contain;
}

@media(max-width:768px) {

  section {
    width: 90%;
  }

  .pan {
    font-size: 1.4rem;
    width: 90%;
    margin: 70px auto 50px;
  }

  .news .blog {
    width: 100%;
    margin-right: 0;
  }

  .news .article {
    aspect-ratio: 1 / 2.5;
    width: 48%;
    max-height: 290px;
  }

  .news .article:nth-child(4) {
    margin-left: 1.2%;
  }

  .news .article:nth-child(3),
  .news .article:nth-child(5) {
    margin-left: 0;
  }

  .news .day_time {
    width: 90%;
    min-width: auto;
    flex-direction: column;
  }

  .news .article_title {
    height: fit-content;
    padding: 10px 0 10px 10px;
    min-height: 68px;
  }

  .news .article_title h3 {
    font-size: max(2.4vw, 1.4rem);
  }

  footer {
    margin-bottom: 0;
  }

}

/* ページネーション */
.pnavi {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pnavi .page-numbers {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #000000;
  background: #ffffff;
  transition: color 0.3s ease, background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pnavi .page-numbers.current {
  background: #9F2B2C;
  color: #ffffff;
}