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

/* ページ固有スタイル: test-YOLO DISCOVER TOP (page-id-2894) */
body.page-id-2894 .mv-card img {
  border-radius: 4px;
}

/* ===== 最大コンテンツ幅コンテナ（カードラップの直接親） ===== */
body.page-id-2894 .p-ex-cards-wrap.wp-block-columns {
  margin-top: 40px;
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  gap: 20px !important;
  padding: 0 0 8px 0 !important;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 auto !important;
  box-sizing: border-box;
}

/* カードラップの親コンテナ（flex-basisを上書き） */
body.page-id-2894 .wp-block-column.container3-center {
  flex: 1 1 auto !important;
  max-width: 1200px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 32px !important;
  padding-right: 32px !important;
  box-sizing: border-box !important;
}

body.page-id-2894 .p-ex-cards-wrap::-webkit-scrollbar {
  display: none;
}

body.page-id-2894 .p-ex-cards-wrap::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

/* カード本体：幅280px固定、白背景・角丸・影、余白なし */
body.page-id-2894 .p-ex-cards-wrap > .wp-block-column {
  flex: 0 0 280px !important;
  width: 280px !important;
  min-width: 280px !important;
  max-width: 280px !important;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* カード画像：カード上端から余白なしで表示 */
body.page-id-2894 .p-ex-card-img {
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0;
  line-height: 0;
}

body.page-id-2894 .p-ex-card-img img {
  border-radius: 0 !important;
  display: block;
  width: 100% !important;
  height: 200px !important;
  object-fit: cover;
  margin: 0 !important;
}

/* テキストエリア：画像の直下からパディングあり */
body.page-id-2894 .p-ex-card-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  margin: 14px 16px 8px !important;
  padding: 0 !important;
}

body.page-id-2894 .p-ex-card-desc {
  font-size: 13px !important;
  color: #555 !important;
  margin: 0 16px 16px !important;
  padding: 0 !important;
  line-height: 1.6 !important;
  flex: 1;
}

/* ===== 実際の投稿セクション ===== */
.p-posts-section {
  background: #ffffff;
  padding: 72px 0 80px;
}

.p-posts-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

.p-posts-title {
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 16px;
  font-family: 'Noto Serif JP', serif;
}

.p-posts-subtitle {
  text-align: center;
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin: 0 0 48px;
}

.p-posts-cards {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.p-posts-cards::-webkit-scrollbar {
  display: none;
}

.p-post-card {
  flex: 0 0 280px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}

.p-post-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
}

.p-post-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-post-card__meta {
  display: flex;
  flex-direction: column;
}

.p-post-card__platform {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
}

.p-post-card__type {
  font-size: 11px;
  color: #888;
  line-height: 1.2;
}

.p-post-card__media {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.p-post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.p-post-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 動画プレースホルダー（リール） */
.p-post-card__media--video-placeholder {
  background: #c8c8c8;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 動画（TikTok） */
.p-post-card__media--video {
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-post-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 36px;
  color: rgba(255,255,255,0.9);
  pointer-events: none;
}

/* Facebookの2枚グリッド */
.p-post-card__media--grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
  min-height: 380px;
}

.p-post-card__media--grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}
