/*
  スマホ・タブレット向けの上書き（2026-11-30 追加）
  パソコン（幅 980px 以上）では何も変えない。
*/
@media screen and (max-width: 980px) {
  html { -webkit-text-size-adjust: 100%; }
  body { min-width: 0 !important; }
  img, iframe, video, table { max-width: 100% !important; }
  img { height: auto !important; }
  iframe { width: 100% !important; }

  /* 外枠の固定幅をやめる */
  #header-inner, #content-inner, #footer-inner {
    width: auto !important; padding-left: 12px; padding-right: 12px; box-sizing: border-box;
  }
  #topL, #topR, #inner-left, #inner-right,
  #content-inner-left, #content-inner-right, #entry-left, #entry-right {
    width: auto !important; float: none !important; margin: 0 0 12px 0 !important;
  }

  /* 画像の枠（固定幅の背景画像）をやめて、白い箱にする */
  .entry, .entryL, .entryR, .content-entry, .content-menu {
    background: none !important; padding-top: 0 !important;
  }
  .entry .body, .entryL .body, .entryR .body, .content-entry .body, .content-menu .body {
    background: #fff !important; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.12);
    padding: 12px 14px !important;
  }
  .entry .bottom, .entryL .bottom, .entryR .bottom, .content-entry .bottom, .content-menu .bottom {
    display: none;
  }

  /* ヘッダーとメニュー：画像のボタンをやめて、文字のボタンを並べる */
  #logo { width: auto !important; }
  #menu { height: auto !important; background: none !important; padding: 6px 0; }
  ul#navigation1, ul#navigation2, ul#navigation1_en, ul#navigation2_en {
    width: auto !important; float: none !important; display: flex; flex-wrap: wrap; gap: 6px;
    margin: 0 0 6px 0 !important; padding: 0 !important;
  }
  ul#navigation1 li, ul#navigation2 li, ul#navigation1_en li, ul#navigation2_en li {
    float: none !important; flex: 1 1 30%;
  }
  ul#navigation1 li a, ul#navigation2 li a, ul#navigation1_en li a, ul#navigation2_en li a {
    width: auto !important; height: auto !important; text-indent: 0 !important;
    background: #eef4f7 !important; color: #1c4a5e !important; text-decoration: none;
    padding: 10px 4px; border-radius: 4px; font-size: 14px; letter-spacing: 0;
  }

  /* トップページのニュース */
  #newsarea { height: auto !important; }
  #newslist { width: auto !important; height: auto !important; max-height: 420px; }
  #btn-news { float: none !important; margin: 6px 0 !important; }

  /* 表・事業紹介の箱 */
  table#company { width: 100% !important; }
  table#company th, table#company td { display: block; width: auto !important; }
  #waku2 .left, #waku2 .right, #waku2 > div { float: none !important; width: auto !important; margin: 0 0 12px 0 !important; }

  /* 足元 */
  #footer-button { position: static !important; float: none !important; margin: 0 0 8px 0 !important; }
  #copyright { text-align: left !important; }

  /* 中の部品が画面の幅をはみ出さないようにする */
  #header-inner *, #content-inner *, #footer-inner * { max-width: 100%; box-sizing: border-box; }
  #header, #content, #footer { overflow-x: hidden; }
  div#sidebar { width: auto !important; }

  /* 言語切り替え・トップの画像・「すべてのニュース」ボタン */
  #language { position: static !important; float: right !important; width: auto !important; margin: 4px 0 0 0 !important; }
  #topL, #topR { height: auto !important; text-align: center; }
  #btn-news { position: static !important; }
}
