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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
html {
	scroll-behavior: smooth;
}
.article h1 {
	line-height: 1.5;
}
.article h4::after {
	border-color: #ccc;
}
.article h4::before {
	border-color: #dd3333;
}
div.editor-styles-wrapper {
	display: flex;
	flex-direction: column;
}
.post pre {
	font-size: 14px;
	overflow: auto;
	color: #fff;
	background-color: #222;
	font-family: 'Ricty Diminished', 'Monaco', 'Consolas', 'Courier New', Courier, monospace, sans-serif;
}
.page .date-tags {
	display: none;
}

/*reCAPTHAマーク設定*/
.grecaptcha-badge { visibility: hidden; }
p.recapcha-text { font-size: 11px; text-align: center; margin-bottom: 4em;}

input:focus-visible,
textarea:focus-visible {
	outline-color: #e5d5d5;
}
input[type="submit"] {
	background: repeating-linear-gradient(135deg, #f7fafd 0%, #f7fafd 80%, #fdebf2);
	color: #dd3333;
	border: none;
	box-shadow: 0 6px 5px -3px rgba(0, 0, 0, .24), 0 6px 10px -3px rgba(0, 0, 0, .18);
}
input[type="submit"]:focus-visible,
input[type="submit"]:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), 0 6px 8px rgba(0, 0, 0, 0.22);
}
input,
textarea {
	font-family: font-family: var(--cocoon-default-font);
}
.hp-break-word {
	overflow-wrap: break-word;
}
@media screen and (min-width: 768px) {
	.post pre {
		font-size: 16px;
	}
}

.sidebar-scroll {
	height: 100vh;
	overflow-Y: scroll;
}
.article-header {
	border: 1px solid #dd3333;
	padding: .5em;
}
.article .toc {
	background-color: #f5f8fa;
}
.nwa .toc {
	border: 1px solid rgba(0, 76, 0, 0.5);
	padding: 1em;
}
.toc-title {
	background-color: #fff;
	margin-bottom: 1em;
}
/* .article h2 {
	position: sticky;
	top: 0;
	z-index: 10;
	margin-left: -16px;
    margin-right: -16px;
} */

