@charset "UTF-8";

.infobanner {
  .banner {
    position: relative;
    display: flex;
    color: $color-white;
    background: linear-gradient(130deg, $color-gradient-01 40%, $color-gradient-02 80%, $color-gradient-03 120%);
    background: linear-gradient(130deg, var(--theme-color-gradient-01, $color-gradient-01) 40%,var(--theme-color-gradient-02, $color-gradient-02) 80%,var(--theme-color-gradient-03, $color-gradient-03) 120%);
    border-radius: $radius-xs;
    text-decoration: none;
    transition: 0.25s ease;
    @include focusvisible;

    @media(max-width: 767px) {
      margin-bottom: calc(1vw + 20px);
    }

    &.focus-visible:focus .btn {
      @include focus-standalone;
    }
    &:focus-visible .btn, &-moz-focusring .btn {
      @include focus-standalone;
    }

    &:before {
      content: "";
      position: relative;
      display: block;
      padding-top: 12.36%;

      @media(max-width: 567px) {
        padding-top: 66.6667%;
      }
    }
  }

  .is-commercial {
    position: absolute;
    display: block;
    z-index: 1;
    right: 0;
    top: 0;
    padding: 0 7px;
    font-size: 14px;
    color: $color-primary;
    color: var(--theme-color-primary, $color-primary);
    background-color: rgba($color-white, 0.5);
  }

  .image-box {
    @include fullsize;
    background-size: cover;
    background-position: center;

    &:not(:last-child) {
      &:after {
        content: "";
        @include fullsize;
        background: linear-gradient(120deg, rgba($color-primary, 1) 0%, rgba($color-primary, 0.2) 100%);
        background: linear-gradient(120deg, rgba(var(--theme-color-primary-rgb, $color-primary-rgb), 1) 0%, rgba(var(--theme-color-primary-rgb, $color-primary-rgb), 0.2) 100%);
      }
    }

    img {
      position: relative;
      display: block;
      max-width: 100%;
      margin: 0 auto;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .text-wrapper {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex: 1 1 100%;

    @media(max-width: 567px) {
      flex-direction: column;
    }
  }

  .like-h2 {
    line-height: 1;
  }

  .text-box {
    padding: 15px 24px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;

    @media(max-width: 1339px) {
      min-height: 150px;
    }
    @media(max-width: 999px) {
      min-height: 0;
      padding: 10px 20px;
    }
    @media(max-width: 567px) {
      padding: 16px 16px 0;
    }

    > * {
      margin-top: 2px;
      margin-bottom: 1px;

      &.kicker {
        margin-left: 0;
      }
    }

    > .like-h2 {
      @media(max-width: 567px) {
        margin-top: 8px;
        margin-bottom: 10px;
      }
    }
  }

  .button-box {
    padding: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    margin-top: auto;

    @media(max-width: 999px) {
      padding: 16px;
    }
    @media(max-width: 767px) {
      padding: 20px 16px;
    }
  }
}
