@charset "UTF-8";

/* リスク許容度チェック */
#step1, #step2, #step3, #step4, #step5, #step6, #result {
  display: none;
}
.view {
  display: none;
}
.view.active {
  display: block;
}
.box01 {
  padding: 40px;
  background: #fff url(../../img/condition/check_bg.png) repeat;
  background-size: 75px;
  border: 3px solid var(--main-orange150);
  margin: 0 0 35px;
}
.box01__inner {
  position: relative;
  padding: 60px 0;
}
.box01__title {
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
}
.box01__text {
  margin: 25px 0;
  font-size: 1.6rem;
  line-height: 1.8;
  text-align: center;
}
.check-wrap {
  display: flex;
  margin: 30px auto;
  justify-content: center;  
}
.check-wrap label:hover {
  cursor: pointer;
}
.link-wrap {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
}
.link-wrap__button {
  font-size: 1.6rem;
  margin: 0;
}
.link-wrap__button[disabled] {
  background: var(--base-gray10);
  color: var(--base-gray500);
  border: var(--base-gray10) 3px solid;
  pointer-events: none;
  cursor: not-allowed;
}
.link-wrap__button[disabled]::after {
  position: absolute;
  content: "";
  top: 50%;
  right: 27px;
  width: 6px;
  height: 6px;
  border-color: var(--base-gray500);
}
.link-wrap__button--next {
  position: relative;
  font-weight: 600;
  color: #fff;
  text-decoration: none !important;
  text-align: center;
  background: var(--main-orange460);
  padding: 10px 45px 10px 20px;
  border: var(--main-orange460) 3px solid;
  border-radius: 5px;
  transition: .3s;
}
.link-wrap__button--next::before {
  position: absolute;
  content: "";
  top: 50%;
  right: 20px;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border-radius: 20px;
  transform: translateY(-50%);
}
.link-wrap__button--next::after {
  position: absolute;
  content: "";
  top: 50%;
  right: 27px;
  width: 6px;
  height: 6px;
  border-bottom: 2px solid var(--main-orange330);
  border-right: 2px solid var(--main-orange330);
  transform: translateY(-50%) rotate(-45deg);
}
.link-wrap__button--next:hover {
  opacity: .7;
}
.link-wrap__button--back {
  position: relative;
  font-weight: 600;
  color: #fff;
  text-align: center;
  background: var(--base-gray500);
  padding: 10px 20px 10px 45px;
  border: var(--base-gray500) 3px solid;
  border-radius: 5px;
  transition: .3s;
}
.link-wrap__button--back::before {
  position: absolute;
  content: "";
  top: 50%;
  left: 20px;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border-radius: 20px;
  transform: translateY(-50%);
}
.link-wrap__button--back::after {
  position: absolute;
  content: "";
  top: 50%;
  left: 27px;
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--base-gray300);
  border-left: 2px solid var(--base-gray300);
  transform: translateY(-50%) rotate(-45deg);
}

/* 現在の質問位置 */
.q-step {
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0 0 35px;
  list-style: none;
  font-size: 1.4rem;
}
.q-step__item {
  position: relative;
  padding: 12px 10px;
  line-height: 1;
  width: 100%;
  text-align: center;
  border: var(--base-gray100) 1px solid;
}
.q-step__num {
  font-weight: bold;
  font-size: 2rem;
}
.q-step__item.is-active {
  border: var(--main-orange460) 1px solid;
  color: var(--main-orange460);
}
.q-step__item.is-done {
  background: var(--base-gray100);
}
.q-step__item.is-done::before{
  content: "";
  width: 30px;
  height: 30px;
  position: absolute;
  left: calc( 50% - 15px);
  top: calc( 50% - 15px);
  border-radius: 50%;
  background: var(--base-white00);
}
.q-step__item.is-done::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 12px;
  border-right: 2px solid var(--base-gray300);
  border-bottom: 2px solid var(--base-gray300);
  transform: translate(-50%, -50%) rotate(45deg);
}

.q-step__item.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--main-orange460);
}

