@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
*/

/* ==========================================================================
 * 1. ページ共通・基本エレメント
 * ========================================================================== */

/* メインタイトル（H1）アクセント */
h1.entry-title {
  margin-bottom: 35px;
  padding-left: 14px;
  border-left: 5px solid #192f60;
  border-top: none;
  border-right: none;
  border-bottom: none;
  background: none;
  line-height: 1.35;
}


/* ==========================================================================
 * 2. FormNest: 全体レイアウト ＆ テーブルカード構造
 * ========================================================================== */

/* フォーム外枠リセット */
body .formnest-form-container,
body .formnest-form,
body .formnest-form-fields {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* テーブル構造（カード型枠） */
body .formnest-form-table {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

body .formnest-form-table tr,
body .formnest-form-table .formnest-form-row {
  background-color: transparent;
  border-bottom: 1px solid #edf2f7;
}

body .formnest-form-table tr:last-child {
  border-bottom: none;
}

body .formnest-form-table td.formnest-form-field,
body .formnest-form-table td.formnest-confirm-value {
  text-align: left;
  vertical-align: top;
}

/* PC表示（769px〜）: 2カラムレイアウト固定 */
@media screen and (min-width: 769px) {
  body .formnest-form-table tr,
  body .formnest-form-table .formnest-form-row {
    display: table-row;
  }

  body .formnest-form-table th.formnest-form-label {
    width: 25%;
    vertical-align: top;
    padding: 18px;
    box-sizing: border-box;
    background-color: #f8fafc;
    border-right: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
    display: table-cell;
    text-align: left;
    color: #1e293b;
    font-weight: 600;
  }

  body .formnest-form-table td.formnest-form-field,
  body .formnest-form-table td.formnest-confirm-value {
    width: 75%;
    padding: 18px 20px;
    box-sizing: border-box;
    background-color: #ffffff;
    border-bottom: 1px solid #edf2f7;
    display: table-cell;
    word-break: break-word;
  }

  body .formnest-form-table tr:last-child th.formnest-form-label,
  body .formnest-form-table tr:last-child td.formnest-form-field,
  body .formnest-form-table tr:last-child td.formnest-confirm-value {
    border-bottom: none;
  }
}


/* ==========================================================================
 * 3. FormNest: 各種入力パーツ ＆ フィールド装飾
 * ========================================================================== */

/* テキスト / セレクト / テキストエリア */
body .formnest-form-table input[type="text"],
body .formnest-form-table input[type="email"],
body .formnest-form-table input[type="tel"],
body .formnest-form-table input[type="number"],
body .formnest-form-table select,
body .formnest-form-table textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 15px;
  color: #1e293b;
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body .formnest-form-table textarea {
  min-height: 200px;
}

body .formnest-form-table input[type="text"]:focus,
body .formnest-form-table input[type="email"]:focus,
body .formnest-form-table input[type="tel"]:focus,
body .formnest-form-table input[type="number"]:focus,
body .formnest-form-table select:focus,
body .formnest-form-table textarea:focus {
  outline: none;
  border-color: #192f60;
  box-shadow: 0 0 0 3px rgba(25, 47, 96, 0.15);
}

/* 日時・年月選択フィールド */
body .formnest-form-table input[type="date"],
body .formnest-form-table input[type="time"],
body .formnest-form-table input[type="month"],
body .formnest-form-table input[placeholder*="YYYY"],
body .formnest-form-table input[placeholder*="yyyy"],
body .formnest-form-table input[placeholder*="MM"],
body .formnest-form-table input[name*="date"],
body .formnest-form-table input[name*="time"],
body .formnest-form-table input[class*="date"],
body .formnest-form-table input[class*="time"],
body .formnest-form-table select[name*="year"],
body .formnest-form-table select[name*="month"],
body .formnest-form-table select[name*="day"],
body .formnest-form-table select[name*="hour"],
body .formnest-form-table select[name*="minute"],
body .formnest-form-table select[class*="date"],
body .formnest-form-table select[class*="year"],
body .formnest-form-table select[class*="month"] {
  width: auto;
  min-width: 130px;
  max-width: 220px;
  display: inline-block;
  padding: 8px 10px;
}

/* ラジオボタン / チェックボックス */
body .formnest-form-table .formnest-radio-group,
body .formnest-form-table .formnest-checkbox-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 14px 28px;
  text-align: left;
  width: 100%;
}

body .formnest-form-table .formnest-radio-label,
body .formnest-form-table .formnest-checkbox-label {
  display: inline-flex;
  align-items: center; /* 上揃えから「垂直中央揃え」に変更 */
  justify-content: flex-start;
  margin: 0;
  margin-right: 1.8em;
  text-align: left;
  white-space: normal;
  max-width: 100%;
  word-break: break-word;
  cursor: pointer;
  color: #334155;
}

body .formnest-form-table .formnest-radio-label input,
body .formnest-form-table .formnest-checkbox-label input {
  flex-shrink: 0;
  margin-top: 0; /* マージンによる位置調整をリセット */
  accent-color: #192f60;
}

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

/* 必須・任意バッジ */
body .formnest-required,
body .formnest-optional {
  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;
  color: #ffffff;
}

body .formnest-required {
  background-color: #e11d48;
}

body .formnest-optional {
  background-color: #94a3b8;
}

/* 同意規約エリア */
body .formnest-agreement-content {
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  background-color: #f8fafc;
  border-radius: 6px;
  margin-bottom: 12px;
  max-height: 160px;
  overflow-y: auto;
}

body .formnest-agreement-content p {
  margin-bottom: 0;
}

body .formnest-agreement-label,
body .formnest-agreement-check,
body .formnest-form-table label[class*="agreement"] {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  margin-top: 10px;
}

body .formnest-agreement-label input[type="checkbox"],
body .formnest-agreement-check input[type="checkbox"],
body .formnest-form-table label[class*="agreement"] input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  cursor: pointer;
}


