@charset "utf-8";

/*
  File Name   : topics.css
  Description : TOPICSページ
*/


/* inview
============================================================ */
.inview-slide {
  position: relative;
  transform: translate3d(0, 0, 0);
  -webkit-transition: all 1s ease-out;
  transition: all 1s ease-out;
  transform: translateY(50px);
  opacity: 0;
}
.oninview.inview-slide {
  transform: translateY(0);
  opacity: 1;
}

/* article-header
============================================================ */
.article-header-01 {
  background-image: url(/assets/img/topics/bg-ttl-01.jpg);
}

/* index
============================================================ */
/* topics-list */
.topics-list {
  position: relative;
  padding: 1px 0;
  z-index: 0;
}
.topics-list:before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100%;
  background: #f5f5f5;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  z-index: -1;
}
.topics-list__item {
  position: relative;
  width: 33.33%;
  border: 1px solid #f5f5f5;
  background: #fff;
  opacity: 0;
}
.topics-list__item a {
  display: block;
  padding: 29px;
}
.topics-list__figure {
  position: relative;
  width: 100%;
  padding-top: 80%;
  margin-bottom: 1em;
}
.topics-list__figure div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: no-repeat center center;
  background-size: cover;
}
.topics-list__txt {
  height: 3em;
  line-height: 1.5;
  font-size: 16px;
  font-weight: bold;
  overflow : hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.topics-list__date {
  position: absolute;
  top: -2px;
  left: 0;
  width: 60px;
  height: 60px;
  padding: 1em 0 0 .6em;
  line-height: 1.2;
  font-size: 12px;
  color: #fff;
  background: #5c8c4b;
}
.topics-list__date strong {
  display: block;
  font-size: 133%;
}
.topics-list__btn-more {
  max-width: 960px;
  margin: 60px auto 0;
}

/* pagination */
.mod-pagination {
  margin-top: 60px;
}

@media screen and (max-width: 767px) {
  /* topics */
  .topics-list {
    padding: 0;
  }
  .topics-list:after {
    content: none;
  }
  .topics-list__item {
    display: block !important;
    width: auto;
    max-width: 100%;
    border: none;
    border-bottom: .1em solid #f5f5f5;
  }
  .topics-list__item:nth-child(5) ~ .topics__item {
    display: none !important;
  }
  .topics-list__item a {
    padding: 3.125vw 0;
    text-decoration: none;
  }
  .topics-list__figure {
    float: left;
    width: 18.75vw;
    padding-top: 15vw;
    margin: 0 3.125vw 0 0;
  }
  .topics-list__txt {
    font-size: 100%;
  }
  .topics-list__date {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin-bottom: .5em;
    font-size: 90%;
    color: #5c8c4b;
    background: none;
  }
  .topics-list__date strong {
    display: inline-block;
    font-size: 122%;
  }
  .topics-list__btn-more {
    margin: 6.25vw 0 0;
  }

  /* pagination */
  .mod-pagination {
    margin-top: 6.25vw;
  }
}


/* detail
============================================================ */
.topics-detail-header {
  border-bottom: 1px solid #e5e5e5;
}
.topics-detail__date {
  line-height: 1;
  font-size: 16px;
  font-weight: bold;
  color: #5c8c4b;
}
.topics-detail__ttl {
  margin: .75em 0;
  font-size: 20px;
  font-weight: bold;
}
.topics-detail-inner {
  padding-top: 40px;
  font-size: 13px;
}
.topics-detail__figure {
  text-align: center;
  margin-bottom: 40px;
}
.topics-detail-inner p {
  margin-bottom: 40px;
}

.btn-back .mod-arrow-01 {
  margin-right: .5em;
  -webkit-transform: scale(-1, 1);
  transform: scale(-1, 1);
}

@media screen and (max-width: 767px) {
  .topics-detail__date {
    font-size: 100%;
  }
  .topics-detail__ttl {
    font-size: 120%;
  }
  .topics-detail-inner {
    padding-top: 1.5em;
    font-size: 100%;
  }
  .topics-detail__figure {
    margin-bottom: 1.5em;
  }
  .topics-detail-inner p {
    margin-bottom: 1.5em;
  }
}
