@charset "utf-8";

.news .inner{
    max-width: 1200px;
    margin: 93px auto 0;
}

.news h2{
    font-size: 34px;
    font-weight: 700;
}

.news .tab-menu {
  display: flex;
  justify-content: center;
  gap: 16px;
  list-style: none;
  margin: 87px auto 61px;
  padding: 0;
}

.tab-item{
    font-size: 16px;
    font-weight: 700;
    background-color: #e3f8e7;
    max-width: 200px;
    width: 100%;
    height: 40px;
}

.tab-item a {
  display: block;
  color: #008549;
  max-width: 200px;
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;

}

.tab-item.active{
    background-color: #008549;
}

.tab-item.active a {
    color: #fff;
}
.news-list {
  display: block;
  margin-inline: auto;
  list-style: none;
  padding: 0;
}
.news-item {
  padding-bottom: 24px;
  border-bottom: 1px solid #ccc;
  margin-bottom: 24px;
}

.meta{
    display: flex;
    align-items: center;
    gap: 14px;
    width: auto;
}

.meta .date{
  font-size: 14px;
  color: #5b5b5b;
  min-width: 100px;
  word-break: keep-all;
}

.meta .cate{
  font-size: 14px;
  font-weight: 700;
  max-width: 100px;
  width: 100%;
  height: 24px;
  background-color: #008549;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.news .news-item a{
  display: block;
  width: fit-content;
}

.news .news-item h3{
  margin-top: 10px;
  color: #0080c0;
  font-size: 16px;
  text-align: left;
  width: fit-content;
}

.post_none{
  font-size: 16px;
}

@media screen and (max-width: 1255px) {
    .news .inner{
        margin-inline: 20px;
    }
}

@media screen and (max-width: 786px){
  .news h2{
    font-size: 22px;
  }

  .news .tab-menu{
    margin-top: 60px;
    gap: 10px;
  }
  .tab-item{
    font-size: 14px;
  }

  .news-item{
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .meta .date{
    font-size: 12px;
  }

  .meta .cate{
    font-size: 12px;
  }

  .news .news-item h3{
    font-size: 14px;
  }
}

@media screen and (max-width: 480px){
  .news .tab-menu{
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .tab-item{
        font-size: 14px;
        max-width: calc((100% - 10px) / 2);
  }

  .tab-item a {
    max-width: 100%;
  }
}


/* ------------------------------------------------------------------------ */

/* single.php 詳細ページ

/* ------------------------------------------------------------------------ */

.news-detail .inner{
  max-width: 1200px;
  width: 100%;
  margin: 91px auto 0;
}

.news-detail h1{
  font-size: 34px;
  text-align: left;
}

.news-detail .meta{
 margin-top: 22px;
}

.news-detail .content{
  font-size: 16px;
  text-align: left;
  margin-top: 96px;
}

.news-detail .content h2{
  position: relative;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  text-align: left;
  margin-top: 55px;
  margin-left: 20px;
}

.news-detail .content h2::before {
    position: absolute;
    content: "";
    display: inline-block;
    width: 8px;
    height: 20px;
    background-color: #008549;
    left: -20px;
    top: 0;
    bottom: 0;
    margin-block: 0;
}

.news-detail .content p{
  margin-top: 33px;
}

.news-detail .content table{
   width: 100%;
   margin-top: 33px;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid #ccc;
  font-size: 16px;

}

.news-detail .content table tbody th{
  background-color: #e3f8e7;
  text-align: left;
  padding: 15px;
  max-width: 160px;
  width: 160px;
  border: 1px solid #ccc;
  font-weight: 700;
}

.news-detail .content table tbody td {
  max-width: calc(1200px - 160px);
  padding: 16px 24px;
  border: 1px solid #ccc;
  text-align: left;
  font-weight: 500;
}


.news-detail .single-contact{
  margin-top: 100px;
}

.news-detail .single-contact .contact{
  max-width: 800px;
  width: 100%;
  margin-top: 0;
  margin-inline: auto;
  border: 2px solid #008549;
}

.news-detail .single-contact h2{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 72px;
  font-size: 24px;
  color: #fff;
  background-color: #008549;
}

.news-detail .single-contact .contact .detail{
  padding: 40px 0;
}

.news-detail .single-contact .contact .detail h3{
  font-size: 20px;
}

.news-detail .single-contact .contact .detail p{
  margin-top: 24px;
  font-size: 18px;
}
.news-detail .single-contact .contact .detail p + p{
  margin-top: 0;
}


@media screen and (max-width: 1250px){
  .news-detail .inner{
    padding-inline: 25px;
  }
}

@media screen and (max-width: 786px) {
  .news-detail h1{
    font-size: 22px;
  }

  .news-detail .content p{
    font-size: 14px;
  }

  .news-detail .content h2{
    font-size: 18px;
  }
  .news-detail .content table{
    font-size: 14px;
  }

  .news-detail .single-contact{
    margin-top: 60px;
  }

  .news-detail .single-contact h2{
    font-size: 20px;
    height: 50px;
  }

  .news-detail .single-contact .contact .detail{
    padding: 30px 0 15px;
  }

  .news-detail .single-contact .contact .detail h3{
    font-size: 18px;
  }

  .news-detail .single-contact .contact .detail p{
    font-size: 16px;
    margin-top: 15px;
  }

  .single-bottom{
    margin-top: 60px;
    margin-bottom: 100px;
    padding-top: 40px;

  }
}

@media screen and (max-width: 500px){
  .news-detail .meta{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .news-detail .content{
    font-size: 14px;
    margin-top: 40px;
  }

  .news-detail .content h2{
    margin-top: 30px;
  }

  .news-detail .content table{
    margin-top: 20px;
  }

  .news-detail .content p{
    margin-top: 15px;
  }

  .news-detail .single-contact{
    margin-top: 40px;
  }

  .news-detail .single-contact h2{
    font-size: 18px;
    height: 40px;
  }

  .news-detail .content h2::before{
    width: 6px;
    height: 16px;
    left: -16px;
  }

  .news-detail .single-contact .contact .detail{
    padding: 20px 0 10px;
  }

  .news-detail .single-contact .contact .detail p{
    margin-top: 10px;
  }

  .news-detail .content table tbody th{
    padding: 10px;
  }

  .news-detail .content table tbody td{
    padding: 10px;
  }

  .single-bottom{
    margin-top: 40px;
    margin-bottom: 50px;
    padding-top: 30px;
  }

  .single-bottom .btn-back{
    font-size: 16px;
    max-width: 300px;
    height: 40px;
  }
}