@charset "UTF-8";

/* MVコンテナ（基準） */
.main_visual {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: flex-end; /* 下寄せ */
  flex-direction: column;
  align-items: center; /* 中央寄せ */
}

/* 画像の設定 */
.mv_image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/*ボタン設定*/
.detail_btn {
  position: absolute;
  max-width: 150px;
  width: auto;
  bottom: 3%; /* 下からの余白を調整 */
  z-index: 2;
}
.detail_btn_link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-block: min(2.27vw, 10px);
  padding-inline: min(11.363636363636363vw, 50px);
  font-size: min(5.454545454545454vw, 24px);
  font-style: normal;
  font-weight: bold;
  letter-spacing: 10%;
  border-radius: min(0.78vw, 6px);
  transition: all 0.3s ease;
  background-color: var(--btn-color);
  color: var(--white--);
}

@media screen and (min-width: 301px) {
  /*ボタン設定*/
  .detail_btn {
    max-width: 230px;
  }
}

@media screen and (min-width: 1023px) {
  /* MVコンテナ（基準） */
  .main_visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1440 / 720; /* PC比率 */
    overflow: hidden;
  }

  /* 画像の設定 */
  .mv_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /*ボタン設定*/
  .detail_btn {
    position: absolute; /* absoluteを外す */
    bottom: 7%; /* bottomからの余白を調整 */
    left: 9%; /* 左右中央寄せ */
    transform: unset; /* 左右中央寄せ */
    width: auto;
    max-width: min(21.94vw, 316px) !important;
    z-index: 2;
  }
  .detail_btn_link {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-block: min(1.11vw, 16px);
    padding-inline: min(3.47vw, 50px);
    font-size: min(1.66vw, 24px);
    font-style: normal;
    font-weight: bold;
    letter-spacing: 10%;
    border-radius: min(0.78vw, 6px);
    transition: all 0.3s ease;
    background-color: var(--btn-color);
    color: var(--white--);
  }
  .detail_btn:hover {
    opacity: 0.8;
  }
  /* ホバー時の演出（例：背景色を少し暗く） */
  .detail_btn_link:hover {
    background-color: #f0f0f0;
  }
}
