/*
  /rakurakucloud/denshihozon/asset/css/page/m-news.css
  newsページ用CSS
*/

.m-news-article {
  h2 {
    background-color: var(--gray-bg-02);
    font-size: 20px;
    font-weight: 700;
    border-left: 5px solid var(--rdenshihozon-primary);
    line-height: 1.4;
    padding: 22px 15px 17px 20px;
    margin: 40px 0 0;
    &:first-child {
      margin: 0;
    }
    @media screen and (max-width: 600px) {
      margin: 30px 0 0;
    }
  }
  h3 {
    font-size: 18px;
    font-weight: 700;
    border-bottom: 2px dashed var(--gray-bg-01);
    padding: 0 0 15px;
    margin: 40px 0 0;
    @media screen and (max-width: 600px) {
      padding: 0 0 15px;
      margin: 30px 0 0;
    }
  }
  p {
    font-size: 16px;
    line-height: 2;
    margin: 20px 0 0;
    @media screen and (max-width: 600px) {
      font-size: 14px;
    }
  }
}

.m-news-article__intro {
  border-bottom: 1px solid var(--gray-bg-01);
  font-size: 16px;
  padding: 0 0 20px;
  @media screen and (max-width: 840px) {
    font-size: 12px;
    padding: 0 0 10px;
  }
}

.m-news-article__image-wrap {
  margin: 40px auto;
  width: 80%;
  @media screen and (max-width: 840px) {
    width: 100%;
    margin: 20px auto;
  }
}
.m-news-article-list {
  margin: 40px 0 0;
  font-size: 16px;
  padding: 0 0 0 1.5em;
  @media screen and (max-width: 840px) {
    margin: 30px 0 0;
    font-size: 14px;
  }
  & li {
    list-style: disc;
    line-height: 1.4;
    & + li {
      margin-top: 7px;
    }
    &::marker {
      color: var(--rdenshihozon-primary);
    }
  }
}
.m-news-article-contact {
  width: 100%;
  background-color: var(--gray-bg-02);
  border-radius: 10px;
  padding: 25px 30px 30px;
  display: block;
  margin: 30px 0 0;
  @media screen and (max-width: 840px) {
    padding: 12px 15px 7px 15px;
  }
  h2 {
    margin: 0 0 20px;
    padding: 10px 10px 10px 0;
    border-left: 0;
    border-bottom: 1.5px solid var(--rdenshihozon-primary);
    color: var(--rdenshihozon-primary);
    font-size: 18px;
    &:nth-child(n + 2) {
      margin: 60px 0 0;
      @media screen and (max-width: 840px) {
        margin: 30px 0 0;
      }
    }
  }
  em {
    display: block;
    margin: 0 0 10px;
    font-weight: bold;
  }
  .m-news-article-contact__note {
    line-height: 1.4;
    font-size: 11px;
    margin: 60px 0 0;
    @media screen and (max-width: 840px) {
      margin: 30px 0 0;
    }
  }
  .m-news-article-contact__company {
    font-size: 14px;
    font-weight: bold;
  }
}
.m-news-article-contact__table {
  width: 100%;
  margin: 10px 0 0;
  td {
    vertical-align: top;
    @media screen and (max-width: 840px) {
      min-width: 70px;
    }
  }
}

/* コラムカード */
.m-news-card-item {
  background: var(--white);
  box-sizing: border-box;
  border: solid 1px var(--gray-bg-01);
  border-radius: 10px;
  transition: 0.2s ease-in-out;
  & + li {
    margin: 30px 0 0;
    @media screen and (max-width: 840px) {
      margin: 15px 0 0;
      overflow: hidden;
    }
  }
  &:hover {
    box-shadow:
      0 15px 30px -5px rgba(0, 0, 0, 0.15),
      0 0 5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
  }
}

.m-news-card-item__link {
  position: relative;
  padding: 20px;
  display: flex;
  &:hover {
    &::after {
      content: "";
      position: absolute;
      border: 3px solid var(--rdenshihozon-primary);
      border-radius: 10px;
      width: 100%;
      height: 100%;
      box-sizing: border-box;
      top: 0;
      left: 0;
    }
  }
  @media screen and (max-width: 840px) {
    padding: 10px;
    align-items: center;
  }
  .c-button {
    position: absolute;
    right: 20px;
    bottom: 20px;
  }
}

