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

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

.grecaptcha-badge { visibility: hidden; }

.article-footer, .entry-footer {
  background: none;
}
.pager-post-navi {
  background: none;
}

.box-menu{
	padding: 0;
	min-height: 0;
}

.box-menu:hover{
	box-shadow:none;
	opacity: 0.8;
} 

.box-menu-icon *{
	margin: 0;
	max-width: 100%;
	max-height: 300px;
}

/*---------------------------------
カテゴリの行間とフォントを小さくする
--------------------------------*/
.widget_categories ul li a{
	line-height: 1.3;
	font-size: 15px;
}

.wp-block-columns {
	flex-wrap: nowrap;
}

.widget_categories ul li  a + ul {
	display:none;
}

.widget_categories ul li:hover ul {
	display:block;
}

/*ボックスメニュー　背景色・罫線を消す*/
.box-menu {
box-shadow: none; 
background: transparent;　
}

/*ボックスメニュー　センタリング*/
.box-menu:first-child{
    margin-left: auto;
}
}

/*スマホ横並び維持*/
.ath-colfix{
flex-wrap:nowrap;
}
@media (max-width: 599px){
.ath-colfix .wp-block-column:not(:first-child) {
    margin-left: 5px;
}
}

/* おすすめカードで非表示に */
.navi-entry-card-content .cat-label {
	display: none;
}
/* サイドバーで非表示に */
.widget-sidebar .cat-label{
	display: none;
}
/* フッターで非表示に */
.widget-footer-mobile .cat-label,
.widget-footer-center .cat-label,
.widget-footer-right .cat-label {
	display: none
}

.internal-blogcard-snippet{
    display: none;
}


/*-----------------------------------------------
ギャラリーcss追加
----------------------------------------------- */
.wp-block-gallery .blocks-gallery-item {
flex-grow: 0 !important;
}
 
.wp-block-gallery .blocks-gallery-item figcaption {
	bottom: -3em !important;
	background: none !important;
	color: #333 !important;
}
 
.blocks-gallery-item {margin-bottom: 100px !important;}

/* ハンバーガーメニュー */
.my-content {
  background: rgb(0 0 0 / 50%);
  height: 100vh;
  left: 0;
  opacity: 0;
  position: fixed;
  top: 0;
  transition: all 0.3s;
  width: 100%;
  z-index: -1;
}

.my-menu:has(#my-btn-check:checked) .my-content {
  opacity: 1;
  z-index: 999;
}

.my-content ul {
  height: fit-content;
  inset: 0;
  margin: auto;
  padding: 0;
  position: fixed;
  z-index: 999;
}

.my-content li {
  display: block;
  list-style: none;
  text-align: center;
}

.my-content li a {
  color: #fff;
  padding: 10px;
  text-decoration: none;
}

/* メニューボタン */
#my-btn-check {
  display: none;
}

.my-menu-btn {
  cursor: pointer;
  height: 50px;
  position: fixed;
  right: 30px;
  top: 10px;
  width: 60px;
  z-index: 9999;
}

.my-menu-btn span {
  background-color: #333;
  border-radius: 2px;
  display: inline-block;
  height: 2px;
  left: 14px;
  position: absolute;
  transition: all .3s;
  width: 50%;
}

/* ボタンオフ */
.my-menu-btn span:nth-of-type(1) {
  top: 15px;
}

.my-menu-btn span:nth-of-type(2) {
  top: 23px;
}

.my-menu-btn span:nth-of-type(3) {
  top: 31px;
}

/* ボタンオン */
.my-menu:has(#my-btn-check:checked) .my-menu-btn span:nth-of-type(1) {
  left: 16px;
  top: 18px;
  transform: translateY(6px) rotate(-45deg);
  width: 50%;
}

.my-menu:has(#my-btn-check:checked) .my-menu-btn span:nth-of-type(2) {
  opacity: 0;
}

.my-menu:has(#my-btn-check:checked) .my-menu-btn span:nth-of-type(3) {
  top: 30px;
  left: 16px;
  transform: translateY(-6px) rotate(45deg);
  width: 50%;
}

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

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

@media screen and (min-width: 600px){
.box-menu{
	width: calc(100%/3);
}
}
/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
