@media screen and (max-width: 767px) {
  .sub_top .sub_top_mv {
    background-image: url(../img/contact/contact_mv.png);
  }
}

.contact_main_content {
  background: rgb(255,0,0);
  background: linear-gradient(90deg, rgba(255,0,0,1) 0%, rgba(190,0,0,1) 100%);
  padding-top: 11.285714vw;
  position: relative;
  z-index: 0;
}

@media screen and (max-width: 1240px) {
  .contact_main_content {
    padding-top: 139px;
  }
}

@media screen and (max-width: 767px) {
  .contact_main_content {
    padding-top: 11.285714vw;
  }
}

.contact_main_content::before {
  border-color: #e1e1e1 transparent transparent transparent;
  border-style: solid;
  border-width: 14.2857142857143vw 100vw 0 0;
  content: '';
  height: 0;
  left: 0;
  position: absolute;
  top: -1px;
  width: 0;
  z-index: 0;
}

@media screen and (max-width: 1240px) {
  .contact_main_content::before {
    border-width: 177px 1240px 0 0;
  }
}

@media screen and (max-width: 767px) {
  .contact_main_content::before {
    border-width: 14.2857142857143vw 100vw 0 0;
  }
}

.contact_main_content_title {
  position: absolute;
  right: 0;
  top: -1px;
  width: 800px;
}

.contact_main_container {
  margin: 0 auto;
  max-width: 640px;
  padding: 40px 20px;
}

.contact_main_content_top_text {
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.666666666666667;
}

.contact_main_content_top_text span {
  font-size: 1.3rem;
}

.contact_main_content_top_text.confirm {
  text-align: center;
}

.contact_main_content_top_text + .contact_main_content_top_text {
  margin-top: 20px;
}

.contact_main_content_table {
  display: block;
  margin-top: 50px;
  width: 100%;
}

.contact_main_content_table tbody {
  display: block;
}

.contact_main_content_table tr {
  display: block;
  margin-top: 30px;
}

.contact_main_content_table th {
  color: #fff;
  display: table;
  font-size: 1.8rem;
  line-height: 1.3;
  position: relative;
  text-align: left;
}

.contact_main_content_table th .must {
  background: rgb(77,77,77);
  background: linear-gradient(90deg, rgba(77,77,77,1) 0%, rgba(26,26,26,1) 100%);
  color: #fff;
  font-size: 1.5rem;
  line-height: 20px;
  position: absolute;
  right: -55px;
  text-align: center;
  top: 2px;
  width: 45px;
}

.contact_main_content_table td {
  display: block;
  font-size: 1.8rem;
  margin-top: 7px;
}

.contact_main.confirm .contact_main_content_table td {
  color: #fff;
}

.contact_main_content_table td .error {
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  margin-top: 3px;
}

.contact_main_content_table td input[type='text'] {
  background-color: #fff;
  border-radius: 4px;
  font-size: 1.8rem;
  font-weight: 400;
  height: 50px;
  padding: 0 20px;
  width: 100%;
}

.contact_main_content_table td textarea {
  background-color: #fff;
  border-radius: 4px;
  font-size: 1.8rem;
  font-weight: 400;
  height: 300px;
  line-height: 1.388888888888889;
  padding: 10px 20px;
  width: 100%;
}

.contact_main_content_table td .checkbox {
  display: flex;
  flex-wrap: wrap;
}

.contact_main_content_table td input[type='checkbox'] + label {
  color: #fff;
  cursor: pointer;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.388888888888889;
  margin-right: 30px;
  padding-left: 20px;
  position: relative;
}

.contact_main_content_table td input[type='checkbox'] + label::before {
  background-color: #fff;
  content: '';
  height: 12px;
  left: 0;
  position: absolute;
  top: 7px;
  width: 12px;
}

.contact_main_content_table td input[type='checkbox']:checked + label::after {
  border: solid #000;
  border-width: 2px 2px 0 0;
  content: '';
  height: 3px;
  left: 2px;
  position: absolute;
  top: 9px;
  transform: rotate(136deg);
  width: 7px;
}

.contact_main_content_table td .file {
  background-color: #fff;
  border-radius: 4px;
  height: 50px;
  padding: 8px 20px;
  width: 100%;
}