.m-news-card-item__image-box {
  width: 260px;
  height: 146px;
  border: 1px solid var(--gray-bg-01);
  overflow: hidden;
  position: relative;
  @media screen and (max-width: 840px) {
    max-width: 80px;
    height: 73px;
  }
}

.m-news-card-item__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.m-news-card-item__description {
  flex: 1;
  padding: 0 0 0 20px;
  @media screen and (max-width: 840px) {
    width: calc(100% - 100px);
    padding: 0 0 0 10px;
  }
}

.m-news-card-item-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--black);
  margin: 10px auto 0;
  @media screen and (max-width: 840px) {
    font-size: 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 5px 0 0;
  }
}

.m-news-card-item__date {
  position: relative;
  padding: 0 0 0 20px;

  color: var(--gray-05);
  letter-spacing: 0.05em;
  @media screen and (max-width: 840px) {
    font-size: 12px;
  }
  &::before {
    content: "";
    position: absolute;
    background-image: url(/rakurakucloud/denshihozon/asset/image/common/figure/figure-icon-time.svg);
    background-size: 100%;
    background-repeat: no-repeat;
    width: 15px;
    height: 15px;
    top: 1px;
    left: 0;
    @media screen and (max-width: 840px) {
      top: 0;
    }
  }
}
/* ページネーション */
.m-news-pager-list {
  display: flex;
  justify-content: center;
  margin: 40px 0 0;
}

.m-news-pager-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 25px;
  height: 30px;
  margin: 0 5px;
  background: var(--gray-bg-01);
  &.is-current {
    background: var(--rdenshihozon-primary);
    color: var(--white);
  }
  &.is-prev,
  &.is-next,
  &.is-prev:hover,
  &.is-next:hover,
  &.is-most-prev,
  &.is-most-next,
  &.is-most-prev:hover,
  &.is-most-next:hover {
    background: none;
  }
  &.is-prev.is-deactive .m-news-pager-arrow,
  &.is-next.is-deactive .m-news-pager-arrow,
  &.is-most-prev.is-deactive .m-news-pager-double-arrow,
  &.is-most-next.is-deactive .m-news-pager-double-arrow {
    display: none;
  }
  &.is-prev .m-news-pager-arrow,
  &.is-most-prev .m-news-pager-double-arrow {
    position: relative;
    display: block;
    margin: 0;
    width: 10px;
    height: 10px;
    border-top: 1px solid var(--rdenshihozon-primary);
    border-left: 1px solid var(--rdenshihozon-primary);
    transform: rotate(-45deg);
  }
  &.is-most-prev .m-news-pager-double-arrow {
    &::before {
      content: "";
      position: absolute;
      top: -4px;
      left: -15px;
      margin: 0 10px;
      width: 10px;
      height: 10px;
      border-top: 1px solid var(--rdenshihozon-primary);
      border-left: 1px solid var(--rdenshihozon-primary);
    }
  }
  &.is-next .m-news-pager-arrow {
    display: block;
    width: 10px;
    height: 10px;
    border-top: 1px solid var(--rdenshihozon-primary);
    border-right: 1px solid var(--rdenshihozon-primary);
    transform: rotate(45deg);
  }
  &.is-most-next .m-news-pager-double-arrow {
    position: relative;
    display: block;
    margin: 0;
    width: 10px;
    height: 10px;
    border-top: 1px solid var(--rdenshihozon-primary);
    border-left: 1px solid var(--rdenshihozon-primary);
    transform: rotate(135deg);
    &::before {
      content: "";
      position: absolute;
      top: 3px;
      right: -14px;
      margin: 0 10px;
      width: 10px;
      height: 10px;
      border-top: 1px solid var(--rdenshihozon-primary);
      border-left: 1px solid var(--rdenshihozon-primary);
    }
  }
  &.is-deactive {
    .m-news-pager-item__link {
      pointer-events: none;
    }
  }
}

.m-news-pager-item__link {
  color: var(--black);
  &:hover {
    opacity: 0.8;
  }
}
