/* ════════════════════════════════════
   Works パネル
════════════════════════════════════ */
.works-panel {
  position: fixed; inset: 0;
  background: var(--bg, #fff);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.08);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 15;
}
.works-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.works-panel.open #scene3d,
.works-panel.open #worksInputLayer {
  pointer-events: auto;
}

/* browse / index — explore と完全独立（scroll ルート1枚・transform なし） */
.works-list-shell {
  position: fixed;
  inset: 0;
  z-index: 44;
  background: var(--bg, #fff);
  visibility: hidden;
  pointer-events: none;
}
.works-list-shell.open {
  visibility: visible;
  pointer-events: auto;
}
.works-list-scroll {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: none;
}
.works-list-scroll::-webkit-scrollbar { display: none; }

/* Works 閉じるボタン */
#worksCloseBtn {
  position: fixed;
  right: var(--index-edge-x);
  top: var(--index-edge-y);
  z-index: 60;
  width: 1.4rem;
  height: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem; font-weight: 300; line-height: 1;
  color: var(--text-main); cursor: pointer;
  user-select: none;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  transform: rotate(45deg);
}
#worksCloseBtn.visible {
  opacity: 1; pointer-events: auto;
}
body.works-lightbox-open #worksCloseBtn.visible {
  z-index: 204;
}
body.works-lightbox-open #mlbClose {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 204;
  pointer-events: auto;
  transform: translateX(-50%);
}
#dummyPageCloseBtn {
  position: fixed;
  right: var(--index-edge-x);
  top: var(--index-edge-y);
  z-index: 60;
  width: 1.4rem;
  height: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem; font-weight: 300; line-height: 1;
  color: var(--text-main); cursor: pointer;
  user-select: none;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  transform: rotate(45deg);
}
body.log-open #dummyPageCloseBtn {
  opacity: 1;
  pointer-events: auto;
}

/* 3Dシーンコンテナ */
#scene3d {
  position: absolute; inset: 0;
  perspective: 900px;
  perspective-origin: 50% 50%;
  overflow: hidden;
  pointer-events: none;
  cursor: grab;
  touch-action: none;
  overscroll-behavior: none;
}
#scene3d:active { cursor: grabbing; }

#worksInputLayer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  cursor: grab;
  touch-action: none;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}
.works-panel.open #worksInputLayer {
  pointer-events: auto;
}
#worksInputLayer:active {
  cursor: grabbing;
}

#canvas3d {
  position: absolute;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
  touch-action: none;
  overscroll-behavior: none;
}

.work-card {
  position: absolute;
  cursor: default;
  user-select: none;
  pointer-events: none;
  touch-action: none;
}
.work-card img,
.work-card video {
  display: block;
  width: auto; height: auto;
  max-width: 450px; max-height: 600px;
  object-fit: cover;
  -webkit-user-drag: none;
  filter: none;
  transform: scale(1);
  transition: filter 0.32s ease, opacity 0.42s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.work-card.focus-reveal img,
.work-card.focus-reveal video {
  opacity: 0;
  filter: blur(6px);
  transform: scale(1.02);
}
.work-card.focus-reveal.focus-reveal-ready img,
.work-card.focus-reveal.focus-reveal-ready video {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}
.work-card.flicker-color img,
.work-card.flicker-color video,
.work-card-bg.flicker-color img {
  filter: saturate(1.08) brightness(1.02);
  transform: scale(1.018);
}
.work-card.dim { opacity: 0.07; pointer-events: none; }

.work-card-bg { pointer-events: none; cursor: default; }
.work-card-bg img {
  max-width: 390px; max-height: 510px; pointer-events: none;
  filter: none;
  transform: scale(1);
  transition: filter 0.18s ease, transform 0.22s ease;
}
.works-panel.landing .work-card-bg.front-hero img {
  max-width: 480px;
  max-height: 630px;
  filter: brightness(1.03);
  transform: scale(1.08);
}
.works-panel.landing .work-card-bg:not(.front-hero) img {
  opacity: 0.82;
}

#worksDisplayToggle {
  display: contents;
}
.works-display-toggle-bar {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 62;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  width: max-content;
  max-width: calc(100vw - 32px);
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity 0.45s ease 0.05s, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.05s;
}
body.works-ui-open .works-display-toggle-bar {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
body.works-ui-open .works-display-toggle-bar button,
body.works-ui-open #worksDisplayToggle button {
  pointer-events: auto;
}
.works-display-toggle-bar button {
  pointer-events: none;
}
body.works-display-browse.works-landing:not(.works-lightbox-open) .works-display-toggle-bar {
  opacity: 1;
}
body.works-display-index.works-landing:not(.works-lightbox-open) .works-display-toggle-bar {
  opacity: 1;
}
#worksDisplayToggle button {
  appearance: none;
  border: none;
  background: none;
  padding: 0.08em 0.12em;
  margin: 0;
  font: inherit;
  color: var(--text-main);
  opacity: 0.24;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.28s ease;
  text-shadow: none;
  line-height: 1;
  white-space: nowrap;
}
#worksDisplayToggle .works-toggle-sep {
  color: var(--text-main);
  opacity: 0.24;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
