@charset "UTF-8";

/* ==========================================================================
   object/module/onayami.css
   ========================================================================== */

.o-m__onayami {
  background: linear-gradient(0deg, var(--rseikyu-bg-sub-03) 59%, var(--white) 59%);
  @media screen and (max-width: 768px) {
    background: linear-gradient(0deg, var(--rseikyu-bg-sub-03) 55%, var(--white) 55%);
  }
  @media screen and (max-width: 576px) {
    background: linear-gradient(0deg, var(--rseikyu-bg-sub-03) 52%, var(--white) 52%);
  }
  @media screen and (max-width: 400px) {
    background: linear-gradient(0deg, var(--rseikyu-bg-sub-03) 55%, var(--white) 55%);
  }
  .js-slick-slider {
    @media screen and (min-width: 769px) {
      display: flex;
      justify-content: space-between;
    }
  }
}

.o-m__onayami.f__common-bgcolor_gray .o-m__onayami-content_data_theme {
  background-color: var(--white);
  &:after {
    border-top: 15px solid var(--white);
  }
}

.o-m__onayami._bg_brand {
  background-color: var(--rseikyu-bg-sub-03);
  border-radius: 10px;
  padding-left: 40px;
  padding-right: 40px;
  @media screen and (max-width: 768px) {
    border-radius: 0;
    margin-left: calc((100vw - 100%) / 2 * -1);
    margin-right: calc((100vw - 100%) / 2 * -1);
  }
  .o-m__onayami-content_data_theme {
    background-color: var(--white);
    &::after {
      border-top: 15px solid var(--white);
    }
  }
  .o-m__onayami-content_answer_title {
    @media screen and (min-width: 577px) {
      top: 165px;
    }
  }
}

.o-m__onayami-content_answer_title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  position: absolute;
  z-index: 300;
  display: inline-block;
  white-space: nowrap;
  width: auto;
  top: 190px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--rseikyu-bg-sub-03);
  border-radius: 50px 50px 0 0;
  padding: 20px 30px 0;
  @media screen and (max-width: 768px) {
    font-size: 22px;
    line-height: 1.3;
    top: 174px;
  }
  img {
    width: 183px;
    height: 45px;
    display: inline-block;
    padding: 0 20px;
    @media screen and (max-width: 768px) {
      width: 130px;
      height: 35px;
      padding: 0 12px;
    }
  }
}

.o-m__onayami-content_data {
  @media screen and (min-width: 1025px) {
    width: 23% !important;
  }
  @media screen and (max-width: 768px) {
    width: 100%;
    padding: 0 35px;
  }
}

.o-m__onayami-content_data_theme {
  width: 100%;
  background-color: var(--gray-bg-02);
  padding: 25px 0;
  border-radius: 10px;
  position: relative;
  margin-bottom: 145px;
  text-align: center;
  font-size: 16px;
  line-height: 24px;
  @media screen and (max-width: 768px) {
    margin-bottom: 110px;
  }
  &:after {
    display: block;
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    border: 10px solid rgba(0, 0, 0, 0);
    border-bottom-width: 0;
    border-top: 15px solid var(--gray-bg-02);
  }
}

.o-m__onayami-content_data_theme_title {
  align-items: center;
  display: flex;
  justify-content: center;
  font-weight: 700;
  padding-bottom: 10px;
  &:before {
    margin-right: 5px;
  }
  &:after {
    margin-left: 5px;
  }
  &:before,
  &:after {
    content: "";
    background-color: var(--black);
    height: 1px;
    width: 10px;
  }
}

.o-m__onayami-content_data_theme._base_3 {
  padding: 13px 0;
}

.o-m__onayami-content_data_theme._magin_bottom {
  margin-bottom: 120px;
  @media screen and (max-width: 768px) {
    margin-bottom: 45px;
  }
}

.o-m__onayami-content_data_list {
  padding: 0 20px 10px;
}

