:root { --ink:#11110f; --paper:#f5f3ed; --white:#fff; --lime:#d9ff3f; --muted:#6b6b63; --line:#d9d7cf; --purple:#7357ff; font-family: Inter, "Noto Sans JP", system-ui, sans-serif; color:var(--ink); background:var(--paper); }
* { box-sizing:border-box; }
body { margin:0; min-width:320px; font-size:16px; }
.auth-gate { min-height:100vh; display:grid; place-items:center; padding:24px; background:radial-gradient(circle at 76% 20%,rgba(217,255,63,.75),transparent 24%),var(--paper); }.auth-gate[hidden] { display:none; }.auth-card { width:min(520px,100%); padding:46px; border:1px solid var(--line); border-radius:22px; background:white; box-shadow:0 30px 80px rgba(17,17,15,.12); }.auth-card .brand-mark { margin-bottom:35px; }.auth-card h1 { margin:0; font-size:clamp(2.8rem,8vw,5rem); line-height:.92; letter-spacing:-.06em; }.auth-card>p:not(.eyebrow,.auth-error) { color:var(--muted); line-height:1.8; }.auth-card>button { width:100%; min-height:52px; display:flex; justify-content:center; align-items:center; gap:10px; margin-top:24px; border:1px solid var(--line); border-radius:10px; background:var(--ink); color:white; font-weight:800; cursor:pointer; }.auth-card>button svg { stroke:none; fill:currentColor; }.auth-error { min-height:24px; color:#b42318; font-size:.82rem; }.user-menu { margin-left:auto; display:flex; align-items:center; gap:10px; font-size:.78rem; }.user-menu[hidden] { display:none; }.user-menu a,.user-menu button { min-height:38px; padding:8px 11px; border:1px solid var(--line); border-radius:8px; background:white; color:var(--ink); text-decoration:none; cursor:pointer; }.user-menu a { background:var(--ink); color:white; }
button,input { font:inherit; }
button { color:inherit; }
button:focus-visible,a:focus-visible,input:focus-visible { outline:3px solid var(--purple); outline-offset:3px; }
svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.app-shell { min-height:100vh; display:grid; grid-template-columns:260px 1fr; }
.sidebar { position:sticky; top:0; height:100vh; background:var(--ink); color:white; padding:32px 22px 24px; display:flex; flex-direction:column; z-index:20; }
.brand { display:flex; gap:12px; align-items:center; color:white; text-decoration:none; margin-bottom:48px; }
.brand-mark { width:42px; height:42px; border-radius:11px; display:grid; place-items:center; background:var(--lime); color:var(--ink); font-weight:900; transform:rotate(-4deg); }
.brand strong,.brand small { display:block; }.brand small { margin-top:3px; font-size:.72rem; letter-spacing:.18em; color:#aaa; }
nav { display:grid; gap:7px; }
.nav-item { width:100%; border:0; border-radius:10px; background:transparent; color:#bbb; padding:13px 14px; text-align:left; cursor:pointer; display:flex; justify-content:space-between; }
.nav-item:hover,.nav-item.active { background:#292925; color:white; }.nav-item.active { box-shadow:inset 3px 0 var(--lime); }
.sidebar-note { margin-top:auto; padding:18px; border:1px solid #3b3b36; border-radius:14px; }.sidebar-note p { color:#aaa; font-size:.85rem; line-height:1.7; margin:8px 0 0; }
.internal-label { margin:22px 4px 0; color:#676760; font-size:.7rem; letter-spacing:.16em; }
main { min-width:0; }.topbar { height:76px; padding:0 clamp(20px,5vw,72px); display:flex; align-items:center; border-bottom:1px solid var(--line); }
.menu-button { display:none; width:44px; height:44px; place-items:center; border:0; background:none; }
.search-box { width:min(620px,100%); height:44px; display:flex; align-items:center; gap:10px; padding:0 14px; background:white; border:1px solid var(--line); border-radius:10px; }
.search-box>svg { width:18px; height:18px; color:var(--muted); }.search-box input { flex:1; min-width:0; border:0; outline:0; background:transparent; }.search-box:focus-within { border-color:var(--ink); box-shadow:0 0 0 3px rgba(17,17,15,.08); }
kbd { border:1px solid var(--line); border-bottom-width:2px; padding:2px 7px; border-radius:5px; color:var(--muted); font-size:.75rem; }
.hero { padding:clamp(54px,8vw,110px) clamp(20px,7vw,100px) 64px; border-bottom:1px solid var(--line); background:radial-gradient(circle at 88% 18%,rgba(217,255,63,.6),transparent 22%),var(--paper); }
.eyebrow { font-size:.78rem; letter-spacing:.2em; font-weight:800; margin:0 0 18px; }.hero h1 { max-width:860px; font-size:clamp(2.6rem,6vw,5.7rem); line-height:.98; letter-spacing:-.055em; margin:0; }
.hero h1 em { font-family:Georgia,serif; font-weight:400; text-decoration:underline; text-decoration-color:var(--purple); text-decoration-thickness:6px; text-underline-offset:8px; }
.hero>p:not(.eyebrow) { max-width:650px; margin:28px 0; color:var(--muted); line-height:1.8; font-size:1.05rem; }.hero-meta { display:flex; gap:28px; color:var(--muted); font-size:.9rem; }.hero-meta strong { color:var(--ink); }
.library { padding:58px clamp(20px,7vw,100px) 100px; }.section-heading { display:flex; justify-content:space-between; align-items:end; gap:20px; }.section-heading h2 { font-size:clamp(1.8rem,3vw,2.5rem); margin:0; }.section-heading .eyebrow { margin-bottom:8px; }.section-heading>p { color:var(--muted); }
.filters { display:flex; flex-wrap:wrap; gap:8px; margin:28px 0; }.filter { padding:9px 17px; border:1px solid var(--line); background:transparent; border-radius:999px; cursor:pointer; }.filter:hover,.filter.active { background:var(--ink); color:white; border-color:var(--ink); }
.manual-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }.manual-card { background:white; border:1px solid var(--line); border-radius:16px; padding:22px; transition:.2s ease; }.manual-card:hover { transform:translateY(-3px); box-shadow:0 14px 28px rgba(17,17,15,.08); border-color:#aaa; }
.card-topline { display:flex; justify-content:space-between; }.category { display:inline-flex; width:max-content; padding:5px 10px; background:var(--lime); border-radius:5px; font-size:.76rem; font-weight:800; }.star { border:0; background:none; font-size:1.4rem; color:#aaa; cursor:pointer; }.star.active { color:var(--purple); }
.card-link { display:block; width:100%; padding:0; border:0; background:none; text-align:left; cursor:pointer; }.card-link h3 { font-size:1.35rem; letter-spacing:-.02em; margin:22px 0 10px; }.card-link>p { min-height:52px; color:var(--muted); line-height:1.65; margin:0; }.card-meta,.progress-row { display:flex; gap:14px; color:var(--muted); font-size:.78rem; }.card-meta { margin-top:24px; }.progress-row { justify-content:space-between; margin-top:20px; }.progress-track { height:5px; background:#ecebe5; border-radius:10px; margin-top:7px; overflow:hidden; }.progress-track span { display:block; height:100%; background:var(--purple); }
.empty-state { text-align:center; padding:60px 20px; border:1px dashed var(--line); border-radius:16px; color:var(--muted); }.empty-state strong { color:var(--ink); }
dialog { width:calc(100% - 28px); max-width:1500px; height:calc(100% - 28px); max-height:none; padding:0; border:0; border-radius:18px; box-shadow:0 30px 80px rgba(0,0,0,.3); }dialog::backdrop { background:rgba(12,12,10,.72); backdrop-filter:blur(6px); }.dialog-layout { min-height:100%; background:var(--white); }.dialog-topbar { position:sticky; top:0; z-index:20; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; padding:12px 18px; background:rgba(255,255,255,.94); backdrop-filter:blur(12px); border-bottom:1px solid var(--line); }.dialog-brand { display:flex; align-items:center; gap:10px; font-size:.75rem; letter-spacing:.16em; }.dialog-brand .brand-mark { width:34px; height:34px; }.icon-button,.favorite-button { min-height:44px; border:1px solid var(--line); background:white; border-radius:8px; padding:8px 14px; cursor:pointer; }.icon-button { width:44px; display:grid; place-items:center; }.favorite-button { justify-self:end; }.favorite-button.active { background:var(--ink); color:white; }
.detail-header { min-height:470px; padding:70px clamp(24px,11vw,170px) 64px; display:flex; flex-direction:column; justify-content:end; background:radial-gradient(circle at 78% 32%,rgba(115,87,255,.2),transparent 22%),linear-gradient(135deg,#f5f3ed 0 64%,#d9ff3f 64%); border-bottom:1px solid var(--line); }.article-kicker { order:-2; margin:0 0 auto!important; color:var(--ink)!important; font-size:.75rem; font-weight:800; letter-spacing:.18em; }.detail-header .category { order:-1; }.detail-header h2 { max-width:1000px; font-size:clamp(2.7rem,6vw,6.2rem); line-height:.94; letter-spacing:-.06em; margin:22px 0; text-wrap:balance; }.detail-header>p:not(.article-kicker) { max-width:720px; color:#41413d; line-height:1.8; font-size:1.08rem; }.detail-facts { display:none; }
.article-layout { display:grid; grid-template-columns:210px minmax(0,780px) 180px; justify-content:center; gap:clamp(30px,5vw,80px); padding:80px clamp(24px,5vw,80px) 110px; }.article-toc,.article-rail { position:sticky; top:95px; align-self:start; }.article-toc>p { margin:0 0 16px; font-size:.75rem; font-weight:800; letter-spacing:.12em; }.article-toc a { display:flex; gap:12px; padding:12px 0; border-top:1px solid var(--line); color:var(--muted); font-size:.82rem; line-height:1.4; text-decoration:none; }.article-toc a:hover { color:var(--ink); }.article-toc a span { color:var(--purple); font-family:ui-monospace,monospace; }.article-rail { display:grid; gap:0; border-top:2px solid var(--ink); }.article-rail>div { display:grid; gap:5px; padding:15px 0; border-bottom:1px solid var(--line); }.article-rail small { color:var(--muted); font-size:.68rem; letter-spacing:.12em; }.article-rail strong { font-size:.82rem; }.article-rail>p { color:var(--muted); font-size:.76rem; line-height:1.7; }
.detail-body { min-width:0; }.article-section { margin:0 0 100px; scroll-margin-top:100px; }.section-number { width:48px; height:48px; display:grid; place-items:center; margin-bottom:22px; border-radius:50%; background:var(--ink); color:var(--lime); font-family:ui-monospace,monospace; font-size:.8rem; }.detail-body h3 { font-size:clamp(1.65rem,3vw,2.25rem); letter-spacing:-.035em; margin:0 0 20px; }.detail-body .article-section>p { max-width:720px; margin:0; color:#41413d; font-size:1.04rem; line-height:2; word-break:auto-phrase; }.article-note { margin:30px 0; padding:20px 22px; border-left:4px solid var(--purple); background:#f2efff; }.article-note strong { display:block; margin-bottom:7px; font-size:.83rem; }.article-note p { margin:0; color:#45405c; line-height:1.7; }
.manual-shot { margin:38px 0 0; }.shot-stage,.shot-placeholder>div { display:grid; place-items:center; width:100%; min-height:360px; padding:32px; overflow:hidden; border:1px solid #bcbab2; border-radius:12px; background:#ebe9e2; box-shadow:0 18px 45px rgba(17,17,15,.12); }.manual-shot img { display:block; width:100%; border-radius:7px; }.manual-shot.portrait .shot-stage { background:linear-gradient(145deg,#e1ded5,#f8f7f3); }.manual-shot.portrait img { width:min(390px,72%); border:1px solid #b3b0a8; border-radius:26px; box-shadow:0 18px 50px rgba(17,17,15,.18); }.shot-placeholder>div { aspect-ratio:16/9; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; background-color:#f0efe9; background-image:linear-gradient(45deg,#e7e5dd 25%,transparent 25%),linear-gradient(-45deg,#e7e5dd 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e7e5dd 75%),linear-gradient(-45deg,transparent 75%,#e7e5dd 75%); background-size:20px 20px; background-position:0 0,0 10px,10px -10px,-10px 0; }.shot-placeholder>div>* { position:relative; z-index:1; }.shot-placeholder svg { width:42px; height:42px; color:var(--purple); }.shot-placeholder strong { font-size:1rem; }.shot-placeholder small { max-width:70%; padding:5px 9px; background:white; border-radius:4px; color:var(--muted); text-align:center; }.shot-placeholder>div>span { padding:4px 8px; background:var(--ink); color:white; font-size:.66rem; letter-spacing:.12em; }.manual-shot figcaption { display:flex; gap:18px; padding:13px 2px; color:var(--muted); font-size:.78rem; line-height:1.5; }.manual-shot figcaption span { flex:none; color:var(--purple); font-family:ui-monospace,monospace; font-weight:800; letter-spacing:.08em; }
.checklist { scroll-margin-top:100px; padding:32px; background:var(--ink); color:white; border-radius:14px; }.checklist .eyebrow { color:var(--lime); }.checklist h3 { margin-bottom:20px; }.checklist label { min-height:52px; display:flex; gap:12px; align-items:center; padding:12px 0; border-top:1px solid #383833; cursor:pointer; }.checklist input { flex:none; width:22px; height:22px; accent-color:var(--lime); }.checklist input:checked+span { color:#888; text-decoration:line-through; }
.scrim { position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:10; }
@media (max-width:1100px) { .article-layout { grid-template-columns:minmax(0,780px); }.article-toc,.article-rail { position:static; }.article-toc { display:flex; gap:8px; overflow:auto; padding-bottom:8px; }.article-toc>p { display:none; }.article-toc a { flex:none; padding:9px 12px; border:1px solid var(--line); border-radius:999px; }.article-rail { grid-template-columns:repeat(3,1fr); }.article-rail>p { display:none; } }
@media (max-width:860px) { .app-shell { grid-template-columns:1fr; }.sidebar { position:fixed; left:0; transform:translateX(-100%); width:min(300px,86vw); transition:.2s ease; }.sidebar.open { transform:translateX(0); }.menu-button { display:grid; margin-right:6px; }.manual-grid { grid-template-columns:1fr; }.topbar { padding:0 12px; }.hero-meta { flex-direction:column; gap:8px; } kbd { display:none; } dialog { width:100%; height:100%; border-radius:0; }.dialog-brand strong { display:none; }.dialog-topbar { padding:10px 12px; }.detail-header { min-height:440px; padding:48px 22px; background:radial-gradient(circle at 80% 18%,rgba(115,87,255,.18),transparent 24%),var(--paper); }.article-layout { padding:38px 20px 70px; gap:35px; }.article-rail { grid-template-columns:1fr; }.article-rail>div { grid-template-columns:1fr 1fr; }.article-rail>div strong { text-align:right; }.article-section { margin-bottom:70px; }.shot-stage { min-height:280px; padding:18px; }.manual-shot.portrait img { width:min(330px,88%); }.manual-shot figcaption { display:grid; gap:5px; }.shot-placeholder small { max-width:88%; }.favorite-button { font-size:.78rem; padding:8px 10px; } }
@media (prefers-reduced-motion:reduce) { * { scroll-behavior:auto!important; transition:none!important; } }
.manual-card.coming-soon { background:transparent; border-style:dashed; box-shadow:none; }.manual-card.coming-soon:hover { transform:none; box-shadow:none; }.coming-soon-badge { color:var(--purple); font-size:.68rem; font-weight:900; letter-spacing:.12em; }.static-card { cursor:default; }
.close-reader { min-height:44px; display:flex; align-items:center; gap:7px; padding:8px 14px; border:1px solid var(--line); border-radius:8px; background:white; font-weight:700; cursor:pointer; }.close-reader:hover { background:var(--ink); color:white; border-color:var(--ink); }
@media (max-width:860px) { .dialog-brand { display:none; }.dialog-topbar { grid-template-columns:auto 1fr; }.close-reader { justify-self:start; }.favorite-button { justify-self:end; } }
.image-workflow { margin-top:36px; }.download-panel { display:flex; justify-content:space-between; gap:24px; align-items:center; padding:22px; border:1px solid var(--line); border-radius:12px; background:var(--paper); }.download-panel strong { font-size:1rem; }.download-panel p { margin:5px 0 0; color:var(--muted); font-size:.82rem; }.store-links { display:flex; gap:8px; flex:none; }.store-links a,.prompt-box>a { padding:10px 14px; border-radius:8px; background:var(--ink); color:white; font-size:.8rem; font-weight:800; text-decoration:none; }.workflow-steps { display:grid; gap:18px; margin-top:24px; }.workflow-steps article { display:grid; grid-template-columns:minmax(0,1fr) 250px; align-items:center; gap:28px; padding:24px; border:1px solid var(--line); border-radius:14px; background:white; }.workflow-copy>span { color:var(--purple); font-family:ui-monospace,monospace; font-size:.7rem; font-weight:800; letter-spacing:.1em; }.workflow-copy h4 { margin:8px 0 10px; font-size:1.2rem; }.workflow-copy p { margin:0; color:var(--muted); line-height:1.7; font-size:.9rem; }.workflow-shot { padding:12px; border-radius:10px; background:#efede7; }.workflow-shot img { display:block; width:100%; max-height:430px; object-fit:contain; border-radius:7px; }.prompt-box { margin-top:24px; padding:28px; border-radius:14px; background:var(--ink); color:white; }.prompt-box .eyebrow { margin-bottom:6px; color:var(--lime); }.prompt-box h4 { margin:0 0 20px; font-size:1.25rem; }.prompt-box pre { margin:0 0 20px; padding:18px; overflow:auto; border:1px solid #3f3f39; border-radius:9px; background:#20201d; color:#eee; font:400 .9rem/1.8 system-ui,sans-serif; white-space:pre-wrap; word-break:auto-phrase; }.prompt-box button { min-height:46px; display:inline-flex; align-items:center; gap:8px; margin-right:8px; padding:10px 16px; border:0; border-radius:8px; background:var(--lime); color:var(--ink); font-weight:900; cursor:pointer; }.prompt-box>a { display:inline-flex; background:white; color:var(--ink); }
@media (max-width:680px) { .download-panel { display:grid; }.store-links { display:grid; grid-template-columns:1fr 1fr; }.store-links a { text-align:center; }.workflow-steps article { grid-template-columns:1fr; }.workflow-shot { order:-1; }.prompt-box button,.prompt-box>a { width:100%; justify-content:center; margin:0 0 8px; } }
.research-example { margin:34px 0; padding:28px; border:1px solid var(--line); border-radius:16px; background:#f8f7f2; }.example-heading .eyebrow { margin-bottom:7px; color:var(--purple); }.example-heading h4 { margin:0 0 24px; font-size:1.35rem; }.research-example figure { margin:0 0 22px; }.research-example figure img { display:block; width:100%; max-height:520px; object-fit:contain; border:1px solid #cbc8c0; border-radius:10px; background:#111; }.research-example figure figcaption { padding:9px 2px; color:var(--muted); font-size:.78rem; }.example-values { display:grid; grid-template-columns:1fr 1fr; gap:1px; margin:0 0 22px; overflow:hidden; border:1px solid var(--line); border-radius:10px; background:var(--line); }.example-values div { min-width:0; display:grid; gap:5px; padding:14px; background:white; }.example-values span { color:var(--muted); font-size:.72rem; }.example-values strong { overflow-wrap:break-word; font-size:.88rem; }.example-tip { margin:0!important; padding:16px 18px; border-radius:8px; background:#fff4cc; color:#51461c!important; font-size:.86rem!important; line-height:1.7!important; }
@media (max-width:680px) { .research-example { padding:20px 15px; }.example-values { grid-template-columns:1fr; } }