#worksDisplayToggle button:hover {
  opacity: 0.72;
}
#worksDisplayToggle button.active {
  opacity: 1;
}
#worksDisplayToggle button.active:hover {
  opacity: 1;
}

#worksIndexView,
#worksBrowseView {
  display: none;
}

.works-index-scroll {
  padding: 0 40px 120px;
}
.works-index-scroll ul.works-list {
  position: relative;
  left: auto;
  top: auto;
  width: min(520px, calc(100vw - 80px));
  max-height: none;
  overflow: visible;
  margin: 0;
}
.works-index-scroll ul.works-list li {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

ul.works-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85em;
  line-height: 1;
  text-align: left;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 400;
}
ul.works-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45em;
  padding: 0.45em 0;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s ease, color 0.2s ease;
  color: var(--text-main);
  letter-spacing: 0.02em;
  font-family: inherit;
  font-weight: inherit;
  line-height: 1;
}
ul.works-list li:hover { color: var(--text-main); }
body.works-display-index ul.works-list li {
  opacity: 1;
  color: var(--text-main);
}
body.works-display-index ul.works-list li:hover {
  opacity: 1;
  color: var(--text-main);
}
ul.works-list li.dim    { opacity: 0.12; }
ul.works-list li.active { opacity: 1; color: var(--text-main); }
.work-title-text,
.work-index-meta {
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: 1;
  letter-spacing: 0.02em;
  color: inherit;
}
.work-title-text {
  flex: 0 1 auto;
  min-width: 0;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.works-display-index .work-index-row {
  display: inline-flex;
  align-items: baseline;
  max-width: 100%;
}
body.works-display-index .work-index-meta {
  flex: 0 0 auto;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transform: translateX(-0.45em);
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition:
    max-width 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.38s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    margin-left 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  margin-left: 0;
}
@media (hover: hover) and (pointer: fine) {
  body.works-display-index ul.works-list li:hover .work-index-meta,
  body.works-display-index ul.works-list li.active .work-index-meta {
    max-width: 16em;
    opacity: 1;
    transform: translateX(0);
    margin-left: 0.45em;
  }
}
/* Works スクロール限界ブラー */
#worksBlur {
  position: fixed; inset: 0;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  pointer-events: none;
  z-index: 46;
  opacity: 0;
  transition: opacity 0.4s ease;
}
#worksBlur.visible {
  opacity: 1;
  pointer-events: none;
}
#worksBlur.blur-in {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#worksBlurText {
  position: fixed;
  font-family: Helvetica, Arial, sans-serif;
  font-size: var(--cursor-label-size);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--accent, #d62828);
  pointer-events: none;
  white-space: nowrap;
  transform: translate(16px, -1.2em);
  z-index: 47;
  max-width: calc(100vw - 32px);
  opacity: 0;
}
#worksBlurText.show {
  animation: scrollHintBlink 1.1s step-end 3;
}
#dummyPageCursorText {
  position: fixed;
  font-family: Helvetica, Arial, sans-serif;
  font-size: var(--cursor-label-size);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--accent, #d62828);
  pointer-events: none;
  white-space: nowrap;
  transform: translate(16px, -1.2em);
  z-index: 47;
  max-width: calc(100vw - 32px);
  opacity: 0;
}
body.log-open #dummyPageCursorText {
  opacity: 1;
}

#scrollHint {
  position: fixed;
  left: 50%;
  top: 66%;
  font-family: Helvetica, Arial, sans-serif;
  font-size: var(--cursor-label-size); font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--accent, #d62828); pointer-events: none;
  opacity: 0;
  z-index: 47;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  max-width: calc(100vw - 32px);
}
#scrollHint.show {
  animation: scrollHintBlink 1.1s step-end 3;
}
#scrollHint.hidden { opacity: 0; animation: none; }

