@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/* =========================
   ファーストビュー
========================= */
.fv {
  background: #f5f8ff;
  padding: 24px 16px;
  margin-bottom: 24px;
}

.fv h1 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.badge {
  display: inline-block;
  background: #ff6b6b;
  color: #fff;
  padding: 4px 8px;
  font-size: 0.8rem;
  border-radius: 4px;
  margin-right: 8px;
}

.label {
 display:
 inline-block;
 font-size: 0.8rem;
 padding: 2px 6px;
 border-radius: 4px;
 margin-right: 4px;
 background: #e0f2f1;
 color: #00695c;
 }
 
 .label-danger {
 background: #ffebee;
 color: #c62828;
 }

/* =========================
   ファーストビュー：ポイントリスト（Cocoon完全対応）
========================= */
.fv-point {
  list-style: none;
  padding-left: 0;
  margin: 8px 0 16px;
}

.fv-point li {
  position: relative;
  padding-left: 1.6em; /* アイコン分の余白 */
  margin-bottom: 6px;
}

/* ✔（通常） */
.fv-point li:not(.ng)::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0.1em;
  color: #4caf50;
  font-weight: bold;
  display: inline-block;
}

/* ✖（NG） */
.fv-point li.ng::before {
  content: "✖";
  position: absolute;
  left: 0;
  top: 0.1em;
  color: #e53935;
  font-weight: bold;
  display: inline-block;
}

/* =========================
   CTAボタン（共通・立体化）
========================= */
.cta-btn {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 16px auto;
  padding: 14px 22px;
  background: linear-gradient(180deg, #ff7043, #ff5722);
  color: #fff;
  border-radius: 999px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;

  /* 立体感 */
  box-shadow:
    0 6px 14px rgba(255, 87, 34, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

/* ホバー：明るく光って少し浮く */
.cta-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow:
    0 10px 22px rgba(255, 87, 34, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* クリック時：押し込み */
.cta-btn:active {
  transform: translateY(1px);
  box-shadow:
    0 4px 10px rgba(255, 87, 34, 0.35),
    inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* p直下でも中央寄せを保証（cta-btn限定） */
p > .cta-btn {
  margin-left: auto;
  margin-right: auto;
}

/* スマホ最適化 */
@media screen and (max-width: 480px) {
  .cta-btn {
    width: 92%;
    max-width: 360px;
    padding: 14px 0;
    font-size: 1rem;
  }
}

/* =========================
   ランキング・共通UI
========================= */
.ranking-box {
  border: 2px solid #ff9800;
  border-radius: 8px;
  padding: 16px;
  background: #fff7e6;
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.5rem;
  margin: 32px 0 16px;
  border-left: 4px solid #ff6b6b;
  padding-left: 8px;
}

.sub-title {
  font-size: 1.2rem;
  margin: 24px 0 8px;
}

/* =========================
   ランキングカード（PC）
========================= */
.rank-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.rank-content {
  flex: 1;
  min-width: 0;
}

.app-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  border: 1px solid #eee;
}

.rank-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #fff;
}

.rank-num.rank-1 {
  background: linear-gradient(135deg, #FFD700, #FFB300);
}
.rank-num.rank-2 {
  background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
}
.rank-num.rank-3 {
  background: linear-gradient(135deg, #CD7F32, #B87333);
}

/* =========================
   スマホ：ランキング縦積み＋番号固定
========================= */
@media screen and (max-width: 480px) {
  .rank-item {
    flex-direction: column;
    position: relative;
  }

  .rank-num {
    position: absolute;
    top: -12px;
    left: -12px;
    z-index: 3;
    width: 44px;
    height: 44px;
    font-size: 0.9rem;
  }

  .app-logo {
    margin-top: 16px;
  }
}

/* =========================
   テーブル
========================= */
.table_box {
  overflow-x: auto;
  width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 20px;
  font-size: 14px;
  white-space: nowrap;
}

th {
  background: #fafafa;
}

.sticky {
  position: sticky;
  left: 0;
  background: #fafafa;
  z-index: 2;
}

/* ==================================================
   BannerBridge用 CTA（HTML無改変・計測安全）
================================================== */

/* CTAを包む要素は中央寄せ */
.rank-content p:has(> a[href*="bannerbridge.net"]) {
  text-align: center;
}

/* 直リンクCTA本体（幅は広げない） */
.rank-content a[href*="bannerbridge.net"] {
  display: inline-block;
  padding: 14px 22px;
  background: #ff5722;
  color: #fff;
  border-radius: 999px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  margin: 16px 0;
}

/* トラッキングimgはレイアウトから除外 */
.rank-content a[href*="bannerbridge.net"] + img {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* ==================================================
   BannerBridge直リンクCTAを立体化（計測安全）
================================================== */
.rank-content a[href*="bannerbridge.net"] {
  background: linear-gradient(180deg, #ff7043, #ff5722);
  box-shadow:
    0 6px 14px rgba(255, 87, 34, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

/* ホバー時：明るく光る＋少し浮く */
.rank-content a[href*="bannerbridge.net"]:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow:
    0 10px 22px rgba(255, 87, 34, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* クリック時：押し込み表現 */
.rank-content a[href*="bannerbridge.net"]:active {
  transform: translateY(1px);
  box-shadow:
    0 4px 10px rgba(255, 87, 34, 0.35),
    inset 0 2px 4px rgba(0, 0, 0, 0.15);
}
