@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500&display=swap");
/* Housing Studies — magazine prototype. Monotone paper and ink; the pictures carry the colour. */
:root {
  --paper: #f2f2f0;
  --paper-2: #e6e6e3;
  --ink: #161616;
  --soft: #6b6b6b;
  --rule: #cfcfcc;
  --accent: "Space Grotesk", "Helvetica Neue", sans-serif;
  --latin: "Helvetica Neue", "Avenir Next", Helvetica, Arial, sans-serif;
  --ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --m: clamp(16px, 3.2vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font-family: var(--ja); font-size: 14px; line-height: 1.8; -webkit-font-smoothing: antialiased; font-feature-settings: "palt"; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.lat { font-family: var(--latin); }
.cap { font-family: var(--latin); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }

/* ── top bar: brand left, three words right; nothing else ── */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 5; display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px var(--m); color: var(--ink); pointer-events: none; transition: color .3s; }
body[data-tone="image"] .bar, body[data-tone="split"] .bar nav { color: #fff; text-shadow: 0 0 14px rgba(0,0,0,.45); }
.home[data-tone="image"] .bar .brand { visibility: hidden; }
.bar a { pointer-events: auto; }
.bar nav { display: flex; gap: 22px; }
.brand { font-family: var(--latin); font-weight: 500; letter-spacing: .02em; font-size: 15px; }

/* ── slideshow: one spread per screen, swiped sideways ── */
.deck { display: flex; height: 100svh; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.deck::-webkit-scrollbar { display: none; }
.spread { flex: 0 0 100vw; height: 100svh; scroll-snap-align: start; position: relative; overflow: hidden; display: grid; }
.spread img { width: 100%; height: 100%; object-fit: cover; }
.folio { position: fixed; right: var(--m); bottom: 18px; z-index: 5; font-family: var(--latin); font-size: 11px; letter-spacing: .14em;
  color: var(--ink); display: flex; gap: 18px; align-items: center; }
.folio button { all: unset; cursor: pointer; padding: 6px; font-size: 16px; line-height: 1; }
.folio button:focus-visible { outline: 1px solid currentColor; }
body[data-ftone="image"] .folio { color: #fff; text-shadow: 0 0 12px rgba(0,0,0,.5); }

/* cover: title on paper above, picture bled below (ref: products catalog cover) */
.s-cover { grid-template-rows: 42% 58%; }
.s-cover .head { padding: 72px var(--m) 24px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.s-cover h1 { font-family: var(--latin); font-weight: 300; font-size: clamp(44px, 9vw, 150px); line-height: .9; letter-spacing: -.035em; }
.s-cover .side { text-align: right; color: var(--soft); }
.s-cover .side p + p { margin-top: 6px; }
.s-cover .no { font-family: var(--latin); font-weight: 300; font-size: clamp(28px, 4vw, 56px); color: var(--ink); letter-spacing: -.02em; }

/* full bleed */
.s-bleed figure { height: 100%; }
/* text page + picture */
.s-lead { grid-template-columns: 38% 62%; }
.s-lead .txt { padding: 0 var(--m); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.s-lead .txt h2 { font-weight: 500; font-size: clamp(20px, 2.1vw, 30px); line-height: 1.6; letter-spacing: .02em; }
/* two pictures, margins */
.s-pair { grid-template-columns: 1fr 1fr; gap: 12px; padding: 64px var(--m) 56px; }
.s-pair figure { min-height: 0; }
/* one small picture floating in a large page */
.s-float { place-items: center; background: var(--paper-2); }
.s-float figure { width: min(46vw, 760px); aspect-ratio: 3 / 2; }
.s-float .word { position: absolute; left: var(--m); bottom: 40px; font-family: var(--latin); font-weight: 300; font-size: clamp(40px, 7vw, 120px); letter-spacing: -.03em; color: #fff; opacity: .9; mix-blend-mode: difference; }
/* close-up of a part, linked to Housebook */
.s-part { grid-template-columns: 1fr 1fr; }
.s-part .obj { background: var(--paper); display: grid; place-items: center; padding: 80px var(--m) 60px; }
.s-part figure { overflow: hidden; }
.s-part .obj img { object-fit: contain; height: auto; max-height: 62vh; mix-blend-mode: multiply; }
.s-part .tag { position: absolute; left: var(--m); bottom: 28px; }
.s-part .tag h3 { font-family: var(--latin); font-weight: 400; font-size: 22px; letter-spacing: -.01em; }
.s-part .tag p { color: var(--soft); }
/* plan on white */
.s-plan { background: #fff; place-items: center; padding: 72px var(--m) 56px; }
.s-plan img { object-fit: contain; max-height: 100%; }
/* end: contact sheet + the way to the report */
.s-end { grid-template-columns: 1fr 1fr; padding: 72px var(--m) 56px; gap: var(--m); }
.sheet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; align-content: start; }
.sheet img { aspect-ratio: 4 / 3; height: auto; }
.end { display: flex; flex-direction: column; justify-content: space-between; }
.end .links a { display: flex; justify-content: space-between; border-top: 1px solid var(--ink); padding: 14px 0; font-size: 15px; }
.end .links a:last-child { border-bottom: 1px solid var(--ink); }
.end .next { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: end; }
.end .next img { aspect-ratio: 4 / 3; height: auto; }

/* ── home: a cover slideshow of houses, then the contents ── */
.home .deck { height: 100svh; }
.h-slide { flex: 0 0 100vw; scroll-snap-align: start; position: relative; }
.h-slide img { width: 100%; height: 100%; object-fit: cover; }
.h-slide .t { position: absolute; left: var(--m); bottom: 56px; color: #fff; }
.h-slide .t .no { font-family: var(--latin); font-size: 13px; letter-spacing: .2em; }
.h-slide .t h2 { font-family: var(--latin); font-weight: 300; font-size: clamp(40px, 8vw, 128px); line-height: .92; letter-spacing: -.035em; }
.h-slide::after { content: ""; position: absolute; inset: 55% 0 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .32)); pointer-events: none; }
.h-slide .t { z-index: 1; }
.masthead { position: absolute; left: var(--m); top: 64px; z-index: 2; color: #fff; font-family: var(--latin); font-weight: 300; font-size: clamp(56px, 12vw, 210px); line-height: .85; letter-spacing: -.045em; pointer-events: none; }

.contents { padding: 120px var(--m) 80px; }
.contents > header { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--ink); padding-bottom: 12px; margin-bottom: 40px; }
.contents > header h2 { font-family: var(--latin); font-weight: 300; font-size: clamp(32px, 5vw, 72px); letter-spacing: -.03em; line-height: 1; }
.toc { display: grid; grid-template-columns: repeat(12, 1fr); gap: 56px 16px; }
.toc li { grid-column: span 4; }
.toc li:nth-child(5n+1) { grid-column: span 8; }
.toc li:nth-child(5n+2) { grid-column: span 4; align-self: end; }
.toc img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.toc li:nth-child(5n+1) img { aspect-ratio: 16 / 9; }
.toc .cap2 { display: flex; gap: 14px; margin-top: 10px; align-items: baseline; }
.toc .cap2 span { font-family: var(--latin); font-size: 11px; letter-spacing: .16em; color: var(--soft); }
.toc .cap2 b { font-family: var(--latin); font-weight: 400; font-size: 15px; letter-spacing: .01em; }

/* ── Housebook, the catalogue as pictures ── */
.hb { padding: 120px var(--m) 80px; }
.hb-head { display: grid; grid-template-columns: 1fr auto; align-items: end; border-bottom: 1px solid var(--ink); padding-bottom: 14px; margin-bottom: 48px; }
.hb-head h1 { font-family: var(--latin); font-weight: 300; font-size: clamp(48px, 9vw, 150px); line-height: .88; letter-spacing: -.04em; }
.hb-head nav { display: flex; gap: 20px; }
.hb-head nav a[aria-current] { border-bottom: 1px solid; }
.objs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 16px; }
.objs li:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; }
.objs .ph { background: #e9e4dc; aspect-ratio: 9 / 7; overflow: hidden; }
.objs .ph img { width: 100%; height: 100%; object-fit: cover; }
.objs .c { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--latin); font-size: 13px; }
.objs .c span { color: var(--soft); font-size: 11px; letter-spacing: .14em; }

/* one object: its picture, then where it lives */
.item { display: grid; grid-template-columns: 5fr 7fr; min-height: 100svh; }
.item .left { padding: 120px var(--m) 56px; display: flex; flex-direction: column; justify-content: space-between; }
.item .left .ph { background: #e9e4dc; }
.item .left h1 { font-family: var(--latin); font-weight: 300; font-size: clamp(40px, 5.5vw, 92px); line-height: .9; letter-spacing: -.035em; }
.item .left .ja { margin-top: 10px; color: var(--soft); }
.item .shapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 28px; }
.item .shapes figure { background: #e9e4dc; }
.item .shapes figure { background: none; }
.item .shapes figcaption { font-size: 11px; color: var(--soft); margin-top: 4px; }
.item .right { display: grid; grid-template-rows: 1fr auto; }
.item .right .hero { position: relative; overflow: hidden; }
.item .right .hero img { width: 100%; height: 100%; object-fit: cover; }
.item .right .hero .in { position: absolute; left: 24px; bottom: 22px; color: #fff; }
.item .right .hero .in b { display: block; font-family: var(--latin); font-weight: 400; font-size: 26px; letter-spacing: -.01em; }
.item .more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px 0 0; }
.item .more img { aspect-ratio: 3 / 2; object-fit: cover; }
.spec { margin-top: 18px; font-size: 13px; }
.spec a { border-bottom: 1px solid; }

/* ── phone ── */
@media (max-width: 760px) {
  .s-cover { grid-template-rows: 46% 54%; }
  .s-cover .head { grid-template-columns: 1fr; padding-top: 64px; }
  .s-cover .side { text-align: left; }
  .s-lead { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .s-lead .txt { padding: 72px var(--m) 24px; gap: 12px; }
  .s-pair { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; padding: 56px var(--m) 48px; }
  .s-float figure { width: 86vw; }
  .s-part { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .s-end { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .sheet { grid-template-columns: repeat(4, 1fr); }
  .toc li, .toc li:nth-child(5n+1), .toc li:nth-child(5n+2) { grid-column: span 12; }
  .toc li:nth-child(even) { grid-column: 4 / span 9; }
  .objs { grid-template-columns: repeat(2, 1fr); gap: 32px 10px; }
  .objs li:nth-child(7n+1) { grid-column: span 2; grid-row: auto; }
  .item { grid-template-columns: 1fr; }
  .item .left { padding-top: 72px; gap: 24px; }
  .item .right .hero { aspect-ratio: 4 / 3; }
  .bar { padding: 16px var(--m); }
  .brand { white-space: nowrap; font-size: 13px; }
  .bar nav { gap: 12px; font-size: 10px; letter-spacing: .12em; }
  body[data-tone="split"] .bar nav { color: var(--ink); text-shadow: none; }
}

/* ── home as a catalogue: many works at once, mixed sizes, tight joints ── */
.cat-head { padding: 84px var(--m) 28px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.cat-head h1 { font-family: var(--latin); font-weight: 300; font-size: clamp(52px, 10vw, 176px); line-height: .86; letter-spacing: -.045em; }
.cat-head p { text-align: right; color: var(--soft); }
.cat-head .filters { display: flex; gap: 18px; justify-content: flex-end; margin-top: 10px; color: var(--ink); }
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 12.5vw; grid-auto-flow: dense; gap: 4px; padding: 0 4px 4px; }
.mosaic a { position: relative; overflow: hidden; display: block; background: var(--paper-2); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mosaic a:hover img { transform: scale(1.03); }
.mosaic .w2 { grid-column: span 2; } .mosaic .w3 { grid-column: span 3; } .mosaic .h2 { grid-row: span 2; }
.mosaic .lb { position: absolute; left: 10px; bottom: 8px; color: #fff; font-family: var(--latin); font-size: 11px; letter-spacing: .14em; text-shadow: 0 0 10px rgba(0,0,0,.5); }
.mosaic .lb b { font-weight: 400; margin-left: 8px; letter-spacing: .06em; }

/* ── the house's data, set like a magazine's spec page ── */
.s-data { grid-template-columns: 5fr 7fr; padding: 72px var(--m) 56px; gap: var(--m); background: var(--paper); }
.s-data h2 { font-family: var(--latin); font-weight: 300; font-size: clamp(44px, 6vw, 104px); line-height: .9; letter-spacing: -.04em; }
.s-data .sub { color: var(--soft); margin-top: 10px; }
.s-data dl { margin-top: 36px; display: grid; grid-template-columns: 8.5em 1fr; border-top: 1px solid var(--ink); }
.s-data dt, .s-data dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.s-data dt { font-family: var(--latin); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); padding-top: 11px; }
.s-data .note { margin-top: 14px; font-size: 11px; color: var(--soft); line-height: 1.7; max-width: 34em; }
.s-data .pl { background: #fff; display: grid; place-items: center; padding: 24px; min-height: 0; }
.s-data .pl img { max-height: 100%; object-fit: contain; }
@media (max-width: 760px) {
  .cat-head { grid-template-columns: 1fr; padding-top: 72px; } .cat-head p, .cat-head .filters { text-align: left; justify-content: flex-start; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 34vw; }
  .mosaic .w3 { grid-column: span 2; }
  .s-data { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; }
}

/* the accent face: names, numbers and section words only; body and labels stay in Helvetica and the Japanese gothic */
.s-cover h1, .s-cover .no, .h-slide .t h2, .masthead, .cat-head h1, .contents > header h2, .toc .cap2 b, .s-data h2,
.hb-head h1, .item .left h1, .s-float .word, .s-part .tag h3, .item .right .hero .in b, .end .next .lat, .mosaic .lb b, .objs .c,
.brand { font-family: var(--accent); }
.s-cover h1, .cat-head h1, .s-data h2, .hb-head h1, .item .left h1 { letter-spacing: -.045em; }



/* print-like joints: where two pictures meet, no gutter between them (池田さん「イメージとイメージが迫り合う場合、マージン無くす」) */
.mosaic { gap: 0; padding: 0; }
.s-pair { gap: 0; }
.sheet { gap: 0; }
.item .more { gap: 0; padding: 0; }
.s-cover figure, .s-bleed figure { margin: 0; }
.home .bar { background: var(--paper); }  /* the catalogue scrolls under it: a paper band keeps the brand readable */

/* ── home: each house as one set of three pictures, set in a narrower column so the page reads house by house ── */
.cat-head h1 { font-size: clamp(34px, 7.4vw, 128px); line-height: .9; white-space: nowrap; }
.units { max-width: 1120px; margin: 0 auto; padding: 8px var(--m) 40px; display: grid; gap: 64px; }
.unit { display: block; }
.unit .uh { display: flex; gap: 14px; align-items: baseline; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--rule); }
.unit .uh span { font-family: var(--latin); font-size: 11px; letter-spacing: .16em; color: var(--soft); }
.unit .uh b { font-family: var(--accent); font-weight: 400; font-size: 17px; letter-spacing: .01em; }
.unit .uh i { font-style: normal; font-size: 12px; color: var(--soft); margin-left: auto; text-align: right; }
.unit .ph { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 5 / 2; overflow: hidden; background: var(--paper-2); }
.unit img { width: 100%; height: 100%; object-fit: cover; min-height: 0; transition: opacity .3s; }
.unit:hover img { opacity: .9; }
.u-l .i0 { grid-row: 1 / 3; }
.u-r .ph { grid-template-columns: 1fr 2fr; }
.u-r .i0 { grid-column: 2; grid-row: 1 / 3; } .u-r .i1 { grid-column: 1; grid-row: 1; } .u-r .i2 { grid-column: 1; grid-row: 2; }
.u-row .ph { grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 1fr; aspect-ratio: 3 / 1; }
.u-one .ph { grid-template-columns: 1fr; grid-template-rows: 1fr; }
@media (max-width: 760px) {
  .units { gap: 48px; padding: 0 0 32px; }
  .unit .uh { padding: 0 var(--m) 8px; flex-wrap: wrap; } .unit .uh i { margin-left: 0; width: 100%; text-align: left; }
  .unit .ph, .u-r .ph, .u-row .ph { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; aspect-ratio: auto; }
  .unit .i0, .u-r .i0, .u-l .i0 { grid-column: 1 / 3; grid-row: 1; aspect-ratio: 3 / 2; }
  .unit .i1, .unit .i2, .u-r .i1, .u-r .i2 { grid-row: 2; grid-column: auto; aspect-ratio: 1 / 1; }
}

/* ── house pages, second pass: fewer spreads, pictures inside margins (池田さん「画像が大きくてアラが目立つ」) ── */
.s-cover2 { grid-template-rows: auto 1fr; padding-bottom: 56px; }
.s-cover2 .head { padding: 84px var(--m) 28px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.s-cover2 h1 { font-family: var(--accent); font-weight: 300; font-size: clamp(40px, 6.4vw, 112px); line-height: .9; letter-spacing: -.045em; }
.s-cover2 .side { text-align: right; color: var(--soft); }
.s-cover2 .no { font-family: var(--accent); font-weight: 300; font-size: clamp(24px, 3vw, 44px); color: var(--ink); letter-spacing: -.02em; }
.s-cover2 figure { min-height: 0; padding: 0 var(--m); display: grid; place-items: center; }
.s-cover2 figure img { width: auto; max-width: min(100%, 1100px); height: 100%; aspect-ratio: 3 / 2; }
.s-two, .s-inside { padding: 84px var(--m) 64px; min-height: 0; }
.s-two { grid-template-rows: auto 1fr; gap: 16px; }
.s-two .row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 0; max-width: 1240px; width: 100%; margin: 0 auto; }
.s-two .row.n1 { grid-template-columns: 1fr; max-width: 900px; }
.s-two .row img, .s-inside .grid img { aspect-ratio: 3 / 2; height: auto; }
.s-two .word, .s-inside .cap { color: var(--soft); }
.s-inside { grid-template-columns: 30% 1fr; gap: var(--m); align-items: center; }
.s-inside .txt { display: flex; flex-direction: column; gap: 20px; }
.s-inside .txt h2 { font-weight: 500; font-size: clamp(17px, 1.6vw, 24px); line-height: 1.7; letter-spacing: .02em; }
.s-inside .grid { display: grid; grid-template-columns: 1fr 1fr; max-width: 900px; width: 100%; justify-self: center; }
.s-inside .grid figure:first-child { grid-column: 1 / 3; }
.s-inside .grid.n1 { grid-template-columns: 1fr; }
.s-inside .grid.n2 figure:first-child { grid-column: auto; }
.s-inside .grid figure:first-child img { aspect-ratio: 16 / 7; }
.s-part2 { grid-template-columns: 1fr 1fr; padding: 84px var(--m) 72px; gap: var(--m); align-items: center; }
.s-part2 .obj { display: grid; place-items: center; }
.s-part2 .obj img { object-fit: contain; height: auto; max-height: 56vh; mix-blend-mode: multiply; }
.s-part2 figure img { aspect-ratio: 3 / 2; height: auto; }
.s-part2 .tag { position: absolute; left: var(--m); bottom: 28px; }
.s-part2 .tag h3 { font-family: var(--accent); font-weight: 400; font-size: 22px; }
.s-part2 .tag p { color: var(--soft); }
@media (max-width: 760px) {
  .s-cover2 .head { grid-template-columns: 1fr; padding-top: 72px; } .s-cover2 .side { text-align: left; }
  .s-cover2 figure img { width: 100%; height: auto; max-height: 100%; }
  .s-two { padding: 72px var(--m) 56px; align-content: center; }
  .s-two .row { grid-template-columns: 1fr; }
  .s-inside { grid-template-columns: 1fr; grid-template-rows: auto auto; padding: 72px var(--m) 56px; align-content: center; gap: 20px; }
  .s-part2 { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; padding: 72px var(--m) 72px; }
}

/* ── house page as a scroll: one strip, pictures at a fixed height inside margins ── */
.scrollpage { overflow: hidden; }
.scrollpage .bar { background: var(--paper); }
.scroll { --h: min(58svh, 620px); display: flex; align-items: center; gap: 0; height: 100svh; overflow-x: auto; overflow-y: hidden;
  padding: 0 var(--m); scrollbar-width: none; overscroll-behavior-x: contain; }
.scroll::-webkit-scrollbar { display: none; }
.scroll > * { flex: 0 0 auto; }
.scroll figure { height: var(--h); }
.scroll figure img { height: 100%; width: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.scroll figure.big { height: calc(var(--h) * 1.12); }
.scroll .stack { display: grid; grid-template-rows: 1fr 1fr; height: var(--h); }
.scroll .stack figure { height: calc(var(--h) / 2); }
.scroll .sw { writing-mode: vertical-rl; transform: rotate(180deg); align-self: center; margin: 0 14px 0 72px;
  font-family: var(--latin); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--soft); }
.st-title { width: clamp(260px, 26vw, 420px); margin-right: 48px; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.st-title h1 { font-family: var(--accent); font-weight: 300; font-size: clamp(40px, 5vw, 88px); line-height: .9; letter-spacing: -.045em; }
.st-title .no { font-family: var(--accent); font-size: 15px; color: var(--soft); }
.st-title .meta { color: var(--soft); font-size: 13px; }
.st-text { width: clamp(240px, 22vw, 340px); margin: 0 72px; }
.st-text h2 { font-weight: 500; font-size: clamp(16px, 1.5vw, 22px); line-height: 1.8; letter-spacing: .02em; }
.st-part { display: flex; align-items: flex-end; gap: 20px; height: var(--h); }
.st-part img { height: 100%; width: auto; mix-blend-mode: multiply; }
.st-part span { display: flex; flex-direction: column; color: var(--soft); font-size: 12px; padding-bottom: 6px; }
.st-part b { font-family: var(--accent); font-weight: 400; font-size: 22px; color: var(--ink); }
.st-data { width: clamp(300px, 30vw, 440px); margin: 0 48px 0 120px; }
.st-data h2 { font-family: var(--accent); font-weight: 300; font-size: clamp(40px, 4.4vw, 76px); line-height: .9; letter-spacing: -.045em; }
.st-data .sub { color: var(--soft); margin-top: 8px; }
.st-data dl { margin-top: 28px; display: grid; grid-template-columns: 8em 1fr; border-top: 1px solid var(--ink); }
.st-data dt, .st-data dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.st-data dt { font-family: var(--latin); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); padding-top: 10px; }
.st-data .note { margin-top: 12px; font-size: 11px; color: var(--soft); line-height: 1.7; }
.scroll .st-plan { background: #fff; padding: 20px; height: var(--h); }
.scroll .st-plan img { aspect-ratio: auto; object-fit: contain; }
.st-end { width: clamp(280px, 26vw, 380px); margin: 0 var(--m) 0 120px; display: flex; flex-direction: column; gap: 40px; }
.st-end .links a { display: flex; justify-content: space-between; border-top: 1px solid var(--ink); padding: 14px 0; font-size: 15px; }
.st-end .links a:last-child { border-bottom: 1px solid var(--ink); }
.st-end .next { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: end; }
.st-end .next img { aspect-ratio: 4 / 3; height: auto; }
.st-end .nm { font-family: var(--accent); font-size: 20px; font-weight: 300; }
.progress { position: fixed; left: var(--m); right: var(--m); bottom: 24px; height: 1px; background: var(--rule); z-index: 5; }
.progress i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
@media (max-width: 760px) {
  .scroll { --h: 44svh; }
  .st-title { width: 78vw; margin-right: 24px; }
  .st-text { width: 72vw; margin: 0 40px; }
  .scroll .sw { margin-left: 40px; }
  .st-data { width: 84vw; margin: 0 24px 0 56px; }
  .st-end { width: 78vw; margin-left: 56px; }
}

/* phones: the same strip, read downwards (池田さん「スマホは縦に」) */
@media (max-width: 760px) {
  .scrollpage { overflow: visible; }
  .scroll { flex-direction: column; align-items: stretch; height: auto; overflow: visible; padding: 72px 0 64px; }
  .scroll figure, .scroll figure.big, .scroll .stack, .scroll .stack figure, .scroll .st-plan { height: auto; }
  .scroll figure img { width: 100%; height: auto; }
  .scroll .stack { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .scroll .stack figure img { aspect-ratio: 1 / 1; }
  .scroll .st-plan { margin: 0 var(--m); }
  .scroll .sw { writing-mode: horizontal-tb; transform: none; align-self: flex-start; margin: 48px var(--m) 10px; }
  .st-title, .st-text, .st-data, .st-end { width: auto; margin: 0 var(--m); }
  .st-title { padding: 32px 0 28px; }
  .st-text { margin: 40px var(--m) 8px; }
  .st-part { height: auto; margin: 0 var(--m); } .st-part img { width: 55%; height: auto; }
  .st-data { margin-top: 56px; margin-bottom: 24px; }
  .st-end { margin-top: 48px; }
  .progress { bottom: 14px; }
}

/* the concept, carried over from the live house page (lead, text, three points) */
.st-concept { width: clamp(380px, 38vw, 560px); margin: 0 72px; display: flex; flex-direction: column; gap: 18px; }
.st-concept .lbl { color: var(--soft); }
.st-concept h2 { font-weight: 500; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.7; letter-spacing: .02em; }
.st-concept .body { font-size: 13px; line-height: 1.9; text-align: justify; }
.st-concept .pts { border-top: 1px solid var(--ink); }
.st-concept .pts li { padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
@media (max-width: 760px) { .st-concept { width: auto; margin: 48px var(--m) 8px; } }

/* ── a house as a book (refs/ref1–5): spreads of two pages, laid end to end ── */
.book { --white: #fbfbf9; --cream: #ece7df; --dark: #1f1f1e; --tone: #8a8178; }
.books { gap: 0; padding: 0; align-items: stretch; }
.books .sp { flex: 0 0 auto; width: 100vw; height: 100svh; display: grid; grid-template-columns: 1fr 1fr; border-right: 1px solid var(--rule); }
.books figure { height: auto; } .books figure img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.pg { position: relative; padding: 76px clamp(24px, 3.6vw, 56px) 56px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.pg-l { box-shadow: inset -12px 0 18px -18px rgba(0,0,0,.35); }
.pg .rh { position: absolute; top: 52px; font-family: var(--latin); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.pg-r .rh { right: clamp(24px, 3.6vw, 56px); } .pg-l .rh { left: clamp(24px, 3.6vw, 56px); }
.pg .fo { position: absolute; bottom: 22px; font-family: var(--accent); font-size: 12px; color: var(--soft); }
.pg-l .fo { left: clamp(24px, 3.6vw, 56px); } .pg-r .fo { right: clamp(24px, 3.6vw, 56px); }
.pg.white { background: var(--white); } .pg.cream { background: var(--cream); } .pg.tone { background: var(--tone); color: #fff; }
.pg.dark { background: var(--dark); color: #fff; } .pg.dark .rh, .pg.dark .fo, .pg.tone .rh, .pg.tone .fo { color: rgba(255,255,255,.6); }
.books .nm { font-size: 13px; font-weight: 500; } .books .sub { font-size: 11px; color: var(--soft); line-height: 1.6; }
.ttl { font-family: var(--accent); font-weight: 400; font-size: clamp(34px, 3.4vw, 56px); line-height: 1; letter-spacing: -.03em; }
/* 1 cover — ref4 */
.sp-cover { grid-template-columns: 1fr !important; grid-template-rows: 55% 45%; background: var(--white); }
.sp-cover .top { padding: 96px clamp(24px, 3.6vw, 56px) 32px; display: grid; grid-template-columns: 1fr auto; align-items: end; }
.sp-cover h1 { font-family: var(--accent); font-weight: 300; font-size: clamp(56px, 8.4vw, 150px); line-height: .88; letter-spacing: -.045em; }
.sp-cover .meta { text-align: right; font-size: 12px; color: var(--soft); display: grid; gap: 4px; }
.sp-cover .meta .no { font-family: var(--accent); font-size: 28px; color: var(--ink); }
.sp-cover .meta .jp { color: var(--ink); font-size: 14px; margin-bottom: 8px; }
.sp-cover .bleed { min-height: 0; height: 100%; }
/* 2 concept — ref1 */
.inset { position: relative; flex: 1; min-height: 0; } .inset figure { height: 100%; }
.capbox { position: absolute; left: 0; bottom: 0; width: min(68%, 360px); background: var(--paper-2); padding: 14px 18px; }
.sp-concept .pg-r { gap: 14px; }
.sp-concept .lead { font-size: clamp(15px, 1.25vw, 18px); font-weight: 500; }
.sp-concept .body { font-size: 12px; line-height: 1.85; text-align: justify; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: auto; }
.grid3 figure { aspect-ratio: 4 / 3; } .grid3 .nm { margin-top: 8px; font-size: 12px; line-height: 1.5; }
/* 3 outside — ref3 */
.ttl2 { font-family: var(--accent); font-weight: 500; font-size: clamp(28px, 2.8vw, 44px); line-height: 1; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 20px; }
.ttl2 span { display: block; font-size: .5em; letter-spacing: .14em; color: var(--soft); margin-bottom: 6px; }
.cells { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 6px; }
.cell.t { background: var(--paper-2); padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
figure.cell { min-height: 0; }
.darkbox { position: absolute; left: -1px; top: 52%; width: 62%; background: rgba(31,31,30,.92); color: #fff; padding: 22px 26px; border-radius: 0 28px 28px 0; }
.darkbox .k { font-family: var(--latin); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; opacity: .7; }
.darkbox h3 { font-family: var(--accent); font-weight: 500; font-size: clamp(16px, 1.4vw, 22px); margin: 6px 0; }
.darkbox p:last-child { font-size: 11px; opacity: .8; }
/* 4 inside — ref4 dark spread */
.whitebox { background: var(--white); color: var(--ink); padding: 22px 24px; width: min(72%, 340px); margin-top: 18%; }
.whitebox h2 { font-family: var(--accent); font-weight: 300; font-size: clamp(30px, 3vw, 48px); line-height: 1; letter-spacing: -.03em; margin-bottom: 10px; }
.whitebox p { font-size: 12px; color: var(--soft); }
.smalls { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .smalls figure { aspect-ratio: 4 / 3; }
.capline { font-size: 11px; color: var(--soft); margin-top: 10px; } .dark .capline { color: rgba(255,255,255,.6); }
/* 5 plan — ref5 */
.giant { font-family: var(--accent); font-weight: 300; font-size: clamp(120px, 17vw, 300px); line-height: .82; letter-spacing: -.05em; margin: auto 0 -.12em -.06em; color: rgba(255,255,255,.88); }
.float { margin: auto; width: 74%; display: grid; gap: 10px; } .float figure { aspect-ratio: 3 / 2; }
/* 6 part — ref2 product page */
.sp-part .pg-l { gap: 12px; }
.sec { font-size: 11px; font-weight: 500; }
.obj { width: 58%; align-self: flex-end; aspect-ratio: 1 / 1; } .obj img { object-fit: contain !important; mix-blend-mode: multiply; }
.sp-part h3 { font-family: var(--accent); font-weight: 500; font-size: 22px; }
.sp-part .body { font-size: 12px; max-width: 30em; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; font-size: 11px; margin-top: 6px; }
.specs .k { font-weight: 600; margin-bottom: 4px; } .specs dl { display: grid; grid-template-columns: 2em 1fr; margin: 0; } .specs dd { margin: 0; }
.more { margin-top: auto; font-family: var(--latin); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid; align-self: flex-start; }
/* 7 data — ref2 spec rows */
.spec { margin-top: 26px; display: grid; grid-template-columns: 8.5em 1fr; border-top: 1px solid var(--ink); }
.spec dt, .spec dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 12.5px; }
.spec dt { font-family: var(--latin); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); padding-top: 10px; }
.sp-data .note { margin-top: 14px; font-size: 11px; color: var(--soft); line-height: 1.7; }
.drawing { flex: 1; min-height: 0; } .drawing img { object-fit: contain !important; }
/* 8 index — ref4 INDEX */
.idx { margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 12px; }
.idx img { aspect-ratio: 1 / 1; object-fit: cover; height: auto; } .idx p { font-size: 10.5px; line-height: 1.45; margin-top: 6px; color: var(--soft); }
.idx b { display: block; font-family: var(--accent); font-weight: 400; font-size: 18px; color: var(--ink); }
.sp-index .pg-r { justify-content: center; gap: 48px; }
.sp-index .links a { display: flex; justify-content: space-between; border-top: 1px solid var(--ink); padding: 14px 0; font-size: 15px; }
.sp-index .links a:last-child { border-bottom: 1px solid var(--ink); }
.sp-index .next { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: end; } .sp-index .next img { aspect-ratio: 4 / 3; height: auto; }
.nm2 { font-family: var(--accent); font-size: 22px; font-weight: 300; }
/* phones: pages stacked downwards */
@media (max-width: 760px) {
  .books { flex-direction: column; height: auto; overflow: visible; }
  .books .sp { width: 100%; height: auto; grid-template-columns: 1fr; border-right: 0; }
  .sp-cover { grid-template-rows: auto auto; } .sp-cover .top { grid-template-columns: 1fr; gap: 16px; padding-top: 88px; } .sp-cover .meta { text-align: left; }
  .sp-cover .bleed img { aspect-ratio: 4 / 3; }
  .pg { padding: 56px var(--m) 48px; min-height: 0; } .pg-l { box-shadow: none; }
  .pg .rh { top: 22px; } .pg .fo { bottom: 16px; }
  .inset { flex: none; } .inset figure img, .inset.tall figure img { aspect-ratio: 4 / 5; height: auto; }
  .capbox { position: static; width: auto; }
  .cells { grid-auto-rows: auto; } figure.cell img { aspect-ratio: 1 / 1; height: auto; }
  .darkbox { position: static; width: auto; border-radius: 0; }
  .whitebox { margin-top: 8px; width: auto; } .smalls { margin-top: 20px; }
  .giant { font-size: 38vw; margin: 0; }
  .float { width: 100%; }
  .drawing img { height: auto; } .idx { grid-template-columns: repeat(3, 1fr); }
  .sp-concept .pg-r, .sp-part .pg-l { gap: 14px; } .grid3 { margin-top: 12px; }
}
.book .bar { background: var(--paper); border-bottom: 1px solid var(--rule); padding-bottom: 12px; }

/* simple monochrome: neutral greys only, no shadows or rounded boxes (池田さん「シンプルなモノクロ、影とかの要素はいらない」) */
.book { --white: #ffffff; --cream: #f2f2f2; --dark: #111111; --tone: #2b2b2b; --paper: #ffffff; --paper-2: #f0f0f0; --rule: #d9d9d9; --soft: #707070; }
.book, .book body { background: #fff; }
.pg-l { box-shadow: none; }
.book .bar, .book .bar nav, .book .folio { text-shadow: none !important; }
.darkbox { border-radius: 0; background: #111; }
.obj img { mix-blend-mode: normal; }
.book .pg { padding-top: 92px; } .book .pg .rh { top: 64px; }  /* the running head sits clear of the bar band */
/* the data as a single page (half a spread) */
.books .sp.half { width: 50vw; grid-template-columns: 1fr; }
.sp-data .spec { margin-top: 18px; } .sp-data .spec dt, .sp-data .spec dd { padding: 6px 0; }
.sp-data .drawing { flex: 1; min-height: 0; margin-top: 18px; }
@media (max-width: 760px) { .books .sp.half { width: 100%; } .sp-data .drawing { flex: none; } .sp-data .drawing img { height: auto; } }
/* plan: a plain heading and the roof-off pictures, floor by floor */
.sp-plan .pg-l { gap: 14px; } .sp-plan .lead { font-size: 15px; font-weight: 500; } .sp-plan .body { font-size: 12.5px; max-width: 28em; }
.floors { flex: 1; min-height: 0; display: grid; gap: 18px; align-content: center; }
.floors figure { aspect-ratio: 3 / 2; } .floors .nm { margin-top: 8px; font-size: 12px; font-weight: 400; color: var(--soft); }
.floors.n2 { grid-template-rows: 1fr 1fr; } .floors.n2 li { min-height: 0; display: flex; flex-direction: column; } .floors.n2 figure { flex: 1; min-height: 0; aspect-ratio: auto; }
@media (max-width: 760px) { .floors.n2 { grid-template-rows: none; } .floors.n2 figure { aspect-ratio: 3 / 2; flex: none; } }
/* no inverted (white on black) parts: the Inside spread and the Outside box are set dark on light (池田さん「斑点は反転」) */
.darkbox { background: #fff; color: var(--ink); border-top: 1px solid var(--ink); }
.darkbox .k, .darkbox p:last-child { color: var(--soft); opacity: 1; }
.whitebox { background: transparent; padding: 0; border-top: 1px solid var(--ink); padding-top: 16px; }

/* airy and dense, kept apart */
.air { margin: auto auto 0 0; width: 58%; } .air figure { aspect-ratio: 3 / 2; } .air .capline { margin-top: 8px; }
.sp-concept .pg-r { gap: 14px; } .sp-concept .lead { font-size: clamp(15px, 1.25vw, 18px); font-weight: 500; }
.pts { border-top: 1px solid var(--ink); margin-top: 6px; } .pts li { padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 12.5px; }
.dense { display: grid; gap: 14px 6px; margin-top: auto; } .dense.top { margin-top: 0; }
.dense.c2 { grid-template-columns: repeat(2, 1fr); } .dense.c3 { grid-template-columns: repeat(3, 1fr); }
.dense figure { aspect-ratio: 4 / 3; } .dense p { font-size: 10.5px; line-height: 1.45; color: var(--soft); margin-top: 5px; }
.dense b { font-family: var(--accent); font-weight: 400; color: var(--ink); margin-right: 8px; }
.sp-outside .ttl, .sp-inside .ttl { margin-bottom: 4px; }
.sp-part .air { width: 66%; }
@media (max-width: 760px) { .air { width: 100%; margin: 16px 0 0; } .dense.c3 { grid-template-columns: repeat(2, 1fr); } .dense { margin-top: 16px; } }
/* a dense spread set as one wide page */
.books .sp.full { grid-template-columns: 1fr; }
.full .hd { display: flex; align-items: baseline; gap: 16px; }
.dense.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .dense.c4 { grid-template-columns: repeat(2, 1fr); } }

/* ── the page grid: 6 columns × 8 rows per page (12 columns on a whole spread); every picture sits on its lines ── */
.book .pg { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr)); gap: 14px 12px; }
.book .pg > * { grid-column: 1 / -1; min-height: 0; }
.book .sp.full .pg { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.book .sp-data .pg { display: flex; }                                 /* the data page keeps its own flow */
.book .pg > .ttl, .book .pg > .hd { grid-row: 1; align-self: start; }
/* airy: one picture placed on the grid, its caption on the next line */
.book .air { width: auto; margin: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.book .air figure { aspect-ratio: 3 / 2; }
.sp-concept .pg-l .air { grid-column: 1 / 5; grid-row: 5 / 9; }   /* low left, four columns */
.sp-inside .pg-l .air { grid-column: 3 / 7; grid-row: 4 / 8; }    /* toward the fold, four columns */
.sp-concept .txtcol { grid-column: 2 / 7; grid-row: 1 / 9; display: flex; flex-direction: column; gap: 14px; }
/* dense: the list takes the page's own columns (subgrid), each picture two or three columns wide */
.book .dense { grid-template-columns: subgrid; margin: 0; gap: 18px 12px; align-content: start; }
.book .dense.c4 { grid-row: 3 / 9; align-content: end; } .book .dense.c4 li { grid-column: span 3; }
.book .dense.c3 { grid-row: 1 / 9; } .book .dense.c3 li { grid-column: span 2; }
/* parts: the telling one alone on the grid, the rest as a catalogue */
.sp-parts .obj { grid-column: 2 / 6; grid-row: 2 / 6; width: auto; aspect-ratio: auto; align-self: center; }
.sp-parts .obj img { object-fit: contain !important; }
.sp-parts .feat { grid-column: 1 / 5; grid-row: 6 / 9; align-self: end; display: flex; flex-direction: column; gap: 6px; }
.sp-parts .feat h3 { font-family: var(--accent); font-weight: 500; font-size: 22px; } .sp-parts .feat .ja { font-size: 12px; color: var(--soft); }
.mini { display: grid; grid-template-columns: 4em 1fr; font-size: 11px; margin: 6px 0 10px; border-top: 1px solid var(--rule); }
.mini dt, .mini dd { margin: 0; padding: 5px 0; border-bottom: 1px solid var(--rule); } .mini dt { color: var(--soft); }
.parts figure { aspect-ratio: 1 / 1 !important; background: #f3f3f3; } .parts figure img { object-fit: contain !important; }
.parts p { display: flex; flex-direction: column; } .parts p b { margin: 0; font-size: 12px; } .parts p span { color: var(--soft); }
@media (max-width: 760px) {
  .book .pg { display: flex; flex-direction: column; gap: 14px; }
  .book .dense { grid-template-columns: repeat(2, 1fr) !important; } .book .dense li { grid-column: auto !important; }
  .sp-parts .obj { width: 70%; align-self: center; }
}
.book .pg > .rh, .book .pg > .fo { grid-column: auto; grid-row: auto; }  /* absolute heads and folios measure from the page edge, not a grid area */

/* ── staggered and checkerboard grids (池田さん「互い違いに格子状」) ── */
/* outside: four columns, the 2nd and 4th dropped by half a picture */
.book .dense.c4 { align-content: start; grid-row: 2 / 9; }
.book .dense.c4 li:nth-child(4n+2), .book .dense.c4 li:nth-child(4n+4) { margin-top: 9vh; }
/* inside: three columns, the middle one dropped */
.book .dense.c3 li:nth-child(3n+2) { margin-top: 11vh; }
/* parts: a checkerboard — picture | words, then words | picture on the next row */
.checker { grid-column: 1 / -1; grid-row: 1 / 9; display: grid; grid-template-columns: subgrid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 0; }
.checker li { grid-column: span 3; display: grid; grid-template-columns: 1fr 1fr; min-height: 0; }
.checker li:nth-child(4n+3) figure, .checker li:nth-child(4n+4) figure { order: 2; }
.checker figure { aspect-ratio: auto; min-height: 0; background: #f3f3f3; }
.checker figure img { object-fit: cover !important; }
.checker p { display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; padding: 14px; font-size: 10.5px; color: var(--soft); background: #fff; }
.checker p b { font-family: var(--accent); font-weight: 500; font-size: 13px; color: var(--ink); }
.checker li:nth-child(4n+3) p, .checker li:nth-child(4n+4) p { background: #f7f7f7; }
.checker li:nth-child(4n+1) p, .checker li:nth-child(4n+2) p { background: #f7f7f7; }
.checker li:nth-child(4n+1) p, .checker li:nth-child(4n+2) p, .checker li:nth-child(4n+3) p, .checker li:nth-child(4n+4) p { background: transparent; }
@media (max-width: 760px) {
  .book .dense li { margin-top: 0 !important; } .book .dense li:nth-child(even) { margin-top: 32px !important; }
  .checker { grid-template-columns: 1fr; grid-template-rows: none; } .checker li { grid-column: auto; } .checker figure { aspect-ratio: 1 / 1; }
}
.book .dense.c4 { gap: 10px 12px; } .book .dense.c4 li:nth-child(4n+2), .book .dense.c4 li:nth-child(4n+4) { margin-top: 6vh; }
.book .dense.c4 figure { aspect-ratio: 3 / 2; }

/* cover split left | right: title on paper, the building on the larger side (池田さん「表紙は左右に。建物の領域が狭すぎる」) */
.sp-cover { grid-template-columns: 5fr 7fr !important; grid-template-rows: 1fr; }
.sp-cover .top { grid-template-columns: 1fr; align-content: end; align-items: start; gap: 28px; padding: 96px clamp(24px, 3.6vw, 56px) 56px; }
.sp-cover h1 { font-size: clamp(48px, 6.2vw, 112px); }
.sp-cover .meta { text-align: left; color: var(--ink); }  /* 2 lines left after the black one went: black (2026-11-26 池田さん「グレーじゃなくて黒にしてみて」) */
.sp-cover .bleed { height: 100svh; } .sp-cover .bleed img { object-position: 50% 55%; }
@media (max-width: 760px) { .sp-cover { grid-template-columns: 1fr !important; grid-template-rows: auto auto; } .sp-cover .bleed { height: auto; } }

/* ── alternating rows: picture | words, then words | picture (ref3 left page; 池田さん「写真と説明を互い違いに」) ── */
.alt { grid-column: 1 / -1; grid-row: 1 / 9; display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pg > .ttl + .alt { grid-row: 2 / 9; grid-template-rows: repeat(3, minmax(0, 1fr)); }
.alt li { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-height: 0; }
.alt li:nth-child(odd) figure { order: 2; }             /* first row: words left, picture right */
.alt figure { min-height: 0; aspect-ratio: auto !important; background: #f0f0f0; }
.alt figure img { width: 100%; height: 100%; object-fit: cover; }
.alt .tx { background: #f0f0f0; padding: clamp(14px, 1.8vw, 28px); display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 0; }
.alt .tx .n { font-family: var(--accent); font-size: 12px; color: var(--soft); }
.alt .tx h4 { margin: 0; font-family: var(--accent); font-weight: 500; font-size: clamp(13px, 1.1vw, 16px); line-height: 1.4; }
.alt .tx p:last-child { font-size: 11px; color: var(--soft); line-height: 1.6; }
@media (max-width: 760px) { .alt, .pg > .ttl + .alt { grid-template-rows: none; } .alt li { min-height: 0; } .alt figure { aspect-ratio: 1 / 1 !important; } }
/* outside: one main picture, large on the left page */
.sp-outside .main { grid-column: 1 / -1; grid-row: 3 / 9; display: flex; flex-direction: column; justify-content: flex-end; }
.sp-outside .main figure { flex: 1; min-height: 0; } .sp-outside .main .capline { margin-top: 8px; }
@media (max-width: 760px) { .sp-outside .main figure { aspect-ratio: 4 / 3; flex: none; } }
/* day | night: two full pages, a small tab names each */
.book .pg.bleedpg { padding: 0; display: block; }
.pg.bleedpg figure { position: absolute; inset: 0; } .pg.bleedpg figure img { width: 100%; height: 100%; object-fit: cover; }
.pg.bleedpg .rh, .pg.bleedpg .fo { display: none; }
.pg.bleedpg .tab { position: absolute; left: 0; bottom: 0; background: #fff; padding: 12px 18px; font-size: 11px; color: var(--soft); display: flex; gap: 12px; align-items: baseline; }
.pg-r.bleedpg .tab { left: auto; right: 0; }
.pg.bleedpg .tab b { font-family: var(--accent); font-weight: 500; font-size: 18px; color: var(--ink); }
@media (max-width: 760px) { .pg.bleedpg { aspect-ratio: 4 / 5; position: relative; } }
.pg.bleedpg .tab { bottom: 44px; }  /* clear of the progress line */
/* no white pads on pictures: the picture stops short of the page foot and the words sit on the paper below it (池田さん「イメージの上に白い座布団で文字を入れたくない」) */
.pg.bleedpg figure { inset: 0 0 64px 0; }
.pg.bleedpg .tab { background: none; padding: 0; bottom: 22px; left: clamp(24px, 3.6vw, 56px); }
.pg-r.bleedpg .tab { left: clamp(24px, 3.6vw, 56px); right: auto; }
@media (max-width: 760px) { .pg.bleedpg figure { inset: 0 0 52px 0; } }

/* ── home: the houses below the head run sideways and fill the rest of the screen; each set keeps its width (池田さん) ── */
@media (min-width: 761px) {
  .units { max-width: none; margin: 0; display: flex; gap: 64px; overflow-x: auto; overflow-y: hidden; padding: 8px var(--m) 28px;
    height: var(--fill, 70svh); scrollbar-width: none; overscroll-behavior-x: contain; }
  .units::-webkit-scrollbar { display: none; }
  .unit { flex: 0 0 min(1028px, calc(100vw - 2 * var(--m))); display: flex; flex-direction: column; min-height: 0; }
  .unit .ph, .u-r .ph, .u-row .ph, .u-one .ph { aspect-ratio: auto; flex: 1; min-height: 0; }
}
/* home sets: one over two (u-12), two over one (u-21) */
.unit.u-12 .ph, .unit.u-21 .ph { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.u-12 .i0 { grid-column: 1 / 3; grid-row: 1; } .u-12 .i1 { grid-column: 1; grid-row: 2; } .u-12 .i2 { grid-column: 2; grid-row: 2; }
.u-21 .i0 { grid-column: 1 / 3; grid-row: 2; } .u-21 .i1 { grid-column: 1; grid-row: 1; } .u-21 .i2 { grid-column: 2; grid-row: 1; }
@media (max-width: 760px) {
  .unit.u-12 .ph, .unit.u-21 .ph { grid-template-rows: auto auto; }
  .u-12 .i0, .u-21 .i0 { aspect-ratio: 3 / 2; } .u-12 .i1, .u-12 .i2, .u-21 .i1, .u-21 .i2 { aspect-ratio: 1 / 1; }
}
/* home sets: the picture block keeps a fixed 16:10 and the screen height sets its size; how much of the next house shows on the right follows from that (池田さん「縦横比を FIX して右側に入る情報量でコントロール」) */
@media (min-width: 761px) {
  .units { --ratio: 1.6; --uh: 54px; align-items: flex-start; }
  .unit { flex: 0 0 auto; width: calc((var(--fill, 600px) - 36px - var(--uh)) * var(--ratio)); }
  .unit .ph, .u-r .ph, .u-row .ph, .u-one .ph, .unit.u-12 .ph, .unit.u-21 .ph { flex: none; aspect-ratio: 16 / 10; height: auto; width: 100%; }
}
/* more room under the head: the space is added on the houses' side, the head itself is untouched */
@media (min-width: 761px) {
  .units { --pt: 56px; padding-top: var(--pt); }
  .unit { width: calc((var(--fill, 600px) - var(--pt) - 28px - var(--uh)) * var(--ratio)); }
}
@media (max-width: 760px) { .units { padding-top: 32px; } }
/* home sets: the big picture 16:9, the two small ones square; the set's size follows the screen height (池田さん「下の 2 つをスクエアに」) */
@media (min-width: 761px) {
  .units { --k: 1.0625; }  /* set height / width = 9/16 + 1/2 */
  .unit { width: calc((var(--fill, 600px) - var(--pt) - 28px - var(--uh)) / var(--k)); }
  .unit.u-12 .ph, .unit.u-21 .ph { aspect-ratio: auto !important; grid-template-rows: auto auto; }
}
.u-12 .i0, .u-21 .i0 { aspect-ratio: 16 / 9; height: auto; } .u-12 .i1, .u-12 .i2, .u-21 .i1, .u-21 .i2 { aspect-ratio: 1 / 1; height: auto; }
/* when the screen is taller than a set needs, the row sits in the middle of the space under the head (池田さん) */
@media (min-width: 761px) { .units { height: var(--avail, 70svh); align-items: center; } }
/* centred a little high: the optical middle sits above the true middle */
@media (min-width: 761px) { .units { padding-bottom: calc(28px + max(0px, (var(--avail, 0px) - var(--fill, 0px)) * .3)); } }

/* ── house pages: every spread is the same sheet, 3:2, as tall as the screen allows (capped), laid end to end ──
   (池田さん「雑誌風のまま」「小さすぎ」「比率を固定」) */
@media (min-width: 761px) {
  .books { --sh: min(calc(100svh - 58px - 20px), 1000px); align-items: center; padding-top: 58px; gap: 0; }
  .books .sp { flex: 0 0 auto; width: calc(var(--sh) * 1.5) !important; height: var(--sh); }
  .books .sp.half { width: calc(var(--sh) * .75) !important; }
  .book .books .pg { padding: calc(var(--sh) * .07) calc(var(--sh) * .05) calc(var(--sh) * .07); }
  .book .pg .rh { top: calc(var(--sh) * .03); } .book .pg .fo { bottom: calc(var(--sh) * .025); }
  .sp-cover .top { padding: calc(var(--sh) * .07) calc(var(--sh) * .05); }
  .sp-cover .bleed { height: var(--sh); }
  .pg.bleedpg figure { inset: 0 0 calc(var(--sh) * .07) 0; }
}
@media (min-width: 761px) {
  /* cover: title column, then the picture whole at 3:2, set inside the sheet (no tall crop) */
  .sp-cover { grid-template-columns: 30% 70% !important; grid-template-rows: 1fr; align-items: center; }
  .sp-cover .top { grid-template-columns: 1fr; align-content: end; align-self: stretch; }
  .sp-cover .meta { text-align: left; }
  .sp-cover .bleed { height: auto; padding: 0 calc(var(--sh) * .05) 0 0; }
  .sp-cover .bleed img { aspect-ratio: 3 / 2; height: auto; width: 100%; }
  /* day / night: each picture whole at 3:2 across its page, words under it */
  .book .books .pg.bleedpg { padding: calc(var(--sh) * .07) calc(var(--sh) * .04); display: flex !important; flex-direction: column; justify-content: center; gap: 10px; }
  .pg.bleedpg figure { position: static; inset: auto; aspect-ratio: 3 / 2; width: 100%; }
  .pg.bleedpg .tab { position: static; left: auto; right: auto; }
}

/* denser sheets: tighter margins, the single pictures take their page, the rows fill the page height (池田さん「密度がない」) */
@media (min-width: 761px) {
  .book .books .pg { padding: calc(var(--sh) * .06) calc(var(--sh) * .035) calc(var(--sh) * .05); gap: 10px 8px; }
  .sp-concept .pg-l .air { grid-column: 1 / -1; grid-row: 2 / 9; }
  .sp-inside .pg-l .air { grid-column: 1 / -1; grid-row: 2 / 9; }
  .books .air figure { aspect-ratio: 3 / 2; width: 100%; }
  .sp-outside .main { grid-row: 2 / 9; }
  .books .alt { grid-row: 1 / 9; gap: 6px; }
  .books .alt li { gap: 6px; }
  .books .alt.r3 { grid-template-rows: repeat(3, minmax(0, 1fr)); }
  .books .alt.r2 { grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .book .books .pg.bleedpg { padding: calc(var(--sh) * .06) calc(var(--sh) * .02); }
  .sp-daynight .pg-l { padding-left: calc(var(--sh) * .035) !important; } .sp-daynight .pg-r { padding-right: calc(var(--sh) * .035) !important; }
  .sp-cover .bleed { padding-right: calc(var(--sh) * .035); }
}

/* ── strong contrast of density, and the full height used (池田さん「密度の強弱」「もっと高さを使う」) ── */
@media (min-width: 761px) {
  .books { --sh: min(calc(100svh - 58px), 1000px); padding-top: 58px; }
  /* loudest: one picture fills a whole sheet */
  .books .sp-full { display: block !important; } .sp-full figure { width: 100%; height: 100%; } .sp-full img { width: 100%; height: 100%; object-fit: cover; }
  /* quietest: the concept picture small on an empty page */
  .sp-concept .pg-l .air { grid-column: 1 / 4; grid-row: 6 / 9; }
  /* densest: contact sheets that run the full page height */
  .sheetgrid { grid-column: 1 / -1; grid-row: 1 / 9; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 10px 6px; align-content: stretch; }
  .sheetgrid li { display: flex; flex-direction: column; min-height: 0; }
  .sheetgrid figure { flex: 1; min-height: 0; } .sheetgrid figure img { width: 100%; height: 100%; object-fit: cover; }
  .sheetgrid p { font-size: 10px; line-height: 1.4; color: var(--soft); margin-top: 4px; }
  .sheetgrid p b { display: block; font-family: var(--accent); font-weight: 500; font-size: 11.5px; color: var(--ink); }
  /* outside: the main picture runs the full page height */
  .sp-outside .main { grid-row: 1 / 9; }
}
/* cover staggered: the title up at the top left, the picture dropped to the foot on the right (池田さん「タイトルを上に、写真を下に、互い違いに」) */
@media (min-width: 761px) {
  .sp-cover { align-items: stretch; }
  .sp-cover .top { align-content: start; padding-top: calc(var(--sh) * .07); }
  .sp-cover .bleed { align-self: end; padding-bottom: calc(var(--sh) * .05); }
}
/* concept: the picture large across the left page, low (池田さん「下の写真小さくて見えない」) */
@media (min-width: 761px) { .sp-concept .pg-l .air { grid-column: 1 / -1; grid-row: 3 / 9; } }
/* contact sheets keep each picture whole: 3:2 tiles (parts 9:7), two across, rows as tall as they need, set in the middle of the page (池田さん「何が写っているか分からない」) */
@media (min-width: 761px) {
  .sheetgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; align-content: center; gap: 14px 8px; }
  .sheetgrid figure { flex: none; aspect-ratio: 3 / 2; }
  .sheetgrid.parts9 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sheetgrid.parts9 figure { aspect-ratio: 9 / 7; }
}
@media (min-width: 761px) { .sp-concept .body { font-size: 14px; line-height: 1.95; max-width: 30em; } }
/* alternating rows: the words sit on the white page, no grey pad (池田さん「グレーいらない」) */
.alt .tx { background: none; padding-left: clamp(10px, 1.4vw, 22px); padding-right: clamp(10px, 1.4vw, 22px); }
.alt figure { background: none; }
.books .sp { border-right: 0 !important; }  /* no rules between sections (池田さん) */
.sp-concept .body p + p { margin-top: .9em; }
@media (min-width: 761px) { .sp-concept .body { font-size: 13px; line-height: 1.85; max-width: 34em; } }

/* text sizes change only where the layout changes (desktop / phone), never with the window width in between (池田さん「文字だけ小さくなるのは NG」) */
@media (min-width: 761px) {
  .book .ttl { font-size: 48px; }
  .book .sp-cover h1 { font-size: 104px; }
  .book .sp-concept .lead { font-size: 17px; }
  .book .alt .tx h4 { font-size: 15px; }
}
@media (max-width: 760px) {
  .book .ttl { font-size: 34px; }
  .book .sp-cover h1 { font-size: 52px; }
  .book .sp-concept .lead { font-size: 15px; }
  .book .alt .tx h4 { font-size: 13px; }
}
/* home sets: the two small pictures share the big one's 16:9 (池田さん「小さい写真も大きい方と同じ比率に」) */
.u-12 .i1, .u-12 .i2, .u-21 .i1, .u-21 .i2 { aspect-ratio: 16 / 9; }
@media (min-width: 761px) { .units { --k: .84375; } }  /* set height / width = 9/16 + 9/32 */
@media (max-width: 760px) { .u-12 .i1, .u-12 .i2, .u-21 .i1, .u-21 .i2 { aspect-ratio: 16 / 9; } }
/* a small gap between the pictures of a set (池田さん「少しだけ gap」) */
.unit.u-12 .ph, .unit.u-21 .ph { gap: 6px; }
/* a work with one picture fills the same box as a three-picture set, so the row stays even (池田さん「なんでずれるん」) */
@media (min-width: 761px) { .unit.u-one .ph { aspect-ratio: 1 / .84375 !important; } }
@media (min-width: 761px) {  /* exact: a set is W*(9/16) + 6px gap + ((W-6px)/2)*(9/16) tall */
  .unit.u-one .ph { aspect-ratio: auto !important; height: calc((var(--fill, 600px) - var(--pt) - 28px - var(--uh)) / var(--k) * .84375 + 4.3125px); }
}
/* concept: more leading in the text, and the one-line concept set larger (池田さん) */
.sp-concept .body { line-height: 2.1; }
@media (min-width: 761px) { .book .sp-concept .lead { font-size: 22px; line-height: 1.6; } }
@media (max-width: 760px) { .book .sp-concept .lead { font-size: 18px; line-height: 1.6; } }
/* data: two pages; the plan alone on the right page, sitting at the foot */
@media (min-width: 761px) {
  .book .books .sp-data .pg { width: auto; }
  .sp-data .pg-l { justify-content: flex-start; }
  .book .books .sp-data .pg-r { display: flex !important; flex-direction: column; justify-content: flex-end; }
  .sp-data .pg-r .drawing { flex: none; height: auto; width: 100%; margin: 0; }
  .sp-data .pg-r .drawing img { width: 100%; height: auto; object-fit: contain; }
}
/* outside: day above, night below, the same view, each whole at 3:2 */
@media (min-width: 761px) {
  .sp-outside .dn2 { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
  .sp-outside .dn2:nth-of-type(1) { grid-row: 2 / 5; align-self: end; } .sp-outside .dn2:nth-of-type(2) { grid-row: 5 / 9; align-self: end; }
  .sp-outside .dn2 figure { aspect-ratio: 3 / 2; width: auto; max-width: 100%; height: auto; flex: 1; min-height: 0; }
  .sp-outside .dn2 figure img { width: 100%; height: 100%; object-fit: cover; }
}
.sp-outside .dn2 .capline b { font-family: var(--accent); font-weight: 500; color: var(--ink); margin-right: 10px; }
@media (min-width: 761px) {
  .book .books .sp-outside .pg-l:has(.dn2) { display: flex !important; flex-direction: column; justify-content: flex-end; gap: 14px; }
  .sp-outside .pg-l:has(.dn2) .ttl { margin-bottom: auto; }
  .sp-outside .pg-l .dn2 { flex: none; }
  .sp-outside .pg-l .dn2 figure { flex: none; height: calc((var(--sh) * .89 - 48px - 72px) / 2); width: auto; aspect-ratio: 3 / 2; }
}
@media (min-width: 761px) { .sp-outside .pg-l:has(.dn2) > * { flex-shrink: 0; } }
@media (min-width: 761px) {
  .book .books .sp-outside .pg-l:has(.dn2) { justify-content: flex-start; align-items: flex-start; gap: 10px; }
  .sp-outside .pg-l:has(.dn2) .ttl { margin-bottom: 8px; }
  .sp-outside .pg-l .dn2 figure { height: calc((var(--sh) * .89 - 48px - 18px - 56px - 30px) / 2); }
}
/* pictures set to the foot carry their caption above, so the picture's lower edge is the line (池田さん「下揃えのイメージは説明を上か右に」) */
.books .air .capline, .books .main .capline, .books .dn2 .capline { order: -1; margin: 0 0 6px; }
@media (min-width: 761px) {
  .sp-outside .dn2:nth-of-type(1), .sp-outside .dn2:nth-of-type(2) { align-self: flex-start; }
}
/* running heads start on the same left (and right) edge as the page's text and pictures (池田さん「左揃え」) */
@media (min-width: 761px) {
  .book .books .pg-l .rh { left: calc(var(--sh) * .035); }
  .book .books .pg-r .rh { right: calc(var(--sh) * .035); }
}
/* outside, single main picture: below the title, whole at 3:2, set to the foot with its caption above */
@media (min-width: 761px) {
  .sp-outside .main { grid-row: 2 / 9; display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; }
  .sp-outside .main figure { flex: none; aspect-ratio: 3 / 2; width: 100%; height: auto; max-height: 100%; }
}
/* the sheet never gets shorter than 760px: on low screens the page scrolls a little instead of the text spilling out */
@media (min-width: 761px) { .books { --sh: max(760px, min(calc(100svh - 58px), 1000px)); } }
@media (min-width: 761px) { .books { height: max(100svh, calc(var(--sh) + 58px)); } }  /* on low screens the strip is as tall as a sheet, and the page scrolls down to its foot */

/* sun: a grid of six — rows morning / noon / evening, columns winter / summer — each 3:2 */
.sungrid { grid-column: 1 / -1; grid-row: 2 / 9; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 8px; align-content: end; }
.pg-r .sungrid { grid-row: 1 / 9; }
.sungrid figure { aspect-ratio: 3 / 2; } .sungrid figure img { width: 100%; height: 100%; object-fit: cover; }
.sungrid p { font-size: 11px; color: var(--soft); margin-top: 4px; }
.sp-sun .sub { grid-row: 1; align-self: end; margin-top: 56px; color: var(--soft); font-size: 12px; }
/* sketch: the main picture below the title, like outside */
@media (min-width: 761px) {
  .sp-sketch .main { grid-column: 1 / -1; grid-row: 2 / 9; display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; }
  .sp-sketch .main figure { flex: none; aspect-ratio: 3 / 2; width: 100%; height: auto; max-height: 100%; }
  .sp-sketch .main figure img { width: 100%; height: 100%; object-fit: cover; }
}
.books .sp-sketch .main .capline { order: -1; margin: 0 0 6px; }
/* parts on one page: the title, then the catalogue below it */
.sp-parts.half .sheetgrid { grid-row: 2 / 9; align-content: start; margin-top: 12px; }
/* sketch: the second drawing on the right page, set to the foot like the first */
@media (min-width: 761px) {
  .sp-sketch .pg-r .main { grid-row: 1 / 9; }
}
/* sun as two vertical strips, winter | summer, the three times touching */
.sungrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; align-content: end; }
.sungrid li { display: flex; flex-direction: column; gap: 0; }
.sungrid li p { order: -1; margin: 0 0 6px; font-size: 12px; color: var(--ink); }
.sungrid li p span { color: var(--soft); font-size: 11px; margin-left: 8px; }
.sungrid figure { aspect-ratio: 3 / 2; margin: 0; }
.sungrid li p { font-family: var(--accent); font-size: 14px; } .sungrid li p span { font-family: var(--latin); letter-spacing: .06em; }
.book .sp-sun .pg-l > .sub { grid-row: 1; grid-column: 4 / -1; justify-self: end; align-self: end; margin: 0 0 6px; }
.ttl .ttl-sub { font-family: var(--latin); font-size: 12px; letter-spacing: .04em; color: var(--soft); margin-left: 16px; vertical-align: baseline; }
/* sketch: four drawings 2 × 2 in the centre of the spread, each whole at 3:2 */
.sk4 { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; align-content: center; gap: 14px 14px; }
.sk4 li { display: flex; flex-direction: column; gap: 5px; }
.sk4 p { font-size: 11px; color: var(--soft); }
.sk4 figure { aspect-ratio: 3 / 2; } .sk4 figure img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 761px) {
  .book .books .sp-sketch.full .pg { display: flex !important; flex-direction: column; }
  .sp-sketch .sk4 { flex: 1; min-height: 0; }
  .sp-sketch .sk4 figure { height: calc((var(--sh) * .89 - 48px - 2 * 22px - 14px - 20px) / 2); width: auto; }
}
@media (max-width: 760px) { .sk4 { grid-template-columns: 1fr; } }
@media (min-width: 761px) { .sp-sketch .sk4 figure { height: calc((var(--sh) * .89 - 48px - 14px - 20px) / 2); } }
/* concept picture: day and night of the same view cross-fade, slowly (池田さん「昼と夜をフェードで切り替え」) */
.fade { position: relative; overflow: hidden; }
.fade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fade img.n { animation: daynight 12s ease-in-out infinite; opacity: 0; }
@keyframes daynight { 0%, 30% { opacity: 0; } 45%, 80% { opacity: 1; } 95%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fade img.n { animation: none; } }
/* one paper for the whole site: the top uses the same white as the house pages (池田さん「トップと詳細で背景色が違う」) */
body.home { --paper: #ffffff; background: #ffffff; }
.home .bar { background: #ffffff; }
html { background: #ffffff; }
body { background: #ffffff; }  /* one white paper for the whole site (池田さん「トップと詳細で背景色が違う」) */
/* Housebook: version 1 in five columns; every seventh object keeps its 2 × 2 large cell (池田さん「1 を 5 列に。2 列分とるものは残す」) */
.objs { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-flow: dense; }
@media (max-width: 760px) { .objs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* the large cell fills both rows, so its picture ends on the same line as the small pictures beside it (池田さん「下のツラが合う」) */
@media (min-width: 761px) {
  .objs li:nth-child(7n+1) a { display: flex; flex-direction: column; height: 100%; }
  .objs li:nth-child(7n+1) .ph { flex: 1; aspect-ratio: auto; min-height: 0; }
}
/* the large cells alternate sides: left, then right, then left… (池田さん) */
@media (min-width: 761px) { .objs li:nth-child(14n+8) { grid-column: 4 / 6; } }
/* colour swatches under an object: small round chips; the pressed one is ringed */
.objs .dots { display: inline-flex; gap: 5px; align-items: center; }
.objs .dot { all: unset; width: 11px; height: 11px; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.objs .dot.on { outline: 1px solid var(--ink); outline-offset: 2px; }
.objs .dot:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.unit .uh { border-bottom: 0; padding-bottom: 0; }  /* no rule under the set titles on the top (池田さん) */
@media (min-width: 761px) { .sp-parts .obj { grid-row: 3 / 7; } .sp-parts .feat { grid-row: 7 / 9; } }  /* the telling part sits lower (池田さん) */
/* phones: the longer brand and the three words share the bar without touching */
@media (max-width: 760px) { .brand { font-size: 11.5px; letter-spacing: 0; } .bar nav { gap: 10px; font-size: 9.5px; letter-spacing: .1em; } }
@media (max-width: 760px) { .brand { font-size: 11px; } .bar nav { gap: 9px; letter-spacing: .05em; } }
/* top: more room under the row of houses (池田さん「下にもう少し余白」) */
@media (min-width: 761px) {
  .units { --pb: 64px; padding-bottom: calc(var(--pb) + max(0px, (var(--avail, 0px) - var(--fill, 0px)) * .3)); }
  .unit { width: calc((var(--fill, 600px) - var(--pt) - var(--pb) - var(--uh)) / var(--k)); }
  .unit.u-one .ph { height: calc((var(--fill, 600px) - var(--pt) - var(--pb) - var(--uh)) / var(--k) * .84375 + 4.3125px); }
}
/* the set title stays one line, so every set's pictures start on the same line; a long one-liner ends in … */
@media (min-width: 761px) {
  .unit .uh { white-space: nowrap; min-width: 0; }
  .unit .uh i { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
}
/* Housebook: a heading for each section inside a tab */
.hb-sec + .hb-sec { margin-top: 72px; }
.hb-sh { font-family: var(--accent); font-weight: 400; font-size: 22px; margin: 0 0 20px; display: flex; gap: 12px; align-items: baseline; }
.hb-sh span { font-family: var(--latin); font-size: 11px; color: var(--soft); letter-spacing: .12em; }
.hb-head nav { flex-wrap: wrap; justify-content: flex-end; }

/* ── phones: the global menu folds into a hamburger (池田さん) ── */
.burger { display: none; }
@media (max-width: 760px) {
  .burger { all: unset; display: grid; gap: 6px; align-content: center; width: 28px; height: 28px; cursor: pointer; pointer-events: auto; }
  .burger span { display: block; height: 1.5px; background: var(--ink); transition: transform .25s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
  .bar { align-items: center; }
  .bar .gnav { display: none; }
  .bar .gnav.open { display: flex; flex-direction: column; gap: 18px; position: fixed; top: 52px; left: 0; right: 0; padding: 20px var(--m) 28px;
    background: #fff; border-bottom: 1px solid var(--rule); font-size: 13px; letter-spacing: .14em; }
  .brand { font-size: 13px; }
  /* top: a larger house name, the one-liner close under it, and no grey between the pictures (池田さん) */
  .unit .uh { row-gap: 4px; margin-bottom: 14px; }
  .unit .uh b { font-size: 22px; }
  .unit .ph { background: none; }
}
@media (max-width: 760px) { .unit .uh b, .unit .uh i { line-height: 1.3; } .unit .uh { margin-bottom: 12px; } }

/* the same picture keeps the same proportions on desktop and phone (池田さん「モバイルとデスクトップの画像の比率を変えない」) */
.sp-cover .bleed img, .sp-outside .main figure, .sp-outside .fade, .sp-outside .dn2 figure { aspect-ratio: 3 / 2 !important; }
@media (max-width: 760px) { .sp-cover .bleed img { height: auto; width: 100%; } .sp-outside .main figure, .sp-outside .fade { width: 100%; height: auto; flex: none; } }
/* alternating rows: the picture is 3:2 everywhere; on desktop the rows take the picture's height instead of stretching it */
.alt figure { aspect-ratio: 3 / 2 !important; height: auto !important; }
@media (min-width: 761px) {
  .books .alt, .books .pg > .ttl + .alt, .books .alt.r3, .books .alt.r2 { grid-template-rows: none !important; grid-auto-rows: auto; align-content: center; gap: 6px; }
  .books .alt li { align-items: stretch; }
}
/* Housebook: the large cell keeps the shape it has on desktop (two cells and a gap wide, two rows tall) */
@media (max-width: 760px) { .objs li:nth-child(7n+1) .ph { aspect-ratio: 10 / 9 !important; } }
@media (max-width: 760px) { .cat-head > div { display: none; } }  /* phones: the count and the filters are left out (池田さん「モバイルだと邪魔」) */
/* top: the gap between the pictures of a set halved, 6px -> 3px (池田さん) */
.unit.u-12 .ph, .unit.u-21 .ph { gap: 3px; }
@media (min-width: 761px) { .unit.u-one .ph { height: calc((var(--fill, 600px) - var(--pt) - var(--pb) - var(--uh)) / var(--k) * .84375 + 2.15625px); } }

/* phones, house pages: wider side margins (24px), everything on one left line, no rule under the header (池田さん) */
@media (max-width: 760px) {
  .book { --mm: 24px; }
  .book .books .pg { padding-left: var(--mm); padding-right: var(--mm); }
  .book .pg .rh { left: var(--mm) !important; right: auto !important; }
  .sp-cover .top { padding-left: var(--mm); padding-right: var(--mm); }
  .sp-cover .bleed { padding: 0 var(--mm) 24px !important; }
  .sp-parts .obj { align-self: flex-start; width: 70%; margin: 0; }
  .sp-parts .feat { width: 100%; margin: 0; align-self: stretch; }
  .book .bar { border-bottom: 0; }
}
/* phones: parts two across (the alternating rows keep swapping sides, as before) */
@media (max-width: 760px) {
  .sheetgrid, .sheetgrid.parts9 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px 8px; }
  .sheetgrid p b { display: block; }
}
@media (max-width: 760px) { .sheetgrid, .sheetgrid.parts9 { display: grid !important; } .sheetgrid figure { aspect-ratio: 9 / 7; } .sheetgrid p { font-size: 10.5px; color: var(--soft); margin-top: 4px; } }
@media (max-width: 760px) { .book .bar { padding-left: 24px; padding-right: 24px; } .book .progress { left: 24px; right: 24px; } }

/* phones, parts: more room under the picture; the words start on the picture's left line (池田さん「座りが悪い」) */
@media (max-width: 760px) { .sp-parts .obj { margin-bottom: 28px; } .sp-parts .feat { gap: 8px; } }
/* phones: no running heads (EAMES HOUSE / PARTS…) and the parts' words closer under the main picture (池田さん) */
@media (max-width: 760px) { .book .pg .rh { display: none; } .sp-parts .obj { margin-bottom: 10px; } }
/* top: the gap between the pictures of a set, 2px (池田さん) */
.unit.u-12 .ph, .unit.u-21 .ph { gap: 2px; }
@media (min-width: 761px) { .unit.u-one .ph { height: calc((var(--fill, 600px) - var(--pt) - var(--pb) - var(--uh)) / var(--k) * .84375 + 1.4375px); } }
@media (max-width: 760px) { .book .books .pg-r { padding-top: 45px; } }  /* phones: the space under a page's main picture to the next page cut to about two thirds, 140 -> 93px (池田さん) */
/* phones, Housebook head: the title on its own line, the four tabs in one row under it, from the left (池田さん「メニュー周り壊れてる」) */
@media (max-width: 760px) {
  .hb { padding: 88px 24px 64px; }
  .hb-head { grid-template-columns: 1fr; gap: 14px; }
  .hb-head nav { justify-content: flex-start; flex-wrap: nowrap; gap: 18px; font-size: 11px; letter-spacing: .12em; }
}
@media (max-width: 760px) { body:has(.hb) .bar { padding-left: 24px; padding-right: 24px; } }
/* the header carries no paper band and no rule on any page, as on the Housebook (池田さん) */
.bar, .home .bar, .book .bar { background: none !important; border-bottom: 0 !important; }
/* phones, top: the title as large as the Housebook's, and the same 24px side margins as the other pages (池田さん) */
@media (max-width: 760px) {
  .home .bar { padding-left: 24px; padding-right: 24px; }
  .cat-head { padding-left: 24px; padding-right: 24px; }
  .cat-head h1 { font-size: 48px; }
  .units { padding-left: 24px !important; padding-right: 24px !important; }
  .unit .uh { padding-left: 0; padding-right: 0; }
}
/* phones, top: the pictures run to the screen edges again; only the words keep the 24px margin (池田さん「写真の部分までマージン入れなくていい」) */
@media (max-width: 760px) {
  .units { padding-left: 0 !important; padding-right: 0 !important; }
  .unit .uh { padding-left: 24px; padding-right: 24px; }
}
/* top: the title sits where the Housebook's does (88px phone / 120px desktop under the top) and the content starts 48px under
   the head, as on the Housebook (池田さん「トップだけ上下のマージンが違う」) */
.cat-head { padding-top: 120px; padding-bottom: 0; }
@media (min-width: 761px) { .units { --pt: 48px; } }
@media (max-width: 760px) { .cat-head { padding-top: 88px; padding-bottom: 0; } .units { padding-top: 48px; } }
/* phones: with the menu open, the header turns white too, so header and menu read as one sheet over the page (池田さん) */
@media (max-width: 760px) { .bar:has(.burger[aria-expanded="true"]) { background: #fff !important; } }
@media (max-width: 760px) { .units { padding-top: 88px !important; gap: 88px !important; } }  /* phones: the room above each house nearly doubled, 48 -> 88px (池田さん) */
/* phones, house pages: the big pictures (cover, concept, the main picture of Outside / Inside) run to the screen edges;
   the words, the rows of small pictures, the sketches, the parts and the plan keep the 24px margin (池田さん「一部の要素を左右の余白なくて広げる」) */
@media (max-width: 760px) {
  /* not every picture to both edges: the cover runs edge to edge; the others open to one side only, left and right in
     turn (池田さん「全部左右じゃなくて左だけ開ける、右だけ開けるも」) */
  .book .sp-cover figure.bleed { width: 100vw !important; max-width: none !important; margin-left: calc(50% - 50vw) !important; margin-right: 0 !important; padding: 0 !important; }
  .book .sp-concept .pg-l > .air figure, .book .sp-inside .pg-l > .air figure { width: calc(100% + 24px) !important; max-width: none !important; margin-left: -24px !important; margin-right: 0 !important; }
  .book .sp .main figure { width: calc(100% + 24px) !important; max-width: none !important; margin-left: 0 !important; margin-right: -24px !important; }
  /* the rows of small pictures keep the 24px on both sides (池田さん「メイン以外のはいいよ」) */
}
.unit .uh { margin-bottom: 24px !important; }  /* top: more room between a house's name and words and its pictures, 12 -> 24px (池田さん) */
/* Housebook top (2026-11-23: 池田さん「Housebookにはトップページを作ってもいいかもな」): the three kinds side by side, each a large
   picture with its name and count and four small pictures under it; what came in lately below */
.hbt-lede { margin: -32px 0 40px; color: var(--soft); }
.hbt-kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 96px; }
.hbt-kind { display: block; }
.hbt-hero { background: #e9e4dc; aspect-ratio: 4 / 5; overflow: hidden; }
.hbt-hero img { width: 100%; height: 100%; object-fit: cover; }
.hbt-meta { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 10px; border-bottom: 1px solid var(--ink); padding-bottom: 8px; }
.hbt-meta h2 { font-family: var(--latin); font-weight: 300; font-size: clamp(24px, 2.6vw, 40px); letter-spacing: -.02em; }
.hbt-meta span { font-family: var(--latin); color: var(--soft); font-size: 12px; letter-spacing: .14em; }
.hbt-small { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.hbt-small li { background: #e9e4dc; aspect-ratio: 1; overflow: hidden; }
.hbt-small img { width: 100%; height: 100%; object-fit: cover; }
.hbt-new li:nth-child(7n+1) { grid-column: auto; grid-row: auto; }  /* the new row keeps every picture one size */
.hbt-new .c span { letter-spacing: 0; }
@media (max-width: 760px) {
  .hbt-kinds { grid-template-columns: 1fr; gap: 40px; margin-bottom: 64px; }
  .hbt-hero { aspect-ratio: 4 / 3; }
}
/* the new row on a phone: no larger first picture either (the furniture page's every-seventh rule, lines 158 and 896) */
.hbt-new li:nth-child(7n+1) .ph { aspect-ratio: 9 / 7 !important; flex: none; }
@media (max-width: 760px) { .hbt-new li:nth-child(7n+1) { grid-column: auto; } .hbt-new li:nth-child(7n+1) .ph { aspect-ratio: 9 / 7 !important; } }
/* Housebook top, the kinds: heading, then the main picture, then the small pictures woven like minsa (絣の五つと四つ):
   picture and space alternate, the second row shifted by one (2026-11-23: 池田さん「小さいのはミンサー織りみたいに互い違いに
   空間を作りたい」) */
.hbt-meta { margin: 0 0 14px; }
.hbt-hero { aspect-ratio: 4 / 3; }
.hbt-small { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, auto); margin-top: 0; }
.hbt-small li:nth-child(1) { grid-area: 1 / 1; }
.hbt-small li:nth-child(2) { grid-area: 1 / 3; }
.hbt-small li:nth-child(3) { grid-area: 2 / 2; }
.hbt-small li:nth-child(4) { grid-area: 2 / 4; }
@media (max-width: 760px) { .hbt-hero { aspect-ratio: 4 / 3; } }
/* the small pictures closer in: the thing fills its square instead of standing small in the floor's middle (2026-11-23) */
.hbt-small img { transform: scale(1.7); }
/* the kinds' headings without the black rule under them (2026-11-23: 池田さん「タイトル下の黒い下線はいらない」) */
.hbt-meta { border-bottom: 0; padding-bottom: 0; }
/* the pictures as drawn: their own 9:7, not cut to another shape or zoomed (2026-11-23: 池田さん「画像の縦横比は変えないサムネイルを
   そのまま使う」); replaces the 4:3 / square cells and the 1.7 zoom above */
.hbt-hero, .hbt-small li { aspect-ratio: auto; }
.hbt-hero img, .hbt-small img { width: 100%; height: auto; object-fit: initial; transform: none; display: block; }
@media (max-width: 760px) { .hbt-hero { aspect-ratio: auto; } }
/* the kinds one under another, each with its main picture smaller on the left and the woven small pictures on the right
   (2026-11-23: 池田さん「メインのサイズを下げてメインを左に小さいの右にはおける？」) */
.hbt-kinds { grid-template-columns: 1fr; gap: 72px; }
.hbt-kind { display: grid; grid-template-columns: 5fr 7fr; column-gap: 24px; align-items: start; }
.hbt-kind .hbt-meta { grid-column: 1 / -1; }
.hbt-kind .hbt-hero { grid-column: 1; }
.hbt-kind .hbt-small { grid-column: 2; }
@media (max-width: 760px) {
  .hbt-kinds { gap: 48px; }
  .hbt-kind { grid-template-columns: 1fr; row-gap: 0; }
  .hbt-kind .hbt-hero, .hbt-kind .hbt-small { grid-column: 1; }
}
/* the main picture as wide as two small ones, so it stands as tall as their two rows (both 9:7) (2026-11-23: 池田さん
   「メインの高さとサブ二つ分の高さを合わせられない？」) */
.hbt-kind { grid-template-columns: 2fr 4fr; }
@media (max-width: 760px) { .hbt-kind { grid-template-columns: 1fr; } }
/* on a phone too: the main picture on the left, the woven small ones on the right, the same 2 : 4 so their heights meet
   (2026-11-23: 池田さん「スマホは変えれない？」) */
@media (max-width: 760px) {
  .hbt-kind { grid-template-columns: 2fr 4fr; column-gap: 10px; }
  .hbt-kind .hbt-hero { grid-column: 1; }
  .hbt-kind .hbt-small { grid-column: 2; }
}
/* the small pictures in a plain 2 x 2 grid beside the main one, not woven: main and grid each half, the same height
   (2026-11-23: 池田さん「ミンサーをやめてグリッドに戻してみて」); replaces the minsa placements above */
.hbt-kind { grid-template-columns: 1fr 1fr; }
.hbt-small { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, auto); }
.hbt-small li:nth-child(n) { grid-area: auto; }
@media (max-width: 760px) { .hbt-kind { grid-template-columns: 1fr 1fr; column-gap: 10px; } }
/* the small pictures apart by the same gap as the one beside the main picture (2026-11-23: 池田さん「小さい方は左のキャラと
   同じギャップを入れれる？」). With a gap g inside the grid, the main picture is wider than the grid by 2g/7 so both stand
   equally tall at 9:7: main = (T - g)/2 + g/7 */
.hbt-kind { --g: 24px; column-gap: var(--g); grid-template-columns: calc((100% - var(--g)) / 2 + var(--g) / 7) 1fr; }
.hbt-small { gap: var(--g); }
@media (max-width: 760px) { .hbt-kind { --g: 10px; column-gap: var(--g); grid-template-columns: calc((100% - var(--g)) / 2 + var(--g) / 7) 1fr; } }
/* less room under the kinds' headings, 14 -> 6px (2026-11-23: 池田さん「見出しの下の余白を少し減らそう」) */
.hbt-meta { margin-bottom: 6px; }
/* a little less again: no margin, and the heading's own line set tight (2026-11-23: 池田さん「もうちょい」) */
.hbt-meta { margin-bottom: 0; }
.hbt-meta h2 { line-height: 1; padding-bottom: 4px; }
.hbt-meta h2 { padding-bottom: 10px; }  /* 4px touched the picture; about half the first gap */
/* New: the desktop keeps its row of five; a phone shows the kinds' form instead (2026-11-23) */
.hbt-new-m { display: none; }
.hbt-new-m .hbt-kind + .hbt-kind { margin-top: var(--g, 10px); }
@media (max-width: 760px) {
  .hbt-new-d { display: none; }
  .hbt-new-m { display: block; margin-top: 48px; }
}
/* the count right after the heading, not at the far right (2026-11-23: 池田さん「数字はタイトル直後でいいよ」) */
.hbt-meta { justify-content: flex-start; gap: 10px; }
/* New on a phone: the large picture alternates sides, left in the first group and right in the second (2026-11-23:
   池田さん「Newは大きいのが互い違いになるようにして」); the section's first child is its heading, so groups are children 2, 3, … */
@media (max-width: 760px) {
  .hbt-new-m > .hbt-kind:nth-child(2n+3) { grid-template-columns: 1fr calc((100% - var(--g)) / 2 + var(--g) / 7); }
  .hbt-new-m > .hbt-kind:nth-child(2n+3) .hbt-hero { grid-column: 2; grid-row: 1; }
  .hbt-new-m > .hbt-kind:nth-child(2n+3) .hbt-small { grid-column: 1; grid-row: 1; }
}
/* the largest titles pulled left by their letters' own left space, so the H's stem lines up with the brand and the text below
   (2026-11-23: 池田さん「1番大きいサイズのタイトルが少し右に寄ってる気がする」: measured 4 px on a phone, 9-11 px on a desktop,
   0.085 of the type size every time) */
.cat-head h1, .hb-head h1 { margin-left: -0.085em; }
.cat-head h1, .hb-head h1 { margin-left: -0.05em; }  /* fully aligned read as overhanging; a little of the letters' own space kept (池田さん「もう若干右に」) */
/* Floors: the floor written large on each picture, the rooms under it (2026-11-23: 池田さん「どれが何階かわかんねー」) */
.flr { position: relative; margin: 0; }
.flr img { display: block; width: 100%; height: auto; }
.flr-n { position: absolute; left: 12px; top: 8px; font-family: var(--latin); font-weight: 300; font-size: clamp(32px, 4vw, 56px);
         line-height: 1; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.35); letter-spacing: -.02em; }
.sp-floors .flr-row + .flr-row { margin-top: 24px; }
.sp-floors .capline { margin-top: 6px; }
.sp-floors .air { display: flex; flex-direction: column; }
.sp-floors .air .flr { order: 1; } .sp-floors .air .capline { order: 2; }  /* the rooms under every picture, the first one too */

/* Floors, the right page: the floors share its height on the page grid, each picture whole (2026-11-23: 池田さん
   「レイアウト壊れてる」: each floor took one of the eight rows and the first was squeezed to a strip) */
.book .sp-floors .pg-r > .flr-row { grid-row: span 4; display: flex; flex-direction: column; min-height: 0; margin-top: 0; }
.book .sp-floors .pg-r > .flr-row:only-of-type { grid-row: 1 / 9; }
.book .sp-floors .pg-r > .flr-row .flr { flex: 1 1 auto; min-height: 0; }
.book .sp-floors .pg-r > .flr-row .flr img { width: auto; max-width: 100%; height: 100%; object-fit: contain; object-position: left top; }
.book .sp-floors .pg-r > .flr-row .capline { flex: none; }
.book .sp-floors .pg-r > .flr-row:only-of-type .flr { flex: none; }
.book .sp-floors .pg-r > .flr-row:only-of-type .flr img { height: auto; max-height: calc(100vh - 260px); }
/* Floors, the left page: the ground floor at the middle of the floors on the right (2026-11-23: 池田さん「1Fは2Fと3Fの縦方向の中央に」) */
.book .sp-floors .pg-l > .air { grid-row: 1 / 9; justify-content: center; }
.book .sp-floors .pg-r > .flr-row:only-of-type { justify-content: center; }   /* one floor on the right: level with the left */
/* the count and the filters on every screen (池田さん「PCからもこれけそうか」: the filters linked nowhere) */
.cat-head > div { display: none; }
/* the floor tag smaller and plain, no shadow (2026-11-23: 池田さん「1Fとか2Fとかがデカすぎるのとドロップシャドウもいらない」) */
.flr-n { font-size: clamp(16px, 1.4vw, 22px); color: var(--ink); text-shadow: none; left: 10px; top: 8px; font-weight: 400; }
/* Housebook's head without the full-width rule (池田さん「横幅全部の下線入らないかも」) */
.hb-head { border-bottom: 0; }

/* Housebook's Concept, under the top: the structure in pictures, few words (2026-11-23) */
.hbc { margin-top: 96px; }
@media (min-width: 761px) { .hbc { padding-bottom: 96px; } }  /* Environments がページの下端に付いていた（池田さん「下に余白がない」）。スマホは元から 64px ある */
.hbc-board { background: #b49f80; padding: clamp(28px, 4vw, 56px); margin-top: 24px; color: #fff; }
.hbc-t { font-family: var(--latin); font-weight: 400; font-size: 14px; letter-spacing: .02em; margin: 0 0 24px; color: rgba(255,255,255,.85); }
.hbc-tv { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: clamp(16px, 2.4vw, 40px); align-items: center; }
.hbc-tv ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hbc-tv li { display: grid; align-items: center; gap: 14px; }
.hbc-l li { grid-template-columns: auto minmax(0, 150px); justify-content: end; }
.hbc-r li { grid-template-columns: minmax(0, 150px) auto; justify-content: start; }
.hbc-tv li span { font-family: var(--latin); font-size: 13px; color: #fff; white-space: nowrap; }
.hbc-tv img, .hbc-ad img { display: block; width: 100%; aspect-ratio: 9 / 7; object-fit: cover; }
.hbc-c { margin: 0; } .hbc-c figcaption { font-family: var(--latin); font-size: 13px; margin-top: 8px; text-align: center; }
.hbc-n { margin: 24px 0 0; font-size: 13px; color: rgba(255,255,255,.9); text-align: center; }
.hbc-ad { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.hbc-ad h3 { font-family: var(--latin); font-weight: 500; font-size: 15px; margin: 0 0 12px; }
.hbc-ad p { font-size: 12px; line-height: 1.7; margin: 12px 0 0; color: rgba(255,255,255,.92); }
@media (max-width: 760px) {
  .hbc-tv { grid-template-columns: 1fr; } .hbc-c { order: -1; }
  .hbc-l li, .hbc-r li { grid-template-columns: 1fr 1fr; justify-content: stretch; }
  .hbc-ad { grid-template-columns: 1fr 1fr; }
}
/* Concept in monochrome (池田さん「そのまんまかい... 白黒モノトーンでいい」) */
.hbc-board { background: #ededed; color: var(--ink); }
.hbc-t { color: var(--soft); }
.hbc-tv li span, .hbc-c figcaption { color: var(--ink); }
.hbc-n, .hbc-ad p { color: var(--soft); }

/* the opening grid of the top (2026-11-23) */
.intro { position: fixed; inset: 0; z-index: 100; background: var(--white, #fff); display: grid; gap: 4px; padding: 4px;
         grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); transition: opacity .8s ease; }
.intro i { display: block; background: #e9e9e9 center / cover no-repeat; opacity: 0; transform: scale(1.03); transition: opacity .6s ease, transform .9s ease; }
.intro i.on { opacity: 1; transform: none; }
.intro.out { opacity: 0; pointer-events: none; }
@media (max-width: 760px) { .intro { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, 1fr)); } }  /* turned on its side (池田さん) */
.hbc-lede { font-family: var(--latin); font-weight: 300; font-size: clamp(30px, 4.4vw, 64px); line-height: 1.3; letter-spacing: -.03em; margin: 28px 0 0; max-width: 18em; }  /* 1.08 → 1.3 (池田さん「この行間はきつい普通にしてみて、housebookの方も」「1.3くらい」) */
.hbc-sub { font-family: var(--latin); font-size: clamp(14px, 1.2vw, 17px); color: var(--soft); margin: 22px 0 8px; max-width: 40em; }
.hbc-env { display: grid; grid-template-columns: 2fr 3fr; gap: clamp(16px, 2.4vw, 40px); align-items: start; }
.hbc-env ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hbc-mode { grid-template-columns: 1fr 1fr; } .hbc-time { grid-template-columns: repeat(3, 1fr); }
.hbc-env img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hbc-env span { display: block; font-family: var(--latin); font-size: 13px; margin-top: 8px; color: var(--ink); }
@media (max-width: 760px) { .hbc-env { grid-template-columns: 1fr; } }
/* each sentence on its own line, unbroken on a wide screen (池田さん「design system. まで一行で、最後の whole house. も 1 行で」) */
.hbc-lede { max-width: none; font-size: clamp(22px, 3.3vw, 56px); }
.hbc-lede span, .hbc-sub span { display: block; }
@media (min-width: 761px) { .hbc-lede span, .hbc-sub span { white-space: nowrap; } }
.hbc-sub { max-width: none; }
.hbc-n, .hbc-ad p { font-family: var(--latin); }
/* the light modes and the hours touching, no gaps (池田さん「余白は消して…繋げてみて」) */
.hbc-mode, .hbc-time { gap: 0 !important; }
/* Token & Variants on a phone: the type on top, then the six in two columns, each word under its picture
   (池田さん「普通に2カラムにしてcolor:navyとかを下に入れる」) */
@media (max-width: 760px) {
  .hbc-tv { grid-template-columns: 1fr 1fr; gap: 14px 10px; }
  .hbc-c { grid-column: 1 / -1; }
  .hbc-tv ol { display: contents; }
  .hbc-l li, .hbc-r li { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
  .hbc-tv li span { order: 2; white-space: normal; font-size: 12px; }
  .hbc-tv li img { order: 1; }
}
@media (max-width: 760px) {  /* colours down the left, the shapes down the right (池田さん「colorが左variantsが右」) */
  .hbc-l li { grid-column: 1; } .hbc-r li { grid-column: 2; }
  .hbc-l li:nth-child(1), .hbc-r li:nth-child(1) { grid-row: 2; }
  .hbc-l li:nth-child(2), .hbc-r li:nth-child(2) { grid-row: 3; }
  .hbc-l li:nth-child(3), .hbc-r li:nth-child(3) { grid-row: 4; }
}
/* the opening's title: the grid sinks into the dark and the name comes up through it (池田さん「TAKUJI IKEDA's Housing Studies
   というのも見せてからホームに」「エモい感じで」) */
.intro { transition: opacity 1.2s ease; }
.intro i { transition: opacity .6s ease, transform .9s ease, filter 1.4s ease; }
.intro.title i { filter: brightness(.38) blur(3px) saturate(.8); transform: scale(1.015); }
.intro-t { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none;
           color: #fff; text-align: center; }
.intro-t p { margin: 0; font-family: var(--latin); opacity: 0; transition: opacity 1.6s ease, letter-spacing 2.2s cubic-bezier(.2, .7, .2, 1), transform 2.2s cubic-bezier(.2, .7, .2, 1); }
.intro-t .a { font-size: clamp(12px, 1.1vw, 15px); letter-spacing: .6em; text-transform: uppercase; transform: translateY(6px); }
.intro-t .b { font-weight: 300; font-size: clamp(44px, 8vw, 132px); line-height: 1; letter-spacing: .18em; margin-top: 18px; transform: translateY(10px); }
.intro.title .intro-t .a { opacity: .85; letter-spacing: .32em; transform: none; transition-delay: .2s; }
.intro.title .intro-t .b { opacity: 1; letter-spacing: -.03em; transform: none; transition-delay: .5s; }
/* the grid fades to white and the name comes up in black, as the top it leads to (池田さん「白に黒文字にしていくと次の画面とのつながりがよさそう」) */
.intro.title i { filter: brightness(1.55) contrast(.55) saturate(.35) blur(3px); opacity: .55; }
.intro-t { color: var(--ink); }
.intro.title .intro-t .a { opacity: .7; }
.intro-t .b { font-size: clamp(34px, 5.6vw, 92px); }  /* a little smaller (池田さん「中央の文字はもう少し小さくても」) */
/* no zoom on the pictures, no tracking on the words: they only fade (池田さん「画像の余白が消える動きは不要」「文字が中央にも集まらなくてもいい」) */
.intro i, .intro.title i { transform: none; }
.intro-t .a, .intro-t .b { transform: none; }
.intro-t .a { letter-spacing: .32em; } .intro-t .b { letter-spacing: -.03em; }
.intro-t p { transition: opacity 1.6s ease; }
@media (max-width: 760px) { .home-progress { display: none; } }  /* phones read the houses downwards */
/* ── Housebook on a desktop: the kinds, the new things and each tab's sections run sideways in one strip below the head, as the
   houses on the top; the wheel moves it, a thin line under it shows how far along (2026-11-24: 池田さん「PCもhousebookは横スクロールに」).
   Everything is sized from the strip's height (--sh), so a picture keeps its 9:7 and the screen height sets its size. Phones keep the
   pages downwards. ── */
@media (min-width: 761px) {
  .hb { padding-bottom: 0; }
  .hb-strip { --g: 24px; --sh: calc(var(--fill, 600px) - 88px); display: flex; align-items: flex-start; gap: 72px; height: calc(var(--fill, 70svh) - 40px);
    margin: 0 calc(-1 * var(--m)); padding: 0 var(--m); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; }
  .hb-strip::-webkit-scrollbar { display: none; }
  .hb-strip > * { flex: none; }
  .hb-progress { position: relative; left: auto; right: auto; bottom: auto; margin: 0; }
  .hb-progress ~ .hbc { margin-top: 120px; }  /* the top goes on downwards to the Concept */
  /* the top: each kind is its heading over a large picture and four small ones; the large one as tall as the 2 x 2 beside it */
  .hb-strip .hbt-kinds { display: contents; }
  .hb-strip .hbt-kind { --mh: calc(clamp(24px, 2.6vw, 40px) + 10px); --H: calc(var(--sh) - var(--mh));
    grid-template-columns: calc(var(--H) * 9 / 7) calc((var(--H) - var(--g)) * 9 / 7 + var(--g)); grid-template-rows: var(--mh) var(--H); }
  .hb-strip .hbt-meta { margin: 0; align-items: flex-start; }
  /* the new things: two rows of five, every picture one size, read down and across */
  .hb-strip .hbt-new-d { margin: 0; }
  .hb-strip .hbt-new-d .hbt-meta { height: calc(clamp(24px, 2.6vw, 40px) + 10px); }
  .hb-strip .objs { --rh: calc((var(--sh) - var(--oh) - var(--rg)) / 2); --rg: 20px; --cap: 31px;
    grid-template-columns: none; grid-template-rows: repeat(2, var(--rh)); grid-auto-flow: column dense;
    grid-auto-columns: calc((var(--rh) - var(--cap)) * 9 / 7); gap: var(--rg) 16px; }
  .hb-strip .hbt-new-d .objs { --oh: calc(clamp(24px, 2.6vw, 40px) + 10px); }
  .hb-strip .objs li, .hb-strip .objs li:nth-child(14n+8) { grid-column: auto; grid-row: auto; }
  .hb-strip .objs .ph { aspect-ratio: auto; height: calc(var(--rh) - var(--cap)); }
  /* a tab: each section is its heading over its objects; every seventh object takes two columns by two rows, the six after it fill three columns */
  .hb-strip .hb-sec + .hb-sec { margin-top: 0; }
  .hb-strip .hb-sh { height: 27px; margin-bottom: 20px; }
  .hb-strip .hb-sec:not(.hbt-new-d) .objs { --oh: 47px; }
  .hb-strip .hb-sec:not(.hbt-new-d) .objs li:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; }
  .hb-strip .hb-sec:not(.hbt-new-d) .objs li:nth-child(7n+1) .ph { flex: none; height: calc(var(--rh) * 2 + var(--rg) - var(--cap)); }
  /* a caption stays on one line, a long name ends in … */
  .hb-strip .objs .c { gap: 10px; white-space: nowrap; }
  .hb-strip .objs .c .n { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
}
@media (max-width: 760px) { .hb-progress { display: none; } }  /* phones read the Housebook downwards */
.objs .c .n { font-style: normal; }
/* the top's strip lower than a tab's, so the Concept below shows (2026-11-24: 池田さん「トップの上のスクロールエリアはもっと高さを縮めて」) */
@media (min-width: 761px) {
  .hbt-strip { --sh: calc(var(--fill, 600px) * .7 - 88px); height: calc(var(--fill, 70svh) * .7 - 40px); }
}
/* the top's kinds on a desktop: sixteen pictures each in two rows of one size, in place of the large one and its four (2026-11-24:
   池田さん「各カテゴリーももっといっぱい出てていいな2段とかで」); phones keep the large one and its four */
.hbt-many { display: none; }
@media (min-width: 761px) {
  .hbt-strip .hbt-kind { --rh: calc((var(--H) - var(--g)) / 2); grid-template-columns: auto; }
  .hbt-strip .hbt-hero, .hbt-strip .hbt-small { display: none; }
  .hbt-strip .hbt-many { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, var(--rh)); grid-auto-columns: calc(var(--rh) * 9 / 7); gap: var(--g); }
  .hbt-strip .hbt-many li { background: #e9e4dc; overflow: hidden; }
  .hbt-strip .hbt-many img { width: 100%; height: 100%; object-fit: cover; display: block; }
}
/* New on the top's strip: the same cells as the kinds beside it, no names (as on a phone) */
@media (min-width: 761px) {
  .hbt-strip .hbt-new-d { --H: calc(var(--sh) - clamp(24px, 2.6vw, 40px) - 10px); --rh: calc((var(--H) - var(--g)) / 2); }
  .hbt-strip .hbt-new-d .objs { --rh: calc((var(--H) - var(--g)) / 2); grid-template-rows: repeat(2, var(--rh)); grid-auto-columns: calc(var(--rh) * 9 / 7); gap: var(--g); }
  .hbt-strip .hbt-new-d .objs .ph { height: 100%; }
  .hbt-strip .hbt-new-d .objs .c { display: none; }
}
/* the top's strip: more room between a kind's heading and its pictures, 10 -> 18 -> 26px (2026-11-24: 池田さん「少し画像との余白あけて」「もうちょい」) */
@media (min-width: 761px) {
  .hbt-strip .hbt-kind { --mh: calc(clamp(24px, 2.6vw, 40px) + 26px); }
  .hbt-strip .hbt-new-d .hbt-meta { height: calc(clamp(24px, 2.6vw, 40px) + 26px); }
  .hbt-strip .hbt-new-d { --H: calc(var(--sh) - clamp(24px, 2.6vw, 40px) - 26px); }
}
/* a tab: three rows of smaller pictures, more of them on a screen (2026-11-24: 池田さん「このページももっと小さくして詰め込んで」);
   every seventh still takes two by two, and the rows close up around it */
@media (min-width: 761px) {
  .hb-strip:not(.hbt-strip) .objs { --rg: 16px; grid-template-rows: repeat(3, var(--rh)); --rh: calc((var(--sh) - var(--oh) - 2 * var(--rg)) / 3); gap: var(--rg) 12px; }
}
/* a line under a house's title, as "3D Study after Yoshifumi Nakamura" (2026-11-24) */
.sp-cover .after { margin-top: 14px; font-family: var(--accent); font-size: clamp(14px, 1.3vw, 20px); letter-spacing: -.005em; color: var(--ink); }
.sp-cover .after { text-wrap: balance; line-height: 1.45; }  /* on a desktop it breaks after "after", not inside the name */
.sp-cover h1 .nb { white-space: nowrap; }
@media (min-width: 761px) { .book .sp-cover h1:has(.nb) { font-size: 88px; } }  /* "Rei Hut" kept on one line fits the cover column only a size down (104 -> 88px) */
@media (min-width: 761px) { .sp-cover .top { grid-template-columns: minmax(0, 1fr); } }  /* the lines under the title wrap inside the cover column, not as wide as a long title (2026-11-24) */
/* Stages: a house whose furniture changes by phase, each floor a row and each phase a column, the same cut side by side
   (2026-11-24, Side by Side) */
.sp-stages .stg-note { margin-top: 10px; font-size: 13px; color: var(--soft); }
.sp-stages .stg-note + .stg-note { margin-top: 2px; }
.stg-row { position: relative; margin-top: 28px; }
.stg-row .flr-n { position: static; display: block; margin-bottom: 8px; font-family: var(--accent); font-size: 20px; color: var(--ink); background: none; }
.stg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stg figure { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: #eee; }
.stg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stg .capline { margin-top: 6px; }
@media (max-width: 760px) { .stg { gap: 6px; } }
/* Stages, larger: a floor per page, the phases one under another, each picture with its phase beside it */
@media (min-width: 761px) {
  .sp-stages .pg { display: flex !important; flex-direction: column; justify-content: flex-start; }
  .sp-stages .stg { grid-template-columns: 1fr; gap: 12px; }
  .sp-stages .stg li { display: flex; align-items: flex-end; gap: 14px; }
  .sp-stages .stg figure { flex: none; height: calc((var(--sh, 760px) - 330px) / 3); width: auto; aspect-ratio: 3 / 2; }
  .sp-stages .stg .capline { margin: 0 0 4px; }
  .sp-stages .pg-r .stg-row:first-child { margin-top: calc(48px + 1.2em); }
}
@media (max-width: 760px) {  /* phones: each phase the width of the screen, one under another, no tall empty pages */
  .sp-stages .pg { min-height: 0 !important; height: auto !important; aspect-ratio: auto !important; display: block !important; padding-bottom: 8px; }
  .sp-stages .stg { grid-template-columns: 1fr; gap: 14px; }
}
/* Stages as one table across the spread (replaces the floor-per-page layout above) */
.sp-stages .stg-hd { display: flex; align-items: baseline; gap: 20px; }
.sp-stages .stg-hd .stg-note { margin: 0; }
.stg-grid { display: grid; grid-template-columns: auto repeat(var(--n), minmax(0, 1fr)); gap: 10px 12px; align-items: end; margin-top: 18px; }
.stg-grid .stg-ph { font-size: 13px; color: var(--ink); padding-bottom: 2px; }
.stg-grid .flr-n { position: static; align-self: start; font-family: var(--accent); font-size: 20px; color: var(--ink); background: none; padding: 0 6px 0 0; }
.stg-grid figure { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: #eee; }
.stg-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 761px) {
  .book .books .sp-stages.full .pg { display: flex !important; flex-direction: column; }
  .stg-grid { width: min(100%, calc(((var(--sh, 760px) - 230px) / 2) * 1.5 * var(--n) + 120px)); }
}
@media (max-width: 760px) { .stg-grid { gap: 6px; } .stg-grid .stg-ph { font-size: 11px; } .stg-grid .flr-n { font-size: 15px; } }
@media (min-width: 761px) { .stg-grid { gap: 6px 10px; width: min(100%, calc(((var(--sh, 760px) - 200px) / var(--r, 2)) * 1.5 * var(--n) + 80px)); } }
.stg-grid { row-gap: 8px !important; }
.stg-grid figure { width: 100%; height: auto; }
.stg-grid .flr-n.stg-in { font-family: inherit; font-size: 12px; color: var(--soft); }
/* Stages: the phases as rows, each floor's plan and room as columns */
.stg-grid .stg-ph { font-size: 13px; color: var(--ink); }
.stg-grid .stg-row-h { align-self: center; padding-right: 8px; white-space: nowrap; }
.stg-grid { align-items: stretch !important; }
/* a page that is its 3D model only (OFFICE FLOORS, 2026-11-24): the viewer fills the screen under the bar, the name over it */
.modelpage { overflow: hidden; }
.mv { position: fixed; inset: 0; }
.mv-stage { position: absolute; inset: 0; }
.mv-stage canvas { display: block; width: 100%; height: 100%; }
.mv-load { position: absolute; inset: 0; display: grid; place-items: center; color: var(--soft); font-size: 13px; }
.mv-title { position: absolute; left: var(--m); top: 96px; pointer-events: none; }
.mv-title h1 { font-family: var(--accent); font-weight: 300; font-size: clamp(44px, 6vw, 104px); line-height: .9; letter-spacing: -.045em; }
.mv-title p { margin-top: 6px; font-size: 13px; color: var(--soft); } .mv-title .jp { margin-top: 18px; color: var(--ink); font-size: 14px; }
.mv-bar { position: absolute; left: var(--m); right: var(--m); bottom: 28px; display: flex; align-items: center; gap: 18px; }
.mv-floors { display: flex; gap: 6px; }
.mv-floors button { all: unset; cursor: pointer; font-family: var(--accent); font-size: 15px; padding: 6px 12px; border: 1px solid var(--ink); }
.mv-floors button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.mv-floors button:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.mv-people { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.mv-hint { margin-left: auto; font-size: 12px; color: var(--soft); }
@media (max-width: 760px) { .mv-title { top: 72px; } .mv-hint { display: none; } }
/* the model fills the first screen; the Data follows below it (池田さん「それとDATAぐらいでいい」) */
.modelpage { overflow: auto; }
.mv { position: relative; height: 100svh; }
.mv-data { padding: 72px var(--m) 96px; max-width: 760px; }
.mv-data h2 { font-family: var(--accent); font-weight: 300; font-size: 48px; letter-spacing: -.03em; }
.mv-data .sub { color: var(--soft); font-size: 12px; margin-top: 4px; }
.mv-data dl { display: grid; grid-template-columns: 140px 1fr; margin-top: 28px; border-top: 1px solid var(--ink); }
.mv-data dt, .mv-data dd { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.mv-data dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.mv-data .note { margin-top: 20px; font-size: 12px; color: var(--soft); }
.mv-data dl { column-gap: 0; } .mv-data dt { padding-right: 16px; }
/* Stages with more room (池田さん「もう少しゆとりある感じに」): wider gaps, and a wider one between the upper and the lower floor's pair */
@media (min-width: 761px) {
  .stg-grid { gap: 18px 14px !important; width: min(100%, calc(((var(--sh, 760px) - 260px) / var(--r, 2)) * 1.5 * var(--n) + 120px)); margin-top: 26px; }
  .sp-stages .stg-hd { margin-bottom: 6px; }
}
@media (min-width: 761px) {
  }
@media (min-width: 761px) {  /* the floors' pairs apart by an empty column now, not by shifting one column */
}
.stg-grid > .stg-h { align-self: end; }  /* the column headings sit on the line above the pictures */
/* a picture turning day / night where it stands (not only the outside's first): its frame keeps the 3:2 of the pictures */
figure.fade.dn { aspect-ratio: 3 / 2; }

/* ── About ── */
/* the title set as the other menu pages' titles (Housebook): 池田さん「メニューに並ぶ他のものと合わせてみてよ」 */
.aboutpage .mv-title h1 { font-size: clamp(48px, 9vw, 150px); line-height: .88; letter-spacing: -.045em; margin-left: -0.05em; }
/* desktop: the titles of the top page, Housebook and About at Housebook's size; the three with their top 120 px down. Only these three: the houses' pages (the covers, the office's and the cafe's model) keep their own
   (2026-11-25: 池田さん「全部95pxでデスクトップ統一してみ」「上からの余白とかも合わせて」→「トップだけ95であとは115は？」「トップと、housebookとaboutの話してるんだけど」) */
@media (min-width: 761px) {
  .cat-head h1, .hb-head h1, .aboutpage .mv-title h1 { font-size: clamp(48px, 9vw, 150px); }  /* the top too (池田さん「PCはトップも大きくしてっみて」) */
  .aboutpage .mv-title { top: 120px; }
}
/* About's words lie over the model (池田さん「3Dにかぶってもいい」); on a desktop they wrap at 440 px (「折り返しの横幅をもう少し短く」) */
@media (min-width: 761px) { .aboutpage .mv-title p { max-width: 440px; } }
/* the creator under the site's words (池田さん「creatorとかじゃないんだ」): a small label, the name, then the profile in grey */
.aboutpage .ab-author { margin-top: 32px; }
.aboutpage .ab-author .cap { margin: 0; font-size: 10.5px; color: var(--soft); }
.aboutpage .ab-author .ab-name { margin-top: 8px; font-family: var(--accent); font-size: 16px; letter-spacing: .04em; color: var(--ink); }
.aboutpage .mv-title p { text-wrap: pretty; }  /* no single word left on the last line ("it.") */
/* the site's words, in ink and a size up (池田さん「サイトの説明をAboutの直後に黒文字で」「もっとでかくしたい」), set as Housebook's Concept lede (「Conceptの文字と合わせよう」) */
.aboutpage .mv-title .ab-lede { margin-top: 18px; color: var(--ink); font-size: 24px; font-weight: 300; letter-spacing: -.03em; line-height: 1.3; }
@media (max-width: 760px) { .aboutpage .mv-title .ab-lede { font-size: 18px; } }  /* a little smaller on phones (2026-11-25 池田さん) */
/* About's English words in the Latin face, never in Hiragino's Latin (池田さん「欧文にヒラギノを使うのはやめよう」); an element with its own face (the accent) keeps it */
.aboutpage [lang="en"] { font-family: var(--latin); }
/* phones: About's sides 24 px, as the top page and Housebook (池田さん「モバイルでみたらAboutの横幅のpaddingが違う気がする」); the words stop 24 px short of the right edge too */
@media (max-width: 760px) { .aboutpage .bar { padding-left: 24px; padding-right: 24px; } .aboutpage .mv-title { left: 24px; right: 24px; } }
/* the lede wraps to more lines on phones: more air between them; Atomic Design's notes closer (池田さん「モバイルだと行間増やした方が」
   「atomic designの各セクションのテキストの行間は減らしたい」) */
@media (max-width: 760px) { .hbc-lede { line-height: 1.22; font-size: 26px; } }  /* 22 → 26 on phones (2026-11-25 池田さん「少し大きく」) */
.hbc-ad p { line-height: 1.45; }

/* Floors as one centred 2x2 across the spread (FLOORS_GRID in gen.py; 2026-11-25 FAN DECK, 池田さん「2x2で中央に寄せる」) */
.flr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin: 18px auto 0; }
.flr-grid figure { margin: 0; aspect-ratio: 7 / 5; overflow: hidden; background: #eee; }
.flr-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 761px) {
  .book .books .sp-floors.full .pg { display: flex !important; flex-direction: column; }
  .sp-floors.full .flr-grid { margin: auto; width: min(100%, calc(((var(--sh, 760px) - 250px) / 2) * 1.4 * 2 + 18px)); }
}

/* Housebook's section names (Furniture, Outdoor, Plants, New) in the accent face, on every width (2026-11-25 池田さん) */
.hbt-meta h2 { font-family: var(--accent); }

/* phones: the open menu's names on the same left edge as the brand in the bar (24px; 2026-11-25 池田さん「メニューの左側のツラが
   ヘッダーのTAKUJIのツラとずれてる」) */
@media (max-width: 760px) { .bar .gnav.open { padding-left: 24px; padding-right: 24px; } }

/* a wider Outside (OUTSIDE_WIDE in gen.py): three pages, the small pictures three to a page (2026-11-25 FAN DECK) */
@media (min-width: 761px) {
  /* the right page half as wide again (a page is --sh * .75): the checkerboard keeps its cells' size with a third column */
  .books .sp.sp-outside.wide { width: calc(var(--sh) * 1.875) !important; grid-template-columns: 2fr 3fr; }
  /* four rows exactly the page's height, so the last row ends on the main picture's bottom (池田さん「下のツラが揃ってない」);
     the cells keep close to 3:2, a few percent cropped */
  .books .sp-outside.wide .alt3 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)) !important; height: 100%; gap: 6px 8px; }
  .sp-outside.wide .alt3 figure { margin: 0; aspect-ratio: auto !important; height: 100% !important; min-height: 0; }
  .sp-outside.wide .alt3 figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
}

/* Floors with one parallel view on the left and the floors from straight above on the right, top floor first, no words
   (FLOORS_SIDE in gen.py; 2026-11-26 SLOPE TOWNHOUSE) */
.flr-side .flr-par { margin: 18px 0 0; }
.flr-side .flr-par figure, .flr-side .flr-tops figure { margin: 0; }
.flr-side .flr-par img, .flr-side .flr-tops img { width: 100%; display: block; }
.flr-side .flr-tops { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 761px) {
  /* the section's title stays at the top like every other spread; the pictures sit in the middle of what is left
     (2026-11-26 池田さん「Floorsの位置が上じゃない、セクションタイトルの位置は固定してくれ」) */
  .book .books .flr-side .pg { display: flex !important; flex-direction: column; }
  .flr-side .flr-par, .flr-side .flr-tops { margin-top: auto; margin-bottom: auto; }
  .flr-side .flr-tops { height: calc(var(--sh, 760px) - 170px); }
  .flr-side .flr-tops figure { flex: 1 1 0; min-height: 0; }
  .flr-side .flr-tops img { height: 100%; object-fit: contain; }
}


/* the model page's Data shown over the model from a box beside Human, no background (OFFICE FLOORS, 2026-11-26) */
.mv-dov { position: absolute; right: var(--m); top: 96px; width: 340px; pointer-events: none; }
.mv-dov[hidden] { display: none; }
.mv-dov dl { display: grid; grid-template-columns: 110px 1fr; border-top: 1px solid var(--ink); }
.mv-dov dt, .mv-dov dd { padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.mv-dov dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); padding-right: 12px; }
@media (max-width: 760px) {  /* phones: a compact table under the title */
  .mv-dov { top: auto; bottom: 76px; left: var(--m); right: auto; width: auto; }  /* as narrow as its words (池田さん「表をもっと横幅とかミニマムに」) */
  .mv-dov dl { grid-template-columns: auto auto; column-gap: 12px; }
  .mv-dov dt { padding-right: 0; }
  .mv-dov dt, .mv-dov dd { padding: 2px 0; font-size: 11px; line-height: 1.4; } .mv-dov dt { font-size: 9px; letter-spacing: .08em; }
  .mv-dov dl, .mv-dov dt, .mv-dov dd { border: 0; }  /* no rules on phones (池田さん「モバイルだと罫線消してみて」) */
}

/* a house's picture lines in black, as the other captions (2026-11-26 池田さん「画像に小さくつくキャプションみたいな文字の色も
   一部はグレー…黒と統一」). Only these one-line captions: a name with its Japanese under it is another format and stays grey */
.capline { color: var(--ink); } .dark .capline { color: rgba(255,255,255,.6); }
/* Floors: each floor's picture with its floor under it (2026-11-26 池田さん「Floorはすべてこんな感じのところに1F 2Fをいれる」) */
.flr-side .flr-tops > div, .flr-grid > div { display: flex; flex-direction: column; min-height: 0; }
.flr-side .flr-tops .capline, .flr-grid .capline { margin-top: 6px; }
@media (min-width: 761px) {
  .flr-side .flr-tops > div { flex: 1 1 0; }
  .sp-floors.full .flr-grid { width: min(100%, calc(((var(--sh, 760px) - 300px) / 2) * 1.4 * 2 + 18px)); }
}
@media (min-width: 761px) {  /* SLOPE: the floor under its picture, at the picture's left edge (the picture is narrower than its column) */
  .flr-side .flr-tops > div { align-items: center; }
  .flr-side .flr-tops > div figure { height: 100%; display: flex; flex-direction: column; flex: none; }
  .flr-side .flr-tops > div img { height: calc(100% - 22px); width: auto; max-width: 100%; }
}
@media (max-width: 760px) {  /* phones: the floor's caption sits under its picture, not clipped by the picture's frame */
  .flr-side .flr-tops figure { aspect-ratio: auto !important; height: auto !important; overflow: visible !important; }
  .flr-side .flr-tops img { height: auto !important; }
}

/* Workflow at the foot of the Housebook top (2026-11-27 池田さん「Agentとのやりとりの流れ、3つのエージェントプロセス、スクリプトと
   人間の確認とAPIのそれぞれのタスクを一覧にしたいけてる図」, and the turns after it). One set of rules, each at its final value
   (code review: the first draft had piled overrides on overrides).
   The roles: each with its face, the same room above and below, dividers short of both ends */
.wf { --wf-red: #ff155e; --wf-loop: #e2e2e2; }
.wf-cast { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.wf-cast li { position: relative; padding: 20px 18px 20px 0; }
.wf-cast li + li { padding-left: 18px; }
.wf-cast li + li::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: #d9d9d9; }
.wf-cast b { display: flex; align-items: center; gap: 10px; font-family: var(--latin); font-weight: 500; font-size: 15px; }
.wf-cast span { display: block; font-family: var(--latin); font-size: 12px; color: var(--soft); margin-top: 4px; }
.wf-cast + .hbc-board { margin-top: 0; }
/* Claude Code between the person and the agents (2026-11-27): three columns, the person and Claude Code down both rows,
   the GPT agents over the scripts on the right; a two-way mark on the right line of the person and of Claude Code */
.wf-cast { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wf-cast li:nth-child(1), .wf-cast li:nth-child(2) { grid-row: 1 / 3; }  /* at the top (池田さん: centred, then「やっぱり上か」) */
.wf-cast li:nth-child(3) { grid-column: 3; grid-row: 1; }
.wf-cast li:nth-child(4) { grid-column: 3; grid-row: 2; }
.wf-cast li:nth-child(4)::after { content: ""; position: absolute; left: 18px; right: 0; top: 0; height: 1px; background: #d9d9d9; }
.wf-cast li.wf-link::after { content: "⇄"; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); width: 20px; line-height: 20px;
  text-align: center; font-size: 15px; color: var(--ink); background: #fff; z-index: 1; }
@media (max-width: 760px) {  /* two by two on a phone, as before; no marks, the agents are not beside Claude Code */
  .wf-cast { grid-template-columns: 1fr 1fr; }
  .wf-cast li:nth-child(n) { grid-row: auto; grid-column: auto; }
  .wf-cast li.wf-link::after, .wf-cast li:nth-child(4)::after { content: none; }
}
.wf-ic { width: 22px; height: 22px; flex: none; object-fit: contain; }
.wf-ic-me { border-radius: 50%; object-fit: cover; }
svg.wf-ic { fill: var(--ink); }
/* the key: one mark per kind of step, at the board's top right */
.wf-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 24px; }
.wf-head .hbc-t { margin: 0; }
.wf-key { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 24px; font-family: var(--latin); font-size: 12px; color: var(--soft); }
.wf-key li { display: flex; align-items: center; gap: 8px; }
.wf-k { display: inline-block; width: 14px; height: 14px; flex: none; }
.wf-k.wf-ai { background: var(--ink); }
.wf-k.wf-sc { background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.wf-k.wf-pe { background: var(--wf-red); }  /* the person in plain red, not a red edge (2026-11-27 池田さん) */
.wf-k.wf-op { background: var(--ink); opacity: .4; }  /* a step only when needed: the one who does it, faded (2026-11-27 池田さん「approveするのは人間だから色が違うかも」) */
/* the three ways and the loop: a heading column, then the steps, no arrows, only the space between them */
.wf-lane, .wf-the-loop { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: start; }
.wf-lane { padding: 20px 0; }
.wf-head + .wf-lane { padding-top: 0; }
.wf-lane h4, .wf-the-loop h4 { margin: 0; font-family: var(--latin); font-weight: 300; font-size: 30px; letter-spacing: -.02em; line-height: 1; }
.wf-lane h4 span { display: block; font-weight: 400; font-size: 13px; letter-spacing: 0; color: var(--soft); margin-top: 6px; }
.wf-flow, .wf-loop ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.wf-n { height: 30px; box-sizing: border-box; display: flex; align-items: center; padding: 0 11px; font-family: var(--latin); font-size: 12px; white-space: nowrap; }
.wf-n b { font-weight: 500; }
.wf-n.wf-ai { background: var(--ink); color: #fff; }
.wf-n.wf-ai b { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; }
.wf-n.wf-sc { background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.wf-n.wf-pe { background: var(--wf-red); color: #fff; }
.wf-n.wf-opt { opacity: .4; }  /* only when needed: the AI's black, the script's outline or the person's red kept, faded */
.wf-n.wf-to { background: var(--wf-loop); color: var(--ink); border-radius: 8px; }  /* rounded a little, as the loop box (2026-11-27 池田さん) */
/* a step that leads to the next points to it: the box ends in a point on the right, in place of the arrows taken out
   (2026-11-27 池田さん「四角を次に進むものは矢印とったからこういう形状に」). The last step of a way, and the loop's mark,
   stay square. A script's outline is drawn as the dark shape with a white one 1 px inside, so the line follows the point */
.wf-n:not(.wf-to):not(:last-child) { --tip: 9px; position: relative; padding-right: calc(11px + var(--tip));
  clip-path: polygon(0 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, 0 100%); }
.wf-n.wf-sc:not(:last-child) { background: var(--ink); box-shadow: none; }
.wf-n.wf-sc:not(:last-child)::before { content: ''; position: absolute; inset: 1px 1.4px 1px 1px; background: #fff;
  clip-path: polygon(0 0, calc(100% - var(--tip) + .6px) 0, 100% 50%, calc(100% - var(--tip) + .6px) 100%, 0 100%); }
.wf-n b { position: relative; }
.wf-flow, .wf-loop ol { column-gap: 8px; }
.wf-foot { margin-top: 18px; }
.wf-loop { background: var(--wf-loop); border-radius: 12px; padding: 12px 14px; }
.wf-until { font-family: var(--latin); font-size: 12px; color: var(--soft); white-space: nowrap; margin-left: 4px; }
/* who does what: the agents across the board, three to a row; the scripts and the person's steps below, side by side */
.wf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 48px); }
.wf-cols .wf-col.wf-ai { grid-column: 1 / -1; }
.wf-col h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--latin); font-weight: 500; font-size: 15px; }
.wf-col dl { margin: 0; }
.wf-col.wf-ai dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 48px);
  grid-auto-flow: column; grid-template-rows: repeat(var(--r3), auto); }  /* read down each column, in the order of the work (2026-11-27 池田さん) */
.wf-col dl > div { padding: 9px 0; border-bottom: 1px solid #d9d9d9; }
.wf-col dt { font-family: var(--latin); font-size: 13px; font-weight: 500; }
.wf-col.wf-ai dt { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; }
.wf-col dt em { font-family: var(--latin); font-style: normal; font-weight: 400; font-size: 11px; color: var(--soft); margin-left: 6px; }
.wf-col dd { margin: 3px 0 0; font-family: var(--latin); font-size: 12px; color: var(--soft); line-height: 1.5; }
@media (max-width: 1000px) { .wf-col.wf-ai dl { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(var(--r2), auto); } }
@media (max-width: 760px) {
  .wf-cast { grid-template-columns: 1fr 1fr; }
  .wf-cast li:nth-child(3) { padding-left: 0; }
  .wf-cast li:nth-child(3)::before { content: none; }
  .wf-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 36px; }  /* the key apart from Words, as the lanes are apart */
  .wf-key { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; justify-content: start; }
  .wf-lane, .wf-the-loop { grid-template-columns: 1fr; gap: 18px; }  /* more room under Words, Photos… on phones (2026-11-27 池田さん) */
  .wf-lane { padding: 26px 0; }  /* Words, Photos and Drawings read as three blocks on phones (2026-11-27 池田さん) */
  .wf-lane h4, .wf-the-loop h4 { font-size: 24px; }
  .wf-flow, .wf-loop ol { gap: 12px; }
  .wf-n { height: 26px; }  /* a little less above and below the words on phones (2026-11-27 池田さん) */
  .wf-foot { margin-top: 10px; }
  .wf-the-loop { margin-top: 26px; }  /* the same step as between the lanes */
  .wf-loop { padding: 10px; }
  .wf-until { flex-basis: 100%; margin: 2px 0 0; }
  .wf-cols, .wf-col.wf-ai dl { grid-template-columns: 1fr; }
  .wf-col.wf-ai dl { grid-auto-flow: row; grid-template-rows: none; }
  /* API, Script and Person read as three blocks: more room between them, a dark line under each heading (2026-11-27 池田さん) */
  .wf-cols { gap: 56px; }
  .wf-col h4 { margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
}

/* About: the name leads to x.com/tikeda without looking like a link (2026-11-27 池田さん「パッと見わからなくていい」) */
.ab-name a { color: inherit; text-decoration: none; }
.ab-name a:hover { text-decoration: underline; text-underline-offset: 3px; }

