/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/
/* ------------------------------------------- */
/* まず両方消しておく（衝突回避） */
.pc-only,
.sp-only {
  display: none !important;
}

/* PC表示：769px以上でpc-onlyを表示 */
@media screen and (min-width: 769px) {
  .pc-only { display: block !important; }
}

/* SP表示：768px以下でsp-onlyを表示 */
@media screen and (max-width: 768px) {
  .sp-only { display: block !important; }
}


/* ==================================== */
/* Contact Form 7 カスタムスタイル - ラッパー要素リセット */
/* ==================================== */

/* フォーム全体の横幅を最大800pxに制限し、中央寄せ */
.cf7-form-wrap {
    max-width: 800px !important;
    margin: 0 auto !important; /* 中央寄せ */
    padding: 0 !important;
}

/* 全体的なラベルのスタイル */
.cf7-form-wrap label {
    display: block !important;
    font-size: 1.1em !important;
    font-weight: normal !important;
    color: #333 !important;
    /* ラベルと入力欄の間の距離を短縮 */
    margin-bottom: 1px !important; 
}

/* ★★★ CF7のラッパー要素のリセットを追加 ★★★ */
.cf7-form-wrap .wpcf7-form-control-wrap {
    display: block !important; /* ブロック要素化を強制 */
    margin: 0 !important;
    padding: 0 !important;
}

/* 入力欄（テキストエリア、インプット）の共通スタイルを強制適用 */
.cf7-form-wrap input[type="text"],
.cf7-form-wrap input[type="email"],
.cf7-form-wrap input[type="tel"],
.cf7-form-wrap .wpcf7-textarea { 
    width: 100% !important; 
    /* 画像のデザインに合わせた枠線と背景 */
    border: 1px solid #333 !important;
    border-radius: 0 !important;
    background-color: #fff !important;
    padding: 10px 12px !important;
    
    /* 項目間の縦のスペース */
    margin-bottom: 20px !important; 
    
    /* Blocksyの影と外観を強制リセット */
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;

    /* フォーカス時のトランジション */
    transition: border-color 0.3s ease !important;
}

.cf7-form-wrap input[type="text"]:focus,
.cf7-form-wrap input[type="email"]:focus,
.cf7-form-wrap input[type="tel"]:focus,
.cf7-form-wrap .wpcf7-textarea:focus {
    border-color: #000 !important;
    outline: none !important;
}

/* --- 2列レイアウトの設定 (cf7-cols-2) --- */
.cf7-cols-2 {
    display: flex !important;
    gap: 20px !important; 
    margin-bottom: 0px !important; 
}

.cf7-col-item {
    flex: 1 !important;
}

/* スマホ表示でのブレイクポイント設定 */
@media (max-width: 767px) {
    .cf7-cols-2 {
        flex-direction: column !important;
        gap: 0 !important;
    }
}


/* --- 送信ボタンのスタイル --- */
.cf7-submit-btn {
    display: inline-block !important;
    min-width: 200px !important;
    padding: 15px 30px !important;
    background-color: #000 !important; 
    color: #fff !important; 
    font-weight: 500 !important;
    font-size: 1.0em !important;
    border: none !important; 
    border-radius: 0 !important; 
    cursor: pointer !important;
    transition: opacity 0.3s ease !important;
}

.cf7-submit-btn:hover {
    opacity: 0.85 !important; 
    background-color: #000 !important;
}

/* CF7内の余計なbrタグを非表示にして縦のスペースを詰める */
.cf7-form-wrap br {
    display: none !important;
}