@keyframes scrollHintBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Lightbox */
#mobileLightbox {
  display: none; position: fixed; inset: 0;
  z-index: 200; background: var(--bg, #fff);
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s ease;
}
#mobileLightbox.active  { display: flex; }
#mobileLightbox.visible { opacity: 1; }
#mobileLightbox.instant-open {
  transition: none;
}
#mlbInner {
  position: relative; width: 100vw; height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px 24px 64px;
}
#mlbStage {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}
#mlbMediaWrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}
.mlb-media-center {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
}
#mlbImg,
#mlbVideo {
  display: block; max-width: 100%; max-height: var(--mobile-lightbox-media-max-height, calc(100vh - 100px));
  width: auto; height: auto; object-fit: contain;
  transition: opacity 0.32s ease, transform 0.36s cubic-bezier(0.22, 1, 0.36, 1); filter: grayscale(0%);
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}
#mlbVideo {
  background: transparent;
}
#mlbClose.mlb-close-btn {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.35em 0.5em;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1em;
  font-weight: inherit;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text-main);
  cursor: pointer;
  z-index: 201;
  display: none;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}
#mlbClose.mlb-close-btn:hover {
  opacity: 0.6;
}
#mlbClose.mlb-close-btn .index-ext {
  margin-left: 1ch;
}
#mlbCaption {
  display: none;
  pointer-events: auto;
}
#mlbCaption[hidden] {
  display: none !important;
}

