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

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

/************************************
 * ボタン用
************************************/
.wp-block-button__link:hover {
  opacity: 0.75 !important;
  transform: scale(1.02);
  transition: all 0.2s ease;
}

/************************************
2026.3..24カスタムタクソノミー 用CSS追加
パーマリンク更新：設定 → パーマリンク → 「変更を保存」（一度だけ）。これでタクソノミーアーカイブページが正しく動作。
************************************/

/* ==============================
   show_tax ショートコード共通
============================== */
.show-tax-wrap {
    margin: 1em 0;
    line-height: 1.8;
}

.show-tax {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 4px 0;
    font-size: 0.875em;
}

.show-tax__label {
    color: #666;
    white-space: nowrap;
    margin-right: 4px;
}

/* ---------- default スタイル ---------- */
.show-tax--default .show-tax__link {
    color: #c0392b;
    text-decoration: none;
    margin-right: 0.4em;
}
.show-tax--default .show-tax__link:hover {
    text-decoration: underline;
}

/* ---------- badge スタイル ---------- */
.show-tax--badge .show-tax__link {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    background: #e83562;
    color: #fff;
    text-decoration: none;
    font-size: 0.85em;
    transition: background 0.2s;
}
.show-tax--badge .show-tax__link:hover {
    background: #c0392b;
}

/* ---------- inline スタイル ---------- */
.show-tax--inline {
    display: inline-flex;
}
.show-tax--inline .show-tax__link {
    color: #c0392b;
    text-decoration: none;
    margin-right: 0.4em;
}
.show-tax--inline .show-tax__link::after {
    content: '・';
    color: #999;
}
.show-tax--inline .show-tax__link:last-child::after {
    content: '';
}

/************************************
2026.3.25　関連記事カードに カテゴリ、タグ、カスタムタクソノミー　追加
パーマリンク更新：設定 → パーマリンク → 「変更を保存」（一度だけ）。これでタクソノミーアーカイブページが正しく動作。
************************************/
/* カテゴリ */
.entry-card-categories-ex {
  font-size: 0.8em;
  margin-top: 4px;
}

.entry-card-categories-ex a {
  display: inline-block;
  background: #e0f0e0;
  border-radius: 3px;
  padding: 1px 6px;
  margin: 2px;
  text-decoration: none;
  color: #007700;
}

/* カスタムタクソノミー共通 */
.entry-card-tax-ex {
    display: inline-block;
    padding: 2px 10px;
    text-decoration: none;
    font-size: 0.75em;
    transition: background 0.2s;
}

.entry-card-tax-ex a {
	padding: 2px 10px;
    border-radius: 20px;
    background: #e83562;
	text-decoration: none;
    color: #fff;
}

.entry-card-tax-ex a:hover {
    background: #c0392b;
}

