@charset "UTF-8";

@import url("https://fonts.googleapis.com/css2?family=Lato:wght@100&display=swap");

*,
*::after,
*::before {
  box-sizing: border-box;
}

/* Default Styling */
body {
  font-family: "Lato", sans-serif;
  margin: 0;
  width: 100%;
  min-height: 100vh; /* Fallback */
  min-height: calc(var(--vh, 1vh) * 100);
  /* mobile viewport bug fix */
  min-height: -webkit-fill-available;
}

/* Avoid Chrome to see Safari hack */
@supports (-webkit-touch-callout: none) {
  body {
    /* The hack for Safari */
    height: -webkit-fill-available;
  }
}

h1,
h2,
p,
a {
  color: #fff;
  font-size: clamp(0.75rem, 2vw + 1rem, 1.5rem);
  letter-spacing: 2px;
  line-height: 1.5;
}

p {
  text-align: center;
}

.box2-area {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  width: 150px;
}

.box3-area {
  background-color: rgba(253, 119, 119, 0.5);
  border-radius: 5px;
  width: 150px;
  padding: 5px 0;
}

.box4-area {
  background-color: rgba(253, 119, 119, 0.5);
  border-radius: 5px;
  width: 150px;
  padding: 5px 0;
}

.box5-area {
  background-color: rgba(253, 119, 119, 0.5);
  border-radius: 5px;
  width: 150px;
  padding: 5px 0;
}

.background {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  z-index: 0;
  background: url("../img3/aurora.jpg");
  background-size: cover;
  z-index: -1;
}

.box {
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#box1 {
  background-size: cover;
}

#box2 {
  background: url("../img3/sakura.jpg");
  background-size: cover;
}

#box3 {
  background: url("../img3/green.jpg");
  background-size: cover;
}

#box4 {
  background: url("../img3/fukurou-photpshop.jpg");
  background-size: cover;
  background-position: left 35% bottom 45%;
}

#box5 {
  background: url("../img3/wave-back-chou.jpg");
  background-size: cover;
  height: 100vh;
}

#box__footer {
  background: #333;
}

#box__footer a {
  color: #fff;
}

h4.copyright {
  padding-top: 20%;
}

span.hover-text {
  transform: translateY(-4px);
}

/*========= ページネーションCSS ===============*/

.pagination {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1em;
  z-index: 10;
  list-style: none;
}

.pagination a {
  display: block;
  height: 20px;
  margin-bottom: 5px;
  color: #fff;
  position: relative;
  padding: 4px;
}

.pagination a.active:after {
  box-shadow: inset 0 0 0 5px;
}

/*現在地表示のテキストの設定*/
.pagination a .hover-text {
  position: absolute;
  vertical-align: baseline;
  right: 15px;
  top: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  padding-right: 15px;
  font-size: 1rem;
}

.pagination a:hover .hover-text {
  opacity: 1;
}

.pagination a:after {
  transition: box-shadow 0.5s ease;
  width: 10px;
  height: 10px;
  display: block;
  border: 1px solid;
  border-radius: 50%;
  content: "";
  position: absolute;
  margin: auto;
  top: 0;
  right: 3px;
  bottom: 0;
}

/*768px以下は現在地表示のテキストを非表示*/
@media screen and (max-width: 768px) {
  .pagination a .hover-text {
    display: none;
  }
}

/* fadeIn */
.fadeIn {
  -webkit-animation-name: fadeInAnime;
  animation-name: fadeInAnime;
  -webkit-animation-duration: 3s;
  animation-duration: 3s;
  -webkit-animation-delay: 0.5s;
  animation-delay: 0.5s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  opacity: 0;
}

@-webkit-keyframes fadeInAnime {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInAnime {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* スクロールをしたら出現する要素にはじめに透過0を指定　*/

.fadeInTrigger {
  opacity: 0;
}

.shutter {
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #1e1e1e;
  z-index: 9999;
  -webkit-animation: byeShutter 2.6s forwards;
  animation: byeShutter 2.6s forwards;
}
.shutter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  margin: auto;
  background: linear-gradient(
    0deg,
    rgba(30, 30, 30, 1),
    rgba(24, 235, 242, 1) 50%,
    rgba(30, 30, 30, 1)
  );
  width: 0;
  height: 1px;
  -webkit-animation: shutterOpen1 2.6s forwards;
  animation: shutterOpen1 2.6s forwards;
}

@-webkit-keyframes byeShutter {
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    display: none;
    z-index: -1;
  }
}
@keyframes byeShutter {
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    display: none;
    z-index: -1;
  }
}
@-webkit-keyframes shutterOpen1 {
  0% {
    width: 0;
    height: 0.1px;
  }
  50% {
    width: 100%;
    height: 0.1px;
  }
  90% {
    width: 100%;
    height: 100%;
  }
  100% {
    width: 100%;
    height: 100%;
  }
}
@keyframes shutterOpen1 {
  0% {
    width: 0;
    height: 0.1px;
  }
  50% {
    width: 100%;
    height: 0.1px;
  }
  90% {
    width: 100%;
    height: 100%;
  }
  100% {
    width: 100%;
    height: 100%;
  }
}
