body {
  margin: 0;
  font-family: sans-serif;
  background: linear-gradient(135deg, skyblue, steelblue);
  color: white;
}

.header {
  position: fixed;
  display: flex;
  top: 0;
  left: 0;
  width: 100vw;
  height: 10vh;
  background-color: rgba(0, 161, 254, 0.8);
  text-align: center;
  justify-content: center;
  z-index: 10000;
  border-bottom-left-radius: 50% 20%;
  border-bottom-right-radius: 50% 20%;
}

@media (max-width: 600px) {
  .header h1 {
    font-size: 1.2rem;
  }
}


.top {
  height: 90vh;
  padding-top: 10vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.character-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}


.circleText {
  position: absolute;
  overflow: visible;
  max-width: 63%;
  min-height: 63%;
  animation: rotation 18s linear infinite;
}

.circleText__circle {
  fill: none;
}

.circleText__hello {
  fill: #fff;
  font-family: "Yusei Magic", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.05em;
  text-shadow: -5px 5px 10px #0002;
}


.character-container {
  position: absolute;
  /* ←ステージ化 */
  display: flex;

  border-radius: 50%;
  background-color: azure;
  aspect-ratio: 1 / 1;
  max-width: 60%;
  max-height: 60%;
  border: 5px solid #00a1fe;
  box-sizing: border-box;

  overflow: hidden;

  align-items: center;
  justify-content: center;
}

.character-container img {
  width: 80%;
  animation: floating 3s ease-in-out infinite;
}


@keyframes floating {
  0% {
    transform: translateY(-20px);
  }

  50% {
    transform: translateY(20px);
  }

  100% {
    transform: translateY(-20px);
  }
}

.wave-shape {
  position: absolute;
  inset: 0;
  /* ← top:0;left:0;right:0;bottom:0; と同じ */

  overflow: hidden;
  z-index: 0;
}

.wave-shape::after {
  position: absolute;
  top: 70%;
  left: -100%;
  border-radius: 70% 65% / 50% 45%;
  width: 300%;
  height: 300%;
  content: "";
  background-color: #64c4fe;
  animation: wave linear 10s infinite;
  opacity: 0.5;
}

.wave-shape::before {
  position: absolute;
  top: 70%;
  left: -100%;
  border-radius: 50% 45% / 70% 65%;
  width: 300%;
  height: 300%;
  content: "";
  background-color: #a4ddfe;
  animation: wave linear 10s infinite;
}

@keyframes wave {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.speech-bubble {
  position: relative;
  bottom: -25vh;
  left: 0;
  background-color: #fff;
  color: #666;
  padding: 20px;
  border-radius: 20px;
  font-size: 1.7rem;
  font-family: "Yusei Magic", sans-serif;
  justify-content: center;
  text-align: center;
  transition: 200ms ease;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  top: 0px;
  left: calc(50% - 25px);
  transform: translateY(-90%);
  border-bottom: 25px solid #fff;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  width: 0px;
  height: 0px;
}

@media (max-width: 600px) {
  .character-container {
    max-width: 80%;
    max-height: 80%;
  }

  .circleText {
    max-width: 83%;
    min-height: 83%;
  }

  .speech-bubble {
    font-size: 1rem;
    max-width: 80%;
  }
}



.top {
  height: 90vh;
  padding-top: 10vh;
  display: flex;
  align-items: center;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

.profile {
  display: flex;
  gap: 20px;
}

.profile img {
  width: 300px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.gallery img {
  width: 100%;
}

.fade {
  transition: opacity 0.3s ease;
  opacity: 1;
}

.fade-out {
  opacity: 0;
}
