@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 {
  --bgc: #a67838;
  --gray: #aaa;
  --cocoon-sns-color: var(--bgc);
}
p.mb-0{
  margin-bottom: 0;
}
/* 検索ボタン */
.wp-element-button, .wp-block-button__link {
  background-color: var(--bgc);
}
/* カテゴリリンク */
.cat-link, .tag-link, .comment-reply-link {
  background-color: var(--gray);
  background-color: var(--cocoon-white-color);
  color: var(--gray);
}
.cat-link:hover {
  color: var(--gray);
}
/* タグリンク・コメント返信リンク */
.tag-link, .comment-reply-link {
  color: var(--cocoon-white-color);
  color: var(--gray);
  padding: 1px 6px;
  border: none;
}
.tag-link:hover, .comment-reply-link:hover {
  background-color: var(--gray);
  background-color: var(--cocoon-white-color);
  transition: none;
  opacity: 0.5;
  color: var(--cocoon-white-color);
  color: var(--gray);
}
/* ホバー色 */
a:hover {
  color: var(--gray);
}


/* カテゴリ折りたたみ */
/* 子カテゴリのパディングを狭める */
.widget_categories ul li a {
  padding: 3px 0;
}

/* デフォルトで、子カテゴリを非表示状態にする */
.widget_categories ul li.cat-item:has(ul)  > ul.children {
  display: none;
}

/* 親カテゴリの開閉時に「＋」「ー」を切り替える&右端に表示させる */
.widget_categories > ul > li.cat-item:has(ul)  > a,.widget_categories > ul > li.cat-item:has(ul)  > ul > li.cat-item:has(ul)  > a {
  position: relative;
}

.widget_categories > ul > li.cat-item:has(ul) > a::after, .widget_categories > ul > li.cat-item:has(ul) > ul > li.cat-item:has(ul) > a::after{/* 閉じている時 */
  content: "＋";
  display:inline-block; /*改行させないようにする*/
  position: absolute;
  right: 5px;
}

.widget_categories > ul > li.cat-item:has(ul)  > a.active::after, .widget_categories > ul > li.cat-item:has(ul) > ul > li.cat-item:has(ul) > a.active::after{/* 開いている時 */
  content: "－";
  display:inline-block; /*改行させないようにする*/
  position: absolute;
  right: 5px;
}

/* 子カテゴリのアイコンを変更する */
/* .widget_categories ul li.cat-item > ul.children > li.cat-item > a.cf:before {
  font-family: "Font Awesome 5 Free";
  content: "\f07c";
  padding-right: 7px;
  font-size: 0.8em;
  font-weight: 900;
  color:#aaa;
} */


/*アーカイブ折りたたみ*/
.widget_archive a.year{
  cursor: pointer;
  /* text-decoration: underline; */
}

.widget_archive .years ul {
  -webkit-transition: .3s ease;
  transition: .3s ease;
  margin: 0;
  margin-bottom: 1em;
}

#sidebar .widget_archive ul.years li{
  margin-bottom: 0;
}

.widget_archive ul.years .hide {
  margin: 0;
  height: 0;
  opacity: 0;
  visibility: hidden;
}

/* 親カテゴリの開閉時に「＋」「ー」を切り替える&右端に表示させる */
.widget_archive ul.years > li:has(ul)  > a.year {
  position: relative;
}

.widget_archive ul.years > li:has(ul) > a.year::after{/* 閉じている時 */
  content: "＋";
  display:inline-block; /*改行させないようにする*/
  position: absolute;
  right: 5px;
}

.widget_archive ul.years > li:has(ul)  > a.year.active::after{/* 開いている時 */
  content: "－";
  display:inline-block; /*改行させないようにする*/
  position: absolute;
  right: 5px;
}

/* 投稿一覧次ページボタン */
.pagination-next {
  display: none;
}
/* 投稿者情報 */
.author-box {
  border: none;
}
.profile-follows.author-follows {
  display:none;
}
/* 投稿日時の更新・時計アイコン */
.fa-history:before, .fa-clock:before {
  display:none;
}

/* アーカイブ投稿件数 */
.result>.num {
  display: none;
}
/* ソートボタン */
.result {
  margin-bottom: 1rem;
  display: none;/* ソートボタン不使用のため非表示 */
}
.result>.sort-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sort-btn>form {
  width: 33%;
}
input[type='submit'] {
  background-color: #fff;
}
.sort-btn>form>input:hover {
  background-color: #f5f8fa;
  transition: all 0.3s ease-in-out;
  color: var(--cocoon-text-color);
}

/* ページネーション */
a.prev.page-numbers:not(.cus), a.next.page-numbers:not(.cus) {
  display: none;
}
.article h1, .article h2, .article h3, .article h4, .article h5, .article h6 {
  font-weight: 300;
}

/* アーカイブタイトル */
.entry-title, .archive-title {
  font-size: 20px;
}
h1#archive-title {
  font-weight: 300;
}
.archive-title {
  display: none;
}

