.reviews {
  --container-size: 13rem;
  --icon-size: 11rem;
  --icon-label-right: -2.5rem;
  --bottom-link-btn-width: 95%;
  --bottom-link-btn-text-size: 80%;
  padding-right: 2rem;
  padding-left: 2rem;
  .container-scroll-x {
    display: flex;
    column-gap: 1.8rem;
    overflow-x: scroll;
    .item {
      width: var(--container-size);
      display: flex;
      flex-direction: column;
      align-items: center;
      flex-shrink: 0;
    }
    .icon-wrapper {
      margin-top: 0.5rem;
      position: relative;
      &[data-has-schedule="1"]::before {
        content: "";
        background-image: url(../img/top/icon-triangles.png);
        display: block;
        width: 2.1rem;
        height: 2.3rem;
        background-size: contain;
        background-size: 2.1rem 2.3rem;
        position: absolute;
        top: 0;
        left: -10px;
      }
      /* キャストアイコン */
      img {
        width: var(--icon-size);
        height: var(--icon-size);
        object-fit: cover;
        border-radius: 50%;
        object-position: top;
      }
      .bg-circle {
        content: "";
        width: calc(var(--icon-size) + 0.6rem);
        height: calc(var(--icon-size) + 0.6rem);
        display: block;
        border-radius: 50%;
        position: absolute;
        top: 0;
        z-index: -1;
        top: -0.15rem;
        left: -0.15rem;
        opacity: 0.5;
      }
      /* 本日出勤のラベル */
      span {
        display: block;
        right: var(--icon-label-right);
        font-size: 1.1rem;
        color: #fff;
        background: linear-gradient(to right, #ff277d 0%, #0670e9 100%);
        border: 0.125rem solid #fff;
        box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.16);
        padding: 0.625rem 0.875rem;
        border-radius: 36px;
        position: absolute;
        bottom: 0;
      }
    }
    /* 吹き出し */
    .balloon {
      position: relative;
      width: 100%;
      border: 0.125rem solid #707070;
      border-radius: 1.25rem;
      box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.16);
      padding: 1.25rem 1.5rem 0;
      margin-top: 1.25rem;
      height: 26.25rem;
      &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        border-style: solid;
        border-width: 0 1.25rem 1.875rem 1.25rem;
        border-color: transparent transparent #707070;
        translate: -50% -100%;
      }
      &::after {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        border-style: solid;
        border-width: 0 1.1rem 1.65rem 1.1rem;
        border-color: transparent transparent #fff;
        translate: -50% -100%;
      }
      .text-ellipsis {
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        width: calc(var(--container-size) - (1.5rem * 2));
      }
      .top {
        &.bottom-gradation-line::after {
          bottom: -0.625rem;
          width: 100%;
        }
        .label-rounded {
          font-size: 0.9rem;
          border-radius: 1.125rem;
          width: 100%;
          display: block;
          padding: 0.375rem 0;
        }
        .main-text {
          font-size: 1.5rem;
          margin: 0.625rem 0;
          display: block;
        }
        .sub-text {
          margin-bottom: 0.625rem;
        }
      }
      .bottom {
        margin-top: 1.25rem;
        .main-text {
          margin: 0.625rem 0;
          color: #ff3d97;
          font-size: 1.25rem;
        }
        .l-text {
          height: 7.8125rem;
          overflow-y: scroll;
        }
        .rounded-pink-btn {
          text-align: center;
          margin: 1.25rem auto 0;
          display: flex;
          justify-content: center;
          width: var(--bottom-link-btn-width);
          font-size: var(--bottom-link-btn-text-size);
          align-items: center;
          color: #fff;
          padding: 0.625rem 0;
          background-color: #ff3d97;
          border-radius: 1.875rem;
          box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.16);
          &.light {
            background-color: #ff61a0;
          }
          .arrow {
            position: relative;
            display: inline-block;
            width: 1.3125rem;
            height: 0.125rem;
            background-color: #fff;
            transform: rotate(-45deg);
            margin: 0.4375rem 0;
          }
          .arrow::before,
          .arrow::after {
            content: "";
            position: absolute;
            top: calc(50% - 0.03125rem);
            right: 0;
            width: 0.9375rem;
            height: 0.125rem;
            background-color: #fff;
            transform-origin: calc(100% - 0.03125rem) 50%;
          }
          .arrow::before {
            transform: rotate(45deg);
          }
          .arrow::after {
            transform: rotate(-45deg);
          }
        }
      }
    }
  }
}
@media screen and (min-width: 768px) {
  .reviews {
    --container-size: 20rem;
    --icon-size: 18rem;
    --icon-label-right: 0rem;
    --bottom-link-btn-width: 70%;
    --bottom-link-btn-text-size: 100%;
  }
}
