.best-bg {
  position: relative;
  width: 100%;
  padding: 2rem 0 2rem;
}

.best-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #c20813;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

.best-title {
  width: 80%;
}

.best-btn-wrap {
  width: 100%;
  margin: 3rem 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.best-btn {
  width: 38%;
  margin: 0 2%;
}

.best-btn-off {
  width: 38%;
  margin: 0 2%;
}

.best-btn img {
  width: 100%;
  filter: drop-shadow(4px 4px 0 #fff);
  transition: all 0.2s;
}

/* =========================
   モーダル共通スタイル
   ========================= */

/* モーダル全体（オーバーレイ＋枠位置） */
.modal {
  position: fixed;
  inset: 0;
  /* top:0; right:0; bottom:0; left:0 の省略 */
  display: flex;
  /* 中央寄せ用に flex にしておく */
  align-items: center;
  justify-content: center;
  z-index: 9999;

  /* 最初は見えない状態 */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* 表示状態 */
.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* 背景の黒半透明オーバーレイ */
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* モーダル表示時に背景もふわっと */
.modal.is-open .modal__overlay {
  opacity: 1;
}

/* ウィンドウ本体（白い枠） */
.modal__content {
  position: relative;
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  background: #fff;
  padding: 3rem;
  box-sizing: border-box;
  overflow: hidden;

  /* ふわっと拡大しながら表示するための初期状態 */
  transform: scale(0.95);
  opacity: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

/* 表示時：スケールアップ＋フェードイン */
.modal.is-open .modal__content {
  transform: scale(1);
  opacity: 1;
}

/* 中身だけスクロールさせたい場合 */
.modal__inner {
  max-height: calc(80vh - 3rem);
  /* 上下padding分を少し引くイメージ */
  overflow-y: auto;
}

/* 閉じるボタン（右上の画像ボタン） */
.modal__close {
  position: fixed;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 999;
}

.modal__close img {
  display: block;
  width: 30px;
  /* サイズはお好みで */
  height: 30px;
}

/* モーダル表示中は背面のスクロールを止める（任意） */
body.is-modal-open {
  overflow: hidden;
}

.modal-bg {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-repeat: repeat;
  background-size: 100% auto;
  background-position: top;
}

.webp .modal-bg {
  background-image: url(../img/bg.webp);
}

.no-webp .modal-bg {
  background-image: url(../img/bg.jpg);
}

.best-title-2 {
  width: 65%;
  margin: 0 0 3rem;
}

.best-inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 0 0 1.5rem;
  padding: 0 0 1.5rem;
  border-bottom: #000 solid 1px;
}

.best-inner:last-child {
  margin: 0 0 3rem;
  padding: 0;
  border-bottom: none;
}

.best-text {
  position: relative;
  width: 45%;
  margin: 0 5% 0 0;
}

.best-text-t {
  width: auto;
  margin: 0 0 1rem;
  padding: 0.2em .5em;
  display: inline-block;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  background-color: #000;
}

.best-name {
  width: 100%;
  margin: 0 0 1.5rem;
  font-size: 60px;
  font-weight: 900;
  line-height: 1;
}

.best-text p {
  font-size: 14px;
  font-weight: 500;
}

.best-image {
  position: relative;
  width: 50%;
}

.best-image img {
  border: #000 solid 1px;
}

.best-image-text {
  position: absolute;
  bottom: 0;
  right: 0;
  width: auto;
  padding: 0 0.5em;
  display: inline-block;
  color: #fccf00;
  font-size: 16px;
  font-weight: 900;
  background-color: #000;
}


@media screen and (min-width: 1px) and (max-width: 743px) {
  .best-bg {
    padding: 1rem 0 1rem;
  }

  .best-title {
    width: 100%;
    margin: 0;
  }

  .best-btn-wrap {
    width: 90%;
    margin: 0 auto;
    flex-wrap: wrap;
  }

  .best-btn {
    width: 100%;
    margin: 1rem 0 0;
  }

  .best-btn-off {
    width: 100%;
    margin: 1rem 0 0;
  }

  .best-btn img {
    width: 100%;
    filter: drop-shadow(4px 4px 0 #fff);
    transition: all 0.2s;
  }

  .modal__content {
    width: 90% !important;
    max-height: 80vh;
    padding: 1.5rem;
  }

  .modal__close {
    top: 2px;
    right: 2px;
    z-index: 999;
  }

  .modal__close img {
    width: 20px;
    height: 20px;
  }

  .modal-bg {
    background-size: 100% auto;
  }

  .webp .modal-bg {
    background-image: url(../img/sp-bg.webp);
  }

  .no-webp .modal-bg {
    background-image: url(../img/sp-bg.jpg);
  }

  .best-title-2 {
    width: 90%;
    margin: 0 0 2rem;
  }

  .best-inner {
    flex-wrap: wrap;
    margin: 0 0 1.5rem;
    padding: 0 0 1.5rem;
  }

  .best-inner:last-child {
    margin: 0 0 1rem;
  }

  .best-text {
    width: 100%;
    margin: 0;
  }

  .best-text-t {
    font-size: 3.733vw;
    /* 14px -> 14 / 375 * 100 */
  }

  .best-name {
    width: 100%;
    margin: 0 0 1rem;
    font-size: 13.333vw;
    /* 50px */
  }

  .best-text p {
    font-size: 3.200vw;
    /* 12px */
    margin: 0 0 1rem;
  }

  .best-image {
    width: 100%;
  }

  .best-image img {
    border: #000 solid 1px;
  }

  .best-image-text {
    font-size: 4.267vw;
    /* 16px */
  }
}

@media screen and (min-width: 744px) and (max-width: 1024px) {
  .best-bg {
    padding: 2rem 0 2rem;
  }

  .best-title {
    width: 80%;
    margin: 0 0 0;
  }

  .best-btn-wrap {
    margin: 2rem 0 0;
  }

  .modal__content {
    max-width: 90%;
    padding: 3rem;
  }

  .best-title-2 {
    width: 70%;
    margin: 0 0 2rem;
  }

  .best-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0 0 1.5rem;
    padding: 0 0 1.5rem;
    border-bottom: #000 solid 1px;
  }

  .best-inner:last-child {
    margin: 0 0 3rem;
    padding: 0;
    border-bottom: none;
  }

  .best-text {
    position: relative;
    width: 45%;
    margin: 0 5% 0 0;
  }

  .best-text-t {
    font-size: 1.65vw;
  }

  .best-name {
    font-size: 7.813vw;
  }

  .best-text p {
    font-size: 1.823vw;
  }

  .best-image-text {
    font-size: 2.083vw;
  }
}

@media screen and (min-width: 1025px) {
  .best-btn img:hover {
    transform: translate(4px, 4px);
    filter: drop-shadow(4px 4px 0 transparent);
  }
}