@charset "UTF-8";
/* CSS Document (新着情報CMS) */

/*===index.php(メイン)用==============================*/
#newsWrap {
  padding: 5px;
  background-color: #fff;
  width: 800px;
  /*	margin: auto;*/
}
@media (max-width: 768px) {
  #newsWrap {
    width: 100%;
  }
}
#newsWrap ul#newsList {
  overflow-y: scroll;
  max-height: 200px;
  width: 100%;
  padding: 0 20px;
}
#newsWrap ul#newsList li {
  list-style-type: none;
  border-bottom: 1px dotted #ddd;
  padding: 10px 0;
}

/*サムネイル*/
ul#newsList li a .thumbNailWrap {
  display: block;
  position: relative;
  overflow: hidden;
  min-height: 0%;
  margin-bottom: 17px;
}

ul#newsList li a .thumbNailWrap::before {
  content: "";
  display: block;
  padding-top: 60%;
}

ul#newsList li a .thumbNailWrap img {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: all 0.4s linear;
}

ul#newsList li a:hover .thumbNailWrap img {
  transform: scale(1.05);
}

.up_ymd {
  display: inline-block;
  padding: 0 20px;
  background: var(--main_color);
  color: #fff;
  /*	border-radius: 14px;*/
  margin-right: 20px;
  letter-spacing: 0.05em;
  font-weight: 400;
  font-size: 1rem;
}
.news_title {
  font-size: 1rem;
  letter-spacing: 0.12em;
  font-weight: 400;
}
.news_title a {
  color: #333;
  text-decoration: none;
  background-image: linear-gradient(
    to right,
    var(--sub_color),
    var(--sub_color)
  );
  background-position: 0 100%;
  background-position: bottom left;
  background-size: 0% 1px;
  background-repeat: no-repeat;
  transition: 0.4s;
}
.new_title a:hover {
  opacity: 0.6;
  background-size: 100% 1px;
}

@media (max-width: 750px) {
  #newsWrap ul#newsList li {
    padding: 10px 0 5px;
  }
  #newsWrap ul#newsList li .up_ymd {
    line-height: 1.8;
    margin-bottom: 6px;
  }
  #newsWrap ul#newsList li .new_title {
    display: block;
  }
}

/*スクロールバー*/
#newsWrap ul#newsList::-webkit-scrollbar {
  overflow: hidden;
  width: 1px;
  background: #fafafa;
}
#newsWrap ul#newsList::-webkit-scrollbar-button {
  display: none;
}
#newsWrap ul#newsList::-webkit-scrollbar-thumb,
#newsWrap ul#newsList::-webkit-scrollbar-corner {
  background: #333;
}

/*===news-detail.php用==============================*/
#news-detail #up_ymd {
  font-size: 14px;
  letter-spacing: 0.1em;
  margin-bottom: 30px;
}
#news-detail #up_ymd::before {
  font-family: "Font Awesome 6 Free";
  content: "\f017";
  font-weight: bold;
  padding-right: 0.5em;
}
#news-detail #detail {
  padding: 20px;
}
@media (max-width: 450px) {
  #news-detail #detail {
    padding: 20px 10px;
    font-size: 0.8rem;
  }
}
#news-detail .detailUpfile {
  margin: 5px 0 35px;
  text-align: center;
}
#news-detail .detailUpfile img {
  max-width: 100%;
  height: auto;
  margin-top: 30px;
}
#news-detail .backORcloseBtn a {
  margin-top: 60px;
}

/*===news-detail(詳細ページ)用==============================*/
.news-detail .flex {
  display: flex;
  justify-content: space-between;
}
.news-detail .flex #main {
  width: calc(100% - 300px);
}
.news-detail .flex #side {
  width: 270px;
  padding: 0;
}

/*main*/
.news-detail .flex #main #up_ymd {
  letter-spacing: 0.05em;
  color: #333;
  margin-right: 0.8em;
  line-height: 1.7;
  margin-bottom: 20px;
  font-weight: 500;
  margin-top: 10px;
}
.news-detail .flex #main #up_ymd::before {
  font-family: "Font Awesome 6 Free";
  content: "\f017";
  font-weight: 800;
  padding-right: 0.5em;
  font-size: 0.8em;
}

