
:root {
  --bg: #0E0E10;
  --surface: #17171A;
  --surface-2: #1F1F23;
  --line: #2C2C30;
  --text: #F2F2F0;
  --text-muted: #A6A6A6;
  --red: #9E1B32;
  --red-hover: #B2223B;
  --red-bright: #D9667C;
  --focus: #FFFFFF;

  --font-head: 'Zen Kaku Gothic New', 'Noto Sans JP', system-ui, sans-serif;
  --font-body: 'Noto Sans JP', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --fs-display: 56px;
  --fs-h1: 40px;
  --fs-h2: 28px;
  --fs-h3: 20px;
  --fs-body: 16px;
  --fs-small: 14px;

  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 40px;
  --sp-5: 64px;
  --sp-6: 96px;
  --section-y: 72px;
  --hero-y: 56px;
  --gutter: 24px;
  --container: 1120px;
  --header-h: 85px;
  --doc: 720px;
}

@media (max-width: 767px) {
  :root {
    --fs-display: 30px;
    --fs-h1: 26px;
    --fs-h2: 22px;
    --fs-body: 15px;
    --section-y: 64px;
    --hero-y: 96px;
    --gutter: 16px;
    --header-h: 162px;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.8;
}
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }

br.sp { display: none; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; word-break: auto-phrase; text-wrap: balance; }

p, li, dt, dd, figcaption, td, th, blockquote { word-break: auto-phrase; text-wrap: pretty; }

a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
a:hover { text-decoration-thickness: 2px; text-decoration-color: var(--red); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }

:root { --slant: 56px; }
.slant-top { position: relative; margin-top: calc(var(--slant) * -1); padding-top: calc(var(--section-y) + var(--slant)); clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%); border-top: 0; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.muted { color: var(--text-muted); }
.small { font-size: var(--fs-small); line-height: 1.7; }


.label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-bright);
}
.section-head { display: flex; flex-direction: column; gap: var(--sp-1); margin-bottom: var(--sp-4); }
.section > .container > .section-head > .label:first-child, .doc-head .label, .label-sign { align-self: flex-start; padding-left: 12px; border-left: 2px solid var(--red); line-height: 1.2; }
.section-head h2 { font-size: var(--fs-h2); line-height: 1.4; }
.section-head p:not(.label) { color: var(--text-muted); max-width: 720px; }

.section-head p.one-line { max-width: none; }
@media (min-width: 1040px) {
  .section-head p.one-line { white-space: nowrap; }
}


.tbd {
  display: inline-block;
  padding: 0 0.3em;
  border: 1px dashed var(--text-muted);
  border-radius: 4px;
  line-height: 1.5;
}


