@charset "utf-8";

.container {
  width: 100%;
  margin: 0 auto;
  padding-top: 80px;
}

.map {
  position: relative;
  width: 100%;
  height: auto;
  z-index: 1;
}

.map picture {
  width: 100%;
  display: block;
}

h1 {
  position: absolute;
  top: 17.5%;
  left: 30.5%;
  z-index: 2;
  transform: translate(-50%,-50%);
  font-size: min(4.651162790697675vw, 20px);
  line-height: 1.5;
  color: #002F51;
  text-align: center;
  margin-block: var(--leading-trim);
}

.button {
  position: absolute;
  bottom: 10%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%,-50%);
  display: block;
  margin: 0 auto;
  padding: 10px 15px;
  background-color: #002F51;
  border: none;
  border-radius: 50px;
  font-size: min(2.7906976744186047vw, 12px);
  line-height: 1;
  color: #FFFFFF;
  text-align: center;
  cursor: pointer;
}

.pin {
  position: absolute;
  transform: translate(-50%,-50%);
  z-index: 3;
  width: 4.53%;
  cursor: pointer;
}

.show .pin {
  animation: pin-drop 1.5s ease-in-out forwards;
}

.bubble {
  position: absolute;
  transform: translate(-50%,-50%);
  z-index: 5;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 2.32vw;
  border: 1px solid #002F51;
  font-size: min(2.7906976744186047vw, 12px);
  line-height: 1.5;
  color: #002F51;
  text-align: center;
  margin-block: var(--leading-trim);
}

