/* BlockCraft — ブロッククラフト株式会社
   White and black. Latin display: self-hosted Cormorant Garamond (subset, OFL). Japanese: platform gothic, light weight.
   Layout language after the reference the owner chose (11-10): uppercase nav, serif English labels, light Japanese headlines,
   numbered service cards, list with arrows, thin curved lines. See ../../DESIGN.md. */

@font-face { font-family: "BC Serif"; src: url("/assets/fonts/serif.6892ab49ea.woff") format("woff"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --paper: #ffffff; --paper-2: #f2f2f2; --paper-3: #e6e6e6;
  --ink: #111111; --ink-2: #3a3a3a; --grey: #6b6b6b; --line: #d8d8d8; --line-2: #bdbdbd;
  --on-ink: #ffffff; --on-ink-2: #cfcfcf; --on-ink-3: #9a9a9a; --ink-line: #3a3a3a;
  --t-xs: .75rem; --t-s: .875rem; --t-m: 1rem; --t-l: 1.125rem; --t-xl: 1.4rem;
  --s1: 8px; --s15: 12px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 120px;
  --wrap: 1320px; --gutter: clamp(16px, 3.4vw, 48px); --head: 84px;
  --serif: "BC Serif", "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic", YuGothic, "Noto Sans JP", Meiryo, sans-serif;
  --ui: "Helvetica Neue", Helvetica, Arial, var(--sans);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink) var(--paper-2); accent-color: var(--ink); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: var(--t-m); line-height: 1.95; letter-spacing: .04em; font-variant-numeric: tabular-nums; caret-color: var(--ink); }
html[lang="en"] body { font-family: var(--ui); line-height: 1.7; letter-spacing: .005em; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .3em; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.ink :focus-visible, .contact-band :focus-visible { outline-color: var(--on-ink); }
h1, h2, h3 { margin: 0 0 .5em; font-weight: 300; line-height: 1.5; letter-spacing: .08em; text-wrap: balance; }
:is(h1, h2, h3):lang(ja), :is(.hero-sub, .lead):lang(ja) { line-break: strict; word-break: auto-phrase; }
html[lang="en"] :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.25; }
p, li, dd { text-wrap: pretty; }
p { margin: 0 0 1em; }
.ph { display: inline-block; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.serif { font-family: var(--serif); letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; }
.skip-link:focus { top: 12px; }

/* label (small serif with a square mark) */
.label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.05rem; letter-spacing: .01em; color: var(--ink); margin: 0 0 var(--s3); font-weight: 500; }
.label::before { content: ""; width: 9px; height: 9px; border: 1px solid currentColor; }
.ink .label, .contact-band .label { color: var(--on-ink); }

/* buttons */
.more { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; padding: 8px 18px; border: 1px solid currentColor; font-family: var(--ui); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: background .25s, color .25s; }
.more::after { content: "+"; font-weight: 400; font-size: 1rem; line-height: 1; transition: transform .3s var(--ease); }
.btn-ink { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 20px; background: var(--ink); color: var(--paper); font-family: var(--ui); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: background .25s; }
@media (hover: hover) {
  .more:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); text-decoration: none; }
  .more:hover::after { transform: rotate(90deg); }
  .ink .more:hover, .contact-band .more:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
  .btn-ink:hover { background: #333; }
}
.arrow { display: inline-block; position: relative; width: 28px; height: 1px; background: currentColor; transition: transform .3s var(--ease); flex: none; }
.arrow::after { content: ""; position: absolute; right: 0; top: -4px; width: 9px; height: 9px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.arrow.back { transform: scaleX(-1); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.site-header .bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--head); gap: var(--s3); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-family: var(--ui); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--grey); padding: 6px 0; transition: color .2s; }
.nav a[aria-current="page"], .nav a:hover { color: var(--ink); }
.brand { justify-self: center; display: flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.75rem; font-weight: 500; letter-spacing: .01em; }
.brand-legal { font-size: .66rem; letter-spacing: .16em; color: var(--grey); margin-top: 6px; }
.head-right { justify-self: end; display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; background: var(--paper-3); }
.lang a, .lang span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 12px; font-family: var(--ui); font-size: .74rem; letter-spacing: .08em; text-decoration: none; color: var(--grey); }
.lang [aria-current="true"] { color: var(--ink); font-weight: 700; }
.lang b { font-weight: 700; }
.menu-btn { display: none; background: none; border: 1px solid var(--ink); width: 46px; height: 46px; cursor: pointer; padding: 0; color: var(--ink); }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 4px auto; transition: transform .25s var(--ease), opacity .2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
@media (max-width: 960px) {
  :root { --head: 68px; }
  .site-header .bar { grid-template-columns: 1fr auto; }
  .brand { justify-self: start; align-items: flex-start; grid-column: 1; grid-row: 1; }
  .brand-name { font-size: 1.45rem; }
  .head-right { grid-column: 2; grid-row: 1; }
  .head-right .btn-ink { display: none; }
  .js .menu-btn { display: block; }
  .nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; gap: 6px 18px; padding-bottom: 10px; }
  .js .nav { position: fixed; inset: var(--head) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); padding: 0 var(--gutter) 24px; border-bottom: 1px solid var(--line); visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
  .js .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--ink); }
  .menu-open .nav { visibility: visible; opacity: 1; }
  .nav .nav-contact { display: block; }
}
.nav .nav-contact { display: none; }

