@charset "utf-8";

main {
  margin: 260px auto 0px;
  width: min(1500px , 90%);
}

.pagetitle {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pagetitle h1 {
  font-size: 28px;
  border-bottom: 2px solid #000;
  width: fit-content;
  line-height: 1;
  letter-spacing: 0;
}

.pagetitle span {
  font-size: 14px;
  font-family: inter;
  letter-spacing: 0.2;
  line-height: 1;
}

.about1,
.about2 {
  margin: 50px auto 100px;
  display: flex;
}

.about1-img {
  display: block;
  width: 50%;
  margin-top: 50px;
  background-repeat: no-repeat;
  background-size: 80%;
  background-position: center top;
  aspect-ratio: 1 / 1;
  background-image: url(../img/about/biyouseitaizu.png);
}

.about2-img {
  display: block;
  width: 50%;
  margin: 20px;
  background-repeat: no-repeat;
  background-size: contain;
  aspect-ratio: 1 / 1;
  background-image: url(../img/about/about2.png);
}

.about2 {
  flex-direction: row-reverse
}

.about1 h2,
.about2 h2 {
  display: block;
  margin-bottom: 40px;
  font-size: 28px;
  line-height: 1;
  text-align: left;
}

.about1 span {
  line-height: 2.5;
  font-size: 16px;
  display: block;
  margin-bottom: 40px;
  align-items: end;
}

.about1 p,
.about2 p {
  font-size: 16px;
  text-align: left;
  line-height: 33px;
  display: block;
}

.about2 span {
  font-size: 21px;
}

.ellipse1,
.ellipse2,
.ellipse3,
.ellipse4,
.ellipse5,
.ellipse6 {
    animation: floating-y 1.8s ease-in-out infinite alternate-reverse;
}

.ellipse2,
.ellipse4, {
  transition-delay: 0.8s;
}

@keyframes floating-x {
    0% {
        transform: translateX(-5%);
    }

    100% {
        transform: translateX(5%);
    }
}

@keyframes floating-y {
    0% {
        transform: translateY(-10%);
    }

    100% {
        transform: translateY(8%);
    }
}

.profile {
  display: block;
  text-align: center;
  margin: 250px auto 270px;
  ;
}

.profile-img {
  width: 430px;
  filter: drop-shadow(-1px 1px 1px #aaa);
}

.profile p {
  display: block;
  width: min(510px, 50%);
  margin: 0 auto;
  text-align: left;
  line-height: 2;
  font-size: 16px;
}

.profile p span {
  line-height: 2;
}

.profile-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 55px 0 45px;
  position: relative;
}

.profile-name p {
  font-size: 28px;
  border-bottom: 2px solid #000;
  width: fit-content;
  line-height: 1;
  letter-spacing: 0;
}

.profile-name span {
  font-size: 20px;
  font-family: inter;
  color: #878787;
  letter-spacing: 0.2;
}

.about1-lead,
.about2-lead {
  position: relative;
  width: 50%;
  padding: 20px 20px 0 100px;
}

.ellipse1 {
  position: absolute;
  width: 115px;
  top: 120px;
  left: 45px;
  z-index: -111;
}

.ellipse2 {
  width: 310px;
  position: absolute;
  top: 250px;
  left: 180px;
  z-index: -111;
  transition-delay: 0.8s;
}

.ellipse3 {
  width: 200px;
  position: absolute;
  left: 0;
  top: 360px;
  z-index: -111;
  transition-delay: 0.8s;
}

.ellipse4 {
  width: 90px;
  position: absolute;
  top: 200px;
  left: 410px;
  z-index: -111;
}

.ellipse5 {
  position: absolute;
  width: 310px;
  top: -250px;
  left: 400px;
  z-index: -111;
  transition-delay: 0.8s;
}

.ellipse6 {
  position: absolute;
  width: 190px;
  top: 190px;
  right: 420px;
  z-index: -111;
}

@media screen and (max-width: 800px) {

  body {
    overflow: hidden;
  }

  main {
    margin: 100px auto;
  }

  .pagetitle {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 200px;
  }

  .pagetitle h1 {
    font-size: 22px;
    border-bottom: 2px solid #000;
    width: fit-content;
    line-height: 1;
    letter-spacing: 0;
  }

  .pagetitle span {
    font-size: 14px;
    font-family: inter;
    letter-spacing: 0.2;
    line-height: 1;
  }

  .about1 {
    margin: 50px auto 150px;
    flex-direction: column;
    justify-content: center;
  }

  .about2 {
    margin: 60px auto 150px;
    flex-direction: column;
    justify-content: center;
  }

  .about1-img {
    width: 90%;
    background-size: contain;
    background-position: center center;
    margin: 0 auto ;
  }

  .about2-img {
    width: 100%;
    margin: 0;
  }

  .about1 h2,
  .about2 h2 {
    /* display: block; */
    margin: 50px auto;
    font-size: 24px;
    line-height: 1;
    text-align: left;
  }

  .about1-lead,
  .about2-lead {
    position: relative;
    width: 80%;
    padding: 0;
    margin: 0 auto;
    text-align: center;
  }

  .about1 p,
  .about2 p {
    font-size: 16px;
    text-align: left;
    line-height: 1.8;
    display: inline-block;
  }

  .profile {
    text-align: center;
    margin: 140px auto 280px;
    padding: 0;
  }

  .profile-img {
    width: 50%;
    filter: drop-shadow(-1px 1px 1px #aaa);
  }

  .profile p {
    display: block;
    width: 80%;
    margin: 0 auto;
    text-align: left;
    line-height: 2;
    font-size: 14px;
  }

  .profile p span {
    line-height: 2;
  }

  .profile-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 55px 0 45px;
    position: relative;
  }

  .profile-name p {
    font-size: 18px;
    border-bottom: 2px solid #000;
    width: fit-content;
    line-height: 1;
    letter-spacing: 0;
  }

  .profile-name span {
    font-size: 14px;
    letter-spacing: 0.2;
    line-height: 1.5;
  }

  .ellipse2 {
    width: 180px;
    position: absolute;
    top: 250px;
    left: 180px;
  }

  .ellipse3 {
    width: 120px;
    position: absolute;
    left: 20px;
    top: 410px;
    z-index: -111;
    transition-delay: 0.8s;
  }

  .ellipse4 {
    width: 80px;
    position: absolute;
    top: 200px;
    left: 250px;
    z-index: -111;
  }

  .ellipse5 {
    position: absolute;
    width: 150px;
    top: -120px;
    left: 60px;
    z-index: -111;
    transition-delay: 0.8s;
  }

  .ellipse6 {
    position: absolute;
    width: 90px;
    top: 300px;
    right: 40px;
    z-index: -111;
  }
}