:root {
  --ink: #24211f;
  --muted: #645e59;
  --paper: #fbfaf7;
  --rule: #d9d4cf;
  --gutter: clamp(1.25rem, 4.2vw, 5.5rem);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans CJK JP", Arial, sans-serif;
  font-size: 100%;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 500; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 8; padding: .7rem; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cover { position: relative; isolation: isolate; height: 100vh; height: 100svh; background: #3d151c; }
.cover-art, .cover-art picture, .cover-art img { display: block; width: 100%; height: 100%; }
.cover-art img { object-fit: cover; object-position: 52% 51%; }
.cover-art:focus-visible { outline: 2px solid white; outline-offset: -5px; }
.mast { display: flex; align-items: flex-start; justify-content: space-between; position: relative; z-index: 3; padding: max(1.25rem, env(safe-area-inset-top)) var(--gutter) 1.1rem; }
.mast.on-print { position: absolute; inset: 0 0 auto; z-index: auto; pointer-events: none; }
.mast a, .mast details { pointer-events: auto; }
.signature { display: inline-flex; align-items: center; min-height: 44px; }
.signature img { width: clamp(7.9rem, 13vw, 13.5rem); }
.on-print .signature img { filter: invert(1); }
.disclosure { position: relative; }
.disclosure summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: flex-end; min-width: 52px; min-height: 44px; font: 400 1rem/1.2 Arial, sans-serif; }
.disclosure summary::-webkit-details-marker { display: none; }
.on-print summary { color: #fff; mix-blend-mode: difference; }
.disclosure summary:hover span, .text-link, .zoom-text { text-decoration: underline; text-underline-offset: .27em; text-decoration-thickness: 1px; }
.menu-list { position: absolute; top: calc(100% + 3px); right: 0; width: min(20.5rem, calc(100vw - 2 * var(--gutter))); max-height: calc(100svh - 6.25rem); overflow: auto; background: var(--paper); padding: .4rem 1.3rem; box-shadow: 0 6px 28px #180b091a; }
.menu-list a, .index-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--rule); }
.menu-list a { padding: 1rem 0; font-size: .875rem; color: var(--muted); }
.menu-list a:last-child { border-bottom: 0; }
.menu-list a span, .index-list a span:first-child { font-family: Georgia, "Times New Roman", serif; color: var(--ink); font-size: 1.4rem; }
.menu-list a:hover span, .index-list a:hover span:first-child, .bottom a:hover, .case-return a:hover, .section-line a:hover { text-decoration: underline; text-underline-offset: .22em; }
.projects { max-width: 100rem; margin: auto; padding: clamp(3.5rem, 8vw, 8rem) var(--gutter) clamp(4rem, 10vw, 11rem); }
.section-line { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: clamp(1.45rem, 3vw, 3.2rem); }
.section-line h2 { font: normal clamp(2.9rem, 6vw, 6.5rem)/.98 Georgia, "Times New Roman", serif; letter-spacing: -.055em; }
.section-line a, .kicker, figcaption, .bottom, .case-return, .portfolio-index h3 { font-size: .875rem; }
.section-line a, .bottom a, .case-return a { display: inline-flex; align-items: center; min-height: 44px; }
.featured { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 8rem); }
.featured figure { overflow: hidden; }
.featured img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.kicker { color: var(--muted); letter-spacing: .06em; line-height: 1.7; }
.feature-copy h3, .case-intro h1 { font-size: clamp(1.7rem, 3vw, 4rem); line-height: 1.42; letter-spacing: .015em; margin: .7rem 0 1.2rem; }
.feature-copy .text-link { font-size: .875rem; }
.portfolio-index { display: grid; grid-template-columns: 1fr 2.05fr; gap: 2rem; align-items: start; margin-top: clamp(4rem, 9vw, 8.5rem); border-top: 1px solid var(--rule); padding-top: 1.3rem; }
.portfolio-index h3 { color: var(--muted); padding: .9rem 0; }
.index-list a { padding: .95rem 0; min-height: 50px; }
.index-list a span:first-child { font-size: clamp(1.55rem, 2.8vw, 2.9rem); letter-spacing: -.035em; }
.index-list a span:last-child { font-size: .875rem; color: var(--muted); }
.bottom, .case-return { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; }
.bottom { border-top: 1px solid var(--rule); padding: 1.1rem var(--gutter) max(1.6rem, env(safe-area-inset-bottom)); }
.bottom div { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; }
.case-main { max-width: 98rem; margin: auto; padding: 0 var(--gutter); }
.case-intro { padding: clamp(2.5rem, 6vw, 7rem) 0 1.8rem; }
.case-intro h1 { margin: .6rem 0 0; font-size: clamp(2rem, 4.5vw, 5.6rem); }
.case-opening { margin: 0; }
.case-opening img { max-height: 78svh; width: 100%; object-fit: cover; object-position: 50% 59%; }
figcaption { line-height: 1.8; margin-top: .6rem; color: var(--muted); }
.case-note, .drawing { display: grid; gap: 2rem clamp(2rem, 8vw, 9rem); margin: clamp(4rem, 8vw, 9rem) 0; }
.case-note { grid-template-columns: 1fr 2fr; max-width: 76rem; }
.case-note h2, .drawing h2 { font-size: clamp(1.4rem, 2.15vw, 2.4rem); line-height: 1.55; }
.case-note p, .drawing p { font-size: 1rem; line-height: 2.05; max-width: 38em; }
.drawing { grid-template-columns: minmax(15rem, 1fr) minmax(0, 1.7fr); align-items: start; }
.drawing p { margin-top: 1.1rem; }
.drawing figure img { width: 100%; }
.drawing figure>a { display: block; cursor: zoom-in; }
.zoom-text { display: inline-block; min-height: 36px; color: var(--ink); }
.case-return { padding: 1.1rem 0 2.7rem; border-top: 1px solid var(--rule); }
.drawing-dialog { border: 0; background: #fff; width: min(94vw, 68rem); max-height: 90svh; margin: auto; padding: .8rem; }
.drawing-dialog::backdrop { background: #221c1bdc; }
.drawing-dialog form { text-align: right; }
.drawing-dialog button { color: var(--ink); background: transparent; border: 0; padding: .6rem; cursor: pointer; min-height: 44px; }
.drawing-viewport { overflow: auto; max-height: calc(88svh - 4.1rem); overscroll-behavior: contain; }
.drawing-viewport img { width: 100%; min-width: min(722px, 190vw); max-width: none; }
@media (max-width: 680px) {
  .mast { padding-top: max(.75rem, env(safe-area-inset-top)); }
  .cover-art img { object-position: 24% 50%; }
  .featured, .portfolio-index, .case-note, .drawing { grid-template-columns: minmax(0, 1fr); }
  .featured { gap: 1.25rem; }
  .feature-copy h3 { margin: .3rem 0 .65rem; }
  .portfolio-index { gap: 0; }
  .index-list a { gap: .7rem; }
  .index-list a span:last-child { text-align: right; }
  .case-opening img { max-height: none; object-fit: contain; }
  .case-note, .drawing { gap: .85rem; }
  .drawing figure { margin-top: 1rem; }
  .bottom { gap: .1rem 1.3rem; }
}
