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

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

/* ページ送りナビの左右を入れ替える(Cocoon ver.2～) */
.pager-post-navi a.prev-post {
    flex-direction: row-reverse;
    padding:10px 5px 10px 10px;
}
.pager-post-navi a.next-post {
    flex-direction: row;
    padding:10px 10px 10px 5px;
}
.pager-post-navi a.next-post .iconfont:before {
	content: '\f053';
}
.pager-post-navi a.prev-post .iconfont:before {
	content: '\f054';
}
.pager-post-navi a.next-post .next-post-title {
	margin: 0 0 0 10px;
}
.pager-post-navi a.prev-post .prev-post-title {
	margin: 0 10px 0 0;
}
@media screen and (min-width: 481px) {
    .pager-post-navi.post-navi-square {
        flex-direction: row-reverse;
    }
    .post-navi-square.post-navi-border a:last-child {
        border-left-width: 1px;
    }
    .post-navi-square.post-navi-border a:first-child {
        border-left-width: 0;
    }
}
/*次ページ前ページ記入*/
.prev-post-title:before,
.next-post-title:before {
    color: #999999; /* 文字色 */
    font-size: 12px; /* 文字サイズ */
    margin-bottom: 0.3em;
    display: block;
}
.next-post-title:before {
    content: '次のページ';
}
.prev-post-title:before {
    content: '前のページ';
}
/*アイキャッチ非表示*/
.prev-post-thumb,
.next-post-thumb{
  display:none;
}

/*カテゴリ・タグマークの非表示*/
.fa-folder-open:before {
	display: none;
}

.fa-tag:before {
	content: "#";
}
.fa-tags:before {
    content: "#";
}

/*カテゴリーやタグページの見出し*/
.archive-title {
  text-align: center;
}

/* Cocoonの固定ページのみで投稿日・更新日を非表示にする */
.page .post-date,
.page .post-update {
    display: none;
}

/*1カラム（狭い）で統一したい
.no-sidebar .wrap {
	max-width: 1000px;
}*/

/*プロフボタン編集*/
.more-button {
    display: block; /* ブロック要素にする */
    width: fit-content; /* 必要な幅だけ確保 */
    margin: 8px auto; /* 上下8px、左右autoで中央寄せ */
    padding: 8px 16px;
    background-color: #000; /* 黒背景 */
    color: #fff !important; /* 文字色を白 */
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

.more-button:hover {
    background-color: #333; /* ホバー時は少し明るい黒 */
}

/*アイキャッチラベルを非表示
.cat-label {
display: none;
}*/

/*投稿日系を左寄せ*/
.date-tags,
.date-published,
.date-updated {
    text-align: left !important;
    display: block;
}

/*固定ページのタイトルのみ非表示*/
.page .entry-title {
    display: none;
}

/* 記事に付くアイキャッチサイズ */
.eye-catch img {
  height: 300px;
  object-fit: cover;
}

/*アイキャッチをトップに*/
.single .entry-header {
	display: flex;
	flex-direction: column;
}
.single .entry-header .eye-catch-wrap {
	order: -1;
}
/*
.single .entry-header .eye-catch-wrap {
	margin: -36px -29px 0.5em;
}*/

/* 上に表示したカスタムタグだけは残す 
.custom-tags-before .tag-link {
  display: inline-block !important;
}

 それ以外（Cocoonデフォルトの本文下タグ）を消す 
.entry-footer .tag-link,
.entry-footer .fa-tag,
.entry-footer .post-tag,
.entry-footer .tag-links,
.tag-link.border-element {
  display: none !important;
}*/

/*キャッチフレーズ修正*/
.site-description {
  font-weight: normal !important;
  font-size: 0.9em;
  color: #666;
  margin-left: 10px;
  white-space: nowrap;
  display: inline-block;
}

/*プロフィール*/
/*
.author-name {
/*	margin-left: 1em;
  text-align: left !important;
  display: block;
}
.author-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* スマホで崩れないように */
/*  gap: 1em;
}
.author-content {
  flex: 1;
  min-width: 200px;
}
.author-thumb img {
	margin-left: 2em;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
}*/
/*
.author-thumb {
  flex-shrink: 0;
}
.author-name {
  font-weight: bold;
  margin-bottom: 0.3em;
}
.author-description {
  font-size: 0.9em;
  color: #555;
}
*/

/*カテゴリ非表示
.cat-label {
display: none;
}*/

/* 投稿カードを黒板風に */
.entry-card {
  background-color: #2f3e2e; /* 黒板グリーン */
  border: 1px solid #ccc;
  border-radius: 8px;
  color: #fff8dc; /* チョークっぽい */
  padding: 1em;
  font-family: 'Kiwi Maru', 'Hina Mincho', serif;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

/* 吹き出し風コメント */
.comment-content {
  background: #f4f4f4;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 1em;
}

body {
  background-color: #fff8f0; /* ほんのり夕焼けっぽいベージュ */
}
.entry-card {
  background-color: #40362e; /* 黒板じゃなく古びた机の色 */
  color: #fdf5e6; /* チョーク風オフホワイト */
  border-radius: 10px;
  padding: 1em;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}

/* 投稿タイトル・本文を柔らかいフォントに */
.entry-card h2, .entry-card p {
  font-family: "Kiwi Maru", "Yusei Magic", "游明朝", serif;
  line-height: 1.8;
}
.entry-card {
  padding: 1.5em;
}

/* ヘッダー全体背景と装飾を茶系に */
#header-container {
  background-color: #3a2e28; /* 落ち着いた焦げ茶 */
  border-bottom: 2px dashed #d9a066; /* 黒板のチョークっぽい線 */
  box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

/* 内側のパディング・フォント統一 */
#header-container-in {
/*  padding-top: 1em;
  padding-bottom: 0;*/
  font-family: 'Kiwi Maru', serif;
}

/* タイトルやメニューの文字色を明るく */
.site-name-text,
.site-description,
.tagline,
#navi a {
  color: #ffddaa;
}

