/* Compatibility fixes only; the unmodified WordPress theme defines the design. */
body { padding-bottom: 36px; }
/* This five-pixel corner sprite was not preserved; keep the recovered sheet edges. */
.art-sheet:before, .art-sheet:after { content: ''; }
.art-postcontent img { max-width: calc(100% - 30px); height: auto; }
.art-postcontent .wp-block-cover__image-background { max-width: 100%; height: 100%; margin: 0; }
.art-postcontent iframe, .art-postcontent video { max-width: 100%; }
.archive-missing-image { display: block; margin: 8px 0; padding: 8px; border: 1px dashed #b9a58c; color: #66574c; background: #fffaf0; font: 12px/1.5 Arial, sans-serif; text-align: center; }
ul.art-hmenu li:focus-within > ul, ul.art-hmenu li.archive-menu-open > ul { visibility: visible; top: 100%; }
ul.art-hmenu li li:focus-within > ul, ul.art-hmenu li li.archive-menu-open > ul { top: 0; left: 100%; }
.art-hmenu a:focus-visible { outline: 2px solid #8c2020; outline-offset: -2px; }
#osb { padding: 5px 12px !important; background: #fff6e4 !important; color: #6d1f1f !important; border-top: 1px solid #dba456; box-shadow: none !important; font: 12px/1.5 Arial, sans-serif !important; }
#osb a { color: #8c2020 !important; }

@media (max-width: 1232px) {
  html, body { min-width: 0; margin: 0; }
  .art-sheet { width: calc(100% - 16px); max-width: 1200px; margin: 8px auto 0; }
  .art-sheet-body { padding: 8px; }
  div.art-header { height: auto; padding-top: calc((100vw - 32px) * 350 / 1200); }
  .art-header:after { height: calc((100vw - 32px) * 350 / 1200); background-size: 100% auto; }
  .art-logo:empty { display: none; }
  .tel { position: static; padding: 10px 12px; margin: 0; height: auto; font-size: 14px; line-height: 1.5; color: #6d1f1f; text-shadow: none; }
  .art-nav { position: relative; top: auto; margin: 0; background: #fbcd8c; }
  .art-nav-outer { position: static; width: 100%; }
  .art-nav-inner { margin: 0; }
  ul.art-hmenu { float: none; left: 0; top: 0; display: flex; flex-wrap: wrap; }
  ul.art-hmenu > li { float: none; position: static; }
  ul.art-hmenu > li > a { height: auto; padding: 5px 9px; }
  ul.art-hmenu > li > ul { left: 0 !important; right: auto !important; width: 100%; margin: 0; padding: 0; background: #fff9ed; box-shadow: 0 4px 8px #0002; }
  ul.art-hmenu ul a { white-space: normal; height: auto; min-height: 24px; padding: 5px 12px; }
  ul.art-hmenu ul ul { position: static; display: none; margin: 0 0 0 16px; padding: 0; }
  ul.art-hmenu ul li:hover > ul, ul.art-hmenu ul li:focus-within > ul, ul.art-hmenu ul li.archive-menu-open > ul { display: block; }
}

@media (max-width: 800px) {
  .art-content-layout, .art-content-layout-row, .art-layout-cell { display: block; width: 100%; }
  .art-content-layout .art-sidebar1 { width: 100%; }
  .art-post-body { padding: 10px; }
  .art-postcontent { overflow-wrap: anywhere; }
  .art-postcontent table { display: block; max-width: 100%; overflow-x: auto; }
  .art-postcontent div[style*="min-width"] { min-width: 0 !important; max-width: 100%; }
  .art-postcontent div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .art-postcontent img { float: none !important; }
  .bpla-banner { display: block !important; }
  .bpla-banner > div[style*="min-width"] { margin: 12px 0; }
  .bpla-banner > a { display: inline-block; }
  #post-4245 table[style*="table-layout: fixed"] tbody,
  #post-4245 table[style*="table-layout: fixed"] tr,
  #post-4245 table[style*="table-layout: fixed"] td { display: block; width: 100% !important; box-sizing: border-box; }
  .art-sidebar1 img { max-width: 100%; height: auto; }
}
