/* Static homepage adjustments for small screens */
.container { width: min(100%, 800px); box-sizing: border-box; }
#index-header img { display: block; width: 100%; height: auto; }
#index-info img, #index-main > section > img { max-width: 100%; height: auto; }
#index-info .static-info { padding: 10px 6px; line-height: 1.6; }
#index-menu { box-sizing: border-box; }
#index-main { box-sizing: border-box; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 8px 0; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mext-heading { margin-top: 16px; }
.static-latest { margin: 24px 0; }
.static-latest p { line-height: 1.7; }
.footer-banners { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.footer-banners img { max-width: min(100%, 280px); height: auto; max-height: 90px; object-fit: contain; }
#index-footer { height: auto; min-height: 160px; }
@media (max-width: 800px) {
  .container { border: 0; }
  #index-menu, #index-main { float: none; width: 100%; }
  #index-menu { padding: 10px; }
  #index-menu ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
  #index-menu li.title { flex: 1 1 145px; margin: 0; line-height: 1.5; }
  #index-main { padding: 16px; }
  #index-footer { padding: 18px 14px; }
}
@media (max-width: 480px) {
  #index-menu li.title { flex-basis: 100%; }
  #index-info { padding: 8px 12px; }
  #index-info table tr td { font-size: 13px; }
}
