/* DARAKUPITE Portfolio 共通CSS（土台）
   ページ別の見た目は works.css / pages.css / admin.css 側に置く。ここは共通部品のみ。 */

/* ---------- トークン ---------- */
:root {
  --c-white: #FFFFFF;
  --c-paper: #FAF8FF;
  --c-ink: #1D1A26;
  --c-ink-soft: #4A4658;
  --c-gray: #A3A1AD;
  --c-lav: #DCD7F6;
  --c-lav-soft: #EFECFC;
  --c-purple: #6E4FD6;
  --c-pink: #E06BBE;
  --c-pink-deep: #B8358F;
  --c-heart: #F4A9D2;
  /* 大きい見出し・ヘッダーのナビ文字（黒の代わり）。本文・ボタン・ピルの黒は --c-ink のまま */
  --c-head: #615C91;

  --f-serif: "Young Serif", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --f-sans: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;

  /* ボタンなど白文字が乗る面: ふんわりしつつ白文字が読める中間色 */
  --grad-cta: linear-gradient(100deg, #8E6CD0, #A965B5);
  /* 広い面用のパステル（上ピンク→下ラベンダー）。文字は --c-head / --c-ink-soft を載せる */
  --grad-soft: linear-gradient(180deg, #F3C9F1 0%, #C5AEF2 100%);
  --maxw: 1120px;
  --gutter: 24px;
  /* ヘッダーとWORKS一覧の幅: 画面いっぱい近くまで広げ、左右に少しだけ余白を残す */
  --maxw-wide: 1760px;
  --inset-wide: clamp(16px, 2.5vw, 40px);
  --r-card: 22px;
  --sh-soft: 0 10px 30px -14px rgba(110, 79, 214, .38);
  --sh-bar: 0 6px 22px -12px rgba(110, 79, 214, .45), 0 0 0 1px rgba(29, 26, 38, .05);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --hd-h: 60px;
}

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--f-sans); font-weight: 500; font-size: 16px; line-height: 1.85;
  color: var(--c-ink); background: var(--c-paper);
  overflow-wrap: anywhere; word-break: normal; line-break: strict;
  -webkit-font-smoothing: antialiased; font-feature-settings: "palt";
}
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-purple); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--c-lav); color: var(--c-ink); }
[hidden] { display: none !important; }

.ic { width: 1em; height: 1em; fill: currentColor; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--c-ink); color: #fff; padding: 8px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--maxw), 100% - var(--gutter) * 2); margin-inline: auto; }

/* 下層ページの本文はヘッダーの下から始める */
.page main { padding-top: 112px; min-height: 60svh; }
/* PCはステッカー（ヘッダーの下へ約90pxはみ出す）と本文の先頭が重ならないよう下げる */
@media (min-width: 768px) { .page main { padding-top: 160px; } }

/* ---------- スクロール出現（1回だけ） ---------- */
.js [data-reveal] { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--rd, 0s); }
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(22px); }

/* ---------- きらめき装飾 ---------- */
.spk {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  color: var(--c, var(--c-lav)); fill: currentColor; pointer-events: none;
  animation: twinkle var(--t, 3.4s) ease-in-out var(--d, 0s) infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: .3; transform: scale(.55) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(18deg); }
}
[data-sparkles], [data-sparkles-more] { position: relative; }
/* 種類を混ぜた分。ハートはゆっくり浮いて揺れ、光の点は丸くにじんで脈打つ。ひし形は星と同じまたたき */
.spk-heart { animation-name: spk-float; }
.spk-glow { fill: none; border-radius: 50%; background: radial-gradient(circle, var(--c, var(--c-lav)) 0%, transparent 68%); animation-name: spk-glow; }
@keyframes spk-float {
  0%, 100% { opacity: .35; transform: translateY(0) scale(.8) rotate(-8deg); }
  50% { opacity: .95; transform: translateY(-7px) scale(1) rotate(8deg); }
}
@keyframes spk-glow {
  0%, 100% { opacity: .25; transform: scale(.6); }
  50% { opacity: .85; transform: scale(1.05); }
}
/* 増やした分は、JSが空きを測って置けた所だけ出す（置けない・スマホの上限超えは出さない） */
.spk-fit { display: none; }
.spk-fit.is-on { display: block; }
/* ページの左右の余白に散らす専用の区画（main の最初の子。クリックは通す） */
.spk-gutter { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.page main:has(> .spk-gutter) { position: relative; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .06em; line-height: 1;
  transition: transform .18s var(--ease-pop), box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.96); }
