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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
body {
  background-size: cover;
  position: relative;

}

header {
  /*
  position: absolute;
  top: 0;
  z-index: 9999;
*/
  display: none !important;
}

.header {
  width: 100%;
  height: auto;
  background-size: 100% auto;
  aspect-ratio: 1920 / 170;
}

.site-name-text {
  display: none;
}

#appeal {
  background-image: url("https://min-tera-yakage.com/blog/wp-content/themes/cocoon-child-master/image/title-img.jpg");
  aspect-ratio: 1920 / 550;
  background-size: cover;
  background-position: center;
}

#main {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
}

.sidebar {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
}

/* .widget_recent_entries ul li a,
.widget_categories ul li a,
.widget_archive ul li a,
.widget_pages ul li a,
.widget_meta ul li a,
.widget_rss ul li a,
.widget_nav_menu ul li a,
.widget_block ul li a {
  transition: 0.3s;
} */

.widget_recent_entries ul li a:hover,
.widget_categories ul li a:hover,
.widget_archive ul li a:hover,
.widget_pages ul li a:hover,
.widget_meta ul li a:hover,
.widget_rss ul li a:hover,
.widget_nav_menu ul li a:hover,
.widget_block ul li a:hover {
  background-color: transparent;
  transition: none;
  color: inherit;
  text-decoration: underline;
}

.sidebar h2,
.sidebar h3 {
  background-color: #84aa06;
  color: #fff;
  font-size: 1em;
  padding: 0.5em;
}

/* .sidebar h2,
.sidebar h3 {
  background-color: #fff;
  color: #84aa06;
  font-size: 1em;
  padding: 0.5em;
} */

h2.cardh2 {
  padding: 0.25em;
  width: 100%;
  text-align: center;
  /* color: #84aa06; */
  /* border-top: 2px solid #84aa06; */
  /* border-bottom: 2px solid #84aa06; */
  /* border-radius: var(--cocoon-badge-border-radius); */
  background-color: transparent;
  color: #2FA8A8;
  border-top: 3px solid #2FA8A8;
  border-bottom: 3px solid #2FA8A8;
}

.article h1,
.article h2,
.article h3,
.article h4,
.article h5,
.article h6 {
  color: #333;
  margin-bottom: 1em;
}

.article h1 {}

.article h2 {
  background-color: transparent;
  padding: 0;
  font-family: "ヒラギノ明朝 ProN W6", "HiraMinProN-W6", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
  color: #84aa06;
  font-weight: bold;
  font-size: clamp(18px, 1.67vw, 32px);
  margin-bottom: 1em;
  line-height: 1.6;
  position: relative;
}

.article h2::first-letter {
  position: relative;
  z-index: 1;
  margin-right: 0.25em;
  margin-left: 0.25em;
  color: #fff;
	text-shadow:1px 1px 0 #84aa06, -1px -1px 0 #84aa06,
              -1px 1px 0 #84aa06, 1px -1px 0 #84aa06,
              0px 1px 0 #84aa06,  0-1px 0 #84aa06,
              -1px 0 0 #84aa06, 1px 0 0 #84aa06;
}

.article h2::before {
  content: '';
  position: absolute;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background-color: #84aa06;
  margin-top: 0.05em;
  top: 0;
  z-index: -1;
}

.article h3 {
  border-top: none;
  border-bottom: 2px solid #000;
  border-right: none;
  border-left: none;
  padding-left: 0.25em;
  padding-bottom: 0.5em;
  margin-bottom: 1em;
  /* background-color: #fff; */
}

.article h5,
.article h6 {
  margin-bottom: 0.5em;
  color: #666;
  padding: 0;
  border-bottom: none;
}

.article h6 {
  font-family: "ヒラギノ明朝 ProN W6", "HiraMinProN-W6", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
  font-weight: bold;
}

.blogcard,
.ecb-entry-border .entry-card-wrap,
.page-numbers,
.pagination-next-link,
.comment-btn,
.index-tab-buttons .index-tab-button,
.border-square .a-wrap,
.author-box {
  background-color: #84aa06;
  color: #fff;
}

/* エントリーカード */
.a-wrap {
  text-decoration: none;
  display: block;
  color: var(--cocoon-text-color);
  padding: min(5%, 1em);
  margin-bottom: 3%;
  transition: all 0.3s ease-in-out;
  background-color: #fff;
}

/* .rect-vertical-card .related-entry-card-wrap {
  padding: 12px;
} */

.widget-entry-cards .a-wrap {
  padding: 5px;
  line-height: 1.3;
  margin-bottom: 4px;

}

.a-wrap:hover {
  background-color: transparent;
  transition: all 0.3s ease-in-out;
  color: var(--cocoon-text-color);
}

/*フッター*/
.footer {
  margin-top: 120px;
  padding: 30px 0 20px;
}

.footer-bottom {
  display: flex;
  justify-content: center;
}

.footer-bottom-logo .logo-image {
  padding: 0;
  max-width: 900px;
  display: flex;
  justify-content: center;
}

.footer-bottom-logo img {
  height: auto;
  width: auto;
}

.copyright {
  display: none;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/

/*1024px以上*/
@media screen and (min-width: 1024px) {

  /*必要ならばここにコードを書く*/
  /* 固定ページの上部に余白を作る */
  .content {
    margin-top: 60px;
  }
}

/*1023px以下*/
@media screen and (max-width: 1023px) {

  /*必要ならばここにコードを書く*/

  header {
    display: none !important;
  }

  .appeal-in {
    min-height: auto !important;
  }

  .wrap {
    padding: 0 20px;
  }
	.footer {
		padding: 8px;
	}
	.footer-bottom {
		margin-top: 0;
	}
	
	  /* フッターメニューバー */
  .mobile-menu-buttons {
    background-color: #84aa06;
  }

  .mobile-footer-menu-buttons .menu-button,
  .mobile-menu-buttons .menu-button>a {
    color: #fff;
  }

  .menu-close-button {
    background-color: #999;
  }
}

/*834px以下*/
@media screen and (max-width: 834px) {

  /*必要ならばここにコードを書く*/

  #appeal {
    background-image: url("https://min-tera-yakage.com/blog/wp-content/themes/cocoon-child-master/image/title-img-tab.jpg");
    aspect-ratio: 1360 / 500;
  }

  .appeal-in {
    min-height: auto !important;
  }

  main.main,
  div.sidebar {
    padding: 1em;
  }

  .rect-vertical-card .related-entry-card-wrap {
    width: 100%;
  }

}

/*480px以下*/
@media screen and (max-width: 480px) {

  /*必要ならばここにコードを書く*/

  #appeal {
    background-image: url("https://min-tera-yakage.com/blog/wp-content/themes/cocoon-child-master/image/title-img-sp.jpg");
    aspect-ratio: 500 / 250;
  }

  .ect-vertical-card .entry-card-wrap {
    width: 100% !important;
  }

  h2.cardh2 {
    font-size: 20px;
  }

  .footer {
    margin-top: 60px;
    padding: 0;
  }

  .footer-bottom {
    margin-top: 0;
  }

  /* 元の画像を非表示にする */
  .footer-site-logo-image {
    display: none;
  }

  /* 親要素にスマホ用ロゴを背景として設定 */
  .logo-footer a {
    display: inline-block;
    background-image: url("https://min-tera-yakage.com/blog/wp-content/themes/cocoon-child-master/image/footer-logo-sp.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 70vw;
    aspect-ratio: 1170 / 176;
    vertical-align: middle;
  }
}