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

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

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

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

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
"/* 投稿一覧にメタキーワードを追加 */
function add_posts_columns( $columns ) {
$columns['metakey'] = 'キーワード';
return $columns;
}
function custom_posts_column( $column_name, $post_id ) {
if ( $column_name == 'metakey' ) {
$the_page_meta_keywords = get_post_meta( $post_id , 'the_page_meta_keywords' , true );
echo ( $the_page_meta_keywords ) ? $the_page_meta_keywords : '－';
}
}
add_filter( 'manage_posts_columns', 'add_posts_columns' );
add_action( 'manage_posts_custom_column', 'custom_posts_column', 10, 2 );"


/* --------------------------------------------------
 * 本文ブロック末尾に挿入されたボタンのスタイル（中央寄せ）
 * -------------------------------------------------- */
.custom-block-button {
    margin: 30px 0 10px 0 !important; /* 上下に余白を確保 */
    text-align: center; /* ★ ボタンを中央に配置する指示 */
    clear: both; /* 左右にfloat要素があってもレイアウトが崩れないように */
}

/* --------------------------------------------------
 * 青色の丸型カスタムボタンのスタイル
 * -------------------------------------------------- */

/* ボタンの基本スタイル */
.custom-round-blue-btn {
    /* 色と形状の定義 */
    background-color: #007bff !important; /* 青色 */
    color: #fff !important; /* テキストの色を白に */
    border-radius: 50px !important; /* 丸型（カプセル型） */
    border: none !important; /* 枠線をなしに */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 軽い影を追加 */
    
    /* サイズと配置の調整 */
    padding: 12px 30px !important; /* パディングを調整してボタンを大きく */
    font-size: 1.1rem !important; /* フォントサイズを調整 */
    text-decoration: none !important; /* 下線を非表示 */
    display: inline-block; /* ボタンが中央寄せの対象になるようにインラインブロック要素に */
}

/* ホバー時のスタイル (青) */
.custom-round-blue-btn:hover {
    background-color: #0056b3 !important; /* ホバー時に少し暗い青に */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* 影を強調 */
    opacity: 0.9; /* 透明度を少し下げて視覚的な変化を与える */
}