@charset "UTF-8";

* {
  box-sizing: border-box;
}


main {
  background-image: url(../img/bg_2.png);
}


/* header */
header {
  background: #FFFFFF;
}

.header_item p {
  color: #5C4243;
}


/* ハンバーガー */
.hamburger1 .MenuBtn-BarFrame-FirstBar {
  background-color: #5C4243;
}

.hamburger1 .MenuBtn-BarFrame-SecondBar {
  background-color: #5C4243;
}

.hamburger1 .MenuBtn-BarFrame-ThirdBar {
  background-color: #5C4243;
}




/* コンテンツ */

.news_contents_maincontent {
  padding-block: 4rem 6rem;
  padding-inline: 8rem;
}

.news_blog_contents_wrapper {
  display: flex;
  padding: 6rem;
  gap: 7rem;
  background-color: #FFFFFF;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25);
}

.news_blog_contents_imgarea {
  display: flex;
  align-items: center;
  width: 60%;

  img {
    width: 100%;
  }
}

.news_blog_contents_textarea {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.news_date {
  font-size: 1.4rem;
  text-align: right;
}

.news_title {
  font-size: 2.4rem;
}

.news_category {
  font-size: 1.4rem;
  text-align: right;
}

.news_txt {
  font-size: 1.6rem;
  line-height: 1.7;
}

/* next_and_before_post */
.next_and_before_post_wrapper {
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
  padding-block: 4rem 6rem;
  padding-inline: 8rem;
}
.next_and_before_post {
  background: #FFFFFF;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25);
  padding: 2rem 3rem;
  width: calc(50% - 1.5rem);
}
.next_and_before_post_imgarea {
  display: flex;
  align-items: center;
  gap: 2rem;

  img {
    width: 14rem;
  }
}
.before_post_date {
  font-size: 1.4rem;
}
.before_post_title {
  margin-top: 1rem;
  font-size: 1.6rem;
}
.next_post_date {
  font-size: 1.4rem;
  text-align: right;
}
.next_post_title {
  margin-top: 1rem;
  font-size: 1.6rem;
  text-align: right;
}
.before_post_readmore_area {
  display: flex;
  margin-top: 3rem;
  font-size: 1.6rem;
  gap: 2rem;

  img {
    width: 5rem;
    height: auto;
    object-fit: cover;
  }
}
.next_post_readmore_area {
  display: flex;
  justify-content: flex-end;
  margin-top: 3rem;
  font-size: 1.6rem;
  gap: 2rem;

  img {
    width: 5rem;
    height: auto;
    object-fit: cover;
  }
}

/* 次の記事カード（.next_post_date を内包する要素）を常に右へ */
.next_and_before_post_wrapper .next_and_before_post:has(.next_post_date) {
  margin-left: auto;
}
