/* HiPro Biz 導入事例 / プロ人材カルーセル相当スタイル（corpトップ用）
 * /corp/service/biz/assets/css/style.css の c-carousel / c-card-carousel を移植
 */

#case.p-top-case-study,
#advisers.p-about-advisers {
  padding: 100px 0;
  background-color: #fff;
  letter-spacing: normal;
  line-height: 1.5;
  overflow: visible;
}
@media screen and (max-width: 767px) {
  #case.p-top-case-study,
  #advisers.p-about-advisers {
    padding: 80px 0;
    overflow: hidden;
  }
}

#case .l-inner,
#advisers .l-inner {
  width: 1088px;
  max-width: 100%;
  padding: 0;
  margin: 0 auto;
  overflow: visible;
}
@media screen and (max-width: 1262px) {
  #case .l-inner,
  #advisers .l-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media screen and (max-width: 767px) {
  #case .l-inner,
  #advisers .l-inner {
    width: 100%;
  }
}

/* 見出しは corp の .case__sec-title（top.css）を適用。余白のみカルーセルに合わせる */
#case .c-carousel--interview .case__sec-title {
  margin-bottom: 30px;
}
#advisers .case__sec-title {
  margin-bottom: 30px;
}

#advisers .c-carousel__head {
  text-align: center;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 180%;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
}

#case .swiper-wrapper,
#advisers .swiper-wrapper {
  display: flex;
}
#case .swiper-slide,
#advisers .swiper-slide {
  margin-bottom: 0;
  height: auto;
}
#case img,
#advisers img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

#case .c-carousel,
#advisers .c-carousel {
  margin-bottom: 60px;
  position: relative;
  letter-spacing: normal;
  line-height: 1.5;
}
#advisers .c-carousel {
  margin-bottom: 0;
}

#case .c-carousel--interview .swiper-pagination,
#advisers .swiper-pagination {
  position: relative;
  margin-top: 30px;
  bottom: auto !important;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  min-height: 22px;
}
#case .c-carousel--interview .swiper-pagination .swiper-pagination-bullet,
#advisers .swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #ccc;
  opacity: 1;
  margin: 0 12px !important;
}
#case .c-carousel--interview .swiper-pagination .swiper-pagination-bullet-active,
#advisers .swiper-pagination .swiper-pagination-bullet-active {
  background: #979899;
}

#case .c-carousel__swiper,
#advisers .c-carousel__swiper {
  width: 100%;
  overflow: hidden;
}
@media screen and (max-width: 767px) {
  #case .c-carousel__swiper {
    width: calc(100% + (100vw - 335px) / 2);
    overflow: hidden;
    padding-right: 0;
  }
  #case .c-carousel__swiper .swiper-slide {
    width: 323px;
  }
  #advisers .c-carousel__swiper {
    overflow: hidden;
    padding-right: 0;
  }
  #advisers .c-carousel__swiper .swiper-slide {
    width: calc((100vw - 60px) / 1.1 + 20px);
  }
}

#case .c-carousel__nav,
#advisers .c-carousel__nav {
  width: 60px;
  height: 60px;
  overflow: visible;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 10;
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
}
#case .c-carousel__nav::after,
#advisers .c-carousel__nav::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #07507B;
  transition: opacity 0.3s ease, background-color 0.3s ease;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='-0.5 -0.5 61 61' fill='none'%3E%3Ccircle cx='30' cy='30' r='29.5' stroke='%2307507B' stroke-width='1'/%3E%3Cpath d='M35 17.5L22.5 30.6579L35 42.5' stroke='%2307507B' stroke-width='2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='-0.5 -0.5 61 61' fill='none'%3E%3Ccircle cx='30' cy='30' r='29.5' stroke='%2307507B' stroke-width='1'/%3E%3Cpath d='M35 17.5L22.5 30.6579L35 42.5' stroke='%2307507B' stroke-width='2'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-position: center;
  mask-position: center;
}
#case .c-carousel__nav::before,
#advisers .c-carousel__nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='-0.5 -0.5 61 61' fill='none'%3E%3Ccircle cx='30' cy='30' r='29.5' fill='%2307507B'/%3E%3Ccircle cx='30' cy='30' r='29' stroke='%23FFFFFF' stroke-width='1'/%3E%3Ccircle cx='30' cy='30' r='29.5' stroke='%23FFFFFF' stroke-width='1'/%3E%3Cpath d='M35 17.5L22.5 30.6579L35 42.5' stroke='%23FFFFFF' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}
#case .c-carousel__nav:hover::after,
#advisers .c-carousel__nav:hover::after {
  opacity: 0;
}
#case .c-carousel__nav:hover::before,
#advisers .c-carousel__nav:hover::before {
  opacity: 1;
}
#case .c-carousel__nav--prev,
#advisers .c-carousel__nav--prev {
  left: -90px;
}
@media screen and (max-width: 1262px) {
  #case .c-carousel__nav--prev,
  #advisers .c-carousel__nav--prev {
    left: -30px;
  }
}
#case .c-carousel__nav--next,
#advisers .c-carousel__nav--next {
  right: -90px;
  transform: translateY(-50%) rotate(180deg);
}
@media screen and (max-width: 1262px) {
  #case .c-carousel__nav--next,
  #advisers .c-carousel__nav--next {
    right: -30px;
  }
}
#case .c-carousel__nav--next:hover,
#advisers .c-carousel__nav--next:hover {
  transform: translateY(-50%) rotate(180deg);
}
@media screen and (max-width: 1262px) {
  #case .c-carousel__nav,
  #advisers .c-carousel__nav {
    display: none;
  }
}

#case .c-card-carousel,
#advisers .c-card-carousel {
  height: auto;
  background: #fff;
  color: inherit;
  text-decoration: none;
  display: block;
}
#case .c-card-carousel:hover,
#advisers .c-card-carousel:hover {
  text-decoration: none;
  opacity: 1;
}
#case .c-card-carousel__img,
#advisers .c-card-carousel__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin: 0 0 20px;
}
#case .c-card-carousel__img img,
#advisers .c-card-carousel__img img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
#case .c-card-carousel__img img:hover,
#advisers .c-card-carousel__img img:hover {
  transform: scale(1.05);
}

/* ベース定義（biz .c-card-carousel） */
#case .c-card-carousel__body .name,
#advisers .c-card-carousel__body .name {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 20px;
  font-style: normal;
  line-height: 150%;
  letter-spacing: 0.8px;
  font-weight: 700;
  margin-bottom: 5px;
}
#case .c-card-carousel__body .career,
#advisers .c-card-carousel__body .career {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
  letter-spacing: 0.56px;
  color: #333;
  margin-bottom: 5px;
  min-height: 4.8em;
}

/* biz .p-top-case-study 上書き（会社名とタイトルの見た目） */
#case .c-card-carousel__body .name {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.04em;
}
#case .c-card-carousel__body .career {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

#case .c-card-carousel__body .info-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#case .c-card-carousel__body .theme,
#advisers .c-card-carousel__body .theme {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  color: #888;
  display: flex;
  align-items: center;
  gap: 5px;
}
#case .c-card-carousel__body .theme::before,
#advisers .c-card-carousel__body .theme::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8' fill='none'%3E%3Ccircle cx='4' cy='4' r='4' fill='%23CCCCCC'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
