.hoverLayer {
  --btn-size: 280px;
  --mask-color: var(--blue-hover-color);
  will-change: transform;
  overflow: hidden;
}
.hoverLayer * {
  transition: all 0.32s cubic-bezier(0.39, 0.575, 0.565, 1);
}
@media only screen and (min-width: 768px) {
  .hoverLayer::before {
    --size: calc(var(--btn-size) * 1.2);
    content: "";
    position: absolute;
    top: calc(50% - max(var(--size)) / 2);
    left: calc(50% - max(var(--size)) / 2);
    width: max(var(--size));
    height: max(var(--size));
    -webkit-clip-path: circle(50% at 50% 50%);
    clip-path: circle(50% at 50% 50%);
    background-color: var(--mask-color);
    transform: scale(0);
    transition: transform 0.32s cubic-bezier(0.39, 0.575, 0.565, 1);
  }
  .hoverLayer:hover::before {
    transform: scale(1);
  }
}
body#contact main .mainHeader h1{
  top: auto;
    left: auto;
}

.hoverLayer {
  --btn-size: 280px;
  --mask-color: var(--blue-hover-color);
  will-change: transform;
  overflow: hidden;
}

.hoverLayer * {
  transition: all 0.32s cubic-bezier(0.39, 0.575, 0.565, 1);
}

@media only screen and (min-width: 768px) {
  .hoverLayer::before {
    --size: calc(var(--btn-size) * 1.2);
    content: "";
    position: absolute;
    top: calc(50% - max(var(--size)) / 2);
    left: calc(50% - max(var(--size)) / 2);
    width: max(var(--size));
    height: max(var(--size));
    -webkit-clip-path: circle(50% at 50% 50%);
    clip-path: circle(50% at 50% 50%);
    background-color: var(--mask-color);
    transform: scale(0);
    transition: transform 0.32s cubic-bezier(0.39, 0.575, 0.565, 1);
  }
  .hoverLayer:hover::before {
    transform: scale(1);
  }
}
#contact form .formButton {
  display: flex;
  justify-content: center;
  padding: var(--trigger-size) 0;
  gap: 1em;
}
#contact form .formButton button {
  padding: calc(var(--padding)) var(--padding);
  font-size: 1em;
  width: 300px;
  transition: color 0.32s cubic-bezier(0.39, 0.575, 0.565, 1), transform 0.32s cubic-bezier(0.39, 0.575, 0.565, 1);
  color: var(--primary-color);
  --btn-size: 280px;
  display: inline-block;
  text-align: center;
  background-color: var(--color-white);
  padding: calc(var(--padding)) var(--padding);
  border: 1.5px solid var(--primary-color);
  width: var(--btn-size);
}
#contact form .formButton button {
  font-size: 16px;
}
@media screen and (min-width: 320px) {
  #contact form .formButton button {
    font-size: calc(16px + 2 * ((100vw - 320px) / 980));
  }
}
@media screen and (min-width: 1300px) {
  #contact form .formButton button {
    font-size: 18px;
  }
}
#contact form .formButton button p,
#contact form .formButton button span {
  transition: color 0.32s cubic-bezier(0.39, 0.575, 0.565, 1), right 0.32s cubic-bezier(0.39, 0.575, 0.565, 1);
}
#contact form .formButton button p {
  margin: 0;
  color: var(--primary-color);
  font-weight: 600;
}
#contact form .formButton button p {
  font-size: 16px;
}
@media screen and (min-width: 320px) {
  #contact form .formButton button p {
    font-size: calc(16px + 2 * ((100vw - 320px) / 980));
  }
}
@media screen and (min-width: 1300px) {
  #contact form .formButton button p {
    font-size: 18px;
  }
}
#contact form .formButton button p span {
  display: inline-block;
  content: "";
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--primary-color);
  z-index: 99;
}
@media only screen and (min-width: 768px) {
  #contact form .formButton button:hover p {
    color: var(--color-white);
  }
  #contact form .formButton button:hover p span {
    right: 8%;
    border-left-color: var(--color-white);
  }
}
#contact form .formButton button::before {
  z-index: -1;
}
@media only screen and (min-width: 768px) {
  #contact form .formButton button:hover {
    color: var(--color-white);
  }
}
#contact form .formButton button[type=submit]::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--primary-color);
  z-index: 99;
  transition: all 0.32s cubic-bezier(0.39, 0.575, 0.565, 1);
}
@media only screen and (min-width: 768px) {
  #contact form .formButton button[type=submit]:hover::after {
    border-left-color: var(--color-white);
  }
}
#contact form .formButton button[type=reset] {
  background-color: var(--color-input);
}

