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

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

/*ブログカードの外枠が透明になるのを防止するく*/
.blogcard.internal-blogcard.ib-left.cf {
    border-color: #e3e3e3;
}

/*ブログカードのマージン作成く*/
.blogcard {
    margin: 30px;
}

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

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
#navi .navi-in>.menu-mobile li {
    width: 176px;
    height: 60px;
    line-height: 40px;
}

/************************************
** コンテンツ上部のマージン削除
************************************/
.content {
    margin-top: 0;
}

}

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

/************************************
** トップページカスタマイズ
************************************/
/*.home #main h1{
    font-size: 1em;
    color: #555;
    letter-spacing: 1px;
    /************************************
    margin: 1em 0 -2em;
    ************************************/
    font-weight: 400;
    display: flex;
    align-items: center;
}
.home #main h1:before, .home #main h1:after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background: #aaa;
    display: block;
}
.home #main h1:before {
    margin-right: .4em;
}
.home #main h1:after {
    margin-left: .4em;
}
.home #main .large-thumb{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0.8em 0;
}
.home #main .large-thumb a{
    width: 50%;
    padding: 10px;
}
.home #main .large-thumb a:hover{
    background:unset;
}
.home #main .widget-entry-cards .e-card {
    font-size: 18px;
    box-shadow: 0 0 4px rgba(0,0,0,.15);
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    height:100%;
}
.home #main .widget-entry-cards .e-card:hover {
    transform: translateY(-3px);
    box-shadow: 0px 3px 18px 3px rgba(0,0,0,.08);
}
.home #main .widget-entry-cards figure {
    float: none;
    width: 100%;
}
.home #main .widget-entry-cards figure img {
    width: 100%;
    display: block;
    object-fit: cover;
    height: 210px;
}
.home #main .widget-entry-cards .card-content {
    margin: 0 0 0.5em;
    padding:10px 15px;
    background:#fff;
}
.home #main .large-thumb .new-entry-card-title,.home #main .large-thumb .popular-entry-card-title {
    font-size: 0.9em;
    line-height: 1.5;
    font-weight: 600;
    color: #555;
    margin-top: 3px;
}
/*(スマホ)480px以下*/
@media screen and (max-width: 480px){
    .home #main h1{
        margin: 0.5em 0;
        padding: 0;
        font-size:24px;
    }
    .home #main .widget-entry-cards .e-card {
        margin:0 5px;
    }
    .home #main .large-thumb a {
        width: 100%;
        padding: 0;
        margin:0 0 15px;
    }
    .home .mobile-2{
        justify-content:space-between;
    }
    .home .mobile-2 a{
        width:48% !important;
    }
    .home .mobile-2 figure img {
        object-fit: unset !important;
        height: auto !important;
    }
    .home #main .large-thumb .new-entry-card-title{
        line-height:1.3;
    }
}
/************************************
** ボタン
************************************/
.p-button {
    max-width: 300px;
    margin: 0 auto;
}
.p-button a {
    display: block;
    margin:25px 0;
    padding: 0.8em 1em;
    border-radius: 2em;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    background: #eba02f;
    box-shadow: 0 5px 20px rgba(235, 160, 47, .5);
    text-align: center;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    opacity:1;
}
.p-button a:hover{
    box-shadow:none;
    transform: translateY(3px);
    opacity:1;
}

/*トップページからSNSボタンなど必要ないものを削除*/
.home header .sns-share,.home footer .sns-share,.home footer .sns-follow,.home header .post-date,.home .post-update,.home .author-info{
    display: none;
}


/************************************
** h2-h6の見出し要素に連番を振る
************************************/
.entry-content h2{
  counter-increment: counter-h2;
  counter-reset: counter-h3;
}

.entry-content h2:before{
  content: counter(counter-h2);
  margin-right: 0.6em;
}

.entry-content h3{
  counter-increment: counter-h3;
  counter-reset: counter-h4;
}

.entry-content h3:before{
  content: counter(counter-h2)"."counter(counter-h3);
  margin-right: 0.6em;
}

.entry-content h4{
  counter-increment: counter-h4;
  counter-reset: counter-h5;
}

.entry-content h4:before{
  content: counter(counter-h2)"."counter(counter-h3)"."counter(counter-h4);
  margin-right: 0.6em;
}

.entry-content h5{
  counter-increment: counter-h5;
  counter-reset: counter-h6;
}

.entry-content h5:before{
  content: counter(counter-h2)"."counter(counter-h3)"."counter(counter-h4)"."counter(counter-h5);
  margin-right: 0.6em;
}

.entry-content h6{
  counter-increment: counter-h6;
}

.entry-content h6:before{
  content: counter(counter-h2)"."counter(counter-h3)"."counter(counter-h4)"."counter(counter-h5)"."counter(counter-h6);
  margin-right: 0.6em;
}




/************************************
** シングルページのカスタムフィールドの装飾
************************************/
.post-meta li {
display: inline;
}

/************************************
** トップロゴの上下マージンを削除
************************************/
.logo-image {
  padding: 0;
}

/************************************
** Adsenceの上下にマージンを追加
************************************/
.google-auto-placed {
    margin-top: 50px;
    margin-bottom: 70px;
}

/************************************
** 引用タグのCSS
************************************/
blockquote {
    position: relative;
    padding: 30px 15px 8px 15px;
    box-sizing: border-box;
    font-style: italic;
    background: #efefef;
    color: #555;
}
blockquote:before{
    display: inline-block;
    position: absolute;
    top: 5px;
    left: 3px;
    content: "“";
    font-family: sans-serif;
    color: #cfcfcf;
    font-size: 90px;
    line-height: 1;
}
blockquote p {
    padding: 0;
    margin: 10px 0;
    line-height: 1.7;
}

blockquote cite {
    display: block;
    text-align: right;
    color: #888888;
    font-size: 0.9em;
}


/************************************
** サイト内記事リンクのブログカードの背景色
************************************/
.blogcard {
    background-color: #eee;
}

/************************************
** ヘッダー部　ボタンの装飾
************************************/
.caption-wrap {
  display: inline-block;
  width: 150px;
  text-align: center;
  background-color: #949495;
  border: 2px solid #949495;
  font-size: 16px;
  color: #949495;
  text-decoration: none;
  font-weight: bold;
  padding: 0 24px;
  border-radius: 4px;
  position: relative;
}

.caption-wrap .item-label {
  position: relative;
  z-index: 1;
}

.caption-wrap::before,
.caption-wrap::after {
  content: "";
  display: block;
  background-color: #FFF;
  width: 50%;
  height: 100%;
  position: absolute;
  top: 0;
  transition: .2s;
}
.caption-wrap::before {
  left: 0;
}
.caption-wrap::after {
  right: 0;
}

.caption-wrap:hover:before,
.caption-wrap:hover:after {
  width: 0;
  background-color: #FFF;
}

.caption-wrap:hover {
  color: #FFF;
}
.navi-in>ul li {
    line-height: 40px;
}


/************************************
** コンテンツ上部のマージン削除
************************************/
.content {
    margin-top: 0;
}


.list-title {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    font-size: 36px;
}


/************************************
** ログイン時のみ表示されるコメントのスタイル
************************************/
#rogincomment {
    font-weight: bold;
    color: brown;
}