@charset "utf-8";

.news__wrapper {
    padding: 60px 11.11% 60px 0;
}
.news__wrapper h2{
    padding: 0 40px;
    font-family: Montserrat;
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1;
    letter-spacing: 2px;
}

.news__list {
    margin-top: 30px;
    max-width: 900px;
}

.news__item {
    padding: 40px 2.8vw;
    display: flex;
    gap: 6.95vw;
    border-top: 1px solid var(--primary-gray, #b6b6b6);
}

.news__img {
    max-width: 300px;
    width: 50%;
}
.news__img img{
    aspect-ratio: 4/3;
    object-fit: cover;
}

.news__contents {
    max-width: 400px;
    width: 50%;
}

.news__title {
    font-family: "Noto Sans JP";
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 2px;
}

time {
    display: block;
    color: var(--primary-gray, #b6b6b6);
    font-family: Montserrat;
    font-size: 1.2rem;
    font-style: normal;
    font-weight: 300;
    line-height: 1;
    letter-spacing: 2px;
    margin-top: 10px;
}

.news__txt {
    font-family: "Noto Sans JP";
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 2;
    letter-spacing: 2px;
    margin-top: 20px;
}

.view {
    padding: 10px 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin-top: 20px;
  }
  
  .view a {
    display: flex;
    gap: 10px;
    align-items: baseline;
  }
  
  .view p {
    font-family: Montserrat;
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1;
    letter-spacing: 2px;
  }
  
  .arrow {
    position: relative;
    width: 100px;
    height: 8px;
    /* overflow: hidden; */
  }
  
  .arrow::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-bottom: 1px solid var(--primary-gray);
    border-right: 1px solid var(--primary-gray);
    transform: skew(45deg) scaleX(1);
    transform-origin: right; /* 初期は右起点で消す */
  }
  
  /* ホバーでアニメーション実行 */
  .view a:hover .arrow::before {
    animation: arrowVanishAndReveal 1s ease forwards;
  }
  
  /* アニメーションのキーフレーム */
  @keyframes arrowVanishAndReveal {
    0% {
      transform: skew(45deg) scaleX(1);
      transform-origin: right;
    }
    49.9% {
      transform: skew(45deg) scaleX(0);
      transform-origin: right;
    }
    50% {
      transform: skew(45deg) scaleX(0);
      transform-origin: left; /* ここで左起点に切り替え */
    }
    100% {
      transform: skew(45deg) scaleX(1);
      transform-origin: left;
    }
  }

/* 初期状態：非表示＆下から少し移動 */
.fadeUp {
  opacity: 0;
  transition: all 0.8s ease;
}

/* 表示状態：元の位置＆不透明に */
.fadeUp.active {
  opacity: 1;
}


@media screen and (max-width:910px) {
  .news__wrapper {
    padding: 60px 5.33% 0 5.33%;
    margin-top: 50px;
  }
  .news__wrapper h2{
        padding: 0;
        font-size: 2.2rem;
    }

    .news__item {
        padding: 40px 5vw;
        display: flex;
        flex-direction: column;
        gap: 6.95vw;
        border-top: 1px solid var(--primary-gray, #b6b6b6);
    }

    .news__img {
        max-width: 300px;
        width: 100%;
    }

    .news__contents {
        max-width: 500px;
        width: 100%;
    }

    .news__title {
        font-size: 2rem;
    }

    time {
        font-size: 1rem;
    }

    .news__txt {
        font-size: 1.2rem;
    }

    .view {
        padding: 10px 20px;
    }

    .view p {
        font-size: 1.4rem;
      }
}