.contact { max-width: 1216px; margin-inline: auto; padding: 56px 48px 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; color: #244c49; }
.contact p, .contact h1, .contact h2 { margin: 0; }
.contact__eyebrow { font-size: 12px; color: #397b7c; letter-spacing: .12em; }
.contact h1 { margin-top: 22px; font-size: clamp(24px, 2.5vw, 34px); line-height: 1.8; font-weight: 600; letter-spacing: .025em; }
.contact-section { background: #2b7476; }
.contact-section .contact__intro { color: #fff; }
.contact-section .contact__eyebrow { color: #d9ece7; font-size: 16px; }
.contact-section .contact__lead { color: #edf5f1; }
.contact-section .contact__mail { border-top-color: #79a8a4; }
.contact-section .contact__mail p { color: #d9ece7; }
.contact-section .contact__mail a { color: #fff; border-bottom-color: #9fc4bd; }
.contact-section .contact__mail a:focus-visible { outline-color: #fff; }
.contact-section .contact__form { border-top: 0; padding: 32px; background: #fff; border-radius: 24px; color: #244c49; }
.contact-section .contact { padding-top: 64px; }
.contact h2.contact__title { margin: 22px 0 0; font-size: clamp(24px, 2.5vw, 34px); line-height: 1.8; letter-spacing: .025em; }
.contact .contact__form-title { margin: 0 0 24px; font-size: 20px; line-height: 1.8; font-weight: 600; }
.contact__lead { font-family: "Yu Gothic", "Meiryo", sans-serif; color: #565e5b; font-size: 14px; line-height: 2; overflow-wrap: anywhere; }
.contact .contact__lead { margin-top: 24px; }
.contact__mail { margin-top: 36px; padding-top: 24px; border-top: 1px solid #dce0d8; }
.contact__mail p { font-size: 12px; line-height: 1.8; color: #607f7a; }
.contact__mail a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 10px; color: #397b7c; font-family: Arial, sans-serif; font-size: 15px; line-height: 1.8; text-decoration: none; border-bottom: 1px solid #b9cdca; overflow-wrap: anywhere; }
.contact__form { border-top: 1px solid #dce0d8; padding-top: 24px; min-width: 0; }
.contact h2 { font-size: 20px; line-height: 1.8; font-weight: 600; margin-bottom: 24px; }
.contact__field + .contact__field { margin-top: 20px; }
.contact__field label { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.8; margin-bottom: 8px; }
.contact__required, .contact__optional { font-size: 10px; font-weight: 500; padding: 2px 7px; border-radius: 3px; }
.contact__required { color: #397b7c; background: #eaf2ed; }
.contact__optional { color: #717c76; background: #f3f4f1; }
.contact__field input, .contact__field textarea { display: block; width: 100%; min-width: 0; border: 1px solid #cedbd4; border-radius: 5px; background: #fafcf9; color: #244c49; padding: 12px 14px; font-family: "Yu Gothic", "Meiryo", sans-serif; font-size: 16px; line-height: 1.6; }
.contact__field textarea { resize: vertical; min-height: 155px; }
.contact__field :is(input, textarea):focus-visible { outline: 2px solid #397b7c; outline-offset: 2px; background: #fff; }
.contact .contact__hint { font-family: "Yu Gothic", "Meiryo", sans-serif; font-size: 12px; line-height: 1.8; color: #607f7a; margin-top: 8px; }
.contact .contact__status { margin-top: 24px; font-size: 12px; line-height: 1.9; color: #607f7a; }
.contact__submit { display: flex; align-items: center; justify-content: center; gap: 36px; font: inherit; font-size: 14px; color: #fff; background: #2b7476; border: 0; border-radius: 999px; padding: 14px 32px; margin-top: 16px; }
.contact__submit:disabled { background: #e2e9e4; color: #64766d; cursor: not-allowed; }
.contact__submit span { font-family: Arial, sans-serif; font-size: 18px; }
.contact-footer { max-width: 1216px; margin-inline: auto; padding: 24px 48px 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #708f8c; }
.contact-footer a { color: #397b7c; text-decoration: none; font-size: 12px; line-height: 1.8; }
.contact-footer small { font-family: Arial, sans-serif; font-size: 10px; letter-spacing: .1em; }
.contact__mail a:hover, .contact-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact__mail a:focus-visible, .contact-footer a:focus-visible { outline: 2px solid #397b7c; outline-offset: 5px; }
@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; gap: 36px; padding: 32px 24px 48px; }
  .contact h1 { font-size: clamp(21px, 4.5vw, 30px); letter-spacing: 0; margin-top: 18px; }
  .contact-section .contact { padding-top: 48px; }
  .contact-section .contact__form { padding: 28px 24px; border-radius: 20px; }
  .contact h2.contact__title { font-size: clamp(21px, 4.5vw, 30px); margin-top: 18px; letter-spacing: 0; }
  .contact .contact__form-title { font-size: 19px; margin-bottom: 20px; }
  .contact__mail { margin-top: 24px; padding-top: 20px; }
  .contact h2 { font-size: 19px; margin-bottom: 20px; }
  .contact-footer { padding: 20px 24px 28px; flex-wrap: wrap; }
}
/* ボット対策の入力欄。画面にも読み上げにも出さない。 */
.contact__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact .contact__status[data-state="sending"] { color: #397b7c; }
.contact .contact__status[data-state="success"] { color: #2b7476; font-weight: 600; }
.contact .contact__status[data-state="error"] { color: #b4543a; font-weight: 600; }
.contact__submit:not(:disabled) { cursor: pointer; }
.contact__submit:not(:disabled):hover { background: #244c49; }
.contact__submit:focus-visible { outline: 2px solid #397b7c; outline-offset: 4px; }
