/* Offline mirror: restore runtime-provided article UI. */
.global_conversions .title {
  background-image: url('../../mirror-assets/downloaded/logo_pet_symbol_blk-afe190fb38.svg');
}

.offline_subscription_banner {
  display: block;
  flex: 0 0 300px;
  height: 250px;
  overflow: hidden;
  width: 300px;
}

.offline_subscription_banner img {
  display: block;
  height: 250px;
  width: 300px;
}

.offline_share_button {
  align-items: center;
  border-radius: 3px;
  box-sizing: border-box;
  display: flex;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  gap: 3px;
  height: 20px;
  letter-spacing: normal;
  overflow: hidden;
  padding: 0 6px;
  text-decoration: none;
  width: 77px;
}

.offline_share_button * {
  letter-spacing: normal;
}

.offline_share_facebook {
  background: #1877f2;
  color: #fff;
  gap: 0;
}

.offline_share_x {
  background: #000;
  border-radius: 9999px;
  color: #fff;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  gap: 3px;
  line-height: 18px;
  padding: 1px 12px;
}

.offline_share_button > span {
  display: inline-block;
  margin: 0;
  min-height: 0;
  visibility: visible;
  white-space: nowrap;
}

.offline_share_mark {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  height: 12px;
  justify-content: center;
  line-height: 1;
  width: 12px;
}

.offline_share_facebook .offline_share_mark {
  background: transparent;
  color: transparent;
  font-family: Helvetica, Arial, sans-serif;
  height: 16px;
  position: relative;
  width: 16px;
}

.offline_share_facebook > span {
  display: inline-block !important;
}

.offline_share_facebook .offline_share_mark::before {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  color: #1877f2;
  content: "f";
  display: flex;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  height: 12px;
  justify-content: center;
  left: 2px;
  line-height: 12px;
  position: absolute;
  top: 2px;
  width: 12px;
}

.offline_share_facebook .offline_share_label {
  font-weight: 700;
  height: 12px;
  line-height: normal;
  padding: 0 4px;
}

.offline_share_facebook .offline_share_count {
  font-weight: 400;
  height: 12px;
  line-height: normal;
  padding: 0 4px 0 0;
}

.offline_share_x .offline_share_mark {
  display: block;
  height: 14px;
  width: 14px;
}

.offline_share_x > span {
  display: inline-block !important;
  height: 18px;
  line-height: 18px;
  padding: 0;
}

/* H5 chrome: hidden on PC, activated only under 768px (same breakpoint as home). */
.stories_sp_menu_button,
.stories_sp_drawer,
.stories_sp_drawer_overlay {
  display: none;
}

