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

.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 {
  @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: 55px;
  }

  @media screen and (max-width: 767px) {
    /* SP */
    font-size: 4.5vw;
    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 {
  width: 300px;
}

/* 回答ボタン */
.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: var(--answer-btn-bg-color);
  position: relative;
  line-height: 1.5;
  height: 100%;
  transition: 0.2s all;

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

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

.chart_answer-btn:hover {
  background: var(--answer-btn-hover-bg-color);
}

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

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

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

.chart_back-btn,
.chart_anchor-btn,
.restart_btn {
  width: 280px;
  margin: 0 auto;
  display: block;
  background: #fff;
  border: solid 1px var(--chart-default-color);
  font-weight: 700;

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

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

.restart_btn:hover {
  cursor: pointer;
}

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

.result_title {
  font-weight: 700;
  position: relative;

  @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 {
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;

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

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

.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: 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 {
  @media screen and (min-width: 768px) {
    /* PC */
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
  }

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

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

  /* PC */
  .result_container .result_img,
  .result_container .result_txtxbx {
    width: 510px;
  }
}

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