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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/*アイチャッチ*/
.eye-catch img {
	filter:drop-shadow(2px 4px 6px black);
}
/*ボタンユーザー補助改善*/
.search-submit {
    margin-left: 10px;
	font-size: 24px;
}	
/*ボックスメニューの色*/
.box-menu-label{
	color: #333333;
	font-weight:500;
}
.box-menu-icon{
	color: #5F374B;
}
/*CLS改善*/
img {
	width:100%;
	height:auto;
}
/*CLSの改善広告・ヘッダーの広告に#ad-slotを記述*/
#ad-slot {
	min-width: 300px; 
	min-height: 280px;
}
@media screen and (max-width: 960px) {
#ad-slot {
	min-height: 100px;
  }
}
/*ショート動画を縦型に*/
.youtube iframe {
	position: relative;
	aspect-ratio:9 /16; /* ビデオの横/縦比 */
}
.youtube .video {
	height: 100%;
	margin: 0 auto;
	overflow: visible;
	padding-bottom: 0;
	width: 300px;   /* ビデオ横幅 */
}
/*見出し*/
.article h3 {
    border-image: linear-gradient(to right,#967cff,#ff58cc) 3%;
    font-family: serif;
    padding: 0 .5em .5em 2.5em;
    border-width: 0 0 3px 3px;
    font-style: italic;
    border-bottom: solid 2px;
    border-image-slice: 1;
    background: none!important;
    border-left: 0;
    color: #383940!important;
}
/*表*/
figure.wp-block-table table {
	border: solid #333;
    width: 100%;
}
/*---------------------------------
 動画ギャラリー③（正方形・動画に投稿をリンク）
----------------------------------*/
.video-square-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  justify-items: center;
}

.video-square-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* 正方形に固定 */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  background: #000;
}

/* iframeを正方形の中にフィット（中央切り取り） */
.video-square-card iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180%;
  height: 180%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none; /* 誤クリック防止：iframeのクリックをブロック */
}

/* iframeの上に透明リンクを重ねてクリック遷移 */
.video-square-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: transparent;
  cursor: pointer;
  text-indent: -9999px;
}

/* タイトル */
.video-square-title {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 14px;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 4px 6px;
  margin: 0;
  z-index: 3;
}

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

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

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