/* ---------------------------------------
ボタン横並び
--------------------------------------- */
.btn-area {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 30px;
  margin-bottom: 80px;
}

.btn-area .oval-link {
  width: 380px !important;
  max-width: 100%;
}

.btn-area .text-slash {
  margin: 0 0 10px;
}

.btn-area .text-slash__item {
  padding: 1px 10px;
  color: #BC2739;
}

.btn-area .text-slash__item::before {
  transform: translateY(-50%) rotate(-30deg);
}

.btn-area .text-slash__item::after {
  transform: translateY(-50%) rotate(30deg);
}

.btn-area .text-slash__item::before,
.btn-area .text-slash__item::after {
  height: 26px;
  background: #BC2739;
}

button.oval-link.oval-link--border--red[class*="cta-container-mobile"] {
  border-radius: 100vh;
}

@media (max-width: 768px) {
  .btn-area {
    flex-direction: column;
  }

  .btn-area .oval-link {
    width: 100% !important;
  }

  .btns-item {
    width: 100%;
  }

  .btn-area .oval-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    padding: 0;
    font-size: 16px;
  }
}

/* 左右スラッシュテキスト */
.text-slash {
  position: relative;
  text-align: center;
  font-size: 18px !important;
}

.text-slash__item {
  position: relative;
  display: inline-block;
  padding: 0 20px !important;
  font-weight: bold;
  line-height: 1.3;
}

.text-slash__item::before,
.text-slash__item::after {
  position: absolute;
  top: 50%;
  content: "";
  display: inline-block;
  width: 2px;
  height: 50px;
  background: #272727;
}

.text-slash__item::before {
  left: 0;
  transform: translateY(-50%) rotate(-22deg);
}

.text-slash__item::after {
  right: 0;
  transform: translateY(-50%) rotate(22deg);
}

@media screen and (max-width: 768px) {
  .text-slash {
    font-size: 16px !important;
  }
}

.content-block {
  margin: 70px 0;
}

.bootstrap .breadcrumb {
  margin: 50px 0 0;
  padding: 0;
  background: transparent;
}

.bootstrap .main-heading {
  font-size: 44px;
  margin-top: 60px;
  font-weight: bold;
}

.bootstrap a {
  color: #272727;
}

.headpoint-text {
  position: relative;
  padding-left: 24px;
  font-size: 26px !important;
  font-weight: bold !important;
  margin-top: 50px !important;
  margin-bottom: 20px !important;
}

.headpoint-text::before {
  content: "";
  position: absolute;
  top: calc(50% - 14px);
  left: 0;
  display: inline-block;
  width: 4px;
  height: 28px;
  background: #cc0033;
}

.video-detail_txt {
  margin-bottom: 30px !important;
  font-size: 18px;
  line-height: 1.8;
}

.content-top {
  margin-top: 80px !important;
}

@media screen and (max-width: 768px) {
  .video-detail_txt {
    font-size: 16px !important;
    margin-bottom: 25px !important;
    line-height: 1.6;
  }

  .headpoint-text {
    font-size: 24px !important;
  }

  .bootstrap .breadcrumb {
    display: none;
  }

  .content-block {
    margin: 0px 0px 50px 0px;
  }
}

/*video_card*/
.video-wrapper {
  padding: 28px 30px;
}

.video_card {
  background-color: #f4f4f4;
  border-radius: 10px;
}

.video_card_title {
  font-size: 18px !important;
  font-weight: bold !important;
  margin-bottom: 10px !important;
  line-height: 1.6 !important;
}

.video_card_txt {
  line-height: 1.6 !important;
  margin-bottom: 0px !important;
}

.video_card_tag {
  padding: 3px 10px;
  background-color: #ffe7ed;
  width: fit-content;
  font-size: 14px !important;
  color: #cc0033;
  font-weight: bold;
  margin-bottom: 8px !important;
}

.video_card_container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 22px;
}

.video_button {
  margin-top: 10px;
  position: relative;
  display: block;
  padding: 12px 39px;
  font-size: 16px;
  border-radius: 100vh;
  font-weight: bold;
  background-color: #ffffff !important;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  border: 1px solid #333333;
}

.video_button:hover {
  opacity: 0.7;
}

.video-detail_txt span {
  font-size: 16px;
  text-indent: -15px;
  margin-left: 15px;
  display: block;
  margin-top: 10px;
}

.video_button:after {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  display: inline-block;
  width: 12px;
  height: 12px;
  background: url(/themes/custom/subsphere/images/resources/icon_window-r.webp) no-repeat center / 100%;
}

@media screen and (max-width: 768px) {
  .video_card_container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .video-wrapper {
    padding: 20px;
  }

  .video_card_title {
    font-size: 16px !important;
  }

  .video_card_txt {
    font-size: 14px !important;
  }

  .video_button {
    font-size: 14px;
  }
}

@media screen and (max-width: 600px) {
  .video_card_container {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }
}

.video-item {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  overflow: hidden;
  border-radius: 10px 10px 0px 0px;
}

.custom-video-thumb {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  transition: transform 0.3s ease;
}

.video-item:hover .custom-video-thumb {
  transform: scale(1.02);
}

.custom-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 42px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.video-item:hover .custom-video-play-btn {
  background-color: #ff0000;
}

.custom-video-play-btn::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #fff;
  margin-left: 2px;
}

.click-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: transparent;
  cursor: pointer;
}


/* ==========================================
    ポップアップ
    ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.60);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 960px;
  background: #000;
  z-index: 10000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.modal-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.modal-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
}

/* ==========================================
  CTA
  ========================================== */
.video_link_top-page {
  margin-top: 48px;
  font-size: 18px;
  text-align: center;
}

.video_link_top-page a {
  width: 480px;
}

.video_inquiry-area {
  margin-top: 48px;
  padding: 0;
}

.video_inquiry-area p {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .video_link_top-page a {
    width: 100%;
  }
}

@media screen and (max-width: 450px) {
  .video_inquiry-area_br {
    display: none;
  }
}