@charset "utf-8";

:root {
  --form-bg: #f7f2e9;
  --form-surface: #fff;
  --form-brown: #3b241b;
  --form-muted: #6e625b;
  --form-accent: #c75f43;
  --form-line: #dfd2c3;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.legacy-form {
  margin: 0 !important;
  padding: 24px 0 44px;
  background: var(--form-bg) !important;
  color: #382f2a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

body.legacy-form > table {
  width: min(calc(100% - 24px), 1080px) !important;
  margin: 0 auto !important;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(68, 42, 30, .09);
}

body.legacy-form table {
  max-width: 100%;
}

body.legacy-form img {
  max-width: 100%;
}

/* Legacy layout uses a 1px spacer GIF as a flexible rule.
   Do not apply height:auto to spacer.gif or it expands into a large square. */
body.legacy-form img:not([src$="spacer.gif"]) {
  height: auto;
}

body.legacy-form img[src$="spacer.gif"] {
  max-width: 100%;
}

body.legacy-form .form-brand {
  display: inline-flex;
  padding: 13px 18px;
}

body.legacy-form .form-brand img {
  width: min(518px, 76vw) !important;
  height: auto !important;
}

body.legacy-form input[type="text"],
body.legacy-form input[type="email"],
body.legacy-form input[type="tel"],
body.legacy-form input[type="password"],
body.legacy-form textarea,
body.legacy-form select {
  max-width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #bdaea0;
  border-radius: 7px;
  background: #fff;
  font: inherit;
}

body.legacy-form textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
}

body.legacy-form input[type="radio"],
body.legacy-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 5px;
  vertical-align: -3px;
}

body.legacy-form input[type="submit"],
body.legacy-form input[type="reset"],
body.legacy-form input[type="button"],
body.legacy-form button {
  min-height: 45px;
  padding: 9px 20px;
  border: 1px solid var(--form-accent);
  border-radius: 999px;
  background: var(--form-accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

body.legacy-form input[type="reset"],
body.legacy-form input[value*="戻る"],
body.legacy-form input[value*="修正"] {
  background: #fff;
  color: #9f452f;
}

body.legacy-form a {
  color: #9f452f;
  text-underline-offset: 3px;
}

body.legacy-form .hyou_01 {
  width: 100% !important;
}

body.legacy-form .hyou_01 td {
  padding: 11px 13px;
  border-color: var(--form-line) !important;
  line-height: 1.65;
}

body.legacy-form .hyou_01 td:first-child {
  color: var(--form-brown);
  font-weight: 700;
}

body.legacy-form .hyou_01 td.form-actions {
  height: auto !important;
  text-align: center;
  padding: 20px !important;
  background: #fff !important;
}

body.legacy-form .form-actions input {
  box-sizing: border-box;
  width: 170px;
  margin: 0 5px;
}

@media (max-width: 760px) {
  body.legacy-form {
    padding-top: 12px;
    font-size: 15px;
  }

  body.legacy-form > table {
    width: calc(100% - 12px) !important;
    border-radius: 15px;
  }

  body.legacy-form > table > tbody > tr > td > table {
    width: 100% !important;
  }

  body.legacy-form td[width="100"],
  body.legacy-form td[width="150"],
  body.legacy-form td[width="30"],
  body.legacy-form td[width="20"] {
    width: 10px !important;
  }

  body.legacy-form .hyou_01,
  body.legacy-form .hyou_01 tbody,
  body.legacy-form .hyou_01 tr,
  body.legacy-form .hyou_01 td {
    display: block !important;
    width: 100% !important;
  }

  body.legacy-form .hyou_01 tr {
    overflow: hidden;
    margin-bottom: 13px;
    border: 1px solid var(--form-line);
    border-radius: 11px;
    background: #fff;
  }

  body.legacy-form .hyou_01 td {
    min-height: auto !important;
    border: 0 !important;
    padding: 11px 12px !important;
  }

  body.legacy-form .hyou_01 td:first-child {
    background: #f3eadf !important;
  }

  body.legacy-form input[type="text"],
  body.legacy-form input[type="email"],
  body.legacy-form input[type="tel"],
  body.legacy-form input[type="password"],
  body.legacy-form textarea,
  body.legacy-form select {
    width: 100% !important;
  }

  body.legacy-form input[size="3"],
  body.legacy-form input[size="4"],
  body.legacy-form input[size="5"],
  body.legacy-form input[size="6"],
  body.legacy-form input[size="10"] {
    width: auto !important;
    max-width: 110px;
  }

  body.legacy-form .hyou_01 td.form-actions {
    display: block !important;
    height: auto !important;
  }

  body.legacy-form .form-actions input {
    display: block;
    width: 100%;
    margin: 0 0 10px;
  }

  body.legacy-form .form-actions input:last-child {
    margin-bottom: 0;
  }
}
