@charset "UTF-8";

@import "../../css/variables.css";

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

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

  /* 回答ボタンの背景色 */
  --answer-btn-bg-color: var(--color-orange-extralight);

  /* 回答ボタン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: 60px;
  }

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

@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 */
    text-align: center;
    margin-bottom: 55px;
    padding: 20px 15px;
    font-size: var(--font-size-28);
  }

  @media screen and (max-width: 767px) {
    /* SP */
    font-size: var(--font-size-20);
    margin-bottom: 10%;
    box-sizing: border-box;
    line-height: 1.6;
    padding: 3% 3% 3% 15%;
    position: relative;
  }
}

.q-icon {
  position: absolute;
  display: inline-block;

  @media screen and (min-width: 768px) {
    /* PC */
    inset: 20px auto auto 35px;
  }

  @media screen and (max-width: 767px) {
    /* SP */
    inset: 2vw auto auto 5%;
  }
}

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

  /* 回答リストボックス */
  .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: 460px;
  margin: 0 auto;
  border-bottom: 1px solid;

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

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

.chart_back-btn,
.restart_btn {
  @media screen and (min-width: 768px) {
    /* PC */
    padding: 15px 35px 15px 5px;
  }

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

.chart_back-btn::before,
.chart_anchor-btn::before,
.restart_btn::before {
  right: 0;
}

.restart_btn:hover {
  cursor: pointer;
}

/* 診断結果
----------------------------------------------- */

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

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

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

.result_title .sub {
  border-bottom: 1px solid;
  text-align: center;

  @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: 12%;
  }
}

.result_title .sub::before {
  position: absolute;
  content: '';
  width: 11px;
  height: 18px;
  background: url(../img/chart-result-ttl_bdr.png) center/100% no-repeat;
  inset: auto 0 -18px;
  margin: 0 auto;
}

.result_title-main {
  display: block;

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

  @media screen and (max-width: 767px) {
    /* SP */
    font-size: var(--font-size-21);
    margin-bottom: 8%;
    padding-left: 8%;
  }
}

.result_title-main::before {
  position: absolute;
  content: "";
  background: var(--accent-color);

  @media screen and (min-width: 768px) {
    /* PC */
    width: 18px;
    height: 18px;
    inset: 18px auto auto 0;
  }

  @media screen and (max-width: 767px) {
    /* SP */
    width: 3vw;
    height: 3vw;
    inset: 3vw auto auto 0;
  }
}

.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;
  margin-top: 5%;
  gap: 30px 45px;
}

.result_btn-list li {

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

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

.chart_anchor-btn {
  width: 100% !important;
  border: none !important;
}

.chart_anchor-btn:hover {
  color: var(--body-font-color) !important;
  transform: scale(.97);
}

.result_btn-list li:first-child .chart_anchor-btn {
  background: var(--color-blue-extralight);
}

.result_btn-list li:nth-child(2) .chart_anchor-btn {
  background: var(--color-red-extralight);
}

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