
@media screen and (min-width: 768px) {
  .sp {
    display: none!important;
  }
  #typecheck_autumn {
    .mv_area {
    background-image: linear-gradient(to bottom, #018FE5 22%, transparent 50px);
    img {
    max-width: 1000px;
    margin: 0 auto;
    }
    }
    .container {
      padding: 30px;
    }

    .type_title {
    width: 45%;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    gap: 16px;
    }
    .container.question-active {
    width: 1000px;
    margin:0 auto;
    padding: 40px;
    font-size: 24px;
    line-height: 125%;
    }
    .result-a-active,.result-b-active,.result-c-active,.result-d-active,.resultA-wrapper,.resultB-wrapper,.resultC-wrapper,.resultD-wrapper {
    width: 1000px;
    margin: 0 auto;
    }
    .resultA-box,.resultB-box,.resultC-box,.resultD-box {
    width: 960px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
    }
    .pc_3col_default {
      display: grid;
      gap: 16px;
      grid-template-columns: repeat(3, 1fr);
    }
    .pc_3col_wide {
      display: grid;
      gap: 30px;
      align-items: center;
      grid-template-columns: 4fr 1fr 4fr;
    }
    .pc_2col_narrow {
      display: grid;
      gap: 8px;
      grid-template-columns: repeat(2, 1fr);
    }
    .pc_2col_default {
      display: grid;
      gap: 16px;
      grid-template-columns: repeat(2, 1fr);
    }
    .pc_2col_wide {
      display: grid;
      gap: 30px;
      grid-template-columns: repeat(2, 1fr);
    }
    .pc_layout {
      display: grid;
      gap: 50px;
    }
    .pc_layout_narrow {
      display: grid;
      gap: 30px;
    }
    .pc_bnr {
      width: 400px;
      margin: 0 auto;
    }
    .container {
      margin: 120px auto;
    }
    .contents {
      padding: 30px 24px;
      max-width: 960px;
    }
    .result-b-active {
      .arrow {
      width: 60px;
      transform: rotate(-90deg);
      margin: 0 auto;
    }
    }
    .result-c-active {
      .btn_small {
      width: 248px;
      }
    .pc_txt_layout_left {
      text-align: left;
      }
    }
    .diagnosis_btn {
    font-size: 24px;
    width: 200px;
    height: 200px;
  }
  #fixed_text_container {
  font-size: 24px;
  line-height: 125%;
  }
  .choices {
  padding-top: 24px;
  gap: 24px;
  }

  }
}

@media screen and (max-width: 767px) {
  .pc {
    display: none!important;
  }
  #typecheck_autumn {
    font-size: 14px;

    .container {
      padding: 16px 8px;
    }

    .container {
      margin: 16px;
    }
    .contents {
      padding: 16px 8px;
    }
    .type_title {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    gap: 8px;
    }
    .resultA-box,.resultB-box,.resultC-box,.resultD-box {
    display: grid;
    gap: 8px;
    }
    .sp_layout_narrow {
    display: grid;
    gap: 8px;
    }
    .sp_layout_default {
    display: grid;
    gap: 16px;
    }
    .result-b-active {
      .arrow {
      width: 47px;
      margin: 0 auto;
    }
    }
    .diagnosis_btn {
    font-size: 16px;
    width: 100px;
    height: 100px;
  }
  .choices {
  padding-top: 16px;
  gap: 8px;
  }
  #fixed_text_container {
    font-size: 16px;
    line-height: 125%;
  }
  .container.question-active {
    font-size: 16px;
  }
    
  }
}

