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

/* アイキャッチ上のカテゴリラベルを非表示にする */
.cat-label {
    display: none;
}

.logo-text {
    padding: 14px 0 14px !important;
    font-size: 1em;
}

/* 投稿カード内の下の余白を詰める */
.card-content {
    padding-bottom: 0 !important;
}

/* フォーム全体のコンテナ */
.cp-contact-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    line-height: 1.5; /* 行間を一定に */
}

/* 自動挿入されるpタグとbrタグの余白を消す */
.cp-contact-form p {
    margin: 0 !important;
    padding: 0 !important;
}
.cp-contact-form br {
    display: none; /* ラベル直後のbrを無効化 */
}

/* 各項目のブロック */
.cp-contact-item {
    margin-bottom: 24px;
    text-align: left;
}

/* ラベルのデザインと配置 */
.cp-contact-label {
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px; /* 入力欄との距離 */
}

/* 必須バッジ */
.cp-contact-badge {
    background: #eb4d4b;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 2px;
    margin-left: 6px;
}

/* 入力欄を囲むスパンの調整 */
.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* 入力欄本体 */
.cp-contact-form input[type="text"],
.cp-contact-form input[type="email"],
.cp-contact-form textarea {
    width: 100% !important; /* 確実に横幅一杯に */
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    box-sizing: border-box;
    display: block;
}

/* 同意エリアのズレ補正 */
.cp-contact-condition {
    text-align: center;
}

.cp-contact-condition label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
}

.cp-contact-condition input[type="checkbox"] {
    margin: 0 8px 0 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 送信ボタンエリアの親要素 */
.cp-contact-action {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

/* 送信ボタン本体（有効・無効どちらにも効くように指定） */
.cp-contact-form input.wpcf7-submit {
    background-color: #005bac !important; /* 強制的に青色に */
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: bold !important;
    padding: 16px 80px !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer;
    width: auto;
    min-width: 300px;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.3s;
    opacity: 1 !important; /* 無効時も薄くしたくない場合は1、少し薄くするなら0.7 */
}

/* ホバー時（有効な時のみ） */
.cp-contact-form input.wpcf7-submit:not(:disabled):hover {
    background-color: #00407a !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 91, 172, 0.3);
}

/* チェックが入っていない（disabled）時のスタイルを固定 */
.cp-contact-form input.wpcf7-submit:disabled {
    background-color: #005bac !important; /* 無効でも色は変えない設定 */
    opacity: 0.6; /* 「まだ押せない」ことを示すために少し薄くする */
    cursor: not-allowed;
}

/* スピナー（ぐるぐる）の位置をボタンに干渉させない */
.cp-contact-action .wpcf7-spinner {
    position: absolute;
    bottom: -30px; /* ボタンの下側に逃がす */
    margin: 0;
}

/* テキストエリアの行間と余白を調整 */
.cp-contact-form textarea {
    width: 100% !important;
    padding: 15px !important;   /* 上下の余白を少し広めに */
    font-size: 16px !important;
    line-height: 1.5 !important; /* 行間を1.8倍に広げて読みやすく */
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    background: #fafafa !important;
    box-sizing: border-box !important;
    transition: all 0.3s !important;
    min-height: 150px;           /* 最低限の高さを持たせる */
}

/* 入力中の背景色と枠線 */
.cp-contact-form textarea:focus {
    background: #fff !important;
    border-color: #005bac !important;
}

/* スマホ表示でのスピナー位置調整 */
@media (max-width: 600px) {
    .cp-contact-action .wpcf7-spinner {
        position: static; /* スマホではボタンの下に出るように戻す */
        margin: 10px auto 0;
    }
}

/* PR表記のスタイル調整 */
.pr-notation {
    text-align: right;   /* 右寄せ */
    font-size: 10px;     /* 文字サイズ（お好みで調整してください） */
    color: #AAAAAA;         /* 文字色（少し薄めのグレー） */
    margin-bottom: 0px; /* 下との余白 */
}

.widget_custom_html {
	margin-bottom: 0px !important;
}

.entry-content {
	margin-top: 0px !important;
}

.entry-title {
	margin: 0px;
	padding: 0px;
}