﻿.fg7-theme .fg7-ad {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  margin-top: var(--fg7-sp-6);
  margin-bottom: var(--fg7-sp-6);
}

.fg7-theme .fg7-ad--top {
  margin-top: var(--fg7-sp-4);
  margin-bottom: var(--fg7-sp-4);
}

.fg7-theme .fg7-ad--strip {
  margin-top: var(--fg7-sp-8);
  margin-bottom: var(--fg7-sp-4);
}

.fg7-theme .fg7-ad--list .bst-list-banners,
.fg7-theme .fg7-ad--list ul {
  width: 100%;
  margin: 0;
}

.fg7-theme .fg7-ad--scroll {
  padding-top: var(--fg7-sp-2);
  padding-bottom: var(--fg7-sp-2);
  overflow: visible;
}

.fg7-theme .fg7-scroll-wrapper {
  width: 100%;
  overflow: visible;
  position: relative;
  mask-image: none;
  -webkit-mask-image: none;
}

.fg7-theme .fg7-scroll-track {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  animation: none !important;
  transform: none !important;
  will-change: auto;
}

.fg7-theme .fg7-scroll-group {
  display: flex;
  width: 100%;
  flex: 1 1 100%;
  flex-wrap: wrap;
  gap: var(--fg7-sp-4);
  padding: var(--fg7-sp-3) 0;
}

.fg7-theme .fg7-scroll-group[aria-hidden="true"] {
  display: none;
}

.fg7-theme .fg7-scroll-group > a {
  flex: 0 0 auto;
  width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--fg7-sp-2);
  text-decoration: none;
  color: var(--fg7-text-mute, #a1a1aa);
}

.fg7-theme .fg7-scroll-group > a > img {
  width: 64px;
  height: 64px;
  display: block;
  object-fit: fill;
  border-radius: var(--fg7-r-sm);
  background: var(--fg7-surface-2);
}

.fg7-theme .fg7-scroll-label {
  font-size: 12px;
  line-height: 1.2;
  max-width: 96px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 767px) {
  .fg7-theme .fg7-scroll-group {
    gap: var(--fg7-sp-2);
  }

  .fg7-theme .fg7-scroll-group > a {
    width: calc((100% - (var(--fg7-sp-2) * 3)) / 4);
    gap: var(--fg7-sp-1);
  }

  .fg7-theme .fg7-scroll-group > a > img {
    width: min(72px, 100%);
    height: min(72px, calc((100vw - 56px) / 4));
  }

  .fg7-theme .fg7-scroll-label {
    max-width: 100%;
    font-size: 11px;
  }
}

.fg7-theme .fg7-card--ad {
  position: relative;
  display: block;
  background: var(--fg7-surface-1);
  border: 1px solid var(--fg7-border);
  border-radius: 0;
  overflow: visible;
}

.fg7-theme .fg7-card--ad .fg7-card__cover {
  border-radius: 0;
  aspect-ratio: var(--ad-slot-list-ar-pc);
}

@media (max-width: 767px) {
  .fg7-theme .fg7-card--ad .fg7-card__cover {
    aspect-ratio: var(--ad-slot-list-ar-mobile);
  }
}

.fg7-theme .fg7-card--ad .fg7-card__cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  border-radius: 0;
}

.fg7-theme .fg7-card--ad .fg7-card__badge--ad {
  position: absolute;
  top: var(--fg7-sp-2);
  right: var(--fg7-sp-2);
  background: var(--fg7-accent);
  color: var(--fg7-accent-ink, #1a1408);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 0;
  z-index: 2;
  pointer-events: none;
}

.fg7-theme .adspop .popup-picture,
.fg7-theme .adspop .application-list {
  overflow: visible;
}

.fg7-theme .adspop img[data-src] {
  opacity: 1;
}

.fg7-theme .fg7-app-float {
  position: fixed;
  top: 0;
  left: 0;
  z-index: calc(var(--fg7-z-toast) + 1);
  width: 94px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  will-change: transform;
}

.fg7-theme .fg7-app-float--moving {
  opacity: 1;
}

.fg7-theme .fg7-app-float[hidden] {
  display: none;
}

.fg7-theme .fg7-app-float__link {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  color: var(--fg7-text);
  font-family: var(--fg7-font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.fg7-theme .fg7-app-float__link:hover {
  color: var(--fg7-accent);
}

.fg7-theme .fg7-app-float__link img {
  display: block;
  width: 94px;
  height: 94px;
  border-radius: 0;
  background: var(--fg7-surface-2);
  object-fit: fill;
}

.fg7-theme .fg7-app-float__close {
  position: absolute;
  top: -12px;
  right: -10px;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  background: var(--fg7-blue);
  box-shadow: var(--fg7-shadow-1);
  color: #fff;
  font-size: 17px;
  line-height: 1;
}

.fg7-theme .fg7-float-banner {
  position: fixed;
  right: var(--fg7-sp-5);
  bottom: 78px;
  width: min(180px, calc(100vw - 32px));
  aspect-ratio: 1 / 1;
  z-index: var(--fg7-z-toast);
}

.fg7-theme .fg7-float-banner__link {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  opacity: 1;
  transition: opacity 260ms ease;
}

.fg7-theme .fg7-float-banner__link--switching {
  opacity: .18;
}

.fg7-theme .fg7-float-banner__link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
}

.fg7-theme .fg7-float-banner__close {
  position: absolute;
  top: -18px;
  right: -14px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--fg7-bg-elev);
  color: var(--fg7-text);
  border: 1px solid var(--fg7-border-hi);
  box-shadow: var(--fg7-shadow-1);
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 767px) {
  .fg7-theme .fg7-app-float {
    width: 82px;
    padding: 0;
  }

  .fg7-theme .fg7-app-float__link img {
    width: 82px;
    height: 82px;
  }

  .fg7-theme .fg7-app-float__close {
    top: -12px;
    right: -10px;
    width: 28px;
    height: 28px;
  }

  .fg7-theme .fg7-float-banner {
    right: var(--fg7-sp-4);
    bottom: 72px;
    width: min(156px, calc(100vw - 32px));
  }

  .fg7-theme .fg7-float-banner__close {
    top: -20px;
    right: -12px;
    width: 44px;
    height: 44px;
  }
}
