@charset "UTF-8";

/*************共通項目など*************/
/* Windows 用 Medium 指定の游ゴシック */
/* font-weight: bold の時は通常どおり Bold 書体を使わせる */
body {
  /* ゴシック体指定 */
  font-optical-sizing: auto;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-variation-settings: "slnt"0;
  color: #2B2726;
  margin: 0 auto;
  background-color: #EFEFEF;
  line-height: 1.5;
}

a {
  text-decoration: none;
  -webkit-transition: 0.2s ease-in-out;
  transition: 0.2s ease-in-out;
}

ol,
ul {
  list-style: none;
}

a:after,
a:before {
  -webkit-transition: 0.2s ease-in-out;
  transition: 0.2s ease-in-out;
}

.f_font {
  font-family: "Figtree", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

@media screen and (max-width: 1920px) {

  .main_text {
    p {
      font-size: 17px;

      a {
        color: #0096F1;
        cursor: pointer;
      }
    }

    h1 {
      font-size: 38px;

      span {
        font-size: 47px;
      }
    }




  }


  .select_btn {
    margin: 15px;

    img {
      width: 260px;
    }
  }

  .left-panel {
    flex-basis: 50%;
  }

  .category-label {
    width: 130px;
  }

  .preview-container {
    width: 459px;
    height: 459px;
  }

  .speech-bubble {
    width: 400px;
    padding: 20px;
    font-size: 23px;
  }

  .category-section {
    display: flex;
    gap: 20px;
  }

  .thumbnail {
    width: 196px;
  }

  .btn {
    width: 220px;
    font-size: 20px;
  }

  .final-character-preview {
    width: 459px;
    height: 459px;
  }

}



@media screen and (max-width: 1280px) {

  .preview-container {
    width: 350px;
    height: 350px;
  }

  .thumbnail {
    width: 170px;
  }

  .speech-bubble {
    width: 300px;
    padding: 10px;
    font-size: 15px;
  }

  .btn {
    width: 180px;
    font-size: 18px;
  }

}

@media screen and (max-width: 1024px) {
  .select_btn {
    margin: 8px;

    img {
      width: 178px;

    }
  }


  .preview-container {
    width: 300px;
    height: 300px;
  }

  .thumbnail {
    width: 150px;
  }

  .left-panel {
    flex-basis: 100%;
  }

  .category-section {
    gap: 10px;
  }

}

@media screen and (max-width: 768px) {

  .main-container {
    flex-direction: column-reverse;
    flex-wrap: wrap;
  }

  .category-section {
    display: block;
  }

  .category-label {
    margin-bottom: 10px;
  }


  .main_text {

    p {
      font-size: 14px;
      margin: 0 10px;
    }

    h1 {
      margin-top: 15px;
      font-size: 30px;

      span {
        font-size: 37px;
      }
    }
  }


  .category-label {
    width: 110px;
  }

  .preview-container {
    width: 300px;
    height: 300px;
  }

  .thumbnail {
    width: 150px;
  }

  .final-character-preview {
    width: 350px;
    height: 350px;
  }

}

@media screen and (max-width: 425px) {

  .thumbnail {
    width: 30vw;
  }


}


/*  共通項目 > デバイス別出し分け
------------------------*/
.sp {
  display: none;
}

.pc_tab {
  display: block;
}

.s_sp {
  display: none;
}

@media screen and (max-width: 768px) {

  .sp,
  .pc_tab {
    display: block;
  }

  .pc {
    display: none;
  }
}

@media screen and (max-width: 425px) {
  .s_sp {
    display: block;
  }

  .pc_tab,
  .pc {
    display: none;
  }
}




/*************TOPページ*************/


.container {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  justify-content: center;
}


#top {
  display: block;
}





.main_text {
  display: block;
  padding: 100px 0 30px;
  text-align: center;

  h1 {
    color: #0096F1;
    margin-bottom: 20px;
    font-weight: 900;
  }

  span {
    color: #0096F1;

  }
}


.hukidashi {
  position: relative;
  background-color: #FFF;
  color: #0096F1;
  border-radius: 6px;
  font-size: 14px;
  pointer-events: none;
  line-height: 1.5;
  text-align: center;
  width: 300px;
  /* ↓ 以下の2行を変更・追加 */
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 10px;
}

.hukidashi::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  border: 10px solid transparent;
  border-top-color: #FFF;
}

