/* レイアウト */

.form__section {
  max-width: 700px;
  margin: 0 auto;
}

.form__result {
  max-width: 700px;
  margin: 0 auto;
  padding-top: 20px;
  padding-bottom: 20px;
}

/* テキスト */
.c-text-red {
  color: #cc0a00;
}

.c-text-sm {
  font-size: 14px;
}

.c-text-bold {
  font-weight: 700;
}

.p-sumulator__note {
  margin: 0 0 10px;
}

/* 見出し */
.__heading {
  background-color: #cad9ed;
  padding: 28px 30px;
}

@media screen and (max-width: 768px) {
  .__heading {
    padding: 14px 20px;
  }
}

.sumulator__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #00367c;
}

.sumulator__header .__label {
  color: #00367c;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.sumulator__header .__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #cc0a00;
}

.sumulator__header .__price-label {
  font-size: 16px;
}

.sumulator__header .__price-value {
  font-size: 30px;
  font-weight: bold;
}

.sumulator__header .__price-unit {
  font-size: 20px;
}

@media screen and (max-width: 768px) {
  .sumulator__header {
    align-items: flex-end;
    gap: 12px;
  }

  .sumulator__header .__price {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-rows: auto auto;
    width: 70%;
    gap: 0;
    justify-items: end;
    padding-bottom: 5px;
  }

  .sumulator__header .__price-label {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: right;
    font-size: 15px;
  }

  .sumulator__header .__price-value {
    grid-column: 2;
    grid-row: 2;
    margin-right: 4px;
    line-height: 0.8;
    font-size: 24px;
  }

  .sumulator__header .__price-unit {
    grid-column: 3;
    grid-row: 2;
    font-size: 16px;
  }
}

/* コンテンツ */
.form__section__content {
  margin-top: 20px;
}

.form__field {
  margin-bottom: 30px;
}

.form__label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 500;
}

.form__field__content {
  margin-bottom: 20px;
}

.form__select {
  width: 100%;
  padding: 12px 40px 12px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  font-size: 15px;
  background-color: #fff;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E"),
    linear-gradient(to right, transparent 0%, transparent calc(100% - 40px), #cfcfcf calc(100% - 40px), #cfcfcf 100%);
  background-repeat: no-repeat;
  background-position: right 12px center, right 0 center;
  background-size: 12px 12px, 100% 100%;
  appearance: none;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .form__select {
    padding: 14px 40px 14px 12px;
  }
}

.form__select:focus {
  outline: none;
  border-color: #0066cc;
}

.form__buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.form__button {
  flex: 1;
  padding: 18px 24px;
  border: 1px solid;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.2s;
}

@media screen and (max-width: 768px) {
  .form__button {
    padding: 16px 20px;
  }
}

@media screen and (max-width: 375px) {
  .form__button {
    padding: 16px 20px;
    min-height: 72px;
  }
}


.form__button:hover {
  opacity: 0.8;
}

.form__button--primary {
  background-color: #00367c;
  color: #fff;
  border-color: #00367c;
}

.form__button--secondary {
  background-color: #fff;
  color: #333;
  border-color: #ccc;
}

.form__field--parking {
  margin-top: 20px;
}

.form__radio-group {
  display: flex;
  gap: 24px;
  align-items: center;
}

.form__radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.form__radio {
  width: 20px;
  height: 20px;
  margin: 0;
  margin-right: 8px;
  cursor: pointer;
  appearance: none;
  border: 1px solid #CCC;
  border-radius: 50%;
  background-color: #fff;
  position: relative;
}

.form__radio:checked {
  border-color: #CCC;
  background-color: #fff;
}

.form__radio:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #00367c;
}

.form__radio-text {
  font-size: 16px;
  user-select: none;
}

/* バナー */
.form__banner {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  background-color: #fff;
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .form__banner {
    margin: 10px 0px 8px;
  }
}

.form__banner__badge {
  background-color: #cc0a00;
  color: #fff;
  padding: 3px 12px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

@media screen and (max-width: 768px) {
  .form__banner__badge {
    border-radius: 4px;
  }
}

@media screen and (max-width: 768px) {
  .form__banner__badge {
    padding: 5px 16px;
    font-size: 15px;
  }
}

.form__banner__text {
  color: #333;
  padding: 0px 10px;
  font-size: 15px;
  flex: 1;
}

/* 結果テーブル */
.form__result__table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.form__result__table td {
  padding: 12px 16px;
  font-size: 14px;
  border-top: 1px solid #d2d2d2;
  border-bottom: 1px solid #d2d2d2;
}

.form__result__table-label {
  background-color: #eff4fa;
  width: 30%;
  font-weight: 500;
  border-left: 1px solid #d2d2d2;
  border-right: none;
}

.form__result__table-value {
  background-color: #fff;
  width: 70%;
  border-left: none;
  border-right: 1px solid #d2d2d2;
}