.confirmFormBody {
  display: none;
  max-width: 1000px;
  margin: 4em auto 4em;
}
.confirmFormBody form {
  margin-top: 2em;
}
.confirmFormBody form .formDataOutput {
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.confirmFormBody form .formDataOutput li {
  display: flex;
  flex-direction: row;
}
.confirmFormBody form .formDataOutput li:nth-of-type(odd) {
  background-color: var(--color-input);
  padding: 0;
}
.confirmFormBody form .formDataOutput li label {
  flex-basis: 50%;
  padding: 1em;
  text-align: right;
  font-weight: 500;
  color: var(--primary-color);
}
.confirmFormBody form .formDataOutput li label {
  font-size: 16px;
}
@media screen and (min-width: 320px) {
  .confirmFormBody form .formDataOutput li label {
    font-size: calc(16px + 2 * ((100vw - 320px) / 980));
  }
}
@media screen and (min-width: 1300px) {
  .confirmFormBody form .formDataOutput li label {
    font-size: 18px;
  }
}
.confirmFormBody form .formDataOutput li p {
  flex-basis: 50%;
  padding: 1em;
  font-size: 16px;
  text-align: justify;
}
@media only screen and (max-width: 640px) {
  .confirmFormBody form .formDataOutput li {
    flex-direction: column;
    margin-bottom: 1em;
  }
  .confirmFormBody form .formDataOutput li:nth-of-type(odd) {
    background-color: transparent;
  }
  .confirmFormBody form .formDataOutput li label {
    text-align: left;
    background-color: var(--color-input);
    padding: 0.5em;
  }
  .confirmFormBody form .formDataOutput li p {
    padding: 0.5em;
  }
}

.formBody form {
  margin-top: 4em;
}
.formBody form .fieldGroup {
  padding: var(--padding) 0;
  border-bottom: 1px solid var(--color-border);
}
.formBody form .fieldGroup:nth-of-type(5) {
  border-bottom: none;
}
.formBody form .fieldGroup .formField {
  display: flex;
  flex-direction: row;
  margin: var(--padding) 0;
}
.formBody form .fieldGroup .formField label {
  flex: 1;
  max-width: 200px;
  font-weight: 500;
  color: var(--primary-color);
}
.formBody form .fieldGroup .formField label {
  font-size: 16px;
}
@media screen and (min-width: 320px) {
  .formBody form .fieldGroup .formField label {
    font-size: calc(16px + 2 * ((100vw - 320px) / 980));
  }
}
@media screen and (min-width: 1300px) {
  .formBody form .fieldGroup .formField label {
    font-size: 18px;
  }
}
.formBody form .fieldGroup .formField label span {
  color: var(--color-red);
  border: 1px solid var(--color-red);
  padding: 2px 3px;
  border-radius: 4px;
  /* margin-left: 0.5em; */
  font-weight: 500;
  display: block;
  width: 40px;
}
.formBody form .fieldGroup .formField label span {
  font-size: 14px;
}
@media screen and (min-width: 320px) {
  .formBody form .fieldGroup .formField label span {
    font-size: calc(14px + 2 * ((100vw - 320px) / 980));
  }
}
@media screen and (min-width: 1300px) {
  .formBody form .fieldGroup .formField label span {
    font-size: 16px;
  }
}
.formBody form .fieldGroup .formField input {
  flex: 1;
  background-color: var(--color-input);
  border: transparent;
  padding: var(--padding);
  font-size: 1em;
  border-radius: 4px;
}
.formBody form .fieldGroup .formField input.widthLimiter {
  max-width: min(50%, 300px);
}
.formBody form .fieldGroup .formField select {
  flex: 1;
  max-width: min(50%, 300px);
  background-color: var(--color-input);
  border: transparent;
  font-size: 1em;
  text-indent: 1em;
  height: 58px;
}
.formBody form .fieldGroup .formField textarea {
  flex: 1;
  background-color: var(--color-input);
  border: transparent;
  padding: 1em;
  font-size: 1em;
}
.formBody form .fieldGroup .formField .error-border {
  border: 1px solid red;
}
@media only screen and (max-width: 640px) {
  .formBody form .fieldGroup .formField {
    flex-direction: column;
  }
  .formBody form .fieldGroup .formField label {
    max-width: 100%;
    padding-bottom: 0.5em;
  }
  .formBody form .fieldGroup .formField select {
    padding: 1em 0;
  }
}

.confirmFormBody {
  margin: 0em auto -6em;
}
.confirmFormBody .thanksMessage {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30vh;
}

body#contact main section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 calc(var(--padding));
}
body#contact main section h2 {
  font-size: 1.5em;
  text-align: center;
}
body#contact main section .formHeader {
  text-align: center;
  margin-top: 4em;
}
body#contact main section .formHeader h4 {
  font-family: var(--shippori-mincho);
  font-weight: 500;
}
body#contact main section .formHeader h4 {
  font-size: 21px;
}
@media screen and (min-width: 320px) {
  body#contact main section .formHeader h4 {
    font-size: calc(21px + 3 * ((100vw - 320px) / 980));
  }
}
@media screen and (min-width: 1300px) {
  body#contact main section .formHeader h4 {
    font-size: 24px;
  }
}
body#contact main section .formHeader .phone {
  margin-top: 3em;
}
body#contact main section .formHeader .phone p {
  font-weight: 500;
}
body#contact main section .formHeader .phone p:first-child {
  color: var(--primary-color);
}
body#contact main section .formHeader .phone p:first-child {
  font-size: 18px;
}
@media screen and (min-width: 320px) {
  body#contact main section .formHeader .phone p:first-child {
    font-size: calc(18px + 2 * ((100vw - 320px) / 980));
  }
}
@media screen and (min-width: 1300px) {
  body#contact main section .formHeader .phone p:first-child {
    font-size: 20px;
  }
}
body#contact main section .formHeader .phone p:last-child {
  font-size: 16px;
}
body#contact main section .formHeader .phone a {
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}
body#contact main section .formHeader .phone a img {
  margin-right: 0.5em;
  display: inline;
  width: 5vw;
}
body#contact main section .formHeader .phone a span {
  color: var(--primary-color);
  font-family: "Helvetica", var(--roboto);
  display: inline;
  font-size: 32px;
}
body#contact main section .formHeader .phone a span {
  font-size: 32px;
}
@media screen and (min-width: 320px) {
  body#contact main section .formHeader .phone a span {
    font-size: calc(32px + 22 * ((100vw - 320px) / 980));
  }
}
@media screen and (min-width: 1300px) {
  body#contact main section .formHeader .phone a span {
    font-size: 54px;
  }
}