@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){
  /*必要ならばここにコードを書く*/
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,0,0,0.8);
  cursor: pointer;
  z-index: 10;
}

@media (max-width: 768px) {
  .duga-pc {
    display: none !important;
  }
  .duga-mobile {
    display: block !important;
  }
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  font-size: 40px;
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  z-index: 10;
}

<?php
// 記事本文と抜粋から <style> タグを一括除去
function remove_style_tags_from_content( $content ) {
  return preg_replace( '/<style\b[^>]*>(.*?)<\/style>/is', '', $content );
}

// 本文・抜粋の出力前にフィルターを適用
add_filter( 'the_content',       'remove_style_tags_from_content', 20 );
add_filter( 'get_the_excerpt',    'remove_style_tags_from_content', 20 );