h2 {
  text-align: center;
}

.contactbox {
  max-width: 980px;
  margin: 0 auto;
  padding: 146px 0 92px;
  display: flex;
}
.contactbox section {
  border-radius: 20px;
  background-color: #fff;
  padding: 30px 10px;
  position: relative;
}
.contactbox section::before {
  content: "";
  position: absolute;
  bottom: 100%;
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 67px auto;
  width: 67px;
  height: 55px;
}
.contactbox h2 {
  margin-bottom: 20px;
}
.telbox {
  flex: 0 0 650px;
  order: -1;
}
_:-ms-lang(x)::-ms-backdrop, .telbox {
  max-width: 650px;
}

.telbox::before {
  left: 28px;
  background-image: url(../img/tree02.svg);
}
.telbox ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  background: url(../img/line01.png) no-repeat center bottom;
  font-size: 1.5rem;
}
.telbox li {
  flex: 0 0 33.33%;
  padding: 15px 10px;
  background-image: url(../img/line01.png), url(../img/line02.png);
  background-position: left top, right top;
  background-repeat: repeat-x, repeat-y;
}
_:-ms-lang(x)::-ms-backdrop, .telbox li {
  max-width: 33.33%;
}

.telbox li:nth-child(3n) {
  background-image: url(../img/line01.png), none;
}
.telbox li:nth-last-child(3):nth-child(3n) {
  position: relative;
  z-index: 0;
}
.telbox li:nth-last-child(3):nth-child(3n)::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: -1;
  left: 0;
  top: 2px;
  background: url(../img/line01.png) repeat-x left bottom;
}
.telbox .midashi {
  display: inline-block;
  margin-right: 5px;
}
.telbox .telNum {
  font-weight: bold;
  font-size: 1.8rem;
  color: #E69500;
}
.telbox .telNum a {
  display: none;
}

.webbox {
  flex: 0 0 310px;
  margin-left: auto;
  text-align: center;
}
_:-ms-lang(x)::-ms-backdrop, .webbox {
  max-width: 310px;
}

.webbox::before {
  right: 28px;
  background-image: url(../img/tree01.svg);
}
.webbox .btn {
  background: url(../img/line01.png) repeat-x center top;
  padding-top: 22px;
}
.webbox a {
  display: inline-block;
  background: url(../img/btn-toform-over.svg) no-repeat left top;
}
.webbox a img {
  transition-duration: 0.3s;
}

@media screen and (min-width: 768px) {
  .webbox a:hover img {
    opacity: 0;
  }
}
@media (any-pointer: coarse) {
  .webbox a:active img {
    opacity: 0;
  }
}
@media screen and (max-width: 767px) {
  .contactbox {
    display: block;
    padding: 106px 10px 80px;
  }
  .contactbox section::before {
    width: 48px;
    height: 39px;
    background-size: 48px auto;
  }
  .telbox {
    margin-top: 58px;
  }
  .telbox::before {
    left: 12px;
  }
  .telbox ul {
    display: block;
    font-size: 1.3rem;
  }
  .telbox li {
    background-image: url(../img/line01.png), none;
    padding: 14px 0;
    display: flex;
    align-items: center;
  }
  .telbox .name {
    flex: 1 0 0%;
    padding-right: 10px;
  }
  .telbox .tel {
    flex: 0 0 172px;
    margin-left: auto;
  }
  .telbox .midashi {
    font-size: 1.4rem;
  }
  .telbox .telNum {
    font-size: 1.6rem;
    position: relative;
    text-decoration: underline;
  }
  _::-webkit-full-page-media, _:future, :root .telbox .telNum {
    text-underline-offset: 2px;
  }

  .telbox .telNum a {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }

  .webbox::before {
    right: 12px;
  }
  .webbox a {
    background-image: none;
  }
}
@media screen and (max-width: 767px) and (any-pointer: coarse) {
  .telbox .telNum:active {
    text-decoration: none;
  }

  .webbox a:active {
    opacity: 0.7;
  }
  .webbox a:active img {
    opacity: 1;
  }
}

