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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/* テーブル */
.container table{
	width: 90%;
	margin-left: auto;
	margin-right: auto;
}
.container table th, .container table td {
	padding: 6px;
}

/*
.container table td {
	border: none;
}
*/

.container table th {
	font-weight: normal;
	background-color: transparent;
	color: #000000;
}
.container table tr:nth-of-type(2n+1) {
	background-color: transparent;
}

.container table tr {
  background-color: transparent;
}
/*必要ならばここにコードを書く*/

.container table tr {
  background-color: transparent;
}


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

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

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

/************************************
** *画像を中央寄せ表示
************************************/
/*画像を中央寄せ表示
.entry-content figure.wp-block-image {
    width: 100%;
    text-align: center;
}*/

/************************************
** 目次クリックで余白調整
************************************/
span[id^="toc"] {
	padding-top: 1.6em;
}

/************************************
** サイドバー追尾目次
************************************/
.sidebar-scroll{
	top:15px !important;
}
.sidebar h3{
	font-size:0.9em;
	padding: 7px 12px;
}
.sidebar .widget_toc{
	 box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}
.sidebar .toc-widget-box{
	margin-top: -0.9em;
}
.sidebar .toc{
	padding: 0;
	width:100%;
}
.sidebar .toc-content {
	overflow-y: scroll;
	max-height: 300px;
	background: #fff;
	padding: 0.5em 1.5em;
}
.sidebar .toc li{
	line-height:1.6;
	margin-bottom: 1em;
	font-size:0.85rem;
	color:#333333;
}
.sidebar .toc-content > ol  > li,.sidebar .toc-content > ul  > li{
	font-weight:600;
	padding-left: 0.5em;
}
.sidebar .toc-content a{
	letter-spacing:0.5px;
}
.sidebar .toc .toc-list ul, .sidebar .toc .toc-list ol {
	margin: 1em 0;
	list-style-type:none;
	font-weight:500;
}
@media screen and (max-width: 768px){
	.sidebar-menu-button .widget_toc{
		display:none;
	}
}

/************************************
** スマホ追尾目次
************************************/
#mobile-toc-widget-wrap .menu-trigger,
#mobile-toc-widget-wrap .menu-trigger span {
  display: inline-block;
  transition: all .4s;
  box-sizing: border-box;
}
#mobile-toc-widget-wrap .menu-trigger {
  position: relative;
  width: 25px;
  height: 35px;
}
#mobile-toc-widget-wrap .menu-trigger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #fff; /* 三本線色 */
  border-radius: 4px;
}
#mobile-toc-widget-wrap .menu-trigger span:nth-of-type(1) {
  top: 13px;
}
#mobile-toc-widget-wrap .menu-trigger span:nth-of-type(2) {
  top: 20px;
}
#mobile-toc-widget-wrap .menu-trigger span:nth-of-type(3) {
  top: 27px;
}
#mobile-toc-widget-wrap .menu-trigger.active {
  -webkit-transform: rotate(360deg);
  transform: rotate(360deg);
}
#mobile-toc-widget-wrap .menu-trigger.active span:nth-of-type(1) {
  -webkit-transform: translateY(20px) rotate(-45deg);
  transform: translateY(20px) rotate(-45deg);
  top:0;
}
#mobile-toc-widget-wrap .menu-trigger.active span:nth-of-type(2) {
  -webkit-transform: translateY(0) rotate(45deg);
  transform: translateY(0) rotate(45deg);
}
#mobile-toc-widget-wrap .menu-trigger.active span:nth-of-type(3) {
  opacity: 0;
}
#mobile-toc-widget-wrap{
  position: fixed;
  bottom: 120px;
  right: 10px;
  margin: 0;
  padding: 0;
  z-index:5;
  counter-reset: mobile-toc;
}
#mobile-toc-widget-wrap label .mobile-toc-button {
  width: 58px;
  height: 58px;
  border-radius:50%;
  background: #dd3333; /* ボタン色 */
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.16);
  transition: ease-out 0.3s;
  text-align:center;
  position:relative;
  z-index: 3;
}
#mobile-toc-widget-wrap label .mobile-toc-button .mobile-toc-button-title {
  color: #fff; /* ボタン文字色 */
  font-size: 0.65em;
  letter-spacing: 0;
  position: absolute;
  bottom: 7px;
  left: 0;
  right: 0;
  margin: auto;
}
#mobile-toc-widget-wrap label:hover {
  background: #efefef;
}
#mobile-toc-widget-wrap input {
  display: none;
}
#mobile-toc-widget-wrap .mobile-toc-show {
  display:none;
}
#mobile-toc-widget-wrap input:checked ~ .mobile-toc-show {
  background:#fff;
  position: absolute;
  top: 0;
  left: 0;
  padding: 2.5em 1em;
  opacity:0.97; /* 20190924数値変更 */
  position:fixed;
  width:100%;
  height:100%;
  display:block;
  animation: 0.5s fade-in;
  -webkit-animation: 0.5s fade-in;
  overflow-y:scroll;
}
@-webkit-keyframes fadeIn { 
  0% {display: none;opacity: 0;}
  1% {display: block;opacity: 0;}
  100% {display: block;opacity: 0.93;}
}
@keyframes fade-in {
  0% {display: none;opacity: 0;}
  1% {display: block;opacity: 0;}
  100% {display: block;opacity: 0.93;}
}
#mobile-toc-widget-wrap .widgettitle{
  text-align: center;
  margin: 0 0 1em; /* 20190924数値変更 */
  color: #dd3333; /* 目次名の色 */
  font-size: 1.1em;
  letter-spacing:2px;
  font-weight:600; /* 20190924追記 */
}

