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

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

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

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

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





/*ここから追加CSS*/
/* =======================================
 * サイドバーとメインカラムの縦線100%化の最終修正
 * ======================================= */

/* 1. コンテンツエリア全体の高さを画面の高さまで強制拡張 */
#container {
  min-height: 100vh !important;
}

/* 2. メインカラム（#main-wrap）に親要素の高さを継承させ、ボーダーを適用 */
#main-wrap {
  min-height: 100% !important; /* 親要素(#main)の高さを継承 */
  border-right: 1px solid #333 !important; /* 線の太さ、種類、色を指定 */
  box-sizing: border-box !important;
}

/* 3. メインカラムとサイドバーを囲む要素の高さを確保 */
/* #content要素にFlexboxを適用し、子要素(#main, #sidebar)に均等に高さを分配 */
#content {
  display: flex !important;
  flex-direction: row;
  min-height: 100vh !important; /* コンテンツエリア全体を画面高まで広げる */
}

/* 4. サイドバー要素にも高さを確保 */
#sidebar {
  min-height: 100% !important;
}

/* 5. 誤ってボーダーが引かれてしまったタイトルを修正（念のため） */
/* .entry-title-wrapや.entry-titleにボーダーや高さの異常があればリセット */
.entry-title-wrap,
.entry-title {
  height: auto !important;
  border-right: none !important;
}





body {
	margin:0;
	padding:0;
	letter-spacing:1px;
}

#header {
	display:none;
}

#content,.content {
	margin:0;
	padding:0;
}

#sidebar {
	height:auto 0;	
	border-left:2px solid #eeeeee;
	border-left:0;
	border-top:0;
	border-bottom:0;
	text-align:right;
}

.entry-title {
	font-size:30px;
}

.sidebar h2, .sidebar h3 {
	font-size: 1em;
    background-color:#eeeeee;
    padding: 10px 10px 10px 10px;
    margin: 10px 0 10px 0;
}

#archives-2 h3.widget-sidebar-title {
	padding:20px 16px 20px 16px;
}


.widget_new_entries .display-none {
	display: block;
	text-align: right;
}

#footer,.footer,footer-container {
	padding:0;
	margin:0;
}

.footer-bottom {
	margin-top: 0px;
	padding: 8px;
	position: relative;
}

.widget_nav_menu {
	font-weight:bold;
}

.widget_nav_menu li {
	font-weight:bold;
	line-height: 200%;
}

.widget_recent_entries ul li a {
	 margin:0;
 	padding:5px 0 0 0;
	line-height: 120%;
}

.widget_recent_entries ul li span {
 	margin:0;
 	padding:0;
}

.menu-item {
 	margin:0px;
 	padding:0px;
	line-height: 100%;
}

.widget_archive a,.widget_archive span {
 	margin:0px;
 	padding:0px;
	line-height: 100%;
}
.widget_archive {
 	margin:0px;
 	padding:0px;
	line-height: 100%;
}

.page .date-tags,
.page .author-info {
    display: none;
}

.article h1 {
	margin-top: 50px;
	padding:0 0 0 20px;
	border-left:5px solid #ddd;
}

.menu-item {
		font-size:1.1em;
}

.is-style-border-top-box {
	border-top:3px solid #eee;
	box-shadow:none;
}

p {
	margin:0px;
	padding:0px;
}

.archive-title {
	display:none;
}

.footer-widgets-mobile .widget_media_image {
	margin:0;
	padding:10px 0 0 0;
	text-align: center;
}

.responsive-table {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	border: 2px solid #000;
	box-sizing: border-box;
}

.cell {
	border: 1px solid #ddd;
	padding: 20px 0;
	 box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-align: center;
}

.label {
	font-weight: bold;
	font-size:18px;
}
.value {
	font-size: 14px;
}

.has-black-background-color {
	padding:20px 0;
}

/* スマホでは1列に変更 */
@media (max-width: 767px) {
  .responsive-table {
    grid-template-columns: 1fr;
  }
}

.wp-block-table td:nth-child(1) {
	min-width:80px;
}

.cat-item-none {
    display: none !important; 
}

.hide-if-empty {
    display: none !important;
}


/* =======================================
 * 1. フッターを画面横幅100%に強制拡張
 * ======================================= */