/* Question */
.box02__inner {
  padding: 30px 0;
}
.box02__title {
  position: relative;
  width: 100%;
  max-width: 377px;
  margin: 7px auto 0;
  font-size: 2rem;
  font-weight: normal;
  color: #fff;
  text-align: center;
  letter-spacing: .05em;
}
.box02__title::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 172px;
  height: 42px;
  content: "";
  background: #e95b0d;
  transform: translate(-50%, -50%);
}
.box02__title::after {
  position: absolute;
  bottom: -25%;
  left: 50%;
  content: "";
  border-top: 7.6025px solid #e95b0d;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  transform: translateX(-50%);
}
/* 質問テキスト */
.question {
  position: relative;
  width: 100%;
  padding: 28px 28px 28px 100px;
  margin: 0 auto 25px;;
  font-size: 1.6rem;
  font-weight: bold;
  letter-spacing: .06em;
  background-color: #f8f8f8;
  border: 1px solid #e3e3e3;
}
.question--hide {
  padding: 28px 83px;
}
.question__icon::before, .question__icon::after {
  position: absolute;
  top: 50%;
  left: 30px;
  width: 48px;
  height: 48px;
  font-size: 2.4rem;
  line-height: 1.8;
  transform: translateY(-50%);
}
.question__icon::before {
  content: "";
  background-color: #fff;
  border-radius: 1em;
}
.question__icon::after {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inter, sans-serif;
  color: var(--main-orange460);
  content: "Q";
}
.question__icon--hide::before, .question__icon--hide::after {
  display: none;
}
.form-group {
  display: grid;
  grid-template-columns: max-content auto;
  gap: .5em 1em;
  width: fit-content;
  margin: 30px auto;
  align-items: center;
}
.form-group__item {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
  font-size: 1.6rem;
  text-align: center;
  background-color: #fff;
  border-radius: 60px;
  box-shadow: 0 0 0 2px var(--base-gray200) inset;
  width: 100%;
  max-width: 400px;
  min-width: 300px;
  gap: 10px;
  padding: 15px;
}
.form-group__item:has(input:checked) {
  box-shadow: 0 0 0 2px var(--main-orange330) inset;
}
.form-group__item:hover {
  cursor: pointer;
  background: var(--main-orange10);
}
.form-group__item > input[type=radio] {
  position: absolute;
  z-index: -1;
  opacity: 0;
}
.form-group__item span {
  position: absolute;
  padding: 0 0 0 30px;
  display: inline-block;
  left: 25px;
}
.form-group__item input[type=radio]:checked + span:before,
.form-group__item input[type=radio]:hover + span:before{
  background: var(--main-orange330);
}
.form-group__item input[type=radio] + span:before {
  position: absolute;
  content: "";
  width: 24px;
  height: 24px;
  left: 0;
  top: 0;
  background: var(--base-gray150);
}
.form-group__item input[type=radio] + span:after {
  position: absolute;
  content: "";
  left: 9px;
  top: 4px;
  width: 7px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.form-group__input {
  border: var(--base-gray300) 1px solid;
  border-radius: 3px;
  padding: 10px;
}
.modal-scroll {
  overflow: auto;
  max-height: 350px;
}
.error-message {
  display: none;
  margin: 12px 0;
  padding: 8px;
  background: var(--function-red10);
  color: var(--function-red460);
  font-size: 14px;
  text-align: center;
}
.form-group__input.error{
  border: 1px solid var(--function-red460); 
}
.chart {
  margin: 0 auto;
  max-width: 700px;
  width: 100%;
  aspect-ratio: 7 / 4;

}
#navChart {
  position: relative;
}
.portfolio-layout {
  display: flex;
  align-items: center;
  justify-content: center;
}
.portfolio-chart-wrap {
  width: 500px;
}
.result {
  padding-top: 20px;
}
.result-head {
  margin-bottom: 60px;
  text-align: center;
}
.result-head__label {
  margin: 0;
}
.result-head__title {
  line-height: 1.4;
  font-size: 2rem;
  margin: 10px 0 30px;
  background: var(--main-orange10);
  padding: 20px;
  border: var(--main-orange330) 3px solid;
}
.result-head__title span {
  font-size: 3rem;
  color: var(--main-orange460);
}
.result-head__text,
.result-note {
  font-size: 1.6rem;
  text-align: left;
  margin: 10px 0 5px;
}
.result-allocation {
  padding: 28px;
  border: 2px solid #fed7aa;
  background: #fff;
}
.result-allocation__title {
  font-size: 2rem;
  margin: -28px -28px 25px;
  font-weight: 700;
  text-align: center;
  background: var(--main-orange10);
  padding: 20px;
}
.result-allocation__title2{
  font-size: 1.8rem;
  text-align: center;
  background: var(--base-gray10);
  border: var(--base-gray100) 2px solid;
  padding: 15px;  
}
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.result-grid--single {
  grid-template-columns: 1fr;
}
.portfolio-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.portfolio-item__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.portfolio-item__name {
  font-weight: 700;
}
.portfolio-item__value {
  font-weight: 700;
  color: #ea580c;
}
.portfolio-item__bar {
  width: 100%;
  height: 10px;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}