.contact_main_content_table td .file input[type='file'] {
  cursor: pointer;
  font-size: 1.8rem;
  font-weight: 400;
}

.contact_submit {
  align-items: center;
  background: rgb(77,77,77);
  background: linear-gradient(90deg, rgba(77,77,77,1) 0%, rgba(26,26,26,1) 100%);
  color: #fff;
  cursor: pointer;
  display: flex;
  font-family: 'M PLUS 1', sans-serif;
  font-size: 3.6rem;
  font-weight: 900;
  height: 100px;
  justify-content: center;
  line-height: 1;
  margin: 60px auto 0;
  position: relative;
  transition: .3s;
  width: 600px;
}

.contact_submit.confirm {
  background: rgb(255,0,0);
  background: linear-gradient(90deg, rgba(255,0,0,1) 0%, rgba(190,0,0,1) 100%);
}

.contact_submit:hover {
  opacity: .7;
}

@media screen and (max-width: 767px) {
  .contact_main_content_title {
    position: absolute;
    right: 0;
    top: -1px;
    width: calc(100% - 40px);
  }

  .contact_main {
    overflow: hidden;
  }

  .contact_main_container {
    margin: 0 auto;
    max-width: 640px;
    padding: 40px 20px;
  }

  .contact_main_content_top_text {
    font-size: 1.3rem;
  }

  .contact_main_content_top_text span {
    font-size: 1.2rem;
  }

  .contact_main_content_top_text + .contact_main_content_top_text {
    margin-top: 15px;
  }

  .contact_main_content_table {
    margin-top: 40px;
  }

  .contact_main_content_table tr {
    margin-top: 20px;
  }

  .contact_main_content_table th {
    font-size: 1.4rem;
  }

  .contact_main_content_table th .must {
    font-size: 1.2rem;
    line-height: 16px;
    right: -45px;
    top: 2px;
    width: 35px;
  }

  .contact_main_content_table td {
    display: block;
    font-size: 1.4rem;
    margin-top: 5px;
  }

  .contact_main_content_table td label.error {
    font-size: 1.2rem;
    margin-top: 3px;
  }

  .contact_main_content_table td input[type='text'] {
    font-size: 1.4rem;
    height: 40px;
    padding: 0 15px;
  }

  .contact_main_content_table td textarea {
    font-size: 1.4rem;
    height: 200px;
    padding: 0 15px;
  }

  .contact_main_content_table td input[type='checkbox'] + label {
    font-size: 1.4rem;
    margin-right: 20px;
  }

  .contact_main_content_table td input[type='checkbox'] + label::before {
    top: 5px;
  }

  .contact_main_content_table td input[type='checkbox']:checked + label::after {
    top: 8px;
  }

  .contact_main_content_table td .file {
    height: 40px;
    padding: 5px 15px;
  }

  .contact_main_content_table td .file input[type='file'] {
    font-size: 1.4rem;
  }

  .contact_submit {
    font-size: 2.5rem;
    height: 70px;
    margin: 40px auto 0;
    width: calc(100% - 40px);
  }
}

.contact_main.thanks {
  padding-bottom: 60px;
  padding-top: 60px;
}

.contact_main.confirm form {
  padding-bottom: 60px;
}

.contact_main_thanks_title {
  color: #333;
  font-size: 4.2rem;
  line-height: 1.142857142857143;
  text-align: center;
}

.contact_main_thanks_desc {
  color: #333;
  font-size: 2rem;
  line-height: 1.666666666666667;
  margin-top: 60px;
  text-align: center;
}

@media screen and (max-width: 767px) {
  .contact_main.thanks {
    padding-bottom: 40px;
    padding-top: 40px;
  }

  .contact_main.confirm form {
    padding-bottom: 40px;
  }

  .contact_main_thanks_title {
    font-size: 2.2rem;
  }

  .contact_main_thanks_desc {
    font-size: 1.5rem;
    margin-top: 40px;
  }
}

/* ------------------------------------------
  contact_sub
------------------------------------------ */
.contact_sub {
  margin-top: -12px;
  overflow: hidden;
  position: relative;
  z-index: 99;
}

