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

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

/* スクロール時のヘッダーの線（影）を消す */
.fixed-header {
  box-shadow: none !important;
}

/* コンテンツ上部に表示する更新終了アナウンス */
#closure-announce {
	font-size: 18px;
	font-weight: bold;
}

aside:has(#closure-announce) {
	background-color: #fff;
	border-radius: 4px;
	padding: 18px;
}

/* サイドバーのフォントサイズ */
#sidebar {
	font-size: 16px;
}

/* サイドバーウィジェットのタイトルの表示を調整 */
.sidebar h3 {
	padding: 4px 8px;
	-moz-transform: skewx(-10deg);
	-webkit-transform: skewx(-10deg);
	transform: skewx(-10deg);
	background: -moz-linear-gradient(left, #24890d 60%, transparent);
	background: -webkit-linear-gradient(left, #24890d 60%, transparent);
	background: linear-gradient(to right, #24890d 60%, transparent);
	color: #fff;
	font-family: "Noto Serif JP", serif;
	font-weight: normal;
}

/* サイドバーの目次は中央にしない */
.toc-widget-box .toc-center {
	margin-left: 0;
}

/* JetpackのWordPress投稿ウィジェット用 */
.jetpack-display-remote-posts .jetpack-card {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	color: inherit;
	text-decoration: none;
	transition: all 0.3s ease-in-out;
}

.jetpack-display-remote-posts .jetpack-card:hover {
	background-color: #24890d0d;
	transition: all 0.3s ease-in-out;
}

.jetpack-display-remote-posts .jetpack-card img {
	display: block;
	flex: 0 0 120px;
	width: 120px;
	height: 67.5px;
	object-fit: cover;
}

.jetpack-display-remote-posts .jetpack-card-title {
	flex: 1;
	min-width: 0;
	font-size: 16px;
	line-height: 1.5;
}

/* noteからのRSSウィジェット用 */
.sidebar h3 a.rss-widget-feed {
	display: none;
}

.sidebar h3 a.rss-widget-title {
	color: #fff;
	text-decoration: none;
}

.sidebar .widget_rss ul li a.rsswidget {
	padding: 5px 0;
}

.sidebar .widget_rss ul li .rss-date {
	display: block;
	text-align: right;
	font-size: 0.7em;
	line-height: 1;
}


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

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

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