@charset "UTF-8";

.main {
  /* =====================
    MV
  ===================== */
  .u-mv {
    background-image: url('../img/news/mv.png');

    @media (width <= 768px) {
      background-image: url('../img/news/mv_2x.png');
    }
  }
  /* =====================
    NEWS 一覧
  ===================== */
  .news {
    position: relative;
    padding-block-start: 84px;

    @media (width <= 768px) {
      padding-block-start: calc((100 / 390) * 46 * 1vw);
    }
  }

  /* =====================
    NEWS アコーディオン
  ===================== */
  .news-list {
    margin-block-start: 61px;

    @media (width <= 768px) {
      margin-block-start: calc((100 / 390) * 46 * 1vw);
    }
    & > li {
      border-top: 1px solid #dbdbdb;
      &:last-child {
        border-bottom: solid 1px #dbdbdb;
      }

      section {
        position: relative;
        cursor: pointer;
        padding-inline: 40px;
        padding-block: calc(43px + var(--leading-trim));

        @media (width <= 768px) {
          padding-inline: calc((100 / 390) * 16 * 1vw);
          padding-block: calc(calc((100 / 390) * 30 * 1vw) + var(--leading-trim)) calc(calc((100 / 390) * 30 * 1vw) + var(--leading-trim));
        }
        /* ==== タイトル ==== */
        .news-title {
          position: relative;
          display: block flex;
          gap: 42px;
          align-items: baseline;

          @media (width <= 768px) {
            display: block flow;
          }

          .date {
            position: relative;
            font-family: var(--yumin);
            font-weight: 600;
            color: #1b57af;
          }
          .title {
            position: relative;
            font-family: var(--yumin);
            font-weight: 600;

            @media (width <= 768px) {
              margin-block-start: calc((100 / 390) * 2 * 1vw);
            }
          }
        }
        /* ==== アコーディオンで現れるエリア ==== */
        .news-box {
          display: none;
          padding-block-start: 20px;

          @media (width <= 768px) {
            padding-block-start: calc((100 / 390) * 14 * 1vw);
          }
        }
        /* ==== 右の十字 ==== */
      }
    }
  }

  /* ==== 右の十字 ==== */
  .news-title {
    &:before,
    &:after {
      content: '';
      position: absolute;
      margin: auto;
      box-sizing: border-box;
      vertical-align: middle;
    }
    &:before {
      border-top: 2px solid #1b57af;
      width: 24px;
      height: 0;
      top: 0;
      bottom: 0;
      right: 0;
    }
    &:after {
      border-left: 2px solid #1b57af;
      width: 0;
      height: 24px;
      top: 0;
      bottom: 0;
      right: 11px;
      transition: 0.3s;
    }

    @media (width <= 768px) {
      &:before {
        border-top: calc((100 / 390) * 2 * 1vw) solid #1b57af;
        width: calc((100 / 390) * 24 * 1vw);
      }
      &:after {
        border-left: calc((100 / 390) * 2 * 1vw) solid #1b57af;
        height: calc((100 / 390) * 24 * 1vw);
        right: calc((100 / 390) * 11 * 1vw);
      }
    }
  }
  /*　closeというクラスがついたら形状変化　*/
  section.close .news-title:after {
    height: 0;
  }
  @media (width <= 768px) {
    section.close .news-title .date:after {
      height: 0;
    }
  }
}
