/* ============================================
   bounce-fix.css
   Bounce Rate Improvement Styles
   — Sticky CTA, Quick Categories, Social Proof,
     Popular Articles
   ============================================ */

/* ====== Sticky CTA Bar ====== */
.sticky-cta {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #1a1612 0%, #0d0b09 100%);
  border-bottom: 1px solid rgba(201,168,76,0.25);
  padding: 0;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.sticky-cta.visible {
  transform: translateY(0);
  opacity: 1;
}
.sticky-cta__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  gap: 16px;
}
.sticky-cta__text {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #b8b0a0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-cta__text strong {
  color: #e8e0d0;
}
.sticky-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 22px;
  background: linear-gradient(135deg, #c9a84c, #b8942f);
  color: #1a1a1a;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}
.sticky-cta__btn:hover {
  background: linear-gradient(135deg, #d4b35a, #c9a84c);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}
.sticky-cta__close {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 4px;
  font-size: 18px;
  line-height: 1;
  transition: color 0.2s;
}
.sticky-cta__close:hover {
  color: #b8b0a0;
}
@media (max-width: 600px) {
  .sticky-cta__text { display: none; }
  .sticky-cta__inner { justify-content: center; }
  .sticky-cta__btn { font-size: 0.85rem; padding: 10px 28px; }
}

/* ====== Quick Categories (Hero直下) ====== */
.quick-categories {
  padding: 3.5rem 0 2rem;
  background: var(--color-sumi, #111);
  position: relative;
}
.quick-categories::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3), transparent);
}
.quick-categories__header {
  text-align: center;
  margin-bottom: 2rem;
}
.quick-categories__label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 0.75rem;
}
.quick-categories__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 300;
  color: #e8e0d0;
  line-height: 1.3;
}
.quick-categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.quick-cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 16px 24px;
  background: rgba(26,22,18,0.6);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 12px;
  text-decoration: none;
  color: #e8e0d0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.quick-cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.05), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.quick-cat-card:hover {
  border-color: rgba(201,168,76,0.35);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(201,168,76,0.1);
}
.quick-cat-card:hover::before {
  opacity: 1;
}
.quick-cat-card__emoji {
  font-size: 2.2rem;
  margin-bottom: 12px;
  line-height: 1;
}
.quick-cat-card__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #e8e0d0;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}
.quick-cat-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: #888;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}
.quick-cat-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(201,168,76,0.1);
  color: #c9a84c;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}
.quick-cat-card:hover .quick-cat-card__arrow {
  background: rgba(201,168,76,0.2);
  transform: translateX(3px);
}
@media (max-width: 768px) {
  .quick-categories__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .quick-cat-card {
    padding: 20px 12px 18px;
  }
  .quick-cat-card__emoji { font-size: 1.8rem; }
}
@media (max-width: 480px) {
  .quick-categories__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 16px;
  }
}

/* ====== Social Proof Bar ====== */
.social-proof {
  padding: 2.5rem 0;
  background: linear-gradient(180deg, var(--color-sumi, #111) 0%, rgba(26,22,18,1) 100%);
  border-top: 1px solid rgba(201,168,76,0.08);
  border-bottom: 1px solid rgba(201,168,76,0.08);
}
.social-proof__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.social-proof__headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 300;
  color: #e8e0d0;
  margin-bottom: 1rem;
  line-height: 1.4;
}
.social-proof__headline strong {
  color: #c9a84c;
  font-weight: 400;
}
.social-proof__flags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.social-proof__flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #b8b0a0;
  letter-spacing: 0.3px;
}
.social-proof__flag-emoji {
  font-size: 1rem;
}
.social-proof__badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.social-proof__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: #888;
}
.social-proof__badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(201,168,76,0.08);
  color: #c9a84c;
  flex-shrink: 0;
}
.social-proof__badge-icon svg {
  width: 14px;
  height: 14px;
}
@media (max-width: 600px) {
  .social-proof__badges { gap: 16px; }
  .social-proof__flag { padding: 4px 10px; font-size: 0.7rem; }
}

/* ====== Popular Articles ====== */
.popular-articles {
  padding: 4rem 0;
  background: var(--color-sumi, #111);
}
.popular-articles__header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.popular-articles__label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 0.75rem;
}
.popular-articles__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 300;
  color: #e8e0d0;
}
.popular-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(26,22,18,0.6);
  border: 1px solid rgba(201,168,76,0.08);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #e8e0d0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.article-card:hover {
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.article-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: rgba(201,168,76,0.9);
  color: #1a1a1a;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 4px;
  z-index: 2;
}
.article-card__img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1612;
}
.article-card__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(17,17,17,0.8) 100%);
}
.article-card__emoji-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #1a1612, #0d0b09);
}
.article-card__body {
  padding: 20px 18px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card__category {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 8px;
}
.article-card__heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #e8e0d0;
  line-height: 1.4;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.article-card:hover .article-card__heading {
  color: #c9a84c;
}
.article-card__excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: #888;
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}
.article-card__read-more {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: #c9a84c;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.article-card:hover .article-card__read-more {
  gap: 10px;
}
@media (max-width: 768px) {
  .popular-articles__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    gap: 16px;
  }
  .article-card {
    flex-direction: row;
  }
  .article-card__img-wrap {
    width: 120px;
    min-height: 100%;
    aspect-ratio: auto;
    flex-shrink: 0;
  }
  .article-card__body {
    padding: 14px 16px;
  }
  .article-card__heading {
    font-size: 1rem;
  }
  .article-card__excerpt {
    display: none;
  }
}

/* ====== Hero CTA enhancements ====== */
.hero__cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.hero__cta--secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid rgba(201,168,76,0.35);
  color: #c9a84c;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  background: rgba(201,168,76,0.05);
}
.hero__cta--secondary:hover {
  background: rgba(201,168,76,0.12);
  border-color: rgba(201,168,76,0.5);
  transform: translateY(-1px);
}
@media (max-width: 600px) {
  .hero__cta-group {
    flex-direction: column;
    align-items: flex-start;
  }
}
