/* 新着情報　==================== */
.contents_news {
  width: 100%;
  max-width: 960px;
  margin: auto;
}

.news {
  padding: 0.5em 1.5em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news h3 {
  font-family: 'Yomogi', cursive;
  font-style: normal;
  font-weight: 400;
  color: #4d2f1c;
  font-size: 1.5em;
}

.news h3 span {
  font-size: 200%;
}

.news h3::first-letter {
  color: #52e370;
}

.news_in {
  position: relative;
  flex: 1;
  margin-left: 50px;
  padding: 15px 30px;
  background: #fff;
  border-radius: 15px;
}

.news_in::after {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 20px 30px 20px 0;
  border-color: rgba(0, 0, 0, 0) #fff rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
  top: calc(50% - 15px);
  left: -30px;
}

#newsWrap {}

#newsWrap ul#newsList {
  margin: 0 0 15px;
  padding: 0;
}

#newsWrap ul#newsList li {
  color: #333;
  font-size: 1em;
  line-height: 120%;
  list-style-type: none;
  padding: 1em 0 0.5em;
  border-bottom: solid 1px #f5f5f5;
  transition: .5s;
}

#newsWrap ul#newsList li:hover {}

#newsWrap ul#newsList a {
  color: #4d2f1c;
}

#newsWrap ul#newsList li .newMark {
  display: inline-block;
  padding: 2px 5px 1px;
  font-size: 11px;
  line-height: 100%;
  background: #f17d54;
  color: #fff;
  border-radius: 2px;
  margin-bottom: 0.5rem;
}

#newsWrap ul#newsList li .up_ymd {
  display: inline-block;
  font-size: 0.8em;
  text-align: center;
  background: #4d2f1c;
  color: #fff;
  padding: 0.25em 1em;
  border-radius: 30px;
  width: 8em;
  margin-right: 1em;
  margin-bottom: 0.5rem;
}

#newsWrap ul#newsList li .title {
  width: 90%;
  max-width: 32em;
  vertical-align: middle;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.5rem;
}

#newsWrap ul#newsList li:hover .title {
  color: #f17d54;
}



@media (max-width: 959px) {
  .news {
    height: auto;
    margin: auto;
    flex-direction: column;
    justify-content: flex-start;
    padding: 15px;
  }

  .news h3 {
    width: 100%;
    text-align: center;
    border-right: none;
    margin-bottom: 10px;
    margin-left: none;
  }

  .news_in {
    width: 100%;
    margin: 30px auto;
  }

  .news_in::after {
    border-width: 0 20px 25px 20px;
    border-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) #fff rgba(0, 0, 0, 0);
    left: 50%;
    top: -20px;
    transform: translateX(-50%);
  }

  #newsWrap {}

}

@media (max-width: 450px) {
  .news_in {
    max-height: none;
  }

  ul#newsList li .up_ymd {
    display: block;
    margin-bottom: 0.5em;

  }
}

#newsWrap02 ul#newsList {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  flex-wrap: wrap;
  width: 100%;
}

#newsWrap02 ul#newsList a {
  display: inline-block;
  width: calc(100% / 4 - 20px);
  margin: 10px;
  color: #4d4d4d;
  background: #fff;
  font-size: 1rem;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);

}

#newsWrap02 ul#newsList li {
  list-style-type: none;
}

/*サムネイル*/
.thumbNailWrap {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  min-height: 0%;
}

.thumbNailWrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition-duration: 0.5s;
}

#newsWrap02 ul#newsList a:hover .thumbNailWrap img {
  transform: scale(1.2);
  transition-duration: 0.5s;
}

/*日付*/
#newsWrap02 ul#newsList li .up_ymd {
  display: block;
  font-weight: 500;
  color: #52e370;
  margin-top: 0.5em;
}

#newsWrap02 ul#newsList li .title {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 90%;
  max-width: 20em;
}

@media (max-width: 1200px) {
  #newsWrap02 ul#newsList a {
    width: calc(100% / 3 - 20px);
  }
}

@media (max-width: 960px) {
  #newsWrap02 ul#newsList {
    max-width: 700px;
    margin: auto;
  }

  #newsWrap02 ul#newsList a {
    width: calc(100% / 2 - 20px);
    max-width: 350px;
  }

  .news-detail #newsWrap02 {
    height: auto;
  }

  .news-detail #newsWrap02 ul#newsList {
    width: 100%;
  }
}

@media (max-width: 750px) {}

@media (max-width: 450px) {
  #newsWrap02 ul#newsList {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  #newsWrap02 ul#newsList a {
    width: 90%;
  }
}

/*===news-detail.php用==============================*/
.news-detail .flex {
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
}

.news-detail .flex #main {
  width: calc(100% - 270px);
}

.news-detail .flex #main img {
  max-width: 100%;
}

.news-detail .flex #side {
  width: 230px;
}

/*main*/
.news-detail .flex #main #up_ymd {
  font-size: 1em;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  color: #f17d54;
}

.news-detail .flex #main #up_ymd::before {
  font-family: "Font Awesome 6 Free";
  content: '\f017';
  font-weight: 900;
  padding-right: 0.5em;
}

.news-detail .flex #main .stitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.news-detail .flex #main img {
  max-width: 100%;
}


.news-detail .pages {
  display: flex;
  justify-content: space-around;
  width: 100%;
  margin-top: 30px;
}

.news-detail .pages .page_next {
  width: 100%;
  max-width: calc(100% - 20px);
  margin: 10px;
}

.news-detail .pages .page_prev {
  width: 100%;
  max-width: calc(100% - 20px);
  margin: 10px;
}

.news-detail .pages .page_next a {
  display: block;
  width: 100%;
  color: #f17d54;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 15px;
  transition: 0.4s;
}

