:root{
  color-scheme:light;
  --shelf-ink:#141414;--shelf-muted:#696969;--shelf-rail:#f8f8f8;--shelf-active:#eaeaea;--shelf-line:#e7e7e7;
  font-family:Inter,"Segoe UI","Hiragino Kaku Gothic ProN","Yu Gothic UI",Meiryo,sans-serif;
  color:var(--shelf-ink);background:#ffffff;font-synthesis:none;-webkit-font-smoothing:antialiased;
}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;min-width:0}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
[hidden]{display:none!important}
:focus-visible{outline:2px solid #4172c7;outline-offset:4px}
.shelf-skip{position:fixed;top:8px;left:8px;z-index:4;transform:translateY(-160%);padding:10px 15px;border-radius:8px;color:white;background:#191919}
.shelf-skip:focus{transform:none}
.shelf-app{min-height:100vh;min-height:100svh;display:grid;grid-template-columns:clamp(184px,15.3vw,232px) minmax(0,1fr)}
.shelf-sidebar{position:sticky;top:0;align-self:start;min-height:100vh;min-height:100svh;padding:24px 12px;background:var(--shelf-rail)}
.shelf-brand{display:inline-flex;align-items:center;gap:8px;margin:0 8px;font-size:33px;line-height:1.15;letter-spacing:-.071em;font-weight:650}
.shelf-brand svg{display:block;width:34px;height:34px}
.shelf-nav{display:grid;gap:4px;margin-top:47px}
.shelf-nav a{display:flex;align-items:center;gap:13px;padding:10px 12px;min-height:39px;border-radius:8px;font-size:14px;font-weight:560;transition:background .15s}
.shelf-nav a:hover{background:#efefef}
.shelf-nav a[aria-current="page"]{background:var(--shelf-active);color:#060606}
.shelf-nav svg{width:18px;height:18px;flex:none}
.shelf-main{min-width:0;padding:0 clamp(24px,3.4vw,58px) 76px;outline:none}
.shelf-top{display:flex;align-items:center;justify-content:flex-end;height:64px}
#shelf-language{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:8px;color:#545454;font-size:13px;font-weight:550}
#shelf-language:hover{background:#f3f3f3;color:#181818}
#shelf-language svg{width:16px;height:16px}
.shelf-collection{width:100%;max-width:1360px;margin:auto}
.shelf-heading{padding:clamp(20px,4.2vh,48px) 0 clamp(28px,4.8vh,54px);text-align:center}
.shelf-title-line{display:inline-flex;align-items:center;gap:10px}
#shelf-title{margin:0;line-height:1.18;font-weight:730;letter-spacing:-.05em;font-size:clamp(31px,3.2vw,52px)}
html:lang(ja) #shelf-title{letter-spacing:-.065em}
#shelf-count{color:var(--shelf-muted);font-size:14px;font-variant-numeric:tabular-nums}
#shelf-count:empty{display:none}
#shelf-local-note{display:none;margin:9px 0 0;color:var(--shelf-muted);font-size:14px}
body[data-view="projects"] #shelf-local-note{display:block}
.shelf-cards{display:grid;align-items:start;gap:32px 22px;grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr))}
body:not([data-view="projects"]) .shelf-cards{max-width:960px;margin:auto;grid-template-columns:1fr}
.shelf-card{position:relative;min-width:0}
.shelf-open{display:block;border-radius:13px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.shelf-image{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;isolation:isolate;border-radius:13px;background:#f0f0f0}
.shelf-image::after{content:"";position:absolute;inset:0;border:1px solid rgb(0 0 0 / .055);border-radius:inherit;pointer-events:none}
.shelf-image>img,.shelf-image>video{display:block;width:100%;height:100%;object-fit:cover;transition:transform .27s cubic-bezier(.2,.65,.2,1)}
body:not([data-view="projects"]) .shelf-image>img,body:not([data-view="projects"]) .shelf-image>video{object-position:right center;transform-origin:90% 90%}
.shelf-caption{position:relative;display:grid;min-width:0;gap:5px;padding:15px 40px 2px 1px;line-height:1.4}
.shelf-caption strong,.shelf-caption small{display:block;min-width:0;overflow-wrap:anywhere}
.shelf-caption strong{font-size:16px;letter-spacing:-.025em;font-weight:650}
.shelf-caption small{font-size:13px;font-weight:400;color:var(--shelf-muted)}
body:not([data-view="projects"]) .shelf-caption strong{font-size:clamp(20px,1.7vw,27px)}
body:not([data-view="projects"]) .shelf-caption::after{content:"→";position:absolute;right:1px;top:16px;display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--shelf-line);border-radius:50%;font:19px/1 system-ui;transition:color .15s,background .15s}
body:not([data-view="projects"]) .shelf-open:is(:hover,:focus-visible) .shelf-caption::after{color:white;background:#171717;border-color:#171717}
.shelf-rename{position:absolute;right:0;bottom:3px;display:grid;place-items:center;width:33px;height:33px;padding:0;border:0;border-radius:8px;color:#555555;background:#f1f1f1;cursor:pointer}
.shelf-rename:hover{color:#111111;background:#e7e7e7}
.shelf-rename svg{width:16px;height:16px}
.shelf-name{display:block;width:calc(100% - 40px);min-height:38px;margin-top:9px;padding:7px 11px;border:1px solid #c4c4c4;border-radius:7px;color:var(--shelf-ink);background:white;font-size:15px}
#shelf-empty{max-width:620px;margin:clamp(32px,9vh,85px) auto 0;text-align:center;color:var(--shelf-muted);font-size:15px}
.shelf-start{display:inline-flex;align-items:center;margin-top:17px;padding:10px 17px;border-radius:999px;background:#161616;color:white;font-size:14px;font-weight:580}
.shelf-start:hover{background:#363636}
#shelf-status{margin:20px auto 0;color:var(--shelf-muted);font-size:14px;text-align:center;overflow-wrap:anywhere}
#shelf-status:empty{display:none}
@media(hover:hover){.shelf-open:hover .shelf-image>img,.shelf-open:hover .shelf-image>video{transform:scale(1.012)}}
@media(max-width:700px){
  .shelf-app{display:block}
  .shelf-sidebar{position:relative;min-height:0;padding:15px 16px 10px;border-bottom:1px solid var(--shelf-line)}
  .shelf-brand{margin:0;font-size:27px;gap:6px}
  .shelf-brand svg{width:28px;height:28px}
  .shelf-nav{display:flex;gap:8px;margin-top:15px}
  .shelf-nav a{min-height:38px;padding:8px 12px;gap:7px}
  .shelf-main{padding:0 16px 52px}
  .shelf-top{position:absolute;top:10px;right:12px;height:37px}
  .shelf-heading{padding:31px 0 24px;text-align:start}
  #shelf-title{font-size:32px}
  .shelf-cards{gap:24px 13px;grid-template-columns:repeat(auto-fit,minmax(min(100%,175px),1fr))}
  .shelf-image,.shelf-open{border-radius:10px}
  .shelf-caption{padding-top:11px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important}}

.shelf-nav .shelf-create{margin-bottom:12px;color:#ffffff;background:#181818}.shelf-nav .shelf-create:hover{background:#303030}
.shelf-app{grid-template-columns:var(--shelf-width,212px) minmax(0,1fr)}
.shelf-sidebar{min-width:0;overflow:hidden;padding-inline:10px}
.shelf-rail-top{position:relative;display:flex;align-items:center;min-height:44px;margin-bottom:12px}
.shelf-brand{margin:0 6px;white-space:nowrap;font-size:26px;gap:4px}
.shelf-brand svg{width:26px;height:26px;flex:none}
.shelf-brand span,.shelf-nav a span{display:inline-block;white-space:nowrap}
#shelf-collapse{position:absolute;right:0;top:4px;width:36px;height:36px;display:grid;place-items:center;padding:0;background:#e9e9e9;color:#242424;cursor:pointer}
#shelf-collapse span{display:block;font:27px/1 system-ui}
.shelf-nav{position:relative;margin-top:34px}
.shelf-nav a{position:relative;z-index:1;min-height:44px;padding-inline:11px;white-space:nowrap;overflow:hidden}
.shelf-nav a[aria-current=page]{background:transparent}
.shelf-rail-highlight{position:absolute;inset:0 0 auto;border-radius:9px;background:#e8e8e8;pointer-events:none}
.shelf-app[data-sidebar-open=false] .shelf-brand{visibility:hidden}
.shelf-app[data-sidebar-open=false] #shelf-collapse{right:4px}
body[data-view=account] .fb-profile,.shelf-app .fb-profile,.shelf-app .fb-rewards{border:0;box-shadow:none;background:#f5f5f5;color:#171717;border-radius:18px}
.fb-profile h2{display:grid;grid-template-columns:auto minmax(0,1fr) auto}
.fb-profile-points{display:grid;justify-items:end;gap:4px;margin-left:12px}
.fb-profile-points .fb-point-balance{font:650 clamp(17px,3vw,24px)/1.1 system-ui;color:#2359ba;white-space:nowrap}
.fb-earn,.fb-account-back{font:600 12px/1.4 system-ui;color:#2359ba;background:#e7edf9;border-radius:8px;padding:5px 10px}
.fb-earn:hover,.fb-account-back:hover{background:#dce7fb}
.fb-account-back{display:table;margin:0 auto 12px}
.shelf-app .fb-rewards{max-width:660px;margin:0 auto;padding:22px}
.shelf-app .fb-rewards p{color:#424242;font-size:14px}
@media(max-width:700px){
 .shelf-app{display:grid}
 .shelf-sidebar{position:sticky;min-height:100svh;padding:10px;border:0}
 .shelf-app{grid-template-columns:clamp(64px,var(--shelf-width,64px),43vw) minmax(0,1fr)}
 .shelf-app .shelf-nav{display:grid;overflow:visible;margin-top:14px}
 .shelf-top{position:static;height:45px}
 .shelf-brand{font-size:20px}
 .shelf-brand span{max-width:58px}
 .fb-profile h2{gap:6px;font-size:18px}
}
.shelf-restore{display:inline-flex;padding:8px 13px;margin:0 8px 16px 0;cursor:pointer}
.shelf-restore+output{font-size:12px;color:#545454}

.shelf-app :is(.fb-profile,.fb-rewards) .fb-action,.shelf-app .fb-dialog :is(.fb-field input,.fb-field textarea,.fb-action){border:0;background:#e9e9e9}
.shelf-app :is(.fb-profile,.fb-rewards) .fb-action:hover,.shelf-app .fb-dialog .fb-action:hover{background:#dfdfdf}
.shelf-app .fb-dialog .fb-primary{background:#181818}.shelf-app .fb-dialog .fb-primary:hover{background:#353535}
