@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400&display=swap');

:root {
  --bs-scroll-down-position-bottom: 75px;
}

.scroll_down{
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: arrowmove_hero 2s ease-in-out infinite;
}

.scroll_down a{
  position: absolute;
  left: -24px;
  bottom: calc(var(--bs-scroll-down-position-bottom) + 12px);
  color: #fff;
  font-size: 14px;
  font-family: 'Josefin Sans', sans-serif;
  letter-spacing: .2em;
  writing-mode: vertical-rl;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  transition: color 0.3s ease;
}

/* .scroll_down a:hover {
  color: #ffd700;
} */

.scroll_down:before {
    content: "";
    position: absolute;
    bottom: var(--bs-scroll-down-position-bottom);
    right: -6px;
    width: 2px;
    height: 20px;
    background: #fff;
    transform: skewX(-31deg);
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: background 0.3s ease;
}

.scroll_down:hover:before {
    background: #ffd700;
}

.scroll_down:after{
  content:"";
  position: absolute;
  bottom: var(--bs-scroll-down-position-bottom);
  right: 0;
  width: 2px;
  height: 85px;
  background: #fff;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  transition: background 0.3s ease;
}

/* .scroll_down:hover:after{
  background: #ffd700;
} */

@keyframes arrowmove_hero {
  0% { 
    bottom: 40px; 
    opacity: 0.7;
  }
  50% { 
    bottom: 50px; 
    opacity: 1;
  }
  100% { 
    bottom: 40px; 
    opacity: 0.7;
  }
}

@keyframes arrowmove{
   0% { 
     bottom: 40px; 
     opacity: 0.7;
   }
   50% { 
     bottom: 50px; 
     opacity: 1;
   }
   100% { 
     bottom: 40px; 
     opacity: 0.7;
   }
}

/* 画面中央下配置用スクロールダウン */
.scroll_down_center {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  animation: arrowmove_center 2s ease-in-out infinite;
}

.scroll_down_center a {
  position: absolute;
  left: -24px;
  bottom: calc(var(--bs-scroll-down-position-bottom) + 12px);
  color: #333;
  font-size: 14px;
  font-family: 'Josefin Sans', sans-serif;
  letter-spacing: .2em;
  writing-mode: vertical-rl;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

/* .scroll_down_center a:hover {
  color: #d2691e;
} */

.scroll_down_center:before {
  content: "";
  position: absolute;
  bottom: var(--bs-scroll-down-position-bottom);
  right: -6px;
  width: 2px;
  height: 20px;
  background: #333;
  transform: skewX(-31deg);
  transition: background 0.3s ease;
}

.scroll_down_center:hover:before {
  background: #d2691e;
}

.scroll_down_center:after {
  content: "";
  position: absolute;
  bottom: var(--bs-scroll-down-position-bottom);
  right: 0;
  width: 2px;
  height: 85px;
  background: #333;
  transition: background 0.3s ease;
}

/* .scroll_down_center:hover:after {
  background: #d2691e;
} */

@keyframes arrowmove_center {
  0% { 
    bottom: 40px; 
    opacity: 0.7;
  }
  50% { 
    bottom: 50px; 
    opacity: 1;
  }
  100% { 
    bottom: 40px; 
    opacity: 0.7;
  }
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
  :root {
    --bs-scroll-down-position-bottom: -10px;
  }
  
  .scroll_down {
    bottom: 10px;
  }
  
  .scroll_down a {
    font-size: 12px;
  }
  
  .scroll_down:after {
    height: 70px;
  }
  
  .scroll_down_center {
    bottom: 30px;
  }
  
  .scroll_down_center a {
    font-size: 12px;
  }
  
  .scroll_down_center:after {
    height: 70px;
  }
  
  @keyframes arrowmove_hero {
    0% { 
      bottom: 10px; 
      opacity: 0.7;
    }
    50% { 
      bottom: 20px; 
      opacity: 1;
    }
    100% { 
      bottom: 10px; 
      opacity: 0.7;
    }
  }
  
  @keyframes arrowmove_center {
    0% { 
      bottom: 30px; 
      opacity: 0.7;
    }
    50% { 
      bottom: 40px; 
      opacity: 1;
    }
    100% { 
      bottom: 30px; 
      opacity: 0.7;
    }
  }
}

@media (max-width: 575px) {
  .scroll_down:after {
    height: 50px;
  }
  .scroll_down a{
    left: -18px;
    bottom: var(--bs-scroll-down-position-bottom);
    font-size: 9px;
  }
}