/* ナビゲーション背景と点線 */
#navi {
	 background-color: #3a2e28; /* 落ち着いた焦げ茶 */
/*  border-top: 2px dashed #d9a066;
  border-bottom: 2px dashed #d9a066;*/
}

/* ナビゲーションリンク */
#navi a {
  color: #ffddaa;
  background-color: transparent;
  padding: 10px 16px;
  display: inline-block;
  transition: all 0.3s ease;
}

#navi a:hover {
 background-color: #5c4536;
/*  color: #fff;*/
}

/* フッターを落ち着いた雰囲気に */
.footer {
  background-color: #2f2a26;
  color: #f5e4d7;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  font-family: 'Kiwi Maru', serif;
  border-top: 2px solid #d9a066;
}

/* フッター内のリンクを明るく */
#footer a {
  color: #ffddaa;
}
#footer a:hover {
  text-decoration: underline;
}

#footer::before {
  content: "今日もおつかれさま。またここで会えますように。";
  display: block;
  font-size: 13px;
  margin-bottom: 10px;
  color: #ffdbb6;
  font-family: 'Kiwi Maru', serif;
}

/* フッター内メニューリンク見やすく */
#footer a {
  color: #ffddaa;
  background-color: transparent;
}
#footer a:hover {
/*  color: #fff;*/
/*  background-color: #d99355;*/
	 background-color: #5c4536;
}

/* 本文部分にカードっぽい囲み */
.article {
  background-color: #fffdf9;
  border: 1px dashed #d9a066;
  padding: 2em;
  border-radius: 12px;
  font-family: "Kiwi Maru", "Yu Mincho", serif;
  font-size: 17px;
  line-height: 1.9;
/*  max-width: 700px;*/
  margin: 0 auto;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.05);
}

/* タイトル */
.entry-title {
  font-size: 24px;
  font-weight: bold;
  color: #3e2d20;
  border-left: 6px solid #d9a066;
  padding-left: 12px;
  margin-bottom: 10px;
}

/* 投稿日時 */
.post-meta {
  font-size: 13px;
  color: #886f5a;
  font-style: italic;
  margin-bottom: 20px;
}

.entry-card {
  background-color: #3a2e28;
  color: #fff8dc;
  border: 2px dashed #d9a066;
  border-radius: 16px;
  padding: 1.5em;
  font-family: 'Kiwi Maru', serif;
  box-shadow: 4px 4px 6px rgba(0,0,0,0.1);
  background-image: url('/path/to/chalk-doodle.png'); /*←手書き装飾画像（用意するなら）*/
  background-repeat: no-repeat;
  background-position: top right;
}

/*背景透過*/
body,
#main,
#list,
.entry-card-wrap {
  background-color: transparent !important;
}

/* 透明化したエリアがホバー時に白くならないようにする */
.a-wrap:hover {
  background-color: rgba(0, 0, 0, 0.1) !important;
  transition: background-color 0.3s ease;
}

.comment-form {
  background-color: #fffaf0;
  padding: 1.5em;
  border-radius: 12px;
  border: 1px dashed #d9a066;
  font-family: 'Kiwi Maru', serif;
}

.comment-form textarea {
  border-radius: 8px;
  padding: 0.8em;
  font-size: 15px;
  line-height: 1.6;
}

/* サイドバー全体に板っぽい背景と装飾 */
.sidebar {
  background-color: rgba(255, 250, 240, 0.8);
  border: 2px dashed #d9a066;
  border-radius: 16px;
  padding: 1em;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.05);
}

/* 各ウィジェット内装飾を控えめに（付箋風） */
.widget {
  background-color: transparent;
  border: none;
  box-shadow: none;
  padding: 0.5em 0;
  margin-bottom: 1.2em;
}

/* 見出しは掲示ラベル風に残す */
.widgettitle {
  font-size: 15px;
  font-weight: bold;
  color: #4a2e28;
  border-left: 4px solid #d9a066;
  padding-left: 0.5em;
  margin-bottom: 0.6em;
}

/* リストを丸っこく */
.widget ul li {
  padding: 0.3em 0;
  list-style: none;
  border-bottom: 1px dotted #d9a066;
}

/* 横並び＆高さを揃える */
#body-in {
  display: flex;
  align-items: stretch;
}

