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

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

/************************************
** タグリスト
************************************/
.fa-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.fa-tag-list li a {
  display: inline-block;
  background: transparent; /* 背景を透明に */
  border: 1px solid #aaa;
  border-radius: 16px;
  padding: 4px 10px;
  font-size: 0.8em; /* 少し小さく */
  text-decoration: none;
  color: #333;
  transition: 0.2s;
}

.fa-tag-list li a:hover {
  background: rgba(200, 200, 200, 0.2); /* ホバー時にほんのりグレー */
  border-color: #666;
}

.fa-tag-list i {
  margin-right: 4px;
  font-size: 0.85em;
  color: #555;
}

/************************************
** お気に入り
************************************/

ul.wpfps{
margin: 0px 0px;
padding: 0px 0px;
}

li.wpfps{
  display: inline-block;/*inline-blockにします*/
  width: 260px;/*幅も指定できる*/
  height: 250px;/*高さも指定できる*/
  overflow: hidden;
  padding: 0px 0;/*余白も指定できる*/
  margin: 0px 0;/*余白も指定できる*/
  vertical-align: left;/*縦の表示位置も指定できる*/
  background: #f3f4f5;/*背景を水色に*/
  font-size:14px;

}

li.wpfps img{
  width: 250px;/*幅も指定できる*/
  height: 150px;/*高さも指定できる*/  


}



/* リストマークを消す */
.latest-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 各記事を横並びに */
.latest-post-item {
  display: flex;
  align-items: flex-start; /* 上揃え */
  gap: 15px;               /* 画像とテキストの間隔 */
  margin-bottom: 20px;
}

/* サムネイル */
.latest-post-thumb img {
  width: 120px;   /* 好みで調整 */
  height: 80px;   /* 好みで調整 */
  object-fit: cover;
  border-radius: 4px; /* 角丸にしたい場合 */
}

/* タイトル＋抜粋部分 */
.latest-post-content {
  flex: 1;
}

.latest-post-title {
  margin: 0 0 5px;
  font-size: 1.1em;
}

.latest-post-excerpt {
  margin: 0;
  color: #555;
  font-size: 0.9em;
}


/* PC・タブレットでは横並び */
.latest-post-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* サムネイル */
.latest-post-thumb img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

/* スマホ（幅768px以下）の場合は縦並びに変更 */
@media (max-width: 768px) {
  .latest-post-item {
    display: block; /* flexを解除して縦並びに */
  }
  .latest-post-thumb img {
    width: 100%;   /* 横幅いっぱいに */
    height: auto;  /* 縦横比を維持 */
    margin-bottom: 10px;
  }
}


/************************************
**見出し
************************************/
.article h3 {
  font-size: 20px !important;/*文字のサイズ*/
  border-left: 3px solid #FF0000;/*左線*/
  padding: .5em .7em;/*余白*/
  color: #323232;
  margin-bottom: 15px;
  border-top: none;
  border-bottom: none;

}

.article h4 {
  font-size: 20px !important;/*文字のサイズ*/
  border-left: 3px solid #FFF;/*左線*/
  padding: .5em .7em;/*余白*/
  color: #323232;
  margin-bottom: 15px;
  border-top: none;
  border-bottom: none;
}


/* ノートブック本体 */
.notebook {
    position: relative;
    background-color: #fff0f5;
    color: #444;
    font-size: 16px;
    border: 1px solid #eebbcb;
    padding: 10px 20px;
    line-height: 2.0em;
    background-image: linear-gradient(transparent 1.9em, #d8aeb5 1.9em, #d8aeb5 2em);
    background-size: 100% 2em;
    background-position: 0 10px;
    border-radius: 8px;
    margin-top: 110px;
}

/* 段落要素のマージンをリセット */
.notebook p {
    margin: 0;
    line-height: 2.0em;
}

/* キャラクターアイコン（疑似要素で生成） */
.notebook::before {
    content: '';
    position: absolute;
    left: 20px;
    top: -110px;
    width: 100px;
    height: 100px;
    border: 2px solid #eebbcb;
    border-radius: 8px;
    background-color: #fff;
    background-image: url('https://nandemo.withrun.org/wp-content/themes/cocoon-child-master/pet2.jpg');
    background-size: cover;
    background-position: center;
}

/* 吹き出しの三角形（上側） */
.notebook::after {
    content: '';
    position: absolute;
    left: 20px;
    top: -11px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 11px 10px;
    border-color: transparent transparent #fff0f5 transparent;
    filter: drop-shadow(0 -1px 0 #eebbcb);
}


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

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

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