/* ---------- decorative curves ---------- */
.curves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.curves path { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-top { position: relative; padding: var(--s5) 0 var(--s5); }
.hero-top .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s4); align-items: end; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6.4vw, 6rem); line-height: 1.02; letter-spacing: -.005em; margin: 0; }
.hero h1 span { display: block; }
.hero-side { padding-bottom: 10px; }
.hero-sub { font-size: var(--t-l); font-weight: 300; letter-spacing: .1em; line-height: 1.9; margin: 0 0 var(--s15); }
.hero-legal { font-size: var(--t-s); color: var(--grey); letter-spacing: .12em; margin: 0; }
.hero-band { position: relative; height: clamp(320px, 52vh, 560px); background: var(--paper-2); }
.hero-band canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
@media (max-width: 860px) { .hero-top .wrap { grid-template-columns: 1fr; gap: var(--s3); } .hero-band { height: 320px; } }

/* ---------- sections ---------- */
.section { position: relative; padding: var(--s6) 0; }
.section.grey { background: var(--paper-2); }
.section .wrap { position: relative; z-index: 1; }
.two { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s5); align-items: center; }
.two.top { align-items: start; }
.big-jp { font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 300; line-height: 1.55; letter-spacing: .1em; margin-bottom: var(--s3); }
html[lang="en"] .big-jp { font-family: var(--serif); font-weight: 400; letter-spacing: 0; line-height: 1.15; font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.lead { color: var(--ink-2); font-size: var(--t-s); max-width: 36em; margin-bottom: var(--s4); line-height: 2.1; }
html[lang="en"] .lead { line-height: 1.75; font-size: var(--t-m); }
@media (max-width: 900px) { .section { padding: var(--s5) 0; } .two { grid-template-columns: 1fr; gap: var(--s4); } }

/* who-we-are diagram */
.orbit { width: 100%; max-width: 560px; justify-self: center; aspect-ratio: 1 / 1; }
.orbit circle.ring { fill: none; stroke: var(--line); }
.orbit circle.node { fill: var(--paper-2); stroke: var(--line); }
.orbit text { font-family: var(--sans); font-size: 15px; letter-spacing: .08em; fill: var(--ink); text-anchor: middle; }
.orbit text.en { font-family: var(--serif); font-size: 13px; fill: var(--grey); letter-spacing: .04em; }

/* services */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.svc { position: relative; background: var(--paper-2); padding: var(--s4) var(--s4) var(--s4); display: flex; flex-direction: column; min-height: 300px; }
.svc.feature { grid-column: 1 / -1; background: var(--ink); color: var(--on-ink); min-height: 420px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s4); }
.svc-head { display: flex; align-items: baseline; gap: var(--s3); padding-bottom: var(--s3); border-bottom: 1px solid var(--line-2); margin-bottom: var(--s3); }
.svc.feature .svc-head { border-bottom-color: var(--ink-line); grid-column: 1 / -1; }
.svc-no { font-family: var(--serif); font-size: .95rem; color: var(--grey); white-space: nowrap; }
.svc.feature .svc-no { color: var(--on-ink-3); }
.svc h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.5rem); letter-spacing: 0; line-height: 1.1; margin: 0; }
.svc.feature h3 { font-size: clamp(2rem, 3.4vw, 3.2rem); }
.svc .jp { display: block; font-family: var(--sans); font-size: var(--t-s); font-weight: 400; letter-spacing: .12em; margin-top: 10px; color: var(--grey); }
.svc.feature .jp { color: var(--on-ink-2); }
.svc p { font-size: var(--t-s); color: var(--ink-2); line-height: 2; margin-top: auto; }
.svc.feature p { color: var(--on-ink-2); font-size: var(--t-m); }
.svc .more { align-self: flex-start; margin-top: var(--s2); }
.svc.feature .body { align-self: end; }
.svc.feature .visual { align-self: center; justify-self: center; width: 100%; max-width: 360px; }
.svc.feature .visual svg path, .svc.feature .visual svg polygon { fill: none; stroke: var(--on-ink-3); stroke-width: 1; }
.svc.feature .visual svg polygon.fill { fill: #1e1e1e; stroke: var(--on-ink-3); }
.svc.feature .visual svg text { fill: var(--on-ink-2); font-family: var(--sans); font-size: 12px; letter-spacing: .08em; text-anchor: middle; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: 1fr; } .svc.feature { grid-template-columns: 1fr; } .svc.feature .visual { display: none; } .svc { min-height: 0; padding: var(--s3); } }

