@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

body {
  background: #21B8D6;
  font-family: "Zen Kaku Gothic New", "Quicksand", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: #fff;
  letter-spacing: 0.05em;
}

a {
  color: #fff;
  text-decoration: none;
  padding-bottom: 3px;
  /* テキストと下線の間隔 */
  background-image: linear-gradient(#fff, #fff);
  background-repeat: no-repeat;
  background-position: bottom right;
  /* 下線の初期位置 */
  background-size: 0 1px;
  /* 下線のサイズ（横幅、高さ） */
  transition: background-size 0.3s;
}

a:hover {
  background-position: bottom left;
  /* 下線のホバー時位置 */
  background-size: 100% 1px;
  /* 下線の横幅を100%にする */
}



/* スクロールアニメ */
.img-wrap {
  opacity: 0;
}

.img-animation {
  animation: img-opacity 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  overflow: hidden;
  position: relative;
}

.img-animation::before {
  animation: img-animation 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

@keyframes img-opacity {
  100% {
    opacity: 1;
  }
}

@keyframes img-animation {
  100% {
    transform: translateX(100%);
  }
}

header {
  display: flex;
  height: 80px;
  justify-content: space-between;
  padding: 20px 2%;
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 99;
  transition: transform 0.3s 0.3s;
}

header.hidden {
  transform: translateY(-80px);

}



main {
  padding-top: 80px;
}

header h1 {
  width: 180px;
}

header nav ul {
  display: flex;
  gap: 2em;
}


#mv h1 {
  width: 35%;
  max-width: 460px;
  margin: 10% auto 50px;
}

#mv figure {
  width: 23%;
  margin: auto;
  max-width: 280px;
}

#mv p {
  text-align: center;
  margin: 100px auto 200px;
}


#sctoll_line {
  position: relative;
  margin-top: -7px;
}

/* 伸びるライン */
.line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 0;
  background-color: white;
  transition: height 0.2s ease-out;
  /* スムーズなアニメーションのため */
}

#sctoll_line .works_images {
  background: url(../images/works_image01.webp) center no-repeat;
  background-size: contain;
  position: absolute;
}

#sctoll_line .works_images.img01 {
  background: url(../images/works_image01.webp) center no-repeat;
  background-size: contain;
  width: 35%;
  height: 35vw;
  max-width: 460px;
  max-height: 460px;
  top: -5%;
  right: -5%;
  left: auto;
}

#sctoll_line .works_images.img02 {
  background: url(../images/works_image02.webp) center no-repeat;
  background-size: contain;
  width: 26%;
  height: 26vw;
  max-width: 360px;
  max-height: 360px;
  top: 0;
  left: 2%;
}

#sctoll_line .works_images.img03 {
  background: url(../images/works_image03.webp) center no-repeat;
  background-size: contain;
  width: 16%;
  height: 16vw;
  top: 38%;
  left: 24vw
}

#sctoll_line .works_images.img04 {
  background: url(../images/works_image04.webp) center no-repeat;
  background-size: contain;
  width: 10%;
  height: 10vw;
  top: 52%;
  right: 32vw;
}

#sctoll_line .works_images.img05 {
  background: url(../images/works_image05.webp) center no-repeat;
  background-size: contain;
  width: 25%;
  height: 25vw;
  max-width: 340px;
  max-height: 340px;
  top: 68%;
  left: -2vw;
}

#sctoll_line .works_images.img06 {
  background: url(../images/works_image06.webp) center no-repeat;
  background-size: contain;
  width: 25%;
  height: 25vw;
  max-width: 300px;
  max-height: 300px;
  top: 60%;
  right: 1vw;
}

.content {
  height: 100vh;
}

.cont_box {
  margin: 150px auto 150px;
  display: block;
}

.cont_box h2 {
  text-align: center;
  font-size: 4rem;
  letter-spacing: 0.2em;
  font-weight: 300;
  margin-bottom: 10px;
}

.cont_box p {
  text-align: center;
}

#solution {}

#solution .txt-copy {
  font-size: 24px;
  line-height: 1.8;
  margin-bottom: 20px;
  font-weight: bold;
}

#solution p {
  line-height: 2.5;
}

#solution #sol_message {
  display: flex;
  width: 95%;
  margin: 50px auto;
  justify-content: space-between;
}

#solution #sol_message li {
  color: #000;
  padding: 2% 2%;
  background: #EEEDEA;
  border-radius: 20px;
  width: 24%
}

#solution #sol_message li:nth-child(even) {
  background: #FFE900;
}

#solution #sol_message li h3 {
  font-size: 40px;
  font-weight: 100;
  text-align: center;
  border-bottom: 2px solid #21b9d7;
}

#solution #sol_message li h4 {
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  margin: 15px auto;
  line-height: 1.7;
}

#solution #sol_message li p {
  font-size: 14px;
  text-align: left;
  line-height: 1.7;
}

#solution #sol_message li figure {
  margin: 20px auto 0;
  width: 100%;
  text-align: center;
}

#solution #sol_message li figure img {
  width: 100%;
  max-width: 158px;
}

#solution #sol_example {
  width: 90%;
  max-width: 1000px;
  margin: 50px auto;
  background: #fff;
  color: #000;
  padding: 30px;
  position: relative;
}

#solution #sol_example:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-color: transparent #21B8D6 transparent transparent;
  border-width: 0px 64px 64px 0px;

}

