:root{color-scheme:dark;--blue:#37bef0;--bg:#090909;--muted:#aaa}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:#f4f4f4;font-family:Arial,'Hiragino Kaku Gothic ProN',Meiryo,sans-serif;line-height:1.8}a{color:inherit;text-decoration:none}a:hover{color:var(--blue)}a:focus-visible,button:focus-visible{outline:2px solid var(--blue);outline-offset:4px}header{display:flex;align-items:center;justify-content:space-between;padding:12px 5%;border-bottom:1px solid #282828;background:#080808;position:sticky;top:0;z-index:5}.brand img{width:82px;height:65px;object-fit:contain;display:block}nav{display:flex;gap:30px;font-size:14px}nav a[aria-current]{color:var(--blue)}.menu{display:none}main{max-width:1440px;margin:auto;padding:48px 5% 80px}h1,h2,h3{line-height:1.45}h1{font-size:clamp(28px,4vw,52px);font-weight:500;margin:0 0 36px}h2{font-size:25px;color:var(--blue);font-weight:500;letter-spacing:.08em;margin:0 0 24px}section{margin-bottom:64px}.hero-logo{text-align:center;padding:8px 0 28px}.hero-logo img{width:min(240px,65vw);height:170px;object-fit:contain}.mosaic{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:190px;gap:8px}.mosaic .work:first-child{grid-column:span 2;grid-row:span 2}.mosaic .work:nth-child(4){grid-row:span 2}.work{position:relative;display:block;overflow:hidden;background:#171717;min-width:0}.work img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s,opacity .35s}.work:hover img{transform:scale(1.035);opacity:.85}.work span{position:absolute;bottom:0;left:0;right:0;padding:32px 12px 12px;background:linear-gradient(transparent,#000e);font-size:14px;line-height:1.5}.works{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.works .work{aspect-ratio:3/4}.works .work img{object-fit:contain}.categories{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:48px}.categories a,.cta{border:1px solid #555;padding:10px 20px;display:inline-block}.cta{border-color:var(--blue);color:var(--blue)}section[id]{scroll-margin-top:110px}.profile{display:grid;grid-template-columns:220px 1fr;gap:48px;align-items:center;border-top:1px solid #333;padding-top:40px}.profile img{width:100%;height:auto}.detail{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px;margin-top:35px}.detail-images{display:grid;gap:16px}.detail-images img{width:100%;max-height:760px;object-fit:contain;background:#111}.category,.back{color:var(--blue)}.prose{max-width:900px}.prose img,.prose iframe{max-width:100%;height:auto}.prose iframe{width:100%;height:400px}.prose figure{margin:0 0 30px}.prose table{border-collapse:collapse;width:100%;overflow-wrap:anywhere}.prose th,.prose td{padding:14px;border-bottom:1px solid #444;text-align:left}.prose a{color:var(--blue)}footer{border-top:1px solid #333;padding:30px 5%;display:flex;flex-wrap:wrap;gap:18px;font-size:13px;color:var(--muted);overflow-wrap:anywhere}footer small{width:100%}dialog{background:#090909;border:1px solid #555;padding:45px 15px 15px;max-width:95vw;max-height:95vh}dialog::backdrop{background:#000d}dialog img{max-width:85vw;max-height:78vh;display:block}dialog button{position:absolute;right:10px;top:5px;background:none;color:white;border:0;font-size:28px;cursor:pointer}@media(max-width:700px){header{padding:8px 5%}.brand img{width:64px;height:48px}.menu{display:block;background:none;border:1px solid #555;color:white;padding:8px}nav{display:none;position:absolute;top:100%;left:0;right:0;background:#111;padding:20px;flex-direction:column;gap:15px}nav.open{display:flex}main{padding-top:28px}.mosaic{grid-template-columns:repeat(2,1fr);grid-auto-rows:135px}.mosaic .work:nth-child(4){grid-row:span 1}.works{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.profile,.detail{grid-template-columns:1fr;gap:20px}.profile img{max-width:180px}.detail>div:last-child{grid-row:1}.hero-logo img{height:125px}.work span{font-size:12px}.prose th,.prose td{padding:8px;font-size:14px}section{margin-bottom:40px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

footer{justify-content:center;text-align:center}footer small{width:auto;font-size:13px}.work-role{font-size:clamp(16px,2vw,22px);color:var(--blue);margin-top:24px}.work .card-role{display:block;color:#fff;font-size:12px;margin-top:4px}

/* Version 2 */
.brand img{width:72px;height:62px}.hero-logo{padding:0}.hero-logo h1{margin:0}.hero-logo img{display:block;margin:auto;width:min(320px,72vw);height:auto}.hero{margin-bottom:44px}.profile{display:flex;flex-direction:column;gap:18px;text-align:center;padding-top:30px}.profile h2{margin:0}.profile img{width:207px;max-width:65vw;height:auto}.profile p{margin:0 0 24px;line-height:2}.profile h3{margin:12px 0}.social{display:flex;justify-content:center;gap:30px}.social a{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:12px}.social svg{width:27px;height:27px}.topics,.home-works{text-align:center}.topics ul{list-style:none;padding:0;margin:0 auto;max-width:760px;text-align:left}.topics li{border-bottom:1px solid #333;padding:14px 8px}.topics li:first-child{border-top:1px solid #333}.mosaic{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:clamp(135px,19vw,270px);grid-auto-flow:dense;gap:8px;text-align:left}.mosaic .work:nth-child(4){grid-row:span 1}.mosaic .work img{object-fit:contain}.mosaic .work span,.works .work span{background:#090909e8;padding:10px 12px}.home-works .cta{margin-top:28px}.prose{margin-inline:auto}.work-role{white-space:pre-line}.work .card-role{white-space:normal}.works .work{display:flex;flex-direction:column;aspect-ratio:auto}.works .work img{height:auto;aspect-ratio:3/4;object-fit:contain}.works .work span{position:static;flex:1}.mosaic .work{display:flex;flex-direction:column}.mosaic .work img{flex:1;min-height:0;height:0}.mosaic .work span{position:static}.mosaic .work:last-child{grid-column:span 2}@media(max-width:700px){.brand img{width:56px;height:48px}.hero-logo img{width:min(240px,72vw);height:auto}.mosaic{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:190px}.mosaic .work:last-child{grid-column:span 1}.mosaic .work:first-child{grid-row:span 1}.mosaic .work:nth-child(2){grid-column:span 1}.mosaic .work:last-child{grid-column:span 2}.profile{gap:14px}.profile p{font-size:14px}}

.mosaic .work:last-child{grid-column:span 1}

/* Version 3 */
.brand img{width:95px;height:72px}.hero-logo img{width:min(440px,85vw);height:auto}.hero{margin-bottom:28px}.profile{padding-top:24px}.social svg{display:block;width:28px;height:28px;flex:none}.social a{min-width:44px;min-height:44px;justify-content:center}.topic-link{display:block;padding:4px 0}.topic-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:13px}.topic-meta time{color:var(--blue)}.topic-genre{border:1px solid #666;border-radius:3px;padding:0 8px;color:#fff;font-size:12px}.topic-title{font-size:17px;font-weight:500;margin-top:5px;overflow-wrap:anywhere}.topic-role{font-size:14px;color:#ddd}.topics li{padding:14px 8px}.topic-link:hover .topic-title{color:var(--blue)}
@media(max-width:700px){header{padding:8px 14px}.brand img{width:75px;height:54px}main{padding:20px 14px 48px}.hero-logo img{width:min(360px,84vw);height:auto}.hero{margin-bottom:20px}.profile{padding-top:20px}.topic-title{font-size:16px}.topics li{padding:12px 4px}.social{gap:22px}}
