/* pf-survey-form v2 */

/* === パンくず非表示 === */
#breadcrumb, .breadcrumb, .ep-breadcrumb,
.breadcrumb-nav, nav[aria-label="breadcrumb"],
.entry-breadcrumb { display: none !important; }

/* === コンテナ === */
.pf-survey-form {
  font-family: inherit;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
  color: #484848;
  letter-spacing: .02em;
  line-height: 1.9;
}

/* === 説明文 === */
.pf-intro {
  background: #fff;
  border: 1px solid #f0d8d8;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.8;
}
.pf-intro p { margin: 0 0 .6em; }
.pf-intro p:last-child { margin-bottom: 0; }
.pf-intro-subtitle {
  font-weight: 700;
  color: #ec6d71;
  margin: 1.8em 0 .5em !important;
  font-size: 14px;
  border-left: 3px solid #ec6d71;
  padding-left: 8px;
}
.pf-intro-subtitle:first-child { margin-top: 0 !important; }
.pf-intro strong { color: #ec6d71; }
.pf-intro-list {
  margin: .6em 0 1.2em 1.2em;
  padding: 0;
  list-style: disc;
}
.pf-intro-list li { margin-bottom: .5em; line-height: 1.7; }

/* === フォームエリア === */
.pf-form-body {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 24px 20px;
  margin-top: 16px;
}

/* === プログレスバー === */
.pf-progress { margin-bottom: 24px; }
.pf-progress-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.pf-progress-step-name { font-size: 13px; font-weight: 700; color: #ec6d71; margin: 0; }
.pf-progress-label { font-size: 12px; color: #aaa; margin: 0; }
.pf-progress-bar {
  background: #f0d8d8;
  border-radius: 6px;
  height: 6px;
  overflow: hidden;
}
.pf-progress-fill {
  height: 100%;
  background: #ec6d71;
  border-radius: 6px;
  transition: width .3s ease;
}

/* === 設問カード === */
.pf-q {
  background: #fff;
  border: 1px solid #f0d8d8;
  border-radius: 10px;
  padding: 32px;
  margin-bottom: 2em;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.pf-q-label {
  display: block;
  font-size: 15px;
  line-height: 1.6;
  color: #484848;
  margin-bottom: 14px;
  font-weight: 600;
}
.pf-q-num { color: #ec6d71; font-weight: 800; margin-right: 4px; }
.pf-required {
  display: inline-block;
  font-size: 11px;
  font-weight: 400;
  background: #ec6d71;
  color: #fff;
  border-radius: 3px;
  padding: 1px 7px;
  margin-left: 8px;
  vertical-align: middle;
}

/* === 規約テキストボックス === */
.pf-kiyaku-text {
  background: #fafafa;
  border: 1px solid #f0d8d8;
  border-radius: 6px;
  padding: 16px;
  font-size: 13px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 16px;
  max-height: 200px;
  overflow-y: auto;
}
.pf-kiyaku-text p { margin: 0 0 .8em; }
.pf-kiyaku-text p:last-child { margin-bottom: 0; }

/* === テキスト入力 === */
.pf-survey-form input[type="text"],
.pf-survey-form input[type="email"],
.pf-survey-form input[type="tel"],
.pf-survey-form input[type="date"],
.pf-survey-form textarea {
  width: 100%;
  border: 2px solid #f0d8d8;
  border-radius: 7px;
  padding: 14px 16px;
  min-height: 50px;
  font-size: 16px;
  font-family: inherit;
  color: #484848;
  background: #fff;
  box-sizing: border-box;
  -webkit-appearance: none;
  transition: border-color .2s;
}
/* select: ネイティブ矢印を保持して選択値を見やすく */
.pf-survey-form select {
  width: 100%;
  border: 2px solid #f0d8d8;
  border-radius: 7px;
  padding: 14px 16px;
  min-height: 50px;
  font-size: 16px;
  font-family: inherit;
  color: #484848;
  background: #fff;
  box-sizing: border-box;
  appearance: auto;
  -webkit-appearance: auto;
  cursor: pointer;
  transition: border-color .2s;
}
.pf-survey-form input[type="text"]:focus,
.pf-survey-form input[type="email"]:focus,
.pf-survey-form input[type="date"]:focus,
.pf-survey-form textarea:focus,
.pf-survey-form select:focus {
  outline: none;
  border-color: #ec6d71;
  box-shadow: 0 0 0 3px rgba(236,109,113,.12);
}
.pf-survey-form textarea { min-height: 80px; max-height: 200px; resize: vertical; }

/* === ラジオ・チェックボックス（カード型） CF7デフォルト上書き === */
.pf-survey-form .wpcf7-radio,
.pf-survey-form .wpcf7-checkbox { display: block !important; }
.pf-survey-form .wpcf7-radio .wpcf7-list-item,
.pf-survey-form .wpcf7-checkbox .wpcf7-list-item {
  display: block !important;
  margin: 0 0 8px 0 !important;
  border: none !important;
  border-radius: 8px !important;
  overflow: hidden;
}
.pf-survey-form .wpcf7-radio .wpcf7-list-item:last-child,
.pf-survey-form .wpcf7-checkbox .wpcf7-list-item:last-child { margin-bottom: 0 !important; }
.pf-survey-form .wpcf7-radio .wpcf7-list-item label,
.pf-survey-form .wpcf7-checkbox .wpcf7-list-item label {
  display: flex !important;
  align-items: center !important;
  gap: 12px;
  padding: 12px 16px !important;
  cursor: pointer;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: #484848;
  background: #fff;
  transition: background .15s;
  box-sizing: border-box;
  height: auto !important;
  min-height: 48px;
  border: none !important;
  border-radius: 0 !important;
  -webkit-tap-highlight-color: transparent;
}
/* CF7 が .wpcf7-list-item-label span に付けるデフォルト余白を除去 */
.pf-survey-form .wpcf7-list-item-label {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.5;
  vertical-align: middle;
}
.pf-survey-form .wpcf7-radio .wpcf7-list-item.pf-selected label,
.pf-survey-form .wpcf7-checkbox .wpcf7-list-item.pf-selected label {
  background: #fff5f5;
  color: #ec6d71;
  font-weight: 600 !important;
}
.pf-survey-form .wpcf7-radio input[type="radio"],
.pf-survey-form .wpcf7-checkbox input[type="checkbox"] {
  width: 20px !important; height: 20px !important;
  flex-shrink: 0; flex-basis: 20px;
  accent-color: #ec6d71; margin: 0 !important;
  vertical-align: middle;
}

/* === スケール（Google Forms風・横並び）=== */
.pf-survey-form .pf-scale-wrap .wpcf7-radio { display: flex !important; justify-content: space-around; }
.pf-survey-form .pf-scale-wrap .wpcf7-radio .wpcf7-list-item {
  flex: 1;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible;
}
.pf-survey-form .pf-scale-wrap .wpcf7-radio .wpcf7-list-item label {
  flex-direction: column-reverse !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  min-width: unset !important;
  height: auto !important;
  min-height: 56px !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 8px 2px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #484848;
}
.pf-survey-form .pf-scale-wrap input[type="radio"] {
  position: static !important;
  opacity: 1 !important;
  width: 22px !important;
  height: 22px !important;
  pointer-events: auto !important;
  accent-color: #ec6d71 !important;
  flex-shrink: 0;
  margin: 0 !important;
}

/* === 送信ボタン === */
.pf-survey-form input[type="submit"],
.pf-survey-form .wpcf7-submit {
  display: block; width: 100%; height: 52px;
  background: #ec6d71; color: #fff; border: none;
  border-radius: 7px; box-shadow: 0 4px 0 #c46063;
  font-size: 17px; font-weight: 700; font-family: inherit;
  letter-spacing: .06em; cursor: pointer;
  -webkit-appearance: none;
  transition: transform .1s, box-shadow .1s; margin-top: 8px;
}
.pf-survey-form input[type="submit"]:hover,
.pf-survey-form .wpcf7-submit:hover { transform: translateY(2px); box-shadow: 0 2px 0 #c46063; }
.pf-survey-form input[type="submit"]:active,
.pf-survey-form .wpcf7-submit:active { transform: translateY(4px); box-shadow: none; }

/* === ナビゲーションボタン === */
.pf-nav { margin-top: 8px; display: flex; flex-direction: column; gap: 12px; }
.pf-btn-next {
  display: block; width: 100%; height: 52px;
  background: #ec6d71; color: #fff; border: none;
  border-radius: 7px; box-shadow: 0 4px 0 #c46063;
  font-size: 17px; font-weight: 700; font-family: inherit;
  letter-spacing: .06em; cursor: pointer;
  transition: transform .1s, box-shadow .1s;
}
.pf-btn-next:hover { transform: translateY(2px); box-shadow: 0 2px 0 #c46063; }
.pf-btn-next:active { transform: translateY(4px); box-shadow: none; }
.pf-btn-back {
  display: block; width: 100%; height: 44px;
  background: transparent; color: #ec6d71;
  border: 2px solid #ec6d71; border-radius: 7px;
  font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer;
}

/* === バリデーション === */
.pf-validation-msg {
  display: none;
  background: #fff5f5; border-left: 4px solid #ec6d71;
  color: #c46063; font-size: 14px;
  padding: 10px 14px; border-radius: 0 7px 7px 0; margin-bottom: 16px;
}
.pf-survey-form .pf-invalid { border-color: #d4a017 !important; }
.pf-invalid-group { border: 2px solid #d4a017 !important; border-radius: 7px; }

/* === CF7 システムメッセージ === */
.pf-survey-form .wpcf7-not-valid-tip {
  color: #c46063; font-size: 13px; margin-top: 6px; display: block;
}
.pf-survey-form .wpcf7-response-output {
  border: none; background: #fff5f5;
  border-left: 4px solid #ec6d71;
  padding: 12px 16px; font-size: 14px;
  border-radius: 0 7px 7px 0; margin-top: 12px;
}
