@charset "utf-8";
.contact-content {
  display: flex;
  gap: 20px;
/*  height: 308px;*/
  padding: 0px 0px 11px 30px;
  position: relative;
}
.form-panel {
  width: 705px;
  /*height: 597px;*/
  height: 100%;
  flex: 0 0 705px;
  padding: 6px 15px 5px;
  border-radius: 6px;
  background: linear-gradient(125deg, #f0faff, #e9f7ff);
 /* color: #0035b5;*/
}



.form-panel h2 {
  height: 46px;
  margin: 0;
  color: #0035ac;
  font-size: 24px;
}
.form-intro {
  margin: 0 0 18px;
  font-weight: 600;
}
#contact-form {
  margin: 0;
}
.form-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: center;
  height: 38px;
  margin-bottom: 6px;
}
.form-row label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px 0 10px;
  color: #0038b6;
/*  font-size: 10px;*/
  font-weight: 800;
/*  white-space: nowrap;*/
}
.required {
  display: inline-grid;
  place-items: center;
  width: 33px;
  height: 26px;
  margin-left: 8px;
  border-radius: 3px;
  background: #f9000c;
  color: white;
  font-size: 12px;
  font-weight: 800
}
.form-row input, .form-row select, .form-message textarea {
  width: 100%;
  border: 1px solid #c9d7de;
  border-radius: 3px;
  background: #fff;
  color: #24354c;
  font: 13px "Yu Gothic", Meiryo, sans-serif;
}
.form-row input, .form-row select {
  height: 28px;
  padding: 2px 10px;
}
.form-row input::placeholder, .form-message textarea::placeholder {
  color: #a7a7a7;
  opacity: 1;
}
.form-row select {
  padding-left: 10px;
  color: #0039bc;
  font-size: 13px;
  font-weight: 800;
}
.form-message {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: center;
}
.form-message label {
  display: flex;
  align-items:center;
  justify-content: space-between;
  padding: 0 7px 0 10px;
  color: #0038b6;
/*  font-size: 10px;*/
  font-weight: 800;
/*  white-space: nowrap;*/
}
.form-message textarea {
  height: 123px;
  padding: 6px 10px;
  resize: vertical;
	margin-bottom: 20px
}
.submit-button {
  display: block;
  width: 251px;
  height: 35px;
  margin: 0 0 30px 195px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(#1685fa, #0037b8);
  color: white;
  cursor: pointer;
  font: 800 15px "Yu Mincho", serif;
}
.submit-button:hover {
  filter: brightness(1.08);
}
.submit-button:focus-visible, .form-row input:focus-visible, .form-row select:focus-visible, .form-message textarea:focus-visible {
  outline: 2px solid #0b62d8;
  outline-offset: 2px;
}
.contact-status:not([hidden]) {
  position: absolute;
  z-index: 4;
  top: 100%;
  left: 0;
  width: 100%;
  margin: 4px 0 0;
  padding: 8px 10px;
  border: 1px solid #69a8e3;
  border-radius: 5px;
  background: #fff;
  color: #0035a6;
  font-size: 11px;
  box-shadow: 0 4px 12px #123c7250;
}

@media(max-width:1024px) {
.contact-content {
  display: flex;
  gap: 20px;
  padding: 0px 0px 11px 30px;
  position: relative;
}
.form-panel {
  width: 100%;
  height: 597px;
  flex: 0 0 100%;
  padding: 6px 15px 5px;
  border-radius: 6px;
  background: linear-gradient(125deg, #f0faff, #e9f7ff);
}

  .contact-page .site-header {
    grid-template-columns: 215px 1fr
  }
  .contact-page .global-nav {
    display: none
  }
  .contact-page .header-contact {
    justify-content: flex-end
  }
}
@media(max-width:644px) {
  .contact-page .site-header {
    height: auto;
    min-height: 45px
  }
  .contact-hero {
    height: auto;
    aspect-ratio: 1536/257
  }
  .contact-content {
    height: auto;
    display: block;
    padding: 8px 20px 14px
  }
  .form-panel, .contact-page .contact-panel {
    width: 100%;
    height: auto;
    min-height: 0;
    flex: none
  }
  .form-panel {
    padding: 12px 16px 16px
  }
  .form-row {
    grid-template-columns: 180px minmax(0, 1fr)
  }
  .form-row label {
    padding-right: 12px
  }
  .form-message {
	  grid-template-columns: 180px minmax(0, 1fr);
  }

.submit-button {
  display: block;
	width: 60%;
  height: 40px;
  margin: 0 auto 30px auto;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(#1685fa, #0037b8);
  color: white;
  cursor: pointer;
  font: 800 15px "Yu Mincho", serif;
}	
  .contact-page .contact-panel {
    margin-top: 16px;
    padding: 12px 16px;
    transform: none
  }
  .contact-page .location-contact {
    min-height: 74px
  }
  .contact-status:not([hidden]) {
    position: static
  }
  .contact-cta {
    height: auto;
    aspect-ratio: 1536/82
  }
  .contact-cta a {
    top: 15%;
    right: 3%;
    width: 21%;
    height: 70%
  }
  .contact-page .site-footer {
    height: auto;
    min-height: 81px;
    padding: 10px
  }
  .contact-page .footer-upper {
    height: auto;
    flex-wrap: wrap;
    gap: 8px
  }
  .contact-page .site-footer nav {
    flex-wrap: wrap
  }
}
@media(max-width:414px) {
  .form-row {
    display: block;
    height: auto;
    margin-bottom: 9px
  }
  .form-row label {
    justify-content: flex-start;
    gap: 12px;
    padding: 0 0 3px
  }
  .form-row input, .form-row select {
    height: 34px
  }
  .form-message {
    height: 80px;
    margin: 0
  }
  .form-message textarea {
    height: 80px
  }
  .submit-button {
    width: 100%;
    height: 38px;
    margin: 8px 0 0
  }
  .contact-page .header-contact .header-social {
    display: none
  }
  .contact-page .messenger-button {
    font-size: 11px
  }
}