*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:#111;font-family:Arial,'Helvetica Neue',sans-serif;font-size:12px;letter-spacing:.02em}.site-head{height:86px;padding:0 3vw;display:flex;align-items:center;gap:28px;position:relative}.brand{font-size:24px;letter-spacing:.25em;color:#111;text-decoration:none}.division{font-size:9px;letter-spacing:.35em;color:#555}.site-head nav{margin-left:auto;display:flex;gap:36px}.site-head nav a{color:#111;text-decoration:none;font-size:9px;letter-spacing:.18em}.menu{width:28px;border:0;background:none;padding:0;margin-left:14px}.menu i{display:block;height:1px;background:#111;margin:6px 0}.intro{min-height:46vh;padding:10vh 3vw 7vh;display:flex;justify-content:space-between;align-items:flex-end}.intro p{font-size:9px;letter-spacing:.2em;max-width:330px;line-height:1.8}.intro h1{margin:0;text-align:right;font-size:clamp(52px,7.5vw,132px);font-weight:500;line-height:.84;letter-spacing:-.065em}.works{padding:0 3vw 18vh}.works-bar{border-top:1px solid #111;padding:18px 0 56px;display:flex;justify-content:space-between;align-items:flex-start}.filters{display:flex;gap:26px;flex-wrap:wrap}.filters button{font:inherit;font-size:9px;letter-spacing:.12em;border:0;background:none;padding:0 0 6px;cursor:pointer;color:#777}.filters button.active{color:#111;border-bottom:1px solid #111}.works-bar>span{font-size:8px;letter-spacing:.14em;color:#777}
/* V14: reference-based vertical lanes. Each artwork keeps its own aspect ratio;
   the white space belongs to the artwork rather than a shared card height. */
