@use 'utils/base' as *;

/* helpers */
.visually-hidden {
  @include visually-hidden;
}
.text-truncate {
  @include text-truncate;
}
.clearfix {
  @include clearfix;
}
.scroll-lock {
  @include scroll-lock;
}

/* flex */
.flex-center {
  @include flex-center;
}
.flex-normal-center {
  display: flex;
  align-items: center;
}
.flex-normal-end {
  display: flex;
  align-items: flex-end;
}
.flex-between-normal {
  display: flex;
  justify-content: space-between;
}
.flex-between-center {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.flex-between-end {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.flex-center-normal {
  display: flex;
  justify-content: center;
}
.flex-center-end {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.flex-end-normal {
  display: flex;
  justify-content: flex-end;
}
.flex-end-center {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.flex-end-end {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}
.flex-column {
  flex-direction: column;
}
.flex-column-reverse {
  flex-direction: column-reverse;
}
.flex-row {
  flex-direction: row;
}
.flex-row-reverse {
  flex-direction: row-reverse;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-wrap-reverse {
  flex-wrap: wrap-reverse;
}
.flex-grow-0 {
  flex-grow: 0;
}
.flex-grow-1 {
  flex-grow: 1;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.flex-shrink-1 {
  flex-shrink: 1;
}
.flex-basis-0 {
  flex-basis: 0;
}

/* display */
.d-inline {
  display: inline;
}
.d-inline-block {
  display: inline-block;
}
.d-block {
  display: block;
}
.d-flex {
  display: flex;
}
.d-inline-flex {
  display: inline-flex;
}
.d-grid {
  display: grid;
}
.d-inline-grid {
  display: inline-grid;
}

/* overflow */
.overflow-hidden {
  overflow: hidden;
}
.overflow-visible {
  overflow: visible;
}
.overflow-x-hidden {
  overflow-x: hidden;
}
.overflow-x-visible {
  overflow-x: visible;
}
.overflow-x-auto {
  overflow-x: auto;
}
.overflow-y-hidden {
  overflow-y: hidden;
}
.overflow-y-visible {
  overflow-y: visible;
}
.overflow-y-auto {
  overflow-y: auto;
}

/* float */
.float-start {
  float: left;
}
.float-end {
  float: right;
}
.float-none {
  float: none;
}

/* size */
.w-100 {
  width: 100%;
}
.w-auto {
  width: auto;
}
.mw-100 {
  max-width: 100%;
}
.vw-100 {
  width: 100vw;
}
.h-100 {
  height: 100%;
}
.h-auto {
  height: auto;
}
.mh-100 {
  max-height: 100%;
}
.vh-100 {
  height: 100vh;
}

/* position */
.position-relative {
  position: relative;
}
.position-sticky {
  position: sticky;
}
.position-fixed {
  position: fixed;
}
.absolute-full {
  position: absolute;
  inset: 0;
}
.absolute-100 {
  @include absolute-100;
}
.absolute-start {
  position: absolute;
  left: 0;
  top: 0;
}

/* background */
.bg-contain {
  @include bg-contain;
}
.bg-cover {
  @include bg-cover;
}
.bg-center {
  background-repeat: no-repeat;
  background-position: center;
}
.bg-transparent {
  background-color: transparent;
}
.bg-primary {
  background-color: $primary-color;
}
.bg-secondary {
  background-color: $secondary-color;
}
.bg-tertiary {
  background-color: $tertiary-color;
}
.bg-almost-white {
  background-color: $almost-white;
}
.bg-almost-black {
  background-color: $almost-black;
}
.bg-white {
  background-color: $white;
}
.bg-black {
  background-color: $black;
}

/* object-fit */
.object-fit-contain {
  @include object-fit-contain;
}
.object-fit-cover {
  @include object-fit-cover;
}

/* transform */
.translate-middle {
  transform: translate(-50%, -50%);
}
.translate-middle-x {
  transform: translateX(-50%);
}
.translate-middle-y {
  transform: translateY(-50%);
}

/* font-family */
.ff-title {
  font-family: $font-family-title;
}
.ff-point {
  font-family: $font-family-point;
}
.ff-default {
  font-family: $font-family-default;
}

/* font */
.fw-thin {
  font-weight: 100 !important;
}
.fw-lighter {
  font-weight: 200 !important;
}
.fw-light {
  font-weight: 300 !important;
}
.fw-normal {
  font-weight: 400 !important;
}
.fw-medium {
  font-weight: 500 !important;
}
.fw-semibold {
  font-weight: 600 !important;
}
.fw-bold {
  font-weight: 700 !important;
}
.fw-bolder {
  font-weight: 800 !important;
}
.fw-black {
  font-weight: 900 !important;
}

.lh-sm {
  line-height: $line-height-sm !important;
}
.lh-base {
  line-height: $line-height-base !important;
}
.lh-lg {
  line-height: $line-height-lg !important;
}
.lh-xl {
  line-height: $line-height-xl !important;
}

/* text color */
.text-primary {
  color: $primary-color;
}
.text-secondary {
  color: $secondary-color;
}
.text-tertiary {
  color: $tertiary-color;
}
.text-black {
  color: $black;
}
.text-white {
  color: $white;
}
.text-gray {
  color: $gray;
}

/* text */
.text-start {
  text-align: left;
}
.text-end {
  text-align: right;
}
.text-center {
  text-align: center;
}
.text-wrap {
  white-space: normal;
}
.text-nowrap {
  white-space: nowrap;
}
.text-break {
  word-break: break-word;
  word-wrap: break-word;
}

/* etc */
.pe-none {
  pointer-events: none !important;
}
.mb-0 {
  margin-bottom: 0 !important;
}
.mt-0 {
  margin-top: 0 !important;
}
.m-0 {
  margin: 0 !important;
}
.opacity-0 {
  opacity: 0;
}
.fs-0 {
  font-size: 0 !important;
}

/* responsive_display */
@media screen and (max-width: rem($breakpoint-lg)) {
  .visible-pc {
    display: none !important;
  }
}
@media screen and not ((min-width: calc(rem($breakpoint-md) + 1px)) and (max-width: rem($breakpoint-lg))) {
  .visible-tablet {
    display: none !important;
  }
}
@media screen and (min-width: calc(rem($breakpoint-md) + 1px)) {
  .visible-mobile {
    display: none !important;
  }
}

@media screen and (min-width: calc(rem($breakpoint-lg) + 1px)) {
  .hidden-pc {
    display: none !important;
  }
}
@media screen and (min-width: calc(rem($breakpoint-md) + 1px)) and (max-width: rem($breakpoint-lg)) {
  .hidden-tablet {
    display: none !important;
  }
}
@media screen and (max-width: rem($breakpoint-md)) {
  .hidden-mobile {
    display: none !important;
  }
}