a.button-link {
  display: inline-block;
  background-color: #fffaf0;
  color: #3a2e28;
  border: 1px dashed #d9a066;
  padding: 0.5em 1.2em;
  border-radius: 8px;
  font-family: 'Kiwi Maru', serif;
  text-decoration: none;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

a.button-link:hover {
  background-color: rgba(255, 248, 230, 0.7);
  color: #000;
}

/*変な余白カット*/
html, body {
  overflow-x: hidden;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#container, #main {
  flex: 1 0 auto;
}

footer {
  margin: 0;
  padding: 20px 0;
  flex-shrink: 0;

  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;

/*  margin-top: auto;*/
}

/*jsちらつき防止*/
.entry-card-content {
  visibility: hidden;
}

/*投稿者*/
.author-list {
  list-style: none;
  padding: 0;
}
.author-list li {
  margin: 0.5em 0;
}
.author-list a {
  text-decoration: none;
  color: #555;
}
.author-list a:hover {
  text-decoration: underline;
}

/*コメントアイコン丸く*/
.avatar {
  border-radius: 50% !important;
  object-fit: cover;
/*  width: 48px;
  height: 48px;*/
  border: 2px dashed #d9a066;
  padding: 2px;
/*  background-color: #fffaf0;  背景が透けないように */
}
/*
.author-thumb img {
	margin-left: 10%;
	margin-right:10%;
	margin-top:10%;
	margin-bottom:10%;
	width: 90px;
  height: 90px;
}*/

/*プロフィールの名前リンクを無効*/
.author-name a {
/*    pointer-events: none !important;*/
    cursor: default !important;
    text-decoration: none !important;
    color: inherit !important;
}

/* 通常のウィジェット見出し */
.main-widget-label.widget-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #4a2e28;
  background-color: #fdf5e6;
  border-left: 4px solid #d9a066;
  padding: 0.5em 0.8em;
  margin-bottom: 0.8em;
  border-radius: 6px;
  box-shadow: none;
  font-family: 'Kiwi Maru', 'Hina Mincho', serif;
}

/* 黒板ウィジェット（寄せ書き）だけ、上記スタイルを無効化 */
.widget.widget_recent_comments .main-widget-label.widget-title {
  all: unset;
  font-family: 'Kiwi Maru', serif;
  font-size: 1.1em;
  font-weight: bold;
  color: #fff8dc;
  margin-bottom: 0.5em;
}

/* 寄せ書きウィジェット（黒板風掲示板） */
.widget.widget_recent_comments {
  background-color: #2f3e2e; /* 黒板グリーン */
  border: 8px solid #3a2e28; /* 木のフレーム風の濃茶色 */
  padding: 1.5em;
  border-radius: 12px;
  box-shadow: 
    inset 0 0 5px rgba(255,255,255,0.05), /* 内側の粉感 */
    4px 4px 10px rgba(0,0,0,0.2); /* 外側に軽く立体感 */
  font-family: 'Kiwi Maru', serif;
  color: #fff8dc; /* チョーク風のオフホワイト */
  position: relative;
}

/* チョークっぽいフォントに見せるためちょっとかすれ気味に */
.widget.widget_recent_comments a {
  color: #fef7e3;
  text-decoration: underline dotted;
  font-weight: normal;
  filter: brightness(1.1);
}

.widget.widget_recent_comments a:hover {
  color: #ffddaa;
  background-color: rgba(255, 255, 255, 0.05);
}

/* 木枠の角にビス（飾り）をつけたい場合（擬似要素） */
.widget.widget_recent_comments::before,
.widget.widget_recent_comments::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #5a463a;
  border-radius: 50%;
  top: 8px;
}
.widget.widget_recent_comments::before {
  left: 8px;
}
.widget.widget_recent_comments::after {
  right: 8px;
}

.widget.widget_recent_comments .recent-comment-content {
  color: #333 !important;
}

/* おすすめカードの横スクロール対応エリア */
.recommended-in {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center; /* ← 中央寄せ */
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 16px;
  padding: 10px 0; /* ← 左右のpaddingをゼロに近づける */
  margin-left: auto;
  margin-right: auto;
  max-width: 100%; /* ← 必ず画面内に収める */
	
	/*  width: max-content;*/
}

.recommended-in .navi-entry-card-link {
  flex: 0 0 280px;
  scroll-snap-align: start;
  display: block;
  max-width: 90vw;
  box-sizing: border-box;
}
/*
@media (max-width: 600px) {
  .recommended-in .navi-entry-card-link {
    flex: 0 0 80vw;
  }
}*/

/* 横スクロールを強制してwrapを無効化 */
.recommended-scroll .navi-entry-cards-in {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden;
  gap: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 10px 16px;
  margin: 0 -16px;
  width: 100%;
}

/* カードのサイズとスナップ */
.recommended-scroll .navi-entry-card-link {
  flex: 0 0 280px;
  max-width: 90vw;
  scroll-snap-align: start;
  display: block;
  box-sizing: border-box;
}

/*
@media screen and (max-width: 768px) {
  body {
    background-attachment: scroll !important;
  }
}
*/

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

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

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