/* MR.CHILL HP — 体験強化（ポップアップ・動き・日本語UI） */

/* ── スクロール出現 ── */
.hp-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.hp-reveal.hp-visible {
  opacity: 1;
  transform: translateY(0);
}
.hp-reveal-delay-1 { transition-delay: 0.08s; }
.hp-reveal-delay-2 { transition-delay: 0.16s; }
.hp-reveal-delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .hp-reveal { opacity: 1; transform: none; transition: none; }
}

/* ── 商品カード・ホバー ── */
.product-card,
.weedfeed-item,
.drop-card,
.editorial-row,
.featuring {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.product-card:hover,
.weedfeed-item:hover,
.drop-card:hover {
  transform: translateY(-6px);
}
.product-card .product-img img,
.weedfeed-item img {
  transition: transform 0.5s ease;
}
.product-card:hover .product-img img,
.weedfeed-item:hover img {
  transform: scale(1.04);
}

/* ── ヒーロー フェード ── */
.hero-slide {
  transition: opacity 0.8s ease, visibility 0.8s;
}
.hero-slide.active .hero-slide-text {
  animation: hpHeroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes hpHeroIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── 会員登録ポップアップ ── */
.hp-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.hp-popup-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.hp-popup {
  position: relative;
  width: min(520px, 100%);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  transform: scale(0.92) translateY(16px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  color: #111;
}
.hp-popup-overlay.is-open .hp-popup {
  transform: scale(1) translateY(0);
}
.hp-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  color: #333;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}
.hp-popup-close:hover { background: rgba(0, 0, 0, 0.12); }
.hp-popup-badge {
  display: inline-block;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.hp-popup-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
@media (max-width: 520px) {
  .hp-popup-body { grid-template-columns: 1fr; }
  .hp-popup-visual { max-height: 160px; overflow: hidden; }
}
.hp-popup-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}
.hp-popup-form {
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hp-popup-form h2 {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 8px;
  color: #111;
}
.hp-popup-form p {
  font-size: 13px;
  color: #555;
  margin-bottom: 18px;
  line-height: 1.65;
}
.hp-popup-form input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 12px;
  font-family: inherit;
}
.hp-popup-form input:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}
.hp-popup-submit {
  width: 100%;
  padding: 14px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s;
}
.hp-popup-submit:hover { background: #333; }
.hp-popup-submit:active { transform: scale(0.98); }
.hp-popup-dismiss {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: none;
  border: none;
  color: #888;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hp-popup-dismiss:hover { color: #333; }

/* ── フローティング送料バー ── */
.hp-float-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: linear-gradient(90deg, #1a3a24 0%, #0d2818 100%);
  color: #e8f5e9;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  font-family: 'Noto Sans JP', sans-serif;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.hp-float-bar.is-visible { transform: translateY(0); }
.hp-float-bar strong { color: #a5d6a7; }
.hp-float-bar a {
  background: #fff;
  color: #1a3a24;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s;
}
.hp-float-bar a:hover { transform: scale(1.03); }
body.hp-has-float-bar { padding-bottom: 56px; }

/* demo-hub と重ならない */
body.hp-has-float-bar .hp-demo-hub { bottom: 64px; }

/* ── トースト ── */
.hp-toast {
  position: fixed;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #111;
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-family: 'Noto Sans JP', sans-serif;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.hp-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
