/* ==========================================================================
   USU Works — クリーンな事業サイト
   白地・黒文字・青1色。動画らしさは、ヘッダー下の「章つきタイムライン」だけ。
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-vf-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2010-2027, U+2030-203A, U+2190-2193, U+2122, U+00D7, U+2212;
}
@font-face { font-family: "Zen Kaku Gothic New"; src: url("../fonts/zenkaku-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Zen Kaku Gothic New"; src: url("../fonts/zenkaku-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Zen Kaku Gothic New"; src: url("../fonts/zenkaku-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Fragment Mono"; src: url("../fonts/fragment-mono-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
/* Heading punctuation. Zen Kaku Gothic New has no feature for tightening 、。「」（）・, so "USU Yaku" carries
   narrower versions cut from the same typeface (tools/make-yaku-font.py). Only headings ask for it. */
@font-face { font-family: "USU Yaku"; src: url("data:font/woff2;base64,d09GMgABAAAAAASMAAsAAAAACRgAAARAAAEAgwAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgQgRCAqHOIVVATYCJANICyYABCAFhSgHIBtOBxEVnKsBvkjgDdE/ZSREKLZYWYYAfjyoTusd8E1zBN/v99tz30VUoiYiVbN5pRKaWCmEQoiErtUTTPf0LdCjZnOQVQk5obKrh9WBSPyfrGkhnuOvAOgA2D3yfVHJCjuhp2b0/IRZAFi1ZjYTIKEigY2M0jGmE94gjYsjfiJ1796BkC/ZMpaPcF8+wrzRL+TbGrLT3+iubA0eFM19Qy4e02HwkS6ZRLB4HTa2yZIWLn2Z2WkEWPcL13JoWhKXylNZYiGfkyYgIN7TYcAgeJBQoBU8Aq3gdQhohyR4lE8xllKWfzgSEhVX1kjlOGCKLEVjboIXXheHWxliIvv5tF/gOfZk3gI/W6lKtRrlKoQocRAGzQBGAR1AVBAHADIgCa0ISeIohtraNslml6hQVTkijZ6IiPol78rlTWq9JdJ3Ay3Xk/mH4+LP3aNW+fH9wr1HqfWaw7k7aLmdMHEXFaIa7i07FGMHra+VnPh7CSJ3JXNbk9XuifTd+e297Rs7KC0g4obNd+LiBjwXL8K/USamOi2FSFGTuVg+8lHtjexXvG+q3nu4e5da792LCUsQDz/zETfmkaTItRt37xonLF+5cUIprndoaDll775bYrgp3Hudbswr/4/TceroQMkkd0tpzzumitYG08GuX4SJJ+hKV0bzga5ugKUeHO3jH1GM8wfU+XLLa3Nlim/5DE/KmGhwwT3RX/yuI6Wjylgwhlz7byEdbcLYAakvyQJ5MwOXnp9zOyCwoUOG33e2oM5pGt7g0q8Md6snprl8C87kuf9oAPvBPdPvWWOj31P3LPgFGCBwwInAxR9YdHuI23i9uwLHOOtD/uI4UClFzq2PVFq3R9cdn8AhFn2rVoo2Ty7iHLTnv84cc9jNzdOwz3llnpycf7OrM/+WXUVFvsd4q7Mr/+Y887+sMfvdvFygTuCXmDlnrqaAr04W7kG+3s9CfMvTax89xhVXQy/9hLdRSt/LWz9p5G1QIPCBL7zr9/VifvoxX/VPweMA1pwFIBCO8roPb2dIuH4TFCk+gadT+6QAPgzq++DIsamoyEDKJRDk8/8PUXxyhCNThIhoji5EfGGFqeJj03I9nDmMCC6OafInlpyolBxpi9xM/UwVD+HK1z4BydEsNvsWt5cqrLtFrsJ1tYVGX7ak0o0t6/ZjK9fp11YXw/+zW286dfY0/WkKHI+grKisDOx5BlwZFaxNTWQoBB0bec20QBKPqFttBQWcgLxN5lGaEhFac+Vkhl2qolXwmqueIxE6Zvf1ZXhJoFIOuwO49KDu/jId2w5eoaLJxfZ52xYYrgCMdsSKe2ubDPSKyfCtzdViaAAnmswE7pJpN5nzSu+/Ibt0noWysWOGpiVo4JK89u/61nOHVlQhbgAXsjApRxP3fWZAzM2dDT8Y2+CpsEU98Zi+75xnZRR5kHkWClbD+Uh2u3kqvYMA") format("woff2"); font-weight: 700; unicode-range: U+3001, U+3002, U+300C, U+300D, U+300E, U+300F, U+3010, U+3011, U+30FB, U+FF01, U+FF08, U+FF09, U+FF0C, U+FF0E, U+FF1A, U+FF1F, U+FF5C; }
@font-face { font-family: "USU Yaku"; src: url("data:font/woff2;base64,d09GMgABAAAAAATYAAsAAAAACTQAAASKAAEAgwAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgQgRCAqHSIVdATYCJANICyYABCAFhTIHIBtgByCuBuzWA2T82CSdPTo2Sqow9KeNxNiNllMieH5/fHPut5vWCWKTM6vZNu02RqVtEpOUnv8xrt5f8AAgWQ1sVr7ZdFIlo9Q8tdb2ENN9V7tbPBRKp9JNGsN0MolIqEyca9UgGSIDr8KB7MbTxuH+H+gb8AW+jTj1Exqblq1BmvPpCQYsYssCHNDwWG21V/Bqm/+ICH/ttypvaJQmWhqkTCnvL7qoLdrUkyYiDUIlejU50emEdtMJ5Uq+EO81bAfo1mqVIa+m35Cbc5KzCXmQdpAZYMJn1phrI0hogjyPUwkwc1SENoxd6b/IGWaTu41QAAQQb9Nx0GwcJJADao0jUGtCJaDeinGcrqRQtvoXaByBTlZl6BpCzqRGbb29BLdqsDFi4euV/+SjY4kH0M8W4hMQ4uAilP0VA6oBtAM0AFEKxBIA5AJIiPFpmCGmqFRMQYKsMjfL5xBPyiTU/XIiccddWn8Jdx5YdztFTMUnC7d2zta2/sjMK63fDLxH8n7i4WELYSEUORg5SAZ1i4nc4uJVTWd0YleLXzQuntTJU2sU48TntRmw7kF87P/sM4GeSs1bhCDFxzxTyBJpQvGSQGnKQdQdE2TffX5j618XET/eGlO94dEwicx8c7s45wP4zrIF1p3ejZ0fnqsTczeOPnZjndGGGUXiy7154g13Gji/E5nt/q/L23pOt+1ytgXlrti5VB4z/MXsiDXDnI0MTyPjvS76qJTA8MRqvB3vg7cK8PxuTqKpe9rVhM78rga1qT7ODObgaxq4KtsCpwNHu2QmKcH/I9qOK2A2P93X3TrU2nqiuWlEbePz6lzDohvdA8qj3e2T013n2S3J5ZNjrr96FP3vu87/zivBNoZjH2XUoX7752jVEAl9/PYAfad0PhTmQGaDfZpo76aVareWsd9fn8lUdrwX73p7kjZat+CzXvvfy6aLqNtyeW56Ou+g38IQxoEvUCTmHueuTs6q4Yy0wf8wai7J5AzZnbI4ZINb9DfY5Bbk58POTiouav7+cXOo629k5G9qYuTnZ2RiyhDxQBWqtxh76evp6skZ6OvSPwU/Y8buI0CA0NTvnEgyJbXfWOYTPD93VwUAPnU87dInG1ObUwHkYwACcrf93uR81ocyETCNVhvbxS97UsOEsDsdSM8YI9JTDEbDaugH86Gv7SDSde5mBXLQ+UaAarTBB7SXCqQYR7l8wCFEKZFyK2WQsCplUfMl5VDxKxUPHQI8rgSHRIbFwNAFXEtDEwKJCYmJQVFNNVBaTR8UhBtoq6lAIJMTSNMAjgAxNSHIEEFNQKChBWk6UcZXMdAz0MGt3NBVU0/3IYTJcjlUmqejxCwnriTBSy0VLDERMVDKgYaBNrrTu0pwZJDZGK3onAZQ5VmiA5Dp2+xTQQEiULecpY7WQCdLl8gklQk1VRBFqAJuQ8sljHDxsoChe0/yYW8S4FriCbKElgExET7TLv/goQ0TCpWckqX1Z1hZ12g7W3DiQIZmJiFxOqIGt4cRKltvGW4A4yMSUj4Bvg4CAXbeQGZc05Rd2QAAAA==") format("woff2"); font-weight: 900; unicode-range: U+3001, U+3002, U+300C, U+300D, U+300E, U+300F, U+3010, U+3011, U+30FB, U+FF01, U+FF08, U+FF09, U+FF0C, U+FF0E, U+FF1A, U+FF1F, U+FF5C; }

