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

/* ========================================
   Cocoon：ヘッダー下おすすめカード
   PC 4列 / タブレット 3列 / スマホ 2列
======================================== */

/* PC：4列3行 */
@media (min-width: 1024px) {
  .recommended .navi-entry-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    gap: 12px;
  }

  .recommended .navi-entry-cards > a {
    margin: 0;
    width: auto;
  }
}

/* タブレット：3列 */
@media (min-width: 600px) and (max-width: 1023px) {
  .recommended .navi-entry-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .recommended .navi-entry-cards > a {
    margin: 0;
    width: auto;
  }
}

/* スマホ：2列 */
@media (max-width: 599px) {
  .recommended .navi-entry-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .recommended .navi-entry-cards > a {
    margin: 0;
    width: auto;
  }
}

/* カードの見た目 */
.recommended .navi-entry-cards > a {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  will-change: transform;
}

/* ホバー時 */
.recommended .navi-entry-cards > a:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  opacity: 0.92;
}


/* ========================================
   Contact Form 7 カスタマイズ
======================================== */

table.CF7_table {
  width: 90%;
  margin: 0 auto;
  border: 1px solid #d9d9d9;
  border-collapse: collapse;
  background: #fff;
}

table.CF7_table tr {
  border-top: 1px solid #d9d9d9;
}

table.CF7_table tr:first-child {
  border-top: none;
}

.single .entry-content table.CF7_table,
.page .entry-content table.CF7_table {
  display: table;
}

/* 左列・右列 */
.CF7_table th,
.CF7_table td {
  border: 1px solid #d9d9d9;
  vertical-align: middle;
}

/* 入力欄 */
.CF7_table input:not([type="checkbox"]):not([type="radio"]),
.CF7_table textarea,
.CF7_table select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cfcfcf;
  background: #fff;
  padding: 10px 12px;
  font-size: 15px;
  color: #333;
}

.CF7_table input:not([type="checkbox"]):not([type="radio"]),
.CF7_table select {
  height: 46px;
}

.CF7_table textarea {
  min-height: 220px;
  resize: vertical;
}

.CF7_table ::placeholder {
  color: #8a8a8a;
}

/* 必須・任意 */
.CF7_req,
.CF7_unreq {
  display: inline-block;
  min-width: 42px;
  padding: 4px 8px;
  margin-right: 14px;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  color: #fff;
  border-radius: 3px;
  vertical-align: middle;
}

.CF7_req {
  background: #f08c2e;
}

.CF7_unreq {
  background: #b9b9b9;
}

/* PC表示 */
@media screen and (min-width: 768px) {
  .CF7_table th {
    width: 30%;
    background-color: #f3f4f8;
    padding: 18px 14px;
    text-align: left;
    font-weight: 700;
    color: #222;
    white-space: nowrap;
  }

  .CF7_table td {
    padding: 10px;
    background: #fff;
  }
}

/* スマホ表示 */
@media screen and (max-width: 768px) {
  table.CF7_table {
    width: 95%;
  }

  .CF7_table tr,
  .CF7_table th,
  .CF7_table td {
    display: block;
    width: 100%;
  }

  .CF7_table th {
    background-color: #f3f4f8;
    padding: 12px 14px;
    text-align: left;
    line-height: 1.6;
    border-bottom: none;
  }

  .CF7_table td {
    padding: 12px 14px;
    border-top: none;
  }

  .CF7_table textarea {
    min-height: 180px;
  }
}

/* チェックボックス・ラジオ */
.CF7_table input[type="checkbox"],
.CF7_table input[type="radio"] {
  width: auto;
  height: auto;
  margin-right: 6px;
  vertical-align: middle;
}

.CF7_table .wpcf7-list-item {
  display: inline-block;
  margin: 0 18px 8px 0;
}

/* 送信ボタン */
.wpcf7 input.wpcf7-submit {
  width: auto;
  display: inline-block;
  background-color: #f08c2e;
  border: 0;
  color: #fff;
  font-size: 1.2em;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 0;
  margin: 0 auto;
  box-shadow: none;
}

.CF7_btn {
  text-align: center;
  margin-top: 24px;
}

/* Cloudflare Turnstile */
div.cf-turnstile {
  display: flex !important;
  justify-content: center !important;
  margin: 18px 0 10px;
}

/* スピナー */
.wpcf7-spinner {
  width: 0;
  margin: 0;
}


/* ========================================
   記事一覧全般：アイキャッチ画像・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;
}





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

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



