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


/* 丸数字（①〜⑳）の定義 */
@counter-style circle-num {
  system: alphabetic;
  symbols: '①' '②' '③' '④' '⑤' '⑥' '⑦' '⑧' '⑨' '⑩' '⑪' '⑫' '⑬' '⑭' '⑮' '⑯' '⑰' '⑱' '⑲' '⑳';
}




/* PC表示（769px以上）：全体を100%に広げて 25%:75% に指定 */
@media (min-width: 769px) {
  /* 親要素・テーブル自体の幅を100%に強制 */
  .custom-company-table,
  .custom-company-table table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed;
  }

  /* 1列目（左側）を25%に指定 */
  .custom-company-table th:nth-child(1),
  .custom-company-table td:nth-child(1) {
    width: 25% !important;
    box-sizing: border-box;
    background-color: #f7f7f7; /* 不要なら削除 */
  }

  /* 2列目（右側）を75%に指定 */
  .custom-company-table th:nth-child(2),
  .custom-company-table td:nth-child(2) {
    width: 75% !important;
    box-sizing: border-box;
  }
}

/* スマホ表示（768px以下）：すべて100%で縦並び */
@media (max-width: 768px) {
  .custom-company-table,
  .custom-company-table table,
  .custom-company-table tbody,
  .custom-company-table tr,
  .custom-company-table th,
  .custom-company-table td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }

  .custom-company-table th:nth-child(1),
  .custom-company-table td:nth-child(1) {
    background-color: #f7f7f7;
    border-bottom: none;
    padding-bottom: 5px;
  }

  .custom-company-table tr {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
  }
}

/* 送信ボタンのサイズと文字を大きくする（優先度強化版） */
.wpcf7 input[type="submit"].wpcf7-submit {
    display: block !important;
    width: 100% !important;
    max-width: 400px !important;      /* ボタンの横幅の上限 */
    margin: 20px auto 0 !important;  /* 中央寄せ */
    padding: 18px 30px !important;   /* ボタンの上下左右の余白 */
    font-size: 22px !important;      /* 文字の大きさ */
    font-weight: bold !important;    /* 太字 */
    height: auto !important;          /* 高さを自動調整 */
    line-height: 1.4 !important;
}

/* 一時非表示用クラス */
.is-hidden {
    display: none !important;
}

/* ==================================================
   --- 個人情報保護方針 同意ボタン全幅化カスタム ---
   ================================================== */

/* 1. テーブルセル(td)やPタグの余白解除と全幅化 */
.custom-company-table td .wpcf7-acceptance,
.wpcf7-form p.full-width-p,
.wpcf7-form p,
.wpcf7-form .wpcf7-form-control-wrap,
.wpcf7-form .wpcf7-acceptance,
.wpcf7-form .wpcf7-list-item,
.wpcf7-form .wpcf7-list-item.wpcf7-acceptance-item {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* 2. ボタン本体（label要素）の枠線・背景・配置 */
.wpcf7-form .wpcf7-acceptance label {
  display: flex !important;
  flex-direction: column !important; /* 上：チェックボックス / 下：テキスト */
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 20px 16px !important;
  background-color: #f8f9fa !important;
  border: 2px solid #dcdfe6 !important;
  border-radius: 10px !important;
  color: #333333 !important;
  font-weight: bold !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  user-select: none !important;
  box-sizing: border-box !important;
}

/* 3. チェックボックス本体のサイズ */
.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
  width: 26px !important;
  height: 26px !important;
  accent-color: #2196f3 !important;
  cursor: pointer !important;
  margin: 0 !important;
}

/* 4. チェック選択時のデザイン変更 */
.wpcf7-form .wpcf7-acceptance label:has(input:checked) {
  background-color: #e3f2fd !important;
  border-color: #2196f3 !important;
  color: #0d47a1 !important;
}

/* 5. リンクテキストの指定 */
.wpcf7-form .wpcf7-acceptance a {
  color: #2196f3 !important;
  text-decoration: underline !important;
}

/* 6. スマホ閲覧時（幅768px以下）のサイズ設定 */
@media screen and (max-width: 768px) {
  .wpcf7-form .wpcf7-acceptance label {
    padding: 22px 14px !important;
    font-size: 15px !important;
  }
  
  .wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
    width: 28px !important;
    height: 28px !important;
  }
}

