/* DARAKUPITE Portfolio WORKS系CSS（TOPのWORKS欄・works.html・work.html）
   トークン・ボタン・見出し部品は style.css のものを使う。ここはWORKS専用の見た目のみ。 */

/* ---------- 共通: 作品カード ---------- */
.wk-card { display: block; position: relative; border-radius: 18px; }
.wk-card:focus-visible { outline-offset: 4px; border-radius: 18px; }
.wk-img { position: relative; display: block; overflow: hidden; border-radius: 18px; aspect-ratio: 16 / 9; background: var(--c-lav); }
.wk-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.wk-card:hover .wk-img img, .wk-card:focus-visible .wk-img img { transform: scale(1.06); }
.wk-cat {
  position: absolute; left: 10px; top: 10px; z-index: 2; padding: 2px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: var(--c-purple); font-size: 12px; font-weight: 700; line-height: 1.7; letter-spacing: .04em;
}
/* ホバー/フォーカスで曲名・アーティスト・ハートが出る */
.wk-over {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 34px 14px 12px;
  color: #fff; background: linear-gradient(0deg, rgba(29, 26, 38, .82) 0, rgba(29, 26, 38, .5) 46%, rgba(29, 26, 38, 0) 100%);
  opacity: 0; transition: opacity .25s;
}
.wk-card:hover .wk-over, .wk-card:focus-visible .wk-over { opacity: 1; }
.wk-title { font-weight: 700; font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wk-artist { font-size: 12.5px; line-height: 1.5; opacity: .92; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.wk-heart {
  position: absolute; right: 12px; top: 12px; z-index: 2; width: 28px; height: 28px; color: var(--c-heart); fill: currentColor;
  filter: drop-shadow(0 2px 6px rgba(29, 26, 38, .35)); transform: scale(0) rotate(-24deg); transition: transform .3s var(--ease-pop);
}
.wk-card:hover .wk-heart, .wk-card:focus-visible .wk-heart { transform: scale(1) rotate(8deg); }
/* タッチ端末ではホバーが無いので、曲名を常に画像下部へ */
@media (hover: none) {
  .wk-over { opacity: 1; padding-top: 44px; }
  .wk-heart { display: none; }
}
/* カードの外側に文字を置く版（ピックアップ・スライダー） */
.wk-cap { display: block; padding: 10px 4px 0; }
.wk-cap .wk-title { font-size: 15px; -webkit-line-clamp: 1; }
.wk-cap .wk-artist { color: var(--c-ink-soft); opacity: 1; }
.wk-card.is-flat .wk-over { display: none; }
.wk-card.is-flat .wk-heart { display: block; }

/* ---------- TOPのWORKS欄 ---------- */
.ws { padding: clamp(72px, 11vw, 132px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.ws .sec-head { margin-bottom: clamp(28px, 5vw, 52px); }
.ws-more { display: flex; justify-content: center; margin-top: clamp(32px, 5vw, 56px); }
/* キラキラはボタンの後ろ（.spk 自身には当てない） */
.ws-more > :not(.spk) { position: relative; z-index: 1; }
.ws-body { min-height: 260px; }
.ws-body:empty::before { content: ""; display: block; height: 260px; }

/* A. ribbon: 2段の無限マーキー（transformのみ・ホバー/フォーカスで停止） */
.rb { display: grid; gap: 16px; }
.rb-row { overflow: hidden; }
.rb-track { display: flex; width: max-content; gap: 16px; padding-right: 16px; animation: rb-l var(--dur, 60s) linear infinite; will-change: transform; }
.rb-row.is-rev .rb-track { animation-name: rb-r; }
.rb-row:hover .rb-track, .rb-row:focus-within .rb-track { animation-play-state: paused; }
.rb .wk-card { flex: none; width: clamp(220px, 24vw, 340px); }
@keyframes rb-l { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes rb-r { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@media (prefers-reduced-motion: reduce) {
  /* 止めたうえで横スクロールで見られるようにする。複製は隠す */
  .rb-row { overflow-x: auto; padding: 6px var(--gutter) 14px; scrollbar-color: var(--c-purple) var(--c-lav-soft); scrollbar-width: thin; }
  .rb-track { width: auto; padding-right: 0; }
  .rb-track [data-dup] { display: none; }
}

/* B. pickup: 最新1本を大きく + 6本 */
.pk-main { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(20px, 3.5vw, 44px); align-items: center; margin-bottom: clamp(20px, 3vw, 32px); }
.pk-main .wk-img { border-radius: 26px; box-shadow: var(--sh-soft); }
.pk-info { display: grid; gap: 10px; justify-items: start; }
.pk-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 14px 2px 10px; border-radius: 999px; background: var(--c-lav-soft); color: var(--c-purple); font-family: var(--f-serif); font-size: 13px; letter-spacing: .14em; }
.pk-badge .ic { color: var(--c-pink); }
.pk-title { color: var(--c-head, #615C91); font-size: clamp(1.5rem, 3.2vw, 2.2rem); line-height: 1.4; font-weight: 700; }
.pk-artist { color: var(--c-ink-soft); font-size: 15px; }
.pk-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--c-ink-soft); }
.pk-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-family: var(--f-serif); font-size: 14px; letter-spacing: .14em; color: var(--c-purple); }
.pk-go .ic { transition: transform .25s var(--ease-pop); }
.pk-main:hover .pk-go .ic { transform: translateX(5px); }
.pk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
@media (max-width: 899px) {
  .pk-main { grid-template-columns: 1fr; }
  .pk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 519px) { .pk-grid { grid-template-columns: 1fr; } }

/* C. slider: スナップ式カルーセル（中央のカードを大きく） */
.sl { position: relative; }
.sl-track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  padding: 26px calc(50% - var(--sl-w, 300px) / 2) 30px; scrollbar-width: none;
}
.sl-track::-webkit-scrollbar { display: none; }
.sl-track:focus-visible { outline-offset: -4px; }
.sl .wk-card { flex: none; width: var(--sl-w, 300px); scroll-snap-align: center; }
.sl .wk-card .wk-img { transform: scale(.84); opacity: .55; transition: transform .45s var(--ease-pop), opacity .3s, box-shadow .3s; }
.sl .wk-card.is-center .wk-img { transform: scale(1); opacity: 1; box-shadow: var(--sh-soft); }
.sl .wk-cap { text-align: center; opacity: 0; transition: opacity .3s; }
.sl .wk-card.is-center .wk-cap { opacity: 1; }
.sl-btn {
  position: absolute; top: calc(50% - 30px); z-index: 3; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: #fff; color: var(--c-purple); box-shadow: var(--sh-bar); transition: transform .18s var(--ease-pop), background .2s, color .2s;
}
.sl-btn:hover { background: var(--c-purple); color: #fff; }
.sl-btn:active { transform: scale(.92); }
.sl-btn .ic { width: 22px; height: 22px; }
.sl-prev { left: max(10px, calc(50% - var(--sl-w, 300px) / 2 - 76px)); }
.sl-next { right: max(10px, calc(50% - var(--sl-w, 300px) / 2 - 76px)); }
.sl-prev .ic { transform: scaleX(-1); }
@media (max-width: 767px) {
  .sl-track { gap: 12px; }
  .sl-btn { top: auto; bottom: 0; width: 44px; height: 44px; }
  .sl-prev { left: 16px; } .sl-next { right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .sl-track { scroll-behavior: auto; } }

/* ---------- works.html ---------- */
.wp { padding-bottom: clamp(56px, 9vw, 110px); }
.wp .sec-head { margin-bottom: clamp(22px, 4vw, 36px); }
.wp-count { margin-top: 8px; font-size: 14px; color: var(--c-ink-soft); }
.wp-count b { font-family: var(--f-serif); font-weight: 400; font-size: 1.5em; color: var(--c-ink); }
.wp-filters { display: grid; gap: 14px; margin-bottom: clamp(20px, 3vw, 30px); }
.wp-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; }
.wp-cat {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 20px; border-radius: 999px;
  font-family: var(--f-serif); font-size: 15px; letter-spacing: .08em; background: var(--c-white); box-shadow: inset 0 0 0 1.5px var(--c-lav);
  transition: transform .18s var(--ease-pop), background .2s, color .2s, box-shadow .2s;
}
.wp-cat:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--c-purple); }
.wp-cat:active { transform: scale(.95); }
.wp-cat[aria-pressed="true"] { background: var(--c-ink); color: #fff; box-shadow: none; }
.wp-cat small { font-family: var(--f-sans); font-size: 11px; font-weight: 700; opacity: .75; }
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 700; background: var(--c-white); color: var(--c-ink); box-shadow: inset 0 0 0 1.5px var(--c-lav);
  transition: transform .18s var(--ease-pop), background .2s, color .2s, box-shadow .2s;
}
.wp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; min-height: 40px; margin-bottom: 14px; }
.wp-hint { font-size: 13px; color: var(--c-ink-soft); }
.wp-clear { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--c-pink-deep); }
.wp-clear .ic { font-size: 14px; }
.wp-clear:hover { background: var(--c-lav-soft); }
.wp.wrap { width: min(var(--maxw-wide), 100% - var(--inset-wide) * 2); }   /* 1840px以下ではヘッダーと同じ幅（それより広い画面では一覧だけ1760pxで止まる） */
.wp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 1500px) { .wp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.wp-grid .wk-card { animation: wk-in .4s ease both; animation-delay: calc(var(--i, 0) * 18ms); }
@keyframes wk-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 999px) { .wp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .wp-grid { grid-template-columns: 1fr; } .wp-cat { padding: 0 16px; } }
.wp-empty { display: grid; justify-items: center; gap: 12px; padding: clamp(40px, 8vw, 80px) 16px; text-align: center; border-radius: 28px; background: var(--c-white); box-shadow: var(--sh-soft); }
.wp-empty .ic { width: 40px; height: 40px; color: var(--c-heart); }
.wp-empty p { font-weight: 700; }
.wp-empty small { font-size: 13px; color: var(--c-ink-soft); font-weight: 500; }

