/* Variables for customization */
.c-contact {
  background-color: #e7eaec;
  padding: 16rem 8rem;
}

@media screen and (max-width: 1049px) {
  .c-contact {
    padding: 14rem 4% 10rem;
  }
}

.c-contact__form-wrapper {
  background: #fff;
  max-width: calc(1400px + 4rem);
  margin: 12rem auto 0;
  padding: 10rem 3rem;
}

@media screen and (max-width: 768px) {
  .c-contact__form-wrapper {
    margin: 4rem auto 0;
  }
}

/* General input styles */
.c-form {
  /* Styles for specific input types */
  /* Textarea styles */
  /* Select styles */
  /* Error message styles */
}

.c-form__inner {
  margin: 0 auto 10rem;
  max-width: 800px;
  display: grid;
  grid-template-columns: 250px 1fr;
  row-gap: 6rem;
  column-gap: 2rem;
}

@media screen and (max-width: 1049px) {
  .c-form__inner {
    grid-template-columns: 1fr;
    row-gap: 1rem;
  }
}

@media screen and (max-width: 1049px) {
  .c-form__inner dd {
    margin-bottom: 4rem;
  }
}

.c-form input[type=text],
.c-form input[type=tel],
.c-form input[type=email],
.c-form input[type=password],
.c-form input[type=number],
.c-form select,
.c-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f9f9f9;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.c-form input[type=text]:focus,
.c-form input[type=tel]:focus,
.c-form input[type=email]:focus,
.c-form input[type=password]:focus,
.c-form input[type=number]:focus,
.c-form select:focus,
.c-form textarea:focus {
  border-color: #3d49e7;
  box-shadow: 0 0 5px rgba(61, 73, 231, 0.5);
  outline: none;
}

.c-form input[type=text]:disabled,
.c-form input[type=tel]:disabled,
.c-form input[type=email]:disabled,
.c-form input[type=password]:disabled,
.c-form input[type=number]:disabled,
.c-form select:disabled,
.c-form textarea:disabled {
  background-color: white;
  cursor: not-allowed;
}

.c-form input[type=text].error,
.c-form input[type=tel].error,
.c-form input[type=email].error,
.c-form input[type=password].error,
.c-form input[type=number].error,
.c-form select.error,
.c-form textarea.error {
  border-color: #ff6b6b;
  background-color: white;
}

.c-form input[type=checkbox],
.c-form input[type=radio] {
  width: auto;
  margin-right: 0.8rem;
  appearance: revert;
}

.c-form textarea {
  min-height: 100px;
  resize: vertical;
}

.c-form select {
  appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path fill="gray" d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  padding-right: 30px;
}

.c-form .error-message {
  color: #ff6b6b;
  font-size: 14px;
  margin-top: 5px;
}

.c-form input[type=submit],
.c-form input[type=button],
.mg20b input[type=submit]{
  background-color: #d5664d;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.c-form input[type=submit]:hover,
.c-form input[type=button]:hover,
.mg20b input[type=submit]:hover {
  opacity: 0.8;
}

.c-form input[type=submit]:disabled,
.c-form input[type=button]:disabled {
  background-color: #989ef2;
  cursor: not-allowed;
}

.c-form .c-warning {
  color: #ff6b6b;
}

.c-form #zip1,
.c-form #zip2 {
  width: 7.2rem;
}

@media screen and (max-width:767px) {
  .c-form__inner {
    margin: 0 auto 0rem;
  }
}


/* 厨BOUNO MODAL WINDOW */
.tos {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 20px 0 0;
  border: 1px solid #525252;
  text-align: center;
}

.tos_link {
  padding: 10px 0;
}

.tos_link p {
  margin-bottom: .4em;
}

.tos_link a {
  color: #000;
}

.tos_check {
  padding: 30px 10px;
  background: #333;
  color: #fff;
}

