@charset "UTF-8";
/* ---------

追従バナー（TOP）
コンポーネント単位のCSSなので _sp に分けず、末尾に @media (max-width: 768px) をまとめる。

------------*/
.follow_banner {
  position: fixed;
  right: 24px;
  bottom: 16px;
  z-index: 100;
  width: 203px;
  /* 上にはみ出した閉じるボタンも隠れるよう、高さより多めに下げる */
  transform: translateY(calc(100% + 40px));
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
}
.follow_banner.is_shown {
  transform: none;
  visibility: visible;
  transition: transform 0.3s ease;
}

.follow_banner_pc {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 252px;
  padding-top: 2px;
  border: 1px solid #fff;
  border-radius: 10px;
  box-shadow: 0 3px 14px rgba(120, 160, 160, 0.5);
  color: #fff;
  font-weight: bold;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
/* 共通の a:hover で薄くなるのを打ち消し、浮き上がらせる */
.follow_banner_pc:hover {
  opacity: 1;
  box-shadow: 0 8px 22px rgba(120, 160, 160, 0.55);
  transform: translateY(-4px);
}
/* FVの資料DLボタンと同じく、ホバーで ::before を消して下の ::after のグラデーションに切り替える */
.follow_banner_pc::before,
.follow_banner_pc::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 9px;
}
.follow_banner_pc::before {
  z-index: -1;
  background: linear-gradient(90.94deg, #F30166 0.42%, #F37401 108.72%);
  transition: all 0.6s;
}
.follow_banner_pc::after {
  z-index: -2;
  background: linear-gradient(90deg, #F20066 -33%, #F27400 75%, #F2DE00 184%);
}
@media (hover: hover) and (pointer: fine) {
  .follow_banner_pc:hover::before {
    opacity: 0;
    transition: all 0.4s;
  }
}
.follow_banner_pc_content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  overflow: hidden;
  background: url(https://s3.ap-northeast-1.amazonaws.com/img.kireini.me/connect/web/re_top/deco_line.svg) no-repeat left bottom / 201px 98px;
}
.follow_banner_pc_sub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 3px;
  font-size: 1.4rem;
  line-height: 1;
  white-space: nowrap;
}
/* 吹き出しのしっぽ付きの下線 */
.follow_banner_pc_sub::after {
  content: "";
  width: 172px;
  height: 9px;
  background:
    linear-gradient(#fff, #fff) left 2px / 79px 1px no-repeat,
    linear-gradient(#fff, #fff) right 2px / 79px 1px no-repeat;
}
.follow_banner_pc_sub::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: calc(50% - 1px);
  width: 1px;
  height: 10px;
  background: #fff;
  transform: rotate(41deg);
}
.follow_banner_pc_main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  line-height: 1.15;
}
.follow_banner_pc_main_name {
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}
.follow_banner_pc_main_title {
  font-size: 2.8rem;
}
.follow_banner_pc_doc_img {
  width: auto;
  height: 76px;
}
.follow_banner_pc_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 172px;
  height: 30px;
  padding-right: 4px;
  border-radius: 24px;
  background: #fff;
}
.follow_banner_pc_btn_icon {
  width: 20px;
  height: 20px;
}
.follow_banner_pc_btn_label {
  font-size: 1.6rem;
  line-height: 1;
  background: linear-gradient(94.52deg, #F30166 0.42%, #F37401 108.72%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.follow_banner_sp_list {
  display: none;
}

/* <a> の中に入れると閉じたつもりでもリンクが動くので、外側から重ねる */
.follow_banner_close {
  position: absolute;
  top: -16px;
  right: -15px;
  width: 32px;
  height: 32px;
  border: 1px solid #ABCECE;
  border-radius: 50%;
  background-color: #FCFEFE;
  box-shadow: 0 2px 6px rgba(159, 190, 190, 0.25);
  cursor: pointer;
  transition: transform 0.25s ease;
}
.follow_banner_close:hover {
  opacity: 0.5;
}
/* バナーと一緒に動かして位置をずらさない */
.follow_banner_pc:hover ~ .follow_banner_close {
  transform: translateY(-4px);
}
.follow_banner_close::before,
.follow_banner_close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 15px;
  border-radius: 1px;
  background: #437C7C;
}
.follow_banner_close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.follow_banner_close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* common.js がページトップボタンに直接 transition を書き込むので、!important で上書きする */
.top_btn {
  transition: opacity 0.5s ease, bottom 0.3s ease !important;
}

