/* page-top.css - Topページ固有のスタイル */

/* ----- contents_top ----- */
.contents_top {
  margin: 0 20px 20px;
}

.contents_top ul {
  display: flex;
  margin: 20px;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.contents_top ul li a,
.contents_top li figure,
.contents_top li dl {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.contents_top ul li a {
  position: relative;
  overflow: hidden;
  border: 2px dotted #eef1ee;
  border-radius: 8px;
  background-color: #539664;
  height: 130px;
}

.contents_top li dl {
  flex-direction: column-reverse;
  align-items: center;
}

.contents_top li dl dt {
  font-size: 18px;
  line-height: 1.2;
}

.contents_top li dl dd {
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}

.contents_top li small {
  font-size: 15px;
}

.contents_top li h3 {
  margin: 0 20px 5px;
  border-bottom: 1px dotted #ccc;
}

.contents_top li p {
  margin: 0 20px;
  font-size: 14px;
  line-height: 1.2;
}

.contents_top li a:hover {
  border-color: transparent;
  background-color: transparent;
}

/* nenga */
.contents_top .nenga li a {
  padding: 10px;
}

.contents_top .nenga li dl,
.contents_top .nenga li div {
  width: 300px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.contents_top .nenga li dl {
  width: 280px;
  margin-left: 20px;
}

.contents_top .nenga li a:hover div,
.contents_top .nenga li a:not(:hover) dl {
  display: none;
}

/* sns */
.contents_top .sns li {
  background-color: #539664;
  margin-bottom: 30px;
}

.contents_top .sns a {
  flex-direction: column;
  width: 160px;
  height: 80px;
  padding-top: 50px;
  background: url("/img/icon/facebook_wt.png") 50% 15% no-repeat;
  background-size: 40px 40px;
  opacity: 0.8;
}

.contents_top .sns li:nth-child(1) a:hover {
  background: url("/img/icon/facebook_gn.png") 50% 15% no-repeat;
  background-size: 40px 40px;
}

.contents_top .sns li:nth-child(2) a {
  background: url("/img/icon/instagram_wt.png") 50% 15% no-repeat;
  background-size: 40px 40px;
}

.contents_top .sns li:nth-child(2) a:hover {
  background: url("/img/icon/instagram_gn.png") 50% 15% no-repeat;
  background-size: 40px 40px;
}

.contents_top .sns li:nth-child(3) a {
  background: url("/img/icon/blogger_wt.png") 50% 15% no-repeat;
  background-size: 40px 40px;
}

.contents_top .sns li:nth-child(3) a:hover {
  background: url("/img/icon/blogger_gn.png") 50% 10% no-repeat;
  background-size: 40px 40px;
}

.contents_top .sns a figure {
  opacity: 0.8;
}

.contents_top .sns a:not(:hover) figure,
.contents_top .sns a:not(:hover) p,
.contents_top .sns a:hover dl {
  display: none;
}

.contents_top .sns li:hover {
  background-color: transparent;
}

.bd-ggf {
  border-color: #229655;
}

/* ----- レスポンシブ（top） ----- */
@media screen and (max-width: 768px) {
  .contents_top {
    margin: 0 10px;
  }

  .contents_top ul {
    margin: 20px 0;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0;
  }

  .contents_top .nenga li a {
    flex-direction: column;
    padding: 0;
    height: auto;
  }

  .contents_top .nenga li figure img,
  .contents_top .nenga li div {
    width: 100%;
  }

  .contents_top .nenga li div h3 {
    margin: 10px 0 0 10px;
    padding-bottom: 5px;
  }

  .contents_top .nenga li div p {
    margin: 5px 0 10px 10px;
  }

  .contents_top .sns a {
    width: calc((100vw - 60px) / 3);
  }

  .contents_top .sns li dl {
    margin: 0;
  }
}
