/* デジタルチラシ枠: オンラインストアへの誘導リンク（2026-11-11）とチラシタイトルの非表示
 * サイトの既存部品に合わせる: 角丸0、外部リンクはヘッダーと同じ「↗」、5つのリンクは同じ見た目 */

/* リンクのDOMはウィジェット末尾にあるため、flexのorderで見出しの直下に表示する */
html.custom-flyer-all .article-list-widget[data-widget-name="デジタルチラシ"] {
  display: flex;
  flex-direction: column;
}
html.custom-flyer-all .article-list-widget[data-widget-name="デジタルチラシ"] > * {
  order: 2;
}
html.custom-flyer-all .article-list-widget[data-widget-name="デジタルチラシ"] > .h2-index-wrapper {
  order: 0;
}
html.custom-flyer-all .article-list-widget[data-widget-name="デジタルチラシ"] > .custom-flyer-actions.-digital {
  order: 1;
}

/* 枠（説明＋リンク） */
html.custom-flyer-all .custom-flyer-actions.-digital {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px 20px;
  align-self: stretch;
  max-width: 100%;
  box-sizing: border-box;
  margin: -16px 0 24px;
  padding: 16px 20px;
  background: #fff;
  color: #384A70;
}
html.custom-flyer-all .custom-flyer-online__lead {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
html.custom-flyer-all .custom-flyer-online__links {
  display: flex;
  gap: 8px;
}
html.custom-flyer-all .custom-flyer-online__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 14px;
  border: 1px solid #384A70;
  background: #fff;
  color: #384A70;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
/* 外部リンクの印: ヘッダー「ONLINE STORE」の .shoemart-drawer__external と同じ画像・サイズ（14px） */
html.custom-flyer-all .custom-flyer-online__link::after {
  content: '';
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath fill='%23606060' d='M9.8125 7.625C9.98828 7.625 10.125 7.76172 10.125 7.9375V10.75C10.125 11.4336 9.55859 12 8.875 12H3.25C2.56641 12 2 11.4336 2 10.75V5.125C2 4.44141 2.56641 3.875 3.25 3.875H5.4375C5.61328 3.875 5.75 4.01172 5.75 4.1875C5.75 4.36328 5.61328 4.5 5.4375 4.5H3.25C2.89844 4.5 2.625 4.77344 2.625 5.125V10.75C2.625 11.1016 2.89844 11.375 3.25 11.375H8.875C9.22656 11.375 9.5 11.1016 9.5 10.75V7.9375C9.5 7.76172 9.63672 7.625 9.8125 7.625ZM11.6875 2C11.8633 2 12 2.13672 12 2.3125V5.4375C12 5.61328 11.8633 5.75 11.6875 5.75C11.5117 5.75 11.375 5.61328 11.375 5.4375V3.07422L5.96484 8.46484C5.90625 8.52344 5.82812 8.5625 5.75 8.5625C5.67188 8.5625 5.59375 8.52344 5.53516 8.46484C5.39844 8.34766 5.39844 8.15234 5.53516 8.03516L10.9258 2.625H8.5625C8.38672 2.625 8.25 2.48828 8.25 2.3125C8.25 2.13672 8.38672 2 8.5625 2H11.6875Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
html.custom-flyer-all .custom-flyer-online__link:hover {
  opacity: 0.7;
  text-decoration: none;
}

@media (max-width: 767px) {
  html.custom-flyer-all .custom-flyer-actions.-digital {
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
    gap: 10px;
    margin: -24px 0 20px;
    padding: 14px 12px;
  }
  html.custom-flyer-all .custom-flyer-online__lead {
    font-size: 14px;
  }
  /* カテゴリは1行（文字幅に応じて伸縮。特集を非表示にすると3つ）、「すべて見る」は下段に全幅 */
  html.custom-flyer-all .custom-flyer-online__links {
    flex-wrap: wrap;
    gap: 6px;
  }
  html.custom-flyer-all .custom-flyer-online__link {
    flex: 1 1 auto;
    gap: 3px;
    padding: 9px 2px;
    font-size: 13px;
  }
  /* 「すべて見る」はカテゴリと種類が違うため、見た目は同じまま下段に分ける（PCは右端に並ぶだけ） */
  html.custom-flyer-all .custom-flyer-online__link.-all {
    flex: 1 0 100%;
  }
}

/* 「すべての掲載商品を見る」は枠線なし・下線付きの文字リンク（2026-11-12）。PCはカテゴリの右、SPは下段に中央寄せ */
html.custom-flyer-all .custom-flyer-online__link.-all {
  margin-left: 8px;
  padding: 8px 4px;
  border: 0;
  background: none;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}
html.custom-flyer-all .custom-flyer-online__link.-all:hover {
  text-decoration: underline;
}
@media (max-width: 767px) {
  html.custom-flyer-all .custom-flyer-online__link.-all {
    margin-left: 0;
    padding: 10px 0 4px;
  }
}

/* デジタルチラシ枠のチラシタイトルを非表示（リンクで対象が分かるため） */
html.custom-flyer-all .article-list-widget[data-widget-name="デジタルチラシ"] .card-box .body {
  display: none !important;
}
