@charset "UTF-8";
/* CSS Document */

/* =============================================
   FLOATING BANNER C — クリムゾン × シャンパン
   メイン画像右上に重ねて配置（PC・SP対応）
   ============================================= */

/* ── バナーの親となる #top-main を relative に ── */
#top-main {
  position: relative; /* ★ バナーの基準点 */
  overflow: hidden;   /* バナーのはみ出しを隠す */
}

/* ── バナーラッパー（右上に絶対配置） ── */
#floating-banner {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 100;
  pointer-events: none;
}

/* ── バナーカード本体 ── */
.banner-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  pointer-events: all;

  /* PC: 固定幅で右上にぴったり */
  width: 280px;

  border-radius: 0 0 0 8px; /* 右上は画面角、左下だけ丸める */

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 18px 0;

  background: #1a0505;

  box-shadow: -4px 4px 24px rgba(120,0,0,0.4), -2px 2px 8px rgba(0,0,0,0.3);

  animation: slideInRight 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

@keyframes slideInRight {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.banner-card:hover {
  filter: brightness(1.08);
  box-shadow: -6px 8px 36px rgba(160,0,0,0.5), -2px 4px 12px rgba(0,0,0,0.35);
}
.banner-card:active { transform: scale(0.98); }

/* ── 上下ライン（光沢） ── */
.banner-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(160,20,20,0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 50%, rgba(140,10,10,0.16) 0%, transparent 55%);
  pointer-events: none;
}
.top-line {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #3a0000, #a01010, #e8a0a0, #a01010, #3a0000);
}
.b-bottom-line {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #3a0000, #a01010, #e8a0a0, #a01010, #3a0000);
}

/* ── シマーアニメーション ── */
.shimmer {
  position: absolute; top: 0; left: -80%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,200,200,0.12), transparent);
  animation: shimmer 3.2s ease-in-out 0.8s infinite;
  pointer-events: none;
}
@keyframes shimmer {
  0%        { left: -80%; }
  60%, 100% { left: 120%; }
}

/* ── ヘッダー行（ロゴ＋ストア名） ── */
.top-bar {
  width: 90%;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.logo-text {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  font-weight: 900;
  font-style: italic;
  background: linear-gradient(135deg, #c85050, #f5c0c0, #c85050);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.b-divider {
  width: 1px; height: 14px;
  background: #a04040;
  opacity: 0.5;
}
.store-label {
  font-size: 12px;
  color: #c07070;
  letter-spacing: 0.15em;
  font-weight: 600;
}

/* ── メインコピー ── */
.headline {
  width: 100%;
  text-align: left;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 4px;
}
.headline .line1 { display: block; font-size: 17px; color: #f5eeee; }
.headline .line2 { display: block; font-size: 18px; color: #f5eeee; }
.headline .accent {
  font-size: 22px;
  background: linear-gradient(135deg, #d4a800, #f5e27a, #d4a800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── CTAストリップ ── */
.cta-strip {
  width: calc(100% + 36px);
  margin: 10px -18px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ffe8e8;
  background: linear-gradient(135deg, #5a0808, #9a1010, #d44040, #9a1010, #5a0808);
  transition: filter 0.2s;
}
.banner-card:hover .cta-strip { filter: brightness(1.12); }
.cta-strip .arrow {
  font-size: 15px;
  transition: transform 0.25s ease;
  display: inline-block;
}
.banner-card:hover .cta-strip .arrow { transform: translateX(5px); }

/* ── 閉じるボタン ── */
.close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,100,100,0.3);
  color: #e8a0a0;
  cursor: pointer;
  pointer-events: all;
  transition: background 0.2s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-btn:hover { background: rgba(255,80,80,0.25); }
.close-btn svg { pointer-events: none; }

/* ── 非表示アニメーション ── */
.banner-card.hide {
  animation: slideOutRight 0.35s cubic-bezier(0.4, 0, 1, 1) forwards;
}
@keyframes slideOutRight {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(110%); opacity: 0; }
}

/* =============================================
   スマートフォン対応（768px以下）
   ============================================= */
@media screen and (max-width: 768px) {

  /* SP: 画面幅いっぱいの横長バナーに切り替え */
  #floating-banner {
    position: fixed;    /* SP では画面固定 */
    top: auto;
    bottom: 0;          /* 画面下部に固定 */
    right: 0;
    left: 0;
    width: 100%;
  }

  .banner-card {
    width: 100%;
    border-radius: 8px 8px 0 0; /* 下端がデバイス端なのでフラット、上だけ丸める */
    flex-direction: row;        /* 横並びレイアウト */
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    min-height: unset;
    gap: 10px;

    box-shadow: 0 -4px 24px rgba(120,0,0,0.4), 0 -2px 8px rgba(0,0,0,0.3);

    animation: slideInBottom 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  @keyframes slideInBottom {
    from { transform: translateY(110%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
  }

  .banner-card.hide {
    animation: slideOutBottom 0.35s cubic-bezier(0.4, 0, 1, 1) forwards;
  }
  @keyframes slideOutBottom {
    from { transform: translateY(0);    opacity: 1; }
    to   { transform: translateY(110%); opacity: 0; }
  }

  /* SP: テキストグループ */
  .text-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
  }

  .top-bar { margin-bottom: 4px; }

  .headline .line1 { font-size: 13px; }
  .headline .line2 { font-size: 14px; }
  .headline .accent { font-size: 17px; }
  .headline { margin-bottom: 0; }

  /* SP: CTAは縦ではなく独立ブロック */
  .cta-strip {
    width: auto;
    margin: 0;
    padding: 10px 16px;
    border-radius: 6px;
    flex-shrink: 0;
    font-size: 12px;
    white-space: nowrap;
    background: linear-gradient(135deg, #5a0808, #9a1010, #d44040, #9a1010, #5a0808);
  }

  .close-btn {
    top: 6px;
    right: 6px;
    width: 20px; height: 20px;
  }

  .b-bottom-line { display: none; } /* 下固定時は下ラインを上に */
  .top-line {
    /* SP: 下固定なので上部に赤いラインを表示 */
    top: 0;
  }
}
