/* Shared public-site shell. Product canvases and exported artwork keep their own styles. */
:root{--ks-bg:#f7f8fa;--ks-surface:#fff;--ks-surface-2:#f0f3f8;--ks-border:#dce1e8;--ks-hair:#e8ebf0;--ks-ink:#192331;--ks-muted:#525f70;--ks-muted-2:#626d7d;--ks-accent:#2854c5;--ks-accent-2:#2045a5;--ks-soft:#edf2ff;--ks-shadow:0 2px 10px #19233105;--ks-shadow-2:0 12px 32px #1923310c;--st-font:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Noto Sans JP",sans-serif}
@media(prefers-color-scheme:dark){:root{--ks-bg:#131820;--ks-surface:#1a222d;--ks-surface-2:#202b38;--ks-border:#364353;--ks-hair:#2b3542;--ks-ink:#edf2f8;--ks-muted:#b6c2d1;--ks-muted-2:#a1afbf;--ks-accent:#a9c0ff;--ks-accent-2:#c4d3ff;--ks-soft:#24324b;--ks-shadow:none;--ks-shadow-2:none}}
body.studio-page{margin:0;background:var(--ks-bg);color:var(--ks-ink);font-family:var(--st-font);line-height:1.8;animation:none;letter-spacing:0}
.studio-page *, .studio-page *::before,.studio-page *::after{box-sizing:border-box}
.studio-page a{color:var(--ks-accent);text-underline-offset:4px}
.studio-page img{max-width:100%}
.studio-page :focus-visible{outline:3px solid var(--ks-accent);outline-offset:4px}
body.studio-page .st-header{position:relative;top:auto;display:block;height:auto;min-height:72px;padding:0;margin:0;background:var(--ks-surface);border:0;border-bottom:1px solid var(--ks-hair);box-shadow:none;z-index:30;width:100%;font-family:var(--st-font)}
.st-header .st-nav{max-width:1160px;margin:auto;padding:18px 28px;display:flex;align-items:center;justify-content:space-between;gap:24px;background:none;border:0;box-shadow:none;min-height:72px}
.st-header .st-brand{font-size:19px;font-weight:750;letter-spacing:-.7px;color:var(--ks-ink);text-decoration:none;white-space:nowrap}
.st-header .st-links{display:flex;align-items:center;gap:26px;flex-wrap:wrap}
.st-header .st-links a{font-size:13px;color:var(--ks-muted);font-weight:600;text-decoration:none;white-space:nowrap;padding:4px 0}
.st-header .st-links a:hover,.st-header .st-links a[aria-current=page]{color:var(--ks-accent)}
body.studio-page .st-footer{display:block;max-width:none;width:100%;padding:0;margin:64px 0 0;background:var(--ks-surface);border:0;border-top:1px solid var(--ks-hair);font-family:var(--st-font);font-size:13px;line-height:1.8}
.st-footer .st-footer-inner{max-width:1160px;padding:34px 28px;margin:auto;display:flex;justify-content:space-between;gap:28px;flex-wrap:wrap}
.st-footer .st-footer-links{display:flex;gap:10px 22px;flex-wrap:wrap;align-items:center;max-width:720px}
.st-footer a{font-size:12px;color:var(--ks-muted);text-decoration:none;font-weight:500;display:inline-block;padding:4px 0}
.st-footer p{margin:0;color:var(--ks-muted);font-size:12px}
.st-footer strong{display:block;color:var(--ks-ink);font-size:16px;letter-spacing:-.5px}
body.studio-page .st-main{display:block;max-width:1160px;width:100%;margin:0 auto;padding:0 28px}
.st-main h1,.st-main h2,.st-main h3{color:var(--ks-ink);font-family:var(--st-font);letter-spacing:-.035em;text-transform:none}
.st-intro{padding:56px 0 28px;border:0;background:none;box-shadow:none}
.st-eyebrow{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--ks-accent);margin:0 0 12px}
.st-intro h1{font-size:clamp(30px,4vw,46px);font-weight:730;line-height:1.3;margin:0 0 16px;max-width:850px;text-wrap:balance}
.st-intro p:not(.st-eyebrow){color:var(--ks-muted);font-size:15px;max-width:740px;margin:0;line-height:1.9}
.st-home-hero{display:grid;grid-template-columns:1fr 1.15fr;gap:44px;align-items:center;padding:62px 0 52px}
.st-home-hero h1{font-size:clamp(32px,4.1vw,54px);line-height:1.35;font-weight:750;margin:0 0 18px;letter-spacing:-.045em}
.st-home-hero p{font-size:15px;color:var(--ks-muted);margin:0 0 20px;max-width:430px}
.st-home-hero .st-eyebrow{font-size:11px;color:var(--ks-accent);margin-bottom:18px}
.st-feature-visual{background:var(--ks-soft);padding:34px 26px 22px;border:1px solid var(--ks-hair);border-radius:20px;margin:0}
.st-feature-visual img{width:100%;height:auto;display:block;border-radius:9px;box-shadow:0 12px 26px #18223812}
.st-feature-visual figcaption{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:20px;font-size:12px;color:var(--ks-muted)}
.st-feature-visual figcaption strong{font-size:15px;color:var(--ks-ink)}
.st-button,.studio-page a.st-button{display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:11px 20px;background:var(--ks-accent);color:#fff;border:1px solid var(--ks-accent);border-radius:8px;text-decoration:none;font-size:14px;font-weight:650;line-height:1.4;margin:0;gap:8px}
.st-button:hover{background:var(--ks-accent-2)}
.studio-page a.st-button.secondary{color:var(--ks-ink);background:var(--ks-surface);border-color:var(--ks-border)}
.st-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
@media(prefers-color-scheme:dark){.st-button,.studio-page a.st-button{color:#152346}}
.st-section{padding:30px 0 38px;border:0;border-top:1px solid var(--ks-border);background:none;box-shadow:none}
.st-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin:0 0 24px}
.st-section-head h2{font-size:23px;font-weight:700;margin:0;line-height:1.5}
.st-section-head a{font-size:13px;text-decoration:none;white-space:nowrap}
.st-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.st-product{display:flex;flex-direction:column;min-width:0;gap:12px;padding:24px;background:var(--ks-surface);border:1px solid var(--ks-border);border-radius:12px;box-shadow:none;transition:border-color .15s}
.st-product:hover{border-color:var(--ks-accent)}
.st-product[hidden]{display:none}
.st-product .st-product-top{display:flex;gap:14px;align-items:center}
.st-product .st-icon{width:48px;height:48px;object-fit:contain;border-radius:11px;flex-shrink:0}
.st-product .st-number{font-family:ui-monospace,monospace;color:var(--ks-muted-2);font-size:12px;letter-spacing:.03em}
.st-product h3{font-size:18px;font-weight:700;line-height:1.5;margin:0;letter-spacing:-.02em}
.st-product p{font-size:13px;color:var(--ks-muted);line-height:1.85;margin:0}
.st-tags{display:flex;flex-wrap:wrap;gap:7px;color:var(--ks-muted-2);font-size:11px;margin-top:auto;padding-top:4px}
.st-tags span+span:before{content:"·";margin-right:7px}
.st-product .st-product-actions{display:flex;gap:18px;align-items:center;border-top:1px solid var(--ks-hair);padding-top:14px;margin-top:4px}
.st-product-actions a{font-size:13px;font-weight:600;text-decoration:none;min-height:32px;display:inline-flex;align-items:center}
.st-search{display:flex;gap:16px;align-items:center;margin:0 0 20px;flex-wrap:wrap}
.st-search label{width:100%;font-size:13px;color:var(--ks-muted);margin:0;font-weight:600}
.st-search input{width:100%;max-width:650px;padding:14px 18px;border:1px solid var(--ks-border);border-radius:8px;background:var(--ks-surface);color:var(--ks-ink);font:inherit;font-size:14px;min-height:48px;box-shadow:none}
.st-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px}
.st-filters button{font:inherit;font-size:12px;font-weight:600;color:var(--ks-muted);border:1px solid var(--ks-border);background:var(--ks-surface);padding:9px 14px;border-radius:6px;min-height:40px;cursor:pointer;margin:0;line-height:1.5}
.st-filters button[aria-pressed=true]{background:var(--ks-ink);color:var(--ks-surface);border-color:var(--ks-ink)}
.st-count{font-size:12px;color:var(--ks-muted);margin:0 0 18px}
.st-notice{font-size:12px;color:var(--ks-muted);padding:16px 18px;border-left:2px solid var(--ks-accent);background:var(--ks-surface);margin:24px 0;line-height:1.8}
.st-home .note-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.st-home .note-card{display:flex;flex-direction:column;text-decoration:none;border:0;background:none;border-radius:0;padding:0;box-shadow:none;color:var(--ks-ink)}
.st-home .note-thumb-placeholder{display:none}
.st-home .note-card-body{display:flex;flex-direction:column;gap:8px}
.st-home .note-card-body strong{font-size:15px;line-height:1.8;font-weight:650}
.st-home .note-card-body>span:last-child{font-size:12px;line-height:1.8;color:var(--ks-muted)}
.st-home .note-date,.st-home .article-cat{font-size:11px;color:var(--ks-muted)}
.st-home .note-thumb{width:100%;height:auto;aspect-ratio:1.9;object-fit:cover;border-radius:8px;margin-bottom:14px}
.st-home .st-note-section{padding-bottom:20px}
.st-home .st-note-section .note-card-body>span:last-child{display:none}
.st-home .st-note-section h2{font-size:18px}
/* Existing reading pages: retain content and controls, normalize the surrounding layout. */
body.st-reading .site-shell,body.st-reading>.shell{max-width:1160px;margin:auto;padding:0 28px}
body.st-reading>main{max-width:900px;margin:auto;padding:42px 28px 0}
body.st-reading .article-hero{padding:36px 0;gap:28px;min-height:0}
body.st-reading .article-hero h1,body.st-reading main>h1,body.st-reading .hero h1{font-size:clamp(28px,3.6vw,40px);line-height:1.4;letter-spacing:-.03em;text-wrap:balance}
body.st-reading .article-body{font-size:15px;line-height:2;box-shadow:none}
body.st-reading .article-body h2{font-size:23px;line-height:1.6;letter-spacing:-.02em}
body.st-reading .article-visual{box-shadow:none;border-radius:12px;background:var(--ks-surface-2)}
body.st-reading .article-visual img{height:auto;object-fit:contain}
body.st-reading .hero{padding-top:12px;padding-bottom:28px;min-height:0}
body.st-reading .entry{box-shadow:none;border-radius:10px;border-color:var(--ks-border)}
body.st-reading .content{box-shadow:none;border-radius:10px}
/* Tool workspace: do not alter previews, game canvases, or output colors. */
body.st-tool>main{padding-top:28px}
body.st-tool main>.hero{padding:22px 24px;box-shadow:none}
body.st-tool main>.hero h1{font-size:28px;line-height:1.45}
body.st-tool .card{box-shadow:none}
.st-tool-guide{max-width:1120px;margin:0 auto;padding:12px 24px 0;font-size:12px;color:var(--ks-muted);display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap}
.st-tool-guide a{color:var(--ks-accent);text-decoration:none}
/* Product detail: show the actual screen without distortion. */
body.st-shortcut .st-product-hero{max-width:1160px;margin:auto;padding:48px 28px;display:grid;grid-template-columns:.85fr 1.15fr;gap:46px;align-items:center}
.st-product-hero .st-app-icon{width:64px;height:64px;border-radius:15px;margin-bottom:22px}
.st-product-hero h1{font-size:clamp(30px,3.6vw,46px);line-height:1.45;margin:0 0 18px;letter-spacing:-.04em}
.st-product-hero .st-app-lead{font-size:15px;color:var(--ks-muted);margin:0 0 22px}
.st-product-hero .st-app-meta{font-size:12px;color:var(--ks-muted);margin:14px 0 0}
.st-product-hero figure{margin:0;background:var(--ks-soft);padding:24px;border-radius:16px}
.st-product-hero figure img{display:block;width:100%;height:auto;border-radius:9px}
.st-product-hero figcaption{font-size:12px;color:var(--ks-muted);margin-top:14px}
.st-product-hero .st-zoom{display:inline-block;margin-top:8px;font-size:12px}
.st-product-hero button.st-zoom{font:inherit;font-size:12px;background:none;color:var(--ks-accent);padding:5px 0;border:0;border-bottom:1px solid var(--ks-accent);cursor:pointer}
.st-embedded .st-header,.st-embedded .st-footer,.st-embedded .st-tool-guide{display:none!important}
body.st-tool>.hero{padding:24px;max-width:1120px;margin:0 auto;box-shadow:none}
body.st-tool>.hero h1{font-size:30px;line-height:1.4}
.st-feature-visual figcaption>a{white-space:nowrap;flex-shrink:0}
.st-product-actions{flex-wrap:wrap}
.st-prose{max-width:900px!important}
.st-prose p,.st-prose li{font-size:15px;line-height:2;color:var(--ks-muted)}
.st-prose ul{padding-left:22px}
.st-prose p{margin:0 0 18px}
.st-prose .st-actions{margin:20px 0}
body.st-reading .article-lead{font-size:15px;color:var(--ks-muted);line-height:1.9}
body.st-reading .article-image{margin:0;background:var(--ks-surface-2);border-radius:12px;overflow:hidden}
body.st-reading .article-image img{height:auto;max-height:280px;width:100%;object-fit:contain}
body.st-reading .article-image figcaption{font-size:12px;padding:12px 16px;line-height:1.7;color:var(--ks-muted)}
body.st-reading .button-row .button{border-radius:8px;box-shadow:none}
body.st-tool>.hdr{background:var(--ks-surface);color:var(--ks-ink);box-shadow:none;position:relative}
body.st-tool>header:not(.st-header){position:relative;top:auto;box-shadow:none}
body.st-tool #qr_tool .qt-hdr{background:var(--ks-surface);color:var(--ks-ink);padding:20px 16px;min-height:64px;border-bottom:1px solid var(--ks-border)}
body.st-tool #qr_tool .qt-hdr a{color:var(--ks-accent)!important}
body.st-kids .wrapper{max-width:1040px;padding:24px;margin:auto}
body.st-kids .wrapper>header{padding:20px 0 28px;min-height:0}
body.st-kids .wrapper>header h1{font-size:36px;line-height:1.3;color:var(--ks-accent)}
body.st-kids .wrapper>header h1::before,body.st-kids .wrapper>header h1::after{display:none}
body.st-kids .wrapper .card{box-shadow:none}
body.st-kids .wrapper *{animation:none}
@media(max-width:640px){body.st-kids .wrapper{padding:20px}body.st-reading .article-image img{max-height:200px}.st-prose p,.st-prose li{font-size:14px}}
body.st-shortcut .sec{padding:38px 0;box-shadow:none;background:transparent}
body.st-shortcut .sec.alt{background:var(--ks-surface)}
body.st-shortcut .sec h2{font-size:24px;line-height:1.5}
body.st-shortcut .step{border-radius:10px}
body.st-shortcut .btn{border-radius:8px}
.studio-page dialog.st-image-dialog{padding:20px;border:1px solid var(--ks-border);border-radius:12px;background:var(--ks-surface);color:var(--ks-ink);max-width:96vw;max-height:94vh;margin:auto}
.st-image-dialog::backdrop{background:#101620b3}
.st-image-dialog img{display:block;max-height:78vh;width:auto;height:auto;max-width:100%}
.st-image-dialog button{float:right;font:inherit;font-size:14px;padding:8px 16px;margin-bottom:12px;cursor:pointer;border:1px solid var(--ks-border);border-radius:6px;background:var(--ks-surface);color:var(--ks-ink)}
@media(max-width:900px){.st-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.st-home-hero{gap:28px}.st-header .st-links{gap:16px}.st-home .note-card-grid{grid-template-columns:1fr 1fr}.st-home .note-card:last-child{grid-column:1/-1}body.st-shortcut .st-product-hero{grid-template-columns:1fr;max-width:800px}.st-home-hero h1{font-size:36px}}
@media(max-width:640px){.st-header .st-nav{padding:16px 20px;display:block;min-height:0}.st-header .st-links{gap:8px 16px;flex-wrap:wrap;margin-top:12px;padding-bottom:2px}.st-header .st-links a{font-size:12px}.st-header .st-brand{font-size:18px}body.studio-page .st-main{padding:0 20px}.st-home-hero{grid-template-columns:1fr;padding:34px 0;gap:26px}.st-home-hero h1{font-size:36px}.st-feature-visual{padding:20px}.st-grid{grid-template-columns:1fr}.st-product{padding:22px}.st-intro{padding:32px 0 24px}.st-intro h1{font-size:30px}.st-section{padding:26px 0}.st-section-head h2{font-size:21px}.st-section-head a{font-size:12px}.st-home .note-card-grid{grid-template-columns:1fr}.st-home .note-card{padding-bottom:18px;border-bottom:1px solid var(--ks-hair)}.st-filters{gap:7px}.st-filters button{padding:8px 11px}.st-footer .st-footer-inner{padding:28px 20px}.st-footer .st-footer-links{gap:8px 16px}body.st-reading>.shell,body.st-reading .site-shell{padding:0 20px}body.st-reading>main{padding:28px 20px 0}body.st-shortcut .st-product-hero{padding:32px 20px;gap:24px}.st-product-hero h1{font-size:32px}.st-product-hero figure{padding:14px}body.st-reading .article-hero{grid-template-columns:1fr}.st-section-head{align-items:center}}
@media(prefers-reduced-motion:reduce){.studio-page *{scroll-behavior:auto;animation:none!important;transition:none!important}}