/* V31 — free masonry: wide works can span two columns. */
.grid{position:relative;width:100%;min-height:200px}.work{position:absolute;min-width:0;opacity:0;transform:translateY(12px);transition:opacity .35s ease,transform .6s cubic-bezier(.2,.7,.2,1);will-change:left,top,width}.work.show{opacity:1;transform:none}.work.hide{display:none}.visual{width:100%;display:flex;align-items:center;justify-content:center;position:relative;overflow:visible;cursor:pointer}.visual img{display:block;width:auto;height:auto;max-width:100%;transition:transform .95s cubic-bezier(.22,.61,.36,1);filter:saturate(.98)}.visual:hover img{transform:scale(1.045)}
.work[data-shape="poster"] .visual img{width:92%}.work[data-shape="tall"] .visual img{width:94%}.work[data-shape="square"] .visual img{width:100%}.work[data-shape="landscape"] .visual img{width:100%}.work[data-shape="panorama"] .visual img{width:100%}.work[data-shape="object"] .visual img{width:92%}.work[data-shape="art"] .visual img{width:100%}.caption{padding-top:10px}.caption h2{font-size:8.5px;font-weight:500;margin:0 0 4px;line-height:1.3}.caption p{font-size:6px;letter-spacing:.14em;color:#999;margin:0;text-transform:uppercase}
.about-section{margin:5vh 3vw 0;border-top:1px solid #111;padding:clamp(72px,8vw,120px) clamp(7vw,10vw,165px) clamp(95px,11vw,165px);display:grid;grid-template-columns:minmax(250px,330px) minmax(430px,560px);column-gap:clamp(72px,9vw,145px);justify-content:center;align-items:center}.profile-photo{margin:0;width:100%;max-width:330px;overflow:hidden}.profile-photo img{display:block;width:100%;aspect-ratio:792/998;object-fit:cover;object-position:center center;filter:grayscale(1);transform:none;transform-origin:center center}.profile-body{align-self:center}.profile-label{display:flex;align-items:baseline;gap:16px;margin-bottom:clamp(40px,4vw,58px)}.profile-label em{font-family:Georgia,'Times New Roman',serif;font-size:15px}.profile-label span{font-size:9px;letter-spacing:.08em;color:#888}.profile-body h2{margin:0 0 clamp(30px,3.2vw,46px);font-family:Georgia,'Times New Roman','Yu Mincho',serif;font-size:clamp(30px,2.8vw,42px);font-weight:400;letter-spacing:.04em}.profile-copy{max-width:560px}.profile-copy p{margin:0 0 1.05em;font-size:clamp(12px,.9vw,14px);line-height:2;letter-spacing:.02em;color:#666}.profile-copy p:last-child{margin-bottom:0}.profile-en{margin:clamp(38px,4vw,58px) 0 0;font-size:8px;letter-spacing:.15em;color:#999}
footer{padding:11vh 3vw 0;overflow:hidden}.footer-stack{width:300px;display:flex;flex-direction:column;gap:52px}.footer-stack div{display:flex;flex-direction:column;align-items:flex-start;gap:14px}.footer-stack b{font-size:10px;letter-spacing:.15em}.footer-stack a,.footer-stack p{font-size:13px;line-height:1.8;color:#111;text-decoration:none;margin:0}.footer-stack a{border-bottom:1px solid #111}.footer-logo{font-size:clamp(130px,24vw,420px);font-weight:700;letter-spacing:-.09em;line-height:.72;margin-top:11vh;white-space:nowrap}
@media(max-width:800px){.site-head{height:70px;padding:0 20px}.division{display:none}.site-head nav{display:none}.menu{margin-left:auto}.intro{min-height:42vh;padding:9vh 20px 6vh;display:block}.intro h1{text-align:left;margin-top:12vh}.works{padding:0 20px 14vh}.works-bar{padding-bottom:38px}.works-bar>span{display:none}.filters{gap:18px}.caption{padding-top:9px}.about-section{margin:0 20px;padding:64px 0 14vh;grid-template-columns:1fr;gap:44px}.profile-photo{max-width:64vw}.profile-label{margin-bottom:32px}.profile-label em{font-size:14px}.profile-body h2{font-size:30px;margin-bottom:30px}.profile-copy p{font-size:11.5px;line-height:2;margin-bottom:1.05em}.profile-en{margin-top:38px;font-size:7px}footer{padding:9vh 20px 0}.footer-logo{margin-top:10vh}}

/* V18 — project detail overlay */
body.modal-open{overflow:hidden}.project-modal{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:5vh 5vw;opacity:0;visibility:hidden;transition:opacity .38s ease,visibility .38s ease}.project-modal.open{opacity:1;visibility:visible}.modal-backdrop{position:absolute;inset:0;background:rgba(245,245,242,.58);-webkit-backdrop-filter:blur(18px) saturate(.8);backdrop-filter:blur(18px) saturate(.8)}.modal-panel{position:relative;z-index:1;width:min(1180px,90vw);min-height:min(690px,82vh);background:#fff;opacity:1;display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.75fr);gap:clamp(34px,5vw,80px);padding:clamp(28px,4vw,62px);box-shadow:0 22px 80px rgba(0,0,0,.08);transform:translateY(24px) scale(.985);transition:transform .55s cubic-bezier(.22,.61,.36,1)}.project-modal.open .modal-panel{transform:none}.modal-close{position:absolute;right:24px;top:22px;border:0;background:none;font:inherit;font-size:9px;letter-spacing:.16em;cursor:pointer;z-index:2}.modal-media{min-height:520px;display:flex;align-items:center;justify-content:center;overflow:hidden}.modal-media img{display:block;max-width:100%;max-height:66vh;width:auto;height:auto;object-fit:contain}.modal-info{align-self:center;padding:32px 10px 4px 0;max-height:68vh;overflow-y:auto;scrollbar-width:thin}.modal-index{font-size:8px;letter-spacing:.16em;color:#888;margin:0 0 24px}.modal-info h2{font-size:clamp(28px,3vw,52px);font-weight:500;letter-spacing:-.045em;line-height:1;margin:0 0 42px}.modal-info dl{margin:0;border-top:1px solid #bbb}.modal-info dl div{display:grid;grid-template-columns:90px 1fr;gap:18px;padding:11px 0;border-bottom:1px solid #d1d1d1}.modal-info dt,.modal-info dd{margin:0;font-size:8px;letter-spacing:.13em;line-height:1.5}.modal-info dt{color:#888}.modal-description{font-size:11px;line-height:1.95;margin:28px 0 48px;max-width:360px;white-space:pre-line}.modal-nav{display:flex;justify-content:space-between;gap:20px}.modal-nav button{border:0;background:none;padding:0 0 5px;font:inherit;font-size:9px;letter-spacing:.14em;border-bottom:1px solid #111;cursor:pointer}.work .visual{cursor:pointer}
@media(max-width:800px){.project-modal{padding:18px}.modal-panel{width:100%;max-height:92vh;overflow:auto;min-height:0;grid-template-columns:1fr;gap:24px;padding:54px 22px 28px}.modal-media{min-height:0;height:46vh}.modal-media img{max-height:46vh}.modal-info{padding:0;max-height:none;overflow:visible}.modal-info h2{margin-bottom:26px}.modal-description{margin:22px 0 32px}.modal-close{top:20px;right:20px}}
@media(prefers-reduced-motion:reduce){.project-modal,.modal-panel{transition:none}}

/* V28 illustration set */
.work[data-shape="panorama"] .visual img{width:100%}.work[data-shape="landscape"] .visual img{width:100%}.work[data-shape="tall"] .visual img{width:94%}.work[data-shape="square"] .visual img{width:100%}

/* V42 — stable detail navigation + logo visual balance */
@media(min-width:801px){
  .modal-panel{height:min(690px,82vh);min-height:0;}
  .modal-info{align-self:stretch;display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;padding:32px 10px 4px 0;max-height:none;overflow:hidden;}
  .modal-index{margin-bottom:24px;}
  .modal-info h2{margin-bottom:42px;}
  .modal-description{margin:28px 0 20px;max-width:360px;overflow-y:auto;min-height:0;padding-right:8px;scrollbar-width:thin;}
  .modal-nav{align-self:end;padding-top:12px;background:#fff;}
}
/* Normalize oversized logo artwork in listing without changing its source image */
.work[data-title="株式会社ネクスト"] .visual img{transform:scale(.72);transform-origin:center center;}
.work[data-title="グループホーム cocotte"] .visual img{transform:scale(.78);transform-origin:center center;}
.work[data-title="株式会社ネクスト"] .visual:hover img{transform:scale(.755);}
.work[data-title="グループホーム cocotte"] .visual:hover img{transform:scale(.82);}

/* V42 revision — never crop detail artwork; normalize NEXT / cocotte detail scale */
@media(min-width:801px){
  .modal-media{overflow:visible;padding:18px 10px;box-sizing:border-box;}
  .modal-media img{width:auto;height:auto;max-width:100%;max-height:calc(min(690px,82vh) - 110px);object-fit:contain;object-position:center center;}
  .project-modal[data-project="株式会社ネクスト"] .modal-media img,
  .project-modal[data-project="グループホーム cocotte"] .modal-media img{max-width:48%;max-height:44vh;}
}
