/* 通報フォーム共通デザイン。画像、Webフォント、jQueryは使いません。 */
:root {
  color-scheme: light;
  --text: #253345;
  --muted: #5a687a;
  --line: #dce3eb;
  --accent: #12618f;
  --navy: #17354e;
  --surface: #fff;
  --background: #f4f7f9;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; min-width: 280px; background: var(--background); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; font-size: 1rem; line-height: 1.8; overflow-wrap: anywhere; }
a { color: var(--accent); text-decoration-thickness: .07em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .12em; }
.container { width: min(100% - 36px, 880px); margin-inline: auto; }
.site-header { background: var(--navy); color: #fff; padding: 43px 0 42px; }
.eyebrow { margin: 0 0 10px; color: #bbd6e7; font-size: .75rem; font-weight: 700; letter-spacing: .16em; }
h1 { margin: 0; font-size: clamp(1.5rem, 4.5vw, 2.05rem); line-height: 1.5; font-weight: 700; letter-spacing: .02em; }
.lead { margin: 12px 0 0; color: #d9e6ee; font-size: .96rem; }
.mobile-break { display: none; }
main.container { padding: 24px 0 48px; }
.panel { margin: 0 0 19px; padding: clamp(22px, 4.8vw, 38px); background: var(--surface); border: 1px solid #e4e9ef; border-radius: 12px; box-shadow: 0 3px 16px rgb(21 45 70 / 3%); }
.panel h2 { margin: 0 0 22px; padding-bottom: 13px; border-bottom: 2px solid #dbe8f1; font-size: 1.3rem; line-height: 1.5; color: var(--navy); }
.panel p { margin: 0 0 14px; }
.panel p:last-child { margin-bottom: 0; }
.contact-box { margin-top: 23px; padding: 20px 22px; border-radius: 8px; background: #f0f6fa; }
.contact-box h3 { margin: 0 0 13px; font-size: 1rem; color: var(--navy); }
.contact-list { margin: 0; }
.contact-list > div { display: flex; gap: 17px; margin: 7px 0; }
.contact-list dt { flex: 0 0 42px; font-weight: 700; }
.contact-list dd { margin: 0; }
.contact-list small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li { padding: 13px 0 13px 20px; border-bottom: 1px solid #e9edf2; position: relative; }
.notice-list li:first-child { padding-top: 0; }
.notice-list li:last-child { border: 0; padding-bottom: 0; }
.notice-list li::before { content: ""; position: absolute; top: 24px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: #2780ae; }
.notice-list li:first-child::before { top: 10px; }
.section-heading h2 { margin-bottom: 8px; }
.section-heading p { color: var(--muted); font-size: .88rem; }
.required-badge { display: inline-block; vertical-align: middle; padding: 0 6px; color: #a43934; background: #fbefee; border: 1px solid #e9c8c4; border-radius: 3px; font-size: .72rem; font-weight: 700; line-height: 1.55; white-space: nowrap; }
#mailformpro { margin: 0; }
#mailformpro .form-group { min-width: 0; margin: 0; padding: 16px 0 10px; border: 0; border-top: 1px solid var(--line); }
#mailformpro .form-group legend { display: block; width: 100%; padding: 0 0 10px; font-size: 1.06rem; font-weight: 700; line-height: 1.5; color: var(--navy); }
.step { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-right: 7px; border-radius: 50%; background: #e6f1f7; color: var(--accent); font-size: .86rem; }
#mailformpro .field { min-width: 0; margin: 0 0 26px; }
#mailformpro .field > label, #mailformpro .field-label { display: block; margin: 0 0 5px; color: #25384b; font-weight: 700; font-size: .98rem; line-height: 1.6; }
#mailformpro .field-help { margin: 0 0 10px; color: var(--muted); font-size: .87rem; line-height: 1.7; }
#mailformpro .field > input:not([type=radio]):not([type=checkbox]), #mailformpro .field > textarea { display: block; width: 100% !important; max-width: 100% !important; min-width: 0 !important; margin: 0; padding: 12px 14px; border: 1px solid #aab9c6; border-radius: 6px; background: #fff; color: var(--text); font: inherit; font-size: 1rem; line-height: 1.65; box-sizing: border-box !important; }
#mailformpro .field > input:not([type=radio]):not([type=checkbox]) { min-height: 46px; }
#mailformpro .field > textarea { min-height: 112px !important; resize: vertical; }
#mailformpro .field > input:focus, #mailformpro .field > textarea:focus { outline: 3px solid #cbe6f6; border-color: #2078a8; }
#mailformpro .radio-options { display: flex; flex-wrap: wrap; gap: 10px; }
#mailformpro .choice { display: flex; align-items: center; gap: 7px; margin: 0; padding: 9px 13px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; font-weight: 400; background: #fff; }
#mailformpro input[type="radio"], #mailformpro input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
#mailformpro .submit-area { margin-top: 8px; padding: 22px; border-radius: 9px; background: #f1f5f8; text-align: center; }
#mailformpro .confirm-choice { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; cursor: pointer; }
#mailformpro button[type="submit"] { display: inline-block; width: min(100%, 380px); min-height: 52px; padding: 12px 22px; border: 0; border-radius: 7px; background: var(--accent); color: #fff; font: inherit; font-size: 1.06rem; font-weight: 700; text-shadow: none !important; cursor: pointer; }
#mailformpro button[type="submit"]:hover { background: #0b4b70; }
#mailformpro button[type="submit"]:focus-visible { outline: 3px solid #6bb9e2; outline-offset: 3px; }
#mailformpro button[type="submit"]:disabled { background: #818e9a; cursor: not-allowed; }
.site-footer { padding: 22px 0 34px; color: #687687; text-align: center; font-size: .77rem; }
@media (max-width: 640px) {
  .container { width: min(100% - 24px, 880px); }
  .site-header { padding: 30px 0; }
  .mobile-break { display: initial; }
  .panel { margin-bottom: 12px; border-radius: 8px; }
  .contact-list > div { display: block; }
  .contact-list dt { margin-bottom: 1px; }
  #mailformpro .radio-options { display: grid; }
  #mailformpro .choice { min-height: 43px; }
  #mailformpro .submit-area { padding: 17px 12px; }
}

/* UMC multilingual content and language selector */
.panel h3 { margin: 29px 0 12px; color: var(--navy); font-size: 1.08rem; line-height: 1.55; }
.panel h3:first-child { margin-top: 0; }
.panel ul:not(.notice-list) { margin: 12px 0 18px; padding-left: 1.35em; }
.panel li { margin: 7px 0; }
.contact-box ul { margin: 0; }
.contact-box li { margin: 7px 0; }
/* Keep long anonymous-disclosure choices inside the form on every device. */
#mailformpro .radio-options { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
#mailformpro .choice { width: 100%; min-width: 0; max-width: 100%; align-items: flex-start; white-space: normal; }
#mailformpro .choice input[type="radio"] { margin-top: .24em; }
#mailformpro .choice-text { display: block; flex: 1 1 auto; min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; word-break: normal; line-break: auto; }
/* Completion cards: language-specific labels may be much longer than Japanese. */
.completion-panel .contact-list > div { display: grid; grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr); gap: 14px; align-items: start; margin: 9px 0; }
.completion-panel .contact-list dt { flex: none; min-width: 0; overflow-wrap: anywhere; }
.completion-panel .contact-list dd { min-width: 0; overflow-wrap: anywhere; }
.completion-panel .contact-list small { overflow-wrap: anywhere; }
.completion-back { margin-top: 24px !important; }
.language-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.language-choice { display: flex; align-items: center; justify-content: space-between; padding: 15px 19px; border: 1px solid var(--line); border-radius: 7px; text-decoration: none; font-size: 1.05rem; font-weight: 700; color: var(--navy); background: #f7fafc; }
.language-choice:hover,.language-choice:focus-visible { border-color: var(--accent); background: #eaf4fa; }
.language-choice span { color: var(--accent); }
.nav-back { text-align: right; font-size: .9rem; }
.submit-area .confirm-choice { margin-bottom: 18px; }
@media (max-width: 640px) {
 .language-grid { grid-template-columns: 1fr; }
 .completion-panel .contact-list > div { display: block; }
 .completion-panel .contact-list dt { margin-bottom: 2px; }
}

/* BEGIN FAIRLINKS PRIVACY CONSENT */
/* 通報・相談フォームの個人情報同意欄（既存の送信ボタンは変更しません） */
#mailformpro .privacy-consent-box {
  max-width: 650px;
  margin: 0 auto 24px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  text-align: left;
}
#mailformpro .privacy-policy-link {
  margin: 0 0 16px;
  font-size: .95rem;
  line-height: 1.8;
  text-align: left;
}
#mailformpro .privacy-policy-link a {
  color: #12618f;
  text-decoration: underline;
}
#mailformpro .submit-area label.confirm-choice,
form#mailformpro .submit-area label.confirm-choice.mfp_checked,
form#mailformpro .submit-area label.confirm-choice.mfp_not_checked {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #253345;
  text-align: left !important;
  white-space: normal !important;
}
#mailformpro .submit-area label.confirm-choice input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0 !important;
}
#mailformpro .submit-area label.confirm-choice > .consent-text {
  display: block;
  flex: 0 1 auto !important;
  min-width: 0;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.8;
  text-align: left !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  #mailformpro .privacy-consent-box { padding: 16px; margin-bottom: 20px; }
  #mailformpro .privacy-policy-link,
  #mailformpro .consent-text { font-size: .9rem; }
}
/* END FAIRLINKS PRIVACY CONSENT */

/* BEGIN UMC LAYOUT FIX 2026-11-06 */
/* Mailform Pro sets form labels to inline-block/nowrap. In the six language
   forms, the final confirmation checkbox must occupy its own row above Send. */
form#mailformpro .submit-area > label.confirm-choice,
form#mailformpro .submit-area > label.confirm-choice.mfp_checked,
form#mailformpro .submit-area > label.confirm-choice.mfp_not_checked {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin: 0 auto 18px !important;
  padding: 0 !important;
  gap: 10px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
  white-space: normal !important;
}
form#mailformpro .submit-area > label.confirm-choice > span {
  display: block;
  min-width: 0;
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
form#mailformpro .submit-area > label.confirm-choice input[type="checkbox"] {
  flex: 0 0 18px;
  margin: .27em 0 0 !important;
}
form#mailformpro .submit-area > button[type="submit"] {
  display: block !important;
  width: min(100%, 380px) !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

/* The Mailform Pro confirmation table has long localized labels and may
   contain multi-line reports. Keep both columns within the visible dialog. */
div#mfp_overlay_inner {
  width: min(780px, 92vw) !important;
  max-width: calc(100vw - 24px) !important;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
}
div#mfp_overlay_inner h4 {
  font-size: clamp(1.08rem, 2vw, 1.4rem) !important;
  line-height: 1.5;
  text-align: left;
}
table#mfp_confirm_table {
  width: 100% !important;
  table-layout: fixed !important;
}
table#mfp_confirm_table tr th,
table#mfp_confirm_table tr td {
  min-width: 0;
  padding: 10px 12px;
  vertical-align: top;
  line-height: 1.65;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}
table#mfp_confirm_table tr th { width: 35% !important; }
table#mfp_confirm_table tr td { width: 65% !important; }

@media (max-width: 800px) {
  table#mfp_confirm_table tr th,
  table#mfp_confirm_table tr td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
  }
  table#mfp_confirm_table tr th { padding-bottom: 3px; }
  table#mfp_confirm_table tr td { padding-top: 3px; }
  div#mfp_overlay_inner { padding: 15px 12px; }
}
/* END UMC LAYOUT FIX 2026-11-06 */