#formSection {
  background-color: #E3FFF5;
  padding: 72px 0 180px;
}
#formSection .leadText {
  max-width: 800px;
  margin: 62px auto 14px;
  padding: 0 70px 0 15px;
}
#formSection .formbox {
  max-width: 800px;
  margin: 0 auto;
  border: 6px solid #BEEB46;
  border-radius: 20px;
  background-color: #fff;
  padding: 28px 10px 30px;
  position: relative;
}
#formSection .formbox::before {
  content: "";
  position: absolute;
  right: 28px;
  bottom: calc(100% + 6px);
  width: 67px;
  height: 55px;
  background: url(../img/tree01.svg) no-repeat left top;
  background-size: 67px auto;
}
#formSection .formbox .row {
  display: flex;
  padding: 14px 10px;
}
#formSection .formbox .row + .row {
  background: url(../img/line01.png) repeat-x center top;
}
#formSection .formLabel {
  flex: 0 0 222px;
  display: flex;
  padding-top: 11px;
  color: #00A082;
  font-weight: bold;
  font-size: 1.8rem;
}
#formSection .formLabel span {
  flex: 1 0 0%;
}
#formSection .formLabel .hissu {
  flex: 0 0 auto;
}
#formSection .formBody {
  flex: 1 0 0%;
  margin-left: 18px;
}
#formSection .ppText {
  max-width: 800px;
  margin: 64px auto 20px;
  text-align: center;
}
#formSection .formBtn {
  max-width: 980px;
  margin: 20px auto 0;
  text-align: center;
}
#formSection .formBtn button {
  background: url(../img/btn-check-over.svg);
}
@media screen and (max-width: 767px) {
  #formSection {
    padding: 42px 10px 192px;
  }
  #formSection .leadText {
    margin-top: 42px;
    padding: 0 55px 0 10px;
    font-size: 1.5rem;
  }
  #formSection .formbox {
    border-width: 4px;
    padding: 0 10px 10px;
  }
  #formSection .formbox::before {
    width: 48px;
    height: 39px;
    background-size: 48px auto;
    right: 12px;
    bottom: calc(100% + 4px);
  }
  #formSection .formbox .row {
    display: block;
    padding: 20px 5px;
  }
  #formSection .formLabel {
    padding-top: 0;
    margin-bottom: 15px;
  }
  #formSection .formBody {
    margin-left: 0;
  }
  #formSection .ppText span {
    display: block;
  }
  #formSection .formBtn button {
    background-image: none;
  }
}

[type=text], [type=email], [type=tel] {
  -webkit-appearance: none;
  appearance: none;
  outline: 0;
  margin: 0;
  padding: 0 14px;
  width: 100%;
  height: 50px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: 100%;
  font-family: inherit;
}

textarea {
  -webkit-appearance: none;
  appearance: none;
  outline: 0;
  margin: 0;
  padding: 14px;
  width: 100%;
  height: 230px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: 100%;
  font-family: inherit;
}

select {
  -webkit-appearance: none;
  appearance: none;
  outline: 0;
  margin: 0;
  padding: 0 54px 0 14px;
  height: 50px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background: #fff url(../img/select-arrow.svg) no-repeat right 13px center;
  font-size: 100%;
  font-family: inherit;
}
select::-ms-expand {
  display: none;
}

button {
  -webkit-appearance: none;
  appearance: none;
  outline: 0;
  border: none;
  margin: 0;
  padding: 0;
  cursor: pointer;
  transition-duration: 0.3s;
}
button img {
  transition-duration: 0.3s;
}

@media screen and (min-width: 768px) {
  button:hover img {
    opacity: 0;
  }
}
@media (any-pointer: coarse) {
  button:active img {
    opacity: 0;
  }
}
@media screen and (max-width: 767px) {
  [type=text], [type=email], [type=tel] {
    padding: 0 12px;
  }

  select {
    padding: 0 52px 0 12px;
    background-position: right 12px center;
    width: 100%;
  }

  textarea {
    height: 150px;
    padding: 8px 12px;
  }
}
@media screen and (max-width: 767px) and (any-pointer: coarse) {
  button:active {
    opacity: 0.7;
  }
  button:active img {
    opacity: 1;
  }
}
.errorbox {
  max-width: 800px;
  margin: 14px auto;
  border: 4px solid #FA5078;
  border-radius: 20px;
  background-color: #fff4f6;
  padding: 25px 22px;
  color: #FA5078;
}
.errorbox .midashi {
  font-weight: bold;
  font-size: 2rem;
  margin-bottom: 8px;
}
.errorbox ul {
  list-style: none;
}

