@charset "UTF-8";

/* フッターの隙間を無くす */
html, body {
  height: 100%;
}
body {
  margin: 0;
  min-height: 100dvh; /* iOS/Androidのアドレスバー対策 */
  display: flex;
  flex-direction: column;
}
/* 2) コンテンツ側を押し広げる（single.phpは <main> があるのでコレで十分） */
main {
  flex: 1 0 auto;
}
/* 3) フッターは自動で最下部へ */
footer {
  margin-top: auto;
}
/* 4) 最終要素の下マージンで“スキマ”が出るページ用の保険 */
.main-contents > *:last-child, #contents > *:last-child, .contentsu_ex > *:last-child {
  margin-bottom: 0;
}