/* handover-1117 — d: drawer マイリスト / e: card heart tap area / f: instant favorite feedback */

/* ---------- d: スマホのカテゴリー欄（ドロワー）のマイリスト ---------- */
.hon-drawer-utils { display: block; margin: 2px 0 22px; }
.hon-drawer-utils a {
  position: relative; display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 54px; padding: 12px 44px 12px 18px; box-sizing: border-box;
  font-size: 15px !important; font-weight: 500; letter-spacing: .12em !important; line-height: 1.3;
  color: #2C2A28 !important; text-decoration: none;
  background: linear-gradient(120deg, #F6EAD6 0%, #E4CFA8 42%, #D4AE98 78%, #C9A494 100%);
  border: 1px solid rgba(255, 255, 255, .45);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .30), inset 0 1px 0 rgba(255, 255, 255, .65);
  overflow: hidden; -webkit-tap-highlight-color: transparent;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hon-drawer-utils a::before {
  content: ""; flex: 0 0 auto; width: 20px; height: 20px; background-color: #e0243a;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-6.5-4.35-9.33-8.14C.8 10.6 1.2 7.2 3.8 5.7 5.7 4.6 8 5 9.2 6.6L12 10l2.8-3.4C16 5 18.3 4.6 20.2 5.7c2.6 1.5 3 4.9 1.13 7.16C18.5 16.65 12 21 12 21z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-6.5-4.35-9.33-8.14C.8 10.6 1.2 7.2 3.8 5.7 5.7 4.6 8 5 9.2 6.6L12 10l2.8-3.4C16 5 18.3 4.6 20.2 5.7c2.6 1.5 3 4.9 1.13 7.16C18.5 16.65 12 21 12 21z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* 右端の矢印＋ゆっくり流れる光沢（高級コスメの箔押し風） */
.hon-drawer-utils a::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -5px;
  border-top: 1.5px solid #2C2A28; border-right: 1.5px solid #2C2A28; transform: rotate(45deg);
}
.hon-drawer-utils { position: relative; }
.hon-drawer-utils::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; pointer-events: none;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 100%);
  animation: hon-ml-sheen 5.5s ease-in-out 1s infinite;
}
@keyframes hon-ml-sheen { 0%, 70% { left: -40%; } 100% { left: 120%; } }
.hon-drawer-utils a:active { transform: scale(.985); box-shadow: 0 4px 12px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .65); }
.hon-drawer-utils { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .hon-drawer-utils::after { animation: none; display: none; } }

