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

/************************************
** 子テーマ用のスタイルを書く
************************************/
:root {
	--cocoon-text-color: #081a09; /* note#08131a 基本文字色 */
	--cocoon-basic-border-radius: 7px;
    --cocoon-badge-border-radius: 5px;
}

/* 目次と記事の間をあける */
.toc {
	margin-bottom: 100px !important;
}
/* ■ コメント入力欄と一覧の順序入れ替え */
#comment-area {
  display: flex !important;
  flex-direction: column !important;
}
#comment-area > section {
  order: 2 !important; /* 足あと帳（一覧）を下に */
}
#comment-area > aside {
  order: 1 !important; /* コメントを書き込む（入力欄）を上に */
}


/* 記事下の「カテゴリ」「タグ」一覧を薄めに */
.article-footer .cat-link,
.article-footer .tag-link {
	color: #999;
	background-color: transparent;
	border: 1px solid #ccc;
}


/* スクロールパディング */
html {
	scroll-padding-top: 100px;
}
/* タグクラウド（枠線を左のみにする） */
.tagcloud a {
	border-top: 1px solid transparent;
	border-right: 1px solid transparent;
}
/* 引用下の余白解除 */
blockquote {
	margin-bottom: 0 !important;
}

/* ウィジェット下に余白 */
.widget {
	margin-bottom: 100px !important;
}
/* ヘッダーロゴ */
.header-site-logo-image {
	width: 100%;
	max-width: 500px;
}
/* ヘッダーロゴボタンの画像サイズ（初期値50pxより大きくする） */
/* ■ ロゴボタンのサイズ調整 */
.logo-menu-button img {
	max-height: 70px;                  /* ▼下と合わせる */
}
/* body全体をヘッダー分下げる */
@media screen and (max-width: 1023px) {
    body:where(.mblt-header-mobile-buttons,.mblt-header-and-footer-mobile-buttons) {
        margin-top: 70px !important; /* ▲上と合わせる */
    }
}
/* 目次の背景 */
.toc {
	background: white;
}

/* ブログカードの枠線 */
.blog-card {
	border-radius: 7px;
	border-color: var(--cocoon-three-d-border-colors);
    border-width: 1px;
    border-style: solid;
}
.radius7 {
    border-radius: 7px;
}
.radius10 {
    border-radius: 10px;
}
.radius15 {
    border-radius: 15px;
}

.mini {
	font-size: 80%;
}
/* 太字 */
b {
	margin: 0 1px;
}
/* 外部リンク */
.blank {
	color: #3d83e2;
	display: table;    /* 自分の文字幅だけのサイズになる */
	margin-left: auto; /* 左側の余白を自動で最大に押し広げる＝右寄せになる */
	font-size: 80%;
}
/* 中央寄せ */
.center,
.entry-content img {
	display: table; /* 自分の文字幅だけのサイズになる */
	margin: auto;
}
/* 画像の高さを500px以下に */
header img {
	width: auto;
	max-width: 80%;
	max-height: 500px;
	display: table; /* 自分の文字幅だけのサイズになる */
	margin: auto;
}


/* 「サイト内検索」結果だけ「抜粋」を表示 */
/* 1. まず全ページで「抜粋」を消す */
.entry-card-snippet {
  display: none !important;
}
/* 2. 検索結果ページだけ「抜粋」復活させる */
.search-results .entry-card-snippet {
	color: #454545;
	line-height: 2;
	display: -webkit-box !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3; /* 行数 */
	overflow: hidden;
}


/* サムネイルを角丸に */
.card-thumb-image,
.size-thumb120,
.entry-card-thumb-image,
.size-yarpp-thumbnail,
.eye-catch-image {
	border-radius: 10px !important;
}



