/*
Theme Name: zousanrecordsSWEET child
Description: WordPressテーマ「zousanrecords SWEET」の子テーマです。
Template: zousanrecordssweet
Author: Hiroshi Ota
Author URI: https://wp.zousanrecords.com/
Version: 1.0.0.0
*/

/* top_topics_box */

.top_topics_box .list_cont {
  margin-bottom: 2em;
}

.top_topics_box .list_cont a {
  text-decoration: none;
}

.top_topics_box .list_cont a:hover {
  color: inherit;
}

.top_topics_box .list_cont a .topics_pic {
  position: relative;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border: 1px solid #eee;
  border-radius: 8px;
}

.top_topics_box .list_cont a .topics_pic p.object_fit {
  margin-bottom: 0;
}

.top_topics_box .list_cont a img {
  transition: 0.5s;
}

.top_topics_box .list_cont a:hover img {
  transform: scale(1.1);
  opacity: 0.8;
  transition: 0.5s;
}

.top_topics_box .list_cont .topics_caption {
  color: var(--main_color);
}

.top_topics_box .list_cont .topics_caption p.date {
  margin-bottom: 1em;
  text-align: center;
}

.top_topics_box .list_cont .topics_caption p.date time,
.top_topics_box .list_cont .topics_caption p.date span {
  font-size: 1.2rem;
}

.top_topics_box .list_cont .topics_caption p.date span {
  margin-left: 5px;
}

.top_topics_box .list_cont .topics_title {
  font-family: YakuHanJP, 'Noto Sans JP', sans-serif;
  text-align: center;
}

@media screen and (max-width: 599px) {
  .top_topics_box .list_cont {
    margin-bottom: 0.5em;
  }

  .top_topics_box .list_cont .topics_cont {
    display: flex;
    justify-content: space-between;
  }

  .top_topics_box .list_cont .topics_cont .topics_pic {
    flex-basis: 40%;
  }

  .top_topics_box .list_cont .topics_cont .topics_caption {
    flex-basis: 56%;
  }

  .top_topics_box .list_cont .date {
    text-align: left !important;
  }

  .top_topics_box .list_cont .topics_title {
    line-height: 1.4em;
    text-align: left !important;
  }
}

@media screen and (min-width: 600px) {
  .top_topics_box .topics_ul {
    margin-top: 100px;
  }
  .top_topics_box .list_cont:nth-child(even) {
    margin-top: 40px;
  }
  .top_topics_box .list_cont:nth-child(odd) {
    margin-top: -40px;
  }
  .top_topics_box .list_cont .topics_title {
    font-size: 1.6rem;
  }
}
