/* ACCERISE regulatory release: contact panel, two-step form and footer. Loaded last. */
.regulatory-release .sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Phase 1: link to the corporate contact form in the form's place. */
.regulatory-release .contact-link-panel { display: grid; gap: 1.6rem; align-content: center; }
.regulatory-release .contact-link-panel p { margin: 0; color: #173d57; font-size: 1.0625rem; font-weight: 500; line-height: 1.9; }
.regulatory-release .contact-link-panel .contact-link-note { color: #3f6479; font-size: 0.9375rem; line-height: 1.7; }
.regulatory-release .contact-link-button { width: 100%; text-align: center; }

/* Phase 2: fields keep the existing label/input look. */
/* Scrolls by the browser (focus, find in page) stop below the fixed header; contact-form.js measures the header itself. */
.regulatory-release .regulatory-form .form-field,
.regulatory-release .regulatory-form .form-step-title,
.regulatory-release .regulatory-form .form-alert,
.regulatory-release .regulatory-form .form-error-summary { scroll-margin-top: 120px; }
.regulatory-release .regulatory-form .form-field { margin-bottom: 1.6rem; }
.regulatory-release .regulatory-form .form-field > label { display: block; margin-bottom: 0; }
.regulatory-release .regulatory-form .form-field.has-error input,
.regulatory-release .regulatory-form .form-field.has-error textarea { border-bottom-color: #c23a3a; background: rgba(255, 236, 236, 0.5); }
.regulatory-release .regulatory-form .field-error,
.regulatory-release .regulatory-form .form-error-summary {
  margin: 0.55rem 0 0; color: #b42323; font-size: 0.9375rem; font-weight: 600; line-height: 1.6;
}
.regulatory-release .regulatory-form .form-error-summary {
  margin: 0 0 1.6rem; padding: 0.8rem 1rem; border: 1px solid #efb4b4; border-radius: 12px; background: #fff4f4;
}
.regulatory-release .regulatory-form .form-error-summary:focus { outline: 2px solid #b42323; outline-offset: 2px; }
.regulatory-release .form-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.regulatory-release .form-consent { margin-top: 0.4rem; }
.regulatory-release .consent-title { margin: 0 0 0.6rem; color: #173d57; font-size: 1rem; font-weight: 700; line-height: 1.6; }
.regulatory-release .consent-box {
  max-height: 11rem; overflow-y: auto; padding: 0.9rem 1rem;
  border: 1px solid rgba(19, 103, 140, 0.22); border-radius: 12px; background: rgba(255, 255, 255, 0.75);
  color: #34566b; font-size: 0.875rem; line-height: 1.75; overscroll-behavior: contain;
}
.regulatory-release .consent-box:focus-visible { outline: 2px solid #0b7294; outline-offset: 2px; }
.regulatory-release .consent-box p { margin: 0 0 0.7rem; }
.regulatory-release .consent-box ol { margin: 0 0 0.7rem; padding-left: 1.4em; }
.regulatory-release .consent-box li { margin-bottom: 0.55rem; }
.regulatory-release .consent-box li strong { display: block; color: #173d57; }
.regulatory-release .consent-box .consent-desk { margin: 0; }
.regulatory-release .regulatory-form .form-field > label.consent-check {
  display: flex; align-items: flex-start; gap: 0.7rem; margin: 1rem 0 0; cursor: pointer;
}
.regulatory-release .regulatory-form .consent-check input {
  flex: none; width: 1.3rem; height: 1.3rem; margin: 0.2rem 0 0; padding: 0;
  border: 0; background: none; accent-color: #0b7294; cursor: pointer;
}
.regulatory-release .regulatory-form .consent-check input:focus-visible { outline: 2px solid #0b7294; outline-offset: 3px; }
.regulatory-release .regulatory-form .consent-check > span {
  display: inline; margin: 0; color: #173d57; font-size: 1rem; font-weight: 700; line-height: 1.6;
}
.regulatory-release .regulatory-form .consent-check b {
  margin-left: 0.5rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: #e1f7f4; color: #0c7895;
  font-size: 0.875rem; white-space: nowrap;
}
.regulatory-release .consent-policy { margin: 0.7rem 0 0; font-size: 0.9375rem; line-height: 1.6; }
.regulatory-release .regulatory-form a { color: #0a6886; text-decoration: underline; text-underline-offset: 0.2em; }
.regulatory-release .regulatory-form a:focus-visible { outline: 2px solid #0b7294; outline-offset: 2px; }

.regulatory-release .regulatory-form .form-step-title {
  margin: 0 0 0.8rem; color: #0b2d48; font-size: 1.35rem; font-weight: 700; line-height: 1.5;
}
.regulatory-release .regulatory-form .form-step-title:focus { outline: none; }
.regulatory-release .regulatory-form .form-step-lead,
.regulatory-release .regulatory-form .form-step-done p { margin: 0 0 1.4rem; color: #34566b; font-size: 1rem; line-height: 1.8; }
.regulatory-release .confirm-list { margin: 0 0 1.6rem; }
.regulatory-release .confirm-list > div { padding: 0.85rem 0; border-bottom: 1px solid rgba(19, 103, 140, 0.16); }
.regulatory-release .confirm-list dt { margin-bottom: 0.3rem; color: #3f6479; font-size: 0.9375rem; font-weight: 700; }
.regulatory-release .confirm-list dd {
  margin: 0; color: #0b2d48; font-size: 1.0625rem; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere;
}
.regulatory-release .form-alert {
  margin: 0 0 1.4rem; padding: 1rem 1.1rem; border: 1px solid #efb4b4; border-radius: 12px; background: #fff4f4;
  color: #7a1f1f; font-size: 0.9375rem; line-height: 1.7;
}
.regulatory-release .form-alert p { margin: 0; }
.regulatory-release .form-alert .form-alert-title { margin-bottom: 0.3rem; color: #9b1c1c; font-size: 1rem; font-weight: 700; }
.regulatory-release .form-alert .form-alert-link { margin-top: 0.5rem; }
.regulatory-release .form-actions { display: grid; gap: 0.9rem; }
.regulatory-release .form-back-button {
  width: 100%; min-height: 3.4rem; padding: 0.9rem 1.2rem;
  border: 1px solid rgba(14, 130, 171, 0.35); border-radius: 999px; background: #fff;
  color: #0a5378; font: inherit; font-size: 1rem; font-weight: 700; letter-spacing: 0.04em; cursor: pointer;
}
.regulatory-release .form-back-button:hover { background: #eef9fb; }
.regulatory-release .form-back-button:focus-visible,
.regulatory-release .regulatory-form .submit-button:focus-visible { outline: 3px solid #0b7294; outline-offset: 3px; }
.regulatory-release .regulatory-form button:disabled { opacity: 0.6; cursor: progress; transform: none; }
/* Space is kept even when empty, so status updates never shift the page (and the browser's scroll anchoring). */
.regulatory-release .regulatory-form .form-status { min-height: 1.7em; margin: 1rem 0 0; color: #0a6886; font-size: 0.9375rem; line-height: 1.7; }

/* Footer: centred operator line (2026-10-01). */
.regulatory-release .site-footer {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 1.8rem 1.25rem 2rem; text-align: center;
  background: #083f5c; color: rgba(236, 250, 255, 0.86); font-size: 0.875rem; line-height: 1.6;
}
.regulatory-release .site-footer-operator { margin: 0; color: #fff; font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.02em; }
.regulatory-release .site-footer a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.regulatory-release .site-footer a:hover { border-bottom-color: #fff; }
.regulatory-release .site-footer a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.regulatory-release .site-footer small { font-size: 0.875rem; letter-spacing: 0.04em; }

@media (max-width: 700px) {
  .regulatory-release .regulatory-form .form-field,
  .regulatory-release .regulatory-form .form-step-title,
  .regulatory-release .regulatory-form .form-alert,
  .regulatory-release .regulatory-form .form-error-summary { scroll-margin-top: 100px; }
  .regulatory-release .consent-box { max-height: 13rem; }
}

/* Language switcher in the header (2026-10-01: moved from the fixed bottom-left pill). */
body.regulatory-release .header-actions { display: flex; align-items: center; gap: clamp(0.9rem, 1.6vw, 1.6rem); }
html[lang] body.regulatory-release .site-header .language-switcher {
  position: static; z-index: auto; display: inline-flex; align-items: center; gap: 2px; padding: 4px;
  border: 1px solid #cfe1e9; border-radius: 999px; background: rgba(249,253,255,.9);
  box-shadow: none; backdrop-filter: none; font-size: 0.875rem; font-weight: 600; line-height: 1;
}
html[lang] body.regulatory-release .site-header .language-switcher a { padding: 8px 11px; white-space: nowrap; }
body.regulatory-release .language-switcher .lang-short { display: none; }
@media (max-width: 1080px) {
  body.regulatory-release .language-switcher .lang-full { display: none; }
  body.regulatory-release .language-switcher .lang-short { display: inline; }
  html[lang] body.regulatory-release .site-header .language-switcher a { padding: 8px 9px; }
}
@media (max-width: 760px) {
  body.regulatory-release .header-actions { gap: 0.5rem; }
  html[lang] body.regulatory-release .site-header .language-switcher { padding: 3px; }
  html[lang] body.regulatory-release .site-header .language-switcher a { padding: 9px 8px; font-size: 0.875rem; }
}
@media (max-width: 380px) {
  body.regulatory-release .brand img { width: 124px; }
  html[lang] body.regulatory-release .site-header .language-switcher a { padding-inline: 6px; }
}

/* Required badges in red (2026-10-01 Horita-san). White on #c62839 = 5.6:1. */
html[lang] body.regulatory-release .regulatory-form label b {
  border-radius: 999px; background: #c62839; color: #fff; font-weight: 700;
}

/* Smooth seams between the light sections (2026-10-01 Horita-san).
   Each section fades into one shared colour at its top and bottom, so neighbouring gradients,
   the hero picture and the diagonal line patterns no longer stop at a hard edge.
   The fade layer sits above the section background and below its content (isolation + z-index:-1). */
body.regulatory-release { --seam: #f3f9fc; --seam-0: rgba(243, 249, 252, 0); --seam-size: clamp(90px, 11vw, 170px); }
body.regulatory-release #difference,
body.regulatory-release #services,
body.regulatory-release #cases,
body.regulatory-release #flow { isolation: isolate; }
body.regulatory-release #top::after,
body.regulatory-release #difference::after,
body.regulatory-release #services::after,
body.regulatory-release #cases::after,
body.regulatory-release #flow::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, var(--seam), var(--seam-0) var(--seam-size)),
    linear-gradient(to top, var(--seam), var(--seam-0) var(--seam-size));
}
/* The hero only meets a light section below; the contact section below the flow is dark on purpose. */
/* The hero picture (.hero-motion, z-index 1) is above the hero background, so the hero fade sits at z-index 1 after it
   (the copy and the scroll cue are z-index 2). The base CSS draws a 1px line here; this replaces it. */
body.regulatory-release #top::after { z-index: 1; inset: 0; height: auto; opacity: 1; background: linear-gradient(to top, var(--seam), var(--seam-0) calc(var(--seam-size) * 1.3)); }
body.regulatory-release #flow::after { background: linear-gradient(to bottom, var(--seam), var(--seam-0) var(--seam-size)); }
/* Decorative layers drawn above the section background: fade them out near the edges too. */
body.regulatory-release #difference::before {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 var(--seam-size), #000 calc(100% - var(--seam-size)), transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 var(--seam-size), #000 calc(100% - var(--seam-size)), transparent);
}
/* The large "05" behind the services runs past the section bottom and was cut there; fade it out before the edge. */
body.regulatory-release #services::before {
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 78%);
          mask-image: linear-gradient(to bottom, #000 40%, transparent 78%);
}

/* The difference card hangs 7rem below its row (margin-bottom: -7rem) and its shadow reaches ~125px further,
   so the section's overflow:hidden cut the shadow in a straight line at the section bottom (2026-10-01 Horita-san).
   Give the bottom padding room for the whole shadow. */
body.regulatory-release #difference { padding-bottom: max(calc(clamp(7rem, 10vw, 11rem) + 6rem), 15.5rem); }
@media (max-width: 1000px) {
  body.regulatory-release #difference { padding-bottom: 9rem; }
}
/* The ring decoration of the services starts above the section and was cut at its top edge.
   Put it (and the other background decorations) under the seam fade layer: same z-index, earlier in paint order. */
body.regulatory-release #services .section-orbit,
body.regulatory-release #services::before,
body.regulatory-release #difference::before { z-index: -1; }

/* No divider line under the header (2026-10-01 Horita-san). After scrolling, the existing soft shadow separates it.
   A transparent border is not enough: the header gradient repeats into the 1px border area and draws a white line. */
body.regulatory-release .site-header,
body.regulatory-release .site-header.is-scrolled { border-bottom: 0; }

/* Hero: the soft white panel behind the copy faded only sideways, so its top and bottom edges showed as
   straight white lines over the picture (2026-10-01 Horita-san "白いのがあるなFV"). Fade it vertically too. */
body.regulatory-release .hero-copy::before {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}
