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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/*ヘッダー文字*/
.tagline {
    margin: 0px !important;
}
.logo-text {
    padding-top:20px !important;
	padding-bottom:0px !important;
}
/*番組名の太文字*/
.card-program {
    color: #222; /* ダークグレーで柔らかく */
    font-weight: bold;
}

/* スマホ用にさらに行間を狭める場合 */
@media (max-width: 640px) {
  .card-content {
    line-height: 1.3 !important; /* 行間を強制狭く */
    margin: 0 !important; /* 親からの余白リセット */
  }

  .card-content .card-time,
  .card-content .card-program,
  .card-content .card-members,
  .card-content .card-memo {
    margin-bottom: 0.1em !important; /* 各divの間隔を最小に */
    margin-top: 0 !important;
    padding: 0 !important; /* div内の余白もカット */
    line-height: 1.25 !important; /* 子要素も念のため */
  }

  /* テキスト要素の追加リセット（spanやstrong内） */
  .card-content p,
  .card-content span,
  .card-content strong {
    margin: 0 !important;
    padding: 0 !important;
    line-height: inherit !important; /* 親のline-heightを継承 */
  }
}}
/*スケジュール内のカテゴリ表記色*/
.event-type-label {
color: #ffb380;
    font-weight: bold;
padding-right:8px;
	border-radius: 4px;
}

/*youtube 埋め込み中央配置*/
.video-container {
margin: 0px auto;
}

/*見出し*/
.article h2 {
    margin-top: 5px; /* お好みの値に調整 */
margin-bottom: 8px;}
.page-id-5006 .article p {
    margin-bottom: 5px;
}

/* Cocoon YouTube埋め込み幅調整 */
/* バナー共通スタイル */
  .banner-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
  }

.banner-item {
  display: flex;
  align-items: center;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: transform 0.2s;
  text-decoration: none; /* aタグの下線を消す */
  color: inherit;        /* テキスト色を継承 */
  display: flex;
text-align: center;
}

  .banner-item:hover {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 1px 4px rgba(0,0,0,0.);
  }
  .banner-item img {
    width: 50%;
    height: auto;
    object-fit: cover;
    display: block;
  }

  .banner-text {
    padding: 20px;
    font-size: 1.2em;
    flex: 1;
  }

  .banner-text a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
  }

  .banner-text a:hover {
    text-decoration: underline;
  }


  @media (max-width: 600px) {
    .banner-item {
      flex-direction: column;
      text-align: center;
    }

    .banner-item img {
      width: 100%;
    }

    .banner-text {
      padding: 15px;
    }
  }
/* メンバー用チェックボックス */
input.filter-member[type="checkbox"] {
    accent-color: #ff9ca3; /* 赤系に変更 */
}

/* カテゴリ用チェックボックス */
input.filter-category[type="checkbox"] {
    accent-color: #ffb380; /* 青系以外の色に変更 */
}
/* フィルターラベル・チェックボックス */
.schedule-filter-container span {
    display: inline-block;
    font-weight: 600; /* 読みやすさを保つ太さ */
    font-family: inherit; /* サイトのデフォルトフォントで統一感 */
	margin-top: 5px;
    margin-bottom: 5px;
    background-color: #f0f0f0; /* 控えめなグレー背景 */
    color: #222222;             /* 高いコントラストで即読可能 */
    padding: 0em 0.35em;      /* コンパクトに収めてスペース効率よく */
    border-radius: 4px;         /* 最小限の丸角でクリーン */

    text-shadow: none;
    box-shadow: none; /* 影なしでフラット、速い読み込みとシンプルさ */
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-label {
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
    margin-bottom: 1px;
}

.filter-label input[type="checkbox"] {
    margin-right: 8px;
}


/*スケジュールタイプの日付h3*/
h3.schedule-date {
all: unset; /* ←まず既存のh3スタイルをリセット */
font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", sans-serif;
  font-weight: 700; /* 600 → 700 に変更 */
  font-size: 1.3em;
  color: #222;
  border-radius: 30px;
  padding: 6px 12px;
  display: inline-block;
}
/* カード */
.schedule-card {    display: flex;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;

    /* 浮いた印象と柔らかさ */
    background: #fff; /* 白で清潔感 */
    border: 1px solid #e0e0e0; /* 柔らかい境界線 */
    box-shadow: 0 3px 6px rgba(0,0,0,0.1); /* 軽めの影で浮き感 */
    cursor: pointer; /* 押しやすさ強調 */
}

/* ほんの少し内側の光を演出 */
.schedule-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 12px;
    pointer-events: none;
    background: linear-gradient(145deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
}


.schedule-card:hover {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  text-decoration: none; /* aタグの下線を消す */
  color: inherit;        /* テキスト色を継承 */
}
.schedule-cards .card-thumb {
    width: 120px;  /* 左固定幅 */
    height: 120px; /* 高さ固定 */
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
}

.schedule-cards .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* トリミングで余白消す */
    display: block;    /* 下余白消す */
}