.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--sp-3);
  border-radius: 999px; font-weight: 700; text-decoration: none;
}
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.btn-primary { background: var(--red); color: #FFFFFF; }
.btn-primary:hover { background: var(--red-hover); }
.btn-secondary { border: 1px solid var(--text); color: var(--text); }
.btn-secondary:hover { background: var(--surface-2); }
.btn:hover { text-decoration: none; }
.btn-sm { min-height: 40px; padding: 0 20px; font-size: var(--fs-small); }



.site-header { position: sticky; top: 0; z-index: 30; background: rgba(14, 14, 16, 0.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
[id] { scroll-margin-top: calc(var(--header-h) + var(--sp-2)); }
.site-header .container { min-height: calc(var(--header-h) - 1px); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding-top: 20px; padding-bottom: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: var(--fs-h3); }
.brand:hover { text-decoration: none; }
.brand svg { flex: none; }
.nav { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.nav ul, .language-switch { display: flex; gap: 4px; padding: 4px; white-space: nowrap; font-size: 14px; font-weight: 500; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; }
.nav ul { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav li, .nav > .btn, .site-header .brand { flex-shrink: 0; }
.language-switch { flex: none; }
.nav ul a, .nav .language-switch > :is(a, span) { display: block; padding: 6px 16px; line-height: 22px; border-radius: 999px; color: var(--text-muted); text-decoration: none; }
.nav ul a:not([aria-current="page"]):hover, .nav .language-switch > a:hover { color: var(--text); }
.nav ul a:focus-visible, .nav .language-switch > a:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.nav ul a[aria-current="page"], .nav .language-switch > [aria-current="true"] { background: var(--text); color: var(--bg); font-weight: 700; }

@media (max-width: 767px) {

  .site-header .container { flex-wrap: wrap; align-content: start; gap: var(--sp-1); padding-top: 12px; padding-bottom: 5px; }
  .site-header .brand { font-size: 12px; gap: 8px; white-space: normal; line-height: 1.5; }
  .nav { display: contents; }

  .site-header .container { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 0; }
  .site-header .container .brand { grid-area: 1 / 1 / 2 / 3; justify-self: start; min-width: 0; margin-inline-end: var(--sp-1); }
  .site-header .container .nav > .btn { grid-area: 1 / 3; justify-self: end; }
  .nav > ul { order: 3; grid-area: 2 / 1 / 3 / -1; width: 100%; max-width: none; justify-content: space-between; overflow: visible; }
  .language-switch { order: 4; grid-area: 3 / 1 / 4 / -1; width: max-content; justify-self: end; }
}


.home-page {
  --page-toc-h: 40px;

  --toc-reading-line: calc(var(--header-h) + var(--page-toc-h) + var(--sp-2) + 1px);
}
.page-toc {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  height: var(--page-toc-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-toc ul {
  display: flex;
  gap: 28px;
  height: calc(var(--page-toc-h) - 1px);
  overflow-x: auto;
  scrollbar-width: none;
}

.page-toc ul:focus-within { scroll-padding-inline: 50%; }
.page-toc ul::-webkit-scrollbar { display: none; }
.page-toc li { flex: none; }
.page-toc a {
  display: grid;
  grid-template-columns: 6px max-content;
  column-gap: 8px;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.7;
  text-decoration: none;
}
.page-toc a::before { content: ""; grid-area: 1 / 1; width: 6px; height: 6px; border-radius: 50%; background: var(--line); }

.page-toc a::after { content: attr(data-label); grid-area: 1 / 2; font-weight: 700; visibility: hidden; }
.page-toc a > span { grid-area: 1 / 2; }
.page-toc a:hover { color: var(--text); }
.page-toc a:focus-visible { outline-offset: -3px; }
.page-toc-progress { display: none; }
.home-page main > section[id] { scroll-margin-top: calc(var(--header-h) + var(--page-toc-h) + var(--sp-2)); }


.hero { padding: var(--hero-y) 0; position: relative; overflow: hidden; }
.hero .container { position: relative; }


.hero-deco { position: absolute; right: min(0px, (var(--container) - 100vw) / 2); bottom: calc(var(--hero-y) * -1); width: 440px; height: 320px; pointer-events: none; }
.hero .container > :not(.hero-deco) { position: relative; z-index: 1; }
.hero .container { display: flex; flex-direction: column; gap: var(--sp-3); }
.hero h1 { font-size: var(--fs-display); line-height: 1.3; max-width: 980px; }
.marker {
  background: linear-gradient(var(--red), var(--red)) no-repeat left bottom 0.08em / 100% 0.14em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero .lead { font-size: 18px; color: var(--text); max-width: 680px; }
.hero .sub { color: var(--text-muted); max-width: 680px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: var(--sp-1); }

@media (max-width: 767px) {
  .hero-deco { display: none; }
  .hero .lead { font-size: 16px; }
}


.menu-gallery { position: relative; isolation: isolate; --menu-width: 340px; }
.menu-scroll {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--sp-1);
  scrollbar-width: thin;
  scrollbar-color: var(--text-muted) var(--surface);
}

.menu-scroll:focus-within { scroll-padding-inline: 50%; }
.menu-scroll::-webkit-scrollbar { height: 6px; }
.menu-scroll::-webkit-scrollbar-track { background: var(--surface); }
.menu-scroll::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
.menu-cards {
  --menu-pitch: calc(var(--menu-width) * 0.866 + var(--sp-2));
  display: grid;
  grid-template-rows: repeat(4, calc(var(--menu-pitch) / 2));
  grid-auto-flow: column;
  grid-auto-columns: calc(var(--menu-width) * 0.75 + var(--sp-2));
  width: max-content;
  margin-inline: auto;
  padding: var(--sp-2) calc(var(--menu-width) * 0.25 + var(--sp-1)) var(--sp-2) var(--sp-1);
}
.menu-cards > li { width: var(--menu-width); }
.menu-cards > li:nth-child(3n + 1) { grid-row: 1 / span 2; }
.menu-cards > li:nth-child(3n + 2) { grid-row: 3 / span 2; }
.menu-cards > li:nth-child(3n) { grid-row: 2 / span 2; }

.menu-cards > .menu-empty { display: grid; place-items: center; background: var(--line); }
.menu-empty .label { color: var(--text-muted); }
.menu-cards > .menu-empty::before { content: ""; background: linear-gradient(160deg, var(--surface-2), var(--surface) 80%); }
.menu-card, .menu-slot, .menu-empty {
  position: relative;
  isolation: isolate;
  aspect-ratio: 2 / 1.732;
  padding: var(--sp-2) 18%;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: var(--line);
  text-align: center;
}

.menu-card::before, .menu-slot::before, .menu-empty::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 2px;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: var(--bg);
}
.menu-card {
  display: flex;
  width: 100%;
  scroll-snap-align: start;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  text-decoration: none;
}
.menu-card img { display: block; flex: none; width: 104px; max-width: 100%; height: auto; aspect-ratio: 8 / 5; }
.menu-card h3 { font-size: 18px; line-height: 1.5; }
.menu-description { text-wrap: balance; color: var(--text-muted); font-size: var(--fs-small); line-height: 1.8; }
.menu-description span { display: inline-block; white-space: pre; }
.service-flow .phrase, .doc-head .phrase { white-space: nowrap; }
.menu-more { margin-top: var(--sp-1); font-size: var(--fs-small); font-weight: 500; text-decoration: underline; text-underline-offset: 0.25em; }
.menu-card:hover { background: var(--red); }
.menu-card:hover::before { background: var(--surface-2); }
.menu-card:hover .menu-more { text-decoration-thickness: 2px; text-decoration-color: var(--red); }
.menu-card:focus-visible { outline: none; background: var(--focus); }
.menu-card:focus-visible::before { inset: 4px; background: var(--surface-2); }

.menu-gallery > .menu-slot { position: absolute; z-index: -1; pointer-events: none; margin: 0; padding: 0; background: linear-gradient(160deg, color-mix(in srgb, var(--text) 16%, transparent), transparent 85%); }
.menu-slot::before { content: none; }
.menu-slot-s { width: 9%; top: 0; left: 45.5%; }
.menu-slot-m { width: 12%; bottom: var(--sp-1); left: 43%; }
.menu-slot-l { width: 6%; bottom: calc(var(--sp-6) + var(--sp-3)); left: 56%; }


.strength-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; gap: var(--sp-5); }
.strength-copy > p { color: var(--text-muted); }
.strength-figure { position: relative; container-type: inline-size; min-width: 0; width: 100%; max-width: 440px; margin: 0; justify-self: center; }
.strength-figure img { display: block; width: 100%; height: auto; }

.strength-names > li { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; line-height: 1; }
.strength-names > li { font-weight: 700; font-size: clamp(12px, 4.4cqw, 18px); }
.strength-names > li:nth-child(1) { left: 50%; top: 28%; }
.strength-names > li:nth-child(2) { left: 25.6%; top: 73%; }
.strength-names > li:nth-child(3) { left: 74.4%; top: 73%; }


.service-copy { max-width: var(--doc); }
.service-audience { margin-top: var(--sp-2); color: var(--text-muted); font-size: var(--fs-small); }

.breadcrumb { margin-bottom: var(--sp-3); font-size: var(--fs-small); color: var(--text-muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-2); }
.breadcrumb li { min-width: 0; overflow-wrap: anywhere; }
.breadcrumb li + li::before { content: ">"; margin-right: var(--sp-2); color: var(--text-muted); }
.breadcrumb [aria-current="page"] { color: var(--text); }
.related-pages { padding-top: var(--sp-4); padding-bottom: var(--sp-4); }
.related-pages h2 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.related-pages ul { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }
.related-pages li { min-width: 0; overflow-wrap: anywhere; }
.profile-intro > p + p { margin-top: var(--sp-3); }
.profile-links { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.talks-top .work-head h2 { font-size: var(--fs-h2); line-height: 1.4; }


.svc { display: flex; flex-direction: column; }
.svc-entry { display: grid; grid-template-columns: 5fr 7fr; gap: var(--sp-4); background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 12px; padding: var(--sp-4); }
.svc-entry-head { display: flex; flex-direction: column; gap: var(--sp-2); }
.svc-entry .svc-num { font-family: var(--font-mono); font-weight: 500; font-size: 56px; line-height: 1; color: var(--red-bright); }
.svc-entry h3 { font-size: var(--fs-h2); line-height: 1.4; }
.svc-entry-main { display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-3); padding-top: 34px; }
.svc-entry-body { color: var(--text-muted); font-size: 17px; line-height: 1.9; }
.svc-cta { padding-top: var(--sp-3); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap; }
.svc-cta p { font-weight: 500; }
.svc-arrow { position: relative; margin: var(--sp-3) 0; }
.svc-arrow svg { display: block; width: 100%; height: 88px; fill: var(--red); }
.svc-arrow .label { position: absolute; top: 8px; left: 0; right: 0; text-align: center; color: #FFFFFF; }
.svc-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
.svc-sequence-note { margin-bottom: var(--sp-3); color: var(--text-muted); }
.svc-way { display: flex; flex-direction: column; gap: var(--sp-1); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: var(--sp-3); }
.svc-way img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; background: var(--surface); border-radius: 8px; margin-bottom: var(--sp-2); }
.svc-way .svc-num { font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-small); color: var(--red-bright); }
.svc-way h3 { font-size: var(--fs-h3); line-height: 1.5; }
.svc-way p:not(.svc-num) { color: var(--text-muted); font-size: var(--fs-small); line-height: 1.8; }


.service-statement { margin-top: var(--sp-3); font-family: var(--font-head); font-weight: 700; font-size: var(--fs-h2); line-height: 1.5; }
.uc-section, .tech-section { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.tech-section { padding-bottom: var(--sp-3); }
.uc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
.uc-card { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; padding: var(--sp-3); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.uc-card img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; margin-bottom: var(--sp-1); background: var(--surface); border-radius: 8px; }
.uc-card h3, .tech-item h3 { font-size: var(--fs-h3); line-height: 1.5; }
.uc-card p, .tech-item p { color: var(--text-muted); font-size: var(--fs-small); line-height: 1.8; }
.uc-card .uc-role { color: var(--text); font-weight: 500; }
.uc-now span, .uc-after span { display: block; color: var(--text); font-weight: 700; }
.uc-after { padding-top: var(--sp-1); border-top: 1px solid var(--line); }
.tech-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.tech-item { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: var(--sp-2); row-gap: var(--sp-1); align-content: start; }
.tech-icon { grid-row: 1 / span 2; color: var(--text-muted); }
.tech-item > :not(svg) { grid-column: 2; }


.outcome { padding-top: 0; border-top: 0; }

.service-flow { border-bottom: 0; padding-bottom: var(--sp-3); }
.outcome-standalone { padding-top: var(--section-y); border-top: 1px solid var(--line); }

.outcome-arrow { margin: 0 0 var(--sp-3); }

.outcome-card { background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 12px; padding: var(--sp-4); }
.outcome-statement { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-h1); line-height: 1.5; margin-bottom: var(--sp-5); word-break: auto-phrase; }
.outcome-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); border-top: 1px solid var(--line); padding-top: var(--sp-4); }
.outcome-points li { display: flex; flex-direction: column; gap: var(--sp-1); }
.outcome-points img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; background: var(--surface); border-radius: 8px; margin-bottom: var(--sp-2); }
.outcome-points h3 { font-size: var(--fs-h3); line-height: 1.5; }
.outcome-points p { color: var(--text-muted); font-size: var(--fs-small); line-height: 1.8; }



.work-block + .work-block { margin-top: var(--sp-6); }
.work-head { display: flex; flex-direction: column; gap: var(--sp-1); margin-bottom: var(--sp-4); }
.work-head h3 { font-size: 24px; line-height: 1.4; }
.work-head p:not(.label) { color: var(--text-muted); font-size: var(--fs-small); }
.focus-index { border-top: 1px solid var(--line); }
.focus-index li { display: grid; grid-template-columns: 160px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: var(--sp-4); row-gap: 4px; align-content: center; padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.focus-index img { grid-row: span 2; align-self: center; display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; background: var(--surface); border-radius: 8px; }
.focus-index h4 { align-self: end; }
.focus-index li p { align-self: start; }
.focus-index h4 { font-size: var(--fs-h3); line-height: 1.5; }
.focus-index p { color: var(--text-muted); }
.progress-quote { border-left: 4px solid var(--red); padding: var(--sp-1) 0 var(--sp-1) var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-1); }
.progress-quote h3 { font-size: var(--fs-h1); line-height: 1.3; margin: var(--sp-1) 0; }
.work-sub { color: var(--text-muted); font-size: var(--fs-small); }
.progress-body { color: var(--text-muted); line-height: 1.9; }
.talks-top { display: grid; grid-template-columns: 5fr 7fr; gap: var(--sp-4); align-items: end; margin-bottom: var(--sp-4); }
.talks-top .work-head { margin-bottom: 0; }
.stats { display: flex; margin: 0; border-left: 1px solid var(--line); }
.stats > div { flex: 1 1 auto; padding: 0 var(--sp-3); border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats dt { color: var(--text-muted); font-size: var(--fs-small); }
.stats dd { margin: 0; white-space: nowrap; font-family: var(--font-mono); font-weight: 500; font-size: 40px; line-height: 1.1; color: var(--text); }
.stats dd span { font-size: 20px; color: var(--red-bright); margin: 0 4px; }
.timeline { border-top: 1px solid var(--line); }
.tl-year { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: var(--sp-4); padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.tl-y { font-family: var(--font-mono); font-weight: 500; font-size: 40px; line-height: 1; color: var(--red-bright); }
.tl-year ul { display: flex; flex-direction: column; gap: var(--sp-2); }

.tl-year li { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--sp-3); align-items: baseline; }
.tl-year a { font-weight: 500; text-decoration: none; }
.tl-year a:hover { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.tl-year .meta { display: block; color: var(--text-muted); font-size: var(--fs-small); }
.tl-year .meta .k { display: block; font-family: var(--font-mono); color: var(--red-bright); font-size: 12px; letter-spacing: 0.04em; }
.tl-year li + li { padding-top: var(--sp-2); border-top: 1px dashed var(--line); }
.talks { border-top: 1px solid var(--line); }
.talks li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--sp-2); padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); }
.talks .year { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--text-muted); padding-top: 2px; }
.talks a { font-weight: 500; text-decoration: none; }
.talks a:hover { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.talks .meta { display: block; color: var(--text-muted); font-size: var(--fs-small); }
.more summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: var(--sp-1); margin-top: var(--sp-3); font-weight: 500; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; font-family: var(--font-mono); color: var(--red-bright); }
.more[open] summary::before { content: "−"; }
.more summary:hover { text-decoration: underline; text-decoration-color: var(--red); }
.more[open] summary { margin-bottom: var(--sp-2); }



