/* =====================================================
   利回りシミュレーション - 計算フォーム
   ===================================================== */

.p-simulation-inner {
  padding: 40px 20px 30px;
  background-color: #F9F9F9;
  border: 1px solid #D9D9D9;
  font-family: 'Noto Sans JP', sans-serif;
}

/* グリッド */
.c-grid--justify-content-center {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.c-grid__col {
  display: flex;
  align-items: flex-end;
}

/* =====================
   フォームグループ
   ===================== */
.c-form-group {
  display: flex;
  flex-direction: column;
  margin: 0 0 18px;
}

.c-form-group__sup {
  margin-bottom: 6px;
  display: block;
}

.c-form-group__input {
  display: flex;
  align-items: center;
}

.c-form-group__text {
  white-space: nowrap;
  margin: 0 6px;
}

.c-form-group__note {
  margin-top: 4px;
  display: block;
}

/* =====================
   入力フィールド
   ===================== */
.c-form__input {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  padding: 8px 15px 6px 5px;
  height: 55px;
  vertical-align: bottom;
  border: 2px solid #D9D9D9;
  background: #fff;
  -moz-appearance: textfield;
  text-align: right;
  font-size: 20px;
}

.c-form__input::-webkit-inner-spin-button,
.c-form__input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.c-form__input:focus {
  outline: none;
  border-color: #DC9B91;
}

.u-mr0 { margin-right: 0 !important; }
.u-mt24px { margin-top: 24px; }
.u-mt30px { margin-top: 30px; }
.u-ml30px { margin-left: 30px; }

/* サイズバリアント */
.u-size--w80px  { width: 100%; max-width: 80px; }
.u-size--w105px { width: 100%; max-width: 105px; }
.u-size--w140px { width: 100%; max-width: 140px; }
@media (max-width: 768px) {
  .u-size--w80px { max-width: 120px; }
  .u-size--w105px { max-width: 100%; }
  .u-size--w140px { max-width: 100%; }
}

/* =====================
   結果エリア（計算前は非表示）
   ===================== */
.p-simulation__result {
  display: none;
}

/* =====================
   結果ボックス
   ===================== */
.result-box {
  border: 1px solid #C45050;
  background: #FDF0EF;
  padding: 24px 30px;
  text-align: center;
}

.result-text {
  margin: 0;
  line-height: 1.6;
}

.result-rate {
  font-family: 'Noto Serif JP', serif;
  letter-spacing: 0.08em;
  margin: 0 0.2em;
  color: #C3535B;
  font-weight: bold;
  font-size: 42px;
}

/* =====================
   エラーメッセージ
   ===================== */
.error-message {
  color: #e53935;
  text-align: center;
  min-height: 20px;
  margin: 10px 0 45px;
}
@media (max-width: 768px) {
  .error-message {
    margin: 10px 0 25px;
  }
}

/* =====================
   チャートエリア
   ===================== */
#financialCalcChart {
  min-height: 50px;
  margin-top: 30px;
}

/* =====================
   レスポンシブ
   ===================== */
@media screen and (max-width: 640px) {
  .c-grid--justify-content-center {
    flex-direction: column;
    align-items: center;
  }
  .c-grid__col {
    width: 100%;
    max-width: 260px;
    padding: 4px 0;
  }
  .u-ml30px {
    margin-left: 0;
  }
  .c-form-group {
    margin-bottom: 12px;
  }
  .result-rate {
    font-size: 32px;
  }
}

/* ▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼ */

.card-title-wrapper {
  background-color: #173D60;
  color: #fff;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
}

.card-title {
  font-weight: bold;
  text-align: center;
  font-size: 32px;
  padding: 15px 0;
}

@media (max-width: 768px) {
  .card-title-wrapper {
    margin-top: 20px;
  }
  .card-title {
    font-size: 16px;
    padding: 10px 0;
  }
  .card-content {
    padding: 30px 15px;
  }
}

/* ▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼ */

.col-3 {
  display: flex;
  margin-top: 100px;
}

.col-item {
  flex: 1;
  position: relative;
  padding: 0 40px;
}
.col-item:first-child {
  padding-left: 0;
}
.col-item:last-child {
  padding-right: 0;
}
.col-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background-color: #ccc;
}

.col-item-inner {
  position: relative;
}
.col-item.is-result .col-item-inner::before {
  content: 'こちら！';
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  background-color: #D0A866;
  color: #fff;
  width: 100%;
  max-width: 150px;
  padding: 5px 0;
  font-size: 16px;
  font-family: 'Noto Sans JP', sans-serif;
}

@media (min-width: 769px) {
  .col-item:not(.is-result) {
    opacity: 0.3;
  }
}

@media (max-width: 768px) {
  .col-item:not(.is-result) {
    display: none;
  }
  .col-item.is-result::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .col-3 {
    flex-direction: column;
    margin-top: 30px;
  }
  .col-item {
    padding: 40px 0;
  }
  .col-item:not(:last-child)::after {
    width: 100%;
    height: 1px;
    top: auto;
    bottom: 0;
  }
  .col-item.is-result .col-item-inner::before {
    top: -50px;
    font-size: 14px;
  }
}

/* ▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼ */