:root{color-scheme:light;--bg:#f5f7fb;--surface:#fff;--surface-2:#f8fafc;--text:#172033;--muted:#64748b;--line:#dfe5ee;--blue:#2563eb;--blue-dark:#1d4ed8;--blue-soft:#eff6ff;--green:#15803d;--red:#c2413b;--shadow:0 12px 35px rgba(15,23,42,.07);--radius:20px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--text);background:var(--bg);font-family:"Noto Sans JP","Yu Gothic","Hiragino Sans",sans-serif;line-height:1.65;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit;color:inherit}button,label,.file-button{touch-action:manipulation}.skip-link{position:fixed;z-index:1000;top:8px;left:8px;padding:9px 14px;border-radius:8px;color:#fff;background:var(--blue);transform:translateY(-150%)}.skip-link:focus{transform:none}.app-header{position:sticky;z-index:50;top:0;border-bottom:1px solid rgba(223,229,238,.9);background:rgba(255,255,255,.9);backdrop-filter:blur(14px)}.header-inner{width:min(1440px,calc(100% - 40px));height:64px;margin:auto;display:flex;align-items:center;justify-content:space-between}.back-link{display:flex;gap:8px;align-items:center;color:var(--text);font-weight:700;text-decoration:none}.header-actions{display:flex;align-items:center;gap:8px}.hero{width:min(1440px,calc(100% - 40px));margin:0 auto;padding:42px 0 28px;display:flex;align-items:flex-end;justify-content:space-between;gap:35px}.eyebrow,.section-kicker{margin:0;color:var(--blue);font-size:.7rem;font-weight:800;letter-spacing:.16em}.hero h1{margin:3px 0 0;font-size:clamp(2rem,4vw,3.25rem);line-height:1.2;letter-spacing:-.04em}.subtitle{margin:8px 0 0;color:var(--muted);font-size:1.02rem}.privacy-banner{max-width:610px;display:flex;align-items:flex-start;gap:13px;padding:16px 18px;border:1px solid #bfdbfe;border-radius:16px;background:var(--blue-soft);color:#1e3a5f}.privacy-banner p{margin:0;font-size:.86rem;line-height:1.65}.privacy-icon{width:25px;height:25px;display:grid;place-items:center;flex:0 0 auto;border-radius:50%;color:#fff;background:var(--blue);font-weight:900}.workspace{width:min(1440px,calc(100% - 40px));margin:0 auto 70px;display:grid;grid-template-columns:minmax(460px,.9fr) minmax(540px,1.1fr);align-items:start;gap:24px}.card,.social-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow)}.composer{padding:29px;position:sticky;top:86px}.section-title-row,.preview-heading,.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:20px}.section-title-row{margin-bottom:26px}.section-title-row h2,.preview-heading h2,.dialog-header h2{margin:2px 0 0;font-size:1.35rem;line-height:1.3}.field{margin:0 0 20px}.field label{display:block;margin-bottom:7px;font-size:.87rem;font-weight:750}.field label span,.field label small{color:var(--muted);font-size:.72rem;font-weight:500}input,textarea,select{width:100%;border:1px solid var(--line);border-radius:11px;background:var(--surface);outline:none;transition:border-color .15s,box-shadow .15s}input,select{height:44px;padding:0 13px}textarea{padding:11px 13px;line-height:1.7;resize:vertical}input:hover,textarea:hover,select:hover{border-color:#b8c3d2}input:focus,textarea:focus,select:focus{border-color:#60a5fa;box-shadow:0 0 0 3px rgba(37,99,235,.12)}.live-stats{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.live-stats span{padding:3px 9px;border-radius:99px;color:var(--muted);background:var(--surface-2);font-size:.72rem}.live-stats b{color:var(--text)}.field-help,.field-error{min-height:1.2em;margin:6px 2px 0;color:var(--muted);font-size:.72rem}.field-error{color:var(--red)}.tag-preview{display:block;margin-top:7px;padding:9px 11px;border-radius:9px;color:var(--blue-dark);background:var(--blue-soft);font-size:.8rem;overflow-wrap:anywhere}.two-fields{display:grid;grid-template-columns:.75fr 1.25fr;gap:15px}.drop-zone{min-height:120px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:18px;border:2px dashed #b9c6d8;border-radius:15px;color:var(--muted);background:var(--surface-2);cursor:pointer;transition:.2s}.drop-zone:hover,.drop-zone.is-dragging{border-color:var(--blue);background:var(--blue-soft)}.drop-zone strong{color:var(--text)}.drop-zone>span:last-child{font-size:.75rem}.upload-icon{width:32px;height:32px;display:grid;place-items:center;margin-bottom:5px;border-radius:50%;color:#fff;background:var(--blue);font-size:1.2rem}.image-panel{margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}.image-panel>img{width:110px;height:88px;float:left;margin-right:13px;border-radius:9px;object-fit:cover}.image-details{min-height:88px;display:flex;flex-direction:column;align-items:flex-start}.image-details span{color:var(--muted);font-size:.75rem}.image-tools{clear:both;margin:12px 0 0;padding:12px;border:1px solid var(--line);border-radius:10px;display:flex;align-items:end;gap:10px}.image-tools legend{padding:0 6px;color:var(--muted);font-size:.72rem}.image-tools label{min-width:120px;margin:0;font-size:.72rem}.image-tools select{height:38px;margin-top:4px}.check-row{display:flex!important;align-items:flex-start;gap:8px;margin:10px 0 0!important;color:var(--muted)}.check-row input,.status-check input{width:17px;height:17px;accent-color:var(--blue)}.check-row small{font-size:.7rem}.save-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-top:4px}.autosave-status{color:var(--muted);font-size:.74rem}.primary-button,.secondary-button,.ghost-button,.danger-button,.text-button,.icon-button,.file-button{border:0;cursor:pointer;font-weight:750}.primary-button,.secondary-button,.danger-button,.file-button{min-height:42px;padding:9px 16px;border-radius:11px}.primary-button{color:#fff;background:var(--blue);box-shadow:0 5px 14px rgba(37,99,235,.22)}.primary-button:hover{background:var(--blue-dark)}.secondary-button,.file-button{border:1px solid var(--line);background:var(--surface)}.secondary-button:hover,.file-button:hover{border-color:#93b0da;background:var(--blue-soft)}.ghost-button{padding:8px 11px;border-radius:9px;color:var(--muted);background:transparent}.ghost-button:hover{color:var(--blue);background:var(--blue-soft)}.text-button{padding:4px;color:var(--blue);background:transparent;font-size:.78rem}.danger-text{color:var(--red)}.icon-button{width:38px;height:38px;border-radius:10px;background:transparent;font-size:1.2rem}.icon-button:hover{background:var(--surface-2)}button:focus-visible,a:focus-visible,.drop-zone:focus-visible,.file-button:focus-within{outline:3px solid #60a5fa;outline-offset:3px}.preview-heading{margin:4px 2px 18px}.preview-heading>p{max-width:310px;margin:0;color:var(--muted);font-size:.78rem}.social-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.social-card{padding:19px;box-shadow:0 7px 25px rgba(15,23,42,.05)}.social-card-head{display:flex;align-items:center;gap:10px}.social-mark{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;color:#fff;background:var(--social-color);font-size:.8rem;font-weight:900}.social-name{margin:0;font-size:1rem}.mode-badge{margin-left:auto;padding:3px 8px;border-radius:99px;color:var(--blue-dark);background:var(--blue-soft);font-size:.65rem;font-weight:800}.mode-description{margin:8px 0 13px;color:var(--muted);font-size:.72rem}.social-editor,.social-tags{margin-bottom:9px}.social-editor{min-height:120px}.social-tags{min-height:64px;font-size:.82rem}.social-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 1px 11px;color:var(--muted);font-size:.7rem}.social-count.is-over{color:var(--red);font-weight:800}.social-url{max-width:68%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.social-actions{display:grid;grid-template-columns:1fr auto;gap:8px}.social-actions .primary-button{font-size:.75rem}.copy-button{width:42px;padding:0}.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}.status-check{display:flex;align-items:center;gap:7px;font-size:.78rem;font-weight:700}.reset-button{font-size:.7rem}dialog{padding:0;border:1px solid var(--line);color:var(--text);background:var(--surface);box-shadow:0 25px 80px rgba(15,23,42,.24)}dialog::backdrop{background:rgba(15,23,42,.35);backdrop-filter:blur(3px)}.side-dialog{width:min(540px,calc(100% - 24px));max-height:calc(100vh - 24px);margin:12px 12px 12px auto;border-radius:22px}.settings-dialog{width:min(680px,calc(100% - 24px));max-height:calc(100vh - 30px);border-radius:22px}.dialog-header{position:sticky;z-index:2;top:0;padding:20px 22px;border-bottom:1px solid var(--line);background:var(--surface)}.dialog-note{margin:16px 22px;color:var(--muted);font-size:.77rem}.manage-list{padding:0 22px 24px}.manage-item{padding:15px 0;border-bottom:1px solid var(--line)}.manage-item-head{display:flex;justify-content:space-between;gap:12px}.manage-item h3{margin:0;font-size:.93rem}.manage-item p{margin:3px 0;color:var(--muted);font-size:.75rem}.manage-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}.manage-actions button{font-size:.72rem}.empty-state{padding:35px 12px;color:var(--muted);text-align:center}.template-form{margin:18px 22px;padding:16px;border-radius:15px;background:var(--surface-2)}.template-form .field{margin-bottom:12px}.form-buttons,.settings-buttons{display:flex;justify-content:flex-end;gap:9px}.settings-dialog>section{margin:0 24px;padding:20px 0;border-bottom:1px solid var(--line)}.settings-dialog h3{margin:0 0 10px;font-size:.94rem}.settings-dialog p{margin:7px 0;color:var(--muted);font-size:.8rem}.segmented{display:flex;gap:5px;padding:4px;border-radius:11px;background:var(--surface-2)}.segmented button{flex:1;padding:8px;border:0;border-radius:8px;background:transparent;cursor:pointer}.segmented button.is-active{color:#fff;background:var(--blue)}.file-button{display:inline-flex;align-items:center;cursor:pointer}.danger-zone{border-bottom:0!important}.danger-button{color:#fff;background:var(--red)}.toast{position:fixed;z-index:200;right:22px;bottom:22px;max-width:min(420px,calc(100% - 30px));padding:12px 17px;border-radius:12px;color:#fff;background:#1e293b;box-shadow:0 14px 35px rgba(15,23,42,.3);font-size:.84rem}.toast.is-error{background:#9f2f2a}
html[data-theme="dark"]{color-scheme:dark;--bg:#0b1120;--surface:#111827;--surface-2:#172033;--text:#e5edf8;--muted:#9aa8bc;--line:#2b374a;--blue:#60a5fa;--blue-dark:#93c5fd;--blue-soft:#152a48;--shadow:0 12px 35px rgba(0,0,0,.22)}html[data-theme="dark"] .app-header{background:rgba(17,24,39,.9)}html[data-theme="dark"] .privacy-banner{border-color:#29466f;color:#d7e8ff;background:#11243e}html[data-theme="dark"] .primary-button{color:#08101f;background:#60a5fa}html[data-theme="dark"] .primary-button:hover{background:#93c5fd}html[data-theme="dark"] .social-mark{color:#fff}
@media(max-width:1160px){.workspace{grid-template-columns:1fr}.composer{position:static}.social-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.header-inner,.hero,.workspace{width:calc(100% - 28px)}.header-actions .ghost-button{padding:7px 6px;font-size:.74rem}.hero{padding-top:27px;display:block}.privacy-banner{margin-top:20px}.workspace{margin-bottom:40px}.composer{padding:20px}.social-cards{grid-template-columns:1fr}.preview-heading{align-items:flex-start;flex-direction:column;gap:5px}.two-fields{grid-template-columns:1fr}.image-tools{align-items:stretch;flex-direction:column}.save-row{align-items:stretch;flex-direction:column}.primary-button{width:100%}.social-actions .primary-button{width:auto}.toast{right:15px;bottom:15px}.settings-buttons,.form-buttons{flex-direction:column}.settings-buttons>*{justify-content:center}.side-dialog{height:calc(100vh - 12px);max-height:none;margin:6px}.settings-dialog{max-height:calc(100vh - 16px)} }
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
