@charset "utf-8";

:root {
  --button-color: white;
}

/* ヘッダー */
header {
  position: relative;
  margin-top: 80px;
  margin-bottom: 150px;
  text-align: center;
}

header h1 {
  margin-bottom: 2rem;
}

header p {
  line-height: 1.98;
}

/* フォーム内 */
.report {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 800px;
  max-width: 93%;
  margin-left: auto;
  margin-right: auto;
}

.report article:first-child {
  padding-top: 150px;
}

.report article:first-child section {
  margin-bottom: 2rem;
}

.report h2 {
  margin-bottom: 2px;
}

.report>article:first-child section hgroup {
  display: flex;
  flex-wrap: wrap;
  column-gap: 4px;
}

.report label {
  margin-right: 4px;
}

/* 右側 */
.bodybox {
  position: relative;
}

.bodybox section {
  position: absolute;
  width: 100%;
  bottom: -160px;
}

.egobox {
  z-index: -1;
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  aspect-ratio: 1/1;
}

.ego {
  position: absolute;
  margin: 0 auto;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 55% 45% 60% 40% / 52% 61% 39% 48%;
  background-color: blue;
  opacity: 0.4;
  animation-name: corners, rotate;
  animation-duration: 10s, 7s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  transition: 1s linear;
}

.ego02 {
  animation-name: corners, rotate02;
}

.ego03 {
  animation-name: corners, rotate03;
}

@keyframes corners {
  0% {
    border-radius: 55% 45% 60% 40% / 52% 61% 39% 48%;
  }

  25% {
    border-radius: 53% 47% 44% 56% / 49% 34% 66% 51%;
  }

  50% {
    border-radius: 38% 62% 61% 49% / 61% 56% 44% 39%;
  }

  75% {
    border-radius: 47% 53% 42% 58% / 39% 60% 40% 61%;
  }

  100% {
    border-radius: 55% 45% 60% 40% / 52% 61% 39% 48%;
  }
}

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

  100% {
    transform: rotate(360deg);
  }
}

@keyframes rotate02 {
  0% {
    transform: rotate(79deg);
  }

  100% {
    transform: rotate(-281deg);
  }
}

@keyframes rotate03 {
  0% {
    transform: rotate(-60deg);
  }

  100% {
    transform: rotate(300deg);
  }
}


.memori img {
  opacity: 0.8;
  z-index: -1;
  height: 615.2px;
  margin: 0 0 0 auto;
}

#body {
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  position: absolute;
  height: 531.25px;
  aspect-ratio: 100/243;
}

/* 追加 */
.url input {
  margin-top: 4px;
  color: black;
  width: 27rem;
  max-width: 100%;
}

/* メッセージ */
.hatena {
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #4F0052;
  font-size: 17px;
  font-family: "New Tegomin", serif;
  line-height: 1.2;
}

.hatena::after {
  content: '';
  position: absolute;
  background-image: url(../img/kokoro.png);
  width: 151px;
  height: 85px;
  top: -24px;
  left: calc(50% - 5px);
  transform: translateX(-50%);
  z-index: -1;
}

.kokoro {
  font-size: small;
}

@media (max-width: 800px) {
  .report {
    display: block;
  }

  .report article:first-child {
    padding-top: 50px;
  }

  .bodybox section {
    position: relative;
    bottom: 0;
  }
}