.btn-primary, .btn-contact { color: #fff; background: var(--grad-cta); box-shadow: 0 8px 20px -10px rgba(184, 53, 143, .7); }
.btn-ghost { background: var(--c-white); color: var(--c-ink); box-shadow: inset 0 0 0 2px var(--c-ink); }
.btn-ghost:hover { background: var(--c-ink); color: #fff; }
.btn-white { background: #fff; color: var(--c-purple); box-shadow: 0 10px 24px -12px rgba(29, 26, 38, .5); }
.btn .ic { font-size: 1.1em; }

/* カードのホバー（浮く＋角に小さなハートがポンと出る） */
.pop { position: relative; transition: transform .25s var(--ease-pop), box-shadow .25s; }
.pop::after {
  content: ""; position: absolute; right: -8px; top: -8px; width: 26px; height: 26px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23F4A9D2' stroke='%23fff' stroke-width='1.4' d='M12 21.500C5 16 2 12.500 2 8.600 2 5.700 4.200 3.500 7 3.500c2 0 3.900 1.100 5 2.900 1.100-1.800 3-2.900 5-2.900 2.800 0 5 2.200 5 5.100 0 3.900-3 7.400-10 12.900z'/%3E%3C/svg%3E") center/contain no-repeat;
  transform: scale(0) rotate(-20deg); transition: transform .3s var(--ease-pop);
}
.pop:hover, .pop:focus-visible { transform: translateY(-4px); box-shadow: var(--sh-soft); }
.pop:hover::after, .pop:focus-visible::after { transform: scale(1) rotate(10deg); }

/* ---------- セクション見出し ---------- */
.sec { padding: clamp(72px, 11vw, 132px) 0; position: relative; }
.sec-head { text-align: center; margin-bottom: clamp(36px, 6vw, 64px); }
/* 見出しにキラキラを散らすときは、文字を一段上に載せて後ろへ回す（.spk 自身には当てない。.sec-head > * と書くと .spk まで relative になり左上に固まる） */
.sec-head[data-sparkles] > :not(.spk), .sec-head[data-sparkles-more] > :not(.spk) { position: relative; z-index: 1; }
.sec-en { color: var(--c-head); font-family: var(--f-serif); font-weight: 400; font-size: clamp(2.5rem, 7vw, 4.6rem); line-height: 1.05; letter-spacing: .01em; }
.sec-ja { display: inline-flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 14px; font-weight: 700; letter-spacing: .28em; color: var(--c-ink-soft); }
.sec-ja .ic { color: var(--c-pink); font-size: 12px; }
.sec-ja .ic:last-child { font-size: 16px; color: var(--c-pink-deep); }

/* ---------- ヘッダー ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; pointer-events: none; }
/* 画面の端から端まで。左のロゴのステッカーは左上の角、右のメニューは右上の角に置く（画面がどれだけ広くても）。
   以前は一覧の最大幅 1760px にそろえていたため、1840px より広い画面で両方とも内側へずれて見えた */
.hd-bar {
  pointer-events: auto; position: relative; z-index: 60;
  width: 100%; min-height: var(--hd-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px var(--inset-wide); background: var(--c-white); box-shadow: var(--sh-bar);
  transition: background .3s, box-shadow .3s;
}
.hd-logo { position: relative; z-index: 60; display: block; flex: none; width: 104px; height: 44px; }
/* ステッカー: 60pxのバーから下へはみ出す。ふちの波・破線・白ロゴは画像側に描いてある */
.hd-sticker {
  position: absolute; left: 0; top: 2px; width: 150px; height: 150px; max-width: none;
  transform: rotate(-6deg); transform-origin: 30% 20%;
  filter: drop-shadow(0 6px 8px rgba(70, 50, 130, .28)) drop-shadow(0 1px 1px rgba(70, 50, 130, .22));
  transition: transform .45s var(--ease-pop), transform-origin .45s var(--ease-pop), top .45s var(--ease-pop), filter .3s;
}
.hd-logo:hover .hd-sticker, .hd-logo:focus-visible .hd-sticker { animation: sticker-wobble .7s ease-in-out; }
@keyframes sticker-wobble {
  0%, 100% { transform: rotate(-6deg); }
  20% { transform: rotate(3deg) scale(1.03); }
  45% { transform: rotate(-10deg) scale(1.03); }
  70% { transform: rotate(-2deg); }
}
/* スクロールしたら小さくしてバーの高さの中に収める（common.js が html に is-scrolled を付ける）。
   ロゴ枠(44px/40px)の縦中央にステッカーの中心をそろえ、左端は動かさない。
   傾き(6度)で外接が約1.1倍に広がるので、バー内（上下に数px の余白）に余裕をもって収まる大きさにしてある。影も小さくして下へはみ出さない */
.is-scrolled .hd-sticker { top: -51px; transform-origin: 0 50%; transform: rotate(-6deg) scale(.27); filter: drop-shadow(0 1px 2px rgba(70, 50, 130, .3)); }
.is-scrolled .hd-logo:hover .hd-sticker { animation: none; transform: rotate(-6deg) scale(.3); }
/* 縮んだステッカーの右にロゴタイプ「Daraku Pite」を出す。縮む前（大きなステッカーのとき）は隠し、縮み終わる頃に横から出す。
   リンク(.hd-logo)の子なので、ロゴタイプを押してもTOPへ戻れる */
.hd-type {
  position: absolute; left: 54px; top: 50%; width: auto; height: 22px; max-width: none; margin-top: -11px;
  opacity: 0; visibility: hidden; transform: translateX(-8px);
  transition: opacity .25s, transform .25s, visibility 0s .25s;
}
.is-scrolled .hd-type { opacity: 1; visibility: visible; transform: none; transition: opacity .35s .2s, transform .45s var(--ease-pop) .2s, visibility 0s; }
.hd-nav { display: flex; align-items: center; gap: 8px; pointer-events: auto; }
.hd-nav ul { display: flex; align-items: center; gap: 4px; }
.hd-nav a.nav-link {
  position: relative; display: block; padding: 8px 16px; font-family: var(--f-serif); font-size: 16px; letter-spacing: .1em; line-height: 1.2;
  color: var(--c-head); transition: color .2s;
}
.hd-nav a.nav-link:hover { color: var(--c-purple); }
.hd-nav a.nav-link[aria-current="page"] { color: var(--c-purple); }
.hd-nav a.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 8px; height: 8px; margin-left: -4px;
  background: var(--c-pink); transform: rotate(45deg); border-radius: 2px;
}
.btn-contact { min-height: 44px; padding: 0 22px; font-size: 14px; }
.btn-contact[aria-current="page"] { box-shadow: 0 0 0 3px var(--c-lav), 0 8px 20px -10px rgba(184, 53, 143, .7); }
.hd-toggle { display: none; position: relative; z-index: 60; width: 44px; height: 44px; border-radius: 50%; background: var(--c-lav-soft); color: var(--c-purple); }
.hd-toggle .ic { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; transition: transform .35s var(--ease-pop), opacity .2s; }
.hd-toggle .ic-x { opacity: 0; transform: scale(.3) rotate(-90deg); }
.hd-toggle[aria-expanded="true"] .ic-heart { opacity: 0; transform: scale(.3) rotate(90deg); }
.hd-toggle[aria-expanded="true"] .ic-x { opacity: 1; transform: none; }

@media (max-width: 767px) {
  :root { --hd-h: 54px; }
  .hd-toggle { display: block; }
  .hd-logo { width: 64px; height: 40px; }
  .hd-sticker { width: 84px; height: 84px; top: 3px; }
  .is-scrolled .hd-sticker { top: -20px; transform: rotate(-6deg) scale(.42); }
  .is-scrolled .hd-logo:hover .hd-sticker { transform: rotate(-6deg) scale(.46); }
  .hd-type { left: 46px; height: 18px; margin-top: -9px; }
  .hd-nav {
    position: fixed; inset: 0; z-index: 50; flex-direction: column; justify-content: center; gap: 28px;
    padding: 90px 28px 40px; background: var(--c-paper) radial-gradient(circle at 80% 12%, var(--c-lav) 0, transparent 46%) no-repeat;
    visibility: hidden; opacity: 0; transition: opacity .3s, visibility 0s .3s;
  }
  .menu-open .hd-nav { visibility: visible; opacity: 1; transition: opacity .3s; }
  .hd-nav ul { flex-direction: column; gap: 6px; }
  .hd-nav a.nav-link { font-size: 2.2rem; padding: 6px 12px; text-align: center; }
  .btn-contact { min-height: 54px; padding: 0 36px; font-size: 16px; }
  .menu-open { overflow: hidden; }
  .menu-open .hd-bar { background: transparent; box-shadow: none; }
}

/* ---------- スプラッシュ ---------- */
.splash { display: none; }
.splash-on { overflow: hidden; }
.splash-on .splash {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; cursor: pointer;
  background: var(--c-paper) radial-gradient(circle at 50% 42%, #fff 0, var(--c-lav-soft) 62%, var(--c-lav) 100%) no-repeat;
}
.splash-inner { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 56px); padding: 24px; }
.splash-mark { position: relative; width: min(36vw, 360px); }
.splash-mark img { width: 100%; height: auto; animation: sp-pop .6s var(--ease-pop) .08s both; transform-origin: 50% 55%; }
.splash-type { width: min(46vw, 480px); overflow: hidden; clip-path: inset(0 100% 0 0); animation: sp-wipe .6s cubic-bezier(.6, 0, .2, 1) .8s forwards; }
.splash-type img { width: 100%; height: auto; }
.splash .spk { animation: sp-twinkle .6s ease-out var(--d, .5s) both; }
/* 動画のスプラッシュ（js/common.js の initSplash が video と SKIP ボタンを足す）。
   動画かロゴかが決まるまで（html.splash-wait）と動画の間（.is-video）はロゴを出さない。決まったらロゴのアニメを頭から始める */
.splash-wait .splash-inner, .splash.is-video .splash-inner { display: none; }
.splash-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: transparent; }
.splash-video[data-fit="cover"] { object-fit: cover; }
.splash-skip {
  position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 1;
  min-width: 84px; min-height: 44px; padding: 0 22px; border-radius: 999px; background: rgba(255, 255, 255, .88); color: var(--c-purple);
  font-family: var(--f-serif); font-size: 14px; letter-spacing: .18em; box-shadow: 0 0 0 2px var(--c-purple), 0 8px 20px -10px rgba(110, 79, 214, .6);
  cursor: pointer; transition: background .2s, color .2s;
}
.splash-skip:hover { background: var(--c-purple); color: #fff; }
.splash-skip:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 3px; }
@keyframes sp-pop { 0% { opacity: 0; transform: scale(.25) rotate(-16deg); } 100% { opacity: 1; transform: none; } }
@keyframes sp-wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes sp-twinkle { 0% { opacity: 0; transform: scale(0) rotate(-40deg); } 55% { opacity: 1; transform: scale(1.35) rotate(15deg); } 100% { opacity: .9; transform: scale(1) rotate(0); } }
@media (max-width: 599px) {
  .splash-inner { flex-direction: column; gap: 22px; }
  .splash-mark { width: min(62vw, 280px); }
  .splash-type { width: min(78vw, 340px); }
}
/* 退場: フォールバックはフェード */
/* 先にロゴを縮小＋フェード（.22s）してから、何もない背景の中央で窓が開く */
.splash.is-out { animation: sp-fade .5s ease .22s forwards; pointer-events: none; }
.splash.is-out.is-skip { animation-duration: .3s; animation-delay: .1s; }
.splash.is-out .splash-inner { animation: sp-away .22s ease-in forwards; }
.splash.is-out.is-skip .splash-inner { animation-duration: .12s; }
.splash.is-out .splash-video, .splash.is-out .splash-skip { animation: sp-away .22s ease-in forwards; }
.splash.is-out.is-skip .splash-video, .splash.is-out.is-skip .splash-skip { animation-duration: .12s; }
@keyframes sp-away { to { opacity: 0; transform: scale(.9); } }
@keyframes sp-fade { to { opacity: 0; } }
/* 対応ブラウザではハート型の窓が中央から広がる */
@supports (mask-composite: exclude) {
  .splash.is-out {
    animation: sp-heart .68s cubic-bezier(.65, 0, .35, 1) .22s forwards;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.500C5 16 2 12.500 2 8.600 2 5.700 4.200 3.500 7 3.500c2 0 3.900 1.100 5 2.900 1.100-1.800 3-2.900 5-2.900 2.800 0 5 2.200 5 5.100 0 3.900-3 7.400-10 12.900z'/%3E%3C/svg%3E") center / 0 0 no-repeat, linear-gradient(#000, #000);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.500C5 16 2 12.500 2 8.600 2 5.700 4.200 3.500 7 3.500c2 0 3.900 1.100 5 2.900 1.100-1.800 3-2.900 5-2.900 2.800 0 5 2.200 5 5.100 0 3.900-3 7.400-10 12.900z'/%3E%3C/svg%3E") center / 0 0 no-repeat, linear-gradient(#000, #000);
    -webkit-mask-composite: xor; mask-composite: exclude;
  }
  .splash.is-out.is-skip { animation-duration: .45s; animation-delay: .1s; }
}
@keyframes sp-heart {
  from { -webkit-mask-size: 0 0, 100% 100%; mask-size: 0 0, 100% 100%; }
  to { -webkit-mask-size: 300vmax 300vmax, 100% 100%; mask-size: 300vmax 300vmax, 100% 100%; }
}

/* ---------- ヒーロー ---------- */
/* 動画はヘッダーの下・周囲に白い余白を残した角丸の枠の中に置く */
.hero {
  --hf-s: clamp(12px, 2.2vw, 32px);               /* 左右・下の白い余白 */
  --hf-t: calc(var(--hd-h) + var(--hf-s) * .6);   /* 上の余白（ヘッダーの下） */
  --hf-r: clamp(20px, 2.4vw, 28px);
  position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--c-white);
}
.hero-fallback, .hero-video { top: var(--hf-t); right: var(--hf-s); bottom: var(--hf-s); left: var(--hf-s); border-radius: var(--hf-r); }
.hero-fallback {
  position: absolute; overflow: hidden; background-color: var(--c-lav-soft); display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(circle at 18% 22%, rgba(244, 169, 210, .55) 0, transparent 42%),
    radial-gradient(circle at 84% 78%, rgba(110, 79, 214, .28) 0, transparent 46%),
    linear-gradient(160deg, var(--c-lav-soft), var(--c-lav) 120%);
}
.hero-fallback .hf-mark { width: min(64vw, 520px); margin-top: -4vh; filter: drop-shadow(0 0 28px rgba(255, 255, 255, .95)) drop-shadow(0 0 60px rgba(255, 255, 255, .7)); animation: hf-float 6s ease-in-out infinite; }
.hero-fallback .hf-tag { position: absolute; left: 0; right: 0; bottom: 20%; font-family: var(--f-serif); letter-spacing: .12em; color: var(--c-ink-soft); font-size: clamp(13px, 1.6vw, 16px); }
@keyframes hf-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-video { position: absolute; width: calc(100% - var(--hf-s) * 2); height: calc(100% - var(--hf-t) - var(--hf-s)); object-fit: cover; background: transparent; }
.hero.no-video .hero-video { display: none; }
.hero-status { position: absolute; left: calc(var(--hf-s) + 16px); bottom: calc(var(--hf-s) + 16px); z-index: 5; width: min(360px, 100% - 140px); }
.cue {
  position: absolute; right: calc(var(--hf-s) + 16px); bottom: calc(var(--hf-s) + 16px); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 10px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--c-ink-soft);
  font-family: var(--f-serif); font-size: 10px; letter-spacing: .2em; line-height: 1; box-shadow: var(--sh-bar);
  transition: transform .2s var(--ease-pop);
}
.cue span { writing-mode: vertical-rl; }
.cue .ic { font-size: 20px; color: var(--c-pink); animation: cue-drop 1.8s ease-in-out infinite; }
.cue:hover { transform: translateY(-3px); }
@keyframes cue-drop { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
@media (max-width: 767px) {
  .hero-fallback .hf-tag { bottom: 36%; }
  .hero-status { left: calc(var(--hf-s) + 8px); bottom: calc(var(--hf-s) + 8px); width: calc(100% - var(--hf-s) * 2 - 84px); }
  .cue { right: calc(var(--hf-s) + 8px); bottom: calc(var(--hf-s) + 8px); }
}

/* ---------- 受付状況 ---------- */
.st-badge {
  display: inline-flex; align-items: center; gap: .5em; padding: 4px 14px 4px 10px; border-radius: 999px;
  font-weight: 700; font-size: 14px; line-height: 1.5; letter-spacing: .04em; background: var(--c-lav-soft); color: var(--c-purple);
}
.st-badge .m { font-family: var(--f-sans); font-size: 1.15em; line-height: 1; }
/* 記号（● ▲ ■ ◆ ×）。フォントで大きさ・重さが違うので、1em角の枠に入れて中央にそろえる。
   塗りの記号（● ▲ ■ ◆）と × は、同じくらいの大きさ・重さに見えるよう data-m ごとに位置と大きさをそろえる（× は拡大しない） */
.mk { display: inline-block; width: 1em; height: 1em; line-height: 1; text-align: center; font-family: var(--f-sans); font-weight: 700; transform: translateY(-.06em); }
.mk[data-m="●"], .mk[data-m="▲"] { transform: translateY(-.06em) scale(.9); }
.mk[data-m="■"], .mk[data-m="◆"] { transform: translateY(-.06em) scale(.9); }
.mk[data-m="×"] { transform: translateY(-.06em); }
/* 受付中の丸（バッジの点・月の記号）はやわらかく点滅。動きを減らす設定では下の reduce で止まる */
.st-badge.is-open .m, .mo-o .mo-l { animation: st-blink 2s ease-in-out infinite; }
@keyframes st-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.st-badge.is-limited { background: #fff; color: var(--c-pink-deep); box-shadow: inset 0 0 0 2px var(--c-heart); }
.st-badge.is-closed { background: var(--c-lav-soft); color: var(--c-ink-soft); }
.st-from { font-weight: 700; font-size: 14px; color: var(--c-ink); }

/* ヒーロー用カード */
.st-card { display: block; padding: 16px 20px 14px; background: rgba(255, 255, 255, .96); border-radius: var(--r-card); box-shadow: var(--sh-bar); }
.st-card .st-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.st-card .st-head { margin-top: 6px; font-weight: 700; font-size: 17px; line-height: 1.5; }
.st-card .st-msg { margin-top: 2px; font-size: 13px; line-height: 1.7; color: var(--c-ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-card .st-go { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 6px; font-family: var(--f-serif); font-size: 13px; letter-spacing: .12em; color: var(--c-purple); }
.st-card .st-go .ic { transition: transform .25s var(--ease-pop); }
.st-card:hover .st-go .ic { transform: translateX(4px); }

/* CONTACT帯の短い版 */
.st-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; }
.st-band .st-from { color: var(--c-ink); }
.st-band-msg { margin-top: 10px; text-align: center; color: var(--c-ink-soft); font-size: 15px; }

/* フル版（CONTACTページ） */
.st-full { background: var(--c-white); border-radius: 28px; padding: clamp(20px, 4vw, 36px); box-shadow: var(--sh-soft); }
.st-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--c-ink-soft); }
.st-legend li { display: flex; align-items: center; gap: 8px; }
.lv { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-lav-soft); font-weight: 700; font-size: 15px; line-height: 1; color: var(--c-purple); }
.lv.tri { color: var(--c-pink-deep); }
.lv.x { color: var(--c-ink-soft); }
.st-fromline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 18px; padding-top: 18px; border-top: 2px dotted var(--c-lav); }
.st-fromline .st-from { font-size: 18px; font-family: var(--f-sans); }
.st-months { margin-top: 18px; display: grid; gap: 10px; }
.st-row { display: flex; align-items: stretch; gap: 10px; }
.st-year { flex: none; display: grid; place-items: center; min-width: 64px; padding: 0 10px; border-radius: 14px; background: var(--c-ink); color: #fff; font-family: var(--f-serif); font-size: 16px; letter-spacing: .06em; }
.st-mlist { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 96px)); gap: 8px; }
.mo { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 6px; border-radius: 14px; background: var(--c-paper); box-shadow: inset 0 0 0 1.5px var(--c-lav); }
.mo-m { font-size: 12px; font-weight: 700; color: var(--c-ink-soft); line-height: 1.4; }
.mo-l { display: block; font-size: 22px; font-weight: 700; line-height: 1; }
.mo-u .mo-l { color: var(--c-ink-soft); opacity: .55; }
.mo-u { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c-lav); }
.mo-o .mo-l { color: var(--c-purple); }
.mo-tri .mo-l { color: var(--c-pink-deep); }
.mo-x .mo-l { color: var(--c-ink-soft); }
.mo-x { background: var(--c-lav-soft); box-shadow: none; }
.st-full .st-msg { margin-top: 20px; font-size: 15px; }
/* TOPのカード・CONTACT帯の4か月の帯（1行）。年は最初の月と年が変わる月にだけ小さく添える */
.st-mini { display: flex; gap: 6px; margin-top: 10px; }
.st-mini:has(.mo-y) { margin-top: 18px; }
.st-mini .mo { position: relative; flex: 1 1 0; min-width: 0; flex-direction: row; justify-content: center; align-items: center; gap: 4px; padding: 4px 2px; border-radius: 10px; }
.st-mini .mo-m { font-size: 11px; line-height: 1; white-space: nowrap; }
.st-mini .mo-l { font-size: 15px; }
.mo-y { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); font-family: var(--f-serif); font-size: 10px; font-weight: 400; letter-spacing: .06em; line-height: 1; color: var(--c-ink-soft); }
.st-band-mini { display: flex; justify-content: center; margin-top: 16px; }
.st-band-mini .st-mini { width: min(100%, 360px); margin-top: 0; }
.st-band-mini .st-mini:has(.mo-y) { margin-top: 12px; }
.st-band-mini .mo-y { color: var(--c-ink-soft); }
.st-band-mini .mo { padding: 6px 2px; }
@media (max-width: 520px) {
  .st-row { flex-direction: column; }
  .st-year { min-height: 34px; justify-self: start; padding: 0 16px; }
  /* 狭い幅でも4か月を1行に並べる(auto-fill は最大幅96pxで列数を数えるため、2列に折れて間延びする) */
  .st-mlist { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
}

/* ---------- WHAT I DO ---------- */
.wid { background: var(--c-paper); overflow: hidden; }  /* グラデだと8bit段差が横線に見えるため単色 */
.wid .sec-head { position: relative; }
/* キラキラ(.spk)は区画の割合で散らしているため、幅によって本文に重なる。中身を一段上に載せ、文字の前に出さない */
.wid > .wrap { position: relative; z-index: 1; }
.wid-list { display: grid; gap: clamp(28px, 5vw, 56px); }
.wid-item { display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); max-width: 860px; padding-bottom: clamp(28px, 5vw, 56px); border-bottom: 2px dotted var(--c-lav); }
.wid-item:last-child { border-bottom: 0; padding-bottom: 0; }
.wid-item:nth-child(even) { flex-direction: row-reverse; margin-left: auto; }
.wid-num { position: relative; flex: none; width: 168px; height: 168px; display: grid; place-items: center; }
.wid-num::before {
  content: ""; position: absolute; inset: 20px; border-radius: 30px; transform: rotate(45deg);
  background: linear-gradient(140deg, var(--c-lav) 20%, var(--c-heart)); box-shadow: 0 16px 30px -18px rgba(110, 79, 214, .6);
  transition: transform .5s var(--ease-pop);
}
.wid-item:hover .wid-num::before { transform: rotate(135deg); }
.wid-num span { position: relative; color: var(--c-head); font-family: var(--f-serif); font-size: 52px; line-height: 1; letter-spacing: -.02em; }
.wid-num .ic { position: absolute; right: 22px; top: 14px; font-size: 24px; color: var(--c-pink-deep); }
.wid-item:nth-child(even) .wid-num .ic { right: auto; left: 22px; }
.wid-en { font-family: var(--f-serif); font-size: 13px; letter-spacing: .24em; color: var(--c-pink-deep); line-height: 1.4; }
.wid-body h3 { color: var(--c-head); margin: 2px 0 10px; font-size: clamp(1.4rem, 3vw, 1.85rem); line-height: 1.4; }
.wid-body p + p { margin-top: 8px; }
.wid-body p:not(.wid-en) { color: var(--c-ink-soft); font-size: 15px; line-height: 1.95; }
@media (max-width: 640px) {
  .wid-item, .wid-item:nth-child(even) { flex-direction: column; align-items: flex-start; gap: 6px; }
  .wid-num { width: 132px; height: 132px; margin-left: -6px; }
  .wid-num::before { inset: 16px; border-radius: 24px; }
  .wid-num span { font-size: 40px; }
  .wid-num .ic { right: 16px; top: 10px; font-size: 20px; }
  .wid-item:nth-child(even) .wid-num .ic { left: auto; right: 16px; }
}