@media (min-width: 769px) {
  .follow_banner_shown .top_btn {
    bottom: 296px;
  }
}

@media (max-width: 768px) {
  .follow_banner {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    padding: 12px 12px 10px;
    background-color: #FCFEFE;
    box-shadow: 0 0 19px rgba(159, 190, 190, 0.4);
  }

  .follow_banner_pc {
    display: none;
  }

  .follow_banner_sp_list {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 375px;
    margin: 0 auto;
  }
  .follow_banner_sp_item_document {
    flex: 1 1 0;
    min-width: 0;
  }
  .follow_banner_sp_item_meeting {
    flex: 0 0 130px;
  }

  .follow_banner_btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 吹き出しと本体をまとめて1つの影にする */
    filter: drop-shadow(0 1px 1.8px rgba(159, 190, 190, 0.56));
  }
  .follow_banner_btn_bubble {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    margin-bottom: -10px;
    padding-left: 4px;
    border: 1px solid #F20066;
    border-radius: 4px;
    background: #fff;
  }
  .follow_banner_btn_bubble_text {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
    background: linear-gradient(126.79deg, #F20066 7.48%, #F27400 109.2%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .follow_banner_btn_body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 44px;
    padding-top: 7px;
    border-radius: 5px;
    color: #fff;
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.15;
    white-space: nowrap;
  }
  .follow_banner_btn_icon {
    width: 16px;
    height: 16px;
  }

  .follow_banner_btn_document .follow_banner_btn_bubble {
    width: 178px;
  }
  .follow_banner_btn_document .follow_banner_btn_body {
    padding-right: 2px;
    background: linear-gradient(91.94deg, #F20066 6.35%, #F27400 98.23%);
  }

  .follow_banner_btn_meeting .follow_banner_btn_bubble {
    width: 119px;
    border-color: #25C3B1;
  }
  .follow_banner_btn_meeting .follow_banner_btn_bubble_text {
    background-image: linear-gradient(119.83deg, #25C3B1 35.07%, #C4D30F 138.18%);
  }
  .follow_banner_btn_meeting .follow_banner_btn_body {
    background: linear-gradient(92.79deg, #25C4B1 36.3%, #C4D30F 102.19%);
  }

  .follow_banner_close {
    top: -20px;
    right: 8px;
    width: 25px;
    height: 25px;
    border-color: #ABCFCF;
    box-shadow: none;
  }
  /* 丸の内側が奇数幅で 50% が半端な位置になり×がずれるので、margin: auto で中央に置く */
  .follow_banner_close::before,
  .follow_banner_close::after {
    inset: 0;
    margin: auto;
    height: 11px;
  }
  .follow_banner_close::before {
    transform: rotate(45deg);
  }
  .follow_banner_close::after {
    transform: rotate(-45deg);
  }
}

/* 幅の狭い端末では、通常のスマホの見た目を画面幅に比例させて縮める */
@media (max-width: 374px) {
  .follow_banner {
    padding-right: 3.2vw;
    padding-left: 3.2vw;
  }
  .follow_banner_sp_list {
    gap: 3.2vw;
  }
  .follow_banner_sp_item_meeting {
    flex-basis: 34.667vw;
  }
  .follow_banner_btn_bubble {
    padding-left: 1.067vw;
  }
  .follow_banner_btn_bubble_text {
    font-size: 3.2vw;
  }
  .follow_banner_btn_body {
    gap: 1.067vw;
    font-size: 3.733vw;
  }
  .follow_banner_btn_icon {
    width: 4.267vw;
    height: 4.267vw;
  }
  .follow_banner_btn_document .follow_banner_btn_bubble {
    width: 47.467vw;
  }
  .follow_banner_btn_document .follow_banner_btn_body {
    padding-right: 0.533vw;
  }
  .follow_banner_btn_meeting .follow_banner_btn_bubble {
    width: 31.733vw;
  }
}
