@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Template:   cocoon-master
Version:    1.0.8
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** おすすめ記事（タイトルあり）
************************************/
.recommend{
  display:-webkit-box;
  	display:-ms-flexbox;
  display:flex;
}
.recommend a{
  background-position: center;
  background-size: cover;
  width: 100%;
  height: 230px;
  text-decoration:none;
}
.recommend a:nth-of-type(1){
  background-image: url(https://buddhisminimalist.com/wp/wp-content/uploads/2020/03/water.jpg); /* 一番左 */
}
.recommend a:nth-of-type(2){
  background-image: url(https://buddhisminimalist.com/wp/wp-content/uploads/2019/10/靴下.jpg); /* 左から二番目 */
}
.recommend a:nth-of-type(3){
  background-image: url(https://buddhisminimalist.com/wp/wp-content/uploads/2019/10/DSC_1011rd-li.jpg); /* 左から三番目 */
}
.recommend a:nth-of-type(4){
  background-image: url(
  https://buddhisminimalist.com/wp/wp-content/uploads/2019/09/DSC_0926-e1569316845187.jpg); /* 左から四番目 */
}
.recommend a article:hover{
  background: rgb(100, 100, 100,0.3);
  transition: all .25s ease-out;
}
.recommend a article{
  display:-webkit-box;
  display:-ms-flexbox;
  display:flex;
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items:flex-end;
  height:100%;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}
.recommend a article h2{
  color: #fff;
  font-size: 16px;
  letter-spacing:0.7px;
  text-decoration: none;
  padding: 20px;
  line-height: 1.5;
  text-shadow: 0 0 7px rgba(0,0,0,1);
  font-size: 16px;
}
@media screen and (max-width: 1023px){
  .recommend{
    -ms-flex-wrap: wrap;
    flex-wrap:wrap;
  }
  .recommend a{
    width:50%;
  }
}
@media screen and (max-width: 480px){
  .recommend a{
    height:120px;
  }
  .recommend a article h2{
    line-height:1.7;
    font-size:10px;
    padding: 15px;
  }
}


/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1240px以下*/
@media screen and (max-width: 1240px){
  /*必要ならばここにコードを書く*/
}

/*1030px以下*/
@media screen and (max-width: 1030px){
  /*必要ならばここにコードを書く*/
}

/*768px以下*/
@media screen and (max-width: 768px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
