@charset "UTF-8";

/* バナーセクションのcss設定 */

.banner_contents_top_pc {
  width: 100%;
  background-color: var(--bg-beige);
}

.bct_inner {
  max-width: min(80.55vw, 1160px);
  margin-inline: auto;
  padding-block: min(6.94vw, 100px);
}

.bct_inner ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: min(2.59vw, 30px);
}

/* 1つ目のバナー */
.bct_inner ul li:nth-child(1) a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  padding-block: min(2.36vw, 34px);
  text-align: center;
  overflow: hidden;
  border-radius: min(1.38vw, 20px);
}

.bct_inner ul li:nth-child(1) a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(26deg, rgba(0, 0, 0, 0.6), transparent),
    url(../img/banner1.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
  z-index: 1;
  filter: blur(2px);
}

.bct_inner ul li:nth-child(1) a:hover::before {
  transform: scale(1.1);
}

.bct_inner ul li:nth-child(1) a p {
  position: relative;
  z-index: 2;
  color: var(--white--);
  font-size: min(1.66vw, 24px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

/* 2つ目のバナー */
.bct_inner ul li:nth-child(2) a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  padding-block: min(2.36vw, 34px);
  text-align: center;
  overflow: hidden;
  border-radius: min(1.38vw, 20px);
}

.bct_inner ul li:nth-child(2) a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(26deg, rgba(0, 0, 0, 0.9), transparent),
    url(../img/banner2.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
  z-index: 1;
  filter: blur(2px);
}

.bct_inner ul li:nth-child(2) a:hover::before {
  transform: scale(1.1);
}

.bct_inner ul li:nth-child(2) a p {
  position: relative;
  z-index: 2;
  color: var(--white--);
  font-size: min(1.66vw, 24px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

/*ボタン共通*/
.bct_btn {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin-top: min(1.38vw, 20px);
  padding: min(0.83vw, 12px) min(3.47vw, 50px);
  border: 1px solid var(--white--);
  border-radius: min(0.83vw, 12px);
  color: var(--white--);
  font-size: min(2.34vw, 18px);
  font-weight: 500;
  text-decoration: none;
}
.bct_btn::before {
  content: "→";
  position: absolute;
  top: 50%;
  transform: translateY(-45%);
  right: min(1.04vw, 15px);
  color: var(--white--);
  font-size: min(1.95vw, 15px);
  z-index: 1;
  line-height: 1;
}
@media screen and (max-width: 768px) {
  .bct_btn {
    padding-inline: min(5.2vw, 40px);
  }
}
@media screen and (max-width: 430px) {
  .bct_btn {
    margin-top: 0px;
    font-size: min(2.32vw, 10px);
  }
  .bct_btn::before {
    font-size: min(2.32vw, 10px);
  }
}

/* --- タブレットとSP用 ---*/
@media screen and (max-width: 768px) {
  .banner_contents_top_tab {
    width: 100%;
    background-color: var(--bg-beige);
  }
  .bct_inner_tab {
    max-width: 100%;
    margin-inline: auto;
    padding-inline: min(6.36vw, 50px);
    padding-block: min(12.7vw, 100px);
  }
  @media screen and (max-width: 430px) {
    .bct_inner_tab {
      padding-top: min(23.2vw, 100px);
      padding-inline: min(6.97vw, 30px);
      padding-bottom: 100px;
    }
  }

  .bct_inner_tab ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: min(2.59vw, 30px);
  }
  @media screen and (max-width: 430px) {
    .bct_inner_tab ul {
      grid-template-columns: 1fr;
      gap: min(6.36vw, 50px);
    }
  }

  /*上部のバナーの設定*/
  .top_banner_tab {
    max-width: 100%; /* バナー全体の幅 */
    height: min(12.72vw, 100px); /* バナー全体の高さ */
    margin-bottom: min(6.36vw, 50px);
  }

  .top_banner_tab a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: visible;
    border-radius: min(1.38vw, 20px);
  }
  .top_banner_tab img {
    width: 20%; /* 画像の幅を40%に制限 */
    height: 100%;
    object-fit: cover; /* 画像を枠内に収める */
    flex-shrink: 0;
  }
  .top_banner_tab_text_wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-left: min(1.38vw, 20px);
    padding-right: min(1.38vw, 20px);
    background-color: var(--white--);
    width: 80%; /* テキスト部分を60%に */
    height: 100%;
  }
  /* 右下の三角形 */
  .top_banner_tab_text_wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 min(6.51vw, 50px) min(6.51vw, 50px);
    border-color: transparent transparent #333 transparent;
  }
  @media screen and (max-width: 430px) {
    .top_banner_tab_text_wrapper::after {
      border-width: 0 0 min(11.62vw, 50px) min(11.62vw, 50px);
    }
  }
  /* 右下の矢印 */
  .top_banner_tab_text_wrapper::before {
    content: "→";
    position: absolute;
    bottom: min(0.34vw, 5px);
    right: min(0.34vw, 5px);
    color: var(--white--);
    font-size: min(2.6vw, 20px);
    z-index: 1;
    line-height: 1;
  }
  @media screen and (max-width: 430px) {
    .top_banner_tab_text_wrapper::before {
      font-size: min(4.65vw, 20px);
    }
  }
  .mbr_text_small {
    font-size: min(1.04vw, 15px);
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-color--);
  }
  .mbr_text_large {
    font-size: min(1.38vw, 20px);
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-color--);
  }

  /* 1つ目のバナー */
  .bct_inner_tab ul li:nth-child(1) a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    padding-block: min(2.36vw, 34px);
    text-align: center;
    overflow: hidden;
    border-radius: min(1.38vw, 20px);
  }
  @media screen and (max-width: 430px) {
    .bct_inner_tab ul li:nth-child(1) a {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: min(3.48vw, 15px);
      height: min(12.7vw, 54.3px);
    }
  }

  .bct_inner_tab ul li:nth-child(1) a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(26deg, rgba(0, 0, 0, 0.6), transparent),
      url(../img/banner1.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    z-index: 1;
    filter: blur(2px);
  }

  .bct_inner_tab ul li:nth-child(1) a:hover::before {
    transform: scale(1.1);
  }

  .bct_inner_tab ul li:nth-child(1) a p {
    position: relative;
    z-index: 2;
    color: var(--white--);
    font-size: min(2.6vw, 20px);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.04em;
  }
  @media screen and (max-width: 430px) {
    .bct_inner_tab ul li:nth-child(1) a p {
      font-size: min(2.79vw, 12px);
    }
  }

  /* 2つ目のバナー */
  .bct_inner_tab ul li:nth-child(2) a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    padding-block: min(2.36vw, 34px);
    text-align: center;
    overflow: hidden;
    border-radius: min(1.38vw, 20px);
  }
  @media screen and (max-width: 430px) {
    .bct_inner_tab ul li:nth-child(2) a {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: min(3.48vw, 15px);
      height: min(12.7vw, 54.3px);
    }
  }

  .bct_inner_tab ul li:nth-child(2) a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(26deg, rgba(0, 0, 0, 0.9), transparent),
      url(../img/banner2.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    z-index: 1;
    filter: blur(2px);
  }

  .bct_inner_tab ul li:nth-child(2) a:hover::before {
    transform: scale(1.1);
  }

  .bct_inner_tab ul li:nth-child(2) a p {
    position: relative;
    z-index: 2;
    color: var(--white--);
    font-size: min(2.6vw, 20px);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.04em;
  }
  @media screen and (max-width: 430px) {
    .bct_inner_tab ul li:nth-child(2) a p {
      font-size: min(2.79vw, 12px);
    }
  }

  .mbr_text_small_tab {
    font-size: min(2.54vw, 20px);
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-color--);
  }
  .mbr_text_large_tab {
    font-size: min(3.18vw, 25px);
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-color--);
  }
}
