/* Lower pages only. Approved TOP styling remains untouched. */
#subpage[hidden]{display:none!important}.subpage-active{background:#06090a}.subpage-active #main>section:not(#subpage){display:none!important}.subpage-active .header{background:var(--base)}.subpage-active .menu-backdrop{background:#101719f5}.subpage-active #main{padding-top:var(--header)}.subpage-active .footer{background:transparent}.footer a{color:inherit;text-decoration:none}.footer a:hover,.crumb a:hover{color:var(--moon)}
#subpage{width:min(1200px,calc(100% - 2 * var(--pad)));margin:auto;padding:64px 0 120px;display:flex;flex-direction:column;gap:120px;outline:none}#subpage a{color:inherit;text-decoration:none}#subpage a:focus-visible,#subpage input:focus-visible,#subpage select:focus-visible,#subpage textarea:focus-visible,.footer a:focus-visible{outline:2px solid var(--moon);outline-offset:4px}#subpage hr{width:100%;border:0;border-top:1px solid var(--border);margin:0}.crumb{display:flex;flex-wrap:wrap;gap:8px;align-items:center;color:var(--muted);font:12px/1.4 var(--en)}.sub-heading{display:flex;flex-direction:column;gap:8px}.sub-heading>p,.block-en{font:16px/1.4 var(--en);color:var(--muted)}.sub-heading h1,.sub-heading h2,.detail-intro h1{font:400 48px/1.4 var(--serif);overflow-wrap:anywhere}.sub-profile{display:flex;justify-content:space-between;align-items:center;gap:64px;padding-right:0}.profile-copy{display:flex;flex-direction:column;gap:16px;max-width:760px;min-width:0}.profile-role{color:var(--muted);font-size:16px}.profile-bio{max-width:700px;line-height:1.8}.profile-picture{width:192px;height:192px;object-fit:cover;border-radius:50%;flex:none}.profile-sns{display:flex;gap:16px;align-items:center}.profile-sns button{width:36px;height:36px;display:grid;place-items:center}.profile-sns img{width:24px;height:24px;object-fit:contain}.sub-gallery{display:grid;gap:32px}.gallery-filters{display:flex;flex-wrap:wrap;column-gap:48px;row-gap:12px;border-bottom:1px solid var(--border);padding-bottom:16px}.gallery-filters button{font:14px/1.4 var(--en);color:var(--muted);min-height:32px}.gallery-filters button[aria-pressed=true]{color:var(--moon)}
/* v38: persistent selection indicator, independent of hover and keyboard focus. */
.gallery-filters button{background-image:linear-gradient(var(--moon),var(--moon));background-repeat:no-repeat;background-position:left calc(100% - 3px);background-size:0% 1px;transition:color .3s ease,background-size .45s cubic-bezier(.22,.61,.36,1)}
.gallery-filters button[aria-pressed=true]{background-size:100% 1px}
.gallery-filters button:focus-visible{outline:2px solid var(--moon);outline-offset:3px}
@media(prefers-reduced-motion:reduce){.gallery-filters button{transition:none!important}}
.paused .gallery-filters button{transition:none!important}
.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:48px 32px;animation:gallery-in .55s ease both}.gallery-card{display:flex;flex-direction:column;gap:8px;min-width:0}.gallery-thumb{background:var(--secondary);aspect-ratio:4/3;overflow:hidden;border-radius:8px}.gallery-thumb img{width:100%;height:100%;object-fit:contain;transition:transform .72s ease,filter .72s ease}.gallery-card:hover .gallery-thumb img{transform:scale(1.04);filter:brightness(1.07)}.gallery-card:hover h3{color:var(--moon)}.gallery-category,.gallery-year{font:12px/1.4 var(--en);color:var(--muted);overflow-wrap:anywhere}.gallery-year{font-size:11px}.gallery-type{font-size:12px;color:var(--muted);line-height:1.4}.gallery-type.is-client{color:var(--moon)}.gallery-card h3{font:700 20px/1.4 var(--sans);overflow-wrap:anywhere}.art-placeholder{height:100%;display:flex;flex-direction:column;gap:8px;justify-content:center;align-items:center;text-align:center;color:var(--muted);background:var(--secondary)}.art-placeholder span:first-child{font:12px var(--en)}.art-placeholder span:last-child{font-size:11px}.sub-consult{display:flex;flex-direction:column;align-items:center;text-align:center;gap:24px}.sub-cta{width:min(280px,100%);display:flex}.sub-consult .sub-cta{text-align:left}.sub-consult>p{max-width:620px}.detail-intro{display:flex;flex-direction:column;gap:16px}.detail-category{font-size:14px;color:var(--muted)}.detail-main-art{aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;min-width:0;overflow:hidden;border-radius:8px}.detail-main-art img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;min-width:0;min-height:0;object-fit:contain;border-radius:8px}.detail-main-art>.art-placeholder{width:100%;border-radius:8px}.detail-meta{display:flex;flex-direction:column;gap:16px;margin:0}.detail-meta>div{display:flex;gap:16px;align-items:flex-start}.detail-meta dt{width:120px;flex:none;color:var(--muted);font:12px/1.8 var(--en)}.detail-meta dd{margin:0;overflow-wrap:anywhere}.detail-blocks{display:flex;flex-direction:column;gap:64px}.detail-text{display:flex;flex-direction:column;gap:16px;max-width:760px}.detail-text .block-en{font-size:14px}.detail-text h2{font:400 32px/1.45 var(--serif)}.block-body{white-space:normal;line-height:1.8}.media-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:32px}.media-grid.image2{grid-template-columns:repeat(2,minmax(0,1fr))}.media-grid.image3{grid-template-columns:repeat(3,minmax(0,1fr))}.media-grid.vertical{grid-template-columns:repeat(3,minmax(0,280px));justify-content:center}.media-grid figure{margin:0;min-width:0;display:flex;flex-direction:column;gap:8px}.media-grid img,.media-grid video{width:100%;height:auto;border-radius:8px;object-fit:contain}.media-placeholder{aspect-ratio:4/3;overflow:hidden;border-radius:8px}.video .media-placeholder{aspect-ratio:16/9}.vertical .media-placeholder{aspect-ratio:9/16}.media-grid figcaption{font-size:12px;line-height:1.35;color:var(--muted)}.contact-layout{display:grid;grid-template-columns:minmax(0,416px) minmax(0,680px);justify-content:space-between;gap:64px}.contact-intro{display:flex;flex-direction:column;gap:24px}.muted,.form-note,.demo-note{color:var(--muted)}.contact-form{display:flex;flex-direction:column;gap:24px;min-width:0}.contact-form .form-note{font-size:14px;line-height:1.75}.form-field{display:flex;flex-direction:column;gap:8px}.form-field label{font-size:16px;font-weight:700;line-height:1.4}.form-field small{font-size:12px;margin-left:8px;font-weight:400}.required{color:var(--moon)}.optional{color:var(--muted)}.form-field input,.form-field select,.form-field textarea{width:100%;min-width:0;background:var(--secondary);border:1px solid var(--border);border-radius:8px;min-height:52px;padding:12px 16px;color:var(--primary);font:400 16px/1.5 var(--sans)}.form-field textarea{min-height:208px;resize:vertical}.form-field input::placeholder,.form-field textarea::placeholder{color:var(--muted);opacity:1}.form-field select:invalid{color:var(--muted)}.form-field [aria-invalid=true]{border-color:#e9a29c}.field-error{font-size:12px;color:#e9a29c}.privacy{display:flex;flex-direction:column;gap:16px}.privacy h2{font:700 14px/1.4 var(--sans)}.consent{display:flex;align-items:center;gap:8px;min-height:44px;font-size:14px;cursor:pointer}.consent input{width:20px;height:20px;margin:0;accent-color:var(--moon);flex:none}.submit-button{align-self:center;width:min(280px,100%);height:56px;background:var(--moon);border-radius:8px;color:var(--base);font-weight:700;display:flex;align-items:center;justify-content:center;gap:16px}.submit-button:hover{filter:brightness(1.07)}.submit-button span{font-size:24px;font-weight:400}.demo-note{font-size:12px;line-height:1.7;text-align:center}.contact-complete{display:flex;flex-direction:column;align-items:center;text-align:center;gap:24px;padding:80px 0}.contact-complete h1{font:400 40px/1.45 var(--serif)}.contact-complete>p{max-width:660px}.sp-break{display:none}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}#subpage:has(.contact-layout){gap:48px}#subpage:has(.contact-complete){gap:64px}.subpage-active #subpage{animation:gallery-in .65s ease both}@keyframes gallery-in{from{opacity:.25}to{opacity:1}}@media(max-width:767px){#subpage{width:calc(100% - 48px);padding:48px 0 80px;gap:80px;font-size:15px}.crumb{font-size:10px}.sub-heading>p,.block-en{font-size:14px}.sub-heading h1,.sub-heading h2,.detail-intro h1{font-size:34px}.sub-profile{flex-direction:column-reverse;gap:24px;align-items:center}.profile-copy{align-items:center;width:100%;gap:16px}.profile-copy .sub-heading{text-align:center}.profile-picture{width:112px;height:112px}.profile-role{font-size:14px}.profile-bio{width:100%;font-size:15px}.profile-sns{gap:16px}.sub-gallery{gap:24px}.gallery-filters{column-gap:24px;row-gap:8px;padding-bottom:12px}.gallery-filters button{font-size:11px;min-height:32px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 16px}.gallery-category{font-size:10px}.gallery-type{font-size:11px}.gallery-card h3{font-size:16px}.detail-category{font-size:12px}.detail-meta dt{width:74px}.detail-blocks{gap:48px}.detail-text h2{font-size:24px}.detail-text .block-en{font-size:12px}.media-grid{gap:24px}.media-grid.image2{gap:16px}.media-grid.image3{grid-template-columns:1fr}.media-grid.vertical{grid-template-columns:minmax(0,240px)}.contact-layout{grid-template-columns:1fr;gap:48px}.contact-form .form-note{font-size:13px}.form-field label{font-size:15px}.form-field textarea{min-height:192px}.contact-complete{padding:48px 0}.contact-complete h1{font-size:28px}.sp-break{display:block}#subpage:has(.contact-layout){gap:32px}#subpage:has(.contact-complete){gap:48px}}@media(max-width:360px){.gallery-filters{column-gap:14px}.sub-heading h1,.sub-heading h2,.detail-intro h1{font-size:30px}}@media(prefers-reduced-motion:reduce){.subpage-active #subpage,.gallery-grid{animation:none}.gallery-thumb img{transition:none}}

/* Match Figma profile columns and original 44px SNS asset canvases. */
@media(min-width:768px){.sub-profile{justify-content:flex-start}.profile-copy{flex:0 1 760px;width:760px}.profile-picture{flex:none}}
.profile-sns{gap:8px}.profile-sns button{width:44px;height:44px}.profile-sns img{width:44px;height:44px}

/* v36: unified navigation and quiet subpage particles. */
.subpage-active .scene{background:#06090a}.subpage-active .scene>*:not(#floating-lights){display:none!important}
.gallery-card h3 span{background-image:linear-gradient(var(--moon),var(--moon));background-repeat:no-repeat;background-position:left bottom;background-size:0% 1px;padding-bottom:2px;transition:color .38s ease,background-size .45s cubic-bezier(.22,.61,.36,1);box-decoration-break:clone;-webkit-box-decoration-break:clone}.gallery-card:is(:hover,:focus-visible) h3{color:var(--moon)}.gallery-card:is(:hover,:focus-visible) h3 span{background-size:100% 1px}
.desktop-nav{align-items:center}.portfolio-nav{position:relative}.portfolio-nav>button{display:flex;align-items:center;gap:8px}.nav-chevron{width:7px;height:7px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .25s}.portfolio-nav>button[aria-expanded=true] .nav-chevron{transform:rotate(225deg) translate(-2px,-1px)}.portfolio-nav>button.is-current,.desktop-nav [aria-current=page]{color:var(--moon)}.portfolio-links{position:absolute;top:100%;right:0;width:250px;background:var(--base);border:1px solid var(--border);border-radius:8px;padding:8px;box-shadow:0 12px 32px #0006}.portfolio-links[hidden]{display:none}.portfolio-links a{display:block;text-decoration:none;color:var(--primary);padding:12px 16px;font:400 18px/1.5 var(--serif);border-radius:4px}.portfolio-links a span{display:block;font:12px/1.5 var(--sans);color:var(--muted);margin-top:3px}.portfolio-links a:is(:hover,:focus-visible,[aria-current=page]){background:var(--secondary);color:var(--moon)}.portfolio-links a:focus-visible{outline:2px solid var(--moon);outline-offset:-2px}
.menu{padding:calc(var(--header) + 20px) 24px 24px;align-content:start;overscroll-behavior:contain;grid-template-rows:auto auto;gap:24px}.menu-nav{gap:6px;max-width:342px;margin:0 auto;align-self:start}.menu-nav button{min-height:58px;padding:5px 0 5px 48px;gap:2px;transition-delay:calc(var(--i)*50ms)}.menu-nav span{font-size:10px}.menu-nav strong{font-size:21px;line-height:1.4}.menu-nav button[aria-current] strong{color:var(--moon)}.menu-nav button:before{top:17px}.menu-line{top:20px;bottom:38px}.menu-sign{position:static;margin:0;align-self:start}.menu-moon[hidden]{display:none}.menu-nav button[data-nav-key=nagame],.menu-nav button[data-nav-key=tamao]{padding-left:48px}.menu-nav button[data-nav-key=tamao] span{visibility:visible}
@media(min-height:820px){.menu{align-content:center}.menu-nav{gap:10px}.menu-nav button{min-height:68px}.menu-line{bottom:48px}}
@media(min-width:768px) and (max-width:900px){.desktop-nav{display:none}.menu-toggle{display:flex}.header{padding:0 32px}.menu-icon i+i{width:12px;left:10px}.menu-open .menu-icon i+i{width:20px;left:2px}}
@media(prefers-reduced-motion:reduce){.gallery-card h3 span,.nav-chevron{transition:none!important}}

/* v37: gentle desktop reveal; collapsible mobile portfolio branch. */
@keyframes portfolio-drift-in{0%{opacity:0;transform:translateY(-7px)}75%{opacity:1;transform:translateY(1px)}100%{opacity:1;transform:translateY(0)}}
.portfolio-links:not([hidden]){animation:portfolio-drift-in .46s cubic-bezier(.22,.61,.36,1) both;transform-origin:top right}
.menu-portfolio{min-width:0}.menu-portfolio>button{width:100%}.menu-portfolio>button strong{display:flex;align-items:center;gap:12px}.menu-chevron{display:inline-block;width:8px;height:8px;flex:none;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .32s ease}.menu-portfolio>button[aria-expanded=true] .menu-chevron{transform:translateY(2px) rotate(225deg)}.menu-portfolio>button.is-current strong{color:var(--moon)}
.menu-portfolio-links{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .38s cubic-bezier(.22,.61,.36,1),opacity .28s ease;min-width:0}.menu-portfolio>button[aria-expanded=true]+.menu-portfolio-links{grid-template-rows:1fr;opacity:1}.menu-portfolio-inner{overflow:hidden;min-height:0;padding-left:48px}.menu-portfolio-inner:before{content:none}.menu-nav .menu-portfolio-inner button{width:100%;min-height:44px;padding:8px 0 8px 16px;gap:0;border-left:1px solid var(--border);border-radius:0;transition-delay:0ms;transform:none}.menu-nav .menu-portfolio-inner button:before{display:none}.menu-nav .menu-portfolio-inner button strong{font-size:18px;line-height:1.5}.menu-portfolio-inner button:focus-visible{outline-offset:-2px}.menu-portfolio-links[inert]{pointer-events:none}.menu-nav .menu-portfolio-inner button[aria-current] strong{color:var(--moon)}
@media(prefers-reduced-motion:reduce){.portfolio-links:not([hidden]){animation:none!important}.menu-portfolio-links,.menu-chevron{transition:none!important}}
.paused .portfolio-links:not([hidden]){animation:none!important}.paused .menu-portfolio-links,.paused .menu-chevron{transition:none!important}

.menu-nav .menu-portfolio-inner button[data-nav-key]{padding-left:16px}

.profile-sns a,.sns a{display:grid;place-items:center;width:36px;height:36px}.empty-gallery{grid-column:1/-1;color:var(--muted,#98a5a8);padding:24px 0}@media(max-width:767px){.profile-sns a,.sns a{width:44px;height:44px}}
