/* ============================================
   Churakids Contact Page Style (Blue & Dark Header Ver.)
   ============================================ */

/* 変数定義と基本設定 */
body.page-id-2869 {
    /* カラーパレット変更 */
    --primary: #0885cd;       /* 指定のブルー */
    --primary-light: #0a9de8; /* 少し明るいブルー（ホバー用） */
    --dark-bg: #333333;       /* ヘッダー・フッター背景用の濃いグレー */
    
    --text: #333333;
    --text-light: #666666;
    --bg: #FAFAFA;
    --white: #FFFFFF;
    --border: #E0E0E0;
    --error: #D94747;
    
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Noto Sans JP', sans-serif;
    background: var(--bg) !important;
    color: var(--text);
    line-height: 1.6;
  }
  
  /* ============================================
     ヘッダー（ダークテーマ化）
     ============================================ */
  .page-id-2869 .contact-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--dark-bg); /* 背景を濃いグレーに */
    padding: 12px 16px;
    width: 100%;
    box-sizing: border-box;
    color: var(--white); /* 基本文字色を白に */
  }
  
  .page-id-2869 .header-inner {
    max-width: 860px; /* コンテンツ幅と統一 */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .page-id-2869 .header-logo {
    font-size: 1.2rem;
    font-weight: 800 !important;
    font-family: 'Noto Sans JP', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', sans-serif !important;
    color: var(--white) !important; /* ロゴを白に */
    text-decoration: none;
    letter-spacing: 0.05em;
  }
  
  /* ハンバーガーメニュー */
  .page-id-2869 .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
  }
  
  .page-id-2869 .nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--white); /* 線の色を白に */
    transition: 0.2s;
  }
  
  .page-id-2869 .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
  .page-id-2869 .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .page-id-2869 .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }
  
  .page-id-2869 .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-bg); /* スマホメニュー背景も濃いグレー */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s;
    width: 100%;
  }
  
  .page-id-2869 .header-nav.open { max-height: 300px; }
  
  .page-id-2869 .header-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .page-id-2869 .header-nav a {
    display: block;
    padding: 12px 20px;
    color: rgba(255,255,255,0.9); /* リンク文字色を白っぽく */
    text-decoration: none;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1); /* 区切り線を薄い白に */
  }
  
  .page-id-2869 .header-nav a:hover { background: rgba(255,255,255,0.1); }
  
  /* ============================================
     コンテンツエリア
     ============================================ */
  /* ヒーローエリア */
  .page-id-2869 .contact-hero-wrapper {
  }
  
  .page-id-2869 .hero-title-section {
    padding: 30px 16px 10px;
    text-align: center;
  }
  
  .page-id-2869 .contact-hero {
    background: var(--white);
    position: relative;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  /* SP版の画像の高さを低く */
  @media (max-width: 767px) {
    .page-id-2869 .contact-hero {
      min-height: 150px;
    }
  }
  
  .page-id-2869 .hero-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text);
  }
  
  .page-id-2869 .hero-subtitle {
    font-size: 0.65rem;
    color: var(--text-light);
    margin: 4px 0 0;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }
  
  /* メインエリア（幅設定） */
  .page-id-2869 .contact-main {
    padding: 40px 16px 80px;
    max-width: 860px; /* 【重要】PCでのコンテンツ幅を拡大 */
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* 言語スイッチ */
  .page-id-2869 .lang-switch-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
  }
  
  .page-id-2869 .lang-btn {
    padding: 10px 28px;
    border: 1px solid var(--primary); /* 枠線をブルーに */
    border-radius: 4px;
    background: var(--white);
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
  }
  
  .page-id-2869 .lang-btn.active {
    background: var(--primary);
    color: var(--white);
  }
  
  /* フォームエリア制御 */
  .page-id-2869 .form-area {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in;
  }
  
  .page-id-2869 .form-area.active-area { display: block; }
  .page-id-2869 .form-area.fade-in { opacity: 1; }
  
  /* ============================================
     Contact Form 7 本体スタイル
     ============================================ */
  .page-id-2869 .wpcf7 {
    background: var(--white);
    border-radius: 12px; /* 角丸を少し強調 */
    padding: 30px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); /* 影をリッチに */
  }
  
  /* スマホでは枠を軽減 */
  @media (max-width: 767px) {
    .page-id-2869 .wpcf7 {
      background: transparent;
      border: none;
      border-radius: 0;
      padding: 0;
      box-shadow: none;
    }
  }
  
  .page-id-2869 .wpcf7-form p {
      margin-bottom: 24px;
  }
  
  .page-id-2869 .wpcf7-form label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0;
  }
  
  /* ラベル内のbrタグを非表示にして、代わりにマージンで制御 */
  .page-id-2869 .wpcf7-form label br {
    display: none;
  }
  
  /* 入力フィールドにマージンを追加（ラベル内にある場合） */
  .page-id-2869 .wpcf7-form label .wpcf7-form-control,
  .page-id-2869 .wpcf7-form label select,
  .page-id-2869 .wpcf7-form label textarea,
  .page-id-2869 .wpcf7-form label input {
    margin-top: 16px !important;
    display: block;
  }
  
  .page-id-2869 .wpcf7-form .required {
    display: none !important; /* 必須マークを非表示（全項目必須のため） */
  }
  
  .page-id-2869 .wpcf7-form .optional {
    display: none !important; /* 「任意」アイコンを非表示 */
  }
  
  /* 入力フィールド */
  .page-id-2869 .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance) {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 16px;
    color: var(--text);
    background: #fdfdfd;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-top: 16px !important;
    display: block;
  }
  
  .page-id-2869 .wpcf7-form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(8, 133, 205, 0.15); /* ブルーの光彩 */
    background: var(--white);
  }
  
  /* プライバシーポリシー */
  .page-id-2869 .wpcf7-form .privacy-check {
    font-size: 0.95rem;
    color: var(--text);
    margin-top: 20px;
    padding: 15px;
    background: var(--bg);
    border-radius: 6px;
    text-align: center;
    line-height: 1.6;
    display: block;
  }
  
  .page-id-2869 .wpcf7-form .privacy-check .wpcf7-form-control-wrap {
    display: inline-block;
  }
  
  .page-id-2869 .wpcf7-form .privacy-check .wpcf7-acceptance {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  
  .page-id-2869 .wpcf7-form .privacy-check .wpcf7-acceptance label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-weight: normal;
    line-height: 1.6;
    cursor: pointer;
  }
  
  .page-id-2869 .wpcf7-form .privacy-check input[type="checkbox"] {
    margin: 0 !important;
    accent-color: var(--primary);
    transform: scale(1.2);
    flex-shrink: 0;
    vertical-align: middle;
  }
  
  .page-id-2869 .wpcf7-form .privacy-check a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: bold;
    cursor: pointer;
  }
  
  /* プライバシーポリシーモーダル */
  .page-id-2869 .privacy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow-y: auto;
  }
  
  .page-id-2869 .privacy-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  
  .page-id-2869 .privacy-modal-content {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  }
  
  .page-id-2869 .privacy-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
  }
  
  .page-id-2869 .privacy-modal-close:hover {
    background: var(--bg);
  }
  
  .page-id-2869 .privacy-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
  }
  
  .page-id-2869 .privacy-modal-body {
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--text);
  }
  
  .page-id-2869 .privacy-modal-body ul {
    list-style-type: disc !important;
    list-style-position: outside !important;
    padding-left: 20px !important;
    margin: 10px 0 !important;
  }
  
  .page-id-2869 .privacy-modal-body li {
    list-style-type: disc !important;
    margin-bottom: 5px !important;
    padding-left: 0 !important;
  }
  
  .page-id-2869 .privacy-modal-body li::before {
    display: none !important;
    content: none !important;
  }
  
  /* 送信ボタン */
  .page-id-2869 .wpcf7-form .wpcf7-submit {
    width: 100%;
    padding: 18px;
    margin-top: 30px;
    border: none;
    border-radius: 6px;
    background: var(--primary); /* ブルーに変更 */
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 4px 10px rgba(8, 133, 205, 0.2);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 56px;
  }
  
  .page-id-2869 .wpcf7-form .wpcf7-submit:hover {
    background: var(--primary-light);
  }
  
  /* ============================================
     フッター（ダークテーマ化）
     ============================================ */
  .page-id-2869 .contact-footer {
    background: var(--dark-bg); /* 背景を濃いグレーに */
    padding: 40px 16px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    color: rgba(255,255,255,0.7); /* 文字色を薄い白に */
  }
  
  .page-id-2869 .footer-logo {
    font-size: 1.2rem;
    font-weight: 800 !important;
    font-family: 'Noto Sans JP', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', sans-serif !important;
    color: var(--white) !important; /* ロゴを白に */
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
  }
  
  .page-id-2869 .footer-address {
    font-size: 0.85rem;
    margin: 0 0 25px;
    display: none; /* 住所を非表示 */
  }
  
  .page-id-2869 .contact-footer {
    font-family: 'Noto Sans JP', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', sans-serif;
  }
  
  .page-id-2869 .footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
  }
  
  .page-id-2869 .footer-links a {
    font-size: 0.9rem;
    color: var(--white); /* リンクを白に */
    text-decoration: none;
  }
  
  .page-id-2869 .footer-links a:hover {
    text-decoration: underline;
  }
  
  .page-id-2869 .footer-copyright {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
  }
  
  /* reCAPTCHA非表示 */
  .page-id-2869 .grecaptcha-badge { visibility: hidden; }
  
  /* ============================================
     PC向け調整（レスポンシブ）
     ============================================ */
  @media (min-width: 768px) {
    .page-id-2869 .nav-toggle { display: none; }
    
    .page-id-2869 .header-nav {
      position: static;
      max-height: none;
      background: transparent; /* PCでは背景透明 */
    }
    
    .page-id-2869 .header-nav ul {
      display: flex;
      gap: 20px;
      margin: 0;
      padding: 0;
      justify-content: flex-end;
    }
    
    .page-id-2869 .header-nav a {
      padding: 8px 12px;
      border-top: none;
      border-radius: 4px;
      color: var(--white); /* PCメニューも白 */
    }
    
    .page-id-2869 .header-nav a:hover {
      background: rgba(255,255,255,0.1);
    }
    
    /* PCでのフォーム幅広化に伴う調整 */
    .page-id-2869 .wpcf7 { padding: 50px 60px; }
    
    .page-id-2869 .wpcf7-form .wpcf7-submit {
      width: auto;
      min-width: 300px;
      margin: 40px auto 0;
      display: block;
    }
    
    /* PCではフォームに枠を表示 */
    .page-id-2869 .wpcf7 {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 12px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    }
  }
  
  /* ============================================
     ページ上部へ戻るボタン
     ============================================ */
  .scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
  
  .scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
  }
  
  .scroll-top-btn:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  }
  
  .scroll-top-btn:active {
    transform: translateY(-1px);
  }
  
  @media (max-width: 767px) {
    .scroll-top-btn {
      bottom: 20px;
      right: 20px;
      width: 45px;
      height: 45px;
      font-size: 20px;
    }
  }