/* ── Lightbox caption (shared) ── */
.mlb-caption-stack {
  display: grid;
  grid-template-columns: minmax(0, max-content);
}
.mlb-caption-title-row {
  grid-column: 1;
  justify-self: stretch;
  font-size: 0.9em;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--text-main);
}
.mlb-caption-heading {
  display: inline;
}
.mlb-caption-more {
  display: inline;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0 0 0 0.45em;
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.mlb-caption-more:hover {
  opacity: 0.6;
}
.mlb-caption-more-expanded {
  display: none;
}
.mlb-caption-more-collapsed {
  display: inline;
}
#mlbCaption.is-expanded .mlb-caption-more-collapsed,
#mobileLightbox.caption-expanded .mlb-caption-more-collapsed {
  display: none;
}
#mlbCaption.is-expanded .mlb-caption-more-expanded,
#mobileLightbox.caption-expanded .mlb-caption-more-expanded {
  display: inline;
}
.mlb-caption-details {
  grid-column: 1;
  justify-self: stretch;
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  text-align: left;
  pointer-events: none;
  transition:
    max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    margin-top 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
#mlbCaption.is-expanded .mlb-caption-details {
  margin-top: 1.45em;
  opacity: 1;
  pointer-events: auto;
}
.mlb-caption-details .mlb-caption-field,
.mlb-caption-details .mlb-caption-line,
.mlb-caption-details .mlb-caption-footer,
.mlb-caption-details .mlb-caption-rule {
  font-family: Garamond, "Apple Garamond", "EB Garamond", "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.9em;
  line-height: 1.45;
  color: var(--text-main);
}
.mlb-caption-details .mlb-caption-field {
  margin: 0 0 0.08em;
}
.mlb-caption-details .mlb-caption-label {
  font: inherit;
}
.mlb-caption-details .mlb-caption-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.mlb-caption-details .mlb-caption-rule {
  margin: 0.12em 0 0;
}
.mlb-caption-details .mlb-caption-field:last-of-type,
.mlb-caption-details .mlb-caption-line:last-of-type {
  margin-bottom: 0;
}
#mlbCaption p {
  margin: 0 0 0.12em;
  font-size: 1em;
  line-height: 1.45;
  color: var(--text-main);
}
#mlbCaption .mlb-caption-rule {
  margin: 0.08em 0;
}
#mlbCaption p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  #mobileLightbox.active .mlb-media-center {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  #mobileLightbox.has-caption #mlbInner {
    position: relative;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    height: 100%;
    min-height: 100dvh;
    box-sizing: border-box;
    --mlb-mobile-stage-top: max(44px, env(safe-area-inset-top));
    --mlb-mobile-stage-bottom: max(20px, env(safe-area-inset-bottom));
    padding:
      var(--mlb-mobile-stage-top)
      var(--index-edge-x, 20px)
      calc(var(--index-footer-bottom, 20px) + 2.8em + env(safe-area-inset-bottom, 0px));
  }
  #mobileLightbox.has-caption #mlbStage {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 0;
    pointer-events: none;
  }
  #mobileLightbox.has-caption #mlbStage #mlbImg,
  #mobileLightbox.has-caption #mlbStage #mlbVideo,
  #mobileLightbox.has-caption #mlbStage #mlbCaption,
  #mobileLightbox.has-caption #mlbStage #mlbCaption *,
  #mobileLightbox.has-caption #mlbStage #mlbCaptionTitle,
  #mobileLightbox.has-caption #mlbStage #mlbCaptionTitle * {
    pointer-events: auto;
  }
  #mobileLightbox.has-caption #mlbMediaWrap {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    min-height: 0;
    pointer-events: auto;
  }
  #mobileLightbox.has-caption .mlb-media-center {
    flex: 0 1 auto;
    min-height: 0;
    width: 100%;
    position: relative;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  #mobileLightbox.has-caption.caption-expanded .mlb-media-center {
    overflow: hidden;
    isolation: isolate;
  }
  #mobileLightbox.has-caption .mlb-media-center #mlbImg,
  #mobileLightbox.has-caption .mlb-media-center #mlbVideo {
    flex: 0 0 auto;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(
      100dvh
      - var(--mlb-mobile-stage-top)
      - var(--mlb-mobile-stage-bottom)
      - 3.5em
    );
    transition:
      opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      filter 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
  #mobileLightbox.has-caption.caption-expanded .mlb-media-center #mlbImg,
  #mobileLightbox.has-caption.caption-expanded .mlb-media-center #mlbVideo {
    opacity: 0.03;
    pointer-events: none;
    filter: blur(28px);
    transform: none;
  }
  #mobileLightbox.has-caption .mlb-media-center #mlbCaption {
    display: none;
    pointer-events: none;
  }
  #mobileLightbox.has-caption.caption-expanded .mlb-media-center #mlbCaption {
    display: flex;
    flex-direction: column;
    position: absolute;
    inset: 0;
    z-index: 2;
    margin: 0;
    padding: 0.85em 0.9em;
    box-sizing: border-box;
    overflow: hidden;
    pointer-events: none;
    background: color-mix(in srgb, var(--bg, #fff) 42%, transparent);
  }
  #mobileLightbox.has-caption.caption-expanded .mlb-media-center #mlbCaption .mlb-caption-details {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-height: none;
    margin-top: 0;
    opacity: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: none;
    pointer-events: auto;
    transition: none;
    transform-origin: left top;
    animation: mlb-caption-pop 0.14s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  @keyframes mlb-caption-pop {
    from {
      opacity: 0;
      transform: scale(0.96) translateY(5px);
    }
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }
  #mobileLightbox.has-caption.caption-expanded .mlb-media-center #mlbCaption .mlb-caption-details::-webkit-scrollbar {
    display: none;
  }
  #mlbCaptionTitle {
    flex: 0 0 auto;
    width: 100%;
    padding-top: 0.55rem;
    color: var(--text-main);
    line-height: 1.45;
    letter-spacing: 0.02em;
  }
  #mlbCaptionTitle[hidden] {
    display: none !important;
  }
  #mobileLightbox.has-caption #mlbCaptionTitle .mlb-caption-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75em;
    width: 100%;
    white-space: normal;
    text-align: left;
    overflow-wrap: anywhere;
  }
  #mobileLightbox.has-caption #mlbCaptionTitle .mlb-caption-heading {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
  }
  #mobileLightbox.has-caption #mlbCaptionTitle .mlb-caption-more {
    flex: 0 0 auto;
    order: -1;
    margin: 0;
  }
  #mlbClose {
    position: fixed;
    z-index: 202;
  }
}

@media (min-width: 769px) {
  #mobileLightbox.has-caption #mlbCaption:not([hidden]) {
    display: block;
    position: fixed;
    right: 40px;
    bottom: calc(40px + 1.55em + 10px);
    width: auto;
    max-width: min(480px, 42vw);
    max-height: calc(100vh - 80px);
    overflow: visible;
    z-index: 201;
    color: var(--text-main);
    line-height: 1.45;
    letter-spacing: 0.02em;
    pointer-events: auto;
  }
  .mlb-caption-stack {
    width: max-content;
    max-width: min(480px, 42vw);
  }
  .mlb-caption-title-row {
    white-space: nowrap;
    text-align: right;
  }
  .mlb-caption-details {
    width: 0;
    min-width: 0;
    max-width: min(480px, 42vw);
  }
  #mlbCaption.is-expanded .mlb-caption-details {
    width: 100%;
    min-width: 100%;
    overflow-y: auto;
    scrollbar-width: none;
  }
  #mlbCaption.is-expanded .mlb-caption-details::-webkit-scrollbar {
    display: none;
  }
}

