@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;
  background: rgba(var(--color-white-rgb), .8);

  @media screen and (min-width: 768px) {
    /* PC */
    padding: 40px;
  }

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

.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;
}

.show {
  width: 100%;
}

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

.chart_answer-btn small {
  @media screen and (min-width: 768px) {
    /* PC */
    font-size: 1.3rem;
  }

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

/*=========================================================
	診断チャート
=========================================================*/

@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 {
  text-align: center;

  @media screen and (min-width: 768px) {
    /* PC */
    margin-bottom: 55px;
    font-size: 2rem;
    padding: 15px;
  }

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

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

  /* SP */
  .q-icon {
    position: relative;
    display: inline-block;
  }

  /* 回答リストボックス */
  .chart_btn_list-bx {
    padding: 4vw;
    box-sizing: border-box;
  }

  .chart_btn_list-inbx {
    background: #fff;
    padding: 6vw;
  }
}

/* 診断ボタン
----------------------------------------------- */
/* 回答リスト */
.chart_btn_list-item {
  @media screen and (min-width: 768px) {
    /* PC */
    width: 300px;
  }

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

/* 回答ボタン */

/* 戻るボタン */
.btn_wrp {
  @media screen and (min-width: 768px) {
    /* PC */
    margin-top: 55px;
  }

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

.chart_back-btn {
  text-align: center;
  border-width: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;

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

  @media screen and (max-width: 767px) {
    /* SP */
    width: 65%;
    height: 14vw;
  }
}

.chart_back-btn:hover {
  opacity: 1;
  background: var(--primary-color);
  color: var(--color-white);
}

/* 診断結果
----------------------------------------------- */
.result_chart {
  @media screen and (max-width: 767px) {
    /* SP */
    padding: 21vw 0 8vw;
  }
}

.result_title {
  font-weight: 700;
  position: relative;
  text-align: center;

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

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

.result_title .result_title-icon {
  margin: 0 auto 2%;
  display: block;

  @media screen and (min-width: 768px) {
    /* PC */
    width: 90px;
    font-size: 1.7rem;
    padding: 2px 8px;
  }

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

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

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

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

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

  @media screen and (min-width: 768px) {
    /* PC */
    font-size: 35px;
    margin-bottom: 30px;
    letter-spacing: 0.5rem;
  }

  @media screen and (max-width: 767px) {
    /* SP */
    font-size: 4.5vw;
    margin-bottom: 6vw;
    letter-spacing: 0.1rem;
  }
}

.result_container {
  background: rgba(var(--color-white-rgb), .8);

  @media screen and (min-width: 768px) {
    /* PC */
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    padding: 40px;
  }

  @media screen and (max-width: 767px) {
    /* SP */
    display: block;
    padding: 12% 6%;
  }
}

.result_container .main-title {
  width: 100%;
  text-align: center;

  @media screen and (min-width: 768px) {
    /* PC */
    padding: 15px;
    font-size: 3.2rem;
    margin-bottom: 25px;
  }

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

@media screen and (min-width: 768px) {

  .result_container .result_img {
    width: 340px;
  }

  /* PC */
  .result_container .result_txtxbx {
    width: 630px;
  }
}

@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 .chart_anchor-btn {
  width: 100%;
}

.restart_btn {
  margin: 0 auto;
  border-width: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;

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

  @media screen and (max-width: 767px) {
    /* SP */
    width: 70%;
    height: 14vw;
  }
}

.restart_btn:hover {
  opacity: 1;
  cursor: pointer;
  background: var(--primary-color);
  color: var(--color-white);
}