.footer-bottom {
  /* floatの解除と幅の強制 */
  clear: both !important;
  width: 100vw !important; /* 画面全体の幅(100vw)に設定 */
  
  /* 画面の左端に合わせるためのマージン補正（重要） */
  margin-left: calc(50% - 50vw) !important; 
  margin-right: calc(50% - 50vw) !important;
  
  max-width: none !important; 
  float: none !important;
  
  /* 背景色の適用 */
  background: #ddd; 
  padding: 15px 0; 
}

/* =======================================
 * 2. サイト名ロゴとフッターナビを非表示にする
 * ======================================= */
.footer-bottom-logo,
.navi-footer,
.logo-footer {
  display: none !important;
}

/* =======================================
 * 3. コピーライトテキストを中央に強制配置
 * ======================================= */
/* 外部コンテナを中央寄せのために調整 */
.footer-bottom-content {
  text-align: center !important; 
  width: 100% !important;
  float: none !important;
  padding: 0 !important; /* 左右のパディングもリセット */
  box-sizing: border-box !important;
}

/* コピーライトテキスト自体を強制的に中央に配置 */
.source-org.copyright {
  display: block !important; /* ブロック要素にして幅いっぱいを使う */
  text-align: center !important; 
  float: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
}


/* =======================================
 * モバイルフッターウィジェットの背景色変更（最終版）
 * ======================================= */
@media screen and (max-width: 599px) {
  
  /* 1. ウィジェットエリア全体を#dddにする */
  /* 親要素に設定されている可能性のある背景色を上書き */
  .footer-widgets-mobile {
    background: #ddd !important;
    padding: 10px 0 !important; /* 上下の余白調整（任意） */
  }

  /* 2. さらに内側のウィジェットコンテナにも適用し、確実にする */
  .footer-mobile {
    background: #ddd !important;
    padding: 0 !important; /* 内部の余白を調整 */
  }

  /* 3. 個々のウィジェットにも適用（画像ウィジェット等） */
  /* HTMLでasideタグとID名が振られている要素です */
  .footer-mobile .widget {
    background: #ddd !important;
    padding: 0 !important; 
    margin: 0 !important;
  }
}

/* =======================================
 * モバイルフッターウィジェットの隙間調整
 * ======================================= */
@media screen and (max-width: 599px) {
  
  /* 1. ウィジェットエリア全体と親要素のマージン・パディングをリセット */
  .footer-widgets-mobile {
    background: #ddd !important;
    padding: 0 !important; 
    margin-bottom: 0 !important; /* 下側のマージンをリセット（重要） */
  }

  /* 2. さらに内側の要素もリセット */
  .footer-mobile {
    background: #ddd !important;
    padding: 0 !important; 
    margin-bottom: 0 !important;
  }
  
  /* 3. コピーライトの直前にある要素の余白もリセット（安全のため） */
  /* ご提示のHTMLではこの部分がコピーライトの直前に来ます */
  .footer-in > .footer-widgets-mobile {
    margin-bottom: 0 !important;
  }
}
/* =======================================
 * モバイルフッター画像の上のパディング調整
 * ======================================= */
@media screen and (max-width: 599px) {
  
  /* モバイルフッターウィジェット内の画像要素（または画像を含む要素）の上部に余白を追加 */
  /* 画像が入っている最も内側のコンテナである.footer-mobileにpadding-topを適用します */
  .footer-mobile {
    padding-top: 20px !important; /* 上部に20pxの余白を追加 */
    padding-bottom: 0 !important; /* 下側の余白はリセットしたまま維持 */
  }
}





.blogttl {
	margin:20px 0 40px 0;
	padding:20px 0;
	font-size:1.4em;
	color:#000;
	background:#eee;
	text-align:center;
}

@media screen and (max-width: 480px){
	.blogttl {
		margin:60px 0 40px 0;
		padding:10px 0;
		font-size:1.4em;
		color:#000;
		background:#eee;
		text-align:center;
	}
}

#content-in {
	width:100%;
}	

/* PCサイズ（1024px以上）での#mainの幅を修正 */
@media screen and (min-width: 1025px){
	#content-in {
		width:auto;
	}
}

textarea {
	max-width:540px;
}	

/* SNSシェアボタンのキャプションを非表示にする（ロゴのみ表示） */
.button-caption {
  display: none !important; /* 優先度を上げるため!importantを使用 */
}