:root{color-scheme:dark;--bg:#0b2030;--panel:#102d40;--line:#2c4759;--mint:#9be5c4;--text:#f2f8fc;--muted:#a8bfce}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:'Malgun Gothic','Apple SD Gothic Neo',sans-serif}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,a,input,select,summary{touch-action:manipulation}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--mint);outline-offset:5px}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}.shell{max-width:1200px;padding:0 40px;margin:auto}.topnav{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:30px 0;border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)}.brand{font-weight:800;letter-spacing:.04em;color:var(--text);font-size:22px}.brand span{font-size:12px;letter-spacing:.12em;color:var(--muted);margin-left:9px}.hero{display:grid;grid-template-columns:1.2fr 1fr;align-items:center;gap:60px;padding:75px 0}.eyebrow{font-size:11px;font-weight:700;color:var(--mint);letter-spacing:.14em;line-height:1.8;margin:0 0 20px}h1{font-size:clamp(32px,4.2vw,51px);line-height:1.4;letter-spacing:-2px;font-weight:600;margin:0}h2{font-size:29px;letter-spacing:-1px;line-height:1.5;margin:0}h3{font-size:24px;margin:0;letter-spacing:-.7px}.lead{font-size:17px;color:var(--muted);line-height:1.9;margin:25px 0 32px}.button{display:inline-flex;justify-content:center;align-items:center;gap:25px;min-height:48px;padding:13px 20px;border:1px solid var(--line);border-radius:8px;font-size:14px;font-weight:700;background:transparent;color:var(--text)}.primary{background:var(--mint);color:#15382c;border-color:var(--mint)}.primary:hover{background:#b9f3d8}.benefits{display:flex;gap:18px;color:var(--muted);font-size:12px;margin-top:24px}.benefits span:before{content:'✓';color:var(--mint);margin-right:7px}.hero-art{height:505px;background:#e8e0d5;position:relative;overflow:hidden;border-radius:12px;transform:rotate(2deg);box-shadow:0 20px 60px #0004}.hero-art img{width:100%;height:100%;object-fit:cover;object-position:50% 40%}.art-label{position:absolute;top:0;left:0;right:0;display:flex;justify-content:space-between;padding:18px;background:#ede7dc;color:#55483c;font-size:9px;letter-spacing:1px}.art-note{position:absolute;bottom:25px;left:25px;font:30px/1.2 Georgia,serif;color:#fff;mix-blend-mode:screen}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:35px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:35px 0}.steps div>span{font:22px Georgia,serif;color:var(--mint)}.steps h2{font-size:19px;margin-top:14px}.steps p{font-size:13px;color:var(--muted);line-height:1.8;margin-bottom:0}.templates{padding:75px 0;scroll-margin-top:30px}.section-title{display:flex;align-items:end;justify-content:space-between;gap:25px}.section-title .eyebrow{margin-bottom:10px}.count{font-size:13px;color:var(--muted)}.catalog-controls{display:flex;align-items:center;gap:15px;margin:30px 0 25px;font-size:13px}.catalog-controls>label:first-child{color:var(--muted)}select,input[type=search]{background:#102b3e;color:var(--text);border:1px solid #385166;border-radius:7px;padding:11px;max-width:100%}.search{margin-left:auto}.search input{width:270px}.template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}.template-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#10293a}.template-image{height:355px;display:block;background:#e7ded1;overflow:hidden}.template-image img{width:100%;height:auto;min-height:100%;object-fit:cover;object-position:top;transition:transform .25s}.template-image:hover img{transform:scale(1.025)}.template-body{padding:28px}.template-body .eyebrow{margin-bottom:10px}.description{font-size:14px;color:var(--muted);line-height:1.9;margin:17px 0}.tags{display:flex;gap:8px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin:20px 0 26px}.tags span{padding:6px 9px;border:1px solid var(--line);border-radius:5px}.template-body .button{width:100%}.help{border-top:1px solid var(--line);padding:55px 0 70px}.help p{font-size:14px;color:var(--muted);line-height:1.9}.help details{border-top:1px solid var(--line);padding:22px 0}.help details:first-of-type{margin-top:35px}.help summary{font-size:15px;cursor:pointer}.help details p{max-width:800px}footer{border-top:1px solid var(--line);padding:30px 0 45px;display:flex;justify-content:space-between;align-items:center;gap:20px}footer>span{font-size:12px;color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.empty{color:var(--muted);padding:30px 0}.editor-shell{max-width:1600px;padding:0 28px;margin:auto}.editor-title{display:flex;align-items:center;gap:15px}.editor-title h1{font-size:25px;letter-spacing:-1px}.editor-layout{display:grid;grid-template-columns:285px minmax(0,1fr);gap:24px;padding:28px 0}.controls{background:#102b3e;border:1px solid var(--line);border-radius:12px;padding:24px;align-self:start;position:sticky;top:20px}.controls .button{width:100%;margin-top:10px;font-size:13px}.controls label{display:block;color:var(--muted);font-size:12px;margin:24px 0 9px}.controls select{width:100%}.controls p{font-size:12px;color:var(--muted);line-height:1.9}.control-group{border-top:1px solid var(--line);margin-top:22px;padding-top:15px}.controls .eyebrow{margin-bottom:8px}.controls h2{font-size:19px}.preview-panel{min-width:0}.preview-heading{display:flex;justify-content:space-between;gap:15px;margin:0 0 12px;font-size:12px;color:var(--muted)}.viewport{height:calc(100vh - 170px);min-height:450px;overflow:auto;border:1px solid var(--line);background:#d9d6d0;border-radius:10px;padding:20px}.frame-wrap{position:relative;margin:auto}.frame-wrap iframe{display:block;width:860px;border:0;transform-origin:top left;background:white}.status{font-size:12px;color:var(--mint);min-height:44px;line-height:1.8;margin-top:20px;overflow-wrap:anywhere}.error{color:#ffc9ab}.upload-hint{background:#15384b;padding:12px;border-radius:6px}.busy{opacity:.65;pointer-events:none}input[type=color]{width:100%;height:38px;background:transparent;border:1px solid var(--line);padding:3px;border-radius:6px}.editor-footer{font-size:12px;color:var(--muted);padding-bottom:25px}.editor-footer a{text-decoration:underline}
@media(max-width:760px){.shell{padding:0 22px}.topnav{padding:23px 0;gap:12px;font-size:11px}.brand{font-size:20px}.brand span{font-size:9px;margin-left:4px}.hero{grid-template-columns:1fr;gap:40px;padding:45px 0}.hero-art{height:340px;transform:none}.hero h1{font-size:34px}.lead{font-size:15px}.steps{gap:20px}.steps h2{font-size:15px}.steps p{font-size:11px}.templates{padding:50px 0}.section-title{align-items:start}.section-title h2{font-size:24px}.section-title .count{white-space:nowrap;padding-top:5px}.catalog-controls{flex-wrap:wrap}.search{margin-left:0;flex-basis:100%}.search input{width:100%}.template-grid{grid-template-columns:1fr}.template-image{height:330px}.template-body{padding:23px}footer{align-items:start;flex-direction:column}.editor-shell{padding:0 14px}.editor-layout{grid-template-columns:1fr;gap:20px;padding:20px 0}.controls{position:static;padding:18px}.controls .button{width:auto;margin-right:6px}.controls label{margin-top:15px}.control-group{padding-top:10px;margin-top:15px}.viewport{height:70vh;min-height:350px;padding:10px}.editor-title{flex-wrap:wrap;gap:6px}.editor-title h1{font-size:18px}.editor-shell .topnav{align-items:start}.preview-heading{font-size:11px}.status{min-height:0;margin-top:12px}.benefits{gap:12px;font-size:11px}}
.template-image img{display:block;width:auto;height:100%;min-height:0;margin:auto;object-fit:contain}.hero-art img{object-fit:contain;object-position:center;padding-top:36px}.nav-links{display:flex;align-items:center;gap:24px}.home-link{padding:10px 13px;border:1px solid #446457;border-radius:7px;color:var(--mint);white-space:nowrap}@media(max-width:760px){.nav-links{gap:10px;flex-wrap:wrap;justify-content:flex-end}.topnav{align-items:flex-start}.home-link{padding:8px}.editor-title{max-width:48%}.preview-panel{order:-1}.viewport{height:65vh}.controls{scroll-margin-top:15px}.preview-heading:before{content:'写真・문구 편집';display:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.template-image img{transition:none}}
.local-font-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}.local-font-row #font-summary{font-size:11px;line-height:1.7;color:var(--muted)}.local-font-row .text-reset{color:var(--mint);border-color:#446457}
.local-font-row{align-items:flex-end}.local-font-row #font-summary{align-self:center;margin-left:auto;max-width:270px}.local-font-row #text-reset{color:var(--muted);border-color:#385166}.preview-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px}.preview-actions .text-reset{font-size:12px;color:var(--mint);white-space:nowrap}.preview-heading{align-items:center}.text-toolbar{position:static}.preview-panel{min-height:0}.viewport{overscroll-behavior:contain;scrollbar-gutter:stable}.editor-page .frame-wrap iframe{max-width:none}
@media(min-width:1000px){.editor-page{height:100dvh;overflow:hidden}.editor-page .editor-shell{height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr) auto}.editor-page .topnav{padding:18px 0}.editor-page .editor-layout{min-height:0;padding:16px 0;overflow:hidden}.editor-page .controls{position:static;max-height:100%;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.editor-page .preview-panel{display:grid;grid-template-rows:auto auto minmax(0,1fr);min-height:0}.editor-page .preview-panel .viewport{height:auto;min-height:0}.editor-page .editor-footer{padding-bottom:12px;line-height:1.6}}
@media(max-width:760px){.local-font-row #font-summary{margin-left:0;max-width:none;flex-basis:100%}.preview-actions>span{display:none}.preview-actions{gap:0}.preview-actions .text-reset{font-size:11px;padding:0 9px}}
.text-toolbar{position:sticky;top:10px;z-index:5;margin-bottom:12px;padding:16px;background:#102b3e;border:1px solid var(--line);border-radius:10px;box-shadow:0 6px 18px #0002}.text-selection{display:flex;align-items:center;gap:15px;margin-bottom:12px;min-width:0}.text-selection .eyebrow{margin:0;flex-shrink:0}.text-selection #selected-text{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text-toolbar fieldset{margin:0;padding:0;border:0;min-width:0}.text-toolbar fieldset:disabled{opacity:.5}.text-tool-row{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px}.text-tool-row label{position:relative;display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:11px;width:65px}.text-tool-row .font-tool{flex:1;min-width:160px;max-width:240px}.text-tool-row select,.text-tool-row input{height:36px;width:100%;padding:7px 8px;background:#0b2030;border:1px solid #385166;border-radius:5px;color:var(--text);font-size:13px;min-width:0}.text-tool-row input[type=color]{padding:3px;cursor:pointer}.tool-unit{position:absolute;right:0;top:0;font-size:10px}.tool-buttons{display:flex;gap:4px}.style-button{min-width:36px;height:36px;border:1px solid #385166;border-radius:5px;background:#0b2030;color:var(--text);font-size:15px;padding:0 9px}.style-button[aria-pressed=true]{background:var(--mint);border-color:var(--mint);color:#15382c}.align-tools .style-button{font-size:12px;min-width:48px}.text-reset{height:36px;padding:0 12px;color:var(--muted);background:transparent;border:1px solid #385166;border-radius:5px;font-size:12px}.tool-help{font-size:10px;color:var(--muted);line-height:1.7;margin-left:auto;align-self:center;max-width:250px}.preview-panel .viewport{height:calc(100vh - 355px)}@media(max-width:760px){.text-toolbar{top:0;padding:12px}.text-selection{display:block}.text-selection .eyebrow{margin-bottom:5px}.text-selection #selected-text{display:block}.text-tool-row{gap:8px}.text-tool-row .font-tool{min-width:135px;max-width:none}.text-tool-row label{width:60px}.text-tool-row label[for=text-color]{width:48px}.tool-help{margin:0;max-width:none;flex-basis:100%}.preview-panel .viewport{height:60vh;min-height:350px}}

.box-actions{margin-bottom:12px}.box-actions [aria-pressed="true"]{background:#b2e5cc;color:#132c22;border-color:#b2e5cc}.box-actions .tool-help{font-size:12px;color:var(--muted,#a5b8c4)}

.full-editor-header{display:none}
html.full-editor-open{overflow:hidden}
.editor-page.is-full-editor{overflow:hidden}
.editor-page.is-full-editor .preview-panel{position:fixed;inset:0;z-index:1000;display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:0;padding:0;background:var(--bg);height:100dvh;min-height:0;overflow:hidden}
.is-full-editor .preview-heading{display:none}
.is-full-editor .full-editor-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 18px;border-bottom:1px solid var(--line);min-width:0}
.full-editor-title{min-width:0;flex:1}.full-editor-title h2{font-size:16px;margin:0}.full-editor-title span{display:block;font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:500px}.full-editor-title span.error{color:#ffada7}
.full-editor-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.full-editor-actions .home-link{font-size:11px}.full-editor-actions .text-reset{color:var(--text);white-space:nowrap}
.editor-page.is-full-editor .text-toolbar{position:static;margin:0;border-radius:0;border-width:0 0 1px;padding:12px 18px;max-height:45dvh;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.editor-page.is-full-editor .viewport{height:auto;min-height:0;border:0;border-radius:0;padding:16px;overflow:auto}
.editor-page.is-full-editor.tools-minimized .preview-panel{grid-template-rows:auto minmax(0,1fr)}
.is-full-editor.tools-minimized .text-toolbar{display:none}
@media(max-width:760px){.is-full-editor .full-editor-header{padding:8px 10px;gap:8px;align-items:flex-start;flex-wrap:wrap}.full-editor-title{flex-basis:100%}.full-editor-title h2{font-size:14px}.full-editor-title span{max-width:90vw}.full-editor-actions{width:100%;gap:6px;justify-content:flex-start}.full-editor-actions .text-reset{font-size:11px;height:32px;padding:0 8px}.full-editor-actions .home-link{font-size:10px;padding:7px}.editor-page.is-full-editor .text-toolbar{padding:10px;max-height:48dvh}.editor-page.is-full-editor .viewport{padding:10px}}