/* ---------- e: 一覧カードのハート — 見た目はそのまま、押せる範囲を周囲に広げる ---------- */
.hon-card-fav { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.hon-card-fav::before {
  content: ""; position: absolute; top: -10px; right: -10px; bottom: -14px; left: -16px; /* 透明のタップ範囲（ここを押してもページは移動しない） */
}
.hon-card-fav .simplefavorite-button { position: relative; min-width: 40px; min-height: 28px; justify-content: center; }
@media (max-width: 781px) {
  .hon-card-fav::before { top: -12px; right: -12px; bottom: -18px; left: -20px; }
  .hon-card-fav .simplefavorite-button { min-width: 44px; min-height: 32px; }
}

/* ---------- f: お気に入りを押した瞬間に表示を切り替える（サーバーの返事を待たない） ---------- */
.hon-favwrap.hon-fav-busy .simplefavorite-button.loading { opacity: 1; }
.hon-favwrap.hon-fav-will-on .simplefavorite-button { color: #e0243a !important; }
.hon-favwrap.hon-fav-will-on .simplefavorite-button::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-6.5-4.35-9.33-8.14C.8 10.6 1.2 7.2 3.8 5.7 5.7 4.6 8 5 9.2 6.6L12 10l2.8-3.4C16 5 18.3 4.6 20.2 5.7c2.6 1.5 3 4.9 1.13 7.16C18.5 16.65 12 21 12 21z' fill='black'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-6.5-4.35-9.33-8.14C.8 10.6 1.2 7.2 3.8 5.7 5.7 4.6 8 5 9.2 6.6L12 10l2.8-3.4C16 5 18.3 4.6 20.2 5.7c2.6 1.5 3 4.9 1.13 7.16C18.5 16.65 12 21 12 21z' fill='black'/%3E%3C/svg%3E");
}
.hon-favwrap.hon-fav-will-off .simplefavorite-button { color: var(--hon-accent-rose) !important; }
.hon-favwrap.hon-fav-will-off .simplefavorite-button::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-6.5-4.35-9.33-8.14C.8 10.6 1.2 7.2 3.8 5.7 5.7 4.6 8 5 9.2 6.6L12 10l2.8-3.4C16 5 18.3 4.6 20.2 5.7c2.6 1.5 3 4.9 1.13 7.16C18.5 16.65 12 21 12 21z' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-6.5-4.35-9.33-8.14C.8 10.6 1.2 7.2 3.8 5.7 5.7 4.6 8 5 9.2 6.6L12 10l2.8-3.4C16 5 18.3 4.6 20.2 5.7c2.6 1.5 3 4.9 1.13 7.16C18.5 16.65 12 21 12 21z' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.hon-favwrap.hon-fav-pop .simplefavorite-button::before { animation: hon-fav-pop .45s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes hon-fav-pop { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 65% { transform: scale(.9); } 100% { transform: scale(1); } }
/* 返事待ちの間は、枠がローズゴールドでゆっくり明滅（くるくるは出さない） */
.hon-card-fav.hon-fav-busy { animation: hon-fav-wait 1.1s ease-in-out infinite; }
.hon-card-fav.hon-fav-will-on { border-color: #e0243a; }
.hon-fav-btn.hon-fav-busy { animation: hon-fav-wait 1.1s ease-in-out infinite; }
@keyframes hon-fav-wait { 0%, 100% { box-shadow: 0 0 0 0 rgba(201, 164, 148, 0); } 50% { box-shadow: 0 0 0 4px rgba(201, 164, 148, .38); } }
/* 記事ページのボタン：ラベルもすぐ切り替える */
.hon-fav-btn.hon-fav-will-on .hon-fav-l-add { display: none !important; }
.hon-fav-btn.hon-fav-will-on .hon-fav-l-on { display: inline !important; }
.hon-fav-btn.hon-fav-will-off .hon-fav-l-on { display: none !important; }
.hon-fav-btn.hon-fav-will-off .hon-fav-l-add { display: inline !important; }
/* 小さなお知らせ（数秒で消える） */
.hon-fav-toast {
  position: fixed; left: 50%; top: calc(86px + env(safe-area-inset-top, 0px)); z-index: 2147482000;
  transform: translate(-50%, -10px); opacity: 0; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; max-width: 86vw;
  font: 500 13px/1.3 "Noto Sans JP", sans-serif; letter-spacing: .08em; color: #F7F3EC;
  background: rgba(28, 27, 26, .92); border: 1px solid rgba(228, 207, 168, .55); box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  transition: opacity .2s ease, transform .2s ease;
}
.hon-fav-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.hon-fav-toast i { width: 14px; height: 14px; flex: 0 0 auto; background: #e0243a;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-6.5-4.35-9.33-8.14C.8 10.6 1.2 7.2 3.8 5.7 5.7 4.6 8 5 9.2 6.6L12 10l2.8-3.4C16 5 18.3 4.6 20.2 5.7c2.6 1.5 3 4.9 1.13 7.16C18.5 16.65 12 21 12 21z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-6.5-4.35-9.33-8.14C.8 10.6 1.2 7.2 3.8 5.7 5.7 4.6 8 5 9.2 6.6L12 10l2.8-3.4C16 5 18.3 4.6 20.2 5.7c2.6 1.5 3 4.9 1.13 7.16C18.5 16.65 12 21 12 21z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat; }
.hon-fav-toast.is-off i { background: var(--hon-accent-rose, #C9A494); }
@media (min-width: 782px) { .hon-fav-toast { top: 120px; } }
@media (prefers-reduced-motion: reduce) { .hon-favwrap.hon-fav-pop .simplefavorite-button::before, .hon-card-fav.hon-fav-busy, .hon-fav-btn.hon-fav-busy { animation: none; } }