.o-m__onayami-content_data_answer {
  width: 100%;
  min-height: 460px;
  background-color: var(--white);
  padding: 45px 0px 40px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  @media screen and (max-width: 768px) {
    min-height: 0;
  }
  @media screen and (max-width: 576px) {
    padding: 45px 0px 20px;
  }
  &:before {
    content: "";
    display: block;
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 72px;
    border-radius: 36px;
    background-color: var(--rseikyu-bg-sub-03);
  }
  &:after {
    content: "";
    display: block;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 38px;
    background-image: url(/rakurakucloud/seikyu/assets/image/icon/icon_000_arrow.svg);
    background-repeat: no-repeat;
    background-size: cover;
  }
  h3 {
    font-size: 17px;
    line-height: 28px;
    font-weight: 700;
    color: var(--rseikyu-primary);
    margin-bottom: 20px;
    @media screen and (max-width: 576px) {
      font-size: 16px;
      line-height: 24px;
      text-align: left;
      padding: 0 0 0 90px;
    }
  }
}

.o-m__onayami-content_data_icon {
  background-color: var(--rseikyu-bg-sub-03);
  width: 116px;
  height: 116px;
  border-radius: 60px;
  margin: 0px auto 20px;
  display: grid;
  place-items: center;
  @media screen and (max-width: 576px) {
    width: 65px;
    height: 65px;
    position: absolute;
    left: 15px;
    top: 35px;
  }
  img {
    width: 80px;
    height: auto;
    @media screen and (max-width: 576px) {
      width: 50px;
      height: auto;
    }
  }
}

.o-m__onayami-content_data_description {
  padding: 0 30px;
  @media screen and (max-width: 768px) {
    padding: 0 20px;
  }
}

.o-m__onayami-content_data .f__common-text_annotation {
  margin-top: 12px;
}

.o-m__onayami-random {
  background-color: var(--gray-bg-02);
  position: relative;
  padding: 70px 0;
  @media screen and (max-width: 768px) {
    background-color: inherit;
    padding: 0;
  }
  &::before {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 50%;
    height: 0;
    border-style: solid;
    border-width: 70px 0 0 50vw;
    border-color: transparent transparent transparent var(--white);
    z-index: 0;
    @media screen and (max-width: 768px) {
      display: none;
    }
  }
  &:after {
    content: "";
    position: absolute;
    bottom: 0px;
    right: 0;
    width: 50%;
    height: 0;
    border-style: solid;
    border-width: 70px 50vw 0 0;
    border-color: transparent var(--white) transparent transparent;
    z-index: 0;
    @media screen and (max-width: 768px) {
      display: none;
    }
  }
}

.o-m__onayami-random_lists {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  gap: 40px 20px;
  justify-content: center;
  @media screen and (max-width: 576px) {
    gap: 20px 10px;
  }
}

.o-m__onayami-random_lists_sp {
  display: none;
  @media screen and (max-width: 576px) {
    display: flex;
  }
}

.o-m__onayami-random_lists_pc {
  @media screen and (max-width: 576px) {
    display: none;
  }
}

.o-m__onayami-random_item {
  width: calc((100% - 60px) / 4);
  background-color: var(--white);
  padding: 25px 0;
  border-radius: 10px;
  position: relative;
  text-align: center;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  @media screen and (max-width: 768px) {
    background-color: var(--gray-bg-02);
    margin-bottom: 10px;
    width: calc((100% - 10px) / 2);
  }
  &:after {
    display: block;
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    border: 10px solid rgba(0, 0, 0, 0);
    border-bottom-width: 0;
    border-top: 15px solid var(--white);
    @media screen and (max-width: 768px) {
      border-top: 15px solid var(--gray-bg-02);
    }
  }
}

.o-m__onayami-random_conclusion {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  position: relative;
  @media screen and (max-width: 768px) {
    display: block;
  }
}

.o-m__onayami-random_conclusion_text {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
  @media screen and (max-width: 768px) {
    font-size: 20px;
    text-align: center;
    margin-bottom: 20px;
  }
}