/* news-like list (research) */
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.news li { position: relative; border-bottom: 1px solid var(--line-2); }
.news a.item { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: var(--s15) var(--s3); padding: var(--s3) 0; text-decoration: none; }
.news .t { font-size: var(--t-l); line-height: 1.75; letter-spacing: .06em; font-weight: 400; margin: 0; grid-column: 1; }
html[lang="en"] .news .t { letter-spacing: 0; line-height: 1.5; }
.news .meta { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-family: var(--ui); font-size: .72rem; color: var(--grey); letter-spacing: .06em; }
.news .chip { background: var(--ink); color: var(--paper); padding: 2px 8px; font-size: .68rem; letter-spacing: .06em; }
.news .arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; justify-self: end; }
@media (hover: hover) { .news a.item:hover .arrow { transform: translateX(6px); } .news a.item:hover .t { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; } }
.list-note { font-size: var(--t-xs); color: var(--grey); margin-top: var(--s15); }
.peek { position: fixed; left: 0; top: 0; width: 340px; z-index: 40; pointer-events: none; opacity: 0; transition: opacity .2s; background: var(--paper); border: 1px solid var(--ink); }
.peek.is-on { opacity: 1; }
.peek span { display: block; font-size: var(--t-xs); padding: 4px 8px; border-top: 1px solid var(--ink); }
@media (hover: none) { .peek { display: none; } }
.filters { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin-bottom: var(--s3); }
.filters button { font: inherit; font-family: var(--ui); font-size: .75rem; letter-spacing: .06em; background: var(--paper); border: 1px solid var(--line-2); padding: 8px 14px; min-height: 40px; cursor: pointer; color: var(--ink); white-space: nowrap; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.is-hidden { display: none !important; }

/* ---------- page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: var(--s5) 0 var(--s5); border-bottom: 1px solid var(--line); }
.page-hero .wrap { position: relative; z-index: 1; }
.crumbs { font-family: var(--ui); font-size: .72rem; letter-spacing: .06em; color: var(--grey); margin-bottom: var(--s4); }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.page-hero .en-title { font-family: var(--serif); font-size: clamp(3rem, 8vw, 7rem); font-weight: 400; line-height: 1; letter-spacing: -.005em; margin: 0 0 var(--s3); }
.page-hero h1 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 300; letter-spacing: .14em; margin-bottom: var(--s2); }
html[lang="en"] .page-hero h1 { font-family: var(--ui); font-size: var(--t-l); letter-spacing: .02em; font-weight: 400; color: var(--grey); }
.page-hero p { max-width: 40em; color: var(--ink-2); margin: 0; font-size: var(--t-s); line-height: 2.1; }

/* service detail */
.svc-detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5); padding: var(--s5) 0; border-top: 1px solid var(--line-2); }
.svc-detail:last-child { border-bottom: 1px solid var(--line-2); }
.svc-detail h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.8rem); letter-spacing: 0; line-height: 1.1; margin: 6px 0 0; }
.svc-detail h2 .jp { display: block; font-family: var(--sans); font-size: var(--t-s); letter-spacing: .14em; color: var(--grey); margin-top: 12px; font-weight: 400; }
html[lang="en"] .svc-detail h2 .jp { display: none; }
.svc-detail p { font-size: var(--t-m); color: var(--ink-2); line-height: 2; }
html[lang="en"] .svc-detail p { line-height: 1.7; }
.svc-detail ul { margin: var(--s2) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.svc-detail li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--t-s); }
@media (max-width: 860px) { .svc-detail { grid-template-columns: 1fr; gap: var(--s2); padding: var(--s4) 0; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); counter-reset: st; }
.step { counter-increment: st; background: var(--paper); padding: var(--s3); }
.step::before { content: "Step 0" counter(st); display: block; font-family: var(--serif); font-size: 1rem; color: var(--grey); margin-bottom: var(--s2); }
.step h3 { font-size: var(--t-l); font-weight: 400; letter-spacing: .1em; margin-bottom: 8px; }
.step p { font-size: var(--t-s); color: var(--ink-2); margin: 0; line-height: 1.9; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* samples */
.ex { padding: var(--s3) 0; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px var(--s4); }
.ex:last-child { border-bottom: 1px solid var(--line-2); }
.ex h3 { font-size: var(--t-xl); font-weight: 300; letter-spacing: .08em; line-height: 1.6; margin: 0; }
.ex .kind { font-family: var(--ui); font-size: .72rem; color: var(--grey); letter-spacing: .06em; display: block; margin-top: 8px; }
.ex p { font-size: var(--t-s); margin: 0 0 8px; color: var(--ink-2); }
.ex summary { cursor: pointer; display: inline-flex; gap: 10px; align-items: center; font-family: var(--ui); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; list-style: none; min-height: 36px; }
.ex summary::-webkit-details-marker { display: none; }
.ex summary::after { content: "+"; font-size: 1rem; transition: transform .25s var(--ease); }
.ex details[open] summary::after { transform: rotate(45deg); }
.ex h4 { font-family: var(--ui); font-size: .72rem; letter-spacing: .08em; color: var(--grey); margin: 14px 0 4px; font-weight: 600; }
.ex .detail ul { margin: 0; padding-left: 1.1em; font-size: var(--t-s); }
.ex .caveat { font-size: var(--t-xs); color: var(--grey); margin-top: 10px; }
@media (max-width: 760px) { .ex { grid-template-columns: 1fr; } }

/* company */
.profile { margin: 0; border-top: 1px solid var(--ink); }
.profile div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: var(--s2); padding: 18px 0; border-bottom: 1px solid var(--line); }
.profile dt { font-size: var(--t-s); color: var(--grey); letter-spacing: .1em; }
html[lang="en"] .profile dt { font-family: var(--ui); letter-spacing: .02em; }
.profile dd { margin: 0; font-size: var(--t-m); }
.profile dd ol { margin: 0; padding-left: 1.3em; }
@media (max-width: 560px) { .profile div { grid-template-columns: 1fr; gap: 2px; } }

