/*
Theme Name: Beyond Child
Template: beyond_tcd094
Version: 1.0.0
*/

/* Nico Nico Sidebar Styles */
.nico_nico-template-default h2.widget-title {
  display: none;
}

.nico_nico-template-default .widget {
  margin: 0 0 30px -30px;
  padding: 0 0 30px 30px;
  position: relative;
  font-size: 16px;
  border-bottom: 1px solid #ddd;
}

.nico_nico-template-default .widget:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.nico_nico-template-default .nico-backnumber-link a {
  display: block;
  background-color: #f7a81b;
  color: #ffffff;
  border: none;
  max-width: 280px;
  padding: 8px;
  margin-bottom: 24px;
  text-align: center;
  border-radius: 20px;
}

.nico_nico-template-default .nico-backnumber-link a:hover {
  background-color: #ff7600;
}

@media screen and (max-width: 1050px) {
  .nico_nico-template-default #side_col section {
    width: 48%;
  }
}
@media screen and (max-width: 768px) {
  .nico_nico-template-default #side_col section {
    max-width: 100%;
    width: 100%;
  }
  .nico_nico-template-default #side_col .widget.widget_media_image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
  }
}
/* Nico Nico Print*/
/* screen: hide print header row */
#print_layout thead,
#print_layout tfoot {
  display: none;
}

/* Keep existing desktop behavior untouched */
/* Mobile-only overflow fix */
@media screen and (max-width: 767px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }
  #body.nico_nico-template-default,
  #container,
  #print_layout,
  #print_layout tbody,
  #print_layout tr,
  #print_layout td,
  #main_contents,
  #main_col,
  #article,
  .post_content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  /* key fix: prevent 100% + padding overflow */
  #main_contents {
    padding-left: 16px !important;
    padding-right: 16px !important;
    overflow-x: hidden !important;
  }
  #print_layout {
    display: block !important;
    overflow-x: hidden !important;
  }
  #print_layout tbody,
  #print_layout tr,
  #print_layout td {
    display: block !important;
  }
  .post_content,
  .post_content * {
    min-width: 0 !important;
  }
  .post_content img,
  .post_content video,
  .post_content iframe,
  .post_content svg,
  .post_content canvas {
    max-width: 100% !important;
    height: auto !important;
  }
  .post_content table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .post_content a,
  .post_content p,
  .post_content li,
  .post_content span {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
}
@media print {
  @page {
    margin: 16mm 12mm;
  }
  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  /* hide navbar/header + non-print UI */
  #header,
  #global_menu,
  p.logo,
  .logo,
  img.logo_image,
  .meta,
  #footer_box_content,
  #footer_catch,
  #footer_menu,
  #copyright,
  #side_col,
  #bread_crumb,
  #header_lang_button,
  #next_prev_post,
  #related_post_no_image,
  #wpadminbar,
  #header_message {
    display: none !important;
  }
  #print_layout {
    width: 100% !important;
    border-collapse: collapse !important;
  }
  #print_layout thead {
    display: table-header-group !important;
    -moz-column-break-inside: avoid;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  #print_layout thead th {
    text-align: left;
    padding: 0 0 16mm 0;
    border: 0;
  }
  #print_layout tfoot {
    display: table-footer-group !important;
  }
  #print_layout tfoot {
    display: table-footer-group !important;
  }
  #print_footer_text {
    font-size: 10pt;
    color: #666;
    text-align: center;
    padding-top: 4mm;
  }
  #print_header_logo img {
    width: 180px;
    height: auto;
    display: block;
  }
  #container {
    overflow: visible !important;
  }
  #main_col {
    width: 100% !important;
  }
  #main_contents {
    padding: 0 24px !important;
  }
  #main_contents:before {
    display: none !important;
  }
}
#content_builder {
  /* フリースペース */
}
#content_builder .cb_free_space .post_content {
  width: auto;
  max-width: 1030px;
  margin: 0 auto;
  padding: 0 24px;
}
#content_builder .cb_free_space.width_type2 .post_content {
  width: auto;
  max-width: 1030px;
  margin: 0 auto;
  padding: 0 24px;
}
#content_builder body.home #header,
#content_builder body.page-template-page-lp #header {
  background: none;
}
@media only screen and (max-width: 950px) {
  #content_builder .cb_free_space .post_content {
    margin: 0;
  }
}
@media only screen and (max-width: 750px) {
  #content_builder .cb_free_space .post_content {
    margin: 0;
    padding: 0 16px;
  }
  #content_builder .design_button {
    width: 260px !important;
  }
}
@media only screen and (min-width: 1000px) {
  #content_builder .design_button {
    min-width: 300px !important;
  }
}

@media screen and (max-width: 767px) {
  /* Forces the header to stick on scroll without relying on header_fix */
  #header,
  #header_inner {
    background-color: #ffffff !important; /* Change to match your theme's header color */
  }
  #body #header #drawer_menu_button span {
    background: #000 !important;
  }
}
@media screen and (min-width: 768px) {
  #main_contents.annual-plan-layout,
  #main_contents.annual-plan-layout #main_col,
  #main_contents.annual-plan-layout #side_col {
    overflow: visible !important;
  }
  #main_contents.annual-plan-layout .annual-plan-sidebar-inner {
    position: sticky;
    top: 170px;
  }
}
@media screen and (max-width: 767px) {
  #main_contents.annual-plan-layout .annual-plan-sidebar-inner {
    position: static;
  }
}/*# sourceMappingURL=style.css.map */