:root {
  --ink: #132033;
  --muted: #657187;
  --paper: #f4f7fb;
  --white: #fff;
  --line: #dce3ed;
  --blue: #1557e6;
  --blue-dark: #0c399e;
  --cyan: #84d9ee;
  --danger: #a52c27;
  --ok: #14683c;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: #eef2f8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at 92% 3%, rgba(132,217,238,.28), transparent 28rem), linear-gradient(180deg,#f8faff 0,#eef2f8 42rem,#f6f7fa 100%); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.fu-site-head { align-items: center; display: flex; justify-content: space-between; margin: 0 auto; max-width: 1240px; padding: 24px clamp(18px,5vw,58px); }
.fu-site-brand { color: var(--ink); display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.fu-site-brand span { font-size: 1.45rem; font-weight: 900; letter-spacing: -.05em; }
.fu-site-brand small { color: var(--blue); font-size: .58rem; font-weight: 800; letter-spacing: .16em; margin-top: 6px; }
.fu-site-back { border-bottom: 1px solid #9da8b8; color: #445168; font-size: .82rem; font-weight: 700; padding-bottom: 4px; text-decoration: none; }

.fu-form-app { margin: 0 auto; max-width: 1180px; padding: 18px clamp(14px,4vw,42px) 72px; }
.fu-form-hero { align-items: end; display: grid; gap: clamp(30px,6vw,80px); grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); padding: clamp(34px,7vw,92px) clamp(10px,3vw,30px) 46px; }
.fu-eyebrow { color: var(--blue); font-size: .72rem; font-weight: 900; letter-spacing: .19em; margin: 0 0 16px; }
.fu-form-hero h1 { font-size: clamp(2.35rem,6vw,5.6rem); letter-spacing: -.065em; line-height: .99; margin: 0; }
.fu-form-hero h1 span { color: var(--blue); }
.fu-form-hero__copy > p:last-child { color: #3c4960; font-size: clamp(1rem,1.6vw,1.16rem); line-height: 1.9; margin: 26px 0 0; max-width: 46rem; }
.fu-form-hero__guide { background: rgba(255,255,255,.74); border: 1px solid rgba(255,255,255,.9); border-radius: 26px; box-shadow: 0 20px 70px rgba(29,55,95,.11); overflow: hidden; }
.fu-form-hero__guide p { align-items: center; display: grid; gap: 16px; grid-template-columns: 46px 1fr; margin: 0; padding: 18px 20px; }
.fu-form-hero__guide p + p { border-top: 1px solid rgba(23,32,51,.08); }
.fu-form-hero__guide b { align-items: center; background: var(--ink); border-radius: 15px; color: #fff; display: flex; font-size: .72rem; height: 46px; justify-content: center; }
.fu-form-hero__guide span { color: #344258; font-size: .9rem; font-weight: 700; }

.fu-form-security { align-items: start; background: var(--ink); border-radius: 20px; color: rgba(255,255,255,.78); display: grid; gap: 12px 22px; grid-template-columns: auto 1fr; margin: 0 10px 30px; padding: 20px 22px; }
.fu-form-security strong { color: #fff; white-space: nowrap; }
.fu-form-security p { line-height: 1.65; margin: 0; }
.fu-alert { border-radius: 16px; line-height: 1.7; margin: 0 auto 18px; max-width: 980px; padding: 18px 20px; }
.fu-alert--error { background: #fff0ee; color: var(--danger); }
.fu-alert--ok { background: #eaf8ef; color: var(--ok); }
.fu-alert--warn { background: #fff6df; color: #745612; }
.fu-alert ul { margin-bottom: 0; }

.fu-intake-form { margin: 0 auto; max-width: 980px; }
.fu-progress { align-items: center; display: grid; gap: 14px; grid-template-columns: auto 1fr auto; margin: 0 8px 18px; }
.fu-progress span { color: var(--muted); font-size: .8rem; font-weight: 800; white-space: nowrap; }
.fu-progress i { background: #dce3ed; border-radius: 999px; height: 8px; overflow: hidden; }
.fu-progress b { background: linear-gradient(90deg,var(--blue),#2dbbd5); border-radius: inherit; display: block; height: 100%; transition: width .3s ease; width: 25%; }

.fu-step { background: rgba(255,255,255,.95); border: 1px solid rgba(29,55,95,.1); border-radius: 30px; box-shadow: 0 28px 90px rgba(26,51,90,.1); display: none; padding: clamp(24px,5vw,56px); }
.fu-step.is-current { animation: enter .32s ease both; display: block; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fu-step__head { margin-bottom: 30px; }
.fu-step__head p { color: var(--blue); font-size: .72rem; font-weight: 900; letter-spacing: .17em; margin: 0 0 10px; }
.fu-step__head h2 { font-size: clamp(1.55rem,3.5vw,2.7rem); letter-spacing: -.035em; line-height: 1.25; margin: 0; }
.fu-step__head span { color: var(--muted); display: block; line-height: 1.7; margin-top: 12px; }

.fu-choice-grid { display: grid; gap: 14px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.fu-choice-card { position: relative; }
.fu-choice-card input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.fu-choice-card span { background: #f7f9fd; border: 1px solid var(--line); border-radius: 20px; cursor: pointer; display: block; min-height: 142px; padding: 24px; transition: .2s ease; }
.fu-choice-card b { display: block; font-size: 1.03rem; margin-bottom: 12px; }
.fu-choice-card small { color: var(--muted); line-height: 1.6; }
.fu-choice-card input:checked + span { background: #eef4ff; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,87,230,.1); transform: translateY(-2px); }
.fu-choice-card input:focus-visible + span { outline: 3px solid rgba(21,87,230,.35); outline-offset: 2px; }
.fu-choice-card.is-locked span { cursor: not-allowed; opacity: .62; }

.fu-fields { display: grid; gap: 22px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.fu-field { display: block; min-width: 0; }
.fu-field--full { grid-column: 1/-1; }
.fu-field > label, .fu-field:not(div) { font-size: .92rem; font-weight: 750; line-height: 1.5; }
.fu-field em, .fu-field small { border-radius: 999px; font-size: .64rem; font-style: normal; font-weight: 900; margin-left: 7px; padding: 4px 7px; }
.fu-field em { background: #e6eeff; color: var(--blue-dark); }
.fu-field small { background: #edf0f5; color: #667082; }
input[type=text], input[type=email], input[type=url], input[type=tel], input[type=date], select, textarea { background: #fbfcff; border: 1px solid #cdd6e3; border-radius: 14px; color: var(--ink); display: block; font-size: 16px; margin-top: 9px; min-height: 52px; outline: 0; padding: 13px 14px; transition: .2s ease; width: 100%; }
textarea { min-height: 126px; resize: vertical; }
input:focus, select:focus, textarea:focus { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21,87,230,.11); }
[aria-invalid=true] { border-color: var(--danger)!important; box-shadow: 0 0 0 4px rgba(165,44,39,.1)!important; }
.fu-error { color: var(--danger); display: block; font-size: .78rem; font-weight: 800; margin-top: 7px; }

.fu-options { display: grid; gap: 10px; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 10px; }
.fu-options label { align-items: flex-start; background: #f7f9fc; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; display: flex; font-size: .84rem; font-weight: 650; gap: 9px; line-height: 1.45; min-height: 50px; padding: 12px; }
.fu-options input { accent-color: var(--blue); flex: 0 0 auto; height: 19px; margin: 1px 0 0; width: 19px; }
.fu-options label:has(input:checked) { background: #edf3ff; border-color: #8eadee; }
.fu-options--cards { grid-template-columns: repeat(2,minmax(0,1fr)); }

.fu-branch { display: none; }
.fu-branch.is-active { display: grid; gap: 24px; }
.fu-conditional { background: #f3f7ff; border: 1px solid #d8e4fb; border-radius: 20px; padding: 22px; }
.fu-conditional[hidden], [data-protected-field][hidden] { display: none!important; }
.fu-consent { align-items: flex-start; background: #f7f9fc; border: 1px solid var(--line); border-radius: 15px; cursor: pointer; display: flex; gap: 12px; grid-column: 1/-1; line-height: 1.7; padding: 17px; }
.fu-consent input { accent-color: var(--blue); flex: 0 0 auto; height: 21px; margin-top: 2px; width: 21px; }
.fu-consent a { color: var(--blue-dark); font-weight: 800; }

.fu-actions { align-items: center; border-top: 1px solid #e3e8ef; display: flex; gap: 12px; justify-content: space-between; margin-top: 34px; padding-top: 24px; }
.fu-button { align-items: center; background: var(--ink); border: 0; border-radius: 999px; color: #fff; cursor: pointer; display: inline-flex; font-weight: 850; justify-content: center; min-height: 54px; padding: 0 25px; transition: .2s ease; }
.fu-button:hover { box-shadow: 0 13px 28px rgba(19,32,51,.18); transform: translateY(-2px); }
.fu-button--ghost { background: transparent; border: 1px solid #cbd5e2; color: #445168; }
.fu-button--ghost:hover { background: #f4f6f9; box-shadow: none; }
.fu-button--submit { background: var(--blue); }
.fu-button[disabled] { cursor: wait; opacity: .6; }

.fu-review { background: var(--ink); border-radius: 20px; color: #fff; display: grid; gap: 0; grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: 24px; overflow: hidden; }
.fu-review p { border-bottom: 1px solid rgba(255,255,255,.1); margin: 0; padding: 15px 18px; }
.fu-review small { color: rgba(255,255,255,.58); display: block; font-size: .68rem; font-weight: 800; margin-bottom: 5px; }
.fu-review b { font-size: .9rem; }
.fu-privacy-note { background: #edf5ff; border: 1px solid #cfe0f7; border-radius: 16px; color: #2c3d57; grid-column: 1/-1; line-height: 1.75; padding: 18px; }
.fu-privacy-note strong { color: var(--ink); display: block; margin-bottom: 5px; }
.fu-privacy-note p { font-size: .82rem; margin: 0; }
.fu-privacy-note a { color: var(--blue-dark); font-weight: 800; }

.fu-form-note { color: var(--muted); font-size: .78rem; line-height: 1.8; margin: 22px auto 0; max-width: 920px; }
.fu-complete { background: rgba(255,255,255,.95); border: 1px solid rgba(29,55,95,.1); border-radius: 30px; box-shadow: 0 28px 90px rgba(26,51,90,.1); margin: clamp(50px,10vw,120px) auto; max-width: 760px; padding: clamp(34px,7vw,76px); text-align: center; }
.fu-complete h1 { font-size: clamp(2.2rem,7vw,5rem); letter-spacing: -.06em; margin: 0 0 28px; }
.fu-complete > p { color: var(--muted); line-height: 1.8; }
.fu-complete > strong { background: var(--ink); border-radius: 14px; color: #fff; display: inline-block; font-size: clamp(1rem,3vw,1.4rem); letter-spacing: .06em; margin: 4px 0 20px; padding: 15px 20px; }
.fu-complete__actions { display: flex; gap: 12px; justify-content: center; margin-top: 30px; }
.fu-site-foot { align-items: end; border-top: 1px solid rgba(19,32,51,.12); display: grid; gap: 18px; grid-template-columns: 1fr auto; margin: 0 auto; max-width: 1180px; padding: 34px clamp(18px,5vw,58px) 44px; }
.fu-site-foot p { font-size: 1rem; font-weight: 900; margin: 0; }
.fu-site-foot nav { display: flex; gap: 20px; }
.fu-site-foot a, .fu-site-foot small { color: var(--muted); font-size: .76rem; }
.fu-site-foot small { grid-column: 1/-1; }
.fu-honeypot { height: 1px; left: -9999px; overflow: hidden; position: absolute; width: 1px; }

.fu-admin { margin: 0 auto; max-width: 1240px; padding: 30px clamp(18px,5vw,58px) 80px; }
.fu-admin__hero { align-items: end; display: flex; gap: 30px; justify-content: space-between; margin-bottom: 32px; }
.fu-admin__hero h1 { font-size: clamp(2rem,5vw,4rem); letter-spacing: -.05em; margin: 0; }
.fu-admin__hero p:last-child { color: var(--muted); line-height: 1.7; }
.fu-admin-grid { display: grid; gap: 22px; grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: 22px; }
.fu-admin-card { background: rgba(255,255,255,.96); border: 1px solid rgba(29,55,95,.1); border-radius: 24px; box-shadow: 0 18px 60px rgba(26,51,90,.08); margin-bottom: 22px; padding: 26px; }
.fu-admin-card h2 { letter-spacing: -.025em; margin: 0 0 20px; }
.fu-admin-card__head { align-items: start; display: flex; gap: 24px; justify-content: space-between; margin-bottom: 20px; }
.fu-admin-card__head p { color: var(--muted); margin: 0; }
.fu-admin-link { background: var(--ink); border-radius: 13px; color: #fff; overflow-wrap: anywhere; padding: 16px; }
.fu-admin-form { display: grid; gap: 15px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.fu-admin-form label { font-size: .82rem; font-weight: 750; }
.fu-admin-form label:nth-of-type(2), .fu-admin-form label:nth-of-type(3) { grid-column: 1/-1; }
.fu-admin-form small { color: var(--muted); display: block; font-weight: 500; margin-top: 5px; }
.fu-admin-form .fu-button { justify-self: start; }
.fu-table-wrap { overflow-x: auto; }
.fu-table-wrap table { border-collapse: collapse; min-width: 760px; width: 100%; }
.fu-table-wrap th { color: var(--muted); font-size: .72rem; letter-spacing: .04em; text-align: left; }
.fu-table-wrap th, .fu-table-wrap td { border-bottom: 1px solid var(--line); padding: 13px 10px; vertical-align: top; }
.fu-table-wrap td { font-size: .8rem; line-height: 1.55; }
.fu-table-wrap td a { color: var(--blue-dark); font-weight: 850; }
.fu-status { background: #edf2fa; border-radius: 999px; display: inline-block; padding: 5px 8px; }
.fu-risk { color: var(--danger); display: block; margin-top: 6px; }
.fu-admin-meta { display: grid; gap: 1px; grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: 22px; overflow: hidden; border-radius: 14px; }
.fu-admin-meta p { background: #f4f7fb; margin: 0; padding: 15px; }
.fu-admin-meta small, .fu-admin-meta b { display: block; }
.fu-admin-meta small { color: var(--muted); font-size: .68rem; margin-bottom: 6px; }
.fu-admin-meta b { font-size: .83rem; overflow-wrap: anywhere; }
.fu-admin-payload { display: grid; gap: 0; grid-template-columns: repeat(2,minmax(0,1fr)); }
.fu-admin-payload div { border-bottom: 1px solid var(--line); padding: 15px 8px; }
.fu-admin-payload dt { color: var(--muted); font-size: .7rem; font-weight: 800; margin-bottom: 6px; }
.fu-admin-payload dd { font-size: .84rem; line-height: 1.65; margin: 0; overflow-wrap: anywhere; }
.fu-status-form { align-items: end; display: flex; gap: 12px; margin-top: 26px; }
.fu-status-form label { flex: 1; font-size: .8rem; font-weight: 750; }

@media (max-width: 760px) {
  .fu-site-head { padding: 19px 18px; }
  .fu-site-back { font-size: .72rem; }
  .fu-form-app { padding: 0 12px 48px; }
  .fu-form-hero { grid-template-columns: 1fr; padding: 42px 8px 32px; }
  .fu-form-hero h1 { font-size: clamp(2.45rem,14vw,4.2rem); }
  .fu-form-security { grid-template-columns: 1fr; margin-inline: 0; }
  .fu-step { border-radius: 22px; padding: 24px 18px; }
  .fu-progress { grid-template-columns: 1fr auto; }
  .fu-progress i { grid-column: 1/-1; grid-row: 2; }
  .fu-choice-grid, .fu-fields, .fu-options, .fu-options--cards, .fu-review { grid-template-columns: 1fr; }
  .fu-field--full { grid-column: 1; }
  .fu-choice-card span { min-height: 112px; }
  .fu-actions { background: rgba(255,255,255,.95); border: 1px solid #dfe5ee; border-radius: 17px; bottom: 8px; box-shadow: 0 15px 38px rgba(20,40,75,.16); margin: 30px -4px -8px; padding: 10px; position: sticky; z-index: 5; }
  .fu-button { min-height: 52px; padding-inline: 18px; }
  .fu-site-foot { align-items: start; grid-template-columns: 1fr; }
  .fu-site-foot nav { flex-direction: column; gap: 9px; }
  .fu-site-foot small { grid-column: 1; }
  .fu-complete { border-radius: 22px; margin: 40px 12px; }
  .fu-complete__actions { align-items: stretch; flex-direction: column; }
  .fu-admin { padding-inline: 12px; }
  .fu-admin__hero { align-items: flex-start; flex-direction: column; }
  .fu-admin-grid, .fu-admin-form, .fu-admin-meta, .fu-admin-payload { grid-template-columns: 1fr; }
  .fu-admin-form label:nth-of-type(2), .fu-admin-form label:nth-of-type(3) { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation: none!important; scroll-behavior: auto!important; transition: none!important; } }
