@charset "utf-8";

.newsSingle__wrapper {
    padding: 60px 11.11% 60px 5.5%;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
}

.newsSingle__container {
  max-width: 720px;
}
.newsSingle__titleBox h2{
    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: 15px;
}

.newsSingle__img {
    margin-top: 40px;
}

.eyecatch-img {
  display: block;
  height: auto;
}

/* 初期非表示＆ふわっとアニメーション用 */
.eyecatch-img,
.back {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.eyecatch-img.is-ready,
.back.is-ready {
  visibility: visible;
}

/* 縦長画像にだけ適用 */
.eyecatch-img.is-portrait {
  max-width: 400px;
  height: auto;
}

/* 横長画像 */
.eyecatch-img.is-landscape {
  width: 100%;
}

/* 表示開始（ふわっと上がる） */
.eyecatch-img.is-visible,
.back.is-visible {
  opacity: 1;
}

.newsSingle__textBox {
  margin-top: 60px;
}

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

.back {
    padding: 10px 0;
    display: flex;
    margin-top: 60px;
  }
  
  .back a {
    display: flex;
    gap: 10px;
    align-items: baseline;
  }
  
  .back 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-left: 1px solid var(--primary-gray);
    transform: skew(-45deg) scaleX(1);
    transform-origin: left; /* 初期は左起点で消す */
  }
  
  /* ホバーでアニメーション実行 */
  .back a:hover .arrow::before {
    animation: arrowVanishAndReveal 1s ease forwards;
  }
  
  /* アニメーションのキーフレーム */
  @keyframes arrowVanishAndReveal {
    0% {
      transform: skew(-45deg) scaleX(1);
      transform-origin: left;
    }
    49.9% {
      transform: skew(-45deg) scaleX(0);
      transform-origin: left;
    }
    50% {
      transform: skew(-45deg) scaleX(0);
      transform-origin: right; /* ここで右起点に切り替え */
    }
    100% {
      transform: skew(-45deg) scaleX(1);
      transform-origin: right;
    }
  }


@media screen and (max-width:910px) {
  .newsSingle__wrapper {
    padding: 60px 5.33% 0 5.33%;
    margin-top: 50px;
    align-items: center;
  }

  .newsSingle__container {
    max-width: 500px;
  }
  .newsSingle__titleBox h2{
        padding: 0;
        font-size: 1.8rem;
    }

    /* .newsSingle__img {
        max-width: 500px;
    }

    .news__contents {
        max-width: 500px;
    } */

    time {
        font-size: 1rem;
        margin-top: 10px;
    }

    .newsSingle__img {
      margin-top: 30px;
    }

    .eyecatch-img{
      margin: 0 auto;
    }
    /* 縦長画像 */
    .eyecatch-img.is-portrait {
      width: 70%;
    }

    .newsSingle__textBox {
      margin-top: 40px;
    }

    .news__txt,
    .newsSingle__textBox p {
        font-size: 1.2rem;
        margin-top: 20px;
    }

    .back {
        padding: 10px 5px;
        margin-top: 40px;
    }

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