@charset "utf-8";
/* iPhone/スマホ向け上書き。PC幅(1100px超)では元のレイアウトのまま */
@media (max-width: 1100px) {
  html, body { height: auto !important; width: auto !important; -webkit-text-size-adjust: 100%; }
  body { font-size: 16px; line-height: 1.55; padding-bottom: calc(64px + env(safe-area-inset-bottom)); overflow-x: hidden; }
  div#contents { height: auto !important; min-height: 0 !important; }

  /* ヘッダ */
  div#header_bg { height: auto; padding: 6px 0 4px; }
  div#header { width: auto; height: auto; padding: 0 8px; }
  div#header img { width: 100%; max-width: 650px; height: auto; }

  /* 7つのメニュー: 折り返し */
  div#menu_bg { height: auto; }
  div#menu { width: auto; }
  div#menu ul { display: flex; flex-wrap: wrap; }
  li#menu1, li#menu2, li#menu3, li#menu4, li#menu5, li#menu6, li#menu7 {
    float: none !important; display: block; flex: 1 1 25%; width: auto !important; height: auto !important;
    padding: 0 !important; font-size: 13px; box-sizing: border-box; border: 1px solid #fff; }
  div#menu ul a { padding: 11px 2px; line-height: 1.25; }

  /* 左メニュー(番台一覧など)は本文の上に全幅で */
  [id^="leftclm_"] { float: none !important; width: auto !important; display: block !important;
    border-left-width: 8px !important; padding-bottom: 0 !important; }
  div#leftclm { margin: 6px 8px 6px 8px; }
  div#leftclm li { padding: 11px 6px 11px 0; line-height: 1.4; }
  details.m-nav > summary { padding: 12px 6px; font-weight: bold; list-style: none; cursor: pointer; }
  details.m-nav > summary::before { content: "▶ "; font-size: 12px; }
  details.m-nav[open] > summary::before { content: "▼ "; }
  details.m-nav > summary::-webkit-details-marker { display: none; }

  /* 本文 */
  div#body_bg { display: block !important; margin: 0 !important; }
  div#body { padding: 8px 10px 20px !important; overflow-x: auto; }
  img { max-width: 100%; height: auto; }
  iframe { max-width: 100%; }
  iframe[src*="youtube"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  h1 { font-size: 20px; } h4 { font-size: 16px; }

  /* 表: Word書き出しのpt固定幅を解除。広い表は横スクロール */
  table { max-width: none; }
  div#body table { width: auto !important; max-width: 100%; }
  td, th { width: auto !important; height: auto !important; min-width: 0; padding: 4px 6px !important;
    overflow-wrap: anywhere; font-size: 14px; }
  table#faq, table#errors, table#board, table#parts, table#dojo { width: 100% !important; }
  table#errors td a, table#board td a, table#parts td a { white-space: nowrap; }   /* 番号リンクを途中で折り返さない */
  .m-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* 下部パンくず(元は画面下に固定) */
  div#footer_bg { position: static !important; width: auto !important; height: auto !important; padding: 8px 10px !important; }
  div#footer { width: auto !important; }
  div#footerBread, div#footerVari { float: none !important; display: block !important; width: auto !important;
    text-align: left !important; font-size: 13px; line-height: 1.6; }
  a { overflow-wrap: anywhere; }

  /* 表示切替(PCのホバー)→ タップ */
  .hov { cursor: pointer; }
  .hov img { width: 100% !important; height: auto !important; }
  .hov.on > .a { display: block; }
  .hov.on > .b { display: none; }
  .hov:hover > .a { display: none; }
  .hov:hover > .b { display: block; }
  .hov.on:hover > .a { display: block; }
  .hov.on:hover > .b { display: none; }

  /* トップページ */
  div#top { margin-top: 10px !important; }
  img.top { width: 100%; max-width: 700px; height: auto; }
  div#top p img { width: 29%; max-width: 150px; height: auto; margin: 4px 1.5% !important; }
  div#top table { width: 100% !important; font-size: 13px; }
}

/* 検索結果から開いたFAQの行を強調 */
tr:target > td, tr:target > th { background: #fff27a !important; }
tr:target { scroll-margin-top: 8px; }

@media print { #m-bar { display: none !important; } }
