/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* フッターをページ下に固定する */
body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 100%;
  min-height: 100vh;
}

/* メインコンテンツの幅を制限する */
.main_sidebar_container {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  padding: 20px;
  background-color: #ffffff;
  display: flex;

  main {
    flex: 3;
    margin-right: 10px;
  }

  aside {
    flex: 1;
  }

  @media screen and (max-width: 860px) {
    flex-direction: column;

    main {
      margin-right: 0;
      margin-bottom: 20px;
    }
  }
}