/* ---------- work.html ---------- */
.wd { padding-bottom: clamp(56px, 9vw, 110px); }
.wd-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 13px; color: var(--c-ink-soft); }
.wd-crumb a { font-family: var(--f-serif); letter-spacing: .12em; color: var(--c-purple); }
.wd-crumb a:hover { text-decoration: underline; }
.wd-crumb .ic { font-size: 8px; color: var(--c-pink); }
.wd-crumb span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.wd-stage { width: min(960px, 100%); margin: 0 auto; }
.wd-player { position: relative; overflow: hidden; border-radius: clamp(16px, 3vw, 28px); aspect-ratio: 16 / 9; background: var(--c-ink); box-shadow: var(--sh-soft); }
.wd-player img, .wd-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.wd-play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; cursor: pointer; }
.wd-play::before { content: ""; position: absolute; inset: 0; background: rgba(29, 26, 38, .22); transition: background .25s; }
.wd-play:hover::before, .wd-play:focus-visible::before { background: rgba(29, 26, 38, .06); }
.wd-play:focus-visible { outline-offset: -6px; }
.wd-play-btn {
  position: relative; display: grid; place-items: center; width: clamp(64px, 11vw, 92px); height: clamp(64px, 11vw, 92px); border-radius: 50%;
  color: #fff; background: var(--grad-cta); box-shadow: 0 12px 28px -10px rgba(184, 53, 143, .8); transition: transform .25s var(--ease-pop);
}
.wd-play-btn .ic { width: 42%; height: 42%; margin-left: 6%; }
.wd-play:hover .wd-play-btn { transform: scale(1.1); }
.wd-play:active .wd-play-btn { transform: scale(.94); }
.wd-play-label { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: #fff; font-family: var(--f-serif); font-size: 12px; letter-spacing: .22em; text-shadow: 0 1px 8px rgba(29, 26, 38, .6); }
.wd-still { border-radius: clamp(16px, 3vw, 28px); overflow: hidden; box-shadow: var(--sh-soft); background: var(--c-lav); }
.wd-still img { width: 100%; height: auto; }
.wd-head { width: min(960px, 100%); margin: clamp(24px, 4vw, 40px) auto 0; }
/* キラキラは文字・チップの後ろ（.spk 自身には当てない） */
.wd-head > :not(.spk) { position: relative; z-index: 1; }
.wd-title { color: var(--c-head, #615C91); font-size: clamp(1.5rem, 3.6vw, 2.4rem); line-height: 1.4; font-weight: 700; }
.wd-artist { margin-top: 4px; font-size: 16px; color: var(--c-ink-soft); }
.wd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.wd-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--c-lav-soft); color: var(--c-purple); transition: transform .18s var(--ease-pop), background .2s, color .2s; }
.wd-chip:hover { background: var(--c-purple); color: #fff; transform: translateY(-2px); }
.wd-chip.is-tag::before { content: "#"; margin-right: 2px; color: var(--c-pink-deep); }
.wd-chip.is-tag:hover::before { color: #fff; }
.wd-info, .wd-body { width: min(960px, 100%); margin-inline: auto; }
.wd-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 24px; margin-top: 24px; padding: 20px clamp(16px, 3vw, 26px); border-radius: 22px; background: var(--c-white); box-shadow: inset 0 0 0 1.5px var(--c-lav); }
.wd-info dt { font-family: var(--f-serif); font-size: 12px; letter-spacing: .18em; color: var(--c-pink-deep); line-height: 1.6; }
.wd-info dd { font-size: 15px; line-height: 1.7; }
.wd-credit { margin-top: 22px; }
.wd-h { display: flex; align-items: center; gap: 10px; font-family: var(--f-serif); font-weight: 400; font-size: 1.15rem; letter-spacing: .1em; }
.wd-h .ic { font-size: 12px; color: var(--c-pink); }
.wd-credit ul { margin-top: 8px; display: grid; gap: 2px; font-size: 15px; color: var(--c-ink-soft); }
.wd-yt { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--c-purple); }
.wd-yt:hover { text-decoration: underline; }
.wd-yt .ic { font-size: 20px; }
.wd-shots { width: min(960px, 100%); margin: clamp(32px, 5vw, 52px) auto 0; }
.wd-shots-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.wd-shots-grid img { width: 100%; height: auto; border-radius: 16px; background: var(--c-lav-soft); }
@media (max-width: 599px) { .wd-shots-grid { grid-template-columns: 1fr; } }
.wd-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: min(960px, 100%); margin: clamp(40px, 6vw, 72px) auto 0; }
.wd-nb { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 22px; background: var(--c-white); box-shadow: inset 0 0 0 1.5px var(--c-lav); }
.wd-nb.is-next { flex-direction: row-reverse; text-align: right; grid-column: 2; }
.wd-nb.is-prev { grid-column: 1; }
.wd-nb-img { flex: none; width: clamp(84px, 16vw, 150px); aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: var(--c-lav); }
.wd-nb-img img { width: 100%; height: 100%; object-fit: cover; }
.wd-nb-t { min-width: 0; display: grid; gap: 2px; }
.wd-nb-t em { font-style: normal; font-family: var(--f-serif); font-size: 12px; letter-spacing: .16em; color: var(--c-pink-deep); }
.wd-nb-t b { font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 599px) {
  .wd-nav { grid-template-columns: 1fr; }
  .wd-nb.is-next, .wd-nb.is-prev { grid-column: 1; }
  .wd-nb.is-next { flex-direction: row; text-align: left; }
}
.wd-back { display: flex; justify-content: center; margin-top: clamp(28px, 5vw, 44px); }
.wd-back > :not(.spk) { position: relative; z-index: 1; }
.wd-none { display: grid; justify-items: center; gap: 18px; padding: clamp(40px, 8vw, 90px) 16px; text-align: center; }
.wd-none .ic { width: 44px; height: 44px; color: var(--c-heart); }
.wd-none h1 { font-size: clamp(1.4rem, 3.4vw, 2rem); }
.wd-loading { min-height: 50svh; }

