/*=================================================================
                           Accessibility
=================================================================*/
@property --color1 {
  syntax: '<color>';
  inherits: false;
  initial-value: #52711a;
}
@property --color2 {
  syntax: '<color>';
  inherits: false;
  initial-value: #5ea215;
}
@property --c_spacing {
  syntax: '<length>';
  inherits: true;
  initial-value: 8px;
}

:root {
  --ease: cubic-bezier(.250,.100,.250,1.000);
  --bs-primary-rgb: 10, 102, 204;
}
:focus-visible {
  outline: 3px dashed var(--color2);
  outline-offset: calc(0.5 * var(--c_spacing));
}

.a11y {
  display: inline-block;
  &:not(:focus):not(:focus-within) {
    position: absolute;
    margin: -1px;
    padding: 0;
    inline-size: 1px;
    block-size: 1px;
    white-space: nowrap;
    clip: rect(0, 0, 0, 0);
    border: 0;
    overflow: hidden;  
  }
}
.acKey {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  padding: var(--c_spacing);
  background-color: var(--color1);
  color: #fff;
  font-size: clamp(1.6rem, 0.13vw + 1.56rem, 1.8rem);
  transition: transform 300ms var(--ease);
  transform: translateY(-100%);
  &:focus {
    visibility: visible;
    transform: translateY(0);
  }
}

/*==================================
                Button
====================================*/
.btn {
  &:focus-visible {
    outline: 3px dashed var(--color2);
  }
  &.btn_color1 {
    &:focus-visible {
      color: #fff;
      background-color: var(--color2);
      outline: 3px dashed var(--color2);
    }
  }
  &.btn_link {
    &:focus-visible {
      background-color: #e0f5b1;
    }
  }
}

/*==================================
                Banner
====================================*/
.swiper {
  --swiper-pagination-bullet-size: 14px;
  --swiper-pagination-bullet-inactive-opacity: .5;

  &.is-stop {
    .swiper-switch {
      &:before {
        content: '\f04b';
      }
    }
  }
  .swiper-switch {
    z-index: 11;
    position: absolute;
    inset-block-end: var(--c_spacing);
    inset-inline-start: var(--c_spacing);
    inline-size: 4rem;
    block-size: 4rem;
    background-color: #e5eaac;
    border: 0;
    border-radius: 12px;
    transition: background-color 300ms var(--ease);
    cursor: pointer;
    &:hover, &:active {
      background-color: #9eaf33;
      &:before {
        color: #fafaeb;
        font-size: clamp(1.4rem, 0.13vw + 1.36rem, 1.6rem);
      }
    }
    &:before {
      content: "\f04c";
      color: #9eaf33;
      font-size: clamp(1.6rem, 0.13vw + 1.56rem, 1.8rem);
      font-family: "Font Awesome 6 Free";
      font-weight: 900;
      transition: font-size 250ms var(--ease);
    }
  }
  .swiper-pagination {
    left: calc(8 * var(--c_spacing));
    width: auto;
    .swiper-pagination-bullet {
      background: hsla(0, 0%, 100%, .8);
    }
    .swiper-pagination-bullet-active {
      background-color: var(--color2);
    }
  }
}



