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


/* ========================================
   記事一覧全般：アイキャッチ画像・NO IMAGE非表示
======================================== */

/* アイキャッチ・NO IMAGEを非表示 */
.entry-card-thumb,
.related-entry-card-thumb,
.new-entry-card-thumb,
.popular-entry-card-thumb,
.widget-entry-card-thumb,
.widget-new-entry-card-thumb,
.widget-popular-entry-card-thumb {
  display: none !important;
}

/* 本文エリアを全幅にする */
.entry-card-content,
.related-entry-card-content,
.new-entry-card-content,
.popular-entry-card-content,
.widget-entry-card-content {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* カード全体 */
.entry-card,
.related-entry-card,
.new-entry-card,
.popular-entry-card {
  display: block !important;
  text-align: left !important;
}

/* タイトル */
.entry-card-title,
.related-entry-card-title,
.new-entry-card-title,
.popular-entry-card-title {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 6px;
  text-align: left !important;
}

/* タイトルホバー */
.entry-card-title a:hover,
.related-entry-card-title a:hover,
.new-entry-card-title a:hover,
.popular-entry-card-title a:hover {
  color: #0062b2;
  opacity: 0.9;
}


/* ========================================
   リンク画像のホバー演出
   マウスオーバーで沈む・凹む効果
======================================== */

a img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a:hover img {
  transform: translateY(5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


/* ========================================
   固定ページ共通カスタマイズ
======================================== */

/* 投稿日・更新日・投稿者情報を非表示 */
.page .date-tags,
.page .author-info {
  display: none;
}

/* 固定ページの背景色 */
.page .container {
  background: #fff;
}

/* 固定ページのメインカラム */
.page #main {
  background: transparent;
}


/* ========================================
   ファイルリンクアイコン自動表示
   PDF / Excel / PowerPoint
======================================== */

/* 共通設定：ダウンロードボタンは除外 */
.entry-content a[href*=".pdf"]:not(.wp-block-file__button)::before,
.entry-content a[href*=".xls"]:not(.wp-block-file__button)::before,
.entry-content a[href*=".xlsx"]:not(.wp-block-file__button)::before,
.entry-content a[href*=".ppt"]:not(.wp-block-file__button)::before,
.entry-content a[href*=".pptx"]:not(.wp-block-file__button)::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 32px;
  margin-right: 8px;
  vertical-align: middle;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex: 0 0 auto;
}

/* PDF */
.entry-content a[href*=".pdf"]:not(.wp-block-file__button)::before {
  background-image: url("http://cstech.osasi.co.jp/wp-content/uploads/2026/06/PDFアイコン-.png");
}

/* Excel */
.entry-content a[href*=".xls"]:not(.wp-block-file__button)::before,
.entry-content a[href*=".xlsx"]:not(.wp-block-file__button)::before {
  background-image: url("http://cstech.osasi.co.jp/wp-content/uploads/2026/06/xlsxファイルアイコン-.png");
}

/* PowerPoint */
.entry-content a[href*=".ppt"]:not(.wp-block-file__button)::before,
.entry-content a[href*=".pptx"]:not(.wp-block-file__button)::before {
  background-image: url("http://cstech.osasi.co.jp/wp-content/uploads/2026/06/pptx（パワーポイント）アイコン-.png");
}

/* ダウンロードボタンにはアイコンを付けない */
.entry-content .wp-block-file__button::before {
  content: none !important;
  background-image: none !important;
}


/* ========================================
   ファイルブロック：ファイル名の下に
   ダウンロードボタンを中央配置
======================================== */
.entry-content .wp-block-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
  gap: 10px;
}

/* ファイル名リンク */
.entry-content .wp-block-file > a:not(.wp-block-file__button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  line-height: 1.6;
}

/* ダウンロードボタン */
.entry-content .wp-block-file .wp-block-file__button {
  display: inline-block;
  margin: 0 auto;
}

/* ダウンロードボタン改行機能の無効化 */
/* 無効化したいブロックの追加CSSに bfdis を入力 */
.entry-content .wp-block-file.bfdis {
  display: flex;
  flex-direction: initial !important;
  align-items: center;
  width: 100%;
  text-align: center;
  gap: 10px;
  margin-left: 30px;
}

/* ========================================
   ヘッダー：サブメニュー関係
======================================== */

/* ヘッダー：ホバー時に子メニュー表示 */
.fixed-header .navi-in > ul li:hover > ul {
  display: block;
}

/* ========================================
   詳細ブロック
=========================================*/

/* 要約部分にマウスオーバー時下線表示 */
.entry-content .wp-block-details summary:hover {
  text-decoration: underline;
}

/* ========================================
	new_list関係
=========================================*/

/* new_listのカード間隔（余白）を調整する */
.new-entry-cards .new-entry-card-link {
    margin-bottom: 20px; /* カードとカードの縦の間隔 */
    padding: 10px;       /* カード内側の余白 */
}

/* ホバーした時に下線を表示する */
.new-entry-cards a:hover {
    text-decoration: underline !important;
}

/* ========================================
	popular_list関係
=========================================*/

/* popular_listのカード間隔（余白）を調整する */
.popular-entry-cards .a-wrap {
	margin-bottom: 20px; /* カードとカードの縦の間隔 */
    padding: 10px;       /* カード内側の余白 */
}

/* ホバーした時に下線を表示する */
.popular-entry-cards a:hover {
    text-decoration: underline !important;
}

/* ========================================
   CTAブロック
=========================================*/
/* ブロックの背景色を変更 */
.cta-box {
    background-color: #444444; /* 背景色 デフォルト#444444 */
}

/* ボタンの背景色と文字色を変更 */
.cta-box a, 
.cta-box button,
.cta-box .button {
    background-color: #00a3af !important; /* ボタンの背景色 デフォルト#00a3af */
    color: #ffffff !important;            /* ボタンの文字色 デフォルト#ffffff */
}