#typecheck_autumn {
  line-height: 125%;
  .page { 
    display: none;
   }
  .page.active {
     display: block; 
    }
  .choices {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  .diagnosis_btn {
    border-radius: 8px;
    padding: 8px;
    background-color: #018FE5;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 600;
    line-height: 125%;
  }
  .diagnosis_btn:hover { 
    background-color: #fff; 
    color: #018FE5;
    border: 1px solid #018FE5;
  }
  #fixed_text_container {
    color: #018FE5;
    padding: 16px;
    text-align: center;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    .arrow_blue {
      width: 42px;
      height: 22px;
    }
  }
   }

  .hidden { 
    display: none !important; 
  }

  .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 8px;
  text-align: center;
  gap: 16px;
  /* ★★★ 背景色も滑らかに変化するよう transition に追加 ★★★ */
  transition: border 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
  border: 3px solid transparent;
  }
  .container.question-active {
  border: 1px solid #018FE5;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  font-weight: 600;
  }

  .txt_bold {
  font-weight: 600;
  }
  .txt_layout_left {
  text-align: left;
  }
  .txt_small {
  font-size: 14px;
  }
  .txt_small_light {
    font-size: 11px;
    color: #596161;
  }
  .txt_pink {
  font-weight: 600;
  color: #F73E9D;
  }
  .txt_pink_link {
  font-weight: 600;
  color: #F73E9D;
  text-decoration-line: underline;
  }
  .txt_pink_bg {
  font-weight: 600;
  color: #F73E9D;
  font-size: 19px;
  }
  .layout_narrow {
  display: grid;
  gap: 8px;
  }
  .layout_default {
  display: grid;
  gap: 16px;
  }
  .contents {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    border-radius: 8px;
    background: #FFF;
  }
  .resultA-box,.resultB-box,.resultC-box,.resultD-box {
    border-radius: 8px;
    padding: 16px 8px;
  }

/* タイプA */
.result-a-active { 
  .resultA-wrapper {
    background: #FFE2F1;
    border-radius: 8px;
  }
  .color_box {
    display: flex;
    padding: 16px 8px;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    align-self: stretch;
    border-radius: 8px;
    background: #FFE7DB;
  }
  .restart-button {
    display: flex;
    width: 250px;
    height: 52px;
    padding: 8px;
    flex-direction: column;
    align-items: center;
    border-radius: 8px;
    border: 1px solid #F73E9D;
    background: #FF9ACE;
    color: #fff;
    margin: 0 auto;
    justify-content: center;
    font-weight: 600;
  }
  .restart-button:hover { 
  background-color: #fff; 
  color: #F73E9D;
}
  
} 

/* タイプB */
.result-b-active { 
  .resultB-wrapper {
    background: #D8F0FF;
    border-radius: 8px;
  }
  .color_box {
    display: flex;
    padding: 16px 8px;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    border-radius: 8px;
    background: #D8F0FF;
  }
  .btn {
    position: relative;
    display: flex;
    height: 52px;
    padding: 8px 25px 8px 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    align-self: stretch;
    border-radius: 8px;
    border: 1px solid #018FE5;
    font-weight: 600;
    &::before {
      content: '';
      background-image: url('/special/typecheck_autumn/images/arrow_typeB_btn.svg');
      background-size: contain;
      background-repeat: no-repeat;
      width: 12px;
      height: 12px;
      display: block;
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
    }
  }
  .btn:hover { 
  background-color: #D8F0FF; 
  color: #018FE5;
}
  .research_title {
    display: flex;
    width: 220px;
    padding: 4px;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    background: #FFF;
    color: #018FE5;
    font-weight: 600;
  }
  .graph {
    width: 75%;
    margin: 0 auto;
  }
  .restart-button {
    display: flex;
    width: 250px;
    height: 52px;
    padding: 8px;
    flex-direction: column;
    align-items: center;
    border-radius: 8px;
    border: 1px solid #018FE5;
    background: #67C6FF;
    color: #fff;
    margin: 0 auto;
    justify-content: center;
    font-weight: 600;
  }
  .restart-button:hover { 
  background-color: #fff; 
  color: #018FE5;
}
} 