.deflist { display: grid; grid-template-columns: 160px minmax(0, 1fr); border-top: 1px solid var(--line); }
.deflist dt, .deflist dd { padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); }
.deflist dt { font-weight: 700; color: var(--text-muted); font-size: var(--fs-small); padding-top: calc(var(--sp-2) + 2px); }
.more-link { display: inline-block; margin-top: var(--sp-3); font-weight: 500; }


.contact { background: var(--red); color: #FFFFFF; position: relative; overflow: hidden; }

.contact::before { content: ""; position: absolute; inset: 0 0 0 auto; width: 55%; background: repeating-linear-gradient(135deg, transparent 0 39px, rgba(255, 255, 255, 0.14) 39px 40px); clip-path: polygon(100% 0, 100% 100%, 0 100%); pointer-events: none; }
.contact .container { position: relative; }
.contact .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.contact .label { color: #FFFFFF; opacity: 0.85; border-left-color: #FFFFFF; }
.contact h2 { font-size: var(--fs-h1); line-height: 1.3; margin: var(--sp-1) 0; }
.contact .copy { max-width: 760px; }
.contact .btn { background: var(--bg); color: var(--text); }
.contact .btn:hover { background: var(--surface-2); }
.contact .tbd { border-color: rgba(255, 255, 255, 0.7); }


.doc-head { padding: var(--sp-6) 0 var(--sp-5); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }

.doc-head::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 40%; background: repeating-linear-gradient(135deg, transparent 0 39px, var(--line) 39px 40px); clip-path: polygon(100% 0, 100% 100%, 0 100%); pointer-events: none; }
.doc-head .container { position: relative; z-index: 1; }

.doc-layout { display: grid; grid-template-columns: 200px minmax(0, var(--doc)); column-gap: var(--sp-6); }
.doc-toc { position: sticky; top: calc(var(--header-h) + var(--sp-3)); align-self: start; padding-top: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); }
.doc-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.doc-toc li a, .doc-toc li span { display: block; margin-left: -1px; padding: 6px 0 6px var(--sp-2); border-left: 2px solid transparent; color: var(--text-muted); font-size: var(--fs-small); line-height: 1.6; text-decoration: none; }
.doc-toc li a:hover { color: var(--text); border-left-color: var(--red); }
.tbd-block { border-left: 2px dashed var(--text-muted); padding-left: var(--sp-2); }
.doc-head h1 { font-size: var(--fs-h1); line-height: 1.3; margin-top: var(--sp-1); }
.doc { max-width: var(--doc); }
.doc-body { padding: var(--sp-5) 0 var(--section-y); display: flex; flex-direction: column; gap: var(--sp-5); }
.doc-body h2 { font-size: var(--fs-h2); line-height: 1.4; margin-bottom: var(--sp-2); }
.doc-body h3 { font-size: var(--fs-h3); line-height: 1.5; margin-bottom: var(--sp-1); }
.doc-body p + p { margin-top: var(--sp-2); }
.doc-sections { display: flex; flex-direction: column; gap: var(--sp-4); }
.note { border: 1px solid var(--line); border-radius: 12px; padding: var(--sp-3); background: var(--surface); }


