* {
  font-family: "Pacifico", cursive,"Kaisei HarunoUmi", serif;
  font-weight: 400;
  font-style: normal;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
li {
  list-style: none;
}
a {
  text-decoration: none;
  color: #fff;
}

body {
  width: 100%;
  height: 100vh;
  background: #000;

}
header {
  width: 100%;
  height: 10vh;
}
main {
  width: 100%;
  height: 70vh;
}
footer {
  width: 100%;
  height: 15vh;
}
h2 {
  font-size: 3vw;
  color: #fff;
}
.star {
  position: fixed;
  top: -15px;
  left: -15px;
  width: 150px;
  height: 150px;
  background: url(../../star.png) 60% 60% no-repeat;
  background-size: contain;
  z-index: 2;
  animation: star 2.5s ease-out 0s forwards;
}

@keyframes star {
  0% {
    transform: translateY(0) rotate(-5deg);
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: translateY(50px) rotate(5deg);
    opacity: 0;
  }
}

#loadingWrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  width: 100%;
  height: 100vh;
  background-color: #333;
  color: #fff;
  z-index: 9999;
}
.hideLoadingWrap {
  transition: opacity 1s;
  opacity: 0 !important;
}

.loading-text {
  font-size: 3rem;
  display: flex;
}

/* 各文字に対するアニメーション */
.loading-text span {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

/* アニメーションのキーフレーム */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*========= ナビゲーションのためのCSS ===============*/

#hbMenu {
  position:fixed;
  top:10px;
  right: 30px;
  z-index: 9999;
  cursor: pointer;
  width: 50px;
  height:50px;
  }
#hbMenu span {
  display: inline-block;
  width: 80%;
  height: 5px;
  background-color: #13AEC0;
  position: absolute;
  border-radius: 2px;
  transition: all .4s;
  left: 5px;
}
#hbMenu span:nth-child(1) {
  top:10px;	
}
#hbMenu span:nth-child(2) {
  top:27px;
}
#hbMenu span:nth-child(3) {
  top:43px;
}
.open #hbMenu span:nth-child(1) {
  top: 18px;
  left: 18px;
  transform: translateY(6px) rotate(-45deg);
  width: 80%;
  border-radius: 2px;

}
.open #hbMenu span:nth-child(3) {
  top: 30px;
  left: 18px;
  transform: translateY(-6px) rotate(45deg);
  width: 80%;
  border-radius: 2px;

}
.open #hbMenu span:nth-child(2) {
  opacity: 0;
}
#spmenu {
  width: 100%;
  height: 100vh;
  background-color: #EFF2DE;
  position: fixed;
  transform: translateY(300vh);
  top: 0;
  left: 0;
  z-index: 999;
  transition: 0.5s;
}

.open #spmenu {
  width: 100%;
  height: 100vh;
  background-color: #EFF2DE;
  position: fixed;
  transform: translateY(0);
  top: 0;
  left: 0;
}
#spmenu ul {
  width: 100%;
  height: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#spmenu a {
  color: #08464D;
  text-decoration: none;
  padding:10px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: bold;
  font-size: 3.5vw;
  }

/* 上の段 */
#box1 {
  overflow: hidden;
  width: 80%;
  height: 35vh;
  margin-left: auto;
  margin-right: auto;
}
#profile {
  width: 17vw;
  height: 17vw;
  float: left;
}
#profile h2 {
  padding-top: 5vw;
  text-align: center;
}
#profile:hover {
  background-image: url(../image/top_image/fairy-profile@2x.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
#products {
  width: 17vw;
  height: 17vw;
  float: right;
}
#products h2 {
  padding-top: 5vw;
  text-align: center;
}
#products:hover {
  background-image: url(../image/top_image/fairy-products@2x.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* 下の段 */
#box2 {
  overflow: hidden;
  width: 80%;
  height: 35vh;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
}
#skill {
  width: 17vw;
  height: 17vw;
  
}
#skill h2 {
  padding-top: 5vw;
  text-align: center;
}
#skill:hover {
  background-image: url(../image/top_image/fairy-skill@2x.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* フッターエリア */
#footerInner {
  width: 80%;
  height: 13vh;
  display: flex;
  justify-content: space-between;
  margin-left: auto;
  margin-right: auto;
}
#contact {
  width: 14vw;
  height: 8vw;
}
#contact:hover {
  background-image: url(../image/top_image/mail@2x.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
#contact p {
  display: block;
  text-align: center;
  margin-top: 2vw;
  font-size: 2.5vw;
}
#copy {
  width: 20vw;
  height: 3vw;
  text-align: center;
  margin-top: 5vw;
}
small {
  color: #17D2E7;
}
#home {
  width: 14vw;
  height: 9vw;
}
#home:hover {
  background-image: url(../image/top_image/house@2x.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
#home p {
  display: block;
  text-align: center;
  margin-top: 2vw;
  font-size: 2vw;
}
