/*
Theme Name:Aaai Child
Theme URI:
Description:
Template:every_tcd075
Author:
Author URI:https://aaai.jp/
Version:0.0.1
*/
/* Common */
#footer {
	background: #ffffff;
}
.post_content h2 {
    color: #003973;
    font-weight: 600;
    text-align: center;
    background: #f5f5f5;
    border-radius: 2rem;
    line-height: 1.5rem !important;
    padding: 1rem 0 !important;
}
/* SideBar */
#custom_html-2 .post_content ul {
	list-style: none !important;
	margin-left: 0 !important;
}
/* Home */
.home .banner_list {
    display: flex;
    justify-content: center;
	text-align: center;
}
/* 推薦図書20・外部サイト17 */
.postid-17 #main_col > .recipe_free,
.postid-20 #main_col > .recipe_free {
  padding: 1rem;
  border: solid 1px;
  box-sizing: border-box;
}
.postid-20 #main_col > .recipe_free:nth-last-child(2) {
	border: 0;
}
@media screen and (min-width:950px) {
  /* 親をflexに */
  .postid-17 #main_col,
  .postid-20 #main_col {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  /* 最初のボックス */
  .postid-17 #main_col > #recipe_main_content,
  .postid-20 #main_col > #recipe_main_content {
    flex: 0 0 100%;
  }

  /* 最後の2つのボックス */
  .postid-20 #main_col > .recipe_free:nth-last-child(-n+2),
  .postid-20 #main_col > #next_prev_post {
    flex: 0 0 100%;
  }
  /* 最後の1つのボックス */
  .postid-17 #main_col > .recipe_free:nth-last-child(-n+1),
  .postid-17 #main_col > #next_prev_post {
    flex: 0 0 100%;
  }
  /* 間のボックスは2列 */
  .postid-17 #main_col > .recipe_free:not(:nth-last-child(-n+1)),
  .postid-20 #main_col > .recipe_free:not(:nth-last-child(-n+2)) {
    flex: 0 0 calc(50% - 5px);
  }
}