.doc-lead { color: var(--text-muted); margin-top: var(--sp-2); }
.table-wrap { overflow-x: auto; }


@keyframes toc-on { from, to { color: var(--red-bright); border-left-color: var(--red); opacity: 1; } }
@keyframes page-toc-on { from, to { color: var(--text); font-weight: 700; } }
@keyframes page-toc-dot {
  from { background: var(--red-bright); box-shadow: 0 0 0 4px rgba(217, 102, 124, 0.2); }
  to { background: var(--red); box-shadow: none; }
}
@keyframes page-toc-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@supports (animation-timeline: view()) {
  .doc-toc a { animation: toc-on linear none; animation-range: cover calc(50vh) cover calc(100% - 50vh); }
  .page-toc a[style] {
    animation: page-toc-on linear none;
    animation-range: cover calc(100vh - var(--toc-start-line, var(--toc-reading-line))) cover calc(100% - var(--toc-end-line, var(--toc-reading-line)) - var(--toc-end-overlap, 0px));
  }

  .page-toc a[href="#work"] { --toc-end-line: 60vh; --toc-end-overlap: var(--slant); }
  .page-toc a[href="#contact"] { --toc-start-line: 60vh; }
  .page-toc a[style]::before {
    animation: page-toc-dot steps(1, end) forwards;
    animation-timeline: inherit;
    animation-range: inherit;
  }

  .page-toc-progress {
    display: block;
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    pointer-events: none;
    background: linear-gradient(90deg, var(--red), var(--red-bright));
    transform: scaleX(0);
    transform-origin: left;
    animation: page-toc-progress linear both;
    animation-timeline: scroll(root);
  }
}


