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

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

/************************************
** 全般
************************************/
/*投稿日非表示*/
.content{
  margin: 0;
}
.date-tags{
  display: none;
}
/*執筆者非表示*/
.author-info{
  display: none;
}
/*cat-label非表示*/
.cat-label{
  display: none;
}
/*タグ非表示*/
.entry-tags{
  display: none !important;
}
/*コンテンツ幅*/
.wrap{
  width: 800px;
  margin-right: auto;
  margin-left: auto;
}
/*メイン枠*/
.main{
  border: solid;
}
/*ブログカード*/
.blogcard{
  border-color: #000 !important;
}
/*フッター*/
.footer{
  margin-top: 0;
}
.source-org{
  color: gray !important;
}
/* カスタムボタン全体 */
/* コンテナ */
.button-container-2 {
  text-align: center;
  margin: 60px !important;
}

/* ボタン本体 */
.custom-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;                  /* 高さ固定 */
  padding: 0 16px;               /* 上下は0推奨 */
  border: unset;
  border-radius: 15px;
  background: #e8e8e8;
  color: #212121;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 400;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27);
  transition: all .2s ease;      /* 背景・文字色・影をまとめて */
}

/* 画像 */
.custom-button img.button-image {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  transition: all .2s ease;      /* フィルタをテキストと同じ速度で */
}
.button-image{
  height:80%;
}

/* ホバー＆クリック時 */
.custom-button:hover,
.custom-button:active {
  background-color: #00c195;
  color: #ffffff; /* テキストを白に */
}

/* ホバー＆クリック時に画像も白に */
.custom-button:hover img.button-image,
.custom-button:active img.button-image {
  filter: brightness(0) invert(1);
}

 
/*引用*/
.article .wp-block-quote{
  border: 1px solid black;
}

/*フォント*/
.article h1{
  font-family: "Zen Kaku Gothic New", sans-serif;
  color:#050f77;
  font-weight: 400 !important;
}
.article h2{
  color: #050f77 !important;;
  padding: 0 !important;
  font-family: "Noto Sans JP","Hiragino Kaku Gothic ProN","Hiragino Kaku Gothic Pro","游ゴシック Medium","Yu Gothic Medium","游ゴシック体","YuGothic","Meiryo","MS PGothic","sans-serif";
  font-size: 24px;
  padding: 10px 0px 10px 16px !important;
  border-left: 6px solid #050f77;
}
.article h3{
  color:#000!important;
  padding: 0 !important;
  font-family: "Noto Sans JP","Hiragino Kaku Gothic ProN","Hiragino Kaku Gothic Pro","游ゴシック Medium","Yu Gothic Medium","游ゴシック体","YuGothic","Meiryo","MS PGothic","sans-serif";
  font-size: 20px;
  padding: 10px 0px 10px 16px !important;
  border-bottom:1px solid#ccc !important;
}
p{
  font-family: "Noto Sans JP","Hiragino Kaku Gothic ProN","Hiragino Kaku Gothic Pro","游ゴシック Medium","Yu Gothic Medium","游ゴシック体","YuGothic","Meiryo","MS PGothic","sans-serif";
}


/************************************
** topページ
************************************/

/*タイトル非表示*/
.page-id-15 h1.entry-title{
  display: none;
}
/*投稿上ウィジェット部分*/
.page-id-15 header.entry-header{
  margin-bottom: 4em;
}

.page-id-15 h2, h3{
  font-family: "Zen Kaku Gothic New", sans-serif;
}
/*日付アニメーション*/
.date-wrapper {
  text-align: center;
}

