@charset "UTF-8";

/* ==========================================================================
   object/module/case.css
   ========================================================================== */

.o-m__case-list {
  @media screen and (min-width: 1025px) {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }
}

.o-m__case-list_logo {
  max-width: 170px;
  width: auto;
  height: auto;
  max-height: 42px;
}

.o-m__case-list_logo-wrap {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.o-m__case-list_title {
  display: grid;
  place-content: center;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  color: var(--rseikyu-primary);
  @media screen and (max-width: 576px) {
    height: inherit;
  }
}

.o-m__case-list_photo {
  display: block;
  margin: 0 auto;
  width: 310px;
  height: auto;
  border-radius: 10px;
  @media screen and (max-width: 576px) {
    width: 180px;
  }
}

.o-m__case-list_company {
  display: grid;
  place-content: center;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  @media screen and (max-width: 576px) {
    font-size: 16px;
  }
}

.o-m__case-list_point {
  line-height: 1.5;
}

.o-m__case-list_link {
  text-align: center;
  @media screen and (max-width: 1024px) {
    position: inherit;
    left: inherit;
    right: inherit;
    bottom: inherit;
    transform: none;
  }
  a {
    color: var(--rseikyu-primary);
  }
}

.o-m__case-list_link_link {
  @media screen and (max-width: 576px) {
    padding: 15px 0 0;
  }
}

.o-m__case_item {
  position: relative;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 6;
  gap: 15px;
  &:not(:last-of-type)::after {
    content: "";
    position: absolute;
    right: -6%;
    top: 0;
    width: 1px;
    height: 100%;
    background: var(--gray-bg-01);
    @media screen and (max-width: 1024px) {
      content: none;
    }
  }
}

.o-m__case_link {
  padding: 30px 0 0;
  text-align: center;
  @media screen and (max-width: 576px) {
    padding: 50px 0 0;
  }
}

.o-m__case_pager_box {
  position: absolute;
  height: 0;
  width: 80%;
  padding: 30px 0 0;
  text-align: center;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  @media screen and (max-width: 576px) {
    width: 100%;
  }
}

.o-m__case {
  .swiper-pagination,
  .swiper-button-prev,
  .swiper-button-next {
    display: none;
    position: absolute;
  }
  .swiper-container {
    @media screen and (max-width: 1024px) {
      width: 80%;
      max-width: 500px;
      margin: 0 auto;
    }
    @media screen and (max-width: 576px) {
      width: 90%;
      margin: 0 auto;
    }
  }
  .swiper-pagination {
    @media screen and (max-width: 1024px) {
      display: block !important;
      bottom: -25px !important;
    }
  }
  .swiper-pagination-bullet-active {
    @media screen and (max-width: 1024px) {
      opacity: 1;
      background: var(--rseikyu-primary) !important;
    }
  }
  .swiper-button-prev {
    @media screen and (max-width: 1024px) {
      position: inherit;
      display: block;
      background-image: none !important;
      width: 45px !important;
      height: 45px !important;
      top: 300px !important;
    }
    &::before {
      @media screen and (max-width: 1024px) {
        content: "";
        width: 45px;
        height: 45px;
        border-radius: 30px;
        background-color: var(--rseikyu-primary);
        position: absolute;
        left: 0px;
      }
    }
    &::after {
      @media screen and (max-width: 1024px) {
        position: absolute;
        z-index: 1;
        display: block;
        content: "";
        width: 15px;
        height: 15px;
        top: 50%;
        left: 50%;
        bottom: auto;
        margin: auto;
        transform: translateY(-50%) translateX(-30%) rotate(45deg);
        transition: all ease 0.3s;
        border-bottom: 2px solid white;
        border-left: 2px solid white;
      }
    }
  }
  .swiper-button-next {
    @media screen and (max-width: 1024px) {
      position: inherit;
      display: block;
      background-image: none !important;
      width: 45px !important;
      height: 45px !important;
      top: 300px !important;
    }
    &::before {
      @media screen and (max-width: 1024px) {
        content: "";
        width: 45px;
        height: 45px;
        border-radius: 30px;
        background-color: var(--rseikyu-primary);
        position: absolute;
        right: 0;
      }
    }
    &::after {
      @media screen and (max-width: 1024px) {
        position: absolute;
        z-index: 1;
        display: block;
        content: "";
        width: 15px;
        height: 15px;
        top: 50%;
        left: 50%;
        bottom: auto;
        margin: auto;
        transform: translateY(-50%) translateX(-70%) rotate(45deg);
        transition: all ease 0.3s;
        border-top: 2px solid white;
        border-right: 2px solid white;
      }
    }
  }
}