/* ---------- WORKS欄の外枠（中身は works.css） ---------- */
.works-showcase { position: relative; }

/* ---------- CONTACT帯 ---------- */
.cb { padding: clamp(24px, 6vw, 72px) 0 clamp(64px, 10vw, 120px); }
.cb-panel {
  position: relative; overflow: hidden; text-align: center; color: var(--c-ink-soft);
  padding: clamp(44px, 8vw, 84px) clamp(20px, 5vw, 60px); border-radius: clamp(28px, 5vw, 48px);
  background: var(--grad-soft);
  box-shadow: 0 28px 50px -30px rgba(110, 79, 214, .55);
}
.cb-panel .sec-head { margin-bottom: 26px; }
.cb-panel .sec-ja { color: var(--c-ink-soft); }
.cb-panel .sec-ja .ic { color: var(--c-pink-deep); }
.cb-panel .btn { margin-top: 30px; }
/* 中身をキラキラより上に載せる。.spk まで relative にすると、キラキラが文字と同じ並びに入って左上に固まり、上に余白ができる */
.cb-panel > :not(.spk) { position: relative; z-index: 1; }
.cb-panel .spk { z-index: 0; }

/* ---------- フッター ---------- */
.site-footer { background: var(--c-lav-soft); padding: 48px 0 34px; border-top: 2px solid var(--c-lav); }
/* フッターのキラキラは文字・ボタンの後ろ（.spk 自身には当てない） */
.site-footer > :not(.spk) { position: relative; z-index: 1; }
.site-footer .spk { z-index: 0; }
.ft-grid { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px 40px; }
.ft-logo img { width: 96px; height: auto; }
.ft-nav { display: flex; flex-wrap: wrap; gap: 6px 26px; justify-content: center; }
.ft-nav a { color: var(--c-head); font-family: var(--f-serif); font-size: 15px; letter-spacing: .1em; padding: 6px 2px; }
.ft-nav a:hover { color: var(--c-purple); }
.ft-sns { display: flex; gap: 10px; }
.ft-sns a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--c-ink); font-size: 20px; box-shadow: inset 0 0 0 1.5px var(--c-lav); transition: transform .25s var(--ease-pop), background .2s, color .2s; }
.ft-sns a:hover { background: var(--c-purple); color: #fff; transform: translateY(-3px) rotate(-6deg); }
.ft-copy { grid-column: 1 / -1; text-align: center; font-family: var(--f-serif); font-size: 12px; letter-spacing: .16em; color: var(--c-ink-soft); padding-top: 14px; border-top: 2px dotted var(--c-lav); }
@media (max-width: 767px) {
  .ft-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
/* 320px幅ではSNSの6個（42px×6＋間10px×5＝302px）が画面から6pxはみ出し、全ページに横スクロールが出ていた */
@media (max-width: 359px) {
  .ft-sns { gap: 6px; }
  .ft-sns a { width: 38px; height: 38px; font-size: 18px; }
}

/* ---------- 動きを止める ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
  .spk { opacity: .8; }
}

/* ---------- マウスカーソル（支給のマイクのドット絵）とキラキラの軌跡 ----------
   静止画: 1コマ目を全要素の cursor に指定（スクリプトが動く前・動きを減らす設定・タッチ端末と兼用の端末）。
   アニメ: common.js が最初のマウス移動で html.cur-anim を付け、GIFをマウスに追従させる
          （CSSの cursor ではGIFが1コマ目で止まるため）。軌跡とキラキラは .cur-trail のcanvasに描く。
   クリック位置はマイクの頭（ハート）の中心 = 48px画像の (36, 20)。管理画面（body.admin）は対象外。 */
body:not(.admin), body:not(.admin) * {
  cursor: url(../assets/img/cursor-mic-48.png) 36 20, auto !important;
  cursor: -webkit-image-set(url(../assets/img/cursor-mic-48.png) 1x, url(../assets/img/cursor-mic-96.png) 2x) 36 20, auto !important;
  cursor: image-set(url(../assets/img/cursor-mic-48.png) 1x, url(../assets/img/cursor-mic-96.png) 2x) 36 20, auto !important;
}
html.cur-anim body:not(.admin), html.cur-anim body:not(.admin) * { cursor: none !important; }
.cur { position: fixed; left: 0; top: 0; z-index: 2147483647; width: 48px; height: 48px; pointer-events: none; opacity: 0; transition: opacity .2s; will-change: transform; }
.cur.is-on { opacity: 1; }
/* 元のGIFは10px単位のドット絵(320px)。48px表示+pixelatedでにじまない */
.cur img { display: block; width: 48px; height: 48px; image-rendering: pixelated; transform-origin: 36px 20px; transition: transform .22s var(--ease-pop); }
.cur.is-down img { transform: scale(.85); transition-duration: .08s; }
.cur-trail { position: fixed; inset: 0; z-index: 2147483646; width: 100%; height: 100%; pointer-events: none; }

/* ---------- TOPのWORKS欄 D. ミュージックプレイヤー（?layout=player / site.json の topWorksLayout） ----------
   背景は --grad-soft、上端は波形（紙色の波を重ねて切り抜く）。中央のカードがプレイヤー、左右は奥に重なる薄いカード。
   カードの位置は top.js が各 .pl-slide の --o（中央からの差。ループ）と data-d（0/1/2+）に書き、動きは CSS の transition。 */
.ws[data-layout="player"] { background: var(--grad-soft); padding-top: clamp(84px, 9vw, 124px); }
.ws[data-layout="player"]::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: clamp(28px, 4vw, 52px); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 48' preserveAspectRatio='none'%3E%3Cpath fill='%23FAF8FF' d='M0 0H720V22Q540 54 360 22T0 22Z'/%3E%3C/svg%3E") repeat-x left top / 720px 100%;
}
.ws[data-layout="player"] .sec-ja { color: var(--c-ink-soft); }
.ws[data-layout="player"] .sec-ja .ic { color: var(--c-pink-deep); }
.pl { position: relative; --pl-w: min(620px, 60vw); --pl-step: calc(var(--pl-w) * 1.04); --pl-reach: calc(var(--pl-w) * 1.44); --pl-aw: 76px; }   /* --pl-reach = 中央から左右のカードの外側の端まで（step + 小カード幅の半分）。矢印の置き場所に使う */
.pl-stage { display: grid; overflow: hidden; padding: 16px 0 34px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.pl-slide {
  grid-area: 1 / 1; justify-self: center; width: var(--pl-w); position: relative;
  --sc: 1; transform: translateX(calc(var(--o, 0) * var(--pl-step) + var(--drag, 0px))) scale(var(--sc));
  transition: transform .5s cubic-bezier(.3, .8, .25, 1), opacity .4s;
}
.pl-stage.is-drag .pl-slide { transition: none; }
.pl-slide[data-d="0"] { z-index: 3; }
.pl-slide[data-d="1"] { z-index: 2; --sc: .8; opacity: .55; }
.pl-slide[data-d="2"] { z-index: 1; --sc: .64; opacity: 0; pointer-events: none; }
.pl-card {
  background: #fff; border-radius: 26px; padding: 14px 16px 14px;
  box-shadow: 0 26px 48px -26px rgba(97, 92, 145, .6), 0 0 0 1px rgba(255, 255, 255, .8);
}
.pl-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-weight: 700; font-size: 17px; line-height: 1.5; color: var(--c-ink); }
.pl-title i { flex: none; font-style: normal; color: var(--c-pink); }
.pl-title a { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pl-title a:hover { color: var(--c-purple); }
.pl-thumb { position: relative; display: block; width: 100%; margin-top: 8px; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--c-lav); }
.pl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pl-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pl-cover { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; }
.pl-bar { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.pl-bar-track { position: relative; flex: 1; height: 6px; border-radius: 999px; background: var(--c-lav); }
.pl-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); border-radius: 999px; background: var(--grad-cta); transition: width .5s cubic-bezier(.3, .8, .25, 1); }
.pl-bar-fill::after { content: ""; position: absolute; right: -6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--c-purple); }
.pl-count { flex: none; font-family: var(--f-serif); font-size: 12px; letter-spacing: .08em; line-height: 1; color: var(--c-ink-soft); }
.pl-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 8px; }
.pl-artist { grid-column: 3; grid-row: 1; min-width: 0; text-align: right; font-size: 13.5px; font-weight: 700; line-height: 1.4; color: var(--c-ink-soft); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pl-ctrl { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 14px; }
.pl-cb { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--c-head); transition: transform .18s var(--ease-pop), background .2s, color .2s; }
.pl-cb svg { width: 20px; height: 20px; fill: currentColor; }
.pl-cb:hover { background: var(--c-lav-soft); color: var(--c-purple); transform: scale(1.08); }
.pl-cb:active { transform: scale(.92); }
.pl-cb.is-main { width: 52px; height: 52px; color: #fff; background: var(--grad-cta); box-shadow: 0 8px 18px -8px rgba(142, 108, 208, .9); }
.pl-cb.is-main:hover { color: #fff; background: var(--grad-cta); }
.pl-cb.is-main svg { width: 22px; height: 22px; }
.pl-hit { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; border-radius: 26px; }
.pl-slide[data-d="0"] .pl-hit { display: none; }
.pl-arrow {
  position: absolute; top: 50%; z-index: 6; display: grid; place-items: center; width: var(--pl-aw); height: var(--pl-aw); margin-top: -56px; border-radius: 50%;
  color: #fff; background: transparent; filter: drop-shadow(0 1px 3px rgba(29, 26, 38, .55)) drop-shadow(0 3px 10px rgba(29, 26, 38, .3));
  transition: transform .2s var(--ease-pop);
}
.pl-arrow svg { width: 34px; height: 34px; fill: none; }
.pl-arrow:hover { transform: scale(1.12); }
.pl-arrow:active { transform: scale(.92); }
.pl-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* 画面の端ではなくカード群の外側に置く。縮小表示で画面が広くなっても矢印がカードから離れない（普段の幅ではカードの外側が画面外になるので従来どおり端に寄る） */
.pl-prev { left: max(clamp(8px, 3vw, 56px), calc(50% - var(--pl-reach) - var(--pl-aw) - 16px)); }
.pl-next { right: max(clamp(8px, 3vw, 56px), calc(50% - var(--pl-reach) - var(--pl-aw) - 16px)); }
.pl-prev svg { transform: scaleX(-1); }
@media (max-width: 767px) {
  .ws[data-layout="player"]::before { background-size: 380px 100%; }
  .pl { --pl-w: 68vw; --pl-step: calc(var(--pl-w) * .9); --pl-reach: calc(var(--pl-w) * 1.3); --pl-aw: 48px; }
  .pl-card { border-radius: 20px; padding: 10px 11px 10px; }
  .pl-title { font-size: 14px; }
  .pl-thumb { border-radius: 12px; }
  .pl-bar { margin-top: 10px; }
  .pl-ctrl { gap: 4px; }
  .pl-cb { width: 34px; height: 34px; }
  .pl-cb.is-main { width: 44px; height: 44px; }
  .pl-artist { font-size: 11.5px; }
  .pl-arrow { margin-top: -40px; }
  .pl-arrow svg { width: 28px; height: 28px; }
  .pl-prev { left: max(4px, calc(50% - var(--pl-reach) - var(--pl-aw) - 16px)); } .pl-next { right: max(4px, calc(50% - var(--pl-reach) - var(--pl-aw) - 16px)); }
  .pl-hit { border-radius: 20px; }
}

/* ---------- 画像の拡大表示（common.js の DP.lightbox / img[data-zoom]） ---------- */
img[data-zoom] { cursor: zoom-in; }   /* カスタムカーソルの !important が優先されるため、公開ページでは既存のカーソルのまま */
.lb {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 56px 64px;
  background: rgba(29, 26, 38, .86); opacity: 0; transition: opacity .2s;
}
.lb.is-on { opacity: 1; }
.lb-fig { display: grid; justify-items: center; gap: 10px; max-width: 100%; max-height: 100%; margin: 0; }
.lb-img { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100svh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 10px; background: #fff; box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .6); }
.lb-cap { max-width: 80ch; text-align: center; font-size: 14px; line-height: 1.6; color: #fff; }
.lb-btn {
  position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  color: var(--c-ink); background: rgba(255, 255, 255, .94); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6); transition: transform .18s var(--ease-pop), background .2s;
}
.lb-btn:hover { transform: scale(1.08); background: #fff; }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { right: 16px; top: 16px; }
.lb-prev { left: 12px; top: 50%; margin-top: -24px; }
.lb-next { right: 12px; top: 50%; margin-top: -24px; }
.lb-prev svg { transform: scaleX(-1); }
.lb-count { position: absolute; left: 0; right: 0; top: 22px; text-align: center; font-family: var(--f-serif); font-size: 13px; letter-spacing: .14em; color: #fff; pointer-events: none; }
html.lb-open, html.lb-open body { overflow: hidden; }
@media (max-width: 767px) {
  .lb { padding: 64px 12px 56px; }
  .lb-btn { width: 42px; height: 42px; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; margin-top: 0; }
  .lb-prev { left: 16px; } .lb-next { right: 16px; }
}