#mobile-toc-widget-wrap .mobile-toc-show .toc{
  border:none;
  margin: 0 !important;
  padding: 0 !important;
}
#mobile-toc-widget-wrap .toc .toc-list > li {
  list-style-type: none !important;
  position: relative;
  margin-left: 13px;
  margin-right: 25px;
  padding-left: 32px;
  margin-bottom: 15px;
  padding-bottom: 0px;
  font-size: 1.1em;
  line-height: 1.8;
}
#mobile-toc-widget-wrap .toc a {
  font-size: 0.8em;
  font-weight:600;/* 20190924追記 */
}
#mobile-toc-widget-wrap .toc-list{
  padding:0 !important;
}
#mobile-toc-widget-wrap .toc-list > li:before{
  counter-increment: mobile-toc;
  content: counter(mobile-toc);
  position: absolute;
  left: 5px;
  top: 5px;
  background: none;
  font-size: 0.8em;
  color: #dd3333; /* 数字の色 */
}
#mobile-toc-widget-wrap .toc_widget_list > li ol {
  margin-top: 5px;
  padding-left: 20px;
}
#mobile-toc-widget-wrap .toc-list ol{
  list-style:none;
}
#mobile-toc-widget-wrap .toc-list > li > ol > li a {
  position: relative;
  text-decoration: none !important;
  font-weight:500;/* 20190924追記 */
}
#mobile-toc-widget-wrap .toc-list > li ol li a:before {
  position: absolute;
  content: "・";
  font-size: 1.4em;
  left: -20px;
  top: -10px;
  color: #ff0000; /* 点の色 */
}

/************************************
** WordPressの画像ブロックと画像のキャプションのカスタマイズ（全体）
************************************/
/*WordPressの画像ブロックと画像のキャプションのカスタマイズ（全体）*/
/*ここから*/
.wp-block-image figure {
    position: relative;
}

.cf .wp-block-image figcaption {
    position: absolute;
    bottom: 0;
    margin-bottom: 10px;
    padding: 2px 16px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 16px;
}

.wp-block-image figure:hover figcaption {
    opacity: 0;
}

.cf .wp-block-image figcaption, .wp-block-image figure:hover figcaption {
    transition: 1s all;
}

@media screen and (max-width: 480px) {
	.cf .wp-block-image figcaption {
            font-size: 10px;
            margin-bottom: 8px;
        }
}
/*ここまで*/

/* SNSボタン開始 */
#main .button-caption {
  display: none;
}
#main .sns-share a {
  width: 2.5em;
  margin-left: 0.2em;
}
.sns-share-buttons {
  justify-content: center;
}
#main .social-icon {
  font-size: 25px;
}
/* SNSボタン終了 */

/* 見出しの書式 */
.article h3, .article h4, .article h5, .article h6 {
    color: #333333;
	border-bottom: solid 1px #dd3333;
}

/* 追従ホームボタン */
.ha-homehome-buttom{
position:fixed;
bottom:35px;
right:12px;
z-index:999;
}

.ha-homehome:hover {
opacity: 0.7;
}

/*モバイルヘッダーの文字と背景の色を変える*/
.search-menu-button.menu-button,
.navi-menu-button.menu-button{
	background-color: #dd3333;
	color: #FFFFFF;
	height: 45px;
}

.logo-menu-button.menu-button{
	background-color: #dd3333;
	height: 45px;
}

/*スライドインメニューを右から*/
.navi-menu-content{
	left: auto;
	right: 0;
	transform: translateX(101%);
}

.menu-drawer a{
	font-size: 1.0em;/*文字の大きさ*/
	color: #666;/*文字の色*/
	height: 2em;/*行の高さ*/
}

.is-style-normal-card .blogcard-wrap {
  width: 100%;
  max-width: none;
}

/*関連記事見出しのフォントを小さく*/
.related-entry-heading {
	color: #dd3333;
	font-size: 12pt;
  text-align:center;
}