/* ==========================================================================
 * 4. FormNest: 補足案内枠（.fn-note） ＆ 画像表示制御
 * ========================================================================== */

body .fn-note {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 85%;
  color: #475569;
  line-height: 1.5;
  display: flow-root; /* 画像追加時の高さ追従 */
}

body .fn-note p,
body .fn-note ul,
body .fn-note ol {
  margin-top: 0;
  margin-bottom: 0;
}

body .fn-note ul,
body .fn-note ol {
  padding-left: 1.2em;
  margin-left: 0;
}

body .fn-note img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin-top: 8px;
  border-radius: 4px;
}

body .fn-note figure {
  margin: 8px 0 0 0;
  max-width: 100%;
}


/* ==========================================================================
 * 5. FormNest: 添付ファイルUI ＆ ツールチップ
 * ========================================================================== */

/* 添付ファイル制御行（1行横並びコンテナ） */
body .fn-file-control-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-top: 6px !important;
  overflow: hidden !important;
}

body .formnest-file-upload-label,
body .fn-file-control-row label {
  display: inline-flex !important;
  align-items: center !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: max-content !important;
}

body .formnest-file-upload-button {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-block !important;
  line-height: 1.4 !important;
  flex: 0 0 auto !important;
  width: auto !important;
}

body .formnest-file-upload-filename,
body td.formnest-form-field [class*="filename"] {
  font-size: 13px !important;
  font-weight: normal !important;
  color: #64748b !important;
  background-color: #f8fafc !important;
  border: 1px dashed #cbd5e1 !important;
  border-radius: 6px !important;
  padding: 7px 14px !important;
  display: block !important;
  line-height: 1.4 !important;
  box-sizing: border-box !important;
  flex: 1 1 0px !important;
  min-width: 0 !important;
  width: auto !important;
  margin: 0 !important;
}

body .fn-clear-file-btn {
  flex: 0 0 auto !important;
  width: auto !important;
}

/* 「i」ツールチップ */
body .fn-tooltip-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  vertical-align: middle;
  cursor: pointer;
}

body .fn-tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background-color: #64748b;
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
  font-family: sans-serif;
  border-radius: 50%;
  line-height: 1;
  transition: background-color 0.2s ease;
}

body .fn-tooltip-container:hover .fn-tooltip-icon {
  background-color: #192f60;
}

body .fn-tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: 220px;
  background-color: #1e293b;
  color: #ffffff;
  text-align: left;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: normal;
  line-height: 1.4;
  position: absolute;
  z-index: 999;
  bottom: 125%;
  left: -8px;
  transform: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  white-space: normal;
}

body .fn-tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 11px;
  margin-left: 0;
  border-width: 5px;
  border-style: solid;
  border-color: #1e293b transparent transparent transparent;
}

body .fn-tooltip-container:hover .fn-tooltip-text {
  visibility: visible;
  opacity: 1;
}

@media screen and (max-width: 768px) {
  body .fn-tooltip-text {
    width: 190px;
    font-size: 11px;
  }
}