.site-footer { border-top: 1px solid var(--line); }
.site-footer .container { display: flex; flex-direction: column; gap: var(--sp-4); padding-top: var(--sp-4); padding-bottom: var(--sp-4); font-size: var(--fs-small); color: var(--text-muted); }
.footer-sitemap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.footer-group { min-width: 0; }
.footer-group h2 { color: var(--text); font-size: var(--fs-body); margin-bottom: var(--sp-2); }
.site-footer ul { display: flex; flex-direction: column; gap: var(--sp-1); }
.site-footer li { overflow-wrap: anywhere; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }


@media (max-width: 767px) {
  .footer-sitemap { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
  .related-pages ul { flex-direction: column; gap: var(--sp-2); }
  .strength-layout { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  .menu-gallery { --menu-width: 78vw; }
  .menu-card { padding: var(--sp-1) 17%; gap: 4px; }
  .menu-card img { width: 80px; }
  .menu-card h3 { font-size: 17px; }
  .menu-description, .menu-more { font-size: 13px; line-height: 1.6; }
  .menu-more { margin-top: 4px; }
  .menu-slot-s { width: 18%; left: auto; right: 0; }
  .menu-slot-m { width: 22%; left: 52%; }
  .menu-slot-l { width: 12%; left: 78%; }
  .svc-entry { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); padding: var(--sp-3); }
  .svc-entry-main { padding-top: 0; }
  .svc-entry-body { font-size: var(--fs-body); }
  .svc-arrow svg { height: 64px; }
  .svc-arrow .label { top: 4px; font-size: 12px; }
  .svc-ways { grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
  .uc-cards, .tech-items { grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
  .uc-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: var(--sp-2); row-gap: var(--sp-1); padding: var(--sp-2); align-content: start; }
  .uc-card img { grid-column: 1; grid-row: 1 / span 4; margin-bottom: 0; }
  .uc-card > :not(img) { grid-column: 2; }
  .uc-card h3, .tech-item h3 { font-size: var(--fs-body); }
  .tech-item { padding-bottom: var(--sp-2); border-bottom: 1px solid var(--line); }

  .svc-way, .outcome-points li { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: var(--sp-2); row-gap: 4px; align-content: start; }
  .svc-way { padding: var(--sp-2); }
  .svc-way img, .outcome-points img { grid-row: 1 / span 3; grid-column: 1; margin-bottom: 0; align-self: start; }
  .svc-way > :not(img), .outcome-points li > :not(img) { grid-column: 2; }
  br.pc { display: none; }
  br.sp { display: inline; }
  .outcome-points { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); padding-top: var(--sp-3); }
  .outcome-statement { margin-bottom: var(--sp-4); font-size: 24px; }
  .svc-way h3, .outcome-points h3 { font-size: 17px; }

  .svc-way, .uc-card, .outcome:not(.outcome-standalone) .outcome-points li { display: flex; flex-direction: column; gap: var(--sp-1); }
  .svc-way img, .uc-card img, .outcome:not(.outcome-standalone) .outcome-points img { width: 112px; max-width: 100%; margin-bottom: var(--sp-1); }
  .tech-item { grid-template-columns: minmax(0, 1fr); }
  .tech-icon { grid-row: auto; }
  .tech-item > :not(svg) { grid-column: 1; }
  .outcome-card { padding: var(--sp-3); }
  .talks-top, .tl-year { grid-template-columns: minmax(0, 1fr); gap: var(--sp-1); }
  .focus-index li { grid-template-columns: 112px minmax(0, 1fr); column-gap: var(--sp-2); }
  .tl-year li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .stats { flex-wrap: wrap; border-left: 0; row-gap: var(--sp-2); }
  .stats > div { flex: 1 0 auto; padding: 0 var(--sp-2); border-right: 0; border-left: 1px solid var(--line); }
  .stats dd { font-size: 28px; }
  .tl-y { font-size: 28px; }
  .progress-quote { padding-left: var(--sp-3); }
  .progress-quote h3 { font-size: var(--fs-h2); }
  .work-block + .work-block { margin-top: var(--sp-5); }
  .deflist { grid-template-columns: minmax(0, 1fr); }
  .deflist dt { border-bottom: 0; padding-bottom: 0; }
  .deflist dd { padding-top: 4px; }
  .talks li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .doc-head { padding: var(--sp-5) 0 var(--sp-4); }
  .doc-head::after { width: 60%; opacity: 0.6; }
  .doc-layout { grid-template-columns: minmax(0, 1fr); }

  .doc-toc { position: static; padding-top: var(--sp-4); gap: var(--sp-1); }
  .doc-toc ol { display: flex; flex-wrap: wrap; gap: 0 var(--sp-2); border-left: 0; }
  .doc-toc li a, .doc-toc li span { margin-left: 0; padding: 4px 0; border-left: 0; }
  .doc-layout .doc-body { padding-top: var(--sp-4); }

}


.to-top {
  position: fixed; right: var(--sp-3); bottom: var(--sp-3); z-index: 10;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
}
.to-top:hover { background: var(--red); border-color: var(--red); }
.to-top:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

@supports (animation-timeline: scroll()) {
  .to-top { animation: to-top-reveal linear both; animation-timeline: scroll(root); animation-range: 0 240px; }
  @keyframes to-top-reveal { from { opacity: 0; visibility: hidden; } to { opacity: 1; visibility: visible; } }
}
@media (max-width: 767px) {

}


@media (max-width: 1247px) {
  .to-top { display: none; }
}


@media (min-width: 768px) and (max-width: 1039px) {
  .svc-ways, .uc-cards, .outcome-points { grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
  .svc-way, .uc-card, .outcome:not(.outcome-standalone) .outcome-points li { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: var(--sp-3); row-gap: 4px; align-content: start; }
  .svc-way img, .uc-card img, .outcome:not(.outcome-standalone) .outcome-points img { grid-column: 1; grid-row: 1 / span 6; width: 100%; margin-bottom: 0; align-self: start; }
  .svc-way > :not(img), .uc-card > :not(img), .outcome:not(.outcome-standalone) .outcome-points li > :not(img) { grid-column: 2; }
}


@media (min-width: 768px) and (max-width: 1039px) {
  .site-header .brand { font-size: 13px; }
}


html[lang="en"] .phrase, html[lang="en"] .menu-description span,
html[lang="en"] .section-head p.one-line { white-space: normal; }
html[lang="en"] .menu-description span { display: inline; }
html[lang="en"] .menu-gallery { --menu-width: 380px; }
@media (max-width: 767px) {
  html[lang="en"] .menu-gallery { --menu-width: 88vw; }
}
html[lang="en"] .hero h1 { font-size: clamp(30px, 4vw, 56px); }
html[lang="en"] .nav { gap: 12px; }
html[lang="en"] .nav ul a,
html[lang="en"] .nav .language-switch > :is(a, span) { padding-inline: 12px; }
.form-language-note { font-size: var(--fs-small); }
html[lang="en"] .contact .container { flex-wrap: wrap; }
html[lang="en"] .contact .form-language-note { flex-basis: 100%; }



@supports (animation-timeline: view()) {

  @property --page-start-services { syntax: "<number>"; inherits: true; initial-value: 0; }
  @property --page-start-strength { syntax: "<number>"; inherits: true; initial-value: 0; }
  @property --page-start-outcome { syntax: "<number>"; inherits: true; initial-value: 0; }
  @property --page-start-work { syntax: "<number>"; inherits: true; initial-value: 0; }
  @property --page-start-contact { syntax: "<number>"; inherits: true; initial-value: 0; }
  @property --page-start-tail-work { syntax: "<number>"; inherits: true; initial-value: 0; }
  @property --page-start-tail-contact { syntax: "<number>"; inherits: true; initial-value: 0; }
  @keyframes page-start-services { from, to { --page-start-services: 1; } }
  @keyframes page-start-strength { from, to { --page-start-strength: 1; } }
  @keyframes page-start-outcome { from, to { --page-start-outcome: 1; } }
  @keyframes page-start-work { from, to { --page-start-work: 1; } }
  @keyframes page-start-contact { from, to { --page-start-contact: 1; } }
  @keyframes page-start-tail-work { from, to { --page-start-tail-work: 1; } }
  @keyframes page-start-tail-contact { from, to { --page-start-tail-contact: 1; } }

  .page-toc {
    animation-name: page-start-services, page-start-strength, page-start-outcome, page-start-work, page-start-contact, page-start-tail-work, page-start-tail-contact;
    animation-duration: auto;
    animation-timing-function: steps(1, end);
    animation-fill-mode: forwards;
    animation-timeline: --t-services, --t-strength, --t-outcome, --t-work, --t-contact, scroll(root), scroll(root);

    animation-range: cover calc(100vh - var(--toc-reading-line)) cover 100%,
      cover calc(100vh - var(--toc-reading-line)) cover 100%,
      cover calc(100vh - var(--toc-reading-line)) cover 100%,
      cover calc(100vh - var(--toc-reading-line)) cover 100%,
      cover 40vh cover 100%, calc(100% - 240px) 100%, calc(100% - 80px) 100%;
    --page-work: max(var(--page-start-work), var(--page-start-tail-work));
    --page-contact: max(var(--page-start-contact), var(--page-start-tail-contact));
  }
  .page-toc a {
    animation: none;

    --toc-current: max(0, calc(var(--toc-started) - var(--toc-later)));
    --toc-seen: max(var(--toc-started), var(--toc-later));
    font-weight: calc(400 + 300 * var(--toc-current));

    color: color-mix(in srgb, var(--text-muted), var(--text) calc(100% * var(--toc-current)));
  }
  .page-toc a::before {
    animation: none;
    background: color-mix(in srgb, color-mix(in srgb, var(--line), var(--red) calc(100% * var(--toc-seen))), var(--red-bright) calc(100% * var(--toc-current)));
    box-shadow: 0 0 0 calc(4px * var(--toc-current)) rgba(217, 102, 124, 0.2);
  }
  .page-toc a[href="#services"] {
    --toc-started: var(--page-start-services);
    --toc-later: max(var(--page-start-strength), var(--page-start-outcome), var(--page-work), var(--page-contact));
  }
  .page-toc a[href="#strength"] {
    --toc-started: var(--page-start-strength);
    --toc-later: max(var(--page-start-outcome), var(--page-work), var(--page-contact));
  }
  .page-toc a[href="#outcome"] {
    --toc-started: var(--page-start-outcome);
    --toc-later: max(var(--page-work), var(--page-contact));
  }
  .page-toc a[href="#work"] {
    --toc-started: var(--page-work);
    --toc-later: var(--page-contact);
  }
  .page-toc a[href="#contact"] {
    --toc-started: var(--page-contact);
    --toc-later: 0;
  }
}

html.page-top { timeline-scope: --t-services, --t-strength, --t-outcome, --t-work, --t-contact; }
.page-toc a.inline-top-1 { animation-timeline: --t-services; }
.page-toc a.inline-top-2 { animation-timeline: --t-strength; }
.page-toc a.inline-top-3 { animation-timeline: --t-outcome; }
.page-toc a.inline-top-4 { animation-timeline: --t-work; }
.page-toc a.inline-top-5 { animation-timeline: --t-contact; }
.inline-top-6 { view-timeline-name: --t-services; }
.inline-top-7 { view-timeline-name: --t-strength; }
.inline-top-8 { view-timeline-name: --t-outcome; }
.inline-top-9 { view-timeline-name: --t-work; }
.inline-top-10 { view-timeline-name: --t-contact; }
html.page-company { timeline-scope: --t-overview, --t-history, --t-message, --t-privacy; }
.doc-toc a.inline-company-1 { animation-timeline: --t-overview; }
.doc-toc a.inline-company-2 { animation-timeline: --t-history; }
.doc-toc a.inline-company-3 { animation-timeline: --t-message; }
.doc-toc a.inline-company-4 { animation-timeline: --t-privacy; }
.inline-company-5 { view-timeline-name: --t-overview; }
.inline-company-6 { view-timeline-name: --t-history; }
.inline-company-7 { view-timeline-name: --t-message; }
.inline-company-8 { view-timeline-name: --t-privacy; }
.inline-company-9 { margin-top: 16px; }
html.page-privacy { timeline-scope: --t-p1, --t-p2, --t-p3, --t-p4, --t-p5, --t-p6, --t-p7, --t-p8, --t-p9, --t-p10; }
.doc-toc a.inline-privacy-1 { animation-timeline: --t-p1; }
.doc-toc a.inline-privacy-2 { animation-timeline: --t-p2; }
.doc-toc a.inline-privacy-3 { animation-timeline: --t-p3; }
.doc-toc a.inline-privacy-4 { animation-timeline: --t-p4; }
.doc-toc a.inline-privacy-5 { animation-timeline: --t-p5; }
.doc-toc a.inline-privacy-6 { animation-timeline: --t-p6; }
.doc-toc a.inline-privacy-7 { animation-timeline: --t-p7; }
.doc-toc a.inline-privacy-8 { animation-timeline: --t-p8; }
.doc-toc a.inline-privacy-9 { animation-timeline: --t-p9; }
.doc-toc a.inline-privacy-10 { animation-timeline: --t-p10; }
.inline-privacy-11 { view-timeline-name: --t-p1; }
.inline-privacy-12 { view-timeline-name: --t-p2; }
.inline-privacy-13 { view-timeline-name: --t-p3; }
.inline-privacy-14 { view-timeline-name: --t-p4; }
.inline-privacy-15 { view-timeline-name: --t-p5; }
.inline-privacy-16 { view-timeline-name: --t-p6; }
.inline-privacy-17 { view-timeline-name: --t-p7; }
.inline-privacy-18 { view-timeline-name: --t-p8; }
.inline-privacy-19 { view-timeline-name: --t-p9; }
.inline-privacy-20 { view-timeline-name: --t-p10; }


.profile-intro-layout { display: grid; gap: var(--sp-3); }
.profile-portrait { display: block; width: 100%; max-width: 320px; height: auto; border-radius: 8px; justify-self: center; }
@media (min-width: 768px) {
  .profile-intro-layout {
    grid-template-columns: minmax(0, 1fr) min(32%, 320px);
    grid-template-areas: "copy portrait";
    align-items: start;
    gap: var(--sp-4);
  }
  .profile-intro-layout > .profile-intro { grid-area: copy; }
  .profile-portrait { grid-area: portrait; }
}

.contact-notice { display: block; flex-basis: 100%; font-size: var(--fs-small); line-height: 1.8; }
.contact-notice a { margin-inline-start: 0.4em; }
.service-area, .consultation-flow { margin-bottom: var(--sp-2); }
.service-list-heading { font-size: var(--fs-h2); margin-bottom: var(--sp-3); }
@media (max-width: 767px) {
  .nav ul { flex-wrap: wrap; border-radius: 16px; }
  .nav ul a, html[lang="en"] .nav ul a { padding-inline: 12px; }
  .menu-cards { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); width: 100%; padding: var(--sp-2) 0; }
  .menu-scroll { overflow: visible; }
  .menu-cards > li { max-width: 100%; }
}
