/* DADS v2.18.2: 16px+ text, 8px spacing, 768px breakpoint, native semantics. */
@font-face {
  font-family: "Noto Sans JP";
  src: url("/static/noto-sans-jp.woff") format("woff");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --blue: #0017c1;
  --blue-hover: #000071;
  --blue-light: #e8f1fe;
  --text: #1a1a1a;
  --muted: #4d4d4d;
  --border: #767676;
  --line: #d9d9d9;
  --error: #ce0000;
  --focus: #ffd43d;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: .02em;
  color: var(--text);
  background: #f7f8fa;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--blue); text-underline-offset: .2em; }
button, input, select { font: inherit; letter-spacing: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 4px solid #000; outline-offset: 2px; box-shadow: 0 0 0 2px var(--focus); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, legend, .field-label { overflow-wrap: anywhere; }
h1 { font-size: 32px; line-height: 1.5; font-weight: 700; letter-spacing: .04em; }
h2 { font-size: 24px; line-height: 1.5; }
h3 { font-size: 18px; line-height: 1.5; }
svg { flex-shrink: 0; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 2; background: white; padding: 12px 24px; }
.skip-link:focus { top: 12px; }
.site-header { background: white; border-top: 4px solid var(--blue); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1088px; padding: 20px 32px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; }
.brand-icon { color: var(--blue); }
.location { color: var(--muted); font-size: 16px; }
.main { width: min(100% - 64px, 864px); margin: 56px auto 64px; }
.survey-heading { margin-bottom: 40px; }
.language-switcher { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-bottom: 32px; scroll-margin-top: 24px; }
.language-caption { color: var(--muted); }
.language-options { display: flex; gap: 8px; }
.language-option { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 8px 16px; border: 1px solid var(--blue); border-radius: 4px; font-weight: 700; text-decoration: none; background: white; }
.language-option:hover { background: var(--blue-light); text-decoration: underline; }
.language-option[aria-current] { background: var(--blue); color: white; }
.eyebrow { color: var(--blue); font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.steps { margin-bottom: 32px; scroll-margin-top: 24px; }
.steps ol { list-style: none; padding: 0; margin: 0; display: flex; }
.steps li { display: flex; flex: 1; gap: 8px; align-items: center; position: relative; padding-bottom: 20px; color: var(--muted); font-size: 16px; }
.steps li::after { content: ""; position: absolute; bottom: 0; left: 0; right: 8px; height: 4px; background: #d9d9d9; }
.steps li:last-child::after { right: 0; }
.step-number { flex: 0 0 32px; height: 32px; border: 1px solid var(--border); border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: white; }
.steps [aria-current] { color: var(--text); font-weight: 700; }
.steps [aria-current] .step-number { color: white; background: #1a1a1a; border-color: #1a1a1a; outline: 1px solid #1a1a1a; outline-offset: 3px; }
.steps [aria-current]::after { background: var(--blue); }
.steps .is-complete .step-number { background: #e6e6e6; color: var(--text); border-color: #e6e6e6; }
.steps .is-complete::after { background: #767676; }
.survey-page, .completion { padding: 40px 48px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.section-heading { border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 32px; }
.page-count { color: var(--muted); margin-bottom: 8px; font-size: 16px; }
.intro { margin-top: 16px; }
.required-note { margin-bottom: 32px; color: var(--muted); }
.required { color: var(--error); font-size: 16px; font-weight: 400; display: inline-block; white-space: nowrap; }
.optional { color: var(--muted); font-weight: 400; font-size: 16px; display: inline-block; white-space: nowrap; }
.research-info { margin-bottom: 40px; border-left: 4px solid var(--blue); padding: 4px 0 4px 24px; }
.research-info h3 { margin-bottom: 12px; }
.preserve-lines { white-space: pre-line; overflow-wrap: anywhere; }
.contact { margin-top: 24px; }
.contact h3 { color: var(--muted); font-size: 16px; margin-bottom: 8px; }
.field { margin-bottom: 40px; min-width: 0; }
.field:last-child { margin-bottom: 0; }
fieldset { min-width: 0; margin: 0; padding: 0; border: none; }
legend { float: left; width: 100%; margin-bottom: 16px; padding: 0; font-weight: 700; font-size: 18px; }
legend + * { clear: both; }
label.field-label { display: block; margin-bottom: 12px; font-size: 18px; font-weight: 700; }
.support { color: var(--muted); margin: 8px 0 16px; overflow-wrap: anywhere; }
.radio-list { display: flex; flex-direction: column; gap: 8px; }
.radio-option { display: flex; gap: 12px; align-items: flex-start; min-height: 56px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; background: white; }
.radio-option:hover { background: #f5f7ff; border-color: var(--blue); }
.radio-option:has(input:checked) { background: var(--blue-light); border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.radio-option input { appearance: none; -webkit-appearance: none; flex: 0 0 24px; width: 24px; height: 24px; margin: 2px 0 0; border: 2px solid var(--border); border-radius: 50%; background: white; cursor: pointer; }
.radio-option input:checked { border: 7px solid var(--blue); }
.radio-option span { overflow-wrap: anywhere; }
input[type="text"], input[type="email"], select { color: var(--text); background: white; width: 100%; min-width: 0; min-height: 56px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 4px; }
input[type="text"]:hover, input[type="email"]:hover, select:hover { border-color: #000; }
select { padding-right: 8px; }
.number-input { display: flex; align-items: center; gap: 12px; }
.number-input input { max-width: 192px; }
.number-input span { color: var(--muted); }
.other-field { margin-top: 16px; padding-left: 16px; border-left: 2px solid var(--line); }
.other-field > label { display: block; margin-bottom: 8px; }
.field-error { color: var(--error); font-weight: 700; margin-top: 8px; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.has-error > fieldset > legend, .has-error > label { color: var(--error); }
.error-summary { background: white; border: 2px solid var(--error); border-radius: 4px; padding: 24px; margin-bottom: 24px; scroll-margin-top: 24px; }
.error-summary h2 { color: var(--error); font-size: 20px; margin-bottom: 8px; }
.error-summary ul { margin: 16px 0 0; padding-left: 24px; }
.error-summary li { margin: 8px 0; }
.error-summary a { display: inline-block; padding: 4px 0; overflow-wrap: anywhere; }
.error-summary ul:empty { display: none; }
.file-area { position: relative; padding: 24px; border: 1px solid var(--border); background: #f8f8fb; border-radius: 4px; }
input.file-input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.file-button { cursor: pointer; }
input.file-input:focus-visible + .file-button { outline: 4px solid #000; outline-offset: 2px; box-shadow: 0 0 0 2px var(--focus); }
.upload-icon { color: var(--muted); display: block; margin-bottom: 16px; }
input[type="file"] { width: 100%; min-height: 56px; color: var(--text); }
input[type="file"]::file-selector-button { padding: 12px 20px; min-height: 48px; color: var(--blue); border: 1px solid var(--blue); background: white; border-radius: 8px; font: inherit; cursor: pointer; margin-right: 16px; }
input[type="file"]::file-selector-button:hover { background: var(--blue-light); }
.file-status { margin-top: 12px; color: var(--muted); overflow-wrap: anywhere; }
#receipt-preview { max-width: 100%; max-height: 360px; width: auto; display: block; margin: 24px auto 0; border: 1px solid var(--line); object-fit: contain; }
.text-button { color: var(--blue); background: transparent; border: 0; text-decoration: underline; text-underline-offset: .2em; min-height: 44px; padding: 8px 4px; margin-top: 8px; }
.reason-prompt { font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.reason-count { color: var(--muted); margin-bottom: 32px; padding: 12px 16px; background: #f2f3f5; border-radius: 4px; }
.reason-field { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.reason-number { display: block; color: var(--muted); font-size: 16px; font-weight: 400; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.closing { margin-top: 40px; color: var(--muted); }
.closing p + p { margin-top: 12px; }
.actions { display: flex; justify-content: flex-end; gap: 16px; padding-top: 32px; border-top: 1px solid var(--line); margin-top: 40px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 56px; min-width: 160px; padding: 12px 24px; border-radius: 8px; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.primary { background: var(--blue); color: white; border-color: var(--blue); }
.primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); text-decoration: underline; text-underline-offset: .2em; }
.secondary { background: white; color: var(--blue); border-color: var(--blue); }
.secondary:hover { background: var(--blue-light); text-decoration: underline; text-underline-offset: .2em; }
.button[aria-disabled="true"] { cursor: wait; }
.completion { text-align: center; padding: 56px 48px; }
.success-icon { width: 64px; height: 64px; display: grid; place-items: center; border: 2px solid #186f31; color: #186f31; background: #f1f8f4; border-radius: 50%; margin: 0 auto 24px; }
.completion h2 { margin-bottom: 24px; }
.completion p + p { margin-top: 16px; }
.completion .completion-note { color: var(--muted); margin-top: 32px; }
.completion .button { margin-top: 32px; }
.site-footer { border-top: 1px solid var(--line); padding: 24px; text-align: center; color: var(--muted); font-size: 14px; background: white; }
.notice { border: 2px solid var(--error); background: white; padding: 24px; margin-bottom: 24px; }
@media (max-width: 767px) {
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  .header-inner { padding: 12px 16px; gap: 8px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand-icon { width: 32px; height: 32px; }
  .location { font-size: 14px; max-width: 144px; text-align: right; }
  .main { width: min(100% - 32px, 640px); margin: 32px auto 40px; }
  .survey-heading { margin-bottom: 32px; }
  .language-switcher { gap: 12px; margin-bottom: 24px; }
  .language-option { padding: 8px 12px; }
  .eyebrow { margin-bottom: 8px; }
  .steps { margin-bottom: 24px; }
  .steps li { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 4px 0 16px; }
  .step-number { flex-basis: 32px; width: 32px; }
  .step-name { font-size: 14px; line-height: 1.5; text-align: center; width: 100%; max-width: 4.2em; min-height: 42px; }
  .steps li:nth-child(n+3) .step-name { max-width: 3.2em; }
  .steps li::after { right: 4px; }
  .survey-page, .completion { padding: 24px 20px; border-radius: 8px; }
  .section-heading { padding-bottom: 24px; margin-bottom: 24px; }
  .research-info { padding-left: 16px; margin-bottom: 32px; }
  .field { margin-bottom: 32px; }
  legend, label.field-label, .reason-prompt { font-size: 16px; }
  .radio-option { padding: 12px; }
  .actions { gap: 12px; margin-top: 32px; padding-top: 24px; }
  .actions .button { flex: 1; min-width: 0; padding: 12px 16px; gap: 8px; }
  .file-area { padding: 16px; }
  input[type="file"]::file-selector-button { display: block; margin-bottom: 12px; }
  .completion { padding-top: 32px; padding-bottom: 32px; }
  .completion .button { min-width: 0; width: 100%; padding: 12px; }
  .error-summary { padding: 20px; }
}
html[lang="en"] .step-name { overflow-wrap: normal; word-break: normal; }
@media (max-width: 767px) {
  html[lang="en"] .brand { font-size: 16px; }
  html[lang="en"] .location { max-width: 120px; }
  html[lang="en"] .step-name { max-width: 100%; padding: 0 4px; font-size: 14px; }
}
/* Compact respondent forms. Admin pages retain their own layout and density. */
.survey-app { line-height: 1.6; }
.survey-app .header-inner { max-width: 928px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 16px; padding: 8px 32px; }
.survey-app .brand { font-size: 18px; }
.survey-app .location { grid-column: 1 / -1; font-size: 16px; max-width: none; text-align: left; line-height: 1.5; }
.survey-app .language-switcher { margin: 0; }
.survey-app .language-options { gap: 8px; }
.survey-app .language-option { padding: 8px 12px; }
.survey-app .main { margin: 24px auto 40px; }
.survey-app h1 { font-size: 28px; letter-spacing: .02em; }
.survey-app h2 { font-size: 22px; }
.survey-app .survey-heading { margin-bottom: 24px; }
.survey-app .steps { margin-bottom: 24px; scroll-margin-top: 16px; }
.survey-app .steps li { padding-bottom: 12px; }
.survey-app .survey-page, .survey-app .completion { padding: 24px 32px; }
.survey-app .section-heading { padding-bottom: 16px; margin-bottom: 24px; }
.survey-app .intro { margin-top: 8px; }
.survey-app .research-info { margin-bottom: 24px; padding: 0 0 0 16px; }
.survey-app .research-info h3 { font-size: 16px; margin-bottom: 4px; }
.survey-app .contact { margin-top: 16px; }
.survey-app .field { margin-bottom: 24px; scroll-margin-top: 16px; }
.survey-app .field:last-child { margin-bottom: 0; }
.survey-app legend, .survey-app label.field-label { font-size: 16px; margin-bottom: 8px; }
.survey-app .support { margin: 0 0 8px; }
.survey-app .radio-option { gap: 8px; min-height: 48px; padding: 8px 12px; line-height: 1.5; }
.survey-app .radio-option input { margin-top: 2px; }
.survey-app input[type="text"], .survey-app input[type="email"], .survey-app select { min-height: 48px; padding: 8px 12px; }
.survey-app .other-field { margin-top: 8px; }
.survey-app .number-input { gap: 8px; }
.survey-app #page-2 .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.survey-app #page-2 .field { grid-column: 1 / -1; margin-bottom: 0; }
.survey-app #page-2 #field-height { grid-column: 1; }
.survey-app #page-2 #field-weight { grid-column: 2; }
.survey-app .file-area { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 16px; padding: 16px; }
.survey-app .file-button { min-width: 0; }
.survey-app .file-status { margin: 0; }
.survey-app #receipt-preview { grid-column: 1 / -1; max-height: 240px; margin: 8px auto 0; }
.survey-app #remove-receipt { grid-column: 1 / -1; justify-self: start; margin: 0; }
.survey-app .reason-prompt { font-size: 16px; margin-bottom: 8px; }
.survey-app .reason-progress { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 16px; margin-bottom: 16px; padding: 0 12px; background: #f2f3f5; border-radius: 4px; }
.survey-app .reason-count { margin: 0; padding: 8px 0; background: none; }
.survey-app #next-unanswered { margin: 0; }
.survey-app .reason-field { padding-bottom: 16px; margin-bottom: 16px; }
.survey-app .reason-number { display: inline-block; min-width: 24px; margin: 0 8px 0 0; }
.survey-app .closing { margin-top: 24px; }
.survey-app .closing p + p { margin-top: 8px; }
.survey-app .actions { margin-top: 24px; padding-top: 16px; }
.survey-app .button { min-height: 48px; padding: 8px 24px; gap: 8px; }
.survey-app .site-footer { padding: 16px; }
.survey-app .completion h2 { margin-bottom: 16px; }
.survey-app .completion .completion-note, .survey-app .completion .button { margin-top: 24px; }
.survey-app .profile-memory { margin-bottom: 24px; padding: 8px 12px; border-left: 4px solid var(--line); color: var(--muted); }
.survey-app .profile-memory .text-button { margin: 0; text-align: left; }
/* Ordinal scales use one axis only: top-to-bottom, or one four-choice row. */
.survey-app .scale-field .radio-list { display: flex; flex-direction: column; gap: 0; }
.survey-app .scale-field .radio-option { min-height: 44px; padding: 8px 12px; border-color: var(--border); }
.survey-app .scale-field .radio-option:hover, .survey-app .scale-field .radio-option:has(input:checked) { border-color: var(--blue); }
@media (min-width: 768px) {
  .survey-app #field-gender .radio-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .survey-app .scale-field .radio-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
}
@media (max-width: 767px) {
  .survey-app .header-inner { padding: 8px 16px; gap: 0 8px; }
  .survey-app .brand { font-size: 16px; }
  .survey-app .language-options { gap: 4px; }
  .survey-app .language-option { padding: 8px; }
  .survey-app .main { margin-top: 16px; }
  .survey-app h1 { font-size: 24px; }
  .survey-app h2 { font-size: 20px; }
  .survey-app .survey-heading, .survey-app .steps { margin-bottom: 16px; }
  .survey-app .steps li { gap: 8px; padding: 0 0 8px; }
  .survey-app .step-number { flex-basis: 24px; width: 24px; height: 24px; }
  .survey-app .step-name { max-width: 100%; padding: 0 2px; }
  .survey-app .steps li:nth-child(n+3) .step-name { max-width: 100%; }
  .survey-app .survey-page, .survey-app .completion { padding: 16px; }
  .survey-app .section-heading { padding-bottom: 16px; margin-bottom: 16px; }
  .survey-app .file-area { grid-template-columns: minmax(0, 1fr); }
  .survey-app .file-button { justify-self: start; }
  .survey-app .actions { gap: 12px; }
  .survey-app .actions .button { padding: 8px 16px; }
}
@media (max-width: 359px) {
  .survey-app #page-2 .fields { display: block; }
  .survey-app #page-2 .field { margin-bottom: 24px; }
}
@media (forced-colors: active) {
  .radio-option input { appearance: auto; }
  .steps [aria-current] .step-number { border: 2px solid CanvasText; }
  :focus-visible { outline-color: Highlight; }
}
@media print { .actions, .site-header, .site-footer { display: none; } .main { width: 100%; margin: 0; } }