/* PC上部メニューアイコンを10px下に */
.menu-item:before {
	display: inline-block;
	transform: translateY(10px);
}
/* PC上部メニュー「受話器」アイコンを反転 */
.menu-pc .fa-phone:before {
	display: inline-block;
    transform: translateY(10px) scaleX(-1);
}
/* スマホ下部固定表示メニュー「電話」を反転 */
.mobile-footer-menu-buttons .fa-phone:before {
	display: inline-block;
    transform: scaleX(-1);
}
/* PC版 上部メニュー（ホバー時の背景白を解除） */
.navi-in a:hover {
    background: transparent;
}
/* PC 上メニュー（ホバー時の下線を削除） */
.navi-in a::after {
	content: none;
}
/* スマホ 左メニュー（アイコンを下に） */
.menu-drawer .menu-item::before {
	transform: translateY(35px);
}
/* スマホ 左メニュー（電話を反転＆下に） */
.menu-drawer .fa-phone:before {
    transform: translateY(35px) scaleX(-1);
}
/* スマホ 左メニュー（文字を右に） */
.menu-drawer .menu-item a {
	transform: translateX(20px);
	font-weight: normal; /* 太字解除 */
}


/* 関連記事「YARPP」の見出しデザイン */
.yarpp-related div {
    font-size: 125%;
    font-weight: 700;
    margin: 0;
    padding: 0 0 5px;
	text-transform: capitalize;
	text-align: center;
    margin: 100px 0 20px;
}
/* サイドバー中央寄せ */
.widget-entry-card-link,
.sidebar-center {
	margin: auto;
	max-width: 500px;
}



/* 見出しの上下スペース */
.article h2, .article h3, .article h4, .article h5, .article h6 {
    margin-top: 1.62em;
    margin-bottom: 1.62em;
}
/* 記事内見出しを太字に */
.article h2 {
	font-weight: bold;
}
/*「もくじ」を中央寄せ */
.toc-title {
    text-align: center;
}
/*「もくじ」を「+. もくじ +.」にする */
.toc-title:before {
	color: #666669;
    content: "+. ";
	position: static;
	left: auto;
	font-weight: normal !important; /* 太字解除 */
}
/*「もくじ」を「+. もくじ +.」にする */
.toc-title:after {
	color: #666669;
    content: " +.";
}




/* ナビゲーションの太字解除 */
.navi-in a {
	font-weight: normal;
}
/* ナビゲーションの背景「半透明」→白 */
.header-container {
	background-color: white;
}
/* 記事タイトルを極小に */
.entry-title,
.entry-card-title,
.related-entry-card-title,
.widget-entry-card-title,
.yarpp-thumbnail-title {
	color: #333;
}
/* 記事タイトルを小さく薄く */
.related-entry-card-title,
.widget-entry-card-title {
	xxxcolor: #333;
	xxxfont-size: 10px !important;
}
/* 記事カードの行間 */
.entry-card-wrap,
.a-wrap {
	xxxmargin-bottom: 50px !important;
}
/* 記事カードの境界線 */
#container figure img {
    box-shadow: none !important;
    border: 1px solid #e6e4e4 !important;
    display: inline-block; /* 念のため要素を安定させる */
}






/* ■ 固定ロゴ画像 初期状態 */
.menu-button .site-logo-image {
	opacity: 0;
	pointer-events: none;
	transition: opacity 2.0s ease-out;
}
.menu-button .site-logo-image.is-visible {
	opacity: 1;
	pointer-events: auto;
}
/* ■ ロゴ非表示ボタンX */
#hide-logo-btn {
	position: absolute;
	bottom: -15px; /* ロゴ画像の下側に配置 */
	left: 50%;
	transform: translateX(-50%);
	font-size: 10px;
	cursor: pointer;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 2.0s ease-out; /* 消える時も2秒かける */
	background: rgba(255,255,255,0.7);
	padding: 2px 5px;
	border-radius: 4px;
}
#hide-logo-btn.is-visible {
	opacity: 1;
	pointer-events: auto;
}
#hide-logo-btn span {
	margin-right: 2px;
}









/* メニューボタン */
.menu-button a {
	color: #3b3b3b !important;
}
/* メニューアイコン */
.fa-user,
.fa-envelope,
.fa-book{
	color: #9b9b9b;
}

/* タイトルと記事の余白 */
.entry-content {
	margin-top: 100px;
}

