@charset "UTF-8";

/* =========================================
   フローティングバナー本体の配置と状態
========================================= */
.floating-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 296px;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

@media (max-width: 1300px) {
  .floating-banner {
    bottom: 88px;
  }
}

/* 非表示用のクラス */
.floating-banner.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* =========================================
    バナーのデザイン
========================================= */
/* グラデーション枠線の表現 */
.floating-banner-content {
  display: block;
  background: var(--gradient);
  padding: 3px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-text);
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 上部（白背景部分） */
.floating-banner-body {
  background: #fff;
  border-radius: 5px 5px 0 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
}

/* 「第26回」の枠 */
.floating-banner-number {
  border: 1px solid var(--color_primary);
  color: var(--color_primary);
  border-radius: 4px;
  width: 20px;
  padding: 2px 0;
  text-align: center;
  font-weight: bold;
  font-size: 10px;
  line-height: 1.1;
}

/* イベント名テキスト */
.floating-banner-name {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}
.floating-banner-name span {
  display: block;
  font-size: 11px;
  font-weight: bold;
  margin-top: 2px;
}

/* 下部（日時・ボタンエリア） */
.floating-banner-footer {
  display: flex;
  border-radius: 0 0 5px 5px;
  overflow: hidden; /* 角丸に合わせる */
}

.floating-banner-datetime {
  background: var(--color_gray_light);
  font-size: 10px;
  font-weight: bold;
  flex-grow: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-banner-lead {
  background: var(--color_primary);
  color: var(--color_white);
  padding: 0 4px;
  font-size: 10px;
  font-weight: bold;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

/* =========================================
    装飾画像（リス）と閉じるボタン
========================================= */
.floating-banner-img {
  position: absolute;
  right: -4px;
  top: -8px;
  margin: 0;
  pointer-events: none;
}

.floating-banner-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color_white);
  border: 1px solid var(--color_secondary);
  cursor: pointer;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* バツ印の表現 */
.floating-banner-close span {
  position: absolute;
  width: 8px;
  height: 1px;
  background: var(--color_primary);
}
.floating-banner-close span:first-child {
  transform: rotate(45deg);
}
.floating-banner-close span:last-child {
  transform: rotate(-45deg);
}