@charset "UTF-8";
/* ============================================
   sfhero.css ｜ 商標記事の記事冒頭ヒーロー枠
   読み込み条件：本文に「sfhero-」を含む場合
   1アプリを大きく訴求する。バナー横長対応。
   ============================================ */

.sfhero-wrap {
  position: relative;
  margin: 1.8em 0 2.6em;
  border: 2px solid var(--color_main, #1e9e6a);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
  overflow: hidden;
}

/* ── 上部ランクバー ───────────────── */
.sfhero-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .55em .8em;
  background: linear-gradient(135deg, var(--color_main, #1e9e6a) 0%, #178055 100%);
  color: #fff;
  font-size: .92em;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .02em;
  text-align: center;
}

.sfhero-rank-icon {
  flex: 0 0 auto;
  font-size: 1.15em;
  line-height: 1;
}

.sfhero-rank b {
  color: #ffe27a;
  font-size: 1.12em;
}

/* ── 本体 ─────────────────────────── */
.sfhero-body {
  padding: 1.1em 1em 1.2em;
}

/* ── バナー ───────────────────────── */
.sfhero-banner {
  display: block;
  position: relative;
  margin: 0 0 .9em;
  border: 1px solid #e3e8e6;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.sfhero-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .14);
}

.sfhero-banner img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* ── アプリ名・キャッチ ────────────── */
.sfhero-name {
  display: block;
  font-size: 1.32em;
  font-weight: 800;
  line-height: 1.35;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: .3em;
}

.sfhero-catch {
  display: block;
  font-size: .95em;
  font-weight: 600;
  line-height: 1.55;
  color: #4a5551;
  text-align: center;
  margin-bottom: 1em;
}

/* ── 数値3列 ──────────────────────── */
.sfhero-stats {
  display: flex;
  gap: .5em;
  margin-bottom: 1em;
}

.sfhero-stat {
  flex: 1 1 0;
  min-width: 0;
  padding: .6em .3em .5em;
  border-radius: 8px;
  background: #f2f8f5;
  text-align: center;
}

.sfhero-stat--hot {
  background: #fff3e6;
  box-shadow: inset 0 0 0 2px #ffb356;
}

.sfhero-stat-label {
  display: block;
  font-size: .72em;
  font-weight: 700;
  line-height: 1.35;
  color: #6b7672;
  margin-bottom: .2em;
}

.sfhero-stat-num {
  display: block;
  font-size: 1.42em;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color_main, #1e9e6a);
  letter-spacing: -.01em;
}

.sfhero-stat--hot .sfhero-stat-num {
  color: #e8720c;
}

.sfhero-stat-num i {
  font-style: normal;
  font-size: .56em;
  font-weight: 700;
  margin-left: .1em;
}

/* ── 特典訴求 ─────────────────────── */
.sfhero-offer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  flex-wrap: wrap;
  padding: .7em .8em;
  margin-bottom: .9em;
  border-radius: 8px;
  background: #fffbe9;
  border: 1px dashed #e8b62c;
  text-align: center;
}

.sfhero-offer-tag {
  flex: 0 0 auto;
  padding: .2em .6em;
  border-radius: 4px;
  background: #e8720c;
  color: #fff;
  font-size: .74em;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .02em;
}

.sfhero-offer-text {
  font-size: .96em;
  font-weight: 700;
  line-height: 1.5;
  color: #6b4a00;
}

.sfhero-offer-text b {
  font-size: 1.24em;
  color: #e8720c;
  margin: 0 .05em;
}

/* ── CTAボタン ────────────────────── */
.sfhero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  width: 100%;
  padding: .95em 1em;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8a2b 0%, #ee5a0e 100%);
  box-shadow: 0 4px 0 #c04705, 0 6px 14px rgba(238, 90, 14, .3);
  color: #fff;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}

.sfhero-cta:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #c04705, 0 4px 10px rgba(238, 90, 14, .3);
}

/* テーマのリンク装飾を打ち消す（青文字・下線対策） */
.sfhero-cta,
.sfhero-cta *,
.sfhero-cta:hover,
.sfhero-cta:hover *,
.sfhero-cta:focus,
.sfhero-cta:visited,
.sfhero-cta:active {
  color: #fff !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
  border-bottom: none !important;
}

/* 背景のグラデーションを固定（テーマのリンク背景に負けないように） */
.sfhero-cta,
.sfhero-cta:hover,
.sfhero-cta:focus,
.sfhero-cta:visited,
.sfhero-cta:active {
  background: linear-gradient(135deg, #ff8a2b 0%, #ee5a0e 100%) !important;
}

/* 中の文字要素は背景を持たせない */
.sfhero-cta > span {
  background: transparent !important;
}

.sfhero-cta > span {
  position: relative;
  z-index: 1;
}

/* バナーもリンク下線が出る場合があるため打ち消す */
.sfhero-banner,
.sfhero-banner:hover {
  text-decoration: none !important;
  border-bottom: none !important;
}

.sfhero-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .45) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-18deg);
  animation: sfheroShine 3.4s ease-in-out infinite;
}

@keyframes sfheroShine {
  0%, 62% { left: -60%; }
  92%, 100% { left: 125%; }
}

@media (prefers-reduced-motion: reduce) {
  .sfhero-cta::after { animation: none; }
}

.sfhero-cta-arrow {
  flex: 0 0 auto;
  font-size: .9em;
  line-height: 1;
}

/* ── 注記 ─────────────────────────── */
.sfhero-note {
  margin: .8em 0 0;
  font-size: .72em;
  line-height: 1.6;
  color: #8a938f;
  text-align: center;
}

/* ── スマホ ───────────────────────── */
@media (max-width: 599px) {

  .sfhero-wrap {
    margin: 1.4em 0 2em;
    border-radius: 10px;
  }

  .sfhero-rank {
    font-size: .84em;
    padding: .5em .6em;
  }

  .sfhero-body {
    padding: .9em .8em 1em;
  }

  .sfhero-name {
    font-size: 1.2em;
  }

  .sfhero-catch {
    font-size: .88em;
    text-align: left;
  }

  .sfhero-stats {
    gap: .35em;
  }

  .sfhero-stat {
    padding: .5em .15em .45em;
  }

  .sfhero-stat-label {
    font-size: .66em;
  }

  .sfhero-stat-num {
    font-size: 1.2em;
  }

  .sfhero-offer {
    gap: .35em;
    padding: .6em .5em;
  }

  .sfhero-offer-text {
    font-size: .88em;
  }

  .sfhero-cta {
    font-size: 1.02em;
    padding: .9em .6em;
  }

  .sfhero-note {
    font-size: .68em;
    text-align: left;
  }
}
