@charset "UTF-8";

/* ===============================================
# フォーム
=============================================== */
#form .inner {
  max-width: 1100px;
  margin: auto;
}
#form .form_item {
  display: grid;
  grid-template-columns: 220px 130px 1fr;
  grid-template-rows: auto;
  justify-items: flex-start;
  align-items: flex-start;
  border-bottom: 1px solid #ececec;
  padding: 20px 0;
}
@media only screen and (max-width: 859px) {
  #form .form_item {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    padding: 20px;
    gap: 20px 20px;
  }
}
#form .form_item:first-child {
  border-top: 1px solid #ececec;
}
@media only screen and (max-width: 859px) {
  #form .form_item .input_area {
    width: 100%;
    grid-column: 1/3;
    grid-row: 2/3;
  }
}
#form .form_item .form_label {
  line-height: 30px;
  font-weight: bold;
}
@media only screen and (max-width: 859px) {
  #form .form_item .form_label {
    grid-column: 1/2;
    grid-row: 1/2;
  }
}
#form .form_item .required {
  color: #dc3545;
  line-height: 28px;
  padding: 0 20px;
  margin-bottom: 0;
  border: 1px solid #dc3545;
  border-radius: 5px;
}
@media only screen and (max-width: 859px) {
  #form .form_item .required {
    grid-column: 2/3;
    grid-row: 1/2;
  }
}
#form .form_item .input_full {
  width: 100%;
}
#form .form_item .form_name_items {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 30px;
}
#form .form_item .form_name_items .form_name_item {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
}
@media only screen and (max-width: 859px) {
  #form .form_item .form_name_items .form_name_item {
    display: block;
  }
}
#form .form_item .form_name_items .form_name_item label {
  width: 10%;
}
@media only screen and (max-width: 859px) {
  #form .form_item .form_name_items .form_name_item label {
    width: 100%;
  }
}
#form .form_item .form_name_items .form_name_item.age {
  width: 15%;
}
@media only screen and (max-width: 859px) {
  #form .form_item .form_name_items .form_name_item.age {
    display: flex;
    width: 50%;
  }
}
#form .form_item .form_name_items .form_name_item.zip {
  width: 50%;
}
@media only screen and (max-width: 859px) {
  #form .form_item .form_name_items .form_name_item.zip {
    display: flex;
    width: 100%;
  }
}
#form .form_item .view_title {
  background-color: #0552a9;
  color: #fff;
  width: 200px;
  text-align: center;
  padding: 5px 0;
  margin: 30px 0 0;
}
#form .form_item .view_box {
  border: 2px solid #0552a9;
  padding: 15px;
}
#form .form_item .view_box p {
  font-size: 14px;
  margin-bottom: 0;
}
#form .form_item .view_box p.active {
  color: #0552a9;
  font-size: 16px;
  font-weight: bold;
}
#form .form_item .comment {
  background: #ececec;
  padding: 20px;
  margin-bottom: 20px;
}
#form .form_item .comment p {
  font-size: 14px;
  margin-bottom: 0;
}
#form .form_item .comment p:nth-child(1) {
  margin-bottom: 5px;
}
@media only screen and (max-width: 859px) {
  #form .form-check-label {
    font-size: 13px;
  }
}
#form .input_check_area {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
@media only screen and (max-width: 859px) {
  #form .input_check_area {
    grid-column: 1/3;
    grid-row: 2/3;
  }
}
#form .radio_area {
  display: inline-block;
  position: relative;
  padding: 0.5rem 0.8rem;
  z-index: 0;
}
#form .radio_area input[type="radio"]:checked,
#form .radio_area input[type="checkbox"]:checked {
  border: 2px solid #0552a9;
}
#form .radio_area input[type="radio"]::before,
#form .radio_area input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid #ececec;
  z-index: -1;
}
#form .radio_area input[type="radio"]:checked::before,
#form .radio_area input[type="checkbox"]:checked::before {
  border: 2px solid #0552a9;
}
#form .validation_box {
  display: block;
  width: 100%;
}
#form .error {
  color: #dc3545;
}
#form .input_required {
  background-color: rgb(255, 238, 238);
}
#form .input_required.ok {
  background-color: rgb(255, 255, 255);
}