/* スマホ表示時（768px以下）のロゴサイズ調整 */
@media screen and (max-width: 768px) {
  /* 画像ロゴ（画像を使用している場合） */
  .header-in .site-name-text img,
  .logo-header img {
    max-height: 80px !important; /* 希望の高さ（デフォルトより小さめ） */
    width: auto !important;     /* 縦横比を維持 */
  }

  /* テキストロゴ（文字のみの場合） */
  .site-name-text {
    font-size: 18px !important; /* テキスト表示時の文字サイズ */
  }

  /* ヘッダー自体の上下余白（高さを詰める場合） */
  .header-in {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
  }
}

/* iOS Safariでの番号付きリスト崩れ防止 */
.entry-content ol.list-paren > li {
    display: flex !important;
    column-gap: 0.5em !important;
}

.entry-content ol.list-paren > li::before {
    flex-shrink: 0;
}



/* ==========================================
   完全解決版：Safari非対応構文を使わないリスト指定
   ========================================== */

/* 1階層目： （1）（2）（3） */
.entry-content ol.list-paren {
  list-style: none !important;
  counter-reset: paren-counter !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.entry-content ol.list-paren > li {
  list-style: none !important;
  counter-increment: paren-counter !important;
  display: block !important;
  position: relative !important;
  padding-left: 2.2em !important;
  margin-bottom: 1em !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.entry-content ol.list-paren > li::before {
  content: "（" counter(paren-counter) "）" !important;
  font-weight: bold !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  white-space: nowrap !important;
}

/* 2階層目： ①②③（ol・ul 共通対応） */
.entry-content ol.list-paren ol,
.entry-content ol.list-paren ul {
  list-style: none !important;
  counter-reset: sub-circle-counter !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
  margin-top: 0.6em !important;
  margin-bottom: 0.6em !important;
  width: 100% !important;
  display: block !important;
}

.entry-content ol.list-paren ol > li,
.entry-content ol.list-paren ul > li {
  list-style: none !important;
  counter-increment: sub-circle-counter !important;
  display: block !important;
  position: relative !important;
  padding-left: 1.8em !important;
  margin-bottom: 0.4em !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 1〜10の丸数字を個別に指定（全ブラウザ・Safari完全対応） */
.entry-content ol.list-paren ol > li:nth-child(1)::before,
.entry-content ol.list-paren ul > li:nth-child(1)::before { content: "①" !important; font-weight: bold !important; position: absolute !important; left: 0 !important; top: 0 !important; }

.entry-content ol.list-paren ol > li:nth-child(2)::before,
.entry-content ol.list-paren ul > li:nth-child(2)::before { content: "②" !important; font-weight: bold !important; position: absolute !important; left: 0 !important; top: 0 !important; }

.entry-content ol.list-paren ol > li:nth-child(3)::before,
.entry-content ol.list-paren ul > li:nth-child(3)::before { content: "③" !important; font-weight: bold !important; position: absolute !important; left: 0 !important; top: 0 !important; }

.entry-content ol.list-paren ol > li:nth-child(4)::before,
.entry-content ol.list-paren ul > li:nth-child(4)::before { content: "④" !important; font-weight: bold !important; position: absolute !important; left: 0 !important; top: 0 !important; }

.entry-content ol.list-paren ol > li:nth-child(5)::before,
.entry-content ol.list-paren ul > li:nth-child(5)::before { content: "⑤" !important; font-weight: bold !important; position: absolute !important; left: 0 !important; top: 0 !important; }

.entry-content ol.list-paren ol > li:nth-child(6)::before,
.entry-content ol.list-paren ul > li:nth-child(6)::before { content: "⑥" !important; font-weight: bold !important; position: absolute !important; left: 0 !important; top: 0 !important; }

.entry-content ol.list-paren ol > li:nth-child(7)::before,
.entry-content ol.list-paren ul > li:nth-child(7)::before { content: "⑦" !important; font-weight: bold !important; position: absolute !important; left: 0 !important; top: 0 !important; }

.entry-content ol.list-paren ol > li:nth-child(8)::before,
.entry-content ol.list-paren ul > li:nth-child(8)::before { content: "⑧" !important; font-weight: bold !important; position: absolute !important; left: 0 !important; top: 0 !important; }

.entry-content ol.list-paren ol > li:nth-child(9)::before,
.entry-content ol.list-paren ul > li:nth-child(9)::before { content: "⑨" !important; font-weight: bold !important; position: absolute !important; left: 0 !important; top: 0 !important; }

.entry-content ol.list-paren ol > li:nth-child(10)::before,
.entry-content ol.list-paren ul > li:nth-child(10)::before { content: "⑩" !important; font-weight: bold !important; position: absolute !important; left: 0 !important; top: 0 !important; }


/* 奇数行（1, 3, 5...行目）の左列：やや濃いめの薄いブルー */
.custom-company-table table tbody tr:nth-child(odd) td:first-child {
  background-color: #e6f2ff;
  font-weight: bold;
}

/* 偶数行（2, 4, 6...行目）の左列：さらに薄いブルー */
.custom-company-table table tbody tr:nth-child(even) td:first-child {
  background-color: #f4f8fc;
  font-weight: bold;
}

/* reCAPTCHAバッジを非表示にする */
.grecaptcha-badge {
    visibility: hidden;
}

/* サンクスページ レスポンシブスタイル */
.thanks-container {
  text-align: left; /* 左揃え */
  max-width: 700px;
  margin: 0 auto;
  padding: 10px 15px;
  box-sizing: border-box;
}

.thanks-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.4;
}

.thanks-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 15px;
}

.thanks-note {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 30px;
}

/* 電話案内ボックス */
.thanks-contact-box {
  background-color: #f8f9fa;
  border-left: 4px solid #2196f3;
  padding: 18px 20px;
  margin-bottom: 35px;
  border-radius: 0 6px 6px 0;
}

.thanks-contact-label {
  font-weight: bold;
  color: #333;
  margin: 0 0 5px 0;
  font-size: 0.95rem;
}

.thanks-tel {
  font-size: 1.35rem;
  font-weight: bold;
  margin: 0;
}

.thanks-tel a {
  color: #2196f3;
  text-decoration: none;
}

.thanks-hours {
  font-size: 0.85rem;
  color: #666;
  margin: 3px 0 0 0;
}

/* ボタンエリア */
.thanks-btn-wrap {
  margin-top: 30px;
}

.thanks-btn {
  display: inline-block;
  background-color: #2196f3;
  color: #ffffff !important;
  text-decoration: none;
  padding: 12px 35px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background-color 0.3s, opacity 0.3s;
  text-align: center;
}

.thanks-btn:hover {
  background-color: #1976d2;
  opacity: 0.9;
}

/* スマホ用（画面幅600px以下）のスタイル自動調整 */
@media screen and (max-width: 600px) {
  .thanks-title {
    font-size: 1.25rem;
  }
  
  .thanks-text {
    font-size: 0.95rem;
  }

  .thanks-tel {
    font-size: 1.2rem;
  }

  /* スマホではボタンを横幅いっぱいに */
  .thanks-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
}

/* ==========================================
   お問い合わせフォーム（Contact Form 7）デザイン
   ========================================== */

/* 必須・どちらか必須バッジ（青色） */
.required,
.any {
  display: inline-block;
  background-color: #2196f3; /* 統一したブルー */
  color: #ffffff;            /* 文字色（白） */
  font-size: 0.75rem;        /* 小さめの文字サイズ */
  font-weight: bold;         /* 太字 */
  padding: 2px 8px;          /* 内側の余白 */
  border-radius: 3px;        /* 控えめな角丸 */
  margin-left: 6px;          /* テキストとの間隔 */
  vertical-align: middle;    /* 中央揃え */
  line-height: 1.4;
}

/* 任意項目テキスト */
.wpcf7 .optional {
  font-size: 0.85em;
  color: #666666;
}

/* reCAPTCHA注記 */
.wpcf7 .recaptcha-text {
  font-size: 0.8em;
  color: #666666;
  text-align: center;
  margin-top: 15px;
}