.tos_check input[type=checkbox] {
  outline: 0;
  position: relative;
  width: 18px;
  height: 18px;
  margin: 0;
  vertical-align: -3px;
  background-color: #fff;
  border: 1px solid #ccc;
  cursor: pointer;
}



.tos_check input[type=checkbox]+label {
  cursor: pointer;
  padding-left: 5px;
}

.tos_modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  opacity: 1;
  visibility: visible;
  vertical-align: middle;
}

.tos_modal_bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .7);
}

.tos_modalInner {
  position: relative;
  top: 50%;
  right: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  transform: translateY(-50%);
  vertical-align: middle;
  width: 90%;
  height: 90%;
  margin: auto;
  background-color: #f5f5f5;
  max-height: 80vh;
}

.tos_modalHeader {
  padding: 10px 20px;
  background: #000;
  font-size: 18px;
  color: #fff;
}

.tos_modalMain {
  padding: 3rem 3rem;
}

.tos_modalMain_title {
  margin-bottom: 30px;
  font-size: 2.8rem;
}

.tos_modalMain_lead {
  line-height: 150%;
  margin-bottom: 20px;
  text-align: justify;
}

.tos_modalMain_list h5,
.tos_modal_specialTerms h5 {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 1.6rem;
}

.tos_modalMain_list div,
.tos_modal_specialTerms div {
  margin-bottom: 30px;
}

.tos_modalMain_list p,
.tos_modal_specialTerms p {
  line-height: 150%;
  margin-bottom: 10px;
  text-align: justify;
  padding-left: 1rem;
}

.tos_modalMain_list li,
.tos_modal_specialTerms li {
  line-height: 150%;
  text-align: justify;
}

.tos_modalMain_list .type_a,
.tos_modal_specialTerms .type_a {
  list-style-type: decimal;
  padding-left: 3rem;
}

.tos_modal_specialTerms .type_a span {
  display: block;
  font-size: 90%;
}

.tos_modalMain_list .type_a li,
.tos_modal_specialTerms .type_a li {
  margin-bottom: 10px;
}

.tos_modalMain_list .type_b {
  list-style: none;
  counter-reset: item;
  padding-left: 2rem;
}

.tos_modalMain_list div:nth-of-type(2) .type_b,
.tos_modalMain_list div:nth-of-type(15) .type_b {
  padding-left: 4rem;
}

.tos_modalMain_list div:nth-of-type(4) .type_b,
.tos_modalMain_list div:nth-of-type(8) .type_b,
.tos_modalMain_list div:nth-of-type(10) .type_b {
  margin-top: 5px;
}


.tos_modalMain_list .type_b li {
  counter-increment: item;
  position: relative;
  margin-bottom: 5px;
}

.tos_modalMain_list .type_b li::before {
  content: "（" counter(item) "）";
  position: absolute;
  left: -1.5em;
}

.tos_close_btn {
  margin-top: 40px;
  text-align: center;
}

.tos_close_btn a {
  display: block;
  max-width: 250px;
  margin: 1rem auto;
  background-color: #ccc;
  border: 1px solid #ccc;
  border-radius: 3px;
  text-align: center;
  padding: 10px 1rem;
  color: #000;
  text-decoration: none;
  transition: all .3s ease-in-out;
}

.tos_close_btn a:hover {
  border-color: #000;
  background-color: transparent;
}

.tos_modal_specialTerms h2 {
  margin-bottom: 10px;
}

.revision_date li {
  text-align: right !important;
}

@media screen and (max-width:767px) {

  .tos_modalMain_list .type_a,
  .tos_modal_specialTerms .type_a,
  .tos_modalMain_list div:nth-of-type(2) .type_b {
    padding-left: 2rem;
  }

  .tos {
    padding: 0px 0 0px;
  }

  .tos_link p {
    line-height: 150%;
  }

  .c-form__inner {
    margin: 0 auto 0rem;
  }

  .tos_link {
    padding: 10px 10px;
  }

  .tos_modal_specialTerms .type_a span {
    line-height: 130%;
  }


}