.contact_sub .contact_sub_inner {
  background: rgb(255,0,0);
  background: linear-gradient(90deg, rgba(255,0,0,1) 0%, rgba(190,0,0,1) 100%);
  padding-top: 24.585714vw;
  position: relative;
}

.contact_sub .contact_sub_inner::before {
  background-image: url(../img/price/price_main_red.png);
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: contain;
  content: '';
  height: 24.585714vw;
  left: 0;
  position: absolute;
  top: 1px;
  width: 100%;
  z-index: 0;
}

@media screen and (max-width: 1240px) {
  .contact_sub .contact_sub_inner {
    padding-top: 305px;
  }

  .contact_sub .contact_sub_inner::before {
    height: 305px;
  }
}

@media screen and (max-width: 767px) {
  .contact_sub .contact_sub_inner {
    padding-top: 24.585714vw;
  }

  .contact_sub .contact_sub_inner::before {
    height: 24.585714vw;
  }
}

.contact_sub_inner_title {
  position: absolute;
  right: 0;
  top: 8.30714vw;
  width: 800px;
}

@media screen and (max-width: 1240px) {
  .contact_sub_inner_title {
    top: 103px;
  }
}

@media screen and (max-width: 767px) {
  .contact_sub_inner_title {
    top: 8.30714vw;
  }
}

.contact_sub.tel {
  padding-bottom: 23.385714vw;
}

.contact_sub.tel::after {
  background-image: url(../img/trainer/trainer_red_bottom.png);
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: contain;
  bottom: 50px;
  content: '';
  height: 23.385714vw;
  left: 0;
  position: absolute;
  width: 100%;
  z-index: 0;
}

@media screen and (max-width: 1240px) {
  .contact_sub.tel {
    padding-bottom: 305px;
  }

  .contact_sub.tel::after {
    height: 305px;
  }
}

@media screen and (max-width: 767px) {
  .contact_sub.tel {
    padding-bottom: 23.385714vw;
  }

  .contact_sub.tel::after {
    bottom: 20px;
    height: 23.385714vw;
  }
}

.contact_main_container_line {
  display: flex;
  margin-top: 30px;
}

.contact_main_container_line_item {
  width: 50%;
}

.contact_main_container_line_item_title {
  color: #fff;
  font-family: 'M PLUS 1', sans-serif;
  font-size: 3rem;
  font-weight: 900;
}

.contact_main_container_line_item_title span {
  font-size: 1.5rem;
}

.contact_main_container_line_item_link {
  display: block;
  margin-top: 15px;
  width: 120px;
}

.contact_main_container_line_item_link img {
  width: 100%;
}

.contact_main_container_tel {
  margin-top: 40px;
}

.contact_main_container_tel_item + .contact_main_container_tel_item {
  border-top: 1px #fff solid;
  margin-top: 30px;
  padding-top: 30px;
}

.contact_main_container_tel_item_title {
  color: #fff;
  font-family: 'M PLUS 1', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.contact_main_container_tel_item_title span {
  font-size: 1.5rem;
}

.contact_main_container_tel_item_tel {
  color: #fff;
  font-family: 'M PLUS 1', sans-serif;
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
}

@media screen and (max-width: 767px) {
  .contact_sub_inner_title {
    position: absolute;
    right: 0;
    top: 8.30714vw;
    width: calc(100% - 40px);
  }

  .contact_main_container_line {
    display: block;
    margin-top: 20px;
  }

  .contact_main_container_line_item {
    width: 100%;
  }

  .contact_main_container_line_item + .contact_main_container_line_item {
    margin-top: 20px;
  }

  .contact_main_container_line_item_title {
    font-size: 2.4rem;
  }

  .contact_main_container_line_item_title span {
    font-size: 1.3rem;
  }

  .contact_main_container_line_item_link {
    margin-top: 10px;
    width: 100px;
  }

  .contact_main_container_tel {
    margin-top: 20px;
  }

  .contact_main_container_tel_item + .contact_main_container_tel_item {
    border-top: 1px #fff solid;
    margin-top: 15px;
    padding-top: 15px;
  }

  .contact_main_container_tel_item_title {
    font-size: 2.4rem;
  }

  .contact_main_container_tel_item_title span {
    font-size: 1.3rem;
  }

  .contact_main_container_tel_item_tel {
    font-size: 3rem;
  }
}
