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

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

/*固定ページの日付表記を非表示にする*/
.page .date-tags {
display: none;
}

/* --------------------------------
   更新情報リスト全体のスタイル
-------------------------------- */
.recent-mixed-content {
  list-style: none;
  padding-left: 1em;
  border: 1px solid #e8e4d9;        /* 和紙っぽいトーン */
  border-radius: 8px;
  padding: 1.8em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin: 2em 0;
}

/* リスト項目の整形 */
.recent-mixed-content li {
  margin-bottom: 1.5em;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  border-bottom: 1px dotted #ddd;
  line-height: 1.6;
  position: relative;
}

/* リンクスタイル */
.recent-mixed-content a {
  color: #444;
  text-decoration: underline dotted;
  font-weight: normal;
}

.recent-mixed-content a:hover {
  color: #e2041b;
}

/* NEWバッジのスタイル */
.recent-mixed-content .new-badge {
  background-color: #f4b3c2;
  color: white;
  font-size: 0.75em;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: 0.5em;
}

/* 新着情報の見出し */
.recent-notice-title {
  font-size: 1.1em;
  margin-bottom: 1em;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5em;
  color: #333;
  list-style: none;
  text-align: center;
}

/* 「もっと見る」ボタンのリスト項目 */
.recent-mixed-content li.scroll-toggle-button-wrapper {
  text-align: center;
  list-style: none;
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 1em;
  margin-bottom: 0;
}

/* もっと見るボタンの見た目 */
.scroll-toggle-button {
  color: #e2041b;
  font-size: 1.3em;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.scroll-toggle-button:hover {
  color: #f23c3c;              /* 明るめの赤に変化 */
}

/*ボタンだけにクリックが反応するように*/
.scroll-toggle-button-wrapper {
  text-align: center;
  pointer-events: none; /* まず全体へのクリックを無効化 */
}

.scroll-toggle-button {
  display: inline-block;
  pointer-events: auto; /* ボタン自体だけをクリック可能に */
}

/* -----------------------------
   「もっと見る」機能の表示切替
----------------------------- */
.scroll-hidden {
  display: none;
}

.recent-mixed-content.show-scroll .scroll-hidden {
  display: list-item;
}

/* -----------------------------
   表示切り替え対応（スマホとPC）
----------------------------- */

/* PC表示：横並び */
@media screen and (min-width: 601px) {
  .recent-date-type,
  .recent-title-note {
    display: inline;
    margin: 0;
    padding: 0;
  }
}

/* スマホ表示：2行に分ける */
@media screen and (max-width: 600px) {
  .recent-date-type {
    display: block;
    font-weight: bold;
    margin-bottom: 0.3em;
  }

  .recent-title-note {
    display: block;
    white-space: normal;
  }

  .recent-title-note a {
    display: inline-block;
    font-weight: normal;
    color: #444;
    text-decoration: underline dotted;
  }
}

/* 新着の日付右の縦棒揃える（デバイス幅別） */
.recent-date {
  display: inline-block;
}

@media screen and (max-width: 600px) {
  .recent-date {
    min-width: 7.6em;
  }
}

@media screen and (min-width: 601px) and (max-width: 1023px) {
  .recent-date {
    min-width: 7.6em;
  }
}

@media screen and (min-width: 1024px) {
  .recent-date {
    min-width: 7.1em;
  }
}

/* 日付とタイプの文字を小さく薄く */
.recent-date,
.recent-type {
  font-size: 0.8em;
  color: #888;
}

/* 縦棒|の色とサイズ調整 */
.recent-mixed-content .separator {
  color: #888;
  font-size: 0.85em;
}

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

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

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