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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/************************************
** タグリスト
************************************/
.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;
}


/************************************
**     ピックアップ2記事
************************************/


#pickup {
    margin-bottom: 20px;
}
#pickup-title {
    margin: 0.8em 0;
    font-size: 20px;
    font-weight: bold;
    background-color: #00C300;
    color: #fff;
    padding: 0.4em;
    border-radius: 3px;
    text-align: center;
}
.pickup-content {
    display: inline-block;
    margin-right: 10px;
    width: 150px;
    vertical-align: top;
}
.pickup-content:last-child {
    margin-right: 0;
}
.pickup-thumbnail {
    margin: 0 0 10px;
    width: 150px;
    height: 113px;
}
.pickup-thumbnail:last-child {
    margin-right: 0;
}
.pickup-thumbnail img {
    width: 100%;
    height: 100%;
}
#pickup .post-info {
    margin: 0;
    white-space: normal;
    font-size: 12px;
    line-height: 1.6;
}
#pickup .post-info a {
    color: #000;
}
#pickup .post-info a:hover {
    color:#ff0000;
    font-style:normal;
    text-decoration:underline;
}
/* 横スクロール */
.scroll-wrapper {
    position: relative;
}
.scroll-left {
    overflow-x: scroll;
    overflow-y: hidden;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}
.scroll-content {
    display: inline-block;
    white-space: nowrap;
}
/* 左右のボタン */
.leftbutton,.rightbutton {
    font-size: 26px;
    position: absolute;
    top: 40%;
    background-color: #fff;
    color: #000;
    padding: 20px 10px;
}
.leftbutton {
    display: none;
    left: 0;
    border-radius: 0 3px 3px 0;
    box-shadow: 1px 1px 1px #888;
}
.rightbutton {
    right: 0;
    border-radius: 3px 0 0 3px;
    box-shadow: -1px 1px 1px #888;
}


/*--------------------------------
関連記事表示部分（PC記事下）
---------------------------------*/

.k-title {
    margin: 0.8em 0;
    font-size: 20px;
    font-weight: bold;
    background-color: #00C300;
    color: #fff;
    padding: 0.4em;
    border-radius: 3px;
    text-align: center;
}

/* タイトル名 */
#kanren-main {overflow: hidden;} /* ← フロート解除用 */
#kanren-main dd h5 {
	font-size: 16px;
	font-weight: bold;
	padding: 0px;
	margin-bottom: 5px;
}
#kanren-main dt {
	float: left;
	width: 100px;
}
#kanren-main dt img {
	width: 100px;
        height: 100px;
overflow:hidden;
}
#kanren-main dd {
	padding-left: 110px;
}
#kanren-main dl {
        width: 48%; /* ← pxでも%指定でもOK */
        height: 120px; /* ← pxでも%指定でもOK */
	font-size: 12px;
overflow: hidden;
        float:left; /* ← 2列にする為のフロート */
	margin: 5px;
	padding: 15px 0px 15px 0px;
	border-bottom: 2px solid #00C300;
}
#kanren-main :hover { 
	background-color: #F9FAFB; /* ← マウスオンで色を変える */
}
#kanren-main dl:last-child {
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #00C300; 
}
/************************************
** ヘッダー下のラインを消す
************************************/

.tagline {
  border: none !important;
  text-decoration: none !important;
}

/************************************
** コメントを見やすく
************************************/

#recentcomments li {
  margin-bottom: 10px;
  line-height: 1.6;
}

#recentcomments li {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 8px 12px;
  transition: background 0.3s;
}
#recentcomments li:hover {
  background: #f0f8ff;
}
#recentcomments a {
  font-weight: bold;
  color: #0073aa;
  text-decoration: none;
}
#recentcomments a:hover {
  text-decoration: underline;
}
#recentcomments .comment-author-link {
  display: block;
  font-size: 0.9em;
  color: #555;
  margin-top: 3px;
}

.widget_recent_comments .widget-title {
  border-left: 4px solid #0073aa;
  padding-left: 8px;
  font-size: 1.1em;
  margin-bottom: 12px;
}





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

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

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

