/* =========================================================
   TOPページ用CSS・完全差し替え版

   対象：
   ・TOPバナー
   ・ブランドカルーセル
   ・TOPスライダーの左右ボタン
   ・ページトップボタン

   矢印ボタンは緑の円形デザインで統一しています。
========================================================= */

/* TOPバナー */
.banners {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 0.9em;
}

.banner-wrap {
  box-sizing: border-box;
  margin-bottom: 10px;
}

.banner-wrap a {
  display: block;
}

.banner-wrap img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.banner-text {
  margin: 10px 0;
}

@media screen and (max-width: 767px) {
  .banner-container {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .banner-container > .banners {
    margin-right: 0;
    margin-left: 0;
  }

  .banner-container .banner-main {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
    clear: both;
  }

  .banner-container .banner-half-left {
    width: 50%;
    padding-right: 7px;
    padding-left: 0;
  }

  .banner-container .banner-half-right {
    width: 50%;
    padding-right: 0;
    padding-left: 7px;
  }
}

/* ブランドカルーセル */
.BrandCarousel001 {
    --BrandCarousel001-ItemWidth: 300px;
    --BrandCarousel001-Gap: 20px;

    position: relative;

    width: 100%;

    margin: 30px 0;
    padding: 0;

    box-sizing: border-box;
}

.BrandCarousel001_Viewport {
    width: 100%;

    overflow: hidden;

    box-sizing: border-box;

    touch-action: pan-y;
}

.BrandCarousel001_Track {
    display: flex;
    flex-wrap: nowrap;

    gap: var(--BrandCarousel001-Gap);

    width: max-content;

    margin: 0;
    padding: 0;

    will-change: transform;

    transition:
        transform 0.6s ease;
}

.BrandCarousel001_Track.BrandCarousel001_NoAnimation {
    transition: none;
}

.BrandCarousel001_Item {
    display: block;

    flex:
        0 0
        var(--BrandCarousel001-ItemWidth);

    width:
        var(--BrandCarousel001-ItemWidth);

    overflow: hidden;

    box-sizing: border-box;

    color: inherit;

    text-decoration: none;
}

.BrandCarousel001_Item img {
    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 300 / 146;

    margin: 0;
    padding: 0;

    border: 0;

    object-fit: cover;

    transition:
        transform 0.4s ease,
        opacity 0.4s ease;
}

.BrandCarousel001_Item:hover img {
    transform: scale(1.03);

    opacity: 0.9;
}

.BrandCarousel001_Text {
    display: block;

    min-height: 42px;
    margin-top: 8px;

    color: #333333;

    font-size: 14px;
    line-height: 1.5;

    text-align: center;
}

.BrandCarousel001_Navigation {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 28px;

    min-height: 50px;
    margin-top: 18px;
}

.BrandCarousel001_AllBrands {
    display: inline-block;

    color: #669933;

    font-size: 16px;
    font-weight: bold;
    line-height: 50px;

    text-decoration: none;
    white-space: nowrap;
}

.BrandCarousel001_AllBrands:hover {
    color: #527a29;

    text-decoration: underline;
}

.BrandCarousel001_Arrow {
    position: relative;

    display: block;

    flex: 0 0 50px;

    width: 50px;
    height: 50px;

    margin: 0;
    padding: 0;

    box-sizing: border-box;

    border: 3px solid #ffffff;
    border-radius: 50%;

    background-color: #669933;

    box-shadow:
        0 2px 8px
        rgba(0, 0, 0, 0.25);

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.BrandCarousel001_Arrow::before,
.BrandCarousel001_Arrow::after {
    content: "";

    position: absolute;
    top: 50%;

    display: block;

    width: 22px;
    height: 6px;

    border-radius: 2px;

    background-color: #ffffff;
}

.BrandCarousel001_ArrowRight::before {
    left: 12px;

    transform:
        translateY(-7px)
        rotate(45deg);
}

.BrandCarousel001_ArrowRight::after {
    left: 12px;

    transform:
        translateY(7px)
        rotate(-45deg);
}

.BrandCarousel001_ArrowLeft::before {
    left: 10px;

    transform:
        translateY(-7px)
        rotate(-45deg);
}

.BrandCarousel001_ArrowLeft::after {
    left: 10px;

    transform:
        translateY(7px)
        rotate(45deg);
}

.BrandCarousel001_Arrow:hover {
    background-color: #527a29;

    transform: scale(1.05);

    box-shadow:
        0 3px 10px
        rgba(0, 0, 0, 0.3);
}

.BrandCarousel001_Arrow:focus {
    outline: none;
}

.BrandCarousel001_Arrow:focus-visible {
    outline:
        3px solid
        #9ac566;

    outline-offset: 3px;
}

@media screen and (max-width: 767px) {

    .BrandCarousel001 {
        margin: 24px 0;
    }

    .BrandCarousel001_Text {
        min-height: 42px;

        font-size: 14px;
    }

    .BrandCarousel001_Navigation {
        gap: 18px;

        margin-top: 14px;
    }

    .BrandCarousel001_AllBrands {
        font-size: 15px;
        line-height: 44px;
    }

    .BrandCarousel001_Arrow {
        flex-basis: 44px;

        width: 44px;
        height: 44px;
    }

    .BrandCarousel001_Arrow::before,
    .BrandCarousel001_Arrow::after {
        width: 19px;
        height: 5px;
    }

    .BrandCarousel001_ArrowRight::before {
        left: 10px;

        transform:
            translateY(-6px)
            rotate(45deg);
    }

    .BrandCarousel001_ArrowRight::after {
        left: 10px;

        transform:
            translateY(6px)
            rotate(-45deg);
    }

    .BrandCarousel001_ArrowLeft::before {
        left: 9px;

        transform:
            translateY(-6px)
            rotate(-45deg);
    }

    .BrandCarousel001_ArrowLeft::after {
        left: 9px;

        transform:
            translateY(6px)
            rotate(45deg);
    }

}

@media screen and (max-width: 400px) {

    .BrandCarousel001_Navigation {
        gap: 12px;
    }

    .BrandCarousel001_AllBrands {
        font-size: 14px;
    }

    .BrandCarousel001_Arrow {
        flex-basis: 42px;

        width: 42px;
        height: 42px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .BrandCarousel001_Track {
        transition-duration: 0.01ms;
    }

    .BrandCarousel001_Item img,
    .BrandCarousel001_Arrow {
        transition-duration: 0.01ms;
    }

}

/* 3か所共通の矢印ボタン */
:root {
  --RipkaArrow-Green: #669933;
  --RipkaArrow-GreenHover: #527a29;
  --RipkaArrow-Focus: #9ac566;
  --RipkaArrow-Size: 50px;
  --RipkaArrow-MobileSize: 44px;
  --RipkaArrow-LineSize: 15px;
  --RipkaArrow-LineWidth: 6px;
}

.BrandCarousel001_Arrow,
.bx-wrapper .bx-controls-direction a.bx-prev,
.bx-wrapper .bx-controls-direction a.bx-next,
#pagetop a,
#page-top a,
.pagetop a,
.page-top a,
a#pagetop,
a#page-top,
button#pagetop,
button#page-top,
button.pagetop,
button.page-top {
  position: relative !important;
  display: block !important;
  width: var(--RipkaArrow-Size) !important;
  height: var(--RipkaArrow-Size) !important;
  min-width: var(--RipkaArrow-Size) !important;
  min-height: var(--RipkaArrow-Size) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 3px solid #fff !important;
  border-radius: 50% !important;
  background: var(--RipkaArrow-Green) none !important;
  box-sizing: border-box !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease !important;
}

.BrandCarousel001_Arrow::before,
.bx-wrapper .bx-controls-direction a.bx-prev::before,
.bx-wrapper .bx-controls-direction a.bx-next::before,
#pagetop a::before,
#page-top a::before,
.pagetop a::before,
.page-top a::before,
a#pagetop::before,
a#page-top::before,
button#pagetop::before,
button#page-top::before,
button.pagetop::before,
button.page-top::before {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  display: block !important;
  width: var(--RipkaArrow-LineSize) !important;
  height: var(--RipkaArrow-LineSize) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-top: var(--RipkaArrow-LineWidth) solid #fff !important;
  border-left: var(--RipkaArrow-LineWidth) solid #fff !important;
  border-radius: 2px 0 0 !important;
  background: transparent none !important;
  box-sizing: border-box !important;
  transform-origin: center !important;
}

.BrandCarousel001_Arrow::after,
.bx-wrapper .bx-controls-direction a.bx-prev::after,
.bx-wrapper .bx-controls-direction a.bx-next::after,
#pagetop a::after,
#page-top a::after,
.pagetop a::after,
.page-top a::after,
a#pagetop::after,
a#page-top::after,
button#pagetop::after,
button#page-top::after,
button.pagetop::after,
button.page-top::after {
  content: none !important;
  display: none !important;
}

.BrandCarousel001_ArrowLeft::before,
.bx-wrapper .bx-controls-direction a.bx-prev::before {
  left: 54% !important;
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.BrandCarousel001_ArrowRight::before,
.bx-wrapper .bx-controls-direction a.bx-next::before {
  left: 46% !important;
  transform: translate(-50%, -50%) rotate(135deg) !important;
}

#pagetop a::before,
#page-top a::before,
.pagetop a::before,
.page-top a::before,
a#pagetop::before,
a#page-top::before,
button#pagetop::before,
button#page-top::before,
button.pagetop::before,
button.page-top::before {
  top: 56% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

.bx-wrapper .bx-controls-direction a.bx-prev,
.bx-wrapper .bx-controls-direction a.bx-next {
  position: absolute !important;
  top: 50% !important;
  z-index: 20 !important;
  margin-top: -25px !important;
}

.bx-wrapper .bx-controls-direction a.bx-prev {
  left: 15px !important;
  right: auto !important;
}

.bx-wrapper .bx-controls-direction a.bx-next {
  right: 15px !important;
  left: auto !important;
}

#pagetop,
#page-top,
.pagetop,
.page-top {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  z-index: 1000 !important;
}

a#pagetop,
a#page-top,
button#pagetop,
button#page-top,
button.pagetop,
button.page-top {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  z-index: 1000 !important;
}

.BrandCarousel001_Arrow:hover,
.bx-wrapper .bx-controls-direction a.bx-prev:hover,
.bx-wrapper .bx-controls-direction a.bx-next:hover,
#pagetop a:hover,
#page-top a:hover,
.pagetop a:hover,
.page-top a:hover,
a#pagetop:hover,
a#page-top:hover,
button#pagetop:hover,
button#page-top:hover,
button.pagetop:hover,
button.page-top:hover {
  background: var(--RipkaArrow-GreenHover) none !important;
  transform: scale(1.05);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3) !important;
}

.BrandCarousel001_Arrow:focus,
.bx-wrapper .bx-controls-direction a.bx-prev:focus,
.bx-wrapper .bx-controls-direction a.bx-next:focus {
  outline: none;
}

.BrandCarousel001_Arrow:focus-visible,
.bx-wrapper .bx-controls-direction a.bx-prev:focus-visible,
.bx-wrapper .bx-controls-direction a.bx-next:focus-visible,
#pagetop a:focus-visible,
#page-top a:focus-visible,
.pagetop a:focus-visible,
.page-top a:focus-visible,
a#pagetop:focus-visible,
a#page-top:focus-visible,
button#pagetop:focus-visible,
button#page-top:focus-visible,
button.pagetop:focus-visible,
button.page-top:focus-visible {
  outline: 3px solid var(--RipkaArrow-Focus) !important;
  outline-offset: 3px !important;
}

@media screen and (max-width: 767px) {
  .BrandCarousel001_Arrow,
  .bx-wrapper .bx-controls-direction a.bx-prev,
  .bx-wrapper .bx-controls-direction a.bx-next,
  #pagetop a,
  #page-top a,
  .pagetop a,
  .page-top a,
  a#pagetop,
  a#page-top,
  button#pagetop,
  button#page-top,
  button.pagetop,
  button.page-top {
    width: var(--RipkaArrow-MobileSize) !important;
    height: var(--RipkaArrow-MobileSize) !important;
    min-width: var(--RipkaArrow-MobileSize) !important;
    min-height: var(--RipkaArrow-MobileSize) !important;
  }

  .BrandCarousel001_Arrow {
    flex-basis: var(--RipkaArrow-MobileSize) !important;
  }

  .bx-wrapper .bx-controls-direction a.bx-prev,
  .bx-wrapper .bx-controls-direction a.bx-next {
    margin-top: -22px !important;
  }

  .bx-wrapper .bx-controls-direction a.bx-prev {
    left: 10px !important;
  }

  .bx-wrapper .bx-controls-direction a.bx-next {
    right: 10px !important;
  }

  #pagetop,
  #page-top,
  .pagetop,
  .page-top,
  a#pagetop,
  a#page-top,
  button#pagetop,
  button#page-top,
  button.pagetop,
  button.page-top {
    right: 12px !important;
    bottom: 12px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .BrandCarousel001_Arrow,
  .bx-wrapper .bx-controls-direction a.bx-prev,
  .bx-wrapper .bx-controls-direction a.bx-next,
  #pagetop a,
  #page-top a,
  .pagetop a,
  .page-top a {
    transition-duration: 0.01ms !important;
  }
}

