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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/*トップバナー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:#06b1ee;
border-radius: 30px;
height: 50px;
}
.search-box .search-submit {
top: 0;
right: 0px;
height: 100%;
width: 60px;
color: #06b1ee;
}

/*見出し*/ 
.article h2, .sidebar h3 {
  position: relative;
  padding: 10px 15px; /* 内側の余白（左に余裕を持たせる） */
  background-color: #06b1ee; /* 見出し全体の背景色 */
  border-bottom: none;  
	color: #fff;
  /* 左側に水色の縦ラインを追加 */
  border-left: 8px solid #fff304; 
}

.article h3 {
  all: unset; /* デフォルトのデザインを完全にリセット */
display: block; /* 幅いっぱいに適用 */
  border-bottom: 3px solid #06b1ee;
	margin-bottom: 10px; /* 下に少し余白を追加 */}

.article h4, .article h5, .article h6,#toc{
	border-color:#06b1ee;
}

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

/*ページネーション*/
.pagination-next-link {
	display: none;
}
.page-numbers {
  color: #06b1ee;
  border: 1px solid #06b1ee;
  border-radius: 50%;
  text-align: center;
  width: 3em;
  height: 3em;         /* ← 高さを追加 */
  line-height: 3em;    /* ← 高さと同じにする */
  display: inline-block;
  font-size: 1em;       /* 必要に応じて調整 */
}

.pagination .current { /*現在のページ*/
	background-color: #06b1ee;
         color: #fff;
}

.page-numbers.dots { /*ドット「…」の部分*/
	opacity: 1; /* 透明度が問題なら明示的に設定 */
    background: none;
    color: #06b1ee; /* ドットを見やすくする色 */
    font-size: 1em; /* スマホでもドットが見える大きさ */

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

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


/* 目次上下余白 */
#toc {
  border: 2px solid #06b1ee; /* 外枠の色 */
  padding: 10px; /* 内側の余白を追加 */
  margin-top: 50px;
  margin-bottom: 50px;
  position: relative; /* 子要素の配置調整用 */
}

.toc-title {
  background-color: #06b1ee;
	color: #fff;
  padding: 5px; /* 内側の余白を適用 */
  margin: -10px -10px 0 -10px; /* 上と左右を #toc にピッタリくっつける */
  text-align: center; /* 文字を中央揃え */
  font-weight: bold; /* 文字を太字に */
  display: block; /* ブロック要素に */
  box-sizing: border-box; /* パディングを含めて幅を計算 */
}

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

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

/*サイドバーアイキャッチ高さ */
.widget-entry-card-thumb img {
		width: 100%;
	height: 80px;
	object-fit: cover;
	object-position: center;
}

/*黄色マーカー差し替え*/
.marker { 
    background: linear-gradient(transparent 60%, #FFFF00 60%);
}
/*サイドプロフィール*/
.author-name a {
    text-decoration: none; /* アンダーバーを削除 */
    color: gray; /* グレーに変更 */
    font-weight: bold; /* 太文字に変更 */
}

/* トップ画像 */
.top-image{
    display: block;
    margin: -20px;
    width: 100vw; 
   margin-left: calc(50% - 50vw);
   margin-top: -20px;
}

top-image img {
    width: 100%; 
    height: auto; 
}

/* トップページのタブ（選択前） */
.index-tab-button {
  color: #808080;
  font-size: 16px !important;
  background: transparent !important;
  border: none !important;
  position: relative;
  text-align: center;
  padding: 10px 0;
}

/* アンダーラインの設定（選択前） */
.index-tab-button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #b3e5fb; /* 薄い青 */
  transition: background-color 0.3s ease, height 0.3s ease;
}

/* トップページのタブ（選択後） */
#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: #06b1ee !important;              /* 選択中の文字色 */
  background: #e0f7ff !important;         /* 選択中の背景色（やや淡い） */
  font-weight: bold;
}

/* 選択後のアンダーライン（色を変更） */
#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 {
  height: 3px;
  background-color: #06b1ee;
}

/* タブの横並び調整 */
.index-tab-buttons {
  display: flex;
  justify-content: space-between;
}

/*背景色横幅一杯*/
.haikei {
  background: #e1f5fd;
  margin: 0 calc((100% - 100vw) / 2);
padding: 35px 0 30px; /* padding-bottom を大きくして余白を増やす */
}
	
.haikei > h2 {
  margin: 0 calc((100% - 100vw) / 2);
  padding: 25px calc((100vw - 1142px) / 2) 15px;
	background: #e1f5fd;
}

.haikei > p,
.haikei > div,
.haikei > h3 {
  margin-left: auto;
  margin-right: auto;
  max-width: 1142px;
}

@media screen and (max-width: 1202px) {
  
  .haikei > h2 {
    padding: 25px calc((100vw - 100%) / 2) 15px;
  }
}

@media screen and (max-width: 768px) {
  
  .haikei {
    padding: 10px 1em;
  }
  
  .haikei .column-wrap {
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  
  .haikei > h2 {
    padding: 10px calc((100vw - 100%) / 2) 8px;
  }
}

@media screen and (min-width: 768px) {
    #metaslider-id-193 {
        width: 580px !important;
        margin: 0 auto;
    }
}

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

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

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