/*TO DO LIST
- REPLACE FONT LINK
- ADD PRIMARY COLOR
*/
@media (max-width: 767px) {
  .hide-for-small {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .show-for-small {
    display: none !important;
  }
}
/*LOADING*/

#loading {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 9000;
  background-color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#loading .loading-inner {
  display: none;
}

/*BASE*/
html {
  font-size: 62.5%;
  overflow-y: scroll;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.6rem;
  -webkit-text-size-adjust: none;
  color: #3f3f3f;
  font-weight: 400;
  font-style: normal;
  overflow: hidden;
  --primary-color: #000000;
}

a {
  transition: all 0.5s;
}

a:not(.btn):hover {
  opacity: 0.6;
}

/*GO TOP BUTTON*/
#go-top {
  position: fixed;
  bottom: -120px;
  right: 15px;
  opacity: 0;
  transition: all 0.3s;
  z-index: 99;
  border-radius: 50%;
  right: 0;
  border-radius: 20px 0 0 20px;
}

#go-top.show {
  opacity: 1;
  bottom: 15px;
}

#go-top a {
  display: flex;
  flex-direction: column;
  width: 60px;
  height: 122px;
  overflow: hidden;
}

#go-top a:hover {
  opacity: 0.7;
}

#go-top a img {
  margin: 0 auto;
}
/*FONT*/
.ff-noto {
  font-family: "Noto Sans JP", sans-serif;
}

/*ANIMATION*/
.anim {
  opacity: 0;
}

.anim.blur.is-animated,
.add-animation .anim.blur {
  animation-name: blurAnime;
  animation-duration: 1s;
  animation-fill-mode: forwards;
}

@keyframes blurAnime {
  from {
    filter: blur(10px);
    transform: scale(1.02);
  }
  to {
    filter: blur(0);
    transform: scale(1);
  }
}

.anim.fade {
  opacity: 0;
}

.anim.fade.is-animated {
  opacity: 1;
  animation-name: fade;
  animation-duration: 2s;
}

.anim.slideinBottom.is-animated {
  opacity: 1;
  animation-name: slideinBottom;
  animation-duration: 0.5s;
}

@keyframes slideinBottom {
  0% {
    transform: translateY(100px);
  }
  100% {
    transform: translateY(0);
  }
}

.anim.faderight.is-animated {
  opacity: 1;
  animation-name: faderight;
  animation-duration: 2s;
}

.anim.fade.is-animated {
  opacity: 1;
  animation-name: fade;
  animation-duration: 2s;
}

.anim.fadeleft.is-animated {
  opacity: 1;
  animation-name: fadeleft;
  animation-duration: 2s;
}

.anim.fadeup.is-animated {
  animation: fadeup 1s cubic-bezier(0.33, 1, 0.68, 1) forwards;
  opacity: 1;
}

.anim.fadeup-2.is-animated {
  opacity: 1;
  animation-name: fadeup-2;
  animation-duration: 0.5s;
}

.home .anim.fadedown.is-animated {
  opacity: 1;
  animation-name: fadedown;
  animation-duration: 0.5s;
}

.anim.zoomin.is-animated {
  animation: zoomIn 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes zoomIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes faderight {
  from {
    opacity: 0;
    transform: translateX(-150px);
  }
  to {
    opacity: 1;
    transform: translateX(0px);
  }
}

@keyframes fadedown {
  from {
    opacity: 0;
    transform: translateY(-150px);
  }
  to {
    opacity: 1;
    transform: translateX(0px);
  }
}

@keyframes fadeup {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeup-2 {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0px);
  }
}

@keyframes fadeleft {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0px);
  }
}

.anim.effectfade {
  opacity: 0;
  transform: translate(0, 20px);
  transition: all 1.5s ease;
}

.anim.effectfade.is-animated {
  opacity: 1;
  transform: translate(0, 0);
}

/*HEADER*/
.header-main .logo-left .logo {
  margin-right: 0px;
  width: 420px;
  line-height: 1;
  padding: 0;
  position: relative;
}

.header-inner {
  position: static;
  padding-left: 60px;
  padding-right: 10px;
}

#logo .header-logo {
  width: 100%;
}

.header-main .main-menu {
  flex: 1;
  margin-left: 20px;
}

.header-main .main-menu .nav {
  position: static;
  width: fit-content;
  margin-left: auto;
  margin-right: 0;
  margin-bottom: 0;
  margin-top: 25px;
}

.header-main .main-menu .nav > li {
  margin: 0;
  position: static;
  transition: 0.3s;
  padding-bottom: 0px;
  margin-right: 50px;
}

.header-main .main-menu .nav > li:last-child {
  margin-right: 50px;
}

.header-main .main-menu .nav > li > a {
  font-weight: 400;
  padding: 0;
  color: #4d4d4d;
  text-align: center;
  transition: 0.3s;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  letter-spacing: 0.05em;
  min-height: 48px;
}

.header-main .main-menu .nav > li > a::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  /*線になる丸の形状*/
  width: 100%;
  height: 3px;
  background: #87c153;
  /*アニメーションの指定*/
  transition: all 0.3s;
  transform: scale(0, 1);
  /*X方向にスケール拡大*/
}

/* .header-main .main-menu .nav>li>a span {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    padding-top: 5px;
} */

.header-main .main-menu .nav > li:nth-last-child(1) {
  border-right: none;
}

.box-main-menu {
  position: static;
}

.header-main .main-menu .nav > li > a:hover,
.header-main .main-menu .nav > li.current > a {
  opacity: 1;
}

@media (min-width: 768px) {
  .header-main .main-menu .nav > li.current > a::after,
  .header-main .main-menu .nav > li:hover > a::after {
    opacity: 1;
    width: 100%;
    transform: scale(1, 1);
    /*X方向にスケール拡大*/
  }
}

.main-menu li.nav-item:hover > a span::after,
.main-menu li.nav-item.current > a span::after {
  left: 50%;
  opacity: 1;
}

.loading-active main {
  opacity: 0;
}

.loading-active header {
  opacity: 0;
}

.loading-active footer {
  opacity: 0;
}

/*MEGA MENU*/
.mega-menu {
  left: 0;
  position: absolute;
  text-align: left;
  width: 100%;
  text-align: center;
  padding-top: 0px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: -1;
  visibility: hidden;
  top: 117px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.95);
}

.header-main .main-menu .nav > li.nav-mega:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  top: 135px;
  z-index: 12;
}