#solution #sol_example h4 {
  font-weight: bold;
  margin-bottom: 20px;
}

#solution #sol_example p {
  text-align: left;
  font-size: 14px;
}

#message {
  display: flex;
  justify-content: space-between;
  padding: 5px;
  flex-wrap: wrap;
}

#message p img {
  display: none;
}

#message a.btn {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0
}

#message .mu {
  width: 32%;
  position: relative
}

#message .mu p {
  display: none;
}

#message .mu h2 {
  display: none;
}

#message .mu img {
  width: 100%;
  height: auto
}

#message .mu h3 {
  margin-bottom: 1em;
  font-size: 1.1rem;
  text-align: left;
  font-weight: normal
}

#message .mu br {
  display: none;
}

#message .mu small {
  display: block
}

#profile .cont_box {
  display: flex;
  width: 80%;
  max-width: 1100px;
  justify-content: space-between;
  margin-top: 50px;
}

#profile .cont_box .txt_box {
  width: 60%;
}

#profile .cont_box .txt_box p {
  text-align: left;
}

#profile .cont_box .txt_box #profile_title {
  font-size: 16px;
  letter-spacing: .2em;
}

#profile .cont_box .txt_box #profile_name {
  font-size: 30px;
  letter-spacing: .3em;
  margin-bottom: 20px;
}

#profile .cont_box .txt_box #profile_txt {
  font-size: 14px;
}

#profile figure {
  width: 20%;
}

#works {
  margin: 300px auto;
}

#contact {
  margin: 300px auto;
}

#contact form {
  width: 900px;
  margin: 100px auto;
}

.form_list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}

.form_list dt {
  width: 30%;
  padding: 5px 10px;
}

.form_list dd {
  width: 70%;
  padding: 5px 10px;
}

.form_list input,
.form_list textarea {
  width: 100%;
  border-bottom: 1px solid #fff;
  background-color: #86cad8;
  padding: 5px;
}

#contact button {
  width: 300px;
  height: 50px;
  padding: 5px;
  margin: 50px auto;
  display: block;
  background: #fff;
  color: #74d1e3;
  transition: all 0.5s;
}

#contact button:hover {
  background: #74d1e3;
  color: #fff;
  transition: all 0.5s;

}

footer {
  margin: 30px auto;
}

footer p {
  text-align: center;
  font-size: 1rem;
}

@media screen and (max-width: 860px) {
  #mv h1 {
    width: 55%;
  }

  #mv figure {
    width: 30%;
  }

  #contact form {
    width: 80%;
    margin: 40px auto;
  }

  .form_list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
  }

  .form_list dt {
    width: 100%;
  }

  .form_list dd {
    width: 100%;
  }
}

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

  #mv h1 {
    width: 80%;
    margin: 40% auto 20px;
  }

  #mv figure {
    width: 45%;
  }

  .cont_box {
    margin: 150px auto 150px;
  }

  .cont_box h2 {
    font-size: 2.8rem;
  }

  .line {
    width: 0.9%;
  }

  #sctoll_line .works_images.img01 {
    width: 45%;
    height: 45vw;
  }

  #sctoll_line .works_images.img02 {
    width: 30%;
    height: 30vw;
    top: 5%;
    left: 3%;
  }

  #sctoll_line .works_images.img03 {
    width: 25%;
    height: 25vw;
    top: 35%;
    left: 19vw;
  }

  #sctoll_line .works_images.img04 {
    width: 17%;
    height: 17vw;
    top: 52%;
    right: 20vw
  }

  #sctoll_line .works_images.img05 {
    width: 35%;
    height: 35vw;
    top: 60%;
    left: -2vw;
  }

  #sctoll_line .works_images.img06 {
    width: 40%;
    height: 40vw;
    top: 76%;
    right: 2vw;
  }

  #solution .txt-copy {
    font-size: 16px;
  }

  #solution .txt-copy+p {
    line-height: 1.5;
    font-size: 15px;
    text-align: left;
    width: 90%;
    margin: auto;
  }

  #solution #sol_message {
    flex-direction: column;
  }

  #solution #sol_message li {
    width: 100%;
    margin-bottom: 10px;
  }

  #message {
    flex-wrap: wrap;
  }

  #message .mu {
    width: 100%;
    margin-bottom: 20px;
  }

  #message .mu h3 {
    font-size: 0.9rem;
  }


  #profile {
    padding: 50px 5%;
    margin: 0 auto;
  }

  #profile .cont_box {
    width: 100%;
    flex-direction: column;
    margin: 50px auto 0;
  }

  #profile .cont_box .txt_box {
    width: 100%;
  }

  #profile .cont_box .txt_box #profile_txt {
    font-size: 15px;
  }

  #profile figure {
    margin: 40px auto;
    width: 40%;
  }

  #works {
    margin: 150px auto 300px;
  }

  #contact form {
    width: 90%;
  }

  #contact button {
    width: 95%;
    height: 50px;
  }

}


/*コンタクト確認画面*/
.confirm #contact {
  margin: auto;
}

.confirm #contact h3 {
  text-align: center;
}

.confirm #contact .inner {
  width: 80%;
  margin: auto;
}

.confirm #contact form {
  margin: 20px auto;
}

.confirm #contact a.btn {
  text-align: center;
  margin: 20px auto;
  font-weight: 800;
  border: 1px solid;
  display: inline-block;
  padding: 10px;
}