/* Scoped form styles; host pages retain everything outside this component. */
.evf-root{display:block;box-sizing:border-box;width:100%;max-width:740px;margin:0 auto;min-width:0;color:#2a313c;font:16px/1.9 "Noto Sans JP",system-ui,sans-serif;letter-spacing:.04em;overflow-wrap:anywhere}
.evf-root *,.evf-root *::before,.evf-root *::after{box-sizing:border-box}
.evf-root [hidden]{display:none!important}
.evf-root p,.evf-root h1{margin:0}.evf-root a{color:inherit;text-decoration:underline}
.evf-root .evf-form{display:flex;flex-direction:column;gap:0;width:100%;margin:0;padding:24px 20px;border:0;border-radius:8px;background:#f5f5f5}
.evf-root .evf-notice{width:100%;margin:0 0 24px;padding:0;font-size:14px;line-height:1.8;font-weight:400;white-space:pre-wrap;text-align:left}
.evf-root .evf-small{font-size:12px;margin-top:4px}.evf-root .evf-intro{font-size:14px;line-height:1.8;margin-bottom:20px;align-self:center;width:fit-content;max-width:100%;text-align:left}
.evf-root .evf-help{font-size:12px;line-height:1.7;font-weight:400;letter-spacing:0;white-space:pre-wrap;text-align:left;text-indent:0;padding:0;margin:4px 0 0}
.evf-root .evf-row{display:flex;flex-direction:column;gap:8px;min-width:0;width:100%;margin-bottom:14px}
.evf-root .evf-label{display:block;font-size:14px;font-weight:700;margin:0}
.evf-root .evf-required{color:#d9001b;font-size:12px;font-weight:400;white-space:nowrap}
.evf-root .evf-control{flex:1;min-width:0;width:100%}
.evf-root .evf-pair{display:flex;gap:16px;flex:1;min-width:0;width:100%}
.evf-root .evf-input{display:block;min-height:44px;width:100%;min-width:0;padding:8px 12px;font:inherit;color:inherit;background:#fff;border:1px solid #d5d5d5;border-radius:4px;line-height:1.6}
.evf-root textarea.evf-input{resize:vertical;min-height:128px;line-height:1.7}
.evf-root input[type=checkbox]{appearance:none;position:static;opacity:1;display:inline-grid;place-content:center;width:18px;height:18px;flex:none;margin:5px 0 0;padding:0;border:1px solid #d5d5d5;border-radius:4px;background:#fff;color:#2a313c;cursor:pointer}
.evf-root input[type=checkbox]::before{content:"";width:5px;height:9px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg) scale(0)}
.evf-root input[type=checkbox]:checked::before{transform:translateY(-1px) rotate(45deg) scale(1)}
.evf-root .evf-choice{display:flex;align-items:flex-start;gap:8px;cursor:pointer;margin:0;font-weight:400}
.evf-root .evf-consent{font-size:14px;margin-top:6px}
.evf-root .evf-consent .evf-label{text-wrap:balance}
.evf-root .evf-consent .evf-choice{justify-content:flex-start;align-items:center}
.evf-root .evf-consent input[type=checkbox]{margin:0}
/* In stacked layouts, keep each heading close to its own control and separate it from the previous field. */
.evf-root .evf-form[data-kind=downloadMaterials] .evf-row{gap:4px;margin-bottom:20px}
@media(max-width:768px){.evf-root .evf-row{gap:4px;margin-bottom:20px}}
.evf-root .evf-captcha{align-self:center;width:100%;max-width:300px;min-height:65px;margin:20px 0}
.evf-root .evf-button{display:inline-flex;align-items:center;justify-content:center;align-self:center;text-align:center;max-width:100%;min-width:min(260px,100%);width:auto;margin:8px 0 0;padding:15px 48px;border:2px solid var(--evf-button,#3a4044);border-radius:100px;background:var(--evf-button,#3a4044);color:var(--evf-button-text,#fff);font:700 15px/1.4 "Noto Sans JP",system-ui,sans-serif;letter-spacing:1.8px;white-space:normal;text-decoration:none;cursor:pointer;transition:opacity .15s}
.evf-root button:disabled{cursor:not-allowed;opacity:.5}.evf-root .evf-button:hover{opacity:.8}
.evf-root :focus-visible{outline:2px solid #333;outline-offset:3px}
.evf-root .evf-errors{padding:16px;border:1px solid #dc2626;border-radius:6px;background:#fff}
.evf-root .evf-errors ul{margin:8px 0 0;padding-left:20px;list-style:disc}
.evf-root .evf-error-title{font-weight:700}.evf-root .evf-field-error{color:#dc2626;font-size:14px;margin-top:4px}
.evf-root [aria-invalid=true]{border-color:#dc2626}
.evf-root .evf-retry{display:inline-block;position:static;width:auto;margin:8px 0;padding:8px 16px;border:1px solid #333;border-radius:6px;font:inherit;color:#333;background:#fff;cursor:pointer}
.evf-root .evf-thanks{text-align:center}.evf-root .evf-thanks-title{font-size:24px;font-weight:600;margin-bottom:24px;padding-bottom:20px;border-bottom:1px solid #dad8de}
.evf-root .evf-card{display:flex;flex-direction:column;align-items:center;gap:24px;max-width:740px;margin:24px auto 0;padding:24px 16px;border-radius:12px;background:#f5f5f5;text-decoration:none}
.evf-root .evf-card:hover{background:#ececec}.evf-root .evf-card-title{font-size:20px;font-weight:700}
.evf-root .evf-thumbnail{display:block;width:100%;max-width:360px;height:auto;object-fit:contain}
@media(min-width:769px){.evf-root .evf-form{padding:24px clamp(24px,5.5%,41px)}.evf-root .evf-row{flex-direction:row;align-items:flex-start}.evf-root .evf-label,.evf-root .evf-label-area{width:140px;flex-shrink:0;padding-top:8px}.evf-root .evf-label-area>.evf-label{width:auto;padding-top:0}.evf-root .evf-consent .evf-consent-control{padding-top:8px}.evf-root .evf-card{padding:32px 24px}}
/* Download forms live in a narrower column beside the document summary, so labels stay above controls on desktop too. */
@media(min-width:769px){.evf-root .evf-form[data-kind=downloadMaterials] .evf-row{flex-direction:column}.evf-root .evf-form[data-kind=downloadMaterials] .evf-label,.evf-root .evf-form[data-kind=downloadMaterials] .evf-label-area{width:100%;padding-top:0}.evf-root .evf-form[data-kind=downloadMaterials] .evf-consent .evf-consent-control{padding-top:0}}
/* Contact forms keep one aligned label column; this width also keeps the privacy heading on one line. */
@media(min-width:769px){.evf-root .evf-form[data-kind=contact] .evf-label,.evf-root .evf-form[data-kind=contact] .evf-label-area{width:160px}.evf-root .evf-form[data-kind=contact] .evf-consent .evf-label{white-space:nowrap}}
/* Only desktop contact forms use a half-width prefecture; downloads and mobile stay full-width. */
@media(min-width:769px){.evf-root .evf-form[data-kind=contact] select.evf-input[name=prefecture]{width:calc((100% - 16px)/2)}}
.evf-root select.evf-input[name=prefecture]:has(option[value=""]:checked){font-size:14px;color:#7f7f7f}
.evf-root select.evf-input[name=prefecture] option{font-size:16px;color:#2a313c}
@media(max-width:480px){.evf-root .evf-pair{flex-direction:column}.evf-root .evf-button{width:100%;padding-inline:20px}}

/* The frame is a <label> for the visually hidden file input: no transparent input overlay, so no native tooltip. */
.evf-root .evf-dropzone{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%;max-width:100%;min-height:104px;margin:0;padding:14px 14px 12px;--evf-file-border:#d5d5d5;border:1px solid transparent;border-radius:4px;background:#fff;color:#2a313c;font-size:12px;font-weight:400;line-height:1.7;text-align:center;cursor:pointer}
.evf-root .evf-dropzone::before{content:"";position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;background:linear-gradient(to right,var(--evf-file-border) 8px,transparent 8px) top left/14px 1px repeat-x,linear-gradient(to right,var(--evf-file-border) 8px,transparent 8px) bottom left/14px 1px repeat-x,linear-gradient(to bottom,var(--evf-file-border) 8px,transparent 8px) top left/1px 14px repeat-y,linear-gradient(to bottom,var(--evf-file-border) 8px,transparent 8px) top right/1px 14px repeat-y}
.evf-root .evf-dropzone-top{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.evf-root .evf-file-tag{font-size:11px;line-height:1.6;color:#7f7f7f;padding:0 6px;border:1px solid #d5d5d5;border-radius:2px;background:#fff}
.evf-root .evf-dropzone-title{font-size:14px;font-weight:400}
.evf-root .evf-file-button{display:inline-flex;align-items:center;gap:6px;width:auto;margin:8px 0 6px;padding:7px 18px;border:0;border-radius:4px;background:#ededed;color:#2a313c;font-size:13px;font-weight:400;line-height:1.5;transition:background-color .15s}
.evf-root .evf-file-button::before{content:"";width:14px;height:14px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 7 8.5 13.5a2.1 2.1 0 0 0 3 3L18 10a4.2 4.2 0 0 0-6-6L5.5 10.5a6.4 6.4 0 0 0 9 9L20 14'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 7 8.5 13.5a2.1 2.1 0 0 0 3 3L18 10a4.2 4.2 0 0 0-6-6L5.5 10.5a6.4 6.4 0 0 0 9 9L20 14'/%3E%3C/svg%3E") center/contain no-repeat}
.evf-root .evf-dropzone:hover .evf-file-button{background:#e2e2e2}
.evf-root .evf-file-hint{font-size:11px;color:#7f7f7f}
.evf-root .evf-dropzone:hover,.evf-root .evf-dropzone.evf-dragover{--evf-file-border:var(--evf-button,#3a4044)}
.evf-root .evf-dropzone.evf-dragover::after{content:"ここにドロップして添付";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;border-radius:inherit;background:rgba(255,255,255,.94);background:color-mix(in srgb,var(--evf-button,#3a4044) 8%,#fff);color:var(--evf-button,#3a4044);font-size:14px;font-weight:700;pointer-events:none}
.evf-root .evf-dropzone:focus-within{outline:2px solid var(--evf-button,#3a4044);outline-offset:3px}
.evf-root .evf-dropzone:has(.evf-file:disabled){cursor:not-allowed}
.evf-root .evf-file{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;opacity:0}
.evf-root .evf-input::placeholder{color:#7f7f7f;opacity:1}
.evf-root .evf-file-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap;width:100%;margin-top:8px;padding:8px 12px;border:1px solid #d5d5d5;border-radius:4px;background:#fff;font-size:14px;line-height:1.5}
.evf-root .evf-file-badge{display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:700;white-space:nowrap;color:#1f8a5b;font-variant-numeric:tabular-nums}
.evf-root .evf-file-badge::before{content:"";width:18px;height:18px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8.5 12 2.5 2.5 4.5-5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8.5 12 2.5 2.5 4.5-5'/%3E%3C/svg%3E") center/contain no-repeat}
.evf-root .evf-file-status[data-phase=uploading] .evf-file-badge{color:var(--evf-button,#3a4044)}
.evf-root .evf-file-status[data-phase=uploading] .evf-file-badge::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V5'/%3E%3Cpath d='m7 10 5-5 5 5'/%3E%3Cpath d='M5 19h14'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V5'/%3E%3Cpath d='m7 10 5-5 5 5'/%3E%3Cpath d='M5 19h14'/%3E%3C/svg%3E")}
.evf-root .evf-file-name{min-width:0;overflow-wrap:anywhere}
.evf-root .evf-file-size{margin-left:6px;font-size:12px;color:#7f7f7f;white-space:nowrap;font-variant-numeric:tabular-nums}
.evf-root .evf-file-clear{display:inline-flex;align-items:center;gap:2px;position:static;width:auto;margin:0 0 0 auto;padding:2px 4px;border:0;border-radius:0;background:none;color:#7f7f7f;font:inherit;font-size:12px;line-height:1.5;text-decoration:underline;white-space:nowrap;cursor:pointer}
.evf-root .evf-file-clear::before{content:"";width:12px;height:12px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center/contain no-repeat}
.evf-root .evf-file-clear:hover{color:#2a313c}
.evf-root .evf-file-bar{flex-basis:100%;height:3px;margin-top:-2px;border-radius:2px;background:#e4e4e4;overflow:hidden}
.evf-root .evf-file-bar i{display:block;height:100%;background:var(--evf-button,#3a4044);transition:width .2s}
@media(prefers-reduced-motion:reduce){.evf-root .evf-file-button,.evf-root .evf-file-bar i{transition:none}}

@media(forced-colors:active){.evf-root input[type=checkbox]{appearance:auto}.evf-root input[type=checkbox]::before{display:none}}
