#top {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.main-slider {
  height: 100vh;
  left: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: -1;
}

.main-slider-image {
  -webkit-animation: fadeBackground 24s infinite;
  animation: fadeBackground 24s infinite;
  background-position: center center;
  background-size: cover;
  height: 100%;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.main-slider-image:nth-child(1) {
  -webkit-animation: none;
  animation: none;
  background-image: url("../img/top-01.jpg");
  opacity: 1;
}

.main-slider-image:nth-child(2) {
  -webkit-animation-delay: 6s;
  animation-delay: 6s;
  background-image: url("../img/top-02.jpg");
}

.main-slider-image:nth-child(3) {
  -webkit-animation-delay: 12s;
  animation-delay: 12s;
  background-image: url("../img/top-03.jpg");
}

.main-slider-image:nth-child(4) {
  -webkit-animation-delay: 18s;
  animation-delay: 18s;
  background-image: url("../img/top-04.jpg");
}

@-webkit-keyframes fadeBackground {
  0% {
    opacity: 0
  }

  5% {
    opacity: 1
  }

  30% {
    opacity: 1
  }

  35% {
    opacity: 0
  }

  100% {
    opacity: 0
  }
}

@keyframes fadeBackground {
  0% {
    opacity: 0
  }

  5% {
    opacity: 1
  }

  30% {
    opacity: 1
  }

  35% {
    opacity: 0
  }

  100% {
    opacity: 0
  }
}

.main-logo {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  width: 1080px;
  margin: 0 auto;
  text-align: left;
}

.main-logo > img {
  position: relative;
  height: 50vh;
}

#message-1 {
  position: relative;
  background-color: #fff;
  overflow: hidden;
  padding: 100px 0;
}

.message-box {
  position: relative;
  width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.message-text {
  writing-mode: vertical-rl;
  text-align: left;
}

.message-text > p {
  margin-right: 1rem;
  line-height: 2;
  letter-spacing: 4px;
  font-weight: bold;
  font-size: .9rem;
}

.message-img {
  position: relative;
  width: 30%;
  display: flex;
  flex-direction: column;
}

.message-img > img {
  position: relative;
  width: 80%;
}

.message-img:first-child {
  align-self: flex-start;
}

.message-img:first-child > img:first-child {
  margin-left: auto;
}

.message-img:first-child > img:last-child {
  margin-right: auto;
  margin-top: .5rem;
}

.message-img:last-child {
  align-self: flex-end;
}

.message-img:last-child > img:first-child {
  margin-left: auto;
}

.message-img:last-child > img:last-child {
  margin-right: auto;
  margin-top: .5rem;
}

#message-2 {
  position: relative;
  background: rgba(0, 0, 0, 0.5);
  overflow: hidden;
  padding: 100px 0;
}

.message-2-img {
  position: relative;
  width: 65%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-right: 1rem;
}

.message-2-img-box {
  position: relative;
  margin-right: 2rem;
  width: 50%;
}

.message-2-img > img {
  position: relative;
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.message-2-img > .message-2-img-box > img {
  width: 100%;
}

.message-2-img > .message-2-img-box > img:first-child {
  margin-bottom: .5rem;
  margin-left: auto;
}

.message-2-img > .message-2-img-box > img:nth-of-type(2) {
  width: 100%;
}

.message-2-text {
  position: relative;
  writing-mode: vertical-rl;
  text-align: left;
  width: calc(100% - (65% + 1rem));
}

.message-2-text > p {
  color: #fff;
  letter-spacing: 2px;
  line-height: 2;
}

.message-2-text > p:last-child {
  font-size: 2rem;
}

.message-2-text > p:last-child > span {
  font-size: 1rem;
  margin-bottom: .5rem;
}

#gallery {
  position: relative;
  background-color: #fff;
  overflow: hidden;
  padding: 100px 0;
}

.gallery-slider {
  position: relative;
  width: 1180px;
  height: 664px;
  margin: 0 auto;
  z-index: 100;
}

.gallery-slider-image {
  position: absolute;
  -webkit-animation: fadeBackground 24s infinite;
  animation: fadeBackground 24s infinite;
  background-position: center center;
  background-size: cover;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
}

.gallery-slider-image:nth-child(1) {
  -webkit-animation: none;
  animation: none;
  background-image: url("../img/gallery-1.jpg");
  opacity: 1;
}

.gallery-slider-image:nth-child(2) {
  -webkit-animation-delay: 6s;
  animation-delay: 6s;
  background-image: url("../img/gallery-2.jpg");
}

.gallery-slider-image:nth-child(3) {
  -webkit-animation-delay: 12s;
  animation-delay: 12s;
  background-image: url("../img/gallery-3.jpg");
}

#reserve {
  position: relative;
  background: rgba(0, 0, 0, 0.5);
  overflow: hidden;
  padding: 100px 0;
}

#reserve > h2 {
  color: #fff;
  writing-mode: vertical-rl;
  margin: 0 auto;
  font-size: 2.5rem;
}

#reserve > a {
  display: block;
  font-size: 2rem;
  color: #fff;
  margin: 1rem auto 2rem;
}

.map {
  position: relative;
  display: flex;
  width: 1180px;
  margin: 2rem auto 0;
  align-items: center;
}

.map > a {
  position: relative;
  display: block;
  width: 48%;
  margin-right: 2%;
}

.map > a > img {
  width: 100%;
}

.map-text {
  position: relative;
  width: 50%;
  text-align: left;
}

.map-text > h3,
.map-text > p {
  color: #fff;
  margin-bottom: 1rem;
}

@media screen and (max-width: 1180px) {
  .main-slider-image:nth-child(1) {
    -webkit-animation: none;
    animation: none;
    background-image: url("../img/top-sp-01.png");
    opacity: 1;
  }

  .main-slider-image:nth-child(2) {
    -webkit-animation-delay: 6s;
    animation-delay: 6s;
    background-image: url("../img/top-sp-02.png");
  }

  .main-slider-image:nth-child(3) {
    -webkit-animation-delay: 12s;
    animation-delay: 12s;
    background-image: url("../img/top-sp-03.png");
  }

  .main-slider-image:nth-child(4) {
    -webkit-animation-delay: 18s;
    animation-delay: 18s;
    background-image: url("../img/top-sp-04.png");
  }
  .main-logo {
    align-items: flex-start;
    padding: 5%;
  }
  .message-box {
    width: 100%;
    flex-wrap: wrap;
  }
  .message-img {
    width: 100%;
  }
  .message-text {
    margin: 1.5rem auto;
  }
  .message-2-img {
    width: 100%;
    margin-right: 0;
  }
  .message-2-img-box {
    margin-right: 1rem;
  }
  .message-2-text {
    position: relative;
    width: 100%;
    height: 100vh;
    margin-top: 1rem;
    padding: 5%;
  }
  .gallery-slider {
    width: 90%;
    height: 56.666vw;
  }
  .map {
    width: 90%;
    margin: 0 auto;
    flex-wrap: wrap;
  }
  .map > a {
    width: 100%;
  }
  .map-text {
    width: 100%;
    margin-top: 1rem;
  }
}