/* Scoped to the Japanese contact wizard; shared site chrome keeps its styles. */
.contact-shell {
  --contact-blue: #005bac;
  --contact-pale: #e8f3fa;
  box-sizing: border-box;
  width: 100%;
  max-width: 880px;
  margin: 38px auto 80px;
  padding: 32px;
  background: var(--contact-pale);
  border-radius: 14px;
  color: #333;
  font-size: 16px;
  line-height: 1.8;
}
.contact-shell *, .contact-shell *::before, .contact-shell *::after { box-sizing: border-box; }
.contact-shell [hidden] { display: none !important; }
.cat_contact #contents { max-width: 980px; padding: 0 24px; }
.cat_contact #contents .contact-intro { margin-top: 48px; text-align: center; }
.cat_contact #contents #content-main .contact-intro h2 { color: #333; font-size: 25px; font-weight: 700; margin: 0 0 16px; }
.contact-intro p { font-size: 15px; line-height: 1.9; }
/* Screenshot reference: one white pill, with only the current segment in blue. */
.contact-progress { margin: 0 auto 30px; }
.contact-progress ol { display: flex; margin: 0; padding: 0; list-style: none; background: #fff; border-radius: 999px; }
.contact-progress li { position: relative; display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; min-height: 46px; padding: 2px 12px 2px 2px; border-radius: 999px; color: #89949d; transition: background-color .3s ease, color .3s ease; }
.contact-progress li.is-current { background: var(--contact-blue); color: #fff; }
.step-circle { position: relative; display: flex; flex: 0 0 42px; flex-direction: column; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid #c4cdd4; background: #fff; border-radius: 50%; color: #89949d; line-height: 1; font-weight: 400; transition: color .3s ease, border-color .3s ease; }
.step-circle-label { display: block; margin-bottom: 2px; font-size: 7px; line-height: 1; }
.step-number { font-size: 18px; }
.is-current .step-circle { color: var(--contact-blue); border: 2px solid var(--contact-blue); }
.step-check { display: none; font-size: 23px; }
.contact-shell[data-step="4"] .step-circle { color: var(--contact-blue); border-color: var(--contact-blue); }
.contact-shell[data-step="4"] .step-check { display: inline; }
.contact-shell[data-step="4"] .step-number, .contact-shell[data-step="4"] .step-circle-label { display: none; }
.step-caption { flex: 1; min-width: 0; text-align: center; line-height: 1.5; }
.step-caption > span { display: none; }
.step-caption strong { display: block; font-size: 13px; font-weight: 400; overflow-wrap: anywhere; }
.is-current .step-caption strong { font-weight: 700; }
.contact-position { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.contact-card { background: #fff; border-radius: 10px; padding: 40px 48px; }
.contact-panel { min-width: 0; }
.contact-panel[data-panel="1"] { max-width: 440px; margin: 4px auto; }
.contact-panel[data-panel="1"] .contact-panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; }
.contact-panel[data-panel="1"] .contact-button:not(:disabled) { color: var(--contact-blue); background: #fff; }
.contact-panel[data-panel="1"] .contact-button:not(:disabled):hover { background: var(--contact-pale); }
.contact-panel-title { font-size: 20px; font-weight: 700; margin: 0 0 28px; text-align: center; }
.contact-field { margin-bottom: 28px; }
.contact-field > label { display: flex; align-items: baseline; gap: 10px; font-size: 15px; font-weight: 700; margin-bottom: 9px; }
.contact-required { display: inline-block; flex-shrink: 0; color: #fff; background: #bd3823; border-radius: 3px; padding: 0 6px; font-size: 11px; line-height: 1.7; font-weight: 700; vertical-align: middle; }
.contact-select { position: relative; min-width: 0; }
.contact-select::after { content: ''; position: absolute; right: 19px; top: 46%; width: 8px; height: 8px; border-right: 1.5px solid var(--contact-blue); border-bottom: 1.5px solid var(--contact-blue); transform: rotate(45deg); pointer-events: none; }
.contact-shell select, .contact-shell input[type=text], .contact-shell input[type=email], .contact-shell textarea { display: block; width: 100%; max-width: 100%; min-width: 0; border: 1px solid #bbc4cb; border-radius: 4px; background: #fff; color: #333; font: inherit; font-size: 16px; padding: 12px 14px; line-height: 1.6; }
.contact-shell select { appearance: none; padding-right: 42px; text-overflow: ellipsis; }
.contact-shell textarea { resize: vertical; min-height: 160px; }
.contact-shell input::placeholder { color: #8a8a8a; }
.contact-shell a { color: var(--contact-blue); text-decoration: underline; text-underline-offset: 3px; }
.contact-shell :is(button, a, input, select, textarea):focus-visible { outline: 3px solid #005bac; outline-offset: 4px; }
.contact-shell [tabindex="-1"]:focus { outline: none; }
.contact-shell [aria-invalid=true] { border-color: #bd3823 !important; }
.contact-error { color: #ad2919; font-size: 14px; margin-top: 8px; line-height: 1.7; overflow-wrap: anywhere; }
#contact-message { border: 1px solid #d8a69f; background: #fff5f3; padding: 14px 18px; margin: 0 0 24px; }
.contact-help { color: #666; font-size: 13px; margin-top: 8px; line-height: 1.7; }
.contact-count { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.contact-guidance { background: #f3f8fc; padding: 20px 24px; border-left: 3px solid var(--contact-blue); }
.contact-guidance h4 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.contact-guidance p { font-size: 14px; margin: 0; }
.contact-selection { background: #edf6fc; border-left: 4px solid var(--contact-blue); border-radius: 4px; padding: 20px 24px; margin-bottom: 28px; }
.contact-selection-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; margin-bottom: 14px; }
.contact-selection h4 { color: var(--contact-blue); font-size: 16px; font-weight: 700; margin: 0; }
.contact-shell .contact-change { color: var(--contact-blue); background: #fff; border: 1px solid var(--contact-blue); border-radius: 4px; font: inherit; font-size: 12px; padding: 4px 10px; cursor: pointer; }
.contact-selection dl, .contact-review { margin: 0; }
.contact-selection dl > div + div { margin-top: 10px; }
.contact-selection dt { color: #555; font-size: 12px; font-weight: 400; }
.contact-selection dd { margin: 2px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.contact-selected-value { color: var(--contact-blue); font-weight: 700; }
.contact-note { font-size: 14px; margin-bottom: 24px; }
.contact-consent { border-top: 1px solid #e1e6ea; padding-top: 24px; font-size: 14px; }
.contact-consent > label { align-items: flex-start; font-size: 14px; margin: 18px 0 0; cursor: pointer; }
.contact-shell input[type=checkbox] { appearance: auto; flex: 0 0 19px; width: 19px; height: 19px; margin: 3px 0 0; accent-color: var(--contact-blue); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 32px; }
.contact-shell .contact-button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 50px; max-width: 100%; flex: 1 1 220px; padding: 12px 20px; border: 1px solid var(--contact-blue); border-radius: 28px; background: var(--contact-blue); color: #fff; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; text-align: center; cursor: pointer; transition: background-color .2s; }
.contact-actions > .contact-button:only-child { flex: 0 1 300px; }
.contact-shell .contact-button:hover { background: #004886; }
.contact-shell .contact-button.is-secondary { color: var(--contact-blue); background: #fff; }
.contact-shell .contact-button.is-secondary:hover { background: #edf6fc; }
.contact-shell .contact-button:disabled { background: #eef1f3; border-color: #d4dbe0; color: #7b858e; cursor: not-allowed; }
.contact-review > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid #e1e6ea; }
.contact-review > div:first-child { border-top: 1px solid #e1e6ea; }
.contact-review dt { font-size: 14px; font-weight: 700; }
.contact-review dd { font-size: 15px; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.contact-verification { margin-top: 28px; padding: 24px 16px; border: 1px solid #dbe6ee; border-radius: 6px; background: #f7fafc; text-align: center; }
.contact-verification h4 { font-size: 15px; font-weight: 700; margin: 0; }
#contact-turnstile { display: flex; justify-content: center; min-width: 0; min-height: 65px; max-width: 100%; margin-top: 16px; }
.contact-verification .contact-help { margin-top: 10px; }
.contact-verification .contact-change { margin-top: 12px; }
.contact-submit-note { text-align: center; margin-top: 16px; }
.contact-complete { text-align: center; padding: 12px 0; }
.contact-complete-icon { display: flex; width: 64px; height: 64px; margin: 0 auto 20px; background: #edf6fc; border-radius: 50%; align-items: center; justify-content: center; color: var(--contact-blue); font-size: 32px; }
.contact-complete h3 { font-size: 22px; font-weight: 700; line-height: 1.6; margin: 0 0 24px; }
.contact-complete p { font-size: 14px; margin-bottom: 20px; }
.contact-complete .contact-button { margin-top: 12px; }
.contact-busy { color: var(--contact-blue); text-align: center; font-size: 14px; margin-top: 24px; }
.contact-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 640px) {
  .cat_contact #contents { padding: 0 16px; }
  .cat_contact #contents .contact-intro { margin-top: 28px; }
  .cat_contact #contents #content-main .contact-intro h2 { font-size: 21px; }
  .contact-intro p { font-size: 13px; }
  .contact-shell { margin: 28px auto 48px; padding: 24px 12px 12px; border-radius: 10px; }
  .contact-progress { margin-bottom: 20px; }
  .contact-progress li { justify-content: flex-start; min-height: 38px; padding: 2px; gap: 0; }
  .step-caption { display: none; }
  .step-circle { flex-basis: 34px; width: 34px; height: 34px; }
  .step-number { font-size: 15px; }
  .step-circle-label { font-size: 6px; }
  .contact-position { position: static; clip-path: none; width: auto; height: auto; overflow: visible; margin: 16px 0 0; text-align: center; color: var(--contact-blue); font-size: 12px; font-weight: 700; }
  .contact-card { padding: 24px 16px; border-radius: 7px; }
  .contact-panel-title { font-size: 18px; margin-bottom: 24px; }
  .contact-field > label { font-size: 14px; gap: 8px; }
  .contact-field { margin-bottom: 24px; }
  .contact-shell select { padding: 12px 29px 12px 10px; font-size: 14px; }
  .contact-select::after { right: 13px; }
  .contact-selection { padding: 16px; }
  .contact-guidance { padding: 16px; }
  .contact-actions { gap: 12px; margin-top: 28px; }
  .contact-actions .contact-button { flex-basis: 100%; font-size: 13px; padding: 12px; gap: 12px; }
  .contact-actions .is-secondary { order: 1; }
  .contact-review > div { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px 0; }
  .contact-review dt { color: #666; font-size: 12px; }
  .contact-consent > label { font-size: 13px; }
  .contact-complete h3 { font-size: 19px; }
  .contact-complete br { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-shell *, .contact-shell *::before, .contact-shell *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
