@charset "utf-8";

:root {
  --font-zen: 'Zen Maru Gothic', sans-serif;
  --door-shadow: gray;
  --nano-white: rgba(247, 251, 254, 1);
  --h3-color: #D788AF;
  --font-color: #927EAF;
  --font-zen: 'Zen Maru Gothic', sans-serif;
}

*,
::after,
::before {
  box-sizing: inherit;
  padding: 0;
  margin: 0;
}

html {
  font-size: 16px;
  line-height: 1.15;
  box-sizing: border-box;
  font-family: sans-serif
}

ul,
ol,
summary {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* ------カスタム------ */

header{
  padding-top: 1rem;
}
body{
  background-color: #FBF3F5;
}
header>p {
  margin: 0 auto;
  max-width: 90%;
  margin-top: 60px;
  margin-bottom: 60px;
  text-align: center;
  color: var(--font-color);
  line-height: 1.5;
}

.title {
  position: relative;
  height: 600px;
}

.title .stamp {
  position: absolute;
  width: 470px;
  z-index: 10;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  font-family: var(--font-zen);
}

.ego {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 600px;
  max-width: 100%;
  aspect-ratio: 1/1;
  border-radius: 55% 45% 60% 40% / 52% 61% 39% 48%;
  background: rgba(251, 243, 245, 0.9);
  mix-blend-mode: multiply;
  animation-name: corners, rotate;
  animation-duration: 10s, 7s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.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);
  }
}

main {
  position: relative;
  width: 800px;
  max-width: 90%;
  margin: 0 auto;
}

form {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
}

form>section {
  position: relative;
  font-size: 18px;
  margin-bottom: 3rem;
  line-height: 1.5;
}

form section h3 {
  z-index: 2;
  position: absolute;
  width: max-content;
  top: -15px;
  left: 5px;
  color: var(--h3-color);
  padding: 0px 10px;
  border-radius: 6px;
  border: 2px solid var(--h3-color);
  background-color: var(--nano-white);
  box-shadow: 1px 2px 5px var(--door-shadow);
  font-family: var(--font-zen);
  font-weight: 700;
}

form section div {
  color: var(--font-color);
  margin: 41px auto 100px;
  padding: 2.2em 1.5em 2em;
  background-color: rgba(247, 251, 254, 0.7);
  border-radius: 11px;
  border: 2px solid var(--font-color);
  box-shadow: 1px 1px 4px var(--door-shadow);
  font-family: var(--font-zen);
  line-height: 1.5;
}

label {
  display: block;
  margin-bottom: 1.1em;
}

.imgq{
  font-size: 16px;
}
.img{
  text-decoration: underline;
  transition-duration: 0.1s;
}
.img:hover{
  opacity: 0.8;
}

input[type="text"] {
  font-size: 18px;
  line-height: 1.3;
  display: block;
  width: 100%;
}

input[type="text"]:focus {
  outline: transparent;
}

footer {
  margin-top: 100px;
}

@media (max-width: 800px) {
  
  header{
    overflow: hidden;
    padding-top:0.6rem;
  }
  .title {
    height: 100vw;
  }

  
.title .stamp {
  top: 44%;
  width: 70vw;
}

  header>p {
    margin-top: 50px;
  }

  .ego {
    width: 90vw;
  }
  form>section {
    font-size: 16px;
  }
  form section h3 {
    left: 6px;
  }

  form section div {
    margin: 31px auto 86px;
    padding: 2.2em 0.8em 2em;
  }

  input[type="text"] {
    font-size: 16px;
  }
  

}