/* ============================================================
   pachi-navi.com Affiliate Ads Stylesheet
   v1.0 (2026-04-30)
   ============================================================ */

/* ===== Common ===== */
.ad-label-badge {
  display: inline-block;
  background: #f0f0f0;
  color: #888;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-right: 10px;
  letter-spacing: 0.05em;
}
.ad-label-text {
  color: var(--text-light, #888);
  font-size: 0.78rem;
  font-weight: 500;
}

/* ===== ColumnBanner（記事末尾広告） ===== */
.column-banner {
  margin: 40px 0 32px;
  padding: 20px 22px 22px;
  background: white;
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.column-banner:hover {
  border-color: var(--aqua, #4ec3f5);
  box-shadow: 0 4px 14px rgba(78, 195, 245, 0.12);
}
.column-banner-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.column-banner-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.column-banner-product {
  display: flex;
  flex-direction: column;
}
.column-banner-product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8f8f8;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.column-banner-product-image img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}
.column-banner-product-tagline {
  font-size: 0.78rem;
  color: var(--text-light, #888);
  margin-bottom: 6px;
  line-height: 1.5;
}
.column-banner-product-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text, #2a3540);
  margin-bottom: 8px;
  line-height: 1.5;
}
.column-banner-product-desc {
  font-size: 0.82rem;
  color: var(--text-light, #888);
  line-height: 1.65;
  margin-bottom: 10px;
}
.column-banner-product-price {
  font-size: 0.88rem;
  color: var(--text, #2a3540);
  margin-bottom: 12px;
  font-weight: 600;
}
.column-banner-product-buttons {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.column-banner-btn {
  flex: 1;
  text-align: center;
  padding: 9px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
  color: white;
  line-height: 1.2;
}
.column-banner-btn:hover { transform: translateY(-1px); opacity: 0.9; }
.column-banner-btn-amazon { background: #ff9900; }
.column-banner-btn-rakuten { background: #bf0000; }

@media (max-width: 600px) {
  .column-banner { padding: 16px 14px 18px; }
  .column-banner-products { gap: 10px; }
  .column-banner-product-tagline { font-size: 0.7rem; margin-bottom: 4px; }
  .column-banner-product-name { font-size: 0.85rem; margin-bottom: 6px; }
  .column-banner-product-desc { font-size: 0.75rem; margin-bottom: 8px; }
  .column-banner-product-price { font-size: 0.8rem; margin-bottom: 8px; }
  .column-banner-product-buttons { flex-direction: column; gap: 6px; }
  .column-banner-btn { padding: 8px 6px; font-size: 0.75rem; }
}

/* ===== StickyBanner（PC：インライン表示） ===== */
.sticky-banner-pc {
  margin: 40px 0;
  padding: 20px 22px 22px;
  background: white;
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 12px;
  position: relative;
}
.sticky-banner-pc-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.sticky-banner-pc-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light, #aaa);
  font-size: 1.2rem;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
}
.sticky-banner-pc-close:hover { color: var(--text, #2a3540); }
.sticky-banner-pc-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.sticky-banner-pc-product {
  display: flex;
  gap: 14px;
}
.sticky-banner-pc-product-image {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  background: #f8f8f8;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sticky-banner-pc-product-image img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}
.sticky-banner-pc-product-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.sticky-banner-pc-product-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text, #2a3540);
  margin-bottom: 6px;
  line-height: 1.5;
}
.sticky-banner-pc-product-desc {
  font-size: 0.8rem;
  color: var(--text-light, #888);
  line-height: 1.6;
  margin-bottom: 8px;
}
.sticky-banner-pc-product-price {
  font-size: 0.85rem;
  color: var(--text, #2a3540);
  margin-bottom: 10px;
  font-weight: 600;
}
.sticky-banner-pc-product-button {
  margin-top: auto;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s, opacity 0.15s;
  align-self: flex-start;
}
.sticky-banner-pc-product-button:hover { transform: translateY(-1px); opacity: 0.9; }
.sticky-banner-pc-product-button-amazon { background: #ff9900; }
.sticky-banner-pc-product-button-rakuten { background: #bf0000; }

/* ===== StickyBanner（スマホ：画面下部固定） ===== */
.sticky-banner-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: white;
  border-top: 1px solid var(--border, #e0e0e0);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
  padding: 10px 12px 14px;
  display: none;
}
.sticky-banner-mobile-close {
  position: absolute;
  top: 4px;
  right: 6px;
  background: white;
  border: 1px solid #e0e0e0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  color: #888;
  font-size: 0.8rem;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.sticky-banner-mobile-close:hover { color: var(--text, #2a3540); }
.sticky-banner-mobile-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sticky-banner-mobile-product {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 4px;
  min-width: 0;
}
.sticky-banner-mobile-product-image {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: #f8f8f8;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}
.sticky-banner-mobile-product-image img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}
.sticky-banner-mobile-product-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  justify-content: center;
}
.sticky-banner-mobile-product-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text, #2a3540);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-banner-mobile-product-price {
  font-size: 0.7rem;
  color: var(--text-light, #888);
  line-height: 1.2;
  margin-bottom: 2px;
}
.sticky-banner-mobile-product-buttons {
  display: flex;
  gap: 4px;
}
.sticky-banner-mobile-product-button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 4px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
}
.sticky-banner-mobile-product-button-amazon { background: #ff9900; }
.sticky-banner-mobile-product-button-rakuten { background: #bf0000; }

@media (max-width: 767px) {
  .sticky-banner-pc { display: none; }
  .sticky-banner-mobile.show { display: block; }
  body.has-sticky-banner footer { padding-bottom: 120px; }
}