/* タイプC */
.result-c-active { 
  .resultC-wrapper {
    background: #FFE7DB;
    border-radius: 8px;
  }
  
  .btn {
    position: relative;
    display: flex;
    height: 52px;
    padding: 8px 25px 8px 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    align-self: stretch;
    border-radius: 8px;
    border: 1px solid #FA621B;
    font-weight: 600;
    &::after {
      content: '';
      background-image: url('/special/typecheck_autumn/images/arrow_typeC_btn.svg');
      background-size: contain;
      background-repeat: no-repeat;
      width: 12px;
      height: 12px;
      display: block;
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
    }
  }
  .btn:hover { 
  background-color: #FFE7DB; 
  color: #FA621B;
}
.btn_small {
  position: relative;
  display: flex;
  height: 52px;
  padding: 8px 25px 8px 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  align-self: stretch;
  border-radius: 8px;
  color: #FA621B;
  border: 1px solid #FA621B;
  font-weight: 600;
    &::after {
    content: '';
    background-image: url('/special/typecheck_autumn/images/arrow_typeC_btn.svg');
    background-size: contain;
    background-repeat: no-repeat;
    width: 12px;
    height: 12px;
    display: block;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
  }
}
.btn_small:hover { 
  background-color: #FFE7DB; 
  color: #FA621B;
}
  .recommend_method_title {
    display: flex;
    height: 40px;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    background: #FFF;
    color: #FA621B;
    font-weight: 600;
  }
  .method_title {
    display: grid;
    justify-content: center;
    gap: 8px;
    align-self: stretch;
    grid-template-columns: 40px 1fr;
    align-self: stretch;
    text-align: left;
  }
  .method_number {
    display: flex;
    width: 31px;
    height: 31px;
    padding: 5px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 20px;
    background: #FFE7DB;
    color: #FA621B;
    font-size: 12px;
  }
  .color_box {
    display: flex;
    padding: 16px 8px;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    align-self: stretch;
    border-radius: 8px;
    background: #FFE7DB;
  }
  .btn_wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }
  .restart-button {
    display: flex;
    width: 250px;
    height: 52px;
    padding: 8px;
    flex-direction: column;
    align-items: center;
    border-radius: 8px;
    border: 1px solid #FA621B;
    background: #FFA87F;
    color: #fff;
    margin: 0 auto;
    justify-content: center;
    font-weight: 600;
  }
  .restart-button:hover { 
  background-color: #fff; 
  color: #FA621B;
}
} 
/* タイプD */
.result-d-active { 
  .resultD-wrapper {
    background: #D2F9FD;
    border-radius: 8px;
  }
  .color_box {
    display: flex;
    padding: 16px 8px;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    align-self: stretch;
    border-radius: 8px;
    background: #D2F9FD;
  }
  .cause_title {
    display: grid;
    justify-content: center;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    grid-template-columns: 50px 1fr;
  }
  .cause_number {
    display: flex;
    width: 50px;
    height: 24px;
    padding: 5px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 20px;
    background: #FFF;
    color: #0F9CA7;
    font-size: 12px;
  } 
  .graph_title {
    display: flex;
    width: 290px;
    padding: 8px;
    justify-content: center;
    align-items: center;
    background: #FFF;
    color: #0F9CA7;
    font-weight: 600;
    border-radius: 30px;
    margin: 0 auto;
  }
  .arrow {
    width: 61px;
    height: 39px;
    margin: 0 auto;
  }
  .txt_green {
    color: #0F9CA7;
    font-weight: 600;
    text-decoration-line: underline;
  }
  .restart-button {
    display: flex;
    width: 250px;
    height: 52px;
    padding: 8px;
    flex-direction: column;
    align-items: center;
    border-radius: 8px;
    border: 1px solid #0F9CA7;
    background: #52C4CD;
    color: #fff;
    margin: 0 auto;
    justify-content: center;
    font-weight: 600;
  }
  .restart-button:hover { 
  background-color: #fff; 
  color: #0F9CA7;
  }

}