.portfolio-item__fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #fb923c 0%, #f97316 100%);
}
.result-fund {
  padding: 28px;
  border: 2px solid #fed7aa;
  border-radius: 24px;
  background: #fff;
  margin-top: 50px;
}
.result-fund__label {
  display: inline-block;
  padding: 6px 14px;
  background: var(--main-orange10);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.result-fund__title {
  font-size: 2.8rem;
  margin: 10px 0 30px;
  font-weight: 700;
  text-align: center;
  color: var(--main-orange460);
}
.result-fund__text {
  margin: 10px 0 50px;
  text-align: center;
}
.result-fund__feature {
  margin-bottom: 10px;
}
.result-fund__feature span {
  padding: 8px 14px;
  border-radius: 9999px;
  background: #fff7ed;
  color: var(--main-orange460);
  font-weight: 700;
}
.result-restart {
  margin-top: 40px;
}
.result-grid--single .result-allocation__title br {
  display: none;
}
#portfolioList {
  font-size: 1.6rem;
}
.modal-main {
  position: relative;
  overflow-x: hidden;
}
.result-level-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 40px;
  flex-wrap: wrap;
}

.level-button {
  position: relative;
  padding: 14px 20px;
  border: 2px solid #ddd;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}

/* hover */
.level-button:hover {
  border-color: var(--main-orange460);
  color: var(--main-orange460);
}


/* 選択中 */
.level-button.is-active {
  background: var(--main-orange460);
  border-color: var(--main-orange460);
  color: var(--base-white00);
}


/* 下の三角 */
.level-button.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid var(--main-orange460);;
}

.risk-scale {
  display:flex;
  align-items:center;
  justify-content:space-between;
  max-width:600px;
  margin:0 auto 15px;
  font-size:14px;
  font-weight:bold;
}

.risk-scale__line {
  flex:1;
  height:6px;
  margin:0 20px;
  border-radius:10px;
  background:linear-gradient(
    to right,
    #4da3ff,
    #ffd500,
    #ff6b3d
  );
}

/* ====== スマホ対応 ====== */
@media only screen and (max-width: 768px) {
  .box01 {
    margin: 0 0 20px;
    padding: 20px;
  }
  .box01__inner {
    padding: 40px 0;
  }
  .box01__text {
    font-size: 1.4rem;
  }
  .box01__illust {
    max-width: 100px;
    margin: 20px auto 0;
  }
  .box02 {
    padding: 0;
  }
  .box02__inner {
    padding: 20px 0;
  }
  .box02__title {
    font-size: 1.6rem;
  }
  .box02__title::before {
    width: 155px;
    height: 35px;
  }
  .box02__title::after {
    bottom: -30%;
  }
  .question {
    padding: 30px 20px 20px 20px;
    margin: 15px auto;
  }
  .question--hide {
    padding: 20px 15px 20px 20px;
  }
  .question__icon::before, .question__icon::after {
    left: 15px;
    top: 0;
  }
  .question p {
    font-size: 1.4rem;
  }  
  .back {
    margin: 40px 0 0;
  }
  .back__link {
    padding-left: 37px;
  }
  .back__link span {
    width: 28px;
    height: 28px;
  }
  .applicationforms-contents {
    flex-wrap: wrap;
    padding: 20px;
    margin-top: 40px;
  }
  .applicationforms ol > li picture {
    padding: 0;
  }
  .applicationforms-contents__img {
    padding: 0;
    margin-bottom: 10px;
  }
  .applicationforms-contents__img > img {
    max-width: 150px;
  }
  .applicationforms-list {
    width: 100%;
    padding: 0;
  }
  .form-group {
    margin: 10px auto;
    font-size: 1.4rem;
    display: block;    
  }
  .link-wrap {
    font-size: 1.4rem;
    gap: 20px;
  }
  .link-wrap__button {
    font-size: 1.2rem;
  }
  .modal-scroll {
    max-height: 400px;
  }
  .form-group__item {
    margin: 10px 0;
  }
  .modal-content {
    top: 0;
    height: 100vh;      
  }
  .modal-main {
    margin: 0;
    height: 100vh;
    max-height: none;
    padding: 20px;
  }
  .link-wrap {
    margin-top: 50px;
  }
  .result-fund__title {
    font-size: 2rem;
  }
  .result-fund__text {
    font-size: 1.4rem;
  }
  .result-grid,
  .result-grid--single {
    grid-template-columns: 1fr;
  }
  .portfolio-chart-wrap {
    width: 300px;
    height: auto;
    min-height: 0;
  }  
  .result-level-nav {
    gap: 0;
  }
  #portfolioChart {
    height: 100% !important;
  }  
  .level-button {
    border-radius: 0; 
    padding: 9px;
    font-size: 1.4rem;
  }
  .result-allocation {
    padding: 20px;
  }
  .result-allocation__title {
    padding: 15px;
    margin: -20px -20px 25px;
  }
  .result-allocation__title2 {
    padding: 10px;
    font-size: 1.6rem;
  }
  .result-fund__text {
    text-align: left;
  }
}