.schedule-cards .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.schedule-cards .card-link {
    display: inline-block;
    margin-top: auto; /* テキストの下に寄せる */
    text-align: right;
}
/* スマホ対応 */
@media (max-width: 768px) {
    .schedule-card {
        flex-direction: row; /* 縦型から横型に変更 */
    }
    .card-thumb {
        width: 100px;   /* PCより小さめに調整 */
        height: 100px;
    }
}
/*update検索のカード仕様*/
/* 更新リスト専用のカード調整（スケジュールCSSを継承しつつ縦リスト化） */
.update-list .schedule-card {  /* ページに.update-listクラスを追加して特定 */
    display: block !important;  /* 縦リストに変更（flexを上書き） */
    align-items: flex-start;    /* 縦並びで上揃え */
    gap: 8px;                   /* 内部間隔を小さく */
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;

    /* 背景を強化（透明化防止） */
    background: #fff !important; /* 白を強制 */
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); /* 影を少し強くして存在感UP */
    cursor: pointer;
    position: relative;  /* ::beforeの親としてrelative指定 */
    margin-bottom: 10px; /* カード間の隙間 */
}

.update-list .schedule-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 12px;
    pointer-events: none;
    background: linear-gradient(145deg, rgba(255,255,255,0.3), rgba(255,255,255,0)); /* 光を少し強く */
    z-index: -1;  /* 背景下に配置して透け防止 */
}

.update-list .schedule-card:hover {
    transform: translateY(-1px);  /* 縮小をやめて上浮きのみ（リスト向き） */
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    text-decoration: none;
    color: inherit;
}

/* 親コンテナ調整 */
.update-list .schedule-cards {
    display: block;  /* flexグリッドからblockリストに */
}

/* サムネイル（リスト風に小さく） */
.update-list .schedule-cards .card-thumb {
    width: 80px;     /* 小さくしてリストにフィット */
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
    float: left;     /* 左浮かせてタイトル横並び */
    margin-right: 12px;
}

.update-list .schedule-cards .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.update-list .schedule-cards .card-content {
    display: block;  /* flexを外して縦並び */
    overflow: hidden; /* 浮いた画像の余白調整 */
}

.update-list .schedule-cards .card-content::after {
    content: "";
    display: table;
    clear: both;  /* 浮き要素クリア */
}

/* スマホ対応（縦リスト維持） */
@media (max-width: 768px) {
    .update-list .schedule-card {
        display: block !important;
    }
    .update-list .card-thumb {
        width: 60px;
        height: 60px;
        float: none; /* スマホでは画像上配置 */
        margin: 0 0 8px 0;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}
.entry-content iframe[src*="youtube.com"] {
  width: 100%;       /* 記事幅の80% */
  max-width: 100%;  /* 画面が狭くなったときは100%以内に */
  height: auto;     /* 高さ自動調整 */
  aspect-ratio: 16 / 9; /* 16:9比率を維持 */
  display: block;   /* ブロック要素にして中央寄せ可能 */
  margin: 0 auto;   /* 中央寄せ */
}
/*見出しの設定*/
ul {
  list-style: none;
  padding: 0;
}

ul li {
  margin-bottom: 6px;
}

a {
  color: #007acc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
/*ヘッダーのフォント*/
header { font-family: 'M PLUS Rounded 1c', sans-serif; }


/* 基本のフォントサイズ調整 */
body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* アイコンリンク部分（Flex対応） */
.icon-area {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.icon-box {
  text-align: center;
  width: 120px;
}

.icon-box img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.2s;
}

.icon-box img:hover {
  transform: scale(1.05);
}

/* 写真履歴横スクロール */
.photo-scroll {
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 10px;
}

.photo-scroll a {
  display: inline-block;
  margin-right: 10px;
}

.photo-scroll img {
  height: 120px;
  border-radius: 8px;
}

/* スマホ対応（メディアクエリ） */
@media screen and (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .icon-box {
    width: 100px;
  }

  .photo-scroll img {
    height: 100px;
  }
}

/* 埋め込み全体のコンテナを調整 */
.wp-block-embed__wrapper {
    display: flex;
    justify-content: center; /* 中央寄せで左右に余白を作る */
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
}
.filter-label input[type="checkbox"] {
    margin-right: 3px;
}
	
.filter-label {
    margin-right: 8px;
}
/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
.zbgazou{
	width:48%;
	list-style: none;
display: inline-block;
}
}

/*480px以下*/
@media screen and (max-width: 480px){

}

