@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){
  /*必要ならばここにコードを書く*/
}
table {
  text-align: left !important;
}

th, td {
  text-align: left !important;
}

/* シングル投稿ページの背景色を変更（投稿本文部分） */
body.single-post .entry-content {
    background-color: #ffffff !important;  /* 例：白 (#ffffff) に変更。好みの色に変更してください。 */
}

<?php
get_header();
?>

<main>
    <?php
    // ↓ここに埋め込み
    $slug = get_post_field('post_name', get_queried_object_id());
    $cat = get_category_by_slug($slug);
    if ($cat) {
        echo do_shortcode('[vk_filter_search args_category="parent=' . $cat->term_id . '"]');
    }
    ?>
    
    <?php
    while ( have_posts() ) : the_post();
        the_content();
    endwhile;
    ?>
</main>

<?php get_footer(); ?>
