@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;
    }

    h1 {
      font-size: 38px;

      span {
        font-size: 47px;
      }
    }
  }


  .select_btn {
    margin: 30px;

    img {
      width: 380px;
      height: 214px;
      object-fit :cover;
    }
  }

  .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: 380px;
      height: 214px;
      object-fit :cover;
    }
  }


  .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) {}


/*  共通項目 > デバイス別出し分け
------------------------*/
.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;
}


#top {
  display: block;
}





.main_text {
  display: block;
  padding: 100px 0 30px;
  text-align: center;

  h1 {
    color: #0096F1;
    margin-bottom: 20px;
    font-weight: 900;
    font-size: 38px;
  }

  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;
  margin-right: 0%;
  margin-top: 10px;
  margin-bottom: 10px;
  justify-self: center;
  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 {
    margin: 30px;
    align-items: center;
    justify-content: space-between;

    p {
      margin-bottom: 10px;
      padding: 4px;
      border-radius: 40px;
    }

.click {
  width: 380px;  
  height: 214px; 
  overflow: hidden; 
  display: inline-block; 
  cursor: pointer; 
  border: 1px solid transparent;
  transition: border-color 0.3s ease-in-out;
}

.click.close {
  background-color: #0096F1; 
  border-color: #0096F1;
  cursor: default;
  display: flex;
  justify-content: center;
  align-items: center;
}

.click.close img {
  display: none;
}

.click.close::before {
  content: 'comming soon';
  color: white;
  font-size: 24px;
  font-family: "Figtree", sans-serif;
}

.click.close:hover img {
  transform: none;
}

.click:hover {
  border-color: #0096F1;
}

img {
  width: 380px;
  height: 214px;
  object-fit :cover;
  object-fit: cover; 
  transition: transform 0.3s ease-in-out; 
    }

  }

  .select_btn:hover {
    transition: transform 0.2s;
  }

  .click img:hover {
      transform: scale(1.1);
      overflow: hidden; 
     transition: transform 0.3s ease-in-out; 
  }

  ul {
 font-size: 14px;
  }
  li {
    padding-top: 6px;
    padding-bottom: 6px;
  }
   .title {
    padding-top: 10px;
  font-size: 23px;
  font-weight: bold;
 }


 
}



.maker {
  display: flex;
  list-style-type: none;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 10px;
  width: 100%;
  max-width: 1440px;
  justify-self: center;
  font-weight: bold;

  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;
}

.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;
}






.article {
  background-color: #FFF;
  padding: 30px;
  font-weight: lighter;
  font-size: 16px;

  img {
      width: 100%;
      height: 100%;
}

h2 {
  font-size: 34px;
  border-bottom: 3px solid #0096F1;
  font-weight: bold;
}

h3 {
  margin-top: 34px;
  margin-bottom: 10px;
  background-color: #EFEFEF;
  color: #2B2726;
  font-weight: bold;
  font-size: 24px;
  padding: 10px;
}

span {
  font-weight: bold;
  color: #0096F1;
  font-size: 20px;
}

}

@media screen and (max-width: 768px) {
  

h3 {
  font-size: 20px;
}

.select_btn {
font-size: 14px;
}

.article {
  padding: 12px;}

}

.back

@media screen and (max-width: 430px) {
.article {
  margin-right: 30px;
  margin-left: 30px;
}
  


}


    /* レイアウト用のスタイル */
    .content-wrapper {
      display: flex;
      justify-content: space-between;
      gap: 12px; /* メインとサイドバーの間隔 */
      align-items: flex-start;
      width: 1240px;
      margin: auto;
    }

    .article {
      flex: 1; /* 幅の自動調整 */
      min-width: 0;
    }
    
    /* サイドバーのスタイル */
    .sidebar {
      width: 280px; /* サイドバーの幅を固定 */
      flex-shrink: 0; /* 幅が縮まないようにする */
    }

    .sidebar h3 {
      font-size: 1.1rem;
      font-weight: bold;
      border-bottom: 2px solid #333;
      padding-bottom: 8px;
      margin-bottom: 15px;
    }

    .sidebar .other-article a {
      display: block;
      text-decoration: none;
      color: #333;
      background-color: #fff;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      transition: transform 0.3s, box-shadow 0.3s;
    }

    .sidebar .other-article a:hover {
      transform: translateY(-4px);
      box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    }
    
    .sidebar .other-article img {
      width: 100%;
      height: auto;
      display: block;
    }

    .sidebar .other-article p {
      padding: 12px 15px;
      font-size: 0.9rem;
      line-height: 1.5;
    }
    
    /* レスポンシブ対応 (768px以下の画面幅で縦並びにする) */
    @media (max-width: 768px) {
      .content-wrapper {
        flex-direction: column;
      }
      .sidebar {
        width: 100%;
        margin-top: 40px;
      }
      h2 {font-size: 24px;}
    }

    .back {
      background-color: #0096F1;
      font-size: 18px;
      color: #FFF;
      font-weight: bold;
      border-radius: 18px;
      width: 100px;
      text-align: center;
    }

    .back a {
  display: block; 
  padding: 5px;   
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  color: #FFF !important; 
}

    @media (max-width: 1440px) {
            .content-wrapper {
width: 90%;
            }}

            /* 画面幅が768px以下の時に適用 */
@media screen and (max-width: 768px) {
  
  body {
    overflow-x: hidden;
  }
  
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  #top {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  
  .main_text {
      padding-top: 120px !important;
  }

  .btn_content {
    display: block !important;
    width: 100% !important;
    padding: 20px 0 !important;
  }
  
  .select_btn {
    width: 100% !important;
    max-width: 380px !important;
    margin: 0 auto 40px auto !important;
  }

  .select_btn:last-child {
    margin-bottom: 0 !important;
  }
  
  .select_btn .click {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 380 / 214 !important; 
  }
  
  .select_btn .click img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }
  
  .select_btn .click.close img {
    display: none !important;
  }

  .article h2 {
    font-size: 24px;
  }
}