.errorText {
  margin: 14px 0 8px;
  color: #FA5078;
  display: none;
}

.error .errorText {
  display: block;
}
.error [type=text], .error [type=email], .error [type=tel], .error textarea, .error select {
  border-color: #FA5078;
  background-color: #fff4f6;
}

@media screen and (max-width: 767px) {
  .errorbox {
    border-width: 2px;
    padding: 20px 16px;
    border-radius: 15px;
  }
  .errorbox .midashi {
    font-size: 1.8rem;
  }

  .errorText {
    margin: 0 0 4px;
  }
}
.checkPage #formSection {
  padding-top: 0;
}
.checkPage #formSection h2 {
  margin-top: 98px;
}
.checkPage #formSection .formbox .row {
  align-items: baseline;
}
.checkPage #formSection .formLabel {
  padding-top: 0;
}
.checkPage #formSection .formBtn {
  max-width: 800px;
  display: flex;
  justify-content: space-between;
}
.checkPage #formSection .btnBack {
  flex: 0 0 auto;
}
.checkPage #formSection .btnBack button {
  background-image: url(../img/btn-back-over.svg);
  background-size: 100% auto;
}
.checkPage #formSection .btnSubmit {
  flex: 0 0 auto;
}
.checkPage #formSection .btnSubmit button {
  background-image: url(../img/btn-send-over.svg);
  background-size: 100% auto;
}
@media screen and (max-width: 767px) {
  .checkPage #formSection {
    padding-left: 0;
    padding-right: 0;
  }
  .checkPage #formSection h2 {
    margin-top: 52px;
  }
  .checkPage #formSection .leadText {
    margin-left: 10px;
    margin-right: 10px;
  }
  .checkPage #formSection .formbox {
    margin-left: 10px;
    margin-right: 10px;
  }
  .checkPage #formSection .formBtn {
    margin-left: 10px;
    margin-right: 10px;
  }
  .checkPage #formSection .formBtn > div {
    flex-shrink: 1;
  }
  .checkPage #formSection .formBtn > div + div {
    margin-left: 10px;
  }
  .checkPage #formSection .formBtn button {
    background-image: none;
  }
}

.thanksPage #formSection {
  padding-top: 0;
}
.thanksPage #formSection h2 {
  margin-top: 98px;
}
.thanksPage #formSection .thanksbox {
  max-width: 800px;
  margin: 62px auto 0;
  text-align: center;
}
.thanksPage #formSection .thanksbox p + p {
  margin-top: 1.2em;
}
.thanksPage #formSection .thanksbox .midashi {
  font-weight: bold;
  font-size: 2rem;
}
.thanksPage #formSection .btnBack {
  max-width: 300px;
  margin: 60px auto 0;
}
.thanksPage #formSection .btnBack a {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  margin: 0 auto;
  background: #BEEB46 repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.4) 0px, rgba(255, 255, 255, 0.4) 2px, rgba(255, 255, 255, 0) 2px, rgba(255, 255, 255, 0) 6px) repeat 0 0;
  border-radius: 10px;
  text-decoration: none;
  font-size: 2rem;
  color: #754c24;
}
@media screen and (min-width: 768px) {
  .thanksPage #formSection .btnBack a:hover {
    background: #fae100 repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.4) 0px, rgba(255, 255, 255, 0.4) 2px, rgba(255, 255, 255, 0) 2px, rgba(255, 255, 255, 0) 6px) repeat 0 0;
  }
}
@media (any-pointer: coarse) {
  .thanksPage #formSection .btnBack a:active {
    background: #fae100 repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.4) 0px, rgba(255, 255, 255, 0.4) 2px, rgba(255, 255, 255, 0) 2px, rgba(255, 255, 255, 0) 6px) repeat 0 0;
  }
}
@media screen and (max-width: 767px) {
  .thanksPage #formSection {
    padding-left: 0;
    padding-right: 0;
  }
  .thanksPage #formSection h2 {
    margin-top: 52px;
  }
  .thanksPage #formSection .thanksbox {
    margin: 42px 10px 0;
  }
  .thanksPage #formSection .thanksbox .midashi span {
    display: block;
  }
}