/* ── Image Theme System ─────────────────────── */

.img-theme-root {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

/* 共通: 下端フェード */
.img-theme-root::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-bg) 0%, transparent 52%);
  pointer-events: none;
  z-index: 100;
}

/* ─ Theme 5: Glass ───────────────────────────── */
.img-theme-5 .it-gl-img {
  position: absolute; inset: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  filter: brightness(0.93) saturate(0.90);
}
.img-theme-5 .it-gl-main {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 24, 0.06);
  backdrop-filter: blur(4px) saturate(115%);
  -webkit-backdrop-filter: blur(4px) saturate(115%);
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%,
    transparent 26%,
    rgba(0,0,0,0.50) 44%,
    black 64%);
  mask-image: linear-gradient(to bottom,
    transparent 0%,
    transparent 26%,
    rgba(0,0,0,0.50) 44%,
    black 64%);
}
.img-theme-5 .it-gl-chip { display: none; }

/* Glass: 店名・キャッチコピー可読性補助 */
[data-img-theme="5"] .biz-name {
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.55),
    0 1px  6px rgba(0, 0, 0, 0.40);
}
[data-img-theme="5"] .biz-catchphrase {
  text-shadow:
    0 1px 10px rgba(0, 0, 0, 0.55),
    0 1px  4px rgba(0, 0, 0, 0.35);
}

.img-theme-5::after {
  background:
    linear-gradient(to top,    color-mix(in srgb, var(--color-bg) 45%, transparent) 0%, transparent 40%),
    linear-gradient(to bottom, rgba(0,0,0,0.18) 0%, transparent 22%);
}

/* ── Editor Thumbnail Overrides ─────────────── */
.editor-it-preview .img-theme-root::after { display: none; }

.editor-it-preview .img-theme-root.img-theme-0 {
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
}
