/* Harimap mobile post bottom trim (2026-10-12, Claude surplus sites-mobile-after-article-trim-rest). Posts at phone/tablet width only; PC unchanged.
   Before 8,375px from body end to footer end at 390px, after about 3,850px. Kept: next-read (snippet 107), same-city events, furusato gifts, paid PR banners, popular ranking, reader-nav, prev/next.
   2026-10-13: every hidden part is hidden only for the b arm of its A/B (html.pmx-hm-*, assets/common/part_metrics.php); a sees it.
   Rollback: python3 -B tools/sitewide_css.py --site harimap --css assets/mobile-post-bottom-harimap.css --name "Claude: mobile post bottom trim" --deactivate */
@media (max-width: 959px) {
  /* footer: new posts and the area map repeat the next-read links, the city events and the header menu */
  html.pmx-hm-footer-new .single .l-footer .w-footer__box:has(#hm-footer-title-new), html.pmx-hm-area-map .single .l-footer .w-footer__box:has(.footer-area-map) { display: none !important; }
  .single .l-footer__nav { display: flex !important; flex-wrap: wrap; gap: 0 14px; }
  .single .l-footer__nav li { margin: 0; border: 0; }
  /* the Hyogo-wide calendar repeats the same-city upcoming events right above it; keep it only when that block is missing (PC and the top page keep it) */
  html.pmx-hm-hyogo-cal .single .w-singleBottom:has(.hm-today-tomorrow-events .hm-tt-card) .p-blogParts:has(#hm-article-calendar) { display: none !important; }
  /* calendar in the article bottom: keep the day list with prev/next day; drop the month grid, the duplicate submit CTA and the empty line, city filter as one swipe row */
  html.pmx-hm-cal-grid .single #hm-article-calendar .hm-month-tabs, html.pmx-hm-cal-grid .single #hm-article-calendar .hm-calendar, html.pmx-hm-cal-grid .single #hm-article-calendar .hm-submit-cta, .single #hm-article-calendar .hm-section > p:not(:has(*:not(br))) { display: none !important; }
  .single #hm-article-calendar .hm-cal-area-filter { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; gap: 8px; scrollbar-width: none; }
  .single #hm-article-calendar .hm-cal-area-filter > * { flex: 0 0 auto; }
  /* flower promo: heading and link only */
  html.pmx-hm-flower-text .single .hm-flower-promo--article > p:not(.hm-flower-kicker), html.pmx-hm-flower-text .single .hm-flower-promo--article .hm-flower-season-nav { display: none !important; }
  /* furusato gifts: 2026-10-18 the one-row swipe was removed; blog part 36586 now stacks 2 horizontal cards on phones like the sale cards above it */
  /* regional PR: paid banners stay full size; the recruit card repeats the head CTA; official links become one swipe row */
  html.pmx-hm-pr-recruit .single .hm-footer-pr__track--paid .hm-footer-pr__slot:has(.hm-footer-pr__recruit), html.pmx-hm-pr-recruit .single .hm-footer-pr__section-note { display: none !important; }
  .single .hm-footer-pr__entry-actions { display: flex !important; gap: 8px; }
  .single .hm-footer-pr__entry-actions > a { flex: 1 1 0; margin: 0; }
  .single .hm-footer-pr__track--official { display: flex !important; flex-wrap: nowrap; overflow-x: auto; gap: 8px; scrollbar-width: none; }
  .single .hm-footer-pr__track--official .hm-footer-pr__slot { flex: 0 0 42%; margin: 0; }
}
@media (max-width: 959px) {
  .single #content.l-content { margin-bottom: 24px !important; padding-bottom: 24px !important; }
  .single #before_footer_widget { margin-top: 24px !important; margin-bottom: 20px !important; }
  .single .codex-preferred-source-widget { margin: 8px auto !important; }
  .single .codex-preferred-source-widget:has([google-add-preferred-source-btn] > *) > p:last-of-type { display: none !important; }
  .single .l-footer .widget_search { display: none; }
}
/* Explicitly authored .se-cta and owned ms-apply keyboard-focus correction; no generic link conversion or color assignment.
   Site/vendor colors continue to come from the existing canonical color modules. */
.post_content .se-cta{margin:1.25em 0;max-width:100%;clear:both}
.post_content .se-cta__benefit{margin:0 0 .55em!important;font-size:16px;font-weight:700;line-height:1.6}
.post_content .se-cta .se-cta__btn,.post_content .se-cta--provided>a,.post_content .se-cta--provided>p>a{position:relative;display:flex;align-items:center;justify-content:center;gap:.65em;box-sizing:border-box;width:100%;max-width:100%;min-height:52px;padding:12px 18px;border:0;border-radius:8px;background:var(--ms-head,#173b64);color:#fff;font-size:16px;font-weight:700;line-height:1.5;text-decoration:none;text-align:center;box-shadow:0 2px 0 #0003}
.post_content .se-cta .se-cta__btn::after{content:none!important}
.post_content .se-cta__label{min-width:0;overflow-wrap:anywhere}
.post_content .se-cta__arrow{flex:none;font-size:1.1em;line-height:1}
.post_content .se-cta__btn:hover,.post_content .se-cta--provided>a:hover,.post_content .se-cta--provided>p>a:hover{text-decoration:underline;text-underline-offset:.2em}
.post_content .se-cta .se-cta__btn:focus-visible,.post_content .se-cta--provided>a:focus-visible,.post_content .se-cta--provided>p>a:focus-visible,#body_wrap .post_content a.ms-apply__btn:focus-visible{outline:3px solid #2454db!important;outline-offset:3px!important}
.post_content .se-cta--provided img[width="1"][height="1"]{position:absolute;width:1px!important;height:1px!important;opacity:0;visibility:hidden;pointer-events:none}
.post_content .se-cta__note{margin:.6em 0 0!important;color:#3d4652;font-size:14px;line-height:1.7}
@media(min-width:768px){.post_content .se-cta .se-cta__btn,.post_content .se-cta--provided>a,.post_content .se-cta--provided>p>a{width:fit-content;min-width:min(100%,360px)}}

/* Classic WordPress may wrap a complete text material and its tracker in a paragraph. */
.post_content .se-cta--provided>p:not(.se-cta__benefit):not(.se-cta__note){margin:0!important}

.post_content .hm-stay__cta-note{margin:.45em 0 0!important;font-size:13px;line-height:1.65;color:#445}.post_content .hm-stay__btn[data-pm-design-b="cta-design-v1-hm-stay"]{gap:.35em;box-shadow:0 2px 0 rgba(0,0,0,.18)}.post_content .hm-stay__btn[data-pm-design-b="cta-design-v1-hm-stay"] .pm-cta-label{min-width:0}.post_content .hm-stay__btn .pm-cta-design-arrow{flex:0 0 auto}.post_content .hm-stay__btn[data-pm-design-b="cta-design-v1-hm-stay"] .pm-cta-action{white-space:nowrap}