/* ═══ Browse display mode ═══ */
.works-browse-scroll {
  padding: var(--works-browse-scroll-top, 72px) 40px 120px;
}
body.works-display-browse .works-browse-scroll {
  padding-top: var(--works-browse-scroll-top, calc(40px + 2em + 12.5em));
}
.works-browse-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(10px, 1.4vw, 16px);
  align-items: start;
}
.works-browse-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vw, 16px);
}
.works-browse-row {
  padding: 0;
  margin: 0;
  background: #f2f2f2;
  cursor: pointer;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.25s ease;
  user-select: none;
}
.works-browse-row.dim { opacity: 0.42; }
.works-browse-row.active { opacity: 1; }
.works-browse-media {
  pointer-events: none;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(0%);
  transition: opacity 0.2s ease;
  will-change: transform;
}
.works-browse-row:hover .works-browse-media {
  opacity: 0.92;
}

/* browse は一覧閲覧用 — landing の薄さ・ブラー感はかけない */
body.works-display-browse .works-browse-row {
  filter: none;
}
body.works-lightbox-open .works-display-toggle-bar {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.works-lightbox-open #worksIndexPanel,
body.works-lightbox-open #worksBrowsePanel {
  visibility: hidden;
}
/* 拡大時 — 上段テキスト帯・時計は PC 同様くっきり、他 UI は薄くブラー */
body.works-lightbox-open #indexAbout,
body.works-lightbox-open #digital-clock {
  opacity: 1;
  filter: none;
  visibility: visible;
  pointer-events: none !important;
  z-index: 203;
  transition: opacity 0.45s ease, filter 0.45s ease;
}
body.works-lightbox-open #textListWrap,
body.works-lightbox-open #dummyPageListWrap {
  opacity: 0.5;
  filter: blur(5px);
  pointer-events: none !important;
  z-index: 201;
  transition: opacity 0.45s ease, filter 0.45s ease;
}
body.works-lightbox-open #centerPlus,
body.works-lightbox-open .satellite-plus,
body.works-lightbox-open .dummy-plus {
  opacity: 0.34;
  filter: blur(5px);
  pointer-events: none !important;
  z-index: 201;
  transition: opacity 0.45s ease, filter 0.45s ease;
}

@media (max-width: 768px) {
  .works-index-scroll {
    padding-left: var(--index-edge-x, 20px);
    padding-right: var(--index-edge-x, 20px);
    padding-bottom: calc(var(--index-footer-bottom, 20px) + 96px);
  }
  .works-browse-scroll {
    padding-left: var(--index-edge-x, 20px);
    padding-right: var(--index-edge-x, 20px);
  }
  body.works-display-index .work-index-row {
    flex-wrap: wrap;
    align-items: baseline;
    row-gap: 0.12em;
    max-width: 100%;
  }
  body.works-display-index .work-title-text {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    opacity: 1;
    color: var(--text-main);
  }
  body.works-display-index ul.works-list li,
  body.works-display-index ul.works-list li.dim,
  body.works-display-index ul.works-list li.active,
  body.works-display-index ul.works-list li:hover {
    opacity: 1;
    color: var(--text-main);
  }
  body.works-display-index .work-index-meta {
    opacity: 1;
    color: var(--text-main);
  }
}

@media (hover: none) {
  body.works-display-index ul.works-list li .work-index-meta {
    max-width: 16em;
    opacity: 1;
    transform: none;
    margin-left: 0.35em;
    color: var(--text-main);
  }
}

@media (max-width: 768px) {
  .works-browse-scroll {
    padding: var(--works-browse-scroll-top, 64px) var(--index-edge-x, 20px) calc(var(--index-footer-bottom, 20px) + 120px);
  }
  body.works-display-browse .works-browse-scroll {
    padding-top: var(--works-browse-scroll-top, calc(20px + 2em + 14em));
  }
  .works-browse-cols {
    grid-template-columns: 1fr;
    gap: clamp(10px, 1.4vw, 16px);
  }
  .works-browse-works { order: 1; }
  .works-browse-photos { order: 2; }
}

