@charset "UTF-8";

html:has(#chart) {
  scroll-padding-top: 100px;
}

/* 変数設定
=========================================*/
:root {
  /* チャートのデフォルトカラー */
  --chart-default-color: #ccc;

  /* 回答ボタンの背景色 */
  --answer-btn-bg-color: #f2f2f2;

  /* 回答ボタンhover時の背景色 */
  --answer-btn-hover-bg-color: #ccc;

  /* 戻るボタンの背景色 */
  --back-btn-bg-color: #fff;

  /* 戻るボタンhover時の背景色 */
  --back-btn-hover-bg-color: #ccc;
}


/* 初期状態：先頭以外の質問と全ての回答を非表示
=========================================*/
.chart_container .com_chart {
  display: none;
  padding-bottom: 5%;
}

.chart_container .com_chart:first-of-type {
  display: block;
}

.chart_container .result_chart {
  display: none;
}

/*基本設定
=========================================*/
.chart_container {
  position: relative;
  width: 100%;
}

.chart_btn_list {
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;

  @media screen and (max-width: 767px) {
    gap: 3vw;
  }
}

.show {
  width: 100%;
}

.btn {
  position: relative;
  transition: 0.1s all ease-in-out;
}

/*=========================================================
	診断チャート
=========================================================*/
#chart {
  @media screen and (min-width: 768px) {
    /* PC */
    padding: 85px 0;
  }

  @media screen and (max-width: 767px) {
    /* SP */
    padding: 18% 0;
  }
}

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

  /* SP */
  #chart .chart-title-img {
    position: absolute;
  }

  #chart .title-l-img {
    width: 25vw;
    left: -5vw;
    top: -10vw;
  }

  #chart .title-r-img {
    width: 20vw;
    right: 0;
    bottom: -8vw;
  }
}

/* 診断コンテンツ
----------------------------------------------- */

/* 診断タイトル */
.chart_title {

  @media screen and (min-width: 768px) {
    /* PC */
    margin-bottom: 35px;
    font-size: 2.5rem;
    padding: 20px;
    text-align: center;
    border-radius: 40px 40px 0 0;
  }

  @media screen and (max-width: 767px) {
    /* SP */
    font-size: 4.25vw;
    padding: 3% 3% 3% 13%;
    margin-bottom: 5%;
    box-sizing: border-box;
    line-height: 1.6;
    border-radius: 7vw 7vw 0 0;
  }
}

.q-icon {
  @media screen and (min-width: 768px) {
    width: 60px;
    height: 60px;
    font-size: 3rem;
    inset: 12px auto auto 30px;
  }

  @media screen and (max-width: 767px) {
    width: 7vw;
    height: 7vw;
    inset: 2vw auto auto 3%;
  }
}

/* 診断ボタン
----------------------------------------------- */
/* 回答リスト */

/* 回答ボタン */
.chart_answer-btn {
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: -ms-flexbox;
  -js-display: flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center;
  background: linear-gradient(to bottom, rgba(103, 105, 187, 1) 50%, rgba(89, 91, 169, 1) 50%);
  position: relative;
  line-height: 1.5;
  height: 100%;
  transition: 0.2s all;
  padding: 2px;

  @media screen and (min-width: 768px) {
    /* PC */
    width: 480px;
    min-height: 80px;
  }

  @media screen and (max-width: 767px) {
    /* SP */
    width: 38vw;
    min-height: 14vw;
    font-size: 3.85vw;
  }

  span {
    width: 100%;
    height: 100%;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: -ms-flexbox;
    -js-display: flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
  }
}

/* 戻るボタン */
.btn_wrp {
  text-align: center;

  @media screen and (min-width: 768px) {
    /* PC */
    margin-top: 30px;
  }

  @media screen and (max-width: 767px) {
    /* SP */
    margin-top: 8%;
  }
}

.chart_back-btn,
.chart_anchor-btn,
.restart_btn {
  width: 280px;
  margin: 0 auto;

  @media screen and (min-width: 768px) {
    /* PC */
    font-size: 1.8rem;
  }

  @media screen and (max-width: 767px) {
    /* SP */
    width: 80%;
    padding: 3vw 4vw;
    font-size: 4vw;
  }
}

.restart_btn:hover {
  cursor: pointer;
}

.chart_answer-btn::before {
  width: 20px;
  height: 20px;
  right: 5%;

  @media screen and (max-width: 767px) {
    width: 4vw;
    height: 4vw;
  }
}

.chart_back-btn span::before,
.restart_btn span::before {
  background: var(--accent-color);
  left: -35px;
  font-size: 2rem;
  transform: scale(-1, 1);
  width: 20px;
  height: 20px;
}