.area {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.show {
  opacity: 1;
}

.ship {
  position: absolute;
  z-index: 4;
  width: 4.30%;
  animation: sp-sailing 60s linear infinite;
}

.pukapuka {
  animation: floatShip 4s ease-in-out infinite;
}

.copyright {
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translate(-50%,-50%);
  font-size: min(2.7906976744186047vw, 12px);
  line-height: 1.5;
  color: #002F51;
  text-align: center;
  margin-block: var(--leading-trim);
}

/* 各ピンの位置と吹き出し */
.pin1 { top: 29.5%; left: 89.5%; }
.pin2 { top: 47%; left: 42.5%; }
.pin3 { top: 50.5%; left: 30.5%; }
.pin4 { top: 29%; left: 87%; }
.pin5 { top: 43.5%; left: 52.5%; }
.pin6 { top: 31%; left: 90.5%; }
.pin7 { top: 41%; left: 57.5%; }
.pin8 { top: 10%; left: 68%; }
.pin9 { top: 38%; left: 69.5%; }

.bubble1-1 { top: 25%; left: 69.5%; width: 44.18604651162791vw; }
.bubble1-2 { top: 16.5%; left: 82%; width: 35.81395348837209vw; }
.bubble2 { top: 42.5%; left: 29%; width: 50.23255813953489vw; }
.bubble3 { top: 58%; left: 30%; width: 44.651162790697676vw; }
.bubble4 { top: 23.5%; left: 79.5%; width: 39.06976744186046vw; }
.bubble5 { top: 49.5%; left: 52%; width: 44.651162790697676vw; }
.bubble6 { top: 34.5%; left: 70.5%; width: 36.27906976744186vw; }
.bubble7 { top: 36.5%; left: 39%; width: 41.86046511627907vw; }
.bubble8-1 { top: 6%; left: 43.5%; width: 44.651162790697676vw; }
.bubble8-2 { top: 16%; left: 68.5%; width: 39.06976744186046vw; }
.bubble9-1 { top: 32.5%; left: 54%; width: 36.27906976744186vw; }
.bubble9-2 { top: 45.5%; left: 69%; width: 47.44186046511628vw; }

@media only screen and (min-width: 768px) {
  h1 {
    top: 28.5%;
    left: 40.5%;
    font-size: min(6.976744186046512vw, 30px);
  }

  .button {
    top: 33.5%;
    bottom: auto;
    left: 40.5%;
  }

  .pin {
    width: 1.625%;
  }

  .bubble {
    padding: 10px;
  }

  .ship {
    width: 2.75%;
    animation: pc-sailing 60s linear infinite;
  }

  .copyright {
    bottom: 30px;
    left: auto;
    right: 30px;
    transform: translate(0,0);
  }

  /* 各ピンの位置と吹き出し */
  .pin1 { top: 49%; left: 81%; }
  .pin2 { top: 57%; left: 46.5%; }
  .pin3 { top: 58.5%; left: 38.5%; }
  .pin4 { top: 46.5%; left: 79.5%; }
  .pin5 { top: 56%; left: 53.5%; }
  .pin6 { top: 51.5%; left: 80.5%; }
  .pin7 { top: 54%; left: 57.5%; }
  .pin8 { top: 12.5%; left: 79%; }
  .pin9 { top: 53.5%; left: 66%; }

  .bubble1-1 { top: 47%; left: 90%; width: 178px; }
  .bubble1-2 { top: 43%; left: 74%; width: 132px; }
  .bubble2 { top: 52%; left: 52%; width: 204px; }
  .bubble3 { top: 51.5%; left: 33.5%; width: 180px; }
  .bubble4 { top: 41%; left: 86.5%; width: 156px; }
  .bubble5 { top: 56%; left: 44%; width: 180px; }
  .bubble6 { top: 58%; left: 80.5%; width: 144px; }
  .bubble7 { top: 49%; left: 59%; width: 168px; }
  .bubble8-1 { top: 9%; left: 69.5%; width: 180px; }
  .bubble8-2 { top: 20%; left: 85.5%; width: 156px; }
  .bubble9-1 { top: 47%; left: 60%; width: 144px; }
  .bubble9-2 { top: 62%; left: 59%; width: 192px; }
}


/*----------
ANIMATION
----------*/
@keyframes pin-drop {
  0% {
    opacity: 0;
    transform: translate(-50%, -1000%) scale(0.5);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  65% {
    transform: translate(-50%, -50%) scale(1.1);
  }
  80% {
    transform: translate(-50%, -50%) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes sp-sailing {
  0% {
    top: 35%;
    left: 95%;
  }
  10% {
    top: 42%;
    left: 82%;
  }
  20% {
    top: 49%;
    left: 69%;
  }
  30% {
    top: 56%;
    left: 56%;
  }
  40% {
    top: 63%;
    left: 43%;
  }
  50% {
    top: 70%;
    left: 30%;
  }
  60% {
    top: 63%;
    left: 43%;
  }
  70% {
    top: 56%;
    left: 56%;
  }
  80% {
    top: 49%;
    left: 69%;
  }
  90% {
    top: 42%;
    left: 82%;
  }
  100% {
    top: 35%;
    left: 95%;
  }
}

@keyframes pc-sailing {
  0% {
    top: 60%;
    left: 80%;
  }
  10% {
    top: 65%;
    left: 70%;
  }
  20% {
    top: 70%;
    left: 60%;
  }
  30% {
    top: 75%;
    left: 50%;
  }
  40% {
    top: 80%;
    left: 40%;
  }
  50% {
    top: 85%;
    left: 30%;
  }
  60% {
    top: 80%;
    left: 40%;
  }
  70% {
    top: 75%;
    left: 50%;
  }
  80% {
    top: 70%;
    left: 60%;
  }
  90% {
    top: 65%;
    left: 70%;
  }
  100% {
    top: 60%;
    left: 80%;
  }
}

@keyframes floatShip {
  0%   { transform: rotate(0deg) translateY(0); }
  25%  { transform: rotate(2deg) translateY(-3px); }
  50%  { transform: rotate(0deg) translateY(0); }
  75%  { transform: rotate(-2deg) translateY(-3px); }
  100% { transform: rotate(0deg) translateY(0); }
}