/* h3見出しの左線 */
.article h3 {
    border-left: 6px solid #00be5e !important; /* 緑 */
}
/* FontAwesomeアイコン */
/* ホーム */
.fa-home {
	display: none;
}
/* FontAwesomeアイコン */
/* カテゴリ名 */
.fa-folder,
.fa-folder-open {
	display: none;
}
/* FontAwesomeアイコン */
/* タグクラウド */
.fa-tag,
.fa-tags {
	display: none;
}
/* FontAwesomeアイコン */
/* パンくずリストの記事名 */
.fa-file {
	display: none;
}
/* FontAwesomeアイコン */
/* コメントへのリンク */
.fa-link:before {
	display: none;
	content: "\f561"; /* ← \f561グラス */
}
.related-entry-heading:before {
	display: none;
}
a:where(:not(.wp-element-button)) {
    text-decoration: none;
}
/* カテゴリー＆タグのラベル */
.cat-link {
	background-color: #aaaaaa; /* 灰色 */
}
.carousel-entry-card-thumb {
  position: relative;
}
/* 時計アイコンを非表示 */
.fa-clock,
.fa-clock-o,
.fa-history {
	display: none;
}

/* カテゴリーラベル */
.cat-label {
	font-size: 11px;
	background-color: #C0C0C0; /* 元黒板色 */
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%); /* XとYの両方を-50%する */
	padding: 5px 8px;
	border-color: #c0c0c0;
	border-radius: 3px;
}
/* トップページの最初の大きいサムネ記事のカテゴリーラベル */
.list-new-entries .ec-big-card-first .cat-label {
	font-size: 25px;
	padding: 8px 15px;
}

/* 記事タイトルとサムネに余白 */
.widget-entry-cards:not(.large-thumb-on) .card-title {
	padding-top: 5px;
	padding-left: 5px;
}
/* フッターメニューの上下余白 */
.navi-footer {
    margin: 30px 0;
}
/* 角丸まとめ */
iframe,
.toc,
.lyte,
.button,
.submit,
.comment-btn,
.entry-content img,
#container figure img {
	border-radius: 7px;
}
.video-container {
	margin-bottom: 80px !important;
}
.blogcard-title,
.blogcard-snippet {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.recent-comment-date {
	font-size: 12px;
}
.recent-comment-article {
	font-size: 12px;
}
.list-new-entries-title {
	display: none;
}
.entry-date {
	color: #C0C0C0; /* ←濃緑 トップ 緑106500 ピンク8b0093 緑096300 */
}
.post-update {
	color: #C0C0C0; /* ←明緑 記事内 緑106500 ピンク8b0093 緑074b00 */
}
.right {
	text-align: right;
}

.space0 {
	margin-bottom: 40px;
}
.space1l,
.space1 {
	margin-bottom: 70px;
}
.space2 {
	margin-bottom: 100px;
}
.space3 {
	margin-bottom: 130px;
}
.space30 {
	margin-bottom: 30px;
}
.space50 {
	margin-bottom: 50px;
}
.space70 {
	margin-bottom: 70px;
}
.space80 {
	margin-bottom: 80px;
}
.space100 {
	margin-bottom: 100px;
}
.small90 {
	font-size: 90%;
}
.small80 {
	font-size: 80%;
}
.small70 {
	font-size: 70%;
}
.small60 {
	font-size: 60%;
}
.small50 {
	font-size: 50%;
}
.big110 {
	font-size: 110%;
}
.big120 {
	font-size: 120%;
}
.big130 {
	font-size: 130%;
}
.big140 {
	font-size: 140%;
}
.big150 {
	font-size: 150%;
}
/* トップに戻るを一瞬で */
html,
.mobile-menu-buttons .menu-button {
	scroll-behavior: auto !important;
}
.mobile-menu-buttons {
	box-shadow: none;
}

/* 「プロフィール情報」の改行を有効にする */
.author-description {
    white-space: pre-wrap;
	font-size: 90% !important
}
.tagcloud a {
    font-size: 12px;
    margin: 5px !important;
}

.cat-label {
	display: none;
}

/* コロンを点滅させる */
.colon {
  animation: blink-colon 1.2s step-end infinite;
}

@keyframes blink-colon {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* 公開ページの「編集」ボタンの色 */
.admin-panel,
.admin-panel a {
	color: black;
	font-weight: bold;
	background: transparent;
}
.admin-edit > span:first-child {
	display: none;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/

/*1023px以上（PC）*/
@media screen and (min-width: 1023px){
	
	.nwa .author-box .author-description {
		font-size: 16px;
	}
}


/*1023px以下（大タブレット）*/
@media screen and (max-width: 1023px){


}

/*834px以下（タブレット）*/
@media screen and (max-width: 834px){

	/* 上部モバイルメニューを「横1列」→「2x3」 */
	#navi .navi-in > .menu-mobile {
		display: flex;
		flex-wrap: wrap;
		margin-top: 30px;
	}
}

/*480px以下（スマホ）*/
@media screen and (max-width: 480px){
	
}










/* PC版ヘッダー固定を下に移動する */
@media screen and (min-width: 1023px) {
  .header-container.fixed-header {
    top: auto !important;
    bottom: 0 !important;
  }
}

/* コメント欄の「メールアドレスが表示されることはありません」「※」「アバター」を非表示 */
.logged-in-as, /* ログイン中 */
.comment-notes,
.comment-form .required,
.recent-comment-avatar,
.comment-list .avatar {
    display: none;
}


/* ==========================================================
 * YARPPタイトルの巨大化・位置ズレをCocoon（Season Winter）に合わせる最終調整CSS
 * ========================================================== */
/* 0. タイトルを太字に */
.related-entry-heading {
	font-weight: bold;
	margin-top: 90px;
}
/* 1. タイトル部分のフレックスボックス干渉を無効化 */
#related-entries .related-list .related-entry-card-content {
    display: block !important;
    justify-content: flex-start !important; /* 中央寄せを無効化 */
    align-items: flex-start !important; /* 中央寄せを無効化 */
    text-align: left !important; /* 文字を左揃えに */
    margin: 0 !important;
    padding: 0 10px 10px !important; /* タイトルの上の余白を消して左上に寄せる */
    width: auto !important;
}
/* 2. タイトルの文字サイズを適正にし、巨大化・ボールドを抑える */
#related-entries .related-list .related-entry-card-title {
    font-size: 15px !important; /* タイトルの適正文字サイズ */
    line-height: 1.4 !important;
    display: inline !important; /* 余計な改行を消す */
    margin: 0 !important;
    color: #333 !important; /* 適切な文字色に */
}
/* 3. 画像とタイトルのカード全体を横並びに強制 */
#related-entries .related-list .related-entry-card-wrap {
    display: flex !important;
    text-decoration: none !important;
    margin-bottom: 15px !important;
}
#related-entries .related-list .related-entry-card {
    display: flex !important;
    width: 100% !important;
}
/* 4. 画像とタイトルの間の余白を適切に */
#related-entries .related-list .related-entry-card-thumb {
    margin-right: 15px !important;
    flex-shrink: 0 !important; /* 画像が潰れないように */
}


