@use '../global' as *;

// スクリーンリーダー用
.u-sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

//image fit
.u-object-fit {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.u-text-eng {
  text-transform: lowercase;

  &::first-letter {
    text-transform: uppercase;
  }
}

.u-bold {
  font-weight: bold;
}

.u-pc-hidden {
  display: none;

  @include mq-down(sm) {
    display: block;
  }
}

.u-sp-hidden {
  @include mq-down(sm) {
    display: none;
  }
}

.u-tab-show {
  display: none;

  @include mq-down(lg) {
    display: block;
  }
}

.u-tab-hidden {
  @include mq-down(lg) {
    display: none;
  }
}

.u-all-hidden {
  display: none !important;
}

.u-bg-cover {
  position: relative;

  &__bg {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;

    &.--pos-top {
      object-position: 50% 0;
    }

    &.--pos-bottom {
      object-position: 50% 100%;
    }
  }

  &__inner {
    position: relative;
  }
}

.u-flex {
  display: flex;
}

.u-flex-sb {
  display: flex;
  justify-content: space-between;

  &.--wrap {
    flex-wrap: wrap;
  }

  &.--spRow {
    @include mq-down(sm) {
      display: block;
    }
  }
}

.u-mb0 {
  margin-bottom: 0 !important;
}

.u-mb-30 {
  margin-bottom: rem(30);
}

.u-text-center {
  text-align: center;
}

.u-marker {
  background: linear-gradient(transparent 70%, #fff79a 70%);
}

.u-c-yellow {
  color: #ffdf00;
}

.u-c-orange {
  color: $orange;
}

.u-c-pink {
  color: $key_pink;
}

.u-c-red {
  color: $key_red;
}

.u-text-underline {
  text-decoration: underline;
}

.--size-l {
  font-size: 1.42em;
}

.--size-sm {
  font-size: 0.8em;
}

.u-mb0-i {
  margin-bottom: 0 !important;
}

.u-text-bg {
  letter-spacing: -0.005em;
  display: contents;
}

.u-c-blue {
  color: #183e7e;
}

.u-c-pink {
  color: #d6625c;
}

.u-c-ppl {
  color: $key_ppl;
}

.u-text-link {
  text-decoration: underline;
  color: #0faf8f;
}
