/* Footer Fixed Buttons - Mobile Only */
.footer-fix_btn-sp {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  opacity: 0;
}

.footer-fix_btn-sp.visible {
  transform: translateY(0);
  opacity: 1;
}

.footer-fix_btn-sp_inner {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.footer-fix_btn-sp_item {
  text-align: center;
}

.footer-fix_btn-sp_item_link {
  display: block;
  padding: 10px 5px;
  font-weight: normal;
  text-decoration: none;
  position: relative;
  transition: transform 0.15s ease, background-color 0.15s ease;
  overflow: hidden;
}

.footer-fix_btn-sp_item_link:active {
  transform: scale(0.95);
}

.footer-fix_btn-sp_item_link::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.footer-fix_btn-sp_item.line {
  width: 38%;
  font-size: 1.5rem;
  color: #fff;
  line-height: 3rem;
  background: linear-gradient(90deg, #604c11,#a38b4e);
}

.footer-fix_btn-sp_item.line .footer-fix_btn-sp_item_link:active {
  background-color: rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.footer-fix_btn-sp_item.instagram {
  width: 38%;
  font-size: 1.2rem;
  color: #fff;
  line-height: 3rem;
  background: linear-gradient(90deg, #1b1e28,#4f5c84);
}

.footer-fix_btn-sp_item.instagram .footer-fix_btn-sp_item_link:active {
  background-color: rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.footer-fix_btn-sp_item.instagram img {
  width: 24px;
  height: 24px;
  margin-right: 5px;
}

.footer-fix_btn-sp_item.top {
  width: 24%;
  font-size: 1.7rem;
  color: #a38b4e;
  line-height: 3rem;
  background-color: #fff;
}

.footer-fix_btn-sp_item.top .footer-fix_btn-sp_item_link:active {
  background-color: rgba(163, 139, 78, 0.1);
  box-shadow: inset 0 0 10px rgba(163, 139, 78, 0.2);
}

/* PC-only Fixed Buttons */
.footer-fix_btn {
  display: block;
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  width: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(-100%);
  transition: all 0.5s ease;
}

.footer-fix_btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.footer-fix_btn_inner {
  display: flex;
  flex-direction: column;
  width: auto;
}

.footer-fix_btn_item {
  text-align: center;
  width: 100px;
  height: 100px;
}

.footer-fix_btn_item_link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 10px;
  color: #fff;
  font-weight: normal;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-fix_btn_item_link:hover {
  opacity: 0.9;
  transform: translateX(3px);
}

.footer-fix_btn_item.line {
  font-size: 2.4rem;
  background: linear-gradient(90deg, #604c11,#a38b4e);
}

.footer-fix_btn_item.instagram {
  font-size: 1.2rem;
  background: linear-gradient(90deg, #1b1e28,#4f5c84);
}

.footer-fix_btn_item.instagram img {
  width: 48px;
  height: 48px;
  margin-bottom: 5px;
}

@media only screen and (max-width: 767px) {
  .footer-fix_btn-sp {
    display: block;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  .footer-fix_btn {
    display: none;
  }
}