.day-number {
  font-family: "PT Sans", sans-serif;
  font-size: 120px;  /* フォントサイズを大きく設定 */
  font-weight: 400;  /* フォントを太字に */
  color: #333;  /* フォントの色を設定 */
}
/*一週間前の投稿呼び出し*/
/*
.clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 10 ; 
    overflow: hidden;
}
*/
.fade-in-heading1{
  visibility: hidden;
}
.fade-in-text {
  font-family: "Noto Sans JP","Hiragino Kaku Gothic ProN","Hiragino Kaku Gothic Pro","游ゴシック Medium","Yu Gothic Medium","游ゴシック体","YuGothic","Meiryo","MS PGothic","sans-serif";
  visibility: hidden;
}
/*次の日記*/
.button-container {
  visibility: hidden;  /* 最初は要素を非表示に設定 */
  opacity: 0;
  transition: opacity 2.5s ease-in-out; /* 透明度の変化にアニメーションを適用 */
  /* その他のスタイル設定 */
  text-align: center;
  margin: 60px;
}
/*
パターン１
.read-more {
  display: none;
  text-align: center;
  margin-top: 40px;
  align-items: center;
  background-color: transparent;
  color: #000;
  cursor: pointer;
  font-family: "BIZ UDPMincho", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  text-transform: uppercase;
  outline: 0;
  border: 0;
  padding: 1rem;
}

.read-more:before {
  background-color: #000;
  content: "";
  display: inline-block;
  height: 1px;
  margin-right: 10px;
  transition: all .42s cubic-bezier(.25,.8,.25,1);
  width: 0;
}

.read-more:hover:before {
  background-color: #000;
  width: 3rem;
}
*/
/*パターン2*/
.read-more {
  text-align: center;
  padding: 15px 25px;
  border: unset;
  border-radius: 15px;
  color: #212121;
  z-index: 1;
  background: #e8e8e8;
  position: relative;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 400;
  font-size: 17px;
  -webkit-box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
  box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
  overflow: hidden;
  cursor: pointer;
 }
 
 .read-more::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  border-radius: 15px;
  background-color: #00c195;
  z-index: -1;
  -webkit-box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
  box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
 }
 
 .read-more:hover {
  color: white;
 }
 
 .read-more:hover::before {
  width: 100%;
 }
/*
/*パターン3*/
/*
.read-more{
  display: none;
  text-align: center;
  margin-top: 40px;
}

.read-more a {
  font-family: "BIZ UDPMincho", serif;
  border: 2px solid #000;
  border-radius: 0;
  background: #fff;
  -webkit-box-shadow: 4px 4px 0 #000;
  box-shadow: 4px 4px 0 #000;
  padding: 14px;
  color: black;
  text-decoration: none;
}

.read-more a:hover {
  -webkit-box-shadow: -4px -4px 0 #000;
  box-shadow: -4px -4px 0 #000;
  color: black;
  text-decoration: none;
  background-color: #00c195;
}
*/
/*h1の一部にのみ色*/
h1 span.h1-highlight{
  color:#050f77;
  border-bottom: 2px solid #050f77;
  font-weight: 500;
}
/*記事*/
.new-entry-card-thumb{
  transition: opacity 0.2s ease;
}
.new-entry-card-thumb:hover{
  opacity: 0.6;
}
.new-entry-card-thumb img{
  border: solid 1px;
  border-radius: 6px;
}
.new-entry-card-title {
  color:#050f77;
  font-family: "Noto Sans JP","Hiragino Kaku Gothic ProN","Hiragino Kaku Gothic Pro","游ゴシック Medium","Yu Gothic Medium","游ゴシック体","YuGothic","Meiryo","MS PGothic","sans-serif";
  font-weight: 400;
}

/************************************
** カテゴリページ
************************************/
.entry-card-thumb{
  transition: opacity 0.2s ease;
}
.entry-card-thumb:hover{
  opacity: 0.6;
}
.entry-card-thumb img{
  border: solid 1px;
  border-radius: 6px;
}
.entry-card-info{
  display: none;
}
.archive-title{
  font-family: "Noto Sans JP","Hiragino Kaku Gothic ProN","Hiragino Kaku Gothic Pro","游ゴシック Medium","Yu Gothic Medium","游ゴシック体","YuGothic","Meiryo","MS PGothic","sans-serif";
  color:#050f77;
  font-weight: 500;
}
.archive-title span{
  display: none;
}

/************************************
** カレンダー
************************************/
#calendar-nav {
  text-align: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

