/* Preserve the 990px portal proportions; distribute extra width 70/30. */
@media screen and (min-width: 990px) {
 #header #h_center, #top_navi #c_top_navi, #content_main, #footer {
  width: min(calc(100% - 20px), 1280px); margin-left: auto; margin-right: auto;
 }
 #header #h_center, #footer { text-align: center; }
 #top_navi #c_top_navi { display: flex; justify-content: center; align-items: center; }
 #top_navi #c_top_navi .navidiv, #top_navi #c_top_navi .top_navi_right_images { float: none; }
 #header #h_center > a > img { max-width: 100%; height: auto; }
 #content_main {
  display: grid;
  grid-template-columns: 170px calc(488px + (100% - 990px) * .7) calc(190px + (100% - 990px) * .3) 120px;
  grid-template-rows: min-content 1fr;
  gap: 7px;
  align-items: start;
  background: none;
  overflow: visible;
 }
 #content_main #c_left, #content_main #c_center, #content_main #c_rightw,
 #content_main #c_right, #content_main #c_banner {
  float: none; width: auto; min-width: 0; margin: 0;
  background: #fff; box-shadow: inset 0 0 0 1px #d37776;
 }
 #content_main #c_left { grid-column: 1; grid-row: 1 / span 2; align-self: stretch; }
 #content_main #c_center { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; }
 /* The compressed lists retain their original span over columns 3 and 4. */
 #content_main #c_rightw { grid-column: 3 / span 2; grid-row: 1; }
 #content_main #c_right { grid-column: 3; grid-row: 2; align-self: stretch; }
 #content_main #c_banner { grid-column: 4; grid-row: 2; align-self: stretch; }
 #content_main .LN_title { background-color: #cc3333; background-position: right center; }
 #content_main .text_short, #content_main .text_long { overflow-wrap: anywhere; }
 #content_main .text_short img, #content_main .text_long img { max-width: 100%; height: auto; }
 .portal-column-end, .portal-content-end { display: none; }
}