.o-m__onayami-random_conclusion_icon {
  width: 65px;
  height: auto;
  position: absolute;
  top: -20px;
  right: 25%;
  @media screen and (max-width: 768px) {
    width: 85px;
    margin: auto;
    position: relative;
    right: auto;
  }
}

.o-m__onayami-note_text {
  font-size: 10px;
  padding: 15px 0 0;
}

.o-m__onayami-display {
  max-width: 700px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  @media screen and (max-width: 768px) {
    flex-wrap: wrap-reverse;
  }
}

.o-m__onayami-display_left {
  max-width: 300px;
  width: 100%;
  @media screen and (max-width: 768px) {
    max-width: unset;
  }
}

.o-m__onayami-display_right {
  font-size: 16px;
  line-height: 1.8;
  margin-left: 30px;
  @media screen and (max-width: 768px) {
    text-align: center;
    margin-left: 0;
    margin-bottom: 20px;
  }
}

.o-m__onayami .pc-only {
  display: inline-block;
  @media screen and (max-width: 768px) {
    display: none;
  }
}

.o-m__onayami {
  /* スライダーのslick設定 */
  /*---------------------------------------------------------- */
  .js-slick-slider,
  .js-slick-slider .slick-list,
  .js-slick-slider .slick-track {
    width: 100%;
    outline: none;
  }
  /*ドットボタン */
  .slick-dots {
    bottom: -35px;
    li {
      width: 8px;
      height: 8px;
      margin: 4px;
      button {
        width: 8px;
        height: 8px;
        &::before {
          content: "";
          width: 8px;
          height: 8px;
          border-radius: 4px;
          background: var(--black);
          opacity: 0.2;
        }
      }
    }
    li.slick-active button:before {
      background: var(--rseikyu-primary);
      opacity: 1;
    }
  }
  /*前へ/次へボタン */
  .slick-prev {
    display: block;
    background-image: none !important;
    width: 35px !important;
    height: 35px !important;
    top: 230px !important;
    left: 0 !important;
    z-index: 310;
    &:before {
      content: "";
      width: 35px;
      height: 35px;
      border-radius: 30px;
      background-color: var(--rseikyu-primary);
      position: absolute;
      top: 0;
      left: 0;
    }
    &:after {
      position: absolute;
      z-index: 1;
      display: block;
      content: "";
      width: 12px;
      height: 12px;
      top: 50%;
      left: 50%;
      bottom: auto;
      margin: auto;
      transform: translateY(-50%) translateX(-30%) rotate(45deg);
      transition: all ease 0.3s;
      border-bottom: 2px solid var(--white);
      border-left: 2px solid var(--white);
    }
  }
  .slick-next {
    display: block;
    background-image: none !important;
    width: 35px !important;
    height: 35px !important;
    top: 230px !important;
    right: 0 !important;
    z-index: 310;
    &:before {
      content: "";
      width: 35px;
      height: 35px;
      border-radius: 30px;
      background-color: var(--rseikyu-primary);
      position: absolute;
      top: 0;
      left: 0;
    }
    &:after {
      position: absolute;
      z-index: 1;
      display: block;
      content: "";
      width: 12px;
      height: 12px;
      top: 50%;
      left: 50%;
      bottom: auto;
      margin: auto;
      transform: translateY(-50%) translateX(-70%) rotate(45deg);
      transition: all ease 0.3s;
      border-top: 2px solid var(--white);
      border-right: 2px solid var(--white);
    }
  }
  /*初期表示調整 */
  .js-slick-slider {
    visibility: hidden;
    @media screen and (max-width: 768px) {
      height: 300px;
    }
  }
  .js-slick-slider.slick-initialized {
    visibility: visible;
    height: auto;
  }
}

/*反転カラー設定 */
/*---------------------------------------------------------- */

.o-m__onayami.f__common-bgcolor_sub-10 {
  .o-m__onayami-content_data_theme {
    background: var(--white);
    &:after {
      border-top: 15px solid var(--white);
    }
  }
}
