@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){
  /*必要ならばここにコードを書く*/
}

/* ==================================================================
 * 賢威8 から移植したユーティリティクラス（2026-08-25 テーマ移行）
 *
 * 本文中で使われているが Cocoon には無いクラスのみを移植した。
 * 対象は実際に使用されている13クラスに限定（未使用のものは持ち込まない）。
 * 出典: keni80_wp_standard_all_201908011510/advanced.css
 *
 * 本文からこれらのクラスを一掃できたら、このブロックは削除してよい。
 * ================================================================== */

/* 文字装飾 */
.red{ color: #e00000!important; }
.b{ font-weight: bold!important; }
.f16em{ font-size: 1.6em!important; }

/* マーカー（下半分を塗る蛍光ペン風） */
.line-yellow{ background: linear-gradient(transparent 50%, #fff499 50%); }
.line-lime{   background: linear-gradient(transparent 50%, #aae59e 50%); }
.line-blue{   background: linear-gradient(transparent 50%, #9ddff1 50%); }
.line-pink{   background: linear-gradient(transparent 50%, #f7c2e1 50%); }
.line-orange{ background: linear-gradient(transparent 50%, #f7d999 50%); }

/* 注記（ぶら下げインデント） */
.note{
	display: block;
	padding-left: 1em;
	text-indent: -1em;
}

/* 参照リンク */
.link-ref{
	margin-bottom: 0;
	font-size: 1.4rem;
	text-align: right;
}

/* ボックス */
.box_style{
	margin: 0 0 30px;
	font-size: 1.8rem;
}
.box_style p:last-child{ margin-bottom: 0; }
.box_style_pink{
	margin-bottom: 30px;
	padding: 6px;
	background-size: 4px 4px;
	background-repeat: repeat;
	font-size: 1.4rem;
	background-image: linear-gradient(
		-45deg,
		#fff 25%,
		#f48cc0 25%, #f48cc0 50%,
		#fff 50%, #fff 75%,
		#f48cc0 75%, #f48cc0
	);
}
.box_style_pink .box_inner{ padding: 15px; background-color: #fffafd; }
.box_style_pink .box_style_title{
	margin: -8px 0 5px -27px;
	color: #fff;
	line-height: 1.4;
}
.box_style_pink .box_style_title span{ background-color: #f48cc0; }
.box_style_title span{
	position: relative;
	display: inline-block;
	padding: 5px 10px;
}

/* ==================================================================
 * ドメイン共通セクションナビ（2026-08-26）
 * 本体 / lettercodes / kabuyu を横断するための細いバー。
 * HTMLは cocoon-child-master/tmp-user/body-top-insert.php にある。
 * 3サイトで同一の定義にすること。
 * ================================================================== */
.section-switcher{
	background: #f5f6f7;
	border-bottom: 1px solid #e0e2e5;
	font-size: 13px;
}
.section-switcher ul{
	display: flex;
	flex-wrap: wrap;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}
.section-switcher li{ margin: 0; }
.section-switcher a,
.section-switcher span{
	display: block;
	padding: .55em 1.1em;
	color: #555;
	line-height: 1.4;
	text-decoration: none;
}
.section-switcher a:hover,
.section-switcher a:focus{
	background: #e9ebed;
	color: #111;
}
.section-switcher .is-current span{
	color: #111;
	font-weight: 700;
	box-shadow: inset 0 -2px 0 #0a6ebd;
}
@media (max-width: 480px){
	.section-switcher{ font-size: 12px; }
	.section-switcher a,
	.section-switcher span{ padding: .5em .7em; }
}

/* ==================================================================
 * 古い記事への日付注記（2026-08-26）
 * HTMLは functions.php の kokuken_stale_content_notice() が生成。
 * ================================================================== */
.stale-notice{
	margin: 0 0 1.6em;
	padding: 1em 1.2em;
	background: #fff8e5;
	border: 1px solid #f0d48a;
	border-left: 4px solid #e0a800;
	border-radius: 3px;
}
.stale-notice__head{
	margin: 0 0 .4em;
	font-weight: 700;
	font-size: 1.05em;
	color: #7a5b00;
}
.stale-notice__body{
	margin: 0;
	font-size: .92em;
	line-height: 1.7;
	color: #5a4a1e;
}
