/* PORTFOLIO — CREATIVE × MARKETING × AI
   黒地・オフホワイト・蛍光ライムの3色。見出しは極太ゴシック、ラベルは等幅の英字。 */
:root {
  --bg: #0B0C0E;
  --bg-2: #121418;
  --panel: #17191E;
  --ink: #EDEBE4;
  --sub: #BDBFC2;
  --line: rgba(237, 235, 228, .12);
  --line-2: rgba(237, 235, 228, .22);
  --accent: #C6FF3D;
  --accent-ink: #0B0C0E;
  --head: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --en: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gut: 20px;
  --max: 1240px;
  color-scheme: dark;
}
@media (max-width: 400px) { :root { --gut: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 16px; font-weight: 400; line-height: 1.85; letter-spacing: .02em;
  word-break: normal; word-break: auto-phrase; overflow-wrap: anywhere; line-break: strict; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@media (min-width: 960px) { body { font-size: 17px; } }
.sp { display: inline; }
@media (min-width: 600px) { .sp { display: none; } }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nw { white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; z-index: 120; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- ヘッダー ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 12, 14, .78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__in { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 12px; }
.top__name { margin: 0; font-family: var(--en); font-weight: 700; font-size: 15px; letter-spacing: .18em; white-space: nowrap; }
.top__name a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: baseline; gap: 10px; }
.top__name a::before { content: ""; width: 8px; height: 8px; background: var(--accent); align-self: center; }
.top__name span { font-family: var(--body); font-weight: 400; font-size: 11px; letter-spacing: .1em; color: var(--sub); }
.top__nav { display: flex; gap: 22px; }
.top__nav a { color: var(--ink); text-decoration: none; font-family: var(--en); font-weight: 500; font-size: 13px; letter-spacing: .08em; padding: 10px 0; white-space: nowrap; position: relative; }
.top__nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 6px; height: 1px; background: var(--accent); transition: right .25s ease; }
.top__nav a:hover::after { right: 0; }
@media (max-width: 520px) {
  .top__name span { display: none; }
  .top__nav { gap: 14px; }
  .top__nav a { font-size: 12px; letter-spacing: .04em; }
}

/* ---------- ヒーロー ---------- */
.hero { position: relative; padding: 56px 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 20%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse at 30% 20%, #000 0%, transparent 70%);
  opacity: .55;
}
.hero::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -140px; pointer-events: none;
  background: radial-gradient(circle, rgba(198, 255, 61, .16), transparent 62%);
}
@media (min-width: 960px) { .hero { padding-top: 104px; } }
.hero__in { position: relative; z-index: 1; }
.hero__text { max-width: 980px; }
@media (min-width: 1100px) {
  .hero__in { display: block; }
  .hero__in .hero__notice { margin: 0 0 8px; }
}
.hero__kicker {
  margin: 0 0 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .18em; color: var(--ink);
}
.hero__kicker span { border: 1px solid var(--line-2); padding: 4px 10px 4px 12px; }
.hero__kicker i { font-style: normal; color: var(--accent); }
.hero__title {
  margin: 0; font-family: var(--head); font-weight: 900;
  font-size: clamp(28px, 8.4vw, 104px); line-height: 1.16; letter-spacing: -.01em;
}
.hero__title em {
  font-style: normal; color: var(--accent-ink); background: var(--accent);
  padding: 0 .12em; margin: 0 .04em; display: inline-block; line-height: 1.12;
}
.hero__sub {
  margin: 30px 0 0; font-family: var(--head); font-weight: 700;
  font-size: clamp(17px, 2.4vw, 22px); letter-spacing: .06em; color: var(--ink);
  display: flex; align-items: center; gap: 14px;
}
.hero__sub::before { content: ""; width: 36px; height: 1px; background: var(--accent); flex: none; }
.hero__lead { margin: 16px 0 0; max-width: 34em; color: var(--sub); font-size: 16px; }
@media (min-width: 960px) { .hero__lead { font-size: 18px; } }
.hero__pdf { margin: 28px 0 0; font-size: 15px; }
.hero__pdf a {
  color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--line-2); padding-bottom: 4px; font-weight: 700;
}
.hero__pdf a::after { content: "↗"; font-family: var(--en); color: var(--accent); }
.hero__pdf a:hover { border-color: var(--accent); }
.hero__notice {
  margin: 34px 0 0; max-width: 44em; padding: 16px 18px;
  border: 1px solid var(--line-2); font-size: 14px; line-height: 1.8; color: var(--sub); position: relative;
}
.hero__notice::before {
  content: "NOTE"; position: absolute; top: -9px; left: 14px; padding: 0 8px; background: var(--bg);
  font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: .2em; color: var(--accent); line-height: 18px;
}
.hero__notice strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }

/* 流れる帯 */
.ticker { margin-top: 56px; border-block: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.ticker__track { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker__track span {
  font-family: var(--en); font-weight: 700; font-size: clamp(18px, 3vw, 28px); letter-spacing: .06em;
  padding: 14px 0 14px 28px; white-space: nowrap; color: rgba(237, 235, 228, .78);
  display: inline-flex; align-items: center;
}
.ticker__track span::after { content: "✳"; -webkit-text-stroke: 0; color: var(--accent); font-size: .7em; margin-left: 28px; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* 作品の棚 */
.shelf {
  --sh: 176px;
  overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gut);
  -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
  position: relative; border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, transparent calc(100% - 78px), var(--bg-2) calc(100% - 78px));
}
.shelf__row {
  list-style: none; margin: 0; padding: 36px var(--gut) 0;
  display: flex; align-items: flex-end; gap: 18px; width: max-content; min-width: 100%;
}
@media (min-width: 1000px) {
  .shelf { --sh: clamp(130px, calc((min(100vw, 1280px) - 2 * var(--gut) - 160px) / 6.2), 196px); }
  .shelf__row { justify-content: center; gap: 22px; margin: 0 auto; padding-top: 44px; }
}
.shelf__item { scroll-snap-align: start; flex: none; }
.shelf__item a { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: var(--ink); }
.shelf__cap { display: block; margin-top: 14px; padding-bottom: 22px; font-size: 14px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.shelf__kind { display: block; color: var(--accent); font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: .16em; }
.shelf__item a:hover .shelf__cap { color: var(--accent); }
.shelf__item .obj { transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
.shelf__item a:hover .obj { transform: translateY(-8px); box-shadow: 0 0 0 1px var(--accent), 0 24px 40px -20px rgba(198, 255, 61, .35); }

/* 形ごとの枠 */
.obj { display: block; position: relative; background: var(--panel); box-shadow: 0 20px 30px -18px rgba(0, 0, 0, .9), 0 0 0 1px var(--line-2); }
.obj img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.shelf .obj { height: var(--sh); }
.obj--phone { aspect-ratio: 9 / 16; border: 4px solid #000; border-radius: 16px; overflow: hidden; background: #000; }
.obj--tall { aspect-ratio: 390 / 844; }
.obj--post { aspect-ratio: 4 / 5; border-radius: 2px; overflow: hidden; }
.obj--sheet { aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; }
.obj--browser { border-radius: 8px; overflow: hidden; padding-top: 16px; background: #24272D; }
.obj--browser::before {
  content: ""; position: absolute; top: 5px; left: 8px; width: 34px; height: 6px;
  background: radial-gradient(circle at 3px 3px, #5B6068 3px, transparent 3.5px) 0 0 / 12px 6px repeat-x;
}
.shelf .obj--browser { aspect-ratio: auto; width: calc((var(--sh) - 16px) * 1.6); }
.obj--browser img { aspect-ratio: 16 / 10; height: auto; }

@media (prefers-reduced-motion: no-preference) {
  .hero__text > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__text > *:nth-child(2) { animation-delay: .08s; }
  .hero__text > *:nth-child(3) { animation-delay: .16s; }
  .hero__text > *:nth-child(4) { animation-delay: .22s; }
  .hero__text > *:nth-child(5) { animation-delay: .28s; }
  .shelf__item { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: .3s; }
  .shelf__item:nth-child(2) { animation-delay: .36s; }
  .shelf__item:nth-child(3) { animation-delay: .42s; }
  .shelf__item:nth-child(4) { animation-delay: .48s; }
  .shelf__item:nth-child(5) { animation-delay: .54s; }
  .shelf__item:nth-child(6) { animation-delay: .60s; }
  .shelf__item:nth-child(7) { animation-delay: .66s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- 見出し ---------- */
.sec-head { margin-bottom: 8px; }
.sec-head__title {
  margin: 0; font-family: var(--head); font-weight: 900;
  font-size: clamp(30px, 6.4vw, 56px); line-height: 1.25; letter-spacing: .01em;
}
.sec-head__title::before {
  display: block; margin-bottom: 14px;
  font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .2em; color: var(--accent);
}
#works-title::before { content: "01 — WORKS"; }
#services-title::before { content: "02 — SERVICE"; }
#flow-title::before { content: "03 — FLOW"; }
#contact-title::before { content: "04 — CONTACT"; }
.sec-head__lead { margin: 16px 0 0; color: var(--sub); max-width: 40em; }

/* ---------- 作品 ---------- */
.works { padding: 88px 0 24px; }
@media (min-width: 960px) { .works { padding-top: 128px; } }
.work { padding: 44px 0 48px; border-top: 1px solid var(--line); margin-top: 20px; }
.sec-head + .work { margin-top: 48px; }
@media (min-width: 960px) {
  .work {
    display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: 72px; align-items: start; padding: 72px 0 80px; margin-top: 0;
  }
  .work__stage { position: sticky; top: 88px; }
}
.work__stage { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 28px 18px; position: relative; }
.work__stage::before, .work__stage::after { content: ""; position: absolute; width: 14px; height: 14px; border-color: var(--accent); border-style: solid; }
.work__stage::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.work__stage::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
@media (min-width: 600px) { .work__stage { padding: 40px 34px; } }

.work__stage--video { display: grid; gap: 22px; justify-items: center; }
.phone { margin: 0; width: min(290px, 74vw); border: 6px solid #000; border-radius: 26px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line-2), 0 30px 50px -26px rgba(0, 0, 0, .9); }
.phone video { width: 100%; aspect-ratio: 9 / 16; background: #000; object-fit: cover; }
.scenes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 420px; }
.scenes button { display: grid; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.scenes img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px var(--line-2); transition: box-shadow .2s; }
.scenes__t { margin-top: 8px; font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--accent); line-height: 1.3; }
.scenes__t::before { content: "▶ "; font-size: 9px; vertical-align: 1px; }
.scenes__l { font-size: 13px; line-height: 1.55; color: var(--ink); }
.scenes button:hover img { box-shadow: 0 0 0 2px var(--accent); }
@media (min-width: 960px) {
  .work__stage--video { grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: start; gap: 28px; }
  .phone { width: min(300px, 26vw); }
  .scenes { grid-template-columns: 1fr; gap: 14px; }
  .scenes button { grid-template-columns: 70px 1fr; column-gap: 14px; align-items: center; }
  .scenes img { grid-row: span 2; }
  .scenes__t { align-self: end; margin-top: 0; }
  .scenes__l { align-self: start; }
}

.site { margin: 0; position: relative; padding-bottom: 12%; }
.site__pc { width: 88%; }
.site__sp { position: absolute; right: 0; bottom: 0; width: 26%; border-width: 4px; border-radius: 16px; }
@media (min-width: 600px) { .site__sp { border-width: 5px; border-radius: 20px; } }

.gallery { display: grid; gap: 12px; }
.gallery ul { list-style: none; margin: 0; padding: 0; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery img { width: 100%; box-shadow: 0 0 0 1px var(--line-2); border-radius: 2px; transition: box-shadow .2s; }
.gallery button:hover img { box-shadow: 0 0 0 2px var(--accent); }
.gallery__row--fit { display: flex; gap: 12px; align-items: flex-start; }
.gallery__row--fit li { flex: var(--r) 1 0; min-width: 0; }
.gallery__row--strip { display: flex; gap: 10px; }
.gallery__row--strip li { flex: 1 1 0; min-width: 0; }
@media (max-width: 599px) {
  .gallery__row--strip { overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 0 18px 6px; scrollbar-width: thin; }
  .gallery__row--strip li { flex: 0 0 31%; scroll-snap-align: start; }
}

.work__body { padding-top: 30px; }
@media (min-width: 960px) { .work__body { padding-top: 4px; } }
.work__kind { margin: 0; font-size: 14px; color: var(--sub); display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; }
.work__no {
  font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .08em;
  color: var(--accent-ink); background: var(--accent); padding: 1px 9px; margin-right: 12px;
}
.work__title {
  margin: 12px 0 0; font-family: var(--head); font-weight: 900;
  font-size: clamp(24px, 5.4vw, 34px); line-height: 1.4; letter-spacing: .01em;
}
.spec { margin: 26px 0 0; border-top: 1px solid var(--line); }
.spec > div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 700; font-size: 14px; color: var(--accent); line-height: 1.7; }
.spec dd { margin: 2px 0 0; line-height: 1.75; font-size: 15px; }
@media (min-width: 600px) {
  .spec > div { display: grid; grid-template-columns: 5em 1fr; gap: 16px; }
  .spec dt { padding-top: 1px; }
  .spec dd { margin: 0; }
}
.points { margin: 24px 0 0; padding: 0; list-style: none; }
.points li { position: relative; padding-left: 1.6em; margin-top: 10px; line-height: 1.7; font-size: 15px; color: var(--ink); }
.points li::before { content: "—"; position: absolute; left: 0; top: 0; color: var(--accent); font-family: var(--en); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 10px 24px; border-radius: 0;
  font-size: 15px; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none; cursor: pointer;
  border: 1px solid var(--accent); letter-spacing: .04em; transition: background .2s, color .2s;
}
.btn::after { content: "→"; font-family: var(--en); transition: transform .2s; }
.btn:hover::after { transform: translateX(4px); }
.btn--main { background: var(--accent); color: var(--accent-ink); }
.btn--main:hover { background: transparent; color: var(--accent); }
.btn--sub { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--sub:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 599px) { .actions .btn { flex: 1 1 100%; } }
.work__note { margin: 20px 0 0; font-size: 13px; line-height: 1.75; color: var(--sub); }

/* ---------- できること ---------- */
.services { padding: 88px 0; background: var(--bg-2); border-block: 1px solid var(--line); }
@media (min-width: 960px) { .services { padding: 120px 0; } }
.svc { margin: 36px 0 0; border-top: 1px solid var(--line); counter-reset: svc; }
.svc__row { padding: 24px 0; border-bottom: 1px solid var(--line); counter-increment: svc; transition: background .2s; }
.svc__row:hover { background: rgba(198, 255, 61, .03); }
.svc dt { font-family: var(--head); font-weight: 900; font-size: 21px; line-height: 1.5; display: flex; align-items: baseline; gap: 14px; }
.svc dt::before { content: counter(svc, decimal-leading-zero); font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--accent); }
.svc dd { margin: 8px 0 0; max-width: 40em; color: var(--sub); font-size: 15px; }
.svc__price { margin: 10px 0 0; font-size: 13px; color: var(--sub); }
.svc__price b { color: var(--ink); font-weight: 700; white-space: nowrap; }
.svc__terms { list-style: none; margin: 28px 0 0; padding: 20px 22px; border: 1px solid var(--line-2); display: grid; gap: 10px; font-size: 15px; color: var(--ink); }
.svc__terms li { display: grid; grid-template-columns: 5.5em 1fr; gap: 8px; }
.svc__terms b { font-weight: 700; color: var(--accent); }
@media (min-width: 760px) {
  .svc__row { display: grid; grid-template-columns: 13em 1fr; gap: 24px; padding: 30px 0; }
  .svc dd { margin: 0; }
}

/* ---------- 進め方 ---------- */
.flow { padding: 88px 0; }
@media (min-width: 960px) { .flow { padding: 120px 0; } }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 0; }
.steps li { position: relative; padding: 0 0 30px 64px; }
.steps li::after { content: ""; position: absolute; left: 21px; top: 50px; bottom: 6px; width: 1px; background: var(--line-2); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps__n {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--accent); color: var(--accent); font-family: var(--mono); font-weight: 700; font-size: 16px;
}
.steps h3 { margin: 6px 0 0; font-family: var(--head); font-weight: 900; font-size: 19px; line-height: 1.5; }
.steps p { margin: 6px 0 0; color: var(--sub); font-size: 15px; }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .steps li { padding: 66px 0 0; }
  .steps li::after { left: 56px; right: -20px; top: 22px; bottom: auto; width: auto; height: 1px; }
}

/* ---------- ご連絡 ---------- */
.contact { padding: 0 0 96px; }
.contact .sec-head__title { padding-top: 64px; border-top: 1px solid var(--line); }
.contact__list { margin: 30px 0 0; display: grid; gap: 12px; }
.contact__list > div { background: var(--panel); border: 1px solid var(--line); padding: 20px 22px; }
.contact__list dt { font-weight: 700; font-size: 14px; color: var(--accent); }
.contact__list dd { margin: 6px 0 0; font-size: 16px; line-height: 1.7; }
@media (min-width: 960px) { .contact__list { grid-template-columns: repeat(3, 1fr); gap: 16px; } .contact__list > div { padding: 24px 26px; } }

/* ---------- フッター ---------- */
.foot { background: #000; color: var(--sub); padding: 44px 0 52px; font-size: 13px; line-height: 1.85; border-top: 1px solid var(--line); }
.foot p { margin: 6px 0 0; max-width: 60em; }
.foot .foot__fict { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink); }

/* ---------- 画像を大きく見る ---------- */
.viewer {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #050506; color: #fff;
}
.viewer[open] { display: grid; grid-template-rows: auto 1fr auto; }
.viewer::backdrop { background: rgba(0, 0, 0, .85); }
.viewer__bar, .viewer__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gut); }
.viewer__count { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--sub); }
.viewer button, .viewer__orig {
  min-height: 46px; padding: 8px 18px; border-radius: 0; border: 1px solid var(--line-2);
  background: transparent; color: #fff; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
}
.viewer button:hover, .viewer__orig:hover { border-color: var(--accent); color: var(--accent); }
.viewer__orig { border-color: transparent; text-decoration: underline; text-underline-offset: 4px; font-size: 13px; }
.viewer__fig { margin: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; padding: 0 var(--gut); }
.viewer__img { max-width: 100%; max-height: calc(100dvh - 170px); width: auto; height: auto; object-fit: contain; align-self: center; background: #fff; }
.viewer__cap { padding: 10px 0 0; font-size: 13px; text-align: center; color: var(--sub); }
