#mymoods-journal-article {
  overflow-x: hidden;
  margin-bottom: 120px;

  @media screen and (max-width: 768px) {
    margin-bottom: 60px;
  }
}

.journal-article__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;

  .mymoods-section-header-wrapper {
    width: 420px;

    @media screen and (max-width: 768px) {
      width: 260px;
    }

    .mymoods-journal-logo {
      display: block;
      width: 100%;
    }
  }

  .journal-article__head--more {
    .journal-article__head--more-link {
      font-family: var(--mymoods-font-poppins), sans-serif;
      font-weight: var(--mymoods-font-weight-extrabold);
      font-size: 20px;
      text-decoration: none;
      color: var(--mymoods-blue);
    }
  }
}

.journal-article-tiles-wrapper {
  overflow: visible;

  .journal-article-tiles {
    overflow: visible;
    padding-bottom: 32px;

    @container (max-width: 768px) {
      padding-bottom: 20px;
    }

    .journal-article-tile {
      position: relative;
      border-radius: 10px;
      overflow: hidden;
      transition: .5s;

      &:hover {
        cursor: pointer;
        box-shadow: 0 3px 18px #00000050;
      }

      .journal-article-tile__link {
        display: block;
        width: 0;
        height: 0;
        overflow: hidden;

        &::after {
          content: '';
          background-color: transparent;
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          z-index: 1;
        }
      }

      .journal-article-tile__image-wrapper {
        aspect-ratio: 660 / 474;
        width: 100%;

        .journal-article-tile__image {
          display: block;
          object-fit: cover;
          width: 100%;
          height: 100%;
        }
      }

      .journal-article-tile__contents {
        padding: 16px 24px;
        background-color: white;

        @media screen and (max-width: 768px) {
          padding: 16px;
        }

        @media screen and (max-width: 480px) {
          padding: 10px;
        }

        .journal-article-tile__title {
          margin-bottom: 12px;
          font-family: var(--mymoods-font-poppins), sans-serif;
          font-weight: var(--mymoods-font-weight-extrabold);
          font-size: 18px;
          color: black;
          line-height: 1.4;
          overflow: hidden;
          display: -webkit-box;
          text-overflow: ellipsis;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 2;
          /* ブラウザがサポートしていない場合のフェールセーフ */
          max-height: 51px;
          min-height: 51px;

          @media screen and (max-width: 768px) {
            margin-bottom: 8px;
            font-size: 16px;
            max-height: 48px;
            min-height: 40px;
          }

          @media screen and (max-width: 480px) {
            font-size: 14px;
            max-height: 42px;
            min-height: 36px;
          }
        }

        .journal-article-tile__excerpt > p {
          margin: 0;
          font-family: var(--mymoods-font-notosansjp), sans-serif;
          font-weight: var(--mymoods-font-weight-bold);
          font-size: 14px;
          color: black;
          line-height: 1.5;
          overflow: hidden;
          display: -webkit-box;
          text-overflow: ellipsis;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 3;
          /* ブラウザがサポートしていない場合のフェールセーフ */
          max-height: 63px;
          min-height: 63px;

          @media screen and (max-width: 768px) {
            font-size: 12px;
            -webkit-line-clamp: 4;
            color: #666666;
            max-height: 84px;
          }
        }
      }
    }
  }
}