.widget-entry-cards.card-large-image .e-card {
	font-size: 16px;
	font-weight: 600;
}
.widget-entry-cards.large-thumb-on .card-content {
	background: linear-gradient(180deg, transparent, #000);
	text-shadow: 0 0 6px #222;
	padding: 1em .5em;
	height: 100%;
	max-height: 45%;
	position: absolute;
	display: grid;
	grid-template-rows: 1fr auto 1fr;
	transition: top .5s;
	top: 60%;
}
.widget-entry-cards.large-thumb-on .card-title {
	grid-row: 2 / 3;
}
.widget-entry-cards.large-thumb-on .a-wrap:hover .card-content {
	margin-bottom: 0;
	opacity: 1;
	max-height: 100%;
	top: 0;

}


.entry-card-snippet,
.related-entry-card-snippet {
 	line-height: 1.7;
	-webkit-line-clamp: 3;
	color: #707070;
}

.entry-date {
	color: #bbb;
}

dl.my-dlList {
	display: flex;
	flex-direction: column;
	row-gap: 1em;
	padding: 1em 0.5em;
} 
.my-dlList dt {
	font-weight: 700;
}
.my-dlList dd {
	margin-left: 1em;
}

.blogcard {
	border-radius: .25em;
}
.slicknav_menu,
#header-container,
.a-wrap {
	background: repeating-linear-gradient(135deg, #f7fafd 0%, #f7fafd 80%, #fdebf2);
	box-shadow: 0 6px 5px -3px rgba(0, 0, 0, .24), 0 6px 10px -3px rgba(0, 0, 0, .18);
}
#footer {
	background: repeating-linear-gradient(135deg, #f7fafd 0%, #f7fafd 80%, #fdebf2);
	box-shadow: -4px 6px 5px 6px rgba(0, 0, 0, .24), 0 6px 10px -3px rgba(0, 0, 0, .18);	
}

#header-container .navi {
	background: inherit;
}
.navi-in>ul {
	padding-right: 1em;
}
.sidebar h2,
.sidebar h3 {
	border-color: #e5e5e5;
	background-color: #f5f8fa;
}
.sidebar h2:after,
.sidebar h3:after {
	display: none;
}
.article h2 {
	border-color: #dd3333;
	background-color: #fff;
}
.article h3:after {
	border-bottom-color: #dd3333;
}
.appeal-content {
	background-color: rgba(0, 0, 0, .7);
}
.appeal-title {
	color: #fff;
	font-size: 1.5em;
}
.appeal-message {
	color: #fff;
	margin-top: 2em;
}
.menu-item a {
	transition: opacity .3s ease;
}
.menu-item:hover a {
	opacity: .7;
	transform: scale(1.2);
}
.widget-entry-cards.ranking-visible .card-thumb::before {
    content: counter(p-rank);
    position: absolute;
    top: 2px;
    left: 2px;
    line-height: 26px;
    opacity: .9;
    text-align: center;
    font-size: 26px;
    font-family: Arial, sans-serif;
    z-index: 1;
    font-weight: bold;
    font-style: italic;
    text-shadow: -2px -1px 0 #fff, 2px 1px 0 rgba(0, 0, 0, .4);
    color: #dd3333;
    width: auto;
}
/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
	.header-container {
		display: none;
	}
	.navi-menu-content {
 		left: auto;
 		right: 0;
 		transform: translateX(105%);
	}
	.mobile-menu-buttons > li:not(.logo-menu-button) {
		padding-top: 8px;
	}
	.mobile-header-menu-buttons,
	.mobile-footer-menu-buttons {
		background: repeating-linear-gradient(135deg, #f7fafd 0%, #f7fafd 80%, #fdebf2);
		box-shadow: 0 6px 5px -3px rgba(0, 0, 0, .24), 0 6px 10px -3px rgba(0, 0, 0, .18);
		color: #222222;

	}
	.mobile-menu-buttons > li:not(.logo-menu-button) {
		padding-top: 0;
	}
	.menu-caption {
		visibility: hidden;
		height: 0;
		overflow: hidden;
	}
	.mobile-header-menu-buttons {
		justify-content: space-between;
	}
	.has-logo-button .logo-menu-button {
		min-width: auto;
		max-width: 120px;
	}
	.mobile-menu-buttons .menu-button > a {
		color: #222222;
		font-weight: normal;
		font-size: 1.25em;
	}
	.sidebar-menu-content {
		color: #444;
	}
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
	.e-card-title {
		font-size: 16px;
		line-height: 1.4;
	}
	main.main {
		margin-left: 8px;
		margin-right: 8px;
	}
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
	.entry-card {
		padding: 12px;
	}
	.e-card-title {
		font-size: 15px;
		line-height: 1.6;
		margin-bottom: 1em;
	}
	.entry-card-thumb {
		float: none;
		width: 100%;
		margin: 0;
	}
	,entry-card-snippets {
		display: -webkit-box;
	}
	.entry-card-meta {
		bottom: 1em;
		right: 1em;
	}
}


/*----- Copy Button -----*/
.lvg-code-copybtn {
  position: absolute;
  margin: 4px;
  top: 0px;
  right: 0px;
  padding: 0px 6px 0px;
  border: none;
  border-radius: 20%;
  font-size: 18px;
  color: #ccc;
  background-color: #000;
  opacity: 0.9;
  transition: 0.3s;
}
.lvg-code-copybtn:hover {
  cursor: pointer;
  color: #fff;
  opacity: 1;
}
.lvg-code-copybtn:focus {
  background-color: #ccc;
}
.lvg-code-copybtn:active {
  background-color: #ccc;
}
.lvg-code-copybtn::before {
  font-family: "Font Awesome 5 Free";
  content: "\f0c5";
  background-color: transparent;
}

/*----- Copy Button Notice -----*/
.lvg-code-copybtn-notice {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  top: 5px;
  right: calc(100% + 4px);
  padding: 2px 6px 0px;
  border-radius: 3px;
  font-weight: bold;
  font-size: 13px;
  color: #000;
  background: #fff;
}
.lvg-code-copybtn-notice-after {
  visibility: visible;
}

/*=== [OPTION] for RWD ===*/
@media screen and (max-width: 1240px) {
  /*----- Copy Button -----*/
  .lvg-code-copybtn {
    margin: 3px;
    padding: 0px 6px 0px;
    font-size: 14px;
  }
  /*--- Copy Button notice ---*/
  .lvg-code-copybtn-notice {
    top: 1px;
    right: calc(100% + 2px);
    padding: 2px 6px 0px;
    border-radius: 3px;
    font-size: 11px;
  }
}