@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.3
*/

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

.icon-dark-color a {
    color: #000000 !important; /* ここに好きな色コードを入れてください */
}

/* フォント設定（修正済） */
@font-face {
  font-family: 'inknut-antiqua';
  font-style: normal;
  font-weight: 400;
  src: url(InknutAntiqua-Regular.ttf) format('truetype');
}

/* 記事カード全体の設定：枠線と影 */
.ect-vertical-card .entry-card-wrap {
  max-width: 100%;
  box-shadow: 0 2px 4px rgb(0 0 0 / 25%);
  border-radius: 3px;
}

.entry-card {
  position: relative;
  overflow: hidden;
}

/* カテゴリーラベルとコメント数を非表示 */
.entry-card .cat-label,
.su-posts-default-loop .su-post-comments-link {
  display: none;
}

/* サムネイルを強制的に正方形にする（共通） */
.entry-card-thumb.card-thumb {
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  display: block !important;
}

.entry-card-thumb.card-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* スマホ表示での調整（2列表示） */
@media screen and (max-width: 599px) {
  #list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .entry-card-wrap {
    width: 48% !important;
    margin-bottom: 15px !important;
  }

  .entry-card-snippet {
    display: none;
  }
  
  .entry-card-content {
    padding: 8px 5px !important;
  }
  
  .entry-card-title {
    font-size: 14px !important;
    line-height: 1.4;
  }
}

/* グローバルメニューのフォントサイズ */
.navi-in .menu-header .item-label {
  font-size: small;
}

/* 見出しデザインのリセット（grayish用） */
.article h3, .article h4, .article h5, .article h6 {
  background-color: transparent;
  border: none;
  padding: 0;
  margin: 0;
  line-height: normal;
  position: relative;
}

.article h3::before, .article h4::before {
  content: none;
  border: none;
}

/* H5（右寄せ矢印） */
.article h5 {
  font-size: small;
  font-family: "Inknut Antiqua", serif;
  font-weight: 300;
  padding: 0 25px;
  text-align: right;
}

.article h5:before {
  position: absolute;
  content: '';
  right: 0;
  bottom: 0;
  width: 15px;
  height: 15px;
  background-color: #c8c8c8;
  clip-path: polygon(0% 0%, 0% 100%, 100% 100%);
}

.article h5:after {
  position: absolute;
  content: '';
  right: 15px;
  bottom: 0;
  width: calc(40% - 15px);
  border-bottom: solid 4px #c8c8c8;
}

/* H6（左寄せ矢印） */
.article h6 {
  font-size: small;
  font-family: "Inknut Antiqua", serif;
  font-weight: 300;
  padding-left: 25px;
}

.article h6:before {
  position: absolute;
  content: '';
  left: 0;
  bottom: 0;
  width: 15px;
  height: 15px;
  background-color: #c8c8c8;
  clip-path: polygon(100% 0%, 100% 100%, 0% 100%);
}

.article h6:after {
  position: absolute;
  content: '';
  left: 15px;
  bottom: 0;
  width: calc(40% - 15px);
  border-bottom: solid 4px #c8c8c8;
}

/*コメント非表示*/
.su-posts-default-loop .su-post-comments-link { display:none; }


