@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: 91px;
    padding-block-end: 128px;

    @media (width <= 768px) {
      padding-block-start: calc((100 / 390) * 62 * 1vw);
      padding-block-end: calc((100 / 390) * 80 * 1vw);
    }
  }

  /* =====================
    NEWS アコーディオン
  ===================== */
  .news-list {
    margin-block-start: 61px;

    @media (width <= 768px) {
      margin-block-start: calc((100 / 390) * 42 * 1vw);
    }
    & > li {
      border-top: 1px solid #b8b8b8;
      &:last-child {
        border-bottom: solid 1px #b8b8b8;
      }

      section {
        position: relative;
        cursor: pointer;
        padding-inline: 40px;
        padding-block: 50px;

        @media (width <= 768px) {
          padding-inline: calc((100 / 390) * 16 * 1vw);
          padding-block: calc((100 / 390) * 26 * 1vw) calc((100 / 390) * 23 * 1vw);
        }
        /* ==== タイトル ==== */
        .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: var(--primary);
          }
          .title {
            position: relative;
            font-family: var(--yumin);
            font-weight: 600;

            @media (width <= 768px) {
              margin-block-start: calc((100 / 390) * 4 * 1vw);
            }
          }
        }
        /* ==== アコーディオンで現れるエリア ==== */
        .news-box {
          display: none;
          padding-block-start: 30px;
          & > p {
            line-height: 1.8;
          }

          @media (width <= 768px) {
            padding-block-start: calc((100 / 390) * 16 * 1vw);
            & > p {
              line-height: 2;
            }
          }
        }
        /* ==== 右の十字 ==== */
      }
    }
  }

  /* ==== 右の十字 ==== */
  .news-title {
    &:before,
    &:after {
      content: '';
      position: absolute;
      margin: auto;
      box-sizing: border-box;
      vertical-align: middle;
    }
    &:before {
      border-top: 2px solid var(--primary);
      width: 24px;
      height: 0;
      top: 0;
      bottom: 0;
      right: 0;
    }
    &:after {
      border-left: 2px solid var(--primary);
      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 var(--primary);
        width: calc((100 / 390) * 24 * 1vw);
        right: calc((100 / 390) * 16 * 1vw);
      }
      &:after {
        border-left: calc((100 / 390) * 2 * 1vw) solid var(--primary);
        height: calc((100 / 390) * 24 * 1vw);
        right: calc((100 / 390) * 27 * 1vw);
      }
    }
  }
  /*　closeというクラスがついたら形状変化　*/
  section.close .news-title:after {
    height: 0;
  }
  @media (width <= 768px) {
    section.close .news-title .date:after {
      height: 0;
    }
  }
}