/* アーカイブ一覧タイトル */
.entry-card-title, .related-entry-card-title {
  font-weight: 400;
}

/* 検索ボタン */
#search-menu-close-pc{
  display: none;
  /*はじめは隠しておく*/
  position: fixed;
  z-index: 99;
  top: 0;
  /*全体に広がるように*/
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  transition: .3s ease-in-out;
}
#search-menu-input-pc:checked~#search-menu-close-pc{
  display: block;
  /*カバーを表示*/
  opacity: .5;
}
#search-menu-input-pc:checked~#search-menu-content-pc{
  transition: .3s ease-in-out;
  -webkit-transform: translateX(0%);
  transform: translateX(0%);
  opacity: 1;
  /* box-shadow: 6px 0 25px rgba(0,0,0,.15); */
}
/* 検索アイコン */
.fa-search:before {
	content: "";
	background: url(http://letteralpha.com/wp-content/uploads/2023/11/search.svg) no-repeat;
	background-size: contain;
	position: absolute;
  left: 15%;
  left: 40%;
  width: 26px;
  height: 26px;
  top: -4px;
}
form.search-box.input-box .fa-search:before {
  left: -20px;
  top: -1px;
}
span.search-menu-caption.menu-caption {
  display: none;
}

/* パンくず */
div.breadcrumb-home {
  display: none;
}

/* 投稿内プロフィール */
.article-footer div#author_box-3 {
  display: none;
}

/* 投稿ページ下部Ranking of All Articles */
.single-post aside#popular_entries-2 {
  display: none;
}

/* 投稿「PAGE BREAK」機能の次へボタン */
.pager-links.pager-prev-next {
  display: none;
}
/* 投稿サムネカテゴリタグ */
.cat-label {
  display: none;
}
/* 投稿コメントヘッダー */
h3#reply-title {
  display: none;
}
/* 投稿コメントボタン */
.comment-form .submit {
  background-color: var(--bgc);
  color: #fff;
}
/* 投稿コメント */
form#commentform>p {
  margin-bottom: 10px;
}
/* 投稿コメント日付 */
.comment-meta.commentmetadata>a:not(.comment-edit-link){
  display: none;
}

/* ヘッダー固定 */
#header-container-in{
  position: fixed;
  top: 0;
  z-index: 20;
  width: 100%;
  transition: all 0.3s ease-out;
  background-color: #fff;
}
/* ヘッダー固定分の上部余白 */
.body {
  margin-top: 130px;
}
/* .content {
  margin-top: 130px;
} */
.breadcrumb.sbp-main-before, .breadcrumb.sbp-footer-before, .breadcrumb.pbp-main-before, .breadcrumb.pbp-footer-before {
  padding-top: 44px;
}

/* ヘッダーナビ */
.navi.cf {
  padding-bottom: 16px;
}

/* トップ余白 */
main.main {
  padding-top: 32px;
  padding-bottom: 0;
}
.archive main.main, .single main.main {
  padding-top: 0;
}

/* Ranking of articles this category */
.widget h2 {
  margin: 22px 0;
  font-size: 24px;
}
.widget-entry-cards .a-wrap {
  text-decoration: none;
  display: block;
  color: var(--cocoon-text-color);
  padding: 1.5%;
  margin-bottom: 3%;
  transition: all 0.3s ease-in-out;
}
.widget-entry-cards figure {
  width: 160px;
}
.widget-entry-card-content {
  margin-left: 170px;
}
.popular-entry-card-title.widget-entry-card-title.card-title {
  font-size: 18px;
  margin: 0 0 5px 0;
  line-height: 1.6;
  font-weight: 400;
}

/* Bookmarks */
aside .textwidget>p {
  display: flex;
  flex-direction: row;
  align-items: normal;
}
aside .bookmark-icon {
  margin: 0 5px 0 0;
}
aside .textwidget>p a {
  text-decoration: none;
}

i.sf-icon-bookmark {
  font-size: 20px;
  color: var(--bgc);
}

/* .simplefavorite-button .sf-icon-bookmark:before {
  content: "";
  background-color: var(--bgc);
  display: inline-block;
  height: 20px;
  width: 20px;
  -webkit-mask: url("http://letteralpha.com/wp-content/uploads/2023/11/bookmark.svg");
  mask: url("http://letteralpha.com/wp-content/uploads/2023/11/bookmark.svg");
  -webkit-mask-size: cover;
  mask-size: cover;
  vertical-align: middle;
}
.simplefavorite-button.active .sf-icon-bookmark:before {
  content: "";
  background-color: var(--bgc);
  display: inline-block;
  height: 20px;
  width: 20px;
  -webkit-mask: url("http://letteralpha.com/wp-content/uploads/2023/12/bookmark-fill-200.svg");
  mask: url("http://letteralpha.com/wp-content/uploads/2023/12/bookmark-fill-200.svg");
  -webkit-mask-size: cover;
  mask-size: cover;
  vertical-align: middle;
} */

