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

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

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

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
#header .site-name-text {
font-size: 40px;
}
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
#header .site-name-text {
font-size: 40px;
}
}

/* Swallowアイキャッチ画像をぼかしながら拡大する */

 * a.entry-card-wrap:hover img.entry-card-thumb-image{
  filter: blur(0.5px) brightness(60%);
  transform: scale(1.03);
  opacity: 1;
  transition: 0.3s;
}


a.entry-card-wrap figure.entry-card-thumb{
  overflow: hidden;
  line-height: 0;
  margin-bottom: .5em;
}

a.entry-card-wrap figure.entry-card-thumb .cat-label{
  line-height: 1.7;
}

/* カーソルを載せたときにアイキャッチ画像に「READ MORE」の文字がフェードインする */
a.entry-card-wrap figure.entry-card-thumb::before{
  z-index: 1;
  font-family: sans-serif;
  font-weight: bold;
  content: "READ MORE";
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center;
  position: absolute;
  font-size: 100%;
  width: 100%;
  height: 100%;
  color: #fff;
  top: 0;
  left: 0;
  opacity: 0;
  transition: .25s ease;
  -webkit-transition: .4s ease;
  -moz-transition: .4s ease;
  -ms-transition: .4s ease;
}

a.entry-card-wrap:hover figure.entry-card-thumb::before{
  opacity: 0.9;
  font-size: 150%;
}

.entry-card-snippet{
  font-size: 72%;
  line-height: 1.6;
  color: gray;
  text-align: justify;
  text-justify: inter-ideograph;
}

.home main, .archive main{
    background-color: transparent;
    margin-top: 0;
    padding-top: 0;
}

.entry-card-wrap{
    background-color: white;
    border-radius: 4px;
    margin-bottom: 1em!important;
}

.entry-card-wrap:hover{
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.2);
    transform: translateY(-2px);
    background-color: white; 
    transition: all .3s ease;
}

.post-meta-time {
    font-size: 0.9em;
    color: #666;
}

.main{
    background-color: #FAFAFA;
}

.a-wrap {
    color: #000;
}

.fa-twitter:before {
    content: '𝕏'; /* Xのロゴを表示 */
    font-family: unset;
    font-weight: bold;
    text-decoration: none; /* アンダースコアを削除 */
}

.fab.icon-home-logo {
    font-size: 48px; /* サイズを大きくします */
}

.fab.fa-twitter {
    font-size: 48px; /* サイズを大きくします */
}

.fab.fa-github {
    font-size: 48px; /* サイズを大きくします */
}

.custom-link {
	color: #696969; /* 色変更 */
	text-decoration: none;

}

/* ドロップダウンメニューの横幅に余裕を持たせる */
.sub-menu {
  min-width: 340px !important;        /* 現状+40〜60px程度広げる */
  box-sizing: border-box !important;
  left: -10px !important;             /* 少し左にずらす（お好みで±調整） */
}

.sub-menu li {
  margin: 0 !important;
}

.sub-menu li a {
  padding: 0 !important;
}

/* メニュー項目のテキストがフル表示されるように */
.sub-menu li a .caption-wrap,
.sub-menu li a .item-label {
  white-space: nowrap !important;     /* 折り返しを禁止 */
  overflow: visible !important;
  text-overflow: unset !important;
  max-width: none !important;
  width: 100% !important;             /* 幅を親に合わせる */
  display: block !important;
  box-sizing: border-box !important;
  padding: 6px 14px !important;       /* 縦の余白を縮める */
  line-height: 1.3 !important;        /* 行間を少し詰める */
  font-size: 16px !important;
}

.sub-menu li a:hover .item-label {
  background-color: #eaf4fc;
  color: #0078d7;
  transition: background-color 0.2s ease;
}

@media screen and (max-width: 768px) {
  .sub-menu {
    min-width: auto !important;
    width: 100% !important;
    left: 0 !important;
  }
  .sub-menu li a .caption-wrap,
  .sub-menu li a .item-label {
    white-space: normal !important;
    font-size: 15px !important;
    padding: 10px 14px !important;
  }
}