.btn_content {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;

  .select_btn {
    align-items: center;
    text-align: center;
    justify-content: space-between;

    p {
      margin-bottom: 10px;
      padding: 4px;
      color: #fff;
      background-color: #0096F1;
      border-radius: 40px;
    }

    img {
      border: #2D2F44 1px solid;
      border-radius: 25px;
    }

  }

  .select_btn:hover {
    transform: translateY(-10px);
    transition: transform 0.2s;
  }

  img:hover {
    border: #0096F1 1px solid;
    transition: border 0.2s;
  }
}



.maker {
  display: flex;
  list-style-type: none;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 10px;
  width: 100%;
  max-width: 1440px;
  justify-self: center;

  p {
    font-size: 13px;
    padding: 10px;
  }

  .icon {
    justify-self: center;
    flex-direction: column;
    height: 80px;
    display: flex;
    margin: 5px;
    margin-top: 10px;

    p {
      padding: 0.2em 0.5em;
      width: fit-content;
      font-size: 10px;
      background-color: #CDD2D5;
      text-align: center;
      border-radius: 8px;
      margin-inline: auto;
    }

    img {
      margin-top: 5px;
      width: 58px;
      height: 58px;
    }
  }
}


footer {
  margin-top: 50px;
  margin-bottom: 20px;

  p {
    justify-content: center;
    text-align: center;
    font-size: 12px;
  }
}

/*************着せ替え画面*************/

#select {
  display: none;
}

.main-container {
  display: flex;
  flex-grow: 1;
  padding: 150px 0 0 0;
  justify-content: center;
}

.left-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px auto;
}

.category-section {
  align-items: center;
}

.category-label {
  background-color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 17px;
  min-width: 80px;
  text-align: center;
}

.thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  flex-grow: 1;
}

.thumbnail {
  background-color: #fff;
  border: 2px solid #ccc;
  border-radius: 25px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: border-color 0.3s;
}

.thumbnail:hover {
  transform: translateY(-5px);
  transition: transform 0.2s;
}

.thumbnail.selected {
  outline: 10px solid #0096F1;
  outline-offset: -10px;
}

.thumbnail.selected .hand-icon-placeholder {
  display: flex;
}

.hand-icon-placeholder {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 47px;
  height: 47px;
  background-color: #0096F1;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  background-image: url(../img/select_icon.png);
  background-repeat: no-repeat;
  background-position: 50%;
  animation: jump 1s infinite;
}

@keyframes jump {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 23px;
}


.right-panel {
  flex-basis: 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.speech-bubble {
  background-color: #fff;
  border-radius: 30px;
  color: #0096F1;
  font-weight: bold;
  text-align: center;
  position: relative;
  margin-bottom: 20px;
  margin-top: -20px;
}

.speech-bubble:after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  border: 10px solid transparent;
  border-top-color: #FFF;
}


.preview-container {
  position: relative;
  background-color: #fff;
  border-radius: 10px;
  flex-grow: 1;
  /* display: flex; */
  align-items: center;
  justify-content: center;
  color: #aaa;
}

.preview-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.action-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.btn {
  padding: 12px 25px;
  border: none;
  border-radius: 46px;
  font-weight: bold;
  cursor: pointer;
  flex-grow: 1;
  text-align: center;
  height: 56px;
  justify-content: center;

}



#btn-back {
  background-color: #fff;
  color: #333;
  border: 2px solid #ccc;
}

#btn-back:hover {
  transform: translateY(10%);
  transition: transform 0.2s;
}

#btn-complete {
  background-color: #0096F1;
  color: #fff;
  border: 2px solid #0096F1;
}



#result {
  display: none;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.final-character-preview {
  background-color: #FFF;
  align-items: center;
  justify-content: center;
  justify-self: center;
  position: relative;
  margin: auto 0;
}

.final-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.next-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  justify-self: center;
  position: relative;
  margin-top: 30px;
}

#btn-home {
  background-color: #fff;
  color: #333;
  border: 2px solid #ccc;
  margin: 0 10px;
}

#btn-home:hover {
  transform: translateY(10%);
  transition: transform 0.2s;
}

#btn-retry {
  background-color: #0096F1;
  color: #fff;
  border: 2px solid #0096F1;
  margin: 0 10px;
}

#btn-retry:hover {
  transform: translateY(10%);
  transition: transform 0.2s;
}


.confetti canvas {
  height: 100%;
  width: 100%;
  position: absolute;
  pointer-events: none;
}






/*************アニメーション*************/