/*
 * Custom Announcement Bar (yoiemon)
 * 既存の section-announcement-bar.css の後に読み込まれて、差分を上書きする
 */

/* === 背景色・ボーダーの上書き === */
.announcement-bar--item {
  position: relative;
  background-color: #efeeec;
  border-bottom: 1px solid #e3e3e3;
  padding: 0;
  z-index: 99;
}

/* === バッジ + メッセージ + CTA の3要素レイアウト === */
.announcement-bar__custom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  position: relative;
  overflow: hidden;
  height: 48px;
}

.announcement-bar__custom-inner .announcement--text {
  flex: 0 1 auto;
  color: var(--black);
  font-family: "Shippori Mincho", serif;
  font-weight: 800;
}

.announcement-bar__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 64px;
  border-radius: 50%;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0.05em;
  /* background-image はセクションHTML側でインライン指定（{{asset_url}} を使うため） */
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: rotate(-8deg);
  text-shadow: 1px 1px 0 #761500;
}

.announcement-bar__cta {
  position: absolute;
  right: 16px;
  flex-shrink: 0;
  display: inline-block;
  padding: 8px 18px;
  font-size: 13px;
  text-decoration: none;
  color: var(--black) !important;
  white-space: nowrap;
  transition: opacity 0.2s ease;
  background-color: var(--gold-500);
  border-radius: 50px;
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.25);
  border: none;
}
.announcement-bar__cta:hover {
  opacity: 0.7;
}

/* PC/SP の CTA テキスト切り替え */
.announcement-bar__cta-pc {
  display: inline;
}
.announcement-bar__cta-mobile {
  display: none;
}

@media (max-width: 959px) {
  .announcement-bar__custom-inner {
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .announcement-bar__badge {
    margin-left: -10px;
  }
  .announcement-bar__cta {
    position: relative;
    right: inherit;
    padding: 6px 10px;
    font-size: 12px;
    margin-right: 8px;
  }
  .announcement-bar__custom-inner .announcement--text {
    font-size: 14px;
    line-height: 1.3;
  }
  .announcement-bar__cta-pc {
    display: none;
  }
  .announcement-bar__cta-mobile {
    display: inline;
  }
}