.request__button {
  background: var(--primary-color-light);
  color: var(--body-font-color);

  &::before {
    width: 20px;
    height: 20px;
    background: var(--primary-color);

    @media screen and (max-width: 767px) {
      width: 4vw;
      height: 4vw;
    }
  }

  @media screen and (min-width: 768px) {
    /* PC */
    margin-top: 30px;
  }

  @media screen and (max-width: 767px) {
    /* SP */
    margin-top: 6vw;
  }
}

/* 診断結果
----------------------------------------------- */
.result_title {
  font-weight: 700;
  position: relative;

  @media screen and (max-width: 767px) {
    /* SP */
    line-height: 1.6;
  }
}


.result_title .result_title-icon {
  @media screen and (min-width: 768px) {
    /* PC */
    position: absolute;
    width: 130px;
    height: 130px;
    font-size: 35px;
    line-height: 1;
    inset: -20px auto auto 40px;
  }

  @media screen and (max-width: 767px) {
    /* SP */
    width: 16vw;
    height: 16vw;
    font-size: 3.5vw;
    position: absolute;
    inset: -13vw auto auto 0;
  }
}

.result_title .sub {
  display: block;
  clear: both;
  text-align: center;
  font-weight: 600;
  color: #fff;
  background: var(--chart-default-color);
  position: relative;

  @media screen and (min-width: 768px) {
    /* PC */
    width: 400px;
    margin: 0 auto 30px;
    font-size: 20px;
    padding: 15px;
  }

  @media screen and (max-width: 767px) {
    /* SP */
    width: 100%;
    padding: 2vw 3vw;
    font-size: 4vw;
    margin-bottom: 6vw;
  }
}

.result_title .main {
  display: block;
  text-align: center;

  @media screen and (min-width: 768px) {
    /* PC */
    font-size: 3rem;
    padding: 40px;
    margin-bottom: 15px;
    letter-spacing: 0.5rem;
    border-radius: 40px 40px 0 0;
  }

  @media screen and (max-width: 767px) {
    /* SP */
    font-size: 4.5vw;
    margin-bottom: 5%;
    padding: 5%;
    border-radius: 7vw 7vw 0 0;
    letter-spacing: 0.1rem;
  }
}

.result_container {
  padding: 20px 20px 40px;
}

.result_txtxbx {
  @media screen and (min-width: 768px) {
    padding: 35px 15px;
  }

  @media screen and (max-width: 767px) {
    /* SP */
    padding: 5%;
    border-radius: 7vw;
  }
}

.result_txtxbx::before {
  @media screen and (min-width: 768px) {
    inset: auto 80px 10px auto;
    width: 106px;
    height: 168px;
  }

  @media screen and (max-width: 767px) {
    /* SP */
    inset: auto -17% -12vw auto;
    width: 25%;
    height: 30vw;
  }
}

.chart_anchor-btn {
  width: 100%;
}

.chart_anchor-btn::before {
  width: 20px;
  height: 20px;

  @media screen and (max-width: 767px) {
    width: 4vw;
    height: 4vw;
  }
}

.request__button {
  width: 97.2%;
  margin: 35px auto 0;
}

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

  /* SP */
  .result_container .result_img {
    text-align: center;
    margin-bottom: 8vw;
  }
}

.result_container .result_txt {
  @media screen and (min-width: 768px) {
    /* PC */
    margin-bottom: 30px;
  }

  @media screen and (max-width: 767px) {
    /* SP */
    margin-bottom: 6vw;
  }
}

.result_container .price_bx {
  text-align: right;
  font-weight: 700;
  border-bottom: 1px solid var(--chart-default-color);

  @media screen and (min-width: 768px) {
    /* PC */
    padding-bottom: 20px;
    margin-bottom: 30px;
  }

  @media screen and (max-width: 767px) {
    /* SP */
    padding-bottom: 4vw;
    margin-bottom: 6vw;
  }
}

.result_container .price_bx dt,
.result_container .price_bx dd {
  display: inline-block;
  vertical-align: middle;

  @media screen and (min-width: 768px) {
    /* PC */
    font-size: 20px;
  }

  @media screen and (max-width: 767px) {
    /* SP */
    font-size: 4.5vw;
  }
}

.result_container .price_bx dt {
  color: var(--chart-default-color);

  @media screen and (min-width: 768px) {
    /* PC */
    margin-right: 30px;
  }

  @media screen and (max-width: 767px) {
    /* SP */
    margin-right: 4vw;
  }
}

.result_container .price_bx dd {
  color: #000;
}

.result_btn-list {
  text-align: center;
}

.result_btn-list li {
  @media screen and (min-width: 768px) {
    /* PC */
    margin-bottom: 15px;
  }

  @media screen and (max-width: 767px) {
    /* SP */
    margin-bottom: 3vw;
  }
}

.result_btn-list li:last-of-type {
  margin-bottom: 0;
}

.result_btn-list li .more_btn {
  @media screen and (min-width: 768px) {
    /* PC */
    font-size: 16px;
  }

  @media screen and (max-width: 767px) {
    /* SP */
    width: 90%;
    font-size: 3.8vw;
  }
}