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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/*カスタム見出し*/
.subtitle {
  font-size: 15px;
  font-weight: bold;
  padding: 0.5em;/*文字周りの余白*/
  color: #010101;/*文字色*/
  background: #eaf3ff;/*背景色*/
  border-top: solid 2px #516ab6;/*下線*/
}
.myname {
  font-size: 20px;
  font-weight: bold;
  padding: 1px;/*文字周りの余白*/
  color: #010101;/*文字色*/
  background: #ffebff;/*背景色*/
}
/*吹き出しの文字色*/
.speech-wrap {
  --cocoon-custom-text-color: #fff;
}
/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
/* --- 検索ボタンの上下ズレ・浮き上がり修正（テキストボックス幅は変更せずそのまま） --- */

/* フォーム全体をフレックスボックス化して基準を作る */
.sidebar .widget_search form,
.sidebar .search-box,
.main .search-box,
.search-page .search-box,
.search-box {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
}

/* Cocoon最新仕様とアリススキンに対応した検索ボタンの完全位置修正 */
/* --- アリススキン・検索ボタンの位置ズレ/上切れ最終調整 --- */
/* 検索ボックスとボタンの高さ・位置の完全同期 */
/* --- 検索フォーム：必要最小限の修正コード --- */
.search-box.input-box {
    position: relative !important;
    height: 40px !important;
    min-height: 0 !important;
}

.search-box.input-box .search-edit {
    height: 40px !important;
    min-height: 0 !important;
    padding-right: 45px !important; /* ボタンと文字が重ならないための余白 */
}

.search-box.input-box .search-submit {
    position: absolute !important;
    top: 50% !important;
    right: 0 !important;
    transform: translateY(-50%) !important;
    height: 40px !important;
    min-height: 0 !important;
    width: 45px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ==========================================
   オリジナルCTAボックス（完全バランス・中央配置版）
========================================== */
.custom-simple-cta {
  background: #f0f7fc;
  border: 1.5px solid #bce0fd;
  border-radius: 8px;
  padding: 16px 20px !important;
  margin: 25px auto !important;
  max-width: 720px; /* ボックス自体の最大幅を設けて間延びを防ぐ */
  box-shadow: none;
}

/* WordPressが勝手に挿入する空のpタグ・brタグを無効化 */
.custom-simple-cta p,
.custom-simple-cta br {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 上部エリア（PC時は中央揃えで綺麗に配置） */
.custom-simple-cta .cta-inner {
  display: flex;
  align-items: center;
  justify-content: center; /* ← PC表示で全体を中央に寄せる */
  gap: 24px;
  margin: 0 0 12px 0 !important;
}

/* 左側：画像 */
/* ==========================================
   ASPバナー広告の下にできる謎のエリア・隙間を完全消去
========================================== */

/* 1. 画像カラム全体の高さを画像ピッタリに制限し、はみ出た要素を隠す */
.custom-simple-cta .cta-image-col {
  flex: 0 0 300px !important;
  width: 300px !important;
  text-align: center !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important; /* ← 1pxの計測GIFなど、はみ出た余計な要素を完全に隠す */
  line-height: 0 !important;
}

/* 2. ASPから提供されたHTML内のリンクや画像に余計な隙間を作らせない */
.custom-simple-cta .cta-image-col a {
  display: block !important;
  line-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.custom-simple-cta .cta-image-col img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 6px;
}

/* 3. 【超重要】タグに含まれる1pxの計測用GIFやテキストリンクを完全に非表示（または潰す）にする */
.custom-simple-cta .cta-image-col img[width="1"],
.custom-simple-cta .cta-image-col img[height="1"],
.custom-simple-cta .cta-image-col img[src*="0.gif"] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
}

/* 右側：説明文（PC時は左詰めで読みやすく） */
.custom-simple-cta .cta-content-col {
  flex: 0 1 340px; /* 幅を固定しすぎず綺麗に収める */
  margin: 0 !important;
  padding: 0 !important;
  text-align: left; /* テキスト自体は読みやすいように左揃え */
}

.custom-simple-cta .cta-header {
  margin: 0 0 6px 0 !important;
}

.custom-simple-cta .cta-brand {
  font-size: 1.4em;
  font-weight: bold;
  color: #2c3e50;
  margin-right: 6px;
}

.custom-simple-cta .cta-genre {
  font-size: 0.75em;
  color: #0056b3;
  background: #d0e7ff;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
  font-weight: bold;
}

.custom-simple-cta .cta-features {
  margin: 0 !important;
  padding: 0 0 0 18px !important;
  color: #444;
  font-size: 0.9em;
  line-height: 1.5;
  display: inline-block; /* リストが左に寄り過ぎるのを防ぐ */
  text-align: left;
}

.custom-simple-cta .cta-features li {
  margin: 0 0 3px 0 !important;
  padding: 0 !important;
}

/* 下部エリア：ボタン（80%幅で中央寄せ） */
.custom-simple-cta .cta-button-col {
  text-align: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.custom-simple-cta .cta-button-col .btn-wrap {
  display: block !important;
  width: 80% !important;
  margin: 0 auto !important; /* 左右中央に配置 */
}

.custom-simple-cta .cta-button-col .btn-wrap a {
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

/* ==========================================
   スマホ表示時のレイアウト（縦並び・中央寄せ）
========================================== */
@media screen and (max-width: 768px) {
  .custom-simple-cta {
    padding: 12px !important;
  }
  .custom-simple-cta .cta-inner {
    flex-direction: column;
    align-items: center; /* スマホ時は全体を中央に寄せる */
    text-align: center;  见
    gap: 12px !important;
    margin: 0 0 10px 0 !important;
  }
  .custom-simple-cta .cta-image-col {
    flex: none !important;
    width: 100% !important;
    max-width: 260px !important;
  }
  .custom-simple-cta .cta-content-col {
    flex: none !important;
    width: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center; /* スマホ時はテキストブロック自体を中央に配置 */
    text-align: left;    /* リストの文字自体は左揃えにして読みやすく */
  }
  .custom-simple-cta .cta-button-col .btn-wrap {
    width: 90% !important; /* スマホでは少し広めに */
  }
}


/*　カラム表示
.col_3{
    width: 100%;
    display: flex;
    display: -ms-flexbox; /* IE10 */
    flex-wrap: wrap;
    -ms-flex-wrap: wrap; /* IE10 */
}
.col_3 > div{
    width: 33.33333%;
    padding: 10px;
}
@media screen and (max-width: 480px) {
    .col_3 > div{
        width: 50%;
    }
}
@media screen and (max-width: 379px) {
    .col_3 > div{
        width: 100%;
    }
}
.col_2{
	width:100%;
	display:flex;
	display:-ms-flexbox; /* IE10 */
	flex-wrap:wrap;
	-ms-flex-wrap:wrap; /* IE10 */
}
.col_2 > div{
	width:50%;
	padding:10px;
}
@media screen and (max-width:960px) {
	.col_2 > div{
		width:100%;
	}
}

.col_2_center{
	width: 100%;
	display: flex;
	display: -ms-flexbox; /* IE10 */
	flex-wrap: wrap;
	-ms-flex-wrap: wrap; /* IE10 */
}
.col_2_center > div{
	width: 50%;
	margin-left: auto;
    margin-right: auto;
    padding: 10px;
}
@media screen and (max-width: 960px) {
	.col_2_center > div{
		width: 100%;
	}
}