/* Custom skin for the XServer CGI mail form, not its administration pages. */
:root {
  color-scheme: light;
  --clinic-ink: #222222;
  --clinic-muted: #626262;
  --clinic-border: #d5d5d5;
  --clinic-orange: #b7440e;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #ffffff; }
body {
  margin: 0;
  color: var(--clinic-ink);
  background: #ffffff;
  font-family: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
#main { width: min(100%, 760px); margin: 0 auto; padding: 24px 20px 40px; }
.section__ttl, #main h2 {
  margin: 0 0 20px;
  padding: 0 0 16px;
  border-bottom: 3px solid #f46a20;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}
#main a { color: var(--clinic-orange); text-underline-offset: 3px; }
#main a:hover { text-decoration-thickness: 2px; }
#main p, #main .section__desc { margin: 0 0 20px; text-align: left; }
#main .table, #main table { width: 100%; margin: 24px 0; border-collapse: collapse; table-layout: fixed; }
#main th, #main td { padding: 20px 12px; border: 0; border-bottom: 1px solid #e5e5e5; text-align: left; vertical-align: top; background: #ffffff; }
#main th { width: 200px; font-weight: 700; }
#main th + td { width: auto; }
#main input:not([type=hidden]):not([type=submit]):not([type=button]):not([type=reset]):not([type=checkbox]):not([type=radio]),
#main select, #main textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  margin: 4px 0;
  padding: 10px 12px;
  color: var(--clinic-ink);
  background: #fafafa;
  border: 1px solid var(--clinic-border);
  border-radius: 4px;
  font: inherit;
  line-height: 1.5;
  box-shadow: none;
}
#main textarea { min-height: 168px; resize: vertical; }
#main input[type=checkbox], #main input[type=radio] { accent-color: var(--clinic-orange); }
#main input:focus-visible, #main select:focus-visible, #main textarea:focus-visible,
#main button:focus-visible, #main a:focus-visible { outline: 2px solid var(--clinic-orange); outline-offset: 3px; }
#main input[type=submit], #main input[type=button], #main input[type=reset], #main button {
  display: inline-block;
  min-height: 48px;
  max-width: 100%;
  margin: 8px 4px;
  padding: 12px 28px;
  color: #ffffff;
  background: var(--clinic-orange);
  border: 1px solid var(--clinic-orange);
  border-radius: 4px;
  font: inherit;
  font-weight: 700;
  line-height: 1.5;
  white-space: normal;
  cursor: pointer;
}
#main input[type=submit]:hover, #main button:hover { background: #92350b; }
#main input[type=reset] { color: var(--clinic-ink); background: #ffffff; border-color: var(--clinic-border); }
#main .error, #main .error-message, #main .err, #main .red_txt { color: #ae2525; }
#main small { color: var(--clinic-muted); font-size: 14px; }
#main input.secondary { color: var(--clinic-ink); background: #ffffff; border-color: var(--clinic-border); }
.button_box { text-align: left; }
.form-footer { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-top: 24px; margin-top: 16px; border-top: 1px solid #e5e5e5; }

@media (max-width: 600px) {
  #main { padding: 20px 16px 32px; }
  .section__ttl, #main h2 { font-size: 20px; }
  #main table, #main tbody, #main tr, #main th, #main td { display: block; width: 100%; }
  #main tr { padding: 16px 0; border-bottom: 1px solid #e5e5e5; }
  #main th { padding: 0 0 8px; border: 0; }
  #main td { padding: 0; border: 0; }
  #main input[type=submit], #main input[type=button], #main input[type=reset], #main button { width: 100%; margin: 8px 0; }
}