:root{--ink:#283e37;--muted:#66716c;--green:#315f4e;--line:#dce3de;--soft:#f4f7f4;--accent:#778ac3}*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--ink);font:18px/1.75 -apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;min-height:52px;border:1px solid var(--line);border-radius:12px;background:white;color:var(--ink);padding:12px 23px;font-weight:600}button:hover{border-color:var(--green);background:#f4f7f4}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #7898df;outline-offset:4px}button.primary{background:var(--green);color:#fff;border-color:var(--green)}button.primary:hover{background:#244a3c}button.subtle{background:transparent;font-size:16px;padding:8px 12px;min-height:44px}button:disabled{opacity:.5;cursor:wait}.site-header{max-width:1280px;margin:auto;padding:25px 40px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:20px}.site-header a{display:flex}.site-header img{width:165px;height:46px;object-fit:contain}.site-header span{font:12px/1.7 Georgia,serif;letter-spacing:2px;text-align:right}.site-header small{display:block;font:10px/1.5 sans-serif;letter-spacing:1px;color:var(--muted)}main{max-width:1220px;margin:auto;padding:44px 32px 64px}.eyebrow{font:13px/1.5 Georgia,serif;letter-spacing:3px;color:var(--green);margin:0 0 12px}.hero-heading{font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-size:clamp(30px,4vw,48px);line-height:1.55;font-weight:500;letter-spacing:.06em;margin:0 0 16px}h1{font-size:30px;line-height:1.6;letter-spacing:.03em;margin:12px 0}h2{font-size:23px;line-height:1.6}p{margin:10px 0 20px}.muted,.hint{color:var(--muted);font-size:15px}.welcome-top{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:34px}.welcome-top p{margin-bottom:0}.welcome-actions{display:flex;gap:12px;flex-shrink:0}.tag{display:inline-block;color:#536b5e;font-size:12px;letter-spacing:.07em;background:#edf4ed;border:1px solid #dfe8df;border-radius:50px;padding:3px 14px;margin-bottom:14px}.preview-shell{padding:20px;background:#f0f0eb;border:1px solid #e0e2db;border-radius:7px;box-shadow:0 20px 50px #233e3710}.card-canvas{display:block;width:100%;height:auto;background:#fdf9f0;box-shadow:0 4px 16px #3c302b1c}.sample-caption{font-size:14px;color:var(--muted);text-align:center;margin:18px 0}.welcome-details{display:flex;gap:20px;justify-content:center;margin:25px 0;font-size:15px}.welcome-details span{padding:0 20px;border-right:1px solid var(--line)}.welcome-details span:last-child{border:0}.form-layout{max-width:780px;margin:auto}.progress-label{font-size:14px;color:var(--muted);display:flex;justify-content:space-between}.progress-track{display:flex;gap:6px;margin:12px 0 35px}.progress-track span{height:5px;background:#e8ece8;flex:1;border-radius:9px}.progress-track .done{background:var(--green)}.intro{color:var(--muted);margin-bottom:32px}fieldset{margin:0 0 32px;padding:0;border:0;min-width:0}legend,.field-label{font-size:20px;font-weight:600;display:block;margin-bottom:10px}legend small,.field-label small{font-weight:400;font-size:13px;color:var(--muted);margin-left:12px}.required{background:#f8e9e4;color:#8b3f2a;padding:3px 9px;border-radius:5px;font-size:12px;margin-left:10px}input[type=text],select,textarea{display:block;width:100%;min-height:58px;border:1px solid #bfcac2;border-radius:10px;padding:13px 15px;color:var(--ink);background:white}textarea{resize:vertical;min-height:110px;line-height:1.8}input::placeholder,textarea::placeholder{color:#8b948e}input[type=range]{width:100%;accent-color:var(--green);min-height:38px}.choices{display:flex;flex-wrap:wrap;gap:10px}.choice{position:relative;display:flex;align-items:center;cursor:pointer;border:1px solid #cad3cc;border-radius:10px;padding:12px 17px;min-height:54px;line-height:1.5}.choice:has(input:checked){background:#edf5ef;color:#254e3e;border:2px solid #416e56;padding:11px 16px}.choice input{appearance:none;width:19px;height:19px;border:1.5px solid #97a99c;border-radius:5px;margin:0 10px 0 0;flex-shrink:0;display:grid;place-content:center}.choice input[type=radio]{border-radius:50%}.choice input:checked{background:var(--green);border-color:var(--green)}.choice input:checked:before{content:'✓';color:white;font:14px sans-serif}.other{margin-top:12px}.other summary{font-size:15px;color:var(--green);cursor:pointer;min-height:42px;padding:6px 0}.other input{font-size:17px}.form-nav{display:flex;justify-content:space-between;gap:12px;padding-top:26px;margin-top:30px;border-top:1px solid var(--line)}.form-nav .primary{min-width:180px}.step-links{display:flex;flex-wrap:wrap;gap:4px;margin:24px 0}.step-links button{font-size:13px;min-height:38px;padding:5px 10px;font-weight:400}.upload-row{display:grid;grid-template-columns:200px 1fr;gap:28px;align-items:center}.avatar-editor{width:200px;height:200px;border-radius:50%;overflow:hidden;background:#f1f4f0;border:1px dashed #abb9ae;display:grid;place-items:center;touch-action:none;cursor:move}.avatar-editor canvas{width:200px;height:200px}.avatar-empty{font-size:14px;color:var(--muted);text-align:center}.upload-button{display:inline-block;cursor:pointer;border:1px solid #bdcbbf;border-radius:10px;padding:12px 18px;font-weight:600;min-height:52px}.upload-button input{position:absolute;width:1px;height:1px;opacity:0}.crop-controls{margin-top:20px}.crop-controls label{display:block;font-size:15px}.count{text-align:right;font-size:13px;color:var(--muted)}.error{color:#a13225;font-size:15px;margin-top:10px}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px}.preview-top{display:flex;justify-content:space-between;align-items:center;gap:25px;margin-bottom:25px}.preview-top h1{margin-top:0}.preview-top p{margin-bottom:0}.theme-section{margin-top:32px}.theme-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}.theme-tile{padding:12px 10px;border-radius:11px;font-size:13px;position:relative;line-height:1.6;min-height:134px}.theme-tile[aria-pressed=true]{border:2px solid var(--green);padding:11px 9px;background:#f4f8f3;box-shadow:0 0 0 2px #e8eee6}.theme-tile[aria-pressed=true]:after{content:'✓';position:absolute;right:7px;top:5px;background:var(--green);color:#fff;border-radius:50%;height:22px;width:22px;line-height:22px}.theme-tile img{width:100%;height:64px;object-fit:contain;border-radius:5px}.swatches{display:flex;margin:7px 0 8px;gap:3px;justify-content:center}.swatches i{width:22px;height:22px;border-radius:50%;border:1px solid #0000000a}.preview-actions{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin:30px 0 15px}.success{text-align:center;margin-bottom:30px}.success .seal{font:32px Georgia,serif;color:var(--green);display:block}.celebrate{animation:appear .55s ease-out}.site-footer{text-align:center;border-top:1px solid var(--line);padding:25px;color:#6b756e;font-size:13px;line-height:2}.site-footer small{font-size:12px}#notice{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#233e35;color:white;padding:12px 24px;border-radius:10px;z-index:10;max-width:90vw;display:none}.data-note{background:#f4f6f3;border-radius:10px;padding:16px 22px;font-size:14px;line-height:1.8;margin:30px 0}.data-note summary{cursor:pointer}.download-image{display:block;max-width:100%;max-height:70vh;object-fit:contain;margin:auto}dialog{border:1px solid var(--line);border-radius:15px;padding:25px;max-width:90vw;max-height:90vh}dialog::backdrop{background:#12261baa}@keyframes appear{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}@media(max-width:900px){.welcome-top,.preview-top{align-items:flex-start;flex-direction:column}.theme-grid{grid-template-columns:repeat(4,1fr)}.welcome-actions{flex-wrap:wrap}.welcome-details{gap:0}.welcome-details span{padding:0 12px}}@media(max-width:600px){body{font-size:17px}.site-header{padding:18px 20px}.site-header img{width:135px;height:38px}.site-header span{font-size:9px;letter-spacing:1px}main{padding:28px 18px 45px}h1{font-size:25px}.hero-heading{font-size:29px}.preview-shell{padding:7px}.welcome-actions{width:100%}.welcome-actions button{width:100%}.theme-grid{grid-template-columns:repeat(3,1fr);gap:8px}.theme-tile{font-size:12px;min-height:125px}.theme-tile img{height:55px}.welcome-details{font-size:12px}.welcome-details span{padding:0 8px}.upload-row{grid-template-columns:1fr;justify-items:center}.upload-row>div:last-child{width:100%}.two-fields{grid-template-columns:1fr}.form-nav button{padding:12px 15px}.form-nav .primary{min-width:160px}.preview-actions button{width:100%}.choice{padding:12px 14px}.choice:has(input:checked){padding:11px 13px}legend,.field-label{font-size:19px}}

/* Requested pure-white backgrounds, including the finished image surround. */
.preview-shell{background:#fff;box-shadow:none}.card-canvas{background:#fff}.data-note{background:#fff}.avatar-editor{background:#fff}

.preview-shell{background:#fff;box-shadow:none}.card-canvas,.data-note,.avatar-editor{background:#fff}
.theme-thumbnail{display:block;width:100%;height:auto;border:1px solid #e5e8e5;margin-bottom:10px;background:#fff}.theme-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.theme-tile{padding:12px;overflow:hidden}.theme-tile span{font-size:14px}.theme-tile small{font-size:12px}.theme-section>button{margin:12px 0 22px}@media(max-width:700px){.theme-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.theme-tile{padding:8px}}

.theme-tile{position:relative}.new-design{display:inline-block;background:#427e6a;color:#fff;font-size:10px;padding:2px 7px;border-radius:6px;margin-top:7px;letter-spacing:.12em}

.frame-selector{margin:20px auto 24px;max-width:1160px;padding:20px 24px;border:1px solid #d9e0da;border-radius:16px;background:#fff}.frame-selector legend{font-weight:700;padding:0 8px}.frame-options{display:flex;gap:16px}.frame-options label{display:flex;align-items:center;gap:10px;min-width:130px;padding:14px 24px;border:1px solid #d9e0da;border-radius:12px;cursor:pointer}.frame-options label:has(input:checked){border-color:#427e6a;background:#edf5f0}.frame-options input{width:22px;height:22px;accent-color:#427e6a}.frame-selector .hint{margin:14px 0 0}@media(max-width:600px){.frame-selector{padding:16px}.frame-options label{min-width:0;flex:1;padding:14px 18px}}
