@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.2
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/* ヘッダー広告表示対応 */
img.header-site-logo-image {
  text-align: left;
}

/* 基本的な設定 */
.header-ad {
  margin: 0 0 20px;
  width: 15%;
  height: auto;
  max-width: 15%;
  max-height: 100px;
  text-align: center;
  padding-right: 30px;
}

/* 1024px以上 */
@media screen and (min-width: 1024px){

  #header-in {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .tagline {
    width: 100%;
  }

  .header-ad {
    margin: 0 10px 0 0;
  }

  .header-ad .ad-area {
    text-align: right;
  }

}

/* 1200px以上 */
@media screen and (min-width: 1200px){

  .header-ad {
    margin: 0;
  }

}
/**********************
/* 新着記事にNEWマーク
* ********************/
.new_ribbon {
display: inline-block;
position: absolute;
top: -6px;
right: 10px;
margin: 0;
padding: 10px 0 7px;
z-index: 2;
width: 50px;
text-align: center;
color: white;
font-size: 15px;
background-color: #ff7abc; /*リボンの背景色*/
border-radius: 2px 0 0 0;
}

.new_ribbon:before{
position: absolute;
content: '';
top: 0;
right: -5px;
border: none;
border-bottom: solid 6px #f2b3d3; /*リボンの裏側の色*/
border-right: solid 5px transparent;
}
.new_ribbon:after{
content: '';
position: absolute;
left: 0;
top: 100%;
height: 0;
width: 0;
border-left: 25px solid transparent;
border-right: 25px solid transparent;
border-top: 10px solid #ff7abc; /*リボンの下部の色*/
}

/*まとめて消す場合*/
.page .date-tags,
.page .author-info {
    display: none;
}

/*カルーセルとインデックスのサムネイル比揃える*/
.card-thumb.carousel-entry-card-thumb {
width: 100%;
}
.card-thumb.entry-card-thumb {
margin-bottom:10px; /*インデックス画像下余白*/
}
.card-thumb.carousel-entry-card-thumb:before ,
.card-thumb.entry-card-thumb:before {
content:"";
display:block;
padding-top:66.66%; /* 3:2 = 2/3*100 */
}
.card-thumb.carousel-entry-card-thumb img ,
.card-thumb.entry-card-thumb img {
width:100%; height:100%;
object-fit:cover;
font-family: 'object-fit: cover;'; /*IE対策*/
position:absolute;
top:0; left:0;
}

.entry-card-title, .related-entry-card-title {
    font-size: 16px;
    margin: 0 0 5px 0;
    line-height: 1.2;
    font-weight: bold;
}

.navi-in > ul li {
  height: 40px;
  line-height: 40px;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
  .header-ad {
  margin: 0 0 20px;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100px;
  text-align: center;
}

}

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

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

