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

/************************************
** 子テーマ用のスタイルを書く
************************************/

.site-name-text {
  font-size: 32px;
  font-family: "Inconsolata", monospace;
  font-weight: 900;
  font-variation-settings:
    "wdth" 100;
}
#navi.navi {
  background-color: #000;
}
.navi-in > ul li a{
  color: #fff;
}
.navi-in > ul li {
  width: 12%;
  background-color: #000;
  height: 50px;
}


/* --------------------
トップ画面の新着記事一覧 
----------------------*/
.home .main .list-more-button-wrap {
  margin-top: 40px;
}
.home .list-new-entries .list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 20px;
}
.home .list-new-entries .list a:first-of-type {
  grid-column: span 2;
  grid-row: span 1;
}
.home .list-new-entries .list a figure {
  width: 45%;
  margin: 0;
}
.home .list-new-entries .list a figure + div{
  padding: 2%;
  margin-left: 370px;
}
.home .list-new-entries .list a:not(:first-of-type) {
  grid-row: span 2;
}
.home .list-new-entries .list > a {
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
  padding: 0;
}
.home .list-new-entries .list > a:hover {
  background-color: transparent;
  box-shadow:0 0 20px rgb(0, 128, 128, 0.5), 0 2px 5px rgba(0, 0, 0, 0.3);
}
.list-new-entries .list a:not(:first-child) article{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.list-new-entries .list a:not(:first-child) article .entry-card-thumb{
  width: 100%;
}
.list-new-entries .list a:not(:first-child) article .entry-card-thumb + div{
  margin-left: 0;
}
.home .list-new-entries .list-more-button-wrap a,
.home .list-columns .list-more-button-wrap a {
  background-color: #000;
  color: #fff;
  transition: all .4s;
}
.home .list-new-entries .list-more-button-wrap a:hover,
.home .list-columns .list-more-button-wrap a:hover {
  background-color: #fff;
  color: #000;
  border: solid 1px #000;
}

/* --------------------
トップ画面のカテゴリ一覧 
----------------------*/
.list-columns > .list-column .list {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
}
.list-columns > .list-column .list a article{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.list-columns > .list-column .list a article > figure{
  width: 100%;
  margin: 0;
}
.list-columns > .list-column .list a article > div{
  margin: 0;
  padding: 2%;
  background-color: #000;
  color: #fff;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.cat-label {
  background-color: teal;
  color: #eee;
}

/* --------------------
サイドバー関連 
----------------------*/
#sidebar > .widget-sidebar:first-of-type {
  margin-top: 60px;
  margin-bottom: 0;
}
.wp-block-search__label {
  display: none;
}
.widget-sidebar .wp-block-search__inside-wrapper > .wp-block-search__input {
  border-radius: 0;
}
.widget-sidebar .wp-block-search__inside-wrapper > .wp-block-search__button {
  margin-left: 0;
  border-radius: 0;
}
.widget-sidebar .wp-block-search__inside-wrapper > .wp-block-search__button i{
  width: 100%;
}
#sidebar .author-box {
  padding: 0;
}
#sidebar .author-box .author-thumb {
  padding: 50px 20px 80px 20px;
  width: 100%;
  background-color: teal;
  margin-top: 0;
}
#sidebar .author-box .author-content {
  padding-top: 90px;
}
#sidebar .author-box .avatar {
  margin-bottom: -170px;
  border-radius: 50%;
  width: 50%;
  border: #fff solid 5px;
}
#sidebar .author-box .author-name a {
  color: #000;
  text-decoration: none;
}
#sidebar .widget-sidebar-title, 
#sidebar .widget-sidebar-scroll-title, 
#sidebar h2 {
  background-color: #000;
  color: #ffffff;
}


/* --------------------
投稿ページ
----------------------*/
/* h1デザイン */
.article h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #000;
  border-left: 6px solid #000;
  padding-left: 12px;
  margin: 40px 0 20px;
}

/* h2デザイン */
.article h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;/*文字色（白）*/
    font-size: 20px;/*文字サイズ*/
    padding: 20px;/*文字回りの余白（上下左右）*/
    display: block;
    position: relative;
	background-color: transparent;
}
.article h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: teal;/*背景色*/
    transform: skew(-10deg);/*背景の傾き*/
    z-index: -1;
}
.article h2::after {
	content: '';
    position: absolute;
    border-left: 15px double #fff;/*左線（太さ 二重線 色）*/
    height: 100%;
    top: 0;
    right: 20px;
    transform: skew(-10deg);/*線の傾き*/
}

/* h3デザイン */
.article h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #616371;/*文字色*/
    font-size: 18px;/*文字サイズ*/
    padding: 10px 20px;/*文字回りの余白（上下 左右）*/
    display: block;
    border-left: 6px solid teal;/*二重線左側（太さ 実線 色）*/
    position: relative;
}
.article h3::before {
	 content: "";
    display: block;
    position: absolute;
    left: 3px;
    top: 0;
    width: 2px;/*二重線右側の太さ（幅）*/
    height: 100%;
    background: teal;/*二重線右側の色*/
}

/* h4デザイン */
.article h4 {
  font-size: 1.4rem;
  font-weight: 500;
color: #616371;/*文字色*/
    font-size: 16px;/*文字サイズ*/
    display: block;
    position: relative;
    padding: 6px 32px;/*文字回りの余白（上下 左右）*/
}

.article h4::before {
  font-family: "Font Awesome 5 Free";
  content: "\f101";
    font-weight: 600;/*矢印部の太さ*/
    font-size: 20px;/*矢印部のサイズ*/
    color: teal;/*矢印部の色*/
    left: 0;
    top: 5px;
    position: absolute;
}

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

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
  .home .list-new-entries .list a figure + div {
    margin-left: 40%;
  }
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
  .list-columns > .list-column .list {
    grid-template-columns: 1fr;
  }
  .list-columns > .list-column .list a article > div{
    width: 100%;
  }
}