/* 固定ロゴ画像 初期状態：透明（JavaScriptにも記述） */
.menu-button .site-logo-image {
	opacity: 0;
	/* visibilityを削除し、pointer-eventsでクリックを無効化 */
	pointer-events: none; 
	/* transitionもopacityだけに絞る */
	transition: opacity 2.0s ease-out;
}
/* 固定ロゴ画像 スクロール後に付与するクラス：表示（JavaScriptにも記述） */
.menu-button .site-logo-image.is-visible {
	opacity: 1;
	pointer-events: auto; /* 表示されたらクリック可能にする */
}





/* シンプルな番号付きリスト用CSS */
.seleco-li {
  counter-reset: item;
}
.seleco-li li {
  counter-increment: item;
}
.seleco-li li::before {
  content: counter(item) ". ";
}



/* クリックでコピー機能（JSにもあり） */
/* コピーエリアの枠線 */
.copy-area {
	padding: 15px;
	border: 1px dashed #ccc;
	background: #f9f9f9;
	position: relative;
}
/* コピーボタン */
.copy-btn {
	display: inline-block;
	margin-top: 10px;
	padding: 5px 15px;
	background: #333;
	color: #fff;
	cursor: pointer;
	font-size: 0.8em;
	border-radius: 3px;
}
.copy-btn:hover {
	background: #555;
}



/* サイドバー見出しに絵文字 */
.widget-sidebar-title::after {
	xxcontent: "\1F34B"; /* 🍋レモン */
	content: "\1F378"; /* 🍸カクテル */
	display: inline-block;
	xxtransform: scaleX(-1); /* 反転 */
	xxopacity: 0.7; /* 薄く */
	margin-left: 5px;
}