/* contact band */
.contact-band { position: relative; overflow: hidden; background: var(--ink); color: var(--on-ink); padding: var(--s5) 0; }
.contact-band .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s4); align-items: end; }
.contact-band h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; letter-spacing: 0; margin: 0 0 var(--s2); }
.contact-band p { color: var(--on-ink-2); font-size: var(--t-s); margin: 0; }
.contact-band .mail { font-family: var(--serif); font-size: var(--t-xl); color: var(--on-ink); text-decoration: none; border-bottom: 1px solid var(--on-ink-3); }
.contact-band .actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); justify-self: end; }
.contact-band .curves path { stroke: #2c2c2c; }
@media (max-width: 860px) { .contact-band .wrap { grid-template-columns: 1fr; } .contact-band .actions { justify-self: start; } }

.prose { max-width: 46em; }
html[lang="en"] .prose, html[lang="en"] .research-prose { max-width: 68ch; }
.prose h2 { font-size: var(--t-l); font-weight: 400; margin-top: 2.2em; padding-top: 14px; border-top: 1px solid var(--line); }
.prose p { font-size: var(--t-s); line-height: 2.1; }
html[lang="en"] .prose p { font-size: var(--t-m); line-height: 1.7; }
.note { margin: var(--s4) 0 0; font-size: var(--t-s); color: var(--ink-2); max-width: 46em; }

/* ---------- research article ---------- */
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 60; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.article-wrap { padding-top: var(--s5); padding-bottom: var(--s5); }
.research-article-header { margin: 0 0 var(--s4); }
.research-article-header > a { font-family: var(--ui); font-size: .75rem; letter-spacing: .08em; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; margin-bottom: var(--s4); }
.research-article-header h1 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); font-weight: 300; letter-spacing: .08em; line-height: 1.55; margin-bottom: var(--s15); max-width: 26em; }
html[lang="en"] .research-article-header h1 { font-family: var(--serif); font-weight: 400; letter-spacing: 0; line-height: 1.15; font-size: clamp(2rem, 4vw, 3.4rem); }
.research-subtitle { font-size: var(--t-l); color: var(--ink-2); font-weight: 300; }
.research-byline { display: flex; flex-wrap: wrap; gap: 4px 22px; font-family: var(--ui); font-size: .78rem; color: var(--grey); margin: 18px 0 12px; }
.research-vintage { font-size: var(--t-s); margin: 0; padding: 10px 0; border-top: 1px solid var(--line); }
.research-vintage + .research-vintage, .research-vintage + p { border-top: 0; }
.research-vintage strong { margin-right: 10px; font-weight: 600; }
.research-article-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s5); border-top: 1px solid var(--ink); padding-top: var(--s4); }
.research-toc { position: sticky; top: calc(var(--head) + 28px); align-self: start; max-height: calc(100vh - var(--head) - 56px); overflow: auto; font-size: var(--t-s); }
.research-toc h2 { font-family: var(--serif); font-size: 1rem; letter-spacing: 0; color: var(--grey); margin-bottom: 8px; }
.research-toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.research-toc li { border-bottom: 1px solid var(--line); }
.research-toc a { display: block; padding: 8px 0; text-decoration: none; line-height: 1.5; color: var(--grey); transition: color .2s; }
.research-toc a:hover, .research-toc a.is-active { color: var(--ink); }
.research-prose { min-width: 0; max-width: 46em; font-size: var(--t-m); }
.research-prose h2 { font-size: 1.4rem; font-weight: 400; margin: 2.4em 0 .8em; padding-top: 14px; border-top: 1px solid var(--line-2); scroll-margin-top: calc(var(--head) + 20px); }
html[lang="en"] .research-prose h2 { font-family: var(--serif); font-size: 1.8rem; font-weight: 500; }
.research-prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.research-prose h3 { font-size: var(--t-l); font-weight: 500; margin: 1.8em 0 .5em; scroll-margin-top: calc(var(--head) + 20px); }
.research-prose blockquote { margin: 1.4em 0; padding: 0 0 0 18px; border-left: 1px solid var(--ink); color: var(--ink-2); }
.research-prose figure { margin: 2.2em 0; border: 1px solid var(--line); }
.research-prose figure img { width: 100%; }
.research-prose figcaption { font-size: var(--t-s); color: var(--grey); padding: 10px 14px; border-top: 1px solid var(--line); line-height: 1.6; }
.research-prose table { width: 100%; border-collapse: collapse; font-size: var(--t-s); margin: 1.6em 0; display: block; overflow-x: auto; border-top: 1px solid var(--ink); }
.research-prose th, .research-prose td { border-bottom: 1px solid var(--line); padding: 9px 14px 9px 0; text-align: left; vertical-align: top; }
.research-prose th { font-weight: 600; white-space: nowrap; }
.research-prose .research-align-right { text-align: right; }
.research-prose pre { overflow-x: auto; max-width: 100%; font-size: var(--t-s); }
.research-prose .language-text, .research-prose code { font-family: var(--mono); font-size: .88em; }
.research-prose a { word-break: break-word; }
.archive-note { font-size: var(--t-s); color: var(--grey); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; margin: 0 0 var(--s4); }
@media (max-width: 980px) { .research-article-layout { grid-template-columns: 1fr; gap: var(--s3); } .research-toc { position: static; max-height: none; } }
.article-end { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--ink); }
.article-end a { display: inline-flex; gap: 14px; align-items: center; font-family: var(--ui); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }

