@charset "utf-8";

/*==================================================================================================================*/
/*カスタムブロック＞価格表(非公開)*/
/*---------------------------------------------------------*/
/*設定用のブロックのため画面には表示しない*/
.easys_content.simulation_price_source {
  display: none !important;
}
/*JS読み込み前のちらつき防止（シミュレーター設置ブロックの直後にある表のブロック）*/
.easys_content:has(.simulation_input_head) + .easys_content:has(td.column1) {
  display: none !important;
}

/*==================================================================================================================*/
/*カスタムブロック＞料金シミュレーション*/
/*---------------------------------------------------------*/
/*ブロック全体*/
.simulation_block .entry_post > div {
  font-size: 16px;
}
/*SP*/
html.sp .simulation_block .entry_post > div {
  margin-right: 0;
  margin-left: 0;
  font-size: 14px;
}

/*入力画面ヘッダ・フッタ*/
.simulation_input_head,
.simulation_input_foot {
  width: 100%;
}

/*入力画面スクロール部・横スクロールメッセージ（未使用）*/
.simulation_input_scroll,
.simulation_block .sp_message {
  display: none !important;
}

/*---------------------------------------------------------*/
/*質問*/
.simulation_question {
  margin: 0 0 50px 0;
  animation: simulation_fadein 0.4s ease;
}
/*未回答の前の質問があるため非表示*/
.simulation_question.is_hidden {
  display: none;
}
@keyframes simulation_fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/*SP*/
html.sp .simulation_question {
  margin: 0 0 35px 0;
}

/*質問文*/
.simulation_question_title {
  box-sizing: border-box;
  margin: 0 0 15px 0;
  padding: 10px 15px;
  border: solid 1px var(--table_border_color);
  background: var(--th_background_color);
  color: var(--th_character_color);
  font-weight: bold;
  font-size: 18px;
  line-height: 1.6;
}
/*SP*/
html.sp .simulation_question_title {
  margin: 0 0 10px 0;
  padding: 8px 10px;
  font-size: 15px;
}

/*サブ質問（前の質問の回答によって表示）*/
.simulation_question.is_sub {
  margin-top: -20px;
  padding: 0 0 0 20px;
  border-left: dashed 2px var(--table_border_color);
}
/*SP*/
html.sp .simulation_question.is_sub {
  margin-top: -15px;
  padding: 0 0 0 10px;
}

/*---------------------------------------------------------*/
/*選択肢（横並び）*/
.simulation_choices {
  display: flex;

  justify-content: center;
  gap: 20px;
}
/*SP*/
html.sp .simulation_choices {
  gap: 8px;
}

.simulation_choice {
  display: flex;
  overflow: hidden;
  box-sizing: border-box;
  min-width: 0;
  border: solid 1px var(--table_border_color);
  border-radius: 6px;
  background: var(--basic_background_color);
  color: var(--td_character_color);
  cursor: pointer;
  transition: opacity 0.2s;

  flex: 0 1 300px;
  flex-direction: column;
}
/*SP*/
html.sp .simulation_choice {
  flex: 1 1 0;
}
.simulation_choice:hover {
  opacity: 0.8;
}
/*選択中*/
.simulation_choice.is_checked {
  outline: solid 2px var(--th_background_color);
  outline-offset: -1px;
}

/*画像（比率を固定し、画像全体を表示）*/
.simulation_choice_photo {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  min-height: 0;
  background: var(--kdb_background_color);

  flex: 0 0 auto;
  aspect-ratio: 4 / 3;
}
.simulation_choice_photo img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  margin: 0;
  width: 100%;
  max-width: none;
  height: 100%;

  object-fit: contain;
}

