@charset "utf-8";

/* ========================================
   共通アニメーションCSS - 全ページ共通のアニメーション・ホバー
   ======================================== */

/* お問い合わせ右上 ホバー */
.contactTop :nth-child(2){
  box-sizing: border-box;
  transition: all .3s;
}
.contactTop :nth-child(2):hover{
  border: 1px solid var(--color-white);
  border-radius: 15px;
  cursor: pointer;
}

/* スクロール矢印アニメーション */
.under{
  animation: move-y 0.5s infinite alternate ease-in-out;
  display: inline-block;
}
@keyframes move-y {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}

/* 上部メニュー ホバー */
.menu li{
  background:
    linear-gradient(currentColor 0 0)
    bottom /var(--d, 0) 1px
    no-repeat;
  transition: 0.5s;
  cursor: pointer;
}
.menu li:hover{
  --d: 100%;
  color: var(--color-primary);
}

/* お問い合わせボタン ホバー */
.contactItem{
  transition: background 0.8s;
  cursor: pointer;
}
.contactItem:hover{
  background: var(--color-dark);
  box-shadow: -10px 10px 6px 0 rgba(0, 0, 0, 0.25);
}

/* 下部ナビ ホバー */
.navBarBottom li{
  background:
    linear-gradient(currentColor 0 0)
    bottom /var(--d, 0) 1px
    no-repeat;
  transition: 0.5s;
  cursor: pointer;
}
.navBarBottom li:hover{
  --d: 100%;
  color: var(--color-primary);
}

/* バブルアニメーション */
.bubbles{
  position: fixed;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  top: 0;
  left: 0;
}
.bubble{
  position: absolute;
  bottom: -40px;
  width: 40px;
  height: 40px;
  background-color: transparent;
  border: 2px solid var(--color-light);
  background: var(--color-light);
  border-radius: 50%;
  animation: bubble 10s ease-in infinite;
}
.bubble:nth-child(1){
  width: 20px;
  height: 20px;
  left: 30%;
  animation-duration: 6s;
}
.bubble:nth-child(2){
  left: 20%;
  animation-duration: 3.5s;
}
.bubble:nth-child(3){
  width: 30px;
  height: 30px;
  left: 30%;
  animation-duration: 7s;
}
.bubble:nth-child(4){
  width: 50px;
  height: 50px;
  left: 67%;
  animation-duration: 6s;
}
.bubble:nth-child(5){
  width: 20px;
  height: 20px;
  left: 70%;
  animation-duration: 4.5s;
}
.bubble:nth-child(6){
  width: 50px;
  height: 50px;
  left: 1%;
  animation-duration: 6.5s;
}
.bubble:nth-child(7){
  width: 70px;
  height: 70px;
  left: 90%;
  animation-duration: 5.5s;
}
@keyframes bubble {
  0% {
    bottom: -100px;
    transform: translateX(0);
  }
  50% {
    transform: translateX(100px);
  }
  100% {
    bottom: 1000px;
  }
}

/* タイトルアニメーション */
@keyframes titleAnimation{
  0%{
    letter-spacing: .3em;
    opacity: 0;
  }
}
h1{
  animation: titleAnimation 1.5s;
}
@keyframes titleAnimation2{
  0%{
    opacity: 0;
  }
}
.contactTopOut img{
  animation: titleAnimation2 2s;
}
.contactTop{
  animation: titleAnimation2 2s;
}
.scroll{
  animation: titleAnimation2 2s;
}
.menu{
  animation: titleAnimation2 2s;
}

/* ヘッダー非表示アニメーション */
.hide{
  filter: opacity(5%);
}
header{
  transition: 1s;
}

/* スクロール表示アニメーション共通 */
.AN{
  opacity: 0;
  transform: translateY(50px);
  transition: 1s;
}
.AN.show{
  opacity: 1;
  transform: none;
}