.news-detail .pages {
  display: flex;
  justify-content: space-around;
  margin-top: 40px;
}
.news-detail .pages > div {
  width: 45%;
}
.news-detail .pages .page_next {
}
.news-detail .pages .page_prev {
}
.news-detail .pages a {
  background: var(--main_color);
  color: #fff;
  /*	border-radius: 10px;*/
  display: block;
  width: 100%;
  border: 1px solid var(--main_color);
  font-size: 0.9rem;
  padding: 15px;
  transition: 0.4s;
}
.news-detail .pages .page_prev a {
  text-align: right;
}
.news-detail .pages a:hover {
  opacity: 0.5;
}

/*side*/
.news-detail .flex #side h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.news-detail .flex #side h3::before {
  font-family: "Font Awesome 6 Free";
  content: "\f0ca";
  font-weight: 800;
  padding-right: 0.5em;
  color: var(--main_color);
}
.news-detail .flex #side ul {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0;
}
.news-detail .flex #side ul li {
  width: 49%;
  margin-bottom: 7px;
}
.news-detail .flex #side ul li a {
  display: block;
  text-align: center;
  width: 100%;
  border: 1px solid var(--main_color);
  color: var(--main_color);
  padding: 8px 3px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  transition: 0.4s;
  font-weight: 800;
  /*	border-radius: 10px;*/
}
.news-detail .flex #side ul li a:hover {
  opacity: 0.5;
}

/*-------WordPress投稿ページデザイン---------*/
.single_article {
  padding: 200px 0;
}

.article {
  max-width: 800px;
  margin: 0 auto;
}

.article_title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
  line-height: 1.5;
  font-weight: 700;
  position: relative;
  padding: 1rem 0.5rem;
}
.article_title::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  content: "";
  border-radius: 3px;
  background-image: -webkit-gradient(
    linear,
    right top,
    left top,
    from(#2af598),
    to(#009efd)
  );
  background-image: -webkit-linear-gradient(right, #2af598 0%, #009efd 100%);
  background-image: linear-gradient(to left, #2af598 0%, #009efd 100%);
}

.article_meta {
  font-size: 13px;
  color: #666;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 日付 */
.article_meta time {
  background: #f5f5f5;
  padding: 4px 10px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* カテゴリ */
.article_cat {
  color: #fff;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.article_content {
  line-height: 1.8;
  font-size: 16px;
}

.article_content p {
  margin-bottom: 20px;
}

.article_nav {
  margin-top: 50px;
  display: flex;
  justify-content: space-between;
}

/*-------single.php--------*/
.wp-block-separator {
  margin: 40px auto;
  border-width: 1px 0 0 0;
  border-style: dashed;
  border-color: #333;
  opacity: 0.4;
}
/*---ブログ 見出し-------------------------*/

.post_content h2 {
  margin-bottom: 24px;
}
.post_content h3 {
  margin-bottom: 12px;
}
/*---ブログ H2-------------------------*/

.article_content h2.wp-block-heading {
  position: relative;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.4;
  padding-bottom: 16px;
  margin-top: 80px;
  margin-bottom: 40px;
}

/* 線 */

.article_content h2.wp-block-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 3px;
  background: #27b283;
  border-radius: 999px;
}

/*---ブログ テキスト-------------------------*/

.post_content p {
  line-height: 2;
  margin-bottom: 24px;
}

@media (max-width: 960px) {
  .news-detail .pages {
    display: block;
    margin-top: 40px;
  }
  .news-detail .pages > div {
    width: 100%;
  }
  .news-detail .pages .page_next {
    margin-bottom: 7px;
  }
}
@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#newsList {
  display: block;
  /*	flex-wrap: wrap;*/
}
.news-detail .flex #main ul#newsList li {
  list-style-type: none;
  width: 100%;
  display: inline-block;
  margin: 0 1.5% 30px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #ddd;
}

@media (max-width: 960px) {
  .news-detail .flex #main ul#newsList {
    justify-content: space-between;
  }
  .news-detail .flex #main ul#newsList li {
    /*		width: 49%;*/
    margin: 0 0 30px;
  }
  .news-detail .flex #main ul#newsList li:last-child {
    margin-bottom: 0 !important;
  }
}
@media (max-width: 750px) {
  .news-detail .flex #main ul#newsList {
    display: block;
  }
  .news-detail .flex #main ul#newsList li {
    margin: 0 auto 30px;
    width: 90%;
  }
  .news-detail .flex #main ul#newsList li a .new_title {
    font-size: 1rem;
  }
}