/* ==========================================================================
 * 6. FormNest: 送信・ナビゲーションボタン ＆ 確認画面表示
 * ========================================================================== */

body .formnest-form-footer {
  display: none;
}

body .formnest-form-submit {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

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"],
body .formnest-submit-button,
body .formnest-btn-submit,
body .formnest-form-actions {
  min-width: 240px;
  padding: 15px 32px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  line-height: 1.4;
  margin-top: 36px;
}

/* 送信・次へボタン */
body .formnest-form-submit .formnest-submit-button,
body .formnest-form-submit .formnest-complete-button,
body .formnest-form-submit button[type="submit"],
body .formnest-form-submit input[type="submit"] {
  background: #274577;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(39, 69, 119, 0.25);
}

body .formnest-form-submit .formnest-submit-button:hover,
body .formnest-form-submit .formnest-complete-button:hover,
body .formnest-form-submit button[type="submit"]:hover,
body .formnest-form-submit input[type="submit"]:hover {
  background: #192f60;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(39, 69, 119, 0.35);
}

/* 戻るボタン */
body .formnest-form-submit .formnest-back-button,
body .formnest-form-submit .formnest-btn-back,
body .formnest-form-submit button.formnest-back-button,
body .formnest-form-submit button[class*="back"],
body .formnest-form-submit input[class*="back"] {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  box-shadow: none;
}

body .formnest-form-submit .formnest-back-button:hover,
body .formnest-form-submit .formnest-btn-back:hover,
body .formnest-form-submit button.formnest-back-button:hover,
body .formnest-form-submit button[class*="back"]:hover,
body .formnest-form-submit input[class*="back"]:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
  transform: translateY(-1px);
  box-shadow: none;
}

body .formnest-form:not(.formnest-form-confirm-mode) .formnest-form-submit::after {
  content: none;
}

/* 確認画面テキスト表示 */
body .formnest-confirm-value .formnest-empty-value {
  color: #94a3b8;
}

body .formnest-confirm-value a[href^="mailto:"],
body .formnest-confirm-value a[href^="tel:"] {
  color: inherit;
  text-decoration: none;
  pointer-events: none;
  cursor: default;
}


/* ==========================================================================
 * 7. FormNest: スマホ表示（〜768px）レイアウト調整
 * ========================================================================== */

@media screen and (max-width: 768px) {
  body .formnest-form-table {
    border-radius: 8px;
  }

  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 th.formnest-form-label {
    background-color: #f8fafc;
    padding: 12px 15px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #edf2f7;
    border-right: none;
  }

  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;
    gap: 12px;
  }

  /* ボタンが画面幅いっぱいに広がるのを防ぐ調整 */
  body .formnest-form-submit button,
  body .formnest-form-submit input[type="submit"] {
    width: auto;
    max-width: 280px; /* スマホ時のボタン最大幅 */
  }
}


/* ==========================================================================
 * 8. ページ個別: パスワード保護画面（post-password-form）
 * ========================================================================== */

body .post-password-form {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 20px 0 40px;
  margin: 10px auto;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

body .post-password-form p {
  margin-bottom: 28px;
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

body .post-password-form p:first-of-type {
  margin-top: 0;
}

body .post-password-form label {
  display: block;
  font-weight: 600;
  color: #1e293b;
  font-size: 15px;
  margin-bottom: 12px;
  text-align: center;
}

body .post-password-form input[type="password"] {
  display: block;
  width: 100%;
  max-width: 380px;
  margin: 8px auto 0;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 15px;
  color: #1e293b;
  background-color: #ffffff;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body .post-password-form input[type="password"]:focus {
  outline: none;
  border-color: #192f60;
  box-shadow: 0 0 0 3px rgba(25, 47, 96, 0.15);
}

body .post-password-form input[type="submit"] {
  display: inline-block;
  width: 100%;
  max-width: 200px;
  margin-top: 24px;
  padding: 12px 28px;
  background: #274577;
  color: #ffffff;
  font-size: 15px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(39, 69, 119, 0.2);
  transition: all 0.25s ease;
  line-height: 1.4;
  text-align: center;
}

body .post-password-form input[type="submit"]:hover {
  background: #192f60;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(39, 69, 119, 0.3);
}

@media screen and (max-width: 768px) {
  body .post-password-form input[type="password"],
  body .post-password-form input[type="submit"] {
    max-width: 100%;
  }
}