/* ==========================================================
  グランサポート 追従バナー（プランA：王道シンプル）
  - PCサイト右下に固定表示
  - サイズ：200×180px 前後（中身でわずかに変動）
  ========================================================== */

.gs-banner-wrap {
  /* 右下固定 */
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    opacity 0.65s ease,
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.65s ease;
}

.gs-banner-wrap.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.gs-banner {
  /* 箱の基本形 */
  position: relative;
  display: block;
  width: 200px;
  padding: 18px 16px 16px;
  background: linear-gradient(180deg, #1f335a 0%, #142141 100%);
  color: #ffffff;
  border-radius: 14px;
  text-decoration: none;
  overflow: hidden;

  /* 浮遊感のある影 */
  box-shadow:
    0 14px 30px -10px rgba(10, 20, 45, 0.45),
    0 2px 6px rgba(10, 20, 45, 0.25);

  /* ホバー時のアニメーション */
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;

  /* タップ時のハイライト抑制 */
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.gs-banner__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0;
  line-height: 1;
  border: 0;
  color: transparent;
  background-color: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.gs-banner__close::before {
  content: "\00d7";
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
}

.gs-banner__close:hover,
.gs-banner__close:focus-visible {
  background-color: rgba(255, 255, 255, 0.24);
  outline: none;
}

.gs-banner:hover {
  box-shadow:
    0 22px 40px -12px rgba(10, 20, 45, 0.55),
    0 3px 8px rgba(10, 20, 45, 0.3);
}

/* ロゴ画像 */
.gs-banner__logo {
  display: block;
  width: 100%;
  height: 116px;
  margin: 0 auto 12px;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

/* 「詳細はこちら」ボタン（アウトライン） */
.gs-banner__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

/* ホバーで白塗り反転 */
.gs-banner:hover .gs-banner__cta {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #1a2b4a;
}

/* 矢印アイコン */
.gs-banner__arrow {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.gs-banner:hover .gs-banner__arrow {
  transform: translateX(3px);
}

/* ==========================================================
  991.98px以下は下部固定の横長レイアウト
  （ロゴと「詳細はこちら」を横並び）
  ========================================================== */
@media (max-width: 991.98px) {
  .gs-banner-wrap {
    left: auto;
    right: 12px;
    width: calc((100vw - 24px) / 2);
    max-width: 180px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    transform: translateY(20px);
  }

  .gs-banner {
    width: 100%;
    min-height: 80px;
    padding: 10px 36px 10px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
  }

  .gs-banner__close {
    top: 4px;
    right: 4px;
    transform: none;
    width: 22px;
    height: 22px;
    background-color: rgba(255, 255, 255, 0.16);
  }

  .gs-banner__logo {
    width: 48px;
    max-width: none;
    flex: 0 0 48px;
    height: auto;
    margin: 0;
  }

  .gs-banner__cta {
    margin-left: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 6px 8px;
    font-size: 10px;
    letter-spacing: 0.02em;
    gap: 3px;
  }

  .gs-banner__arrow {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
  }
}