/* ---------- works.html: タグ帯・チェックウィンドウ ---------- */
.wp-main { overflow-x: clip; }   /* 帯の全幅表示(100vw)がスクロールバー幅で横スクロールを出さないように */
.wp .sec-en { color: var(--c-head, #615C91); }
.wp-top > :not(.spk) { position: relative; z-index: 1; }
.wp-top > .wp-filters { z-index: 3; }
.wp-band { width: 100vw; margin-inline: calc(50% - 50vw); background: #DCCBF0; }
.wp-band-in { display: flex; justify-content: center; align-items: center; column-gap: clamp(14px, 2vw, 22px); width: min(var(--maxw-wide), 100% - var(--inset-wide, 24px) * 2); margin-inline: auto; padding: 10px 0; min-height: 64px; }
/* 「タグ＋✓」を1つのまとまりとして帯の中央にそろえる（✓はタグのすぐ右。間隔はタグ同士より少し広め） */
.wp-tags { flex: 0 1 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px clamp(6px, 1.4vw, 12px); margin: 0; padding: 0; list-style: none; min-width: 0; }
.wp-tags li { display: flex; align-items: center; }
/* 白いチップ。ホバー・押下で transform は動かさない（当たり判定が動いて、押している間にカーソルがボタンの外へ出ると click にならず解除できないことがあったため） */
.wp-tag {
  min-height: 40px; padding: 0 clamp(12px, 2vw, 18px); border-radius: 999px; font-size: clamp(15px, 1.4vw + 10px, 20px); font-weight: 700; color: var(--c-head, #615C91); letter-spacing: .02em;
  background: #fff; box-shadow: 0 0 0 2px #fff, 0 3px 8px -4px rgba(70, 50, 130, .35);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.wp-tag:hover { background: #F4ECFB; box-shadow: 0 0 0 2px #F4ECFB, 0 4px 10px -4px rgba(70, 50, 130, .45); }
.wp-tag:active { background: #E9DDF6; box-shadow: 0 0 0 2px #E9DDF6; }
.wp-tag:focus-visible { outline: 3px solid var(--c-head, #615C91); outline-offset: 3px; }
.wp-tag[aria-pressed="true"] { background: var(--c-head, #615C91); color: #fff; box-shadow: 0 0 0 2px var(--c-head, #615C91), 0 3px 8px -4px rgba(70, 50, 130, .5); }
.wp-tag[aria-pressed="true"]:hover { background: #4E4A7B; box-shadow: 0 0 0 2px #4E4A7B, 0 4px 10px -4px rgba(70, 50, 130, .55); }
.wp-tag[aria-pressed="true"]:active { background: #423E6C; box-shadow: 0 0 0 2px #423E6C; }
/* 選択中チップの「×」。押すとそのタグの選択が外れる */
.wp-tag.is-sel { display: inline-flex; align-items: center; gap: 6px; }
.wp-tag-x { width: .8em; height: .8em; flex: none; opacity: .85; }
/* 未選択のときに帯へ出す控えめな誘導（チェックウィンドウを開く） */
.wp-tag-hint { min-height: 40px; padding: 0 8px; font-size: clamp(14px, 1.2vw + 9px, 18px); font-weight: 700; letter-spacing: .04em; color: var(--c-head, #615C91); opacity: .8; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: opacity .2s; }
.wp-tag-hint:hover { opacity: 1; }
.wp-tag-hint:focus-visible { outline: 3px solid var(--c-head, #615C91); outline-offset: 3px; border-radius: 8px; }
.wp-pop-host { position: relative; flex: none; }
.wp-check {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #fff; background: var(--c-head, #615C91);
  box-shadow: 0 6px 14px -8px rgba(29, 26, 38, .6); transition: background-color .2s, box-shadow .2s;
}
.wp-check .ic { width: 24px; height: 24px; }
/* ホバー・押下で transform は動かさない（タグと同じ理由。位置・大きさを変えず、背景と影だけで示す） */
.wp-check:hover { background: #4E4A7B; box-shadow: 0 8px 16px -8px rgba(29, 26, 38, .7); }
.wp-check:active { background: #423E6C; box-shadow: 0 3px 8px -6px rgba(29, 26, 38, .6); }
.wp-check:focus-visible { outline: 3px solid var(--c-head, #615C91); outline-offset: 3px; }
.wp-badge { position: absolute; right: -4px; top: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--c-pink-deep); color: #fff; font-size: 11px; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px #DCCBF0; }
.wp-pop {
  position: absolute; z-index: 10; left: 50%; margin-left: -135px; top: calc(100% + 12px); width: 270px; padding: 14px 16px 16px; border-radius: 20px; background: #fff;
  box-shadow: 0 0 0 2.5px var(--c-head, #615C91), 0 18px 36px -16px rgba(29, 26, 38, .45); animation: wp-pop-in .22s var(--ease-pop) both; transform-origin: top center;
}
@keyframes wp-pop-in { from { opacity: 0; transform: scale(.92) translateY(-6px); } to { opacity: 1; transform: none; } }
.wp-pop[hidden] { display: none; }
.wp-pop-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 700; font-size: 14px; color: var(--c-head, #615C91); }
.wp-pop-x { display: grid; place-items: center; width: 36px; height: 36px; margin: -6px -8px -6px 0; border-radius: 50%; }
.wp-pop-x:hover { background: var(--c-lav-soft); }
.wp-pop-x .ic { width: 16px; height: 16px; }
.wp-opts { display: grid; gap: 2px; max-height: 40svh; overflow-y: auto; }
.wp-opt { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px; border-radius: 12px; cursor: pointer; font-weight: 700; font-size: 15px; }
.wp-opt:hover { background: var(--c-lav-soft); }
.wp-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wp-opt-box { flex: none; width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 2px var(--c-head, #615C91); background: #fff center / 14px no-repeat; transition: background-color .15s; }
.wp-opt input:checked + .wp-opt-box {
  background-color: var(--c-head, #615C91);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.800l4.600 4.600L19 7.400' fill='none' stroke='%23fff' stroke-width='3.600' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.wp-opt input:focus-visible + .wp-opt-box { outline: 3px solid var(--c-pink); outline-offset: 2px; }
.wp-opt-t { flex: 1; }
.wp-opt small { font-size: 12px; color: var(--c-ink-soft); }
.wp-mode { display: flex; margin-top: 10px; padding: 3px; border-radius: 999px; background: var(--c-lav-soft); }
.wp-mode button { flex: 1; min-height: 36px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--c-ink-soft); transition: background .2s, color .2s; }
.wp-mode button[aria-pressed="true"] { background: var(--c-head, #615C91); color: #fff; }
.wp-pclear { display: block; margin: 8px auto 0; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--c-pink-deep); }
.wp-pclear:hover:not(:disabled) { background: var(--c-lav-soft); }
.wp-pclear:disabled { opacity: .4; cursor: default; }
@media (max-width: 599px) {
  /* 折り返すと2行目の頭に空きが出てそろわないため、1行のまま横にスクロールさせる（タグが増えても崩れない）。
     収まるときは中央、収まらないときは先頭から（先頭の li の左 auto マージンは余りがあるときだけ効く。justify-content:center だと先頭が切れて戻れない） */
  .wp-band-in { column-gap: 8px; }
  .wp-tags { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding: 6px 0 6px 6px; scrollbar-width: none; }
  /* 右端のぼかしは、はみ出して横スクロールになるときだけ（JS が is-over を付ける。収まるときは中央にそろえ、ぼかさない） */
  .wp-tags.is-over { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .wp-tags::-webkit-scrollbar { display: none; }
  .wp-tags li { flex: none; }
  .wp-tags li:last-child { padding-right: 12px; }
  .wp-pop-host { position: static; }
  /* スマホ: 下から出るシート */
  .wp-pop { position: fixed; left: 0; right: 0; top: auto; bottom: 0; margin-left: 0 !important; width: auto; border-radius: 24px 24px 0 0; padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); animation-name: wp-sheet-in; transform-origin: bottom; box-shadow: 0 -4px 0 var(--c-head, #615C91), 0 -18px 40px -12px rgba(29, 26, 38, .4); }
  .wp-pop-host.is-open::before { content: ""; position: fixed; inset: 0; z-index: 9; background: rgba(29, 26, 38, .35); }
  .wp-opts { max-height: 36svh; }
}
@keyframes wp-sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- works.html: 作品モーダル ---------- */
.wm-lock { overflow: hidden; }
.wm[hidden] { display: none; }
.wm { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.wm-bg { position: absolute; inset: 0; background: rgba(29, 26, 38, .62); animation: wm-fade .25s ease both; }
.wm-box { position: relative; display: flex; flex-direction: column; width: min(1040px, 100%); max-height: min(92svh, 100%); border-radius: 26px; background: var(--c-white, #fff); box-shadow: 0 30px 70px -24px rgba(29, 26, 38, .7); overflow: hidden; animation: wm-in .32s var(--ease-pop) both; }
.wm-box:focus { outline: none; }
@keyframes wm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wm-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.wm-top { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 20px; border-bottom: 1.5px solid var(--c-lav); }
.wm-pos { font-family: var(--f-serif); font-size: 13px; letter-spacing: .14em; color: var(--c-ink-soft); }
.wm-nav { display: flex; gap: 6px; margin-left: auto; }
.wm-nb, .wm-x { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--c-purple); background: var(--c-lav-soft); transition: background .2s, color .2s, transform .18s var(--ease-pop); }
.wm-nb:hover:not(:disabled), .wm-x:hover { background: var(--c-purple); color: #fff; }
.wm-nb:active, .wm-x:active { transform: scale(.92); }
.wm-nb:disabled { opacity: .35; cursor: default; }
.wm-nb .ic, .wm-x .ic { width: 20px; height: 20px; }
.wm-nb.is-prev .ic { transform: scaleX(-1); }
.wm-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 0 28px; }
.wm-player, .wm-still { position: relative; aspect-ratio: 16 / 9; background: var(--c-ink); }
.wm-player iframe, .wm-player img, .wm-still img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.wm-still { background: var(--c-lav); }
.wm-still img { cursor: zoom-in; }
.wm-info { padding: 22px clamp(18px, 4vw, 36px) 0; }
.wm-ttl { font-size: clamp(1.3rem, 3vw, 1.9rem); line-height: 1.4; font-weight: 700; color: var(--c-head, #615C91); }
.wm-artist { margin-top: 2px; color: var(--c-ink-soft); }
.wm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.wm-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--c-lav-soft); color: var(--c-purple); }
.wm-chip.is-tag::before { content: "#"; margin-right: 2px; color: var(--c-pink-deep); }
.wm-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 20px; margin-top: 16px; padding: 14px 18px; border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--c-lav); }
.wm-dl dt { font-family: var(--f-serif); font-size: 11.5px; letter-spacing: .18em; color: var(--c-pink-deep); }
.wm-dl dd { font-size: 14.5px; line-height: 1.6; }
.wm-credit { margin-top: 16px; }
.wm-credit h3, .wm-shots h3 { font-family: var(--f-serif); font-weight: 400; font-size: 1.05rem; letter-spacing: .1em; }
.wm-credit ul { margin-top: 6px; display: grid; gap: 2px; font-size: 14.5px; color: var(--c-ink-soft); }
.wm-links { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 20px; }
.wm-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--c-purple); }
.wm-link:hover { text-decoration: underline; }
.wm-link .ic { font-size: 20px; }
.wm-link.is-main { padding: 0 22px; border-radius: 999px; color: #fff; background: var(--grad-cta); box-shadow: 0 8px 20px -10px rgba(184, 53, 143, .7); }
.wm-link.is-main:hover { text-decoration: none; transform: translateY(-2px); }
.wm-shots { margin-top: 26px; padding: 0 clamp(18px, 4vw, 36px); }
.wm-shots-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.wm-shots-grid img { width: 100%; height: auto; border-radius: 14px; background: var(--c-lav-soft); cursor: zoom-in; }
@media (max-width: 767px) {
  /* スマホ: 全画面に近いシート。動画は横幅いっぱい */
  .wm { padding: 28px 0 0; place-items: end center; }
  .wm-box { width: 100%; max-height: 100%; height: 100%; border-radius: 22px 22px 0 0; }
  .wm-shots-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .wm-bg, .wm-box, .wp-pop { animation: none; } }