.news-detail .pages .page_prev a {
  display: block;
  width: 100%;
  color: #f17d54;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 15px;
  transition: 0.4s;
}

.news-detail .pages .page_prev a {
  text-align: right;
}

.news-detail .pages .page_next a:hover {
  color: #52e370;
}

.news-detail .pages .page_prev a:hover {
  color: #52e370;
}

/*side*/
.news-detail .flex #side h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1em;
}

.news-detail .flex #side h3::before {
  font-family: "Font Awesome 6 Free";
  content: '\f0ca';
  font-weight: 900;
  padding-right: 0.5em;
  color: #f17d54;
}

.news-detail .flex #side ul li a {
  display: block;
  width: 100%;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #f17d54;
  margin-bottom: 15px;
  transition: 0.4s;
}

.news-detail .flex #side ul li a::before {
  font-family: "Font Awesome 6 Free";
  content: '\f017';
  font-weight: 900;
  padding-right: 0.5em;
}

.news-detail .flex #side ul li a:hover {
  color: #52e370;
}

@media (max-width: 960px) {
  .news-detail .pages {
    display: block;
    margin-top: 30px;
  }

  .news-detail .pages .page_next {
    max-width: 100%;
    margin: 5px 0;

  }

  .news-detail .pages .page_prev {
    max-width: 100%;
    margin: 5px 0;

  }

  .news-detail .pages .page_next.next {
    margin-bottom: 7px;
  }

  .news-detail .pages .page_prev.next {
    margin-bottom: 7px;
  }

  .news-detail .pages .page_prev a,
  .news-detail .pages .page_next a {
    text-align: center;
  }

}

@media (max-width: 750px) {
  .news-detail .flex {
    display: block;
  }

  .news-detail .flex #main {
    width: 100%;
    margin-bottom: 40px;
  }

  .news-detail .flex #side {
    width: 100%;
  }
}


/*一覧ページ*/
.news-detail .flex #main ul.list li {
  border-bottom: 1px solid #ddd;
  list-style-type: none;
  padding: 10px 0;
  color: #3f3f3f;
  transition: .5s;
}

.news-detail .flex #main ul.list li:first-child {
  border-top: 1px solid #ddd;
}

.news-detail .flex #main ul.list li span {
  display: block;
}

.news-detail .flex #main ul.list li .up_ymd {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: #f17d54;
}

.news-detail .flex #main ul.list li .title {
  font-weight: 500;
  color: #03ac74;
}

.news-detail .flex #main ul.list li a .comment {
  font-size: 0.9rem;
  color: #3f3f3f;
}

.news-detail .flex #main ul.list li:hover {
  opacity: 0.5;
}

@media (max-width: 1199px) {
  .news-detail #newsWrap ul#newsList a {
    width: calc(100% / 2 - 20px);
  }
}

@media (max-width: 750px) {
  .news-detail #newsWrap ul#newsList {
    flex-direction: row;
  }

  .news-detail #newsWrap ul#newsList a {
    width: calc(100% / 2 - 20px);
  }
}

@media (max-width: 450px) {
  .news-detail #newsWrap ul#newsList {
    flex-direction: column;
  }

  .news-detail #newsWrap ul#newsList a {
    width: calc(100% - 20px);
  }
}




/*一覧ページ*/
.news-detail .flex #main ul.list li {
  border-bottom: 1px solid #ddd;
  list-style-type: none;
  padding: 8px 0;
  color: #3f3f3f;
  transition: .5s;
}

.news-detail .flex #main ul.list li:first-child {
  border-top: 1px solid #ddd;
}

.news-detail .flex #main ul.list li span {
  display: block;
}

.news-detail .flex #main ul.list li .up_ymd {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: #0642bb;
}

.news-detail .flex #main ul.list li .title {
  font-weight: 600;
}

.news-detail .flex #main ul.list li a .comment {
  font-size: 0.9rem;
  color: #3f3f3f;
}

.news-detail .flex #main ul.list li:hover {
  opacity: 0.5;
}

@media (max-width: 1199px) {
  .news-detail #newsWrap ul#newsList a {
    width: calc(100% / 2 - 20px);
  }
}

@media (max-width: 750px) {
  .news-detail #newsWrap ul#newsList {
    flex-direction: row;
  }

  .news-detail #newsWrap ul#newsList a {
    width: calc(100% / 2 - 20px);
  }
}

@media (max-width: 450px) {
  .news-detail #newsWrap ul#newsList {
    flex-direction: column;
  }

  .news-detail #newsWrap ul#newsList a {
    width: calc(100% - 20px);
  }
}


/* ギャラリー　============================================================ */
.gallery_wrap {
  width: 100%;
  padding: 20px 10px;
}

.gallery_list {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}

.gallery_list li {
  width: calc(100% / 4 - 10px);
  margin: 0 5px 15px;
  overflow: hidden;
  padding: 5px;
  font-size: 0;
}

.gallery_list a.photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  padding: 10px;
  overflow: hidden;
  background-color: #fff;
}

.gallery_list a.photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: .5s;
}

.gallery_list a.photo img:hover {
  opacity: 0.6;
}

p.detail_text {
  font-size: 0.9rem;
  padding: 0.5em;
  font-weight: 400;
}

.more_btn {
  text-align: right;
  margin-top: 1em;
  margin-left: 1em;
  transition: .5s;
}

.more_btn a {
  color: #133313;
  font-size: 0.8em;
  font-weight: 600;
}

.more_btn::before {
  font-family: "Font Awesome 6 Free";
  content: '\f105';
  font-weight: 900;
  padding-right: 0.3em;
}

.more_btn :hover {
  color: #7dbb7b;
}

@media (max-width: 750px) {
  .gallery_list li {
    width: calc(100% / 2 - 10px);
  }
}