@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 {
  display: inline-block;
  min-width: 42px;
  padding: 4px 8px;
  margin-right: 14px;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  color: #fff;
  background: #f08c2e;
  border-radius: 3px;
  vertical-align: middle;
}

/* 任意 */
.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;
  background: #b9b9b9;
  border-radius: 3px;
  vertical-align: middle;
}

/* 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-thumb-new .new-entry-card-thumb {
  display: none;
}

/* 新着記事：本文エリア */
.no-thumb-new .widget-entry-card-content {
  margin-left: 0;
}

.no-thumb-new .new-entry-card-content {
  display: block;
  text-align: left;
}

/* 人気記事：アイキャッチ非表示 */
.no-thumb-popular .popular-entry-card-thumb,
.no-thumb-popular .widget-popular-entry-card-thumb,
.no-thumb-popular .entry-card-thumb {
  display: none;
}

/* 人気記事：本文エリア */
.no-thumb-popular .widget-entry-card-content,
.no-thumb-popular .popular-entry-card-content,
.no-thumb-popular .entry-card-content {
  margin-left: 0;
  width: 100%;
  max-width: 100%;
  padding: 0;
  text-align: left;
}

/* 新着記事・人気記事：タイトル */
.no-thumb-new .new-entry-card-title,
.no-thumb-popular .popular-entry-card-title,
.no-thumb-popular .entry-card-title {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 6px;
  text-align: left;
}

/* 新着記事・人気記事：タイトルホバー */
.no-thumb-new .new-entry-card-title a:hover,
.no-thumb-popular .popular-entry-card-title a:hover,
.no-thumb-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;
}