.p-header {
  position: sticky;
  top: 0px;
  background-color: #F3F3B4;
  width: 100%;
  transform: translate3d(0, 0, 0);
  z-index: 10000;
}

.p-header__logoImg {
  width: 55px;
  margin: 0 auto;
}

.p-header__main {
  position: relative;
  overflow: hidden;
  width: 95%;
  margin: auto;
  border-radius: 30px;
}

.p-header__mainImg {
  width: 100%;
  height: 87vh;
  object-fit: cover;
  filter: brightness(0.98) contrast(1.10) saturate(0.85);
}

.p-header__banner {
  width: 230px;
  display: block;
  border-radius: 300%;
  box-shadow: 0 4px 20px rgb(22, 22, 22);
}

.p-header__bannerLink {
  position: absolute;
  bottom: 40px;
  right: 90px;
  display: inline-block;
  transition: transform 0.3s ease;
  z-index: 10;
  transform-origin: bottom right;
  animation: float 3s ease-in-out infinite;
}

.p-header__bannerLink:hover {
  animation: bounce 0.6s ease;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.1, 0.9);
  }

  50% {
    transform: scale(0.95, 1.05);
  }

  70% {
    transform: scale(1.05, 0.95);
  }
}

/* SNSリンク */
.cp_snslink03 {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 0;
  z-index: 20000;
}

.cp_snslink03 .cp_link {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 55px;
  height: 45px;
  background: transparent;
  border-radius: 50%;
  transition: transform 0.4s ease-in-out;
}

.cp_snslink03 .cp_link img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.4s ease-in-out, filter 0.4s ease-in-out;
}

.cp_snslink03 .cp_link:hover img {
  transform: scale(1.2);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
}


.cp_snslink03 .cp_link::after {
  content: attr(data-text);
  position: absolute;
  right: 70px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-size: 14px;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s, transform 0.3s ease-in-out;
  transform: translateX(10px);
}

.cp_snslink03 .cp_link:hover::after,
.cp_snslink03 .cp_link:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

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

  .p-header__main {
    margin-top: 0;
  }

  .p-header__mainImg {
    height: 50vh;
  }

  .p-header__bannerLink {
    bottom: 30px;
    right: 40px;
  }

  .p-header__banner {
    width: 180px;
  }
}

@media screen and (max-width: 767px) {
  .cp_snslink03 {
    display: none;
  }
}

@media screen and (max-width: 600px) {
  .p-header__mainImg {
    height: 45vh;
  }

  .p-header__bannerLink {
    bottom: 20px;
    right: 20px;
  }

  .p-header__banner {
    width: 140px;
  }
}

@media screen and (max-width: 480px) {
  .p-header__mainImg {
    height: 35vh;
  }

  .p-header__main {
    margin-top: 0;
    border-radius: 10px;
  }

  .p-header__bannerLink {
    bottom: 13px;
    right: 20px;
  }

  .p-header__banner {
    width: 80px;
  }
}