:root {
  --bg: #FFFFFF;
  --band: #F5F6F8;
  --ink: #111111;
  --sub: #4A4F5C;
  --line: #E3E6EC;
  --blue: #1E3CFF;
  --blue-dk: #1530D6;
  --blue-soft: #EEF1FF;
  --track: #DADEE6;

  --f: "Archivo", "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --f-head: "USU Yaku", var(--f);
  --f-mono: "Fragment Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --hd: 68px;
  --pad: 32px;
  --column-gap: 24px;
  --card-inset: 40px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hd) + 16px);
  scrollbar-color: #C3C9D4 transparent;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.85;
  line-break: strict;
  overflow-wrap: break-word;
  caret-color: var(--blue);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--blue); color: #fff; }
h1, h2, h3, h4, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1.5px; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.ico { width: 20px; height: 20px; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap, .hd__in { max-width: 1264px; margin-inline: auto; padding-inline: var(--pad); }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px;
  border: 0; border-radius: 8px;
  font: 700 16px/1 var(--f);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.btn .ico { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dk); }
.btn--ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--band); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 8px; }
.btn--lg { height: 60px; padding: 0 32px; font-size: 17px; }
.btn--block { width: 100%; }

/* ---------- header ---------- */
.hd {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
}
.hd__in {
  height: var(--hd);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.hd__logo {
  justify-self: start;
  font: 800 22px/1 var(--f);
  font-stretch: 112%;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}
.hd__nav { display: flex; align-items: center; gap: 32px; }
.hd__nav > a:not(.btn) { font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.hd__nav > a:not(.btn):hover { color: var(--blue); }
.hd__nav > a[aria-current] { color: var(--blue); }

/* The seek track is the bottom edge of the sticky header. */
.hd__actions { display: flex; align-items: center; justify-self: end; gap: 12px; }
.hd { --seek: #6879ba; --seek-soft: #A7B1D2; }
.tl {
  --track-h: 2px;
  /* Solid up to the playhead. While the pointer is over the bar (--peek), the stretch between the playhead
     and the pointer turns soft: a preview of where a click would land. */
  --from: min(var(--progress, 0%), var(--peek, var(--progress, 0%)));
  --to: max(var(--progress, 0%), var(--peek, var(--progress, 0%)));
  --track-paint: linear-gradient(to right, var(--seek) var(--from), var(--seek-soft) var(--from), var(--seek-soft) var(--to), var(--track) var(--to));
  appearance: none; position: absolute; left: 0; top: 100%; transform: translateY(-50%);
  width: 100%; height: 24px; margin: 0; padding: 0; border: 0;
  background: transparent; cursor: pointer; touch-action: pan-y;
}
.tl::-webkit-slider-runnable-track { height: var(--track-h); background: var(--track-paint); transition: height .2s var(--ease); }
.tl::-moz-range-track { height: var(--track-h); background: var(--track-paint); }
.tl::-webkit-slider-thumb {
  appearance: none; width: 8px; height: 8px; margin-top: calc((var(--track-h) - 8px) / 2);
  border: 0; border-radius: 50%; background: var(--seek);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s var(--ease), margin .2s var(--ease);
}
.tl::-moz-range-thumb {
  width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--seek);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s var(--ease);
}
.tl:focus-visible { outline-offset: -2px; }
/* In use, the rule thickens and the playhead swells; crossing a chapter makes the playhead pop once. */
.tl:is(.is-seeking, :focus-visible) { --track-h: 4px; }
.tl:is(.is-seeking, .is-ping, :focus-visible)::-webkit-slider-thumb { transform: scale(1.75); box-shadow: 0 0 0 1.5px #fff; }
.tl:is(.is-seeking, .is-ping, :focus-visible)::-moz-range-thumb { transform: scale(1.75); box-shadow: 0 0 0 1.5px #fff; }
@media (hover: hover) {
  .tl:hover { --track-h: 4px; }
  .tl-marks:has(+ .tl:hover) i { scale: 1 1.5; }
  .tl:hover::-webkit-slider-thumb { transform: scale(1.75); box-shadow: 0 0 0 1.5px #fff; }
  .tl:hover::-moz-range-thumb { transform: scale(1.75); box-shadow: 0 0 0 1.5px #fff; }
}
/* Chapter ticks mark where each section starts; the chip names the chapter and the time. */
.tl-marks { position: absolute; left: 4px; right: 4px; top: 100%; height: 0; pointer-events: none; }
.tl-marks i {
  position: absolute; left: calc(var(--x) * 100%); top: -4px;
  width: 2px; height: 8px; margin-left: -1px; border-radius: 1px;
  background: var(--track);
  transition: scale .3s var(--ease);
}
.tl-marks i.is-past { background: var(--seek); }
.tl-marks:has(+ .tl:is(.is-seeking, :focus-visible)) i { scale: 1 1.5; }
.tl-chip {
  position: absolute; left: 0; top: calc(100% + 12px);
  display: flex; align-items: baseline; gap: 8px;
  padding: 4px 8px; border-radius: 6px;
  background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap;
  pointer-events: none;
  translate: var(--x, 0px) 0;
  opacity: 0; transform: translate(-50%, -4px);
  transition: opacity .16s var(--ease), transform .16s var(--ease);
}
.tl-chip.is-on { opacity: 1; transform: translate(-50%, 0); }
.tl-chip .mono { font-size: 11px; font-weight: 400; opacity: .72; }
/* ---------- hero ---------- */
.hero { padding: 88px 0 72px; }
.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 48px;
  align-items: center;
}
.hero__h {
  font-size: clamp(40px, 5.1vw, 68px);
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: -.02em;
}
.hero__h span { display: block; }
.hero__h-b { color: var(--blue); }
.hero__lede { margin-top: 28px; max-width: 32em; font-size: 18px; line-height: 1.95; color: var(--sub); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero .hero__cta { align-items: center; gap: 20px; }
.hero__link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.hero__link:hover { color: var(--blue); }

/* Home hero illustrations */
.hero--home .hero__text { container-type: inline-size; }
.hero--home .hero__h { font-size: clamp(26px, 9.6cqw, 64px); line-height: 1.3; }
.hero--home .hero__h-b { margin-top: 12px; font-size: .8em; }
.reel { width: 100%; margin: 0; }
.reel__frame { position: relative; aspect-ratio: 10 / 7; background: var(--blue-soft); border-radius: 12px; overflow: hidden; }
.reel__item { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.reel__item.is-on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reel__item { transition: opacity .35s ease; }
}
.reel__controls:not([hidden]) { display: flex; gap: 8px; margin-top: 12px; }
.reel__controls button { flex: 1; background: none; border: 0; border-top: 2px solid var(--line); padding: 10px 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--sub); cursor: pointer; }
.reel__controls button[aria-pressed="true"] { border-color: var(--blue); color: var(--blue); }
@media (min-width: 861px) {
  .hero--home .hero__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}
.reel__cap { margin-top: 12px; font-size: 13px; color: var(--sub); }

/* YouTube facade */
.yt { display: block; color: #fff; text-decoration: none; }
.yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play-chip {
  position: absolute; z-index: 2; left: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px 0 8px;
  border-radius: 8px;
  background: #fff; color: var(--ink);
  font-size: 14px; font-weight: 700; line-height: 1;
  transition: background-color .15s, color .15s;
}
.play-chip .ico { width: 18px; height: 18px; color: var(--blue); }
.yt:hover .play-chip { background: var(--blue); color: #fff; }
.yt:hover .play-chip .ico { color: #fff; }
.yt:focus-visible { outline-offset: 4px; }

/* a live web work: screenshot thumbnail linking to the site */
.work__frame--shot { display: block; text-decoration: none; }
.work__frame--shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.work__frame--shot:hover .play-chip { background: var(--blue); color: #fff; }
.work__frame--shot:hover .play-chip .ico { color: #fff; }
.work__frame--shot:focus-visible { outline-offset: 4px; }

/* ---------- sections ---------- */
.sec { padding: 112px 0; }
.sec--gray { background: var(--band); }
.sec__hd { max-width: 760px; margin-bottom: 48px; }
.sec__h { font-size: clamp(30px, 3vw, 40px); line-height: 1.3; font-weight: 900; letter-spacing: -.01em; }
.sec__lead { margin-top: 16px; font-size: 18px; line-height: 1.85; color: var(--sub); }
/* Japanese text breaks between phrases, never inside a word (Chromium; other browsers keep their standard rules).
   Headings balance their lines and set punctuation narrow (the "USU Yaku" face above); running text avoids
   a stranded last line and gets a hair of space between Japanese and Latin letters or digits.
   `.ph` keeps a phrase together everywhere. */
h1, h2, h3, h4, h5, p, li, dt, dd, summary, figcaption, label { word-break: auto-phrase; }
h1, h2, h3, h4, h5, summary { text-wrap: balance; font-family: var(--f-head); }
p, li, dt, dd, figcaption { text-wrap: pretty; text-autospace: normal; }
.ph { display: inline-block; }

.ticks { display: grid; gap: 8px; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; font-size: 15px; line-height: 1.7; }
.ticks .ico { width: 20px; height: 20px; margin-top: 4px; color: var(--blue); }

/* services */
.svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--column-gap); }
.svc__card { display: flex; flex-direction: column; padding: var(--card-inset); box-shadow: inset 0 0 0 1px var(--line); border-radius: 12px; background: #fff; }
.svc__name { font-size: 24px; line-height: 1.4; font-weight: 900; }
.svc__desc { margin: 12px 0 24px; color: var(--sub); line-height: 1.9; }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; align-self: flex-start; color: var(--blue); font-weight: 700; text-decoration: none; }
.more .ico { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.more:hover { text-decoration: underline; }
.more:hover .ico { transform: translateX(3px); }
.svc__set {
  margin-top: 8px;
  color: var(--sub); font-size: 12px; line-height: 1.6; text-align: end;
}
.audience { margin-top: 64px; }
.audience__groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: var(--column-gap); }
.audience__groups > div { padding-top: 16px; border-top: .5px solid var(--line); }
.audience h4 { color: var(--sub); font-size: 14px; }
.audience__cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--column-gap); margin-top: 16px; }
.audience__art { display: block; width: 80px; height: 60px; }
.audience__cases h5 { margin: 16px 0 8px; font-size: 18px; line-height: 1.5; font-weight: 700; }
.audience__cases p { font-size: 15px; line-height: 1.8; color: var(--sub); }

/* works */
.works__sub { margin-bottom: 24px; font-size: 24px; line-height: 1.4; font-weight: 900; }
.works + .works__sub { margin-top: 64px; }
.works { position: relative; display: grid; gap: var(--column-gap); }
.works--video { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.works--web { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.work { min-width: 0; }
.work__frame { position: relative; overflow: hidden; }
.work__frame--v { aspect-ratio: 9 / 16; border-radius: 12px; background: #111; }
.work__frame--w { aspect-ratio: 16 / 10; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.work__title { margin-top: 12px; font-size: 18px; font-weight: 700; line-height: 1.5; }
.work__meta { margin-top: 4px; font-size: 13px; color: var(--sub); line-height: 1.6; }
.sample {
  position: absolute; z-index: 2; right: 12px; bottom: 12px;
  padding: 4px 8px; border-radius: 6px;
  background: var(--ink); color: #fff;
  font: 700 11px/1 var(--f); letter-spacing: .04em;
}
.sample--inline { position: static; display: inline-block; vertical-align: .1em; margin-right: 4px; }

/* web sample mocks (static, inside 16:10 frames) */
.mock { position: absolute; inset: 0; container-type: inline-size; font-family: var(--f); overflow: hidden; }
.mock__nav { display: flex; align-items: center; justify-content: space-between; gap: 3cqw; padding: 3.2cqw 4.4cqw; }
.mock__nav b { font-size: 3.2cqw; font-weight: 800; line-height: 1; }
.mock__nav span { display: flex; gap: 2.4cqw; margin-left: auto; }
.mock__nav span i { display: block; width: 7cqw; height: 1.2cqw; border-radius: 1cqw; background: currentColor; opacity: .25; }
.mock__nav em { font-style: normal; font-size: 2.2cqw; font-weight: 700; padding: 1.4cqw 2.2cqw; border-radius: 1cqw; }
.mock--lp { background: #fff; color: #0E6B57; }
.mock--lp .mock__nav em, .mock--lp .mock__hero em { background: #0E6B57; color: #fff; }
.mock__hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4cqw; padding: 3cqw 4.4cqw; }
.mock__hero > div:first-child { display: grid; align-content: start; gap: 2.2cqw; color: #161616; }
.mock__hero b { font-size: 5cqw; line-height: 1.25; font-weight: 900; font-feature-settings: "palt"; }
.mock__hero i { display: block; height: 1.4cqw; border-radius: 1cqw; background: #D9DDE3; }
.mock__hero i + i { width: 70%; }
.mock__hero em { justify-self: start; font-style: normal; font-size: 2.4cqw; font-weight: 700; padding: 1.6cqw 2.6cqw; border-radius: 1cqw; margin-top: 1cqw; }
.mock__pic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6cqw; align-content: center; padding: 4cqw; border-radius: 2cqw; background: #DDEFE8; aspect-ratio: 4 / 3; }
.mock__pic span { aspect-ratio: 1; border-radius: .8cqw; background: #fff; }
.mock__pic span.on { background: #0E6B57; }
.mock--bakery { background: #F6EAD8; color: #6B3E1F; }
.mock__band { position: relative; display: grid; align-content: center; height: 38cqw; padding: 4cqw 5cqw; background: #6B3E1F; color: #F6EAD8; overflow: hidden; }
.mock__band b { position: relative; z-index: 1; font-size: 6.4cqw; line-height: 1.2; font-weight: 900; font-feature-settings: "palt"; }
.mock__sun { position: absolute; right: 7cqw; top: 5cqw; width: 24cqw; aspect-ratio: 1; border-radius: 50%; background: #E8A33D; }
.mock__menu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3cqw; padding: 4cqw 5cqw; }
.mock__menu span { aspect-ratio: 1; border-radius: 50%; background: #E3C9A4; }
.mock--folio { background: #fff; color: #111; }
.mock__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 15cqw; gap: 1.6cqw; padding: 0 4.4cqw; }
.mock__grid i { background: #2B2B2B; border-radius: .6cqw; }
.mock__grid i:nth-child(3n+2) { background: #8C8C8C; }
.mock__grid i:nth-child(4n) { background: #C9C4BA; }
.mock__grid i.t { grid-row: span 2; }
.mock__grid i.w { grid-column: span 2; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--column-gap); }
.plan { display: flex; flex-direction: column; padding: var(--card-inset); box-shadow: inset 0 0 0 1px var(--line); border-radius: 12px; background: #fff; }
.plan#price-video { box-shadow: inset 0 0 0 2px var(--blue); }
.plan__name { font-size: 20px; line-height: 1.4; font-weight: 900; }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 16px; }
.plan__num { font-size: 56px; line-height: 1; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan__num--ja { font-size: 40px; font-weight: 900; letter-spacing: 0; }
.plan__unit { font-size: 16px; font-weight: 700; color: var(--sub); }
.plan__src { margin-top: 8px; font-size: 13px; color: var(--sub); }
.plan .ticks { margin: 28px 0 32px; }
.plan .btn { margin-top: auto; }

/* flow: a timeline of five steps */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.flow__step { position: relative; padding: 0 24px 0 0; }
.flow__step::before {
  content: ""; position: absolute; left: 44px; right: 0; top: 21px;
  height: 2px; background: var(--track);
}
.flow__step:last-child::before { display: none; }
.flow__no {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font: 800 18px/1 var(--f);
}
.flow__step h3 { margin: 20px 0 8px; font-size: 20px; line-height: 1.4; font-weight: 900; }
.flow__step p { font-size: 14px; line-height: 1.85; color: var(--sub); }

/* contact */
.brand-label { white-space: nowrap; }
.brand-icon {
  display: inline-block; width: 1.1em; height: 1.1em; margin-inline-end: .35em;
  vertical-align: -.16em; object-fit: contain;
}
.faq { max-width: 760px; }
.faq details { border-bottom: .5px solid var(--line); }
.faq details:first-child { border-top: .5px solid var(--line); }
.faq summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 20px 0; font-weight: 700; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 8px; height: 8px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
}
.faq details[open] > summary::after { transform: rotate(225deg); }
.faq__answer { padding-bottom: 20px; }
.faq__answer p + p { margin-top: 12px; }
.faq__key {
  font-weight: inherit;
  --stroke: .55em;
  background: linear-gradient(176deg, #fff6a8, #ffef5c) left 88% / 100% var(--stroke) no-repeat;
}
@keyframes faq-marker {
  from { background-size: 0% var(--stroke); }
  to { background-size: 100% var(--stroke); }
}
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] .faq__key { animation: faq-marker 460ms ease-out 150ms backwards; }
  .faq summary::after { transition: transform 240ms var(--ease); }
  @supports selector(details::details-content) and (transition-behavior: allow-discrete) {
    .faq details::details-content {
      display: grid;
      grid-template-rows: 0fr;
      opacity: 0;
      transition: grid-template-rows 240ms var(--ease), opacity 180ms ease-out,
                  content-visibility 240ms allow-discrete;
    }
    .faq details[open]::details-content { grid-template-rows: 1fr; opacity: 1; }
    .faq__answer { min-height: 0; overflow: hidden; padding-bottom: 0; }
    .faq__answer > p:last-child { padding-bottom: 20px; }
  }
}
.faq-links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 28px; }
@media (min-width: 1081px) {
  .wrap:has(> .faq) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 760px); column-gap: var(--column-gap); align-items: start; }
  .wrap:has(> .faq) > .sec__hd { grid-row: 1 / span 2; position: sticky; top: calc(var(--hd) + 40px); margin-bottom: 0; }
  .wrap:has(> .faq) > :is(.faq, .faq-links) { grid-column: 2; }
}
.faq-links .more { margin: 0; }

.sec--contact { background: var(--blue-soft); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--column-gap); align-items: start; }
.contact-form {
  display: grid; gap: 20px; max-width: 760px;
  padding: var(--card-inset); background: var(--bg); border-radius: 12px;
}
.contact-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.contact-form label { display: grid; gap: 8px; font-weight: 700; }
.contact-form :is(input:not([type="hidden"]), textarea) {
  width: 100%; min-width: 0; padding: 12px; border: .5px solid var(--sub); border-radius: 6px;
  background: var(--bg); color: var(--ink); font: 500 16px/1.6 var(--f);
}
.contact-form textarea { resize: vertical; min-height: 96px; }
.contact-form .btn { justify-self: start; }
.contact-channels h3 { font-size: 18px; line-height: 1.4; }
.contact-email { display: inline-block; margin: 8px 0 28px; }
.contact-note, .contact-links p { font-size: 14px; color: var(--sub); }
.contact-note { margin: 4px 0 12px; }
.contact-links li { padding: 8px 0 12px; border-top: .5px solid var(--track); }
.contact-links a { display: flex; align-items: center; justify-content: space-between; min-height: 36px; font-weight: 700; text-decoration: none; }
.contact-links a:hover { text-decoration: underline; }
.contact-links .ico { width: 16px; height: 16px; }

/* footer */
.ft { padding: 48px 0; border-top: 1px solid var(--line); }
.ft__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.ft__logo { font: 800 20px/1 var(--f); font-stretch: 112%; }
.ft__desc { margin-top: 8px; font-size: 13px; color: var(--sub); }
.ft__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; font-weight: 700; }
.ft__nav a { text-decoration: none; }
.ft__nav a:hover { color: var(--blue); }
.ft__copy { width: 100%; font-size: 12px; color: var(--sub); }



/* works: the fourth cell of the Shorts row */
.works__more {
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  padding: 28px 24px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff;
  aspect-ratio: 9 / 16;
}
.works__more-h { font-size: 18px; font-weight: 900; line-height: 1.4; }
.works__more-p { font-size: 14px; line-height: 1.8; color: var(--sub); margin-bottom: 8px; }
.works__more .btn .ico { width: 16px; height: 16px; }
@media (min-width: 861px) and (max-width: 1040px) {
  .works__more { padding-inline: 12px; }
  .works__more .btn { padding-inline: 6px; gap: 4px; }
}
.sec__note { margin-top: 8px; font-size: 14px; color: var(--sub); }
@media (max-width: 860px) {
  .works__more { scroll-snap-align: start; }
}

.flow__art { display: block; width: 80px; height: 60px; margin-bottom: 12px; }
@media (max-width: 860px) {
  .flow__art { width: 60px; height: 44px; margin-bottom: 4px; }
}

/* Service detail pages */
.service-back { display: inline-block; margin-bottom: 20px; color: var(--sub); font-size: 14px; }
.service-back:hover { color: var(--blue); }
.hero__in--service { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: start; }
.hero__in--service .hero__text { align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; }
.hero__in--service .hero__cta { margin-top: auto; padding-top: 32px; }
/* The portrait and landscape examples share a baseline and caption row. */
.service-preview {
  --media-height: clamp(320px, 27vw, 360px);
  display: grid; grid-template-rows: var(--media-height) auto;
  justify-items: center; align-items: end; text-align: center;
}
.service-preview .work__frame--v { height: 100%; }
.service-preview .work__frame--w { width: min(100%, calc(var(--media-height) * 1.6)); }
.service-scope { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: 48px; }
.service-scope dl { margin: 0; }
.service-scope dl > div { display: grid; grid-template-columns: 7em 1fr; gap: 16px; padding: 20px 0; border-top: .5px solid var(--track); }
.service-scope dt { font-weight: 700; }
.service-scope dd { margin: 0; color: var(--sub); }
.service-price { padding: var(--card-inset); border: .5px solid var(--line); border-radius: 12px; background: var(--bg); }
.service-price__terms { margin-top: 20px; color: var(--sub); }
.service-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }

/* mobile dock */
.dock { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
/* Match corresponding lines across each pair when text wraps. */
@media (min-width: 861px) {
  .svc__card, .plan {
    display: grid;
    grid-template-rows: subgrid;
    row-gap: 0;
    align-items: start;
  }
  .svc__card { grid-row: span 4; }
  .svc__card .more { justify-self: start; align-self: end; }
  .plan { grid-row: span 5; }
}

@media (min-width: 861px) and (max-width: 1080px) {
  .hd__nav { gap: 16px; }
  .svc__card, .plan { padding-inline: 24px; }
}

@media (max-width: 1080px) {
  .works--web { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .flow__step:nth-child(3)::before { display: none; }
}

@media (max-width: 860px) {
  :root { --hd: 60px; --pad: 20px; --card-inset: 24px; }
  .hd__logo { font-size: 18px; font-stretch: 100%; }
  .hd__in { gap: 16px; }
  .hd__nav { gap: 12px; }
  .hd__nav > a:not(.btn) { font-size: 14px; }
  .btn--sm { height: 36px; padding: 0 12px; font-size: 13px; }

  .hero { padding: 40px 0 64px; }
  .hero__in { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .service-preview { --media-height: clamp(240px, 66vw, 340px); }
  .service-scope { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero__h { font-size: clamp(34px, 9.6vw, 48px); }
  .hero__lede { font-size: 16px; margin-top: 20px; }
  .hero__cta { margin-top: 28px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero .hero__cta .btn { flex: 0 1 auto; min-height: 48px; height: auto; padding: 12px 16px; font-size: 16px; }
  .reel { width: min(100%, 480px); }

  .sec { padding: 72px 0; }
  .sec__hd { margin-bottom: 32px; }
  .sec__lead { font-size: 16px; }
  .works__sub { margin-bottom: 20px; font-size: 20px; }
  .audience { margin-top: 56px; }
  .contact-layout, .svc, .plans, .works--web { grid-template-columns: minmax(0, 1fr); }
  .svc__card, .plan { padding-block: 28px; }
  .works--video {
    grid-template-columns: none;
    grid-auto-flow: column; grid-auto-columns: min(64vw, 240px);
    gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
    margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 8px;
    scrollbar-width: none;
  }
  .works--video::-webkit-scrollbar { display: none; }
  .works--video .work { scroll-snap-align: start; }
  .flow { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .flow__step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; padding: 0 0 28px; }
  .flow__step::before { left: 21px; right: auto; top: 44px; bottom: 0; width: 2px; height: auto; }
  .flow__step:nth-child(3)::before { display: block; }
  .flow__step:last-child::before { display: none; }
  .flow__step h3 { grid-column: 2; margin: 8px 0 4px; }
  .flow__step p { grid-column: 2; }
  .flow__no { grid-row: span 2; }
  .ft { padding-bottom: calc(48px + 76px); }

  .dock {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform .3s var(--ease), visibility 0s .3s;
  }
  .dock.is-shown { transform: none; visibility: visible; transition-delay: 0s; }
}

@media (max-width: 720px) {
  :root { --hd: 92px; }
  .hd__in { grid-template-columns: 1fr auto; grid-template-rows: 48px 44px; gap: 0; }
  .hd__actions { grid-column: 2; grid-row: 1; }
  .hd__nav {
    grid-column: 1 / -1; grid-row: 2; min-width: 0; justify-content: space-between;
    gap: 4px; overflow-x: auto;
  }
  .hd__nav > a:not(.btn) { flex: none; display: grid; place-items: center; min-height: 44px; font-size: clamp(12px, 3.45vw, 14px); }
  .hd__nav > a:focus-visible { outline-offset: -3px; }
}

@media (max-width: 620px) {
  .hero__in--service .hero__lede { min-block-size: 3lh; }
  .audience__cases { grid-template-columns: 1fr; }
  .audience__cases li { display: grid; grid-template-columns: 60px minmax(0, 1fr); align-items: center; gap: 8px 16px; }
  .audience__cases h5 { margin: 0; font-size: 16px; }
  .audience__art { grid-row: span 2; align-self: start; width: 60px; height: 44px; }
  .audience__cases p { grid-column: 2; }
  .service-scope dl > div { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 430px) {
  .hero__in--service .hero__lede { min-block-size: 4lh; }
  .hd__nav { gap: 2px; font-feature-settings: "palt"; }
}

@media (max-width: 389px) {
  .hero__in--service .hero__cta { align-items: flex-start; flex-direction: column; gap: 4px; }
}
@media (max-width: 359px) {
  :root { --pad: 16px; }
  .hd__nav { margin-inline: -8px; }
  .hd__logo { font-size: 16px; }
  .btn--sm { padding: 0 8px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