/*ラジオボタン＋選択肢名*/
.simulation_choice_label {
  display: flex;
  box-sizing: border-box;
  padding: 12px 10px;
  font-weight: bold;
  line-height: 1.5;

  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.simulation_choice.is_checked .simulation_choice_label {
  background: var(--th_background_color);
  color: var(--th_character_color);
}
.simulation_choice_label input[type="radio"] {
  margin: 0;
  padding: 0;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  cursor: pointer;

  flex: 0 0 auto;
}
.simulation_choice_text {
  word-break: break-all;
}
/*SP*/
html.sp .simulation_choice_label {
  padding: 8px 4px;
  font-size: 13px;

  gap: 4px;
}
html.sp .simulation_choice_label input[type="radio"] {
  width: 16px;
  height: 16px;
}

/*---------------------------------------------------------*/
/*質問ごとの追加料金目安*/
.simulation_question_price {
  display: none;
}
.simulation_question_price.is_show {
  display: block;
  box-sizing: border-box;
  margin: 15px 0 0 0;
  padding: 12px 15px;
  border: solid 1px var(--table_border_color);
  border-radius: 10px;
  background: var(--kdb_background_color);
  color: var(--td_character_color);
  text-align: center;
  font-weight: bold;
  line-height: 1.5;
}
.simulation_price_main {
  display: block;
}
.simulation_price_value {
  color: var(--required_color);
  font-size: 22px;
}
/*金額（例：6,000円（税別）～）*/
.simulation_num {
  letter-spacing: 0.03em;
}
.simulation_unit {
  margin: 0 0 0 0.1em;
  font-size: 0.65em;
}
.simulation_tax {
  margin: 0 0.2em;
  font-size: 0.45em;
  white-space: nowrap;
}
/*回答一覧の金額は差を小さく*/
.simulation_answers .simulation_unit {
  font-size: 0.85em;
}
.simulation_answers .simulation_tax {
  font-size: 0.75em;
}

/*内訳名（金額の上に表示）*/
.simulation_price_detail {
  display: block;
  margin: 0 0 3px 0;
  font-weight: normal;
  font-size: 14px;
}
/*SP*/
html.sp .simulation_question_price.is_show {
  margin: 10px 0 0 0;
  padding: 8px 10px;
  border-radius: 8px;
}
html.sp .simulation_price_value {
  font-size: 18px;
}

/*==================================================================================================================*/
/*シミュレーション結果*/
/*---------------------------------------------------------*/
/*合計*/
.simulation_total {
  overflow: hidden;
  box-sizing: border-box;
  margin: 0 0 40px 0;
  border: solid 2px var(--th_background_color);
  border-radius: 10px;
  text-align: center;
}
.simulation_total_title {
  padding: 10px 15px;
  background: var(--th_background_color);
  color: var(--th_character_color);
  font-weight: bold;
  font-size: 18px;
  line-height: 1.5;
}
.simulation_total_price {
  padding: 20px 15px;
  background: var(--basic_background_color);
  color: var(--required_color);
  font-weight: bold;
  font-size: 36px;
  line-height: 1.3;
}
/*SP*/
html.sp .simulation_total {
  margin: 0 0 30px 0;
}
html.sp .simulation_total_title {
  padding: 8px 10px;
  font-size: 15px;
}
html.sp .simulation_total_price {
  padding: 15px 10px;
  font-size: 26px;
}

/*---------------------------------------------------------*/
/*回答一覧*/
.simulation_answer_title {
  margin: 0 0 10px 0;
  color: var(--body_text_color);
  font-weight: bold;
  font-size: 18px;
  line-height: 1.5;
}
/*角丸にするため、外枠を表に付け、セルは右と下の線で区切る*/
.simulation_input_foot table.simulation_answers {
  overflow: hidden;
  margin: 0;
  width: 100%;
  border: solid 1px var(--table_border_color);
  border-radius: 10px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.simulation_input_foot table.simulation_answers tr th,
.simulation_input_foot table.simulation_answers tr td {
  box-sizing: border-box;
  padding: 10px 12px;
  border: none;
  border-right: solid 1px var(--table_border_color);
  border-bottom: solid 1px var(--table_border_color);
  background: var(--basic_background_color);
  color: var(--td_character_color);
  vertical-align: middle;
  text-align: left;
  line-height: 1.6;
}
.simulation_input_foot table.simulation_answers tr > *:last-child {
  border-right: none;
}
.simulation_input_foot table.simulation_answers tr:last-child > * {
  border-bottom: none;
}
/*列幅*/
.simulation_input_foot table.simulation_answers col.simulation_col_question {
  width: 50%;
}
.simulation_input_foot table.simulation_answers col.simulation_col_answer,
.simulation_input_foot table.simulation_answers col.simulation_col_price {
  width: 25%;
}
.simulation_input_foot table.simulation_answers tr th {
  font-weight: normal;
}
.simulation_input_foot table.simulation_answers tr td.simulation_answer {
  font-weight: bold;
}
/*サブ質問の回答*/
.simulation_input_foot table.simulation_answers .simulation_answer_main,
.simulation_input_foot table.simulation_answers .simulation_answer_sub {
  display: block;
}
.simulation_input_foot table.simulation_answers .simulation_answer_sub {
  margin: 4px 0 0 0;
  font-weight: normal;
  font-size: 0.9em;
}
/*合計行*/
.simulation_input_foot table.simulation_answers tr.simulation_answers_total th,
.simulation_input_foot table.simulation_answers tr.simulation_answers_total td {
  background: var(--kdb_background_color);
  font-weight: bold;
}
.simulation_input_foot table.simulation_answers tr.simulation_answers_total th {
  text-align: right;
}
.simulation_input_foot table.simulation_answers tr.simulation_answers_total td {
  color: var(--required_color);
}
.simulation_input_foot table.simulation_answers tr td.simulation_answer_price {
  text-align: right;
}
/*見出し行*/
.simulation_input_foot table.simulation_answers tr.simulation_answers_head th {
  background: var(--th_background_color);
  color: var(--th_character_color);
  text-align: center;
  font-weight: bold;
}
/*SP*/
html.sp .simulation_answer_title {
  font-size: 15px;
}
html.sp .simulation_input_foot table.simulation_answers,
html.sp .simulation_total {
  border-radius: 8px;
}
html.sp .simulation_input_foot table.simulation_answers col.simulation_col_question {
  width: 40%;
}
html.sp .simulation_input_foot table.simulation_answers col.simulation_col_answer {
  width: 28%;
}
html.sp .simulation_input_foot table.simulation_answers col.simulation_col_price {
  width: 32%;
}
html.sp .simulation_input_foot table.simulation_answers tr th,
html.sp .simulation_input_foot table.simulation_answers tr td {
  padding: 8px 6px;
  font-size: 13px;
}
/*金額は1行で表示*/
html.sp .simulation_input_foot table.simulation_answers tr td.simulation_answer_price {
  padding: 8px 4px;
  font-size: 12px;
  white-space: nowrap;
}

/*---------------------------------------------------------*/
/*注意事項*/
.simulation_block .entry_post > div .notes_message {
  margin: 30px 0 0 0;
}
.simulation_block .entry_post > div .notes_message p {
  margin: 0;
  padding: 5px;
  line-height: 24px;
}
/*SP*/
html.sp .simulation_block .entry_post > div .notes_message {
  margin: 10px 0 0 0;
}
