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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/*サイドプロフィール*/
.author-name a {
    text-decoration: none; /* アンダーバーを削除 */
    color: gray; /* グレーに変更 */
    font-weight: bold; /* 太文字に変更 */
}

/*トップバナーPC４列*/
.recommend-2{
	display:flex;
}
.recommend-2 a img {
	display: block;
	padding: 10px 4px 0 4px;
	width: 100%;
}

/*トップバナースマホ２列*/
.recommend-3{
	display:flex;
}
.recommend-3 a img {
	display: block;
	padding:4px 2px 0 2px;
	width: 100%;}

/*検索窓*/
.search-box .search-edit {
font-size: 14px;
padding: 5px 20px;
border-color:#049BE5;
border-radius: 30px;
height: 50px;
}
.search-box .search-submit {
top: 0;
right: 0px;
height: 100%;
width: 60px;
color: #049BE5;
}

/* 記事概要 上下30px、左右40px*/
.post-summary{
	background-color: #F2F9FF;
	padding: 15px;
	border: 1px solid #F2F9FF;
}

/*見出し*/ 
.sidebar h3 {
  position: relative;
  padding: 5px;
  background-color: #049BE5; /* 水色背景 */
  color: #ffffff; /* 白文字 */
}

.article h2 {
  position: relative;
  padding: 3px;
  background-color: #F2F9FF; /* 水色背景 */
	font-weight:600;
}

.article h3,.article h4, .article h5, .article h6,#toc{
	border-color:#049BE5;
}

.article h3{
	border-right:unset;
	border-bottom:unset;
	border-top:unset;
	border-left: solid 4px #049BE5;
}

/*見出し太さ*/
.article h1,.article h3,.sidebar h3, #archive-title{
	font-weight:500;
}

/*ページネーション*/
.pagination-next-link {
	display: none;
}
.page-numbers { /*通常時*/
	color: #049BE5;
  border: 1px solid #049BE5;
	border-radius: 50%;
}
.pagination .current { /*現在のページ*/
	background-color: #049BE5;
         color: #fff;
}
.page-numbers.dots { /*ドット「…」の部分*/
	opacity: 1;
	background: none;

}
.pagination a:hover { /*マウスホバー時*/
	background-color: #049BE5;
        color: #fff;
}

@media (max-width: 768px) {
    .pagination .page-numbers.dots {
        display: inline; /* ドットを表示する */
    }
}

/* 目次上下余白 */
#toc {
	margin-top: 50px;
	margin-bottom: 50px;
}

/*cat-label（カテゴリラベル）の位置と文字*/
.cat-label
 {	
top: 0%;	
left: 0%;	
line-height: 1.8;	
font-size: 0.67em;	
font-weight: 500;
	 border: 0;
	 background-color: #049BE5
}

/*サイドバーアイキャッチ高さ */
.widget-entry-card-thumb img {
		width: 100%;
	height: 80px;
	object-fit: cover;
	object-position: center;
}
/*480px以下*/
@media screen and (max-width: 480px){
	/* 記事一覧アイキャッチ高さ */
	.card-thumb img {
		width: 100%;
	height: 80px;
	object-fit: cover;
	object-position: center;
}
}
.top-3 {
  display: flex;
  gap: 20px; /* 要素間の余白 */
  justify-content: center; /* 横並びの位置調整 */
  align-items: flex-start; /* 上揃え */
}

.top-3 a {
  display: block; /* ブロック要素化 */
}

.top-3 img {
  max-width: 100%; /* 画像が親要素を超えないようにする */
  height: auto; /* アスペクト比を保持 */
}

/* トップページのタブ（選択前） */
.index-tab-button {
    color: #333333;
    font-size: 16px!important;
    background: #fff!important;
    border: none!important;
    position: relative;
    flex: 1; /* 均等な幅 */
    text-align: center; /* テキスト中央揃え */
}

/* 未選択タブのアンダーライン（黒） */
.index-tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0; /* 左端から開始 */
    width: 105%; /* タブ全体の幅 */
    height: 2px;
    background-color: #000; /* 黒色 */
}

/* トップページのタブ（選択後） */
#index-tab-1:checked~.index-tab-buttons .index-tab-button[for=index-tab-1],
#index-tab-2:checked~.index-tab-buttons .index-tab-button[for=index-tab-2],
#index-tab-3:checked~.index-tab-buttons .index-tab-button[for=index-tab-3],
#index-tab-4:checked~.index-tab-buttons .index-tab-button[for=index-tab-4] {
    /* 選択後の文字色 */
    color: #049BE5!important;
    /* 選択後の背景色 */
    background: #fff!important;
}

/* 選択されたタブのアンダーライン（水色） */
#index-tab-1:checked~.index-tab-buttons .index-tab-button[for=index-tab-1]::after,
#index-tab-2:checked~.index-tab-buttons .index-tab-button[for=index-tab-2]::after,
#index-tab-3:checked~.index-tab-buttons .index-tab-button[for=index-tab-3]::after,
#index-tab-4:checked~.index-tab-buttons .index-tab-button[for=index-tab-4]::after {
    background-color: #049BE5; /* 水色 */
    height: 4px; /* 太さを少し強調 */
}



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

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

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