@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 0.2s ease; /* 背景・文字色・影をまとめて */
}

/* 画像 */
.custom-button img.button-image {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  transition: all 0.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;
  flex-direction: row;
  align-items: stretch;
  gap: 1rem;
  margin-bottom: 20px;
  border-radius: 24px;
  padding: 1rem 1.25rem;
  flex-wrap: nowrap;
}

.calendar-nav__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
}

.calendar-nav__btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #050f77;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27);
}

.calendar-nav__btn span {
  pointer-events: none;
}

.calendar-nav__btn:hover,
.calendar-nav__btn:focus-visible {
  box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27);
  filter: brightness(1.05);
  outline: none;
}

.calendar-picker {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: #f0f7ff;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Hiragino Kaku Gothic Pro", "游ゴシック Medium", "Yu Gothic Medium",
    "游ゴシック体", "YuGothic", "Meiryo", "MS PGothic", "sans-serif";
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.calendar-picker__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.calendar-picker__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
}

.calendar-picker__control {
  position: relative;
}

.calendar-picker__control select {
  width: 100%;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  border-radius: 18px;
  border: none;
  background: #e8e8e8;
  color: #212121;
  font-size: 1.125rem;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 400;
  text-align: center;
  padding: 0.85rem 2.75rem 0.85rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27);
}

.calendar-picker__control select option {
  color: #050f77;
  background: #e5f9f3;
}

.calendar-picker__control select:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

.calendar-picker__chevron {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  width: 10px;
  height: 10px;
  pointer-events: none;
  border-right: 2px solid rgba(255, 255, 255, 0.85);
  border-bottom: 2px solid rgba(255, 255, 255, 0.85);
  transform: translateY(-50%) rotate(45deg);
}

@media (max-width: 640px) {
  #calendar-nav {
    padding: 0.85rem 0rem;
    gap: 0.6rem;
  }

  .calendar-nav__btn {
    width: 38px;
    height: 38px;
  }

  .calendar-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0.7rem;
  }

  .calendar-picker__control select {
    font-size: 1rem;
    padding: 0.55rem 1.6rem 0.55rem 0.65rem;
    text-align: center;
  }

  .calendar-picker__label {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
  }
}

#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;
  }
}