/* ---------- footer ---------- */
.site-footer { position: relative; overflow: hidden; padding: var(--s5) 0 var(--s3); border-top: 1px solid var(--line); }
.site-footer .wrap { position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s4); }
.footer-tag { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.2; margin: 0; font-weight: 400; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px var(--s3); list-style: none; margin: 0; padding: 0; align-content: start; }
.footer-nav a { font-family: var(--ui); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); }
.footer-nav a:hover { text-decoration: underline; }
.footer-corp { margin-top: var(--s5); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s4); align-items: end; }
.footer-corp p { margin: 0; font-size: var(--t-xs); color: var(--grey); line-height: 1.9; letter-spacing: .06em; }
.footer-mark { justify-self: end; font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1; font-weight: 500; letter-spacing: .005em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--line); font-family: var(--ui); font-size: .7rem; color: var(--grey); letter-spacing: .04em; }
.footer-bottom .fine { font-family: var(--sans); }
@media (max-width: 860px) { .footer-top, .footer-corp { grid-template-columns: 1fr; } .footer-mark { justify-self: start; } .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.nf { min-height: 60vh; display: flex; align-items: center; padding: var(--s5) 0; }
.nf b { font-family: var(--serif); font-size: clamp(4rem, 12vw, 6rem); font-weight: 400; line-height: 1; display: block; margin-bottom: var(--s2); }
.mt-24 { margin-top: var(--s3); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } .peek { display: none; } }
@media print {
  .site-header, canvas, .progress, .menu-btn, .peek, .filters, .curves { display: none !important; }
  .contact-band, .svc.feature { background: none !important; color: #000 !important; }
  .contact-band *, .svc.feature * { color: #000 !important; }
  details > * { display: block !important; }
}
.footer-corp .footer-mark { justify-self: end; font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1; font-weight: 500; letter-spacing: .005em; color: var(--ink); }
@media (max-width: 860px) { .footer-corp .footer-mark { justify-self: start; } }
.two .ex { grid-template-columns: 1fr; gap: 10px; }
.two .ex h3 { font-size: var(--t-xl); }

/* ---------- Fable design review (11-10 22:38) ---------- */
:root { --wrap: 1520px; --gutter: clamp(16px, 2.8vw, 40px); --sans-display: "Hiragino Sans", "Yu Gothic", YuGothic, "Noto Sans JP", sans-serif; }
html[lang="ja"] body { line-break: strict; }
:is(.big-jp, .hero-sub, .page-hero h1):lang(ja) { font-family: var(--sans-display); }
html[lang="ja"] :is(.svc p, .svc-detail p, .svc-detail li, .step p, .page-hero p, .profile dd, .contact-band p, .footer-corp p, .note, .footer-bottom .fine) { word-break: auto-phrase; }
html[lang="en"] .hero h1 { line-height: 1.02; letter-spacing: -.005em; }
html[lang="en"] .svc h3, html[lang="en"] .svc-detail h2 { line-height: 1.1; }
html[lang="en"] .contact-band h2 { line-height: 1; }
html[lang="en"] .hero-sub { letter-spacing: .01em; }
html[lang="en"] .big-jp { font-size: clamp(1.9rem, 3.5vw, 3.25rem); }
@media (max-width: 900px) { html[lang="en"] .big-jp br { display: none; } }
@media (max-width: 560px) { .orbit text { font-size: 20px; letter-spacing: .04em; } .orbit text.en { font-size: 16px; } }
@media (min-width: 961px) {
  .svc-grid { grid-template-rows: auto auto 1fr; }
  .svc:not(.feature) { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
}
.page-hero .en-title { color: var(--ink); max-width: none; }
.contact-band .label { font-size: 1.05rem; margin: 0 0 var(--s3); color: var(--on-ink); }
.svc-detail .label { color: var(--ink); font-size: 1.05rem; }
.footer-bottom .fine { text-wrap: balance; line-break: strict; }
.two:has(.profile) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
@media (min-width: 901px) { .two.top > :first-child { position: sticky; top: calc(var(--head) + var(--s4)); padding-top: 17px; } }
.svc-detail:first-child { border-top: 0; padding-top: 0; }
.svc-detail:last-of-type { border-bottom: 1px solid var(--line-2); }
@media (min-width: 901px) { .section { padding: clamp(96px, 11vw, 160px) 0; } .section.grey { padding: clamp(96px, 10vw, 150px) 0; } }
.svc-grid { gap: 32px; }
.site-footer { padding-top: var(--s6); }
.footer-corp { margin-top: 96px; }
.footer-tag { font-size: clamp(1.6rem, 3.4vw, 3rem); }
.nav { gap: 36px; }
.nav a { font-size: .9rem; letter-spacing: .08em; color: var(--ink-2); }
html[lang="ja"] .two:not(.top) .big-jp { font-size: clamp(1.8rem, 4vw, 3.5rem); }
.two.top .big-jp { font-size: clamp(1.6rem, 2.8vw, 2.5rem); }
@media (max-width: 960px) { .svc.feature { min-height: 0; } .svc.feature .svc-head { margin-bottom: var(--s4); } }
.section.grey .profile div { border-bottom-color: var(--line-2); }
html[lang="ja"] :is(.svc p, .svc-detail p, .svc-detail li, .step p, .page-hero p, .profile dd li, .contact-band p, .footer-bottom .fine, .lead) { word-break: keep-all; overflow-wrap: anywhere; }