#prev-month, #next-month{
    background-color: #f2f2f2;
    border: 1px solid rgb(209,213,219);
    border-radius: .5rem;
    color: #212121;
    font-family: ui-sans-serif,system-ui,-apple-system,system-ui,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.25rem;
    padding: .75rem 1rem;
    text-align: center;
    -webkit-box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-select: none;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
  }
  
#prev-month:hover, #next-month:hover {
  background-color: #00c195;
  color: white;
}

#select-month{
  font-size: 16px;
  font-family: "Noto Sans JP","Hiragino Kaku Gothic ProN","Hiragino Kaku Gothic Pro","游ゴシック Medium","Yu Gothic Medium","游ゴシック体","YuGothic","Meiryo","MS PGothic","sans-serif";
}

#calendar table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ccc; /* テーブル全体の枠線 */
  table-layout: fixed; /* 固定レイアウト */
}

#calendar th, #calendar td {
  width: 14.28%; /* 7等分 */
  border: 1px solid #ccc; /* セルごとの枠線 */
  text-align: center;
  vertical-align: top;
  padding: 0;
}

#calendar th {
  background-color: white; /* 曜日ヘッダーの背景色 */
  height: auto;
}

#calendar td {
  position: relative;
  height: 100px;
}

#calendar td:has(.has-post) {
  background-color:#f2f2f2;/* リンクがある場合の背景色 */
  transition: 0.2s ease;
}

#calendar td:has(.has-post):hover {
  color: white;
  background-color: #00c195; /* リンクがある場合の背景色 */
}

#calendar td a.has-post {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
  color: black; /* 数字の色 */
}

#calendar td a.has-post .day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#calendar td .post-list {
  display: none;
  position: absolute;
  background: white;
  padding: 10px;
  z-index: 10;
  top: 90%; /* ポップアップがリンクの下に表示されるようにする */
  left: 0;
  width: 200px;
  transition: transform 0.5s ease;
  box-shadow: 10px 5px 5px #ccc;
}

#calendar td:hover .post-list {
  display: block;
  left: 50%;
  transform: translateX(-50%);
}

.post-list a{
  color: #333;
  font-size: 16px;
}

.post-list a:hover{
  opacity: 0.6;
}

/************************************
** 投稿ページ
************************************/
.entry-title{
  text-align: center;
}
.entry-content {
  margin-top: 3em;
  margin-bottom: 3em;
}
/*執筆日表示*/
.publish-date {
  text-align: center;
}
/*関連記事非表示*/
#related-entries{
  display: none;
}
/*前後記事*/
.pager-post-navi{
  display: flex;
  width: 100%;
}
.pager-post-navi a figure{
  display: none;
}
.pager-post-navi a .iconfont{
  color: black;
}
/*コメント非表示*/
#comment-area{
  display: none;
}
/*執筆者*/
.textwidget{
  display: flex;
  justify-content: center;
}
.diary-explanation{
  margin-bottom: 1.4em !important;
  text-align: center;
  border-bottom: 1px solid ;
  border-color: #000;
}
.author-data{
  font-family: "Zen Kaku Gothic New", sans-serif;
  width: 56%;
  display: flex;
  flex-direction: column;
}
.author-top{
  width: 100%;
  display: flex;
  align-items: center;
  margin-left: 1em;
  margin-right: 1em;
}
.author-photo{
  width: 120px;
  height: 120px;
}
.author-name{
  font-size: 18px;
  margin-left:2em !important;
  margin-bottom: 0 !important;
}
.author-bottom{
  font-size: 14px;
  margin-top: 1em !important;
  margin-left: 1em !important;
  margin-right: 1em !important;
}

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

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
  /*コンテンツ幅*/
  .wrap{
    width: 94%;
    margin-left: auto;
    margin-right: auto;
  }
  /*メイン枠*/
  .main{
    border: solid;
    border-width: 1px !important;
  }
  /*執筆者*/
  .author-data{
    width: 90%;
  }
  .author-photo{
    width: 80px;
    height: 80px;
  }

}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
  #calendar th {
    height: auto;
  }
  #calendar td {
    height: 60px;
  }
  #calendar td:hover .post-list {
    width: 220%;
  }
  .post-list a{
    color: #333;
    font-size: 14px;
  }
}