@media (max-width: 767px) {
  body.stories_page {
    --drawer-width: 270px;
  }

  html,
  body.stories_page {
    width: 100%;
    min-width: 0 !important;
    overflow-x: hidden;
  }

  body.stories_page,
  body.stories_page * {
    box-sizing: border-box;
  }

  /* Fluid containers 鈥?override PC .box { width:1080px; padding:50px } */
  body.stories_page .box {
    width: 100% !important;
    max-width: 100%;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  body.stories_page .main_contents {
    padding-bottom: 40px;
  }

  /* 鈥斺€?Header 鈥斺€?*/
  body.stories_page .global_header .box.flex {
    align-items: center;
    height: 60px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    gap: 8px;
  }

  body.stories_page .global_header .logo {
    width: 140px;
    flex: 0 0 auto;
  }

  body.stories_page .global_header .pet_logo_symbol {
    width: 140px;
  }

  body.stories_page .global_header .infos {
    display: none;
  }

  body.stories_page .global_header .account_menus {
    margin-left: auto;
    max-width: none;
  }

  body.stories_page .global_header .account_menus .account_menu:nth-child(2) {
    display: none;
  }

  body.stories_page .global_header .btn {
    font-size: 11px;
    height: 25px;
    line-height: 25px;
    padding: 0 8px;
  }

  body.stories_page .global_menus {
    display: none;
  }

  .stories_sp_menu_button {
    position: relative;
    display: flex;
    flex: 0 0 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 60px;
    margin-left: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .stories_sp_menu_button span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background: #333;
  }

  .stories_sp_drawer,
  .stories_sp_drawer_overlay {
    display: block;
  }

  .stories_sp_drawer_overlay {
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgb(0 0 0 / 10%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }

  .stories_sp_drawer {
    position: fixed;
    z-index: 2001;
    top: 0;
    right: 0;
    width: min(var(--drawer-width), calc(100vw - 56px));
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    box-shadow: -3px 0 12px rgb(0 0 0 / 18%);
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.25, .1, .25, 1);
  }

  .stories_sp_drawer__top {
    padding: 9px 10px 10px;
    border-bottom: 1px solid #ddd;
  }

  .stories_sp_drawer__support {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 36px;
    border: 1px solid #eb4847;
    border-radius: 5px;
    color: #eb4847;
    font-size: 12px;
    text-decoration: none;
  }

  .stories_sp_drawer__account {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-top: 5px;
  }

  .stories_sp_drawer__account a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    border: 1px solid #333;
    border-radius: 5px;
    color: #333;
    font-size: 12px;
    text-decoration: none;
  }

  .stories_sp_drawer__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 46px;
    padding: 0 5px;
    font-size: 14px;
    font-weight: 700;
  }

  .stories_sp_drawer__home {
    padding: 5px 8px;
    border: 1px solid #ddd;
    color: #999;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
  }

  .stories_sp_drawer__primary,
  .stories_sp_drawer__secondary {
    margin: 0;
    padding: 0 10px;
    list-style: none;
  }

  .stories_sp_drawer__primary li,
  .stories_sp_drawer__secondary li {
    border-bottom: 1px solid #eee;
  }

  .stories_sp_drawer__primary a,
  .stories_sp_drawer__secondary a {
    display: flex;
    align-items: center;
    min-height: 51px;
    padding: 0 5px;
    color: #333;
    font-size: 15px;
    text-decoration: none;
  }

  .stories_sp_drawer__primary a::after,
  .stories_sp_drawer__secondary a::before {
    margin-left: auto;
    color: #999;
    content: '›';
    font-size: 20px;
    line-height: 1;
  }

  .stories_sp_drawer__secondary {
    padding-top: 8px;
    padding-bottom: 5px;
  }

  .stories_sp_drawer__secondary a {
    min-height: 34px;
    font-size: 13px;
  }

  .stories_sp_drawer__secondary a::before {
    order: -1;
    margin-right: 5px;
    margin-left: 0;
    font-size: 16px;
  }

  .stories_sp_drawer__recruit {
    margin: 9px 10px 20px;
    border: 1px solid #ddd;
    text-align: center;
  }

  .stories_sp_drawer__recruit a {
    display: block;
    padding: 12px 5px;
    color: #333;
    font-size: 13px;
    text-decoration: none;
  }

  .stories_sp_drawer__share {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-top: 1px solid #ddd;
  }

  .stories_sp_drawer__share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    height: 21px;
    border-radius: 4px;
    color: #fff;
    font-size: 10px;
    text-decoration: none;
  }

  .stories_sp_drawer__share a:first-child {
    background: #111;
  }

  .stories_sp_drawer__share a:last-child {
    background: #2275d7;
  }

  body.stories_sp_drawer_open {
    overflow: hidden;
  }

  body.stories_sp_drawer_open .stories_sp_drawer_overlay {
    opacity: 1;
    pointer-events: auto;
  }

  body.stories_sp_drawer_open .stories_sp_drawer {
    transform: translateX(0);
  }

  /* Only top-level shells 鈥?avoid double-shifting nested .move_elms */
  body.stories_page > .global_header,
  body.stories_page > .main_contents,
  body.stories_page > .global_conversions,
  body.stories_page > .global_sponsors,
  body.stories_page > .global_footer,
  body.stories_page > div[style*="background-color: #eb4847"] {
    transition: transform .3s cubic-bezier(.25, .1, .25, 1);
  }

  body.stories_sp_drawer_open > .global_header,
  body.stories_sp_drawer_open > .main_contents,
  body.stories_sp_drawer_open > .global_conversions,
  body.stories_sp_drawer_open > .global_sponsors,
  body.stories_sp_drawer_open > .global_footer,
  body.stories_sp_drawer_open > div[style*="background-color: #eb4847"] {
    transform: translateX(calc(-1 * var(--drawer-width, 270px)));
  }

  /* 鈥斺€?Page chrome 鈥斺€?*/
  body.stories_page .breadcrumbs {
    padding: 10px 0;
  }

  body.stories_page .breadcrumb {
    font-size: 11px;
    flex-wrap: wrap;
  }

  body.stories_page .page_content_header {
    padding: 20px 0 10px;
  }

  body.stories_page .page_content_header .title {
    font-size: 2rem;
  }

  body.stories_page .page_content_header .caption {
    display: block;
    margin-top: 4px;
    font-size: 12px;
  }

  body.stories_page .pc_none {
    display: inline;
  }

  /* 鈥斺€?Story cards 鈥斺€?*/
  body.stories_page .stories_contents + .stories_contents,
  body.stories_page .stories_contents + .stories_contents.min {
    margin-top: 1.5rem;
  }

  body.stories_page .stories_contents .hash {
    font-size: 1.25rem;
  }

  body.stories_page .stories_results.l,
  body.stories_page .stories_results.m,
  body.stories_page .stories_results.s {
    gap: 20px 12px;
  }

  body.stories_page .stories_results .stories_result,
  body.stories_page .stories_results .stories_result.l,
  body.stories_page .stories_results .stories_result.m {
    width: 100%;
    margin-top: 0;
  }

  /* Compact "s" cards: 2-up on phones when space allows */
  body.stories_page .stories_results .stories_result.s {
    width: calc(50% - 6px);
    margin-top: 0;
  }

  body.stories_page .stories_results .stories_result.l .title {
    font-size: 1.125rem;
  }

  body.stories_page .stories_results .stories_result.m .title {
    font-size: 1rem;
  }

  body.stories_page .stories_results .stories_result.s .title {
    font-size: .875rem;
  }

  body.stories_page .stories_results .stories_result.l .info,
  body.stories_page .stories_results .stories_result.m .info,
  body.stories_page .stories_results .stories_result.s .info {
    font-size: .75rem;
  }

  body.stories_page .stories_result .thumb,
  body.stories_page .stories_result figure {
    width: 100%;
    overflow: hidden;
  }

  body.stories_page .stories_result .thumb img,
  body.stories_page .stories_result img.fit {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
  }

  body.stories_page .global_header img,
  body.stories_page .global_footer img,
  body.stories_page .common_sponsors_300 img,
  body.stories_page .common_sponsors_footer img {
    margin: 0;
  }

  body.stories_page .stories_results + .link_btn_wrap .link_btn {
    width: 100%;
    max-width: 280px;
  }

  body.stories_page .stories_tag_results {
    gap: 10px 8px;
  }

  body.stories_page .stories_tag_results_open {
    width: 100%;
    max-width: 280px;
  }

  /* 鈥斺€?Bottom conversion / sponsors / footer 鈥斺€?*/
  body.stories_page .stories_conversion .box.flex {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  body.stories_page .stories_conversion .stories_about .title {
    font-size: 2rem;
  }

  body.stories_page .stories_conversion .stories_about .info {
    margin-top: 1rem;
    line-height: 1.8;
  }

  body.stories_page .common_sponsors_300 {
    width: 100%;
  }

  body.stories_page .global_conversions .box.flex {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  body.stories_page .global_conversions .infos {
    width: 100%;
  }

  body.stories_page .global_conversions .title {
    padding-left: 55px;
    background-size: 45px auto;
    font-size: .875rem;
  }

  body.stories_page .global_conversions .page_top {
    right: 15px;
  }

  body.stories_page .offline_subscription_banner {
    flex: none;
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
  }

  body.stories_page .offline_subscription_banner img {
    width: 100%;
    height: auto;
  }

  body.stories_page .common_sponsors_footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  body.stories_page .common_sponsors_footer .title {
    border-right: 0;
    padding: 0;
  }

  body.stories_page .common_sponsors_footer .purina {
    margin-left: 0;
  }

  body.stories_page .global_footer .box.grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 30px;
    padding-bottom: 20px;
  }

  body.stories_page .global_footer .footer_menus.l,
  body.stories_page .global_footer .footer_menus.r {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
  }

  body.stories_page .global_footer .footer_menus .l,
  body.stories_page .global_footer .footer_menus .c,
  body.stories_page .global_footer .footer_menus .r {
    margin: 0;
  }

  body.stories_page .global_footer .footer_bottom .box.flex {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }

  body.stories_page .fixed_sponsor_results {
    display: none;
  }

  /* —— Article detail (post page) —— */
  body.stories_page .article_contents.box.flex {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    margin-top: 20px;
  }

  body.stories_page .article_details,
  body.stories_page .article_details.stories_details {
    width: 100%;
  }

  body.stories_page .article_asides,
  body.stories_page .article_asides.stories_asides {
    width: 100%;
    position: static;
    bottom: auto;
  }

  body.stories_page .stories_details .entry_title {
    font-size: 1.5rem;
    line-height: 1.35;
  }

  body.stories_page .stories_details .entry_dialogue {
    font-size: 1rem;
  }

  body.stories_page .article_details .sns_datetime {
    flex-wrap: wrap;
    gap: 10px;
  }

  body.stories_page .article_details .entry_lead {
    margin: 1.25rem 0 .75rem;
  }

  body.stories_page .article_details .entry_body .info_wrap,
  body.stories_page .article_details .entry_body .info_border_wrap {
    padding: 24px 16px;
  }

  body.stories_page .article_details .entry_body img {
    max-width: 100%;
  }

  body.stories_page .article_related {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  body.stories_page .article_related .aside_stories_results {
    flex-direction: column;
    gap: 1rem;
  }

  body.stories_page .article_related .aside_stories_result {
    width: 100%;
  }

  body.stories_page .aside_features_results .aside_features_result .thumb,
  body.stories_page .aside_features_results .aside_features_result figure {
    width: 100%;
  }

  body.stories_page .aside_features_results .aside_features_result img.fit {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
  }

  body.stories_page .article_asides .aside_more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 280px;
    margin: 1.5rem auto 0;
  }

  body.stories_page .sub_footer_border .headline {
    margin-top: 30px;
    padding-top: 30px;
  }
}

@media (max-width: 380px) {
  body.stories_page .stories_results .stories_result.s {
    width: 100%;
  }
}