.simplefavorite-button .sf-icon-bookmark:before {
  content: "";
  background-image: url("http://letteralpha.com/wp-content/uploads/2023/12/bookmark-20.svg");
  display: inline-block;
  height: 20px;
  width: 20px;
  vertical-align: middle;
}
.simplefavorite-button.active .sf-icon-bookmark:before {
  content: "";
  background-image: url("http://letteralpha.com/wp-content/uploads/2023/12/bookmark-fill-20.svg");
  display: inline-block;
  height: 20px;
  width: 20px;
  vertical-align: middle;
}

span.simplefavorite-button.active{
  opacity: 1;
}

aside .textwidget>p a {
  display: flex;
  align-items: center;
}

/* Your Bookmarksページ */
.page-id-2208 .date-tags {
  display: none;
}
.page-id-2208 .favorites-list li {
  border: none;
}
.page-id-2208 .favorites-list li > p:has(.simplefavorite-button) {
  display: none;
}
.favorites-list p {
  margin-bottom: 0;
}

aside .textwidget, aside.widget_categories >ul,  aside.widget_archive >ul {
  padding-left: 18px;
}


/* contact7 */
.page-id-2229 .date-tags {
  display: none;
}
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
  border: none;
  color: #980000;
  font-size: 14px;
}
.wpcf7 form.sent .wpcf7-response-output {
  border: none;
}
form.wpcf7-form p {
  margin-bottom: 1rem;
}
.wpcf7 form .wpcf7-response-output {
  margin-bottom: 2rem;
  margin-top: -1rem;
  margin-left: 0;
  margin-right: 0;
}
form.wpcf7-form p:nth-child(10) {
  margin-bottom: 0px;
}
.wpcf7-not-valid-tip {
  color: #980000;
  font-size: 14px;
  padding-left: 0.8rem;
}
input.wpcf7-form-control.wpcf7-submit {
  background-color: var(--bgc);
  color: #fff;
}
aside .envelope-icon {
  margin: 0 5px 0 4px;
}
.nwa aside .author-box {
  padding-bottom: 0;
  margin-bottom: 0;
}
.nwa aside .author-box .author-content {
  padding-bottom: 5px;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1024px以上*/
@media screen and (min-width: 1024px){
  /* ヘッダー下線 */
  div#header-container {
    border-bottom: 2px solid #eee;
  }
  /* ヘッダーサイト名 */
.site-name-text:hover {
  opacity: 0.7;
}
/* 検索アイコン */
.fa-search:before {
  top: 16px;
}
}

/*1023px以下*/
@media screen and (max-width: 1023px){
  /* ヘッダーカテゴリ */
  #navi .navi-in > .menu-mobile li {
    width: 30%;
    height: 28px;
    line-height: 18px;
  }
  .navi-in > ul li {
    width: 25%;
    height: 28px;
    line-height: 20px;
}

  /* ヘッダーロゴ */
  .logo-text {
    padding: 0px 0 16px;
  }
  /* 追加検索ボタンテキスト */
  span.search-menu-caption.menu-caption {
    display: none;
  }
  li.search-menu-button.menu-button {
    width: 10%;
  }

  /* ヘッダーサイト名 */
  .site-name-text:active {
    opacity: 0.7;
  }
}

/*834px以下*/
@media screen and (max-width: 834px){
  /* トップ余白 */
    /* .content {
    margin-top: 86px;
    margin-top: 0;
    padding-top: 10px;
  } */
  .body {
    margin-top: 94px;
    margin-top: 118px;
  }
  .breadcrumb.sbp-main-before, .breadcrumb.sbp-footer-before, .breadcrumb.pbp-main-before, .breadcrumb.pbp-footer-before {
    padding-top: 24px;
  }
  .navi-in > .menu-header {
    display: flex;
  }
  main.main, div.sidebar {
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
}

  /* ニュースレター登録 */
  aside#mailpoet_form-7 {
    display: none;
  }
  /* ヘッダータイトル */
  #header .site-name-text {
    font-size: 24px;
  }
}

/*480px以下*/
@media screen and (max-width: 480px){
  /* トップ余白 */
  /* .body {
    margin-top: 118px;
    margin-top: 68px;
  } */

  /* ヘッダータイトル */
  #header .site-name-text {
    font-size: 24px;
  }

  /* Ranking of articles this category */
  .widget h2 {
    margin: 1.2em 0 1em;
    font-size: 24px;
  }
  .widget-entry-cards figure {
    width: 38%;
    margin-bottom: 6px;
  }
  .widget-entry-card-content {
    margin: 0;
  }
  .popular-entry-card-title.widget-entry-card-title.card-title {
    font-size: 16px;
    line-height: 1.3;
  }
  /* 投稿前後記事 */
  .pager-post-navi a.prev-post .prev-post-title {
    overflow: hidden;
  }
}