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

/***** FormNest（FN）レイアウト調整 *****/

/* 1. フォームテーブルの全幅指定 */
body .formnest-form-container,
body .formnest-form,
body .formnest-form-fields,
body .formnest-form-table {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
  table-layout: fixed;
}

/* 入力欄・確認画面用セルの共通スタイル（左揃え・上揃え） */
body .formnest-form-table td.formnest-form-field,
body .formnest-form-table td.formnest-confirm-value {
  text-align: left;
  vertical-align: top;
}

/* 2. 背景色の統一（ゼブラ模様の解除） */
body .formnest-form-table tr,
body .formnest-form-table .formnest-form-row {
  background-color: transparent;
}

/* 3. PC表示時（769px以上）：ラベル（th）と入力欄/確認値（td）の幅比率・配置 */
@media screen and (min-width: 769px) {
  body .formnest-form-table th.formnest-form-label {
    width: 25%;
    vertical-align: top;
    padding: 16px 15px;
    box-sizing: border-box;
    background-color: #f7f7f5; /* 左側ラベル：薄いグレー */
    display: table-cell;
    text-align: left;
  }

  body .formnest-form-table td.formnest-form-field,
  body .formnest-form-table td.formnest-confirm-value {
    width: 75%;
    padding: 16px 15px;
    box-sizing: border-box;
    background-color: #ffffff; /* 右側入力欄・確認値：白 */
    display: table-cell;
    word-break: break-word;     /* 長い文字列のはみ出し防止 */
  }

  body .formnest-form-table tr,
  body .formnest-form-table .formnest-form-row {
    display: table-row;
  }
}

/* 確認画面：未入力（—）のグレー表示 */
body .formnest-confirm-value .formnest-empty-value {
  color: #999999;
}

/* 4. ラジオボタン・チェックボックスの横並び・折り返し調整 */
body .formnest-form-table .formnest-radio-group,
body .formnest-form-table .formnest-checkbox-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px 20px;
  text-align: left;
  width: 100%;
}

body .formnest-form-table .formnest-radio-label,
body .formnest-form-table .formnest-checkbox-label {
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 0;
  text-align: left;
  white-space: normal;
  max-width: 100%;
  word-break: break-word;
  cursor: pointer;
}

body .formnest-form-table .formnest-radio-label input,
body .formnest-form-table .formnest-checkbox-label input {
  flex-shrink: 0;
  margin-top: 3px;
}

body .formnest-radio-text,
body .formnest-checkbox-text {
  margin-left: 6px;
}

/* 5. 入力フィールドの幅・高さ調整 */
body .formnest-form-table input[type="text"],
body .formnest-form-table input[type="email"],
body .formnest-form-table select {
  width: 100%;
  box-sizing: border-box;
}

body .formnest-form-table textarea {
  width: 100%;
  min-height: 200px;
  box-sizing: border-box;
}

/* 6. 同意文エリアの余白調整 */
body .formnest-agreement-content p {
  margin-bottom: 0;
}

/* 7. フッター（必須項目の注記）の非表示 */
body .formnest-form-footer {
  display: none;
}

/* 8. 必須マーク（バッジ）のデザイン調整 */
body .formnest-required {
  background-color: #e53935;
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 7px;
  border-radius: 3px;
  margin-left: 8px;
  display: inline-block;
  vertical-align: middle;
  line-height: 1.3;
}

/* 9. ボタンエリア・送信/戻るボタンのデザイン調整 */
body .formnest-form-submit {
  text-align: center;
  margin-top: 35px;
}

body .formnest-form-submit .form_submit_btn_area {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ボタン共通スタイル */
body .formnest-form-submit button,
body .formnest-form-submit input[type="submit"] {
  min-width: 220px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* 「送信する」「確認画面へ」ボタン（紺色） */
body .formnest-form-submit .formnest-submit-button,
body .formnest-form-submit .formnest-complete-button {
  background-color: #192f60;
  color: #ffffff;
}

body .formnest-form-submit .formnest-submit-button:hover,
body .formnest-form-submit .formnest-complete-button:hover {
  background-color: #384e80;
}

/* 「入力画面に戻る」ボタン（グレー） */
body .formnest-form-submit .formnest-button-back,
body .formnest-form-submit .formnest-back-to-form {
  background-color: #696969;
  color: #ffffff;
}

body .formnest-form-submit .formnest-button-back:hover,
body .formnest-form-submit .formnest-back-to-form:hover {
  background-color: #888888;
}

/* 10. レスポンシブ対応（スマホ表示時：768px以下） */
@media screen and (max-width: 768px) {
  body .formnest-form-table,
  body .formnest-form-table tbody,
  body .formnest-form-table tr,
  body .formnest-form-table th.formnest-form-label,
  body .formnest-form-table td.formnest-form-field,
  body .formnest-form-table td.formnest-confirm-value {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  body .formnest-form-table {
    border: 1px solid #e0e0e0;
  }

  body .formnest-form-table th.formnest-form-label {
    background-color: #f7f7f5;
    padding: 12px 15px;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #eee;
  }

  body .formnest-form-table tr:first-child th.formnest-form-label {
    border-top: none;
  }

  body .formnest-form-table td.formnest-form-field,
  body .formnest-form-table td.formnest-confirm-value {
    background-color: #ffffff;
    padding: 12px 15px 20px 15px;
  }

  body .formnest-form-submit .form_submit_btn_area {
    flex-direction: column-reverse;
    gap: 12px;
  }

  body .formnest-form-submit button,
  body .formnest-form-submit input[type="submit"] {
    width: 100%;
    max-width: 100%;
  }
}

/* 11. 入力画面の送信ボタン下の注記テキスト */
body .formnest-form:not(.formnest-form-confirm-mode) .formnest-form-submit::after {
  content: "（確認画面へ移動します）";
  display: block;
  width: 100%;
  margin-top: 10px;
  font-size: 80%;
  color: #666666;
  text-align: center;
  font-weight: normal;
}

/* 12. 補足文章内のリスト（ul/ol）の左余白調整 */
body .fn-note ul,
body .fn-note ol {
  padding-left: 1.2em;
  margin-left: 0;
  margin-top: 0;
  margin-bottom: 0;
}

/* 13. 確認画面のメールアドレス・電話番号リンクをプレーンテキスト化 */
body .formnest-confirm-value a[href^="mailto:"],
body .formnest-confirm-value a[href^="tel:"] {
  color: inherit;
  text-decoration: none;
  pointer-events: none;
  cursor: default;
}