@charset "utf-8";

/* ==========================================================================
   掲載情報の登録(page-contact.php / パートナー提携 企業・店舗 情報アップロードページ) 2026リニューアル
   お問い合わせ(contact.css)・会員お申し込み(entry.css)と共通の見た目。ここには固有の部分だけを書く
   (ご用意いただくもの・セクションの説明・URL欄・カテゴリの選択肢・画像の選択欄・特典・サービスの入力枠・規約本文)
   ========================================================================== */

/* ご用意いただくもの(フォームの前に表示。確認・完了画面では非表示) */
.pf_prepare {
  margin: -8px 0 40px;
  padding: 20px 24px 22px;
  border-radius: 14px;
  background: var(--c-cream);
}
.ct_card:has(.mw_wp_form_confirm) .pf_prepare,
.ct_card:has(.mw_wp_form_complete) .pf_prepare { display: none; }
.pf_prepare_title {
  margin-bottom: 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
}
.pf_prepare_list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.pf_prepare_list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  font-size: 12.5px;
  line-height: 1.6;
  color: #666;
}
.pf_prepare_list strong {
  display: block;
  font-size: 14px;
  color: var(--c-text);
}
.pf_prepare_icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
}
.pf_prepare_icon svg { width: 22px; height: 22px; }
.pf_prepare_icon.is-pink   { background: var(--c-pink); }
.pf_prepare_icon.is-orange { background: var(--c-orange); }
.pf_prepare_icon.is-green  { background: var(--c-green); }

/* 登録と修正・追加の相互案内(ご用意いただくもの / こんなときにご利用ください の下) */
.pf_prepare_note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #e6dcc4;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}
.pf_prepare_note a {
  color: var(--c-pink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pf_prepare_note a:hover { text-decoration: none; }

/* セクションの説明 */
.pf_sec_lead {
  margin: -8px 0 24px;
  font-size: 13.5px;
  line-height: 1.8;
  color: #666;
}
.pf_coupons + .ct_privacy { margin-top: 32px; }

/* URL欄(contact.css の text/email と同じ見た目) */
.ct_input input[type="url"] {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid #dde4ee;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--c-text);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.ct_input input[type="url"]::placeholder { color: #a8b0bb; }
.ct_input input[type="url"]:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(0,168,233,.15);
}
.ct_input:has(.error) input[type="url"] { border-color: #f08aa2; background: #fff8fa; }

/* ジャンル・カテゴリの選択肢(ラジオボタンの見た目は entry.css の .en_choice) */
.pf_choice label { min-width: 130px; }
.pf_choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pf_choice-grid label { gap: 10px; min-width: 0; height: 100%; padding: 10px 14px; font-size: 14px; white-space: nowrap; }
.pf_choice .error { grid-column: 1 / -1; }
.mw_wp_form_confirm .pf_choice { display: block; }

/* 画像の選択欄: 左にプレビュー(partner.js)、右にファイル選択 */
.pf_file {
  display: flex;
  align-items: center;
  gap: 18px;
}
.pf_file_preview {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  aspect-ratio: 565 / 414;
  overflow: hidden;
  border: 1.5px dashed #cfd7e2;
  border-radius: 8px;
  background: #f7f9fb;
}
.pf_coupon .pf_file_preview { width: 110px; aspect-ratio: 1; }
.pf_file_preview img { width: 100%; height: 100%; object-fit: cover; }
.pf_file_preview.is-selected { border-style: solid; border-color: #dde4ee; background: #fff; }
.pf_file_empty {
  padding: 0 8px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: #a8b0bb;
}
.pf_file_preview.is-saved .pf_file_empty { color: var(--c-green); font-weight: 700; }
.pf_file_body { flex: 1; min-width: 0; }
.pf_file_body .en_note { margin-top: 6px; }

.pf_file input[type="file"] {
  width: calc(100% - 34px); /* 右に × の分をあける */
  max-width: 100%;
  font-family: inherit;
  font-size: 13px;
  color: #666;
  cursor: pointer;
}
.pf_file input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 18px;
  border: 1.5px solid var(--c-blue);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-blue);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.pf_file input[type="file"]:hover::file-selector-button { background: var(--c-blue); color: #fff; }
.pf_file input[type="file"]:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; }

/* 選択の取り消し(MW WP Form が出力する ×。選択済みのときだけ表示される) */
.pf_file .mwform-file-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: 6px;
  border-radius: 50%;
  background: #e9edf2;
  font-size: 16px;
  line-height: 1;
  color: #666;
  vertical-align: middle;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.pf_file .mwform-file-delete:hover { background: #f08aa2; color: #fff; }

/* 確認画面から戻ったとき・確認画面: アップロード済みのファイル名 */
.pf_file .mw-wp-form_image {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  background: #eef8ee;
  font-size: 13px;
  word-break: break-all;
}
.pf_file .mw-wp-form_image::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.mw_wp_form_confirm .pf_file { display: block; }
.mw_wp_form_confirm .pf_file .mw-wp-form_image { margin-top: 0; }

/* 特典・サービスの入力枠(②以降は partner.js で「追加する」ボタンから表示) */
.pf_coupon {
  padding: 22px 26px 26px;
  border: 1.5px solid #f3ede0;
  border-radius: 14px;
  background: #fffdf8;
}
.pf_coupon[hidden] { display: none; }
.pf_coupon + .pf_coupon { margin-top: 16px; }
.pf_coupon_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.pf_coupon_title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--c-orange);
  letter-spacing: .06em;
}
.pf_coupon_title::before {
  content: "";
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.5 8.5h7.5v4H3.5a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1zM13 8.5h7.5a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H13zM4 14h7v7.5H5.5A1.5 1.5 0 0 1 4 20zM13 14h7v6a1.5 1.5 0 0 1-1.5 1.5H13z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.5 8.5h7.5v4H3.5a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1zM13 8.5h7.5a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H13zM4 14h7v7.5H5.5A1.5 1.5 0 0 1 4 20zM13 14h7v6a1.5 1.5 0 0 1-1.5 1.5H13z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pf_coupon .ct_fields { gap: 22px; }
.pf_coupon .ct_label { flex-basis: 176px; }
.mw_wp_form_confirm .pf_coupon { padding: 18px 22px 8px; }
/* 削除ボタン(②以降。2件以上表示しているときだけ) */
.pf_coupon_del {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px 0 10px;
  border: 1.5px solid #e3e8ee;
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: #777;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}
.pf_coupon_del[hidden] { display: none; }
.pf_coupon_del::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2.5h6a1 1 0 0 1 1 1V5h4.5a1 1 0 1 1 0 2h-1.1l-1 12.6A2.5 2.5 0 0 1 15.9 22H8.1a2.5 2.5 0 0 1-2.5-2.4L4.6 7H3.5a1 1 0 0 1 0-2H8V3.5a1 1 0 0 1 1-1zM10 5h4v-.5h-4zM9.5 10v8h1.8v-8zm3.2 0v8h1.8v-8z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2.5h6a1 1 0 0 1 1 1V5h4.5a1 1 0 1 1 0 2h-1.1l-1 12.6A2.5 2.5 0 0 1 15.9 22H8.1a2.5 2.5 0 0 1-2.5-2.4L4.6 7H3.5a1 1 0 0 1 0-2H8V3.5a1 1 0 0 1 1-1zM10 5h4v-.5h-4zM9.5 10v8h1.8v-8zm3.2 0v8h1.8v-8z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pf_coupon_del:hover { border-color: #f08aa2; background: #fff5f8; color: #e0304f; }
.pf_coupon_del:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; }
.mw_wp_form_confirm .pf_coupon_head { margin-bottom: 8px; }
.mw_wp_form_confirm .pf_coupon .ct_fields { gap: 0; }
.mw_wp_form_confirm .pf_coupon .ct_row:last-child { border-bottom: 0; }

.pf_add { margin-top: 18px; text-align: center; }
.pf_add_btn { width: 300px; gap: 10px; }
.pf_add_btn[hidden] { display: none; }
.pf_add_btn::before {
  content: "+";
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

/* 利用規約本文(開閉パネルの見た目は contact.css の .ct_policy) */
.ct_policy h5 { margin: 10px 0 2px; font-size: 12.5px; font-weight: 700; }
.ct_policy .pf_terms_date { margin-top: 14px; text-align: right; }


/* ==========================================================================
   レスポンシブ(タブレット)
   ========================================================================== */
@media all and (max-width: 768px) {
  .pf_prepare { padding: 18px 16px; }
  .pf_prepare_list { grid-template-columns: 1fr; gap: 8px; }
  .pf_choice-grid { width: 100%; }
  .pf_coupon { padding: 20px 20px 24px; }
  .pf_coupon .ct_label { flex-basis: auto; } /* 縦並びでは flex-basis が高さになるため解除 */
  .mw_wp_form_confirm .pf_coupon { padding: 16px 18px 6px; }
}


/* ==========================================================================
   レスポンシブ(スマホ)
   ========================================================================== */
@media all and (max-width: 520px) {
  .pf_prepare { margin: -4px 0 32px; }
  .pf_prepare_note { font-size: 12.5px; text-align: left; }
  .pf_sec_lead { font-size: 12.5px; }
  .ct_input input[type="url"] { height: 48px; font-size: 16px; } /* iOS のズーム防止で16px */
  .pf_choice label { min-width: 0; }
  .pf_choice { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; } /* entry.css の縦1列ではなく2列 */
  .pf_choice .mwform-radio-field { flex: none; }
  .pf_choice-grid label { gap: 8px; padding: 9px 10px; font-size: 13px; white-space: normal; }
  .pf_file { align-items: flex-start; gap: 12px; }
  .pf_file_preview { width: 110px; }
  .pf_coupon .pf_file_preview { width: 80px; }
  .pf_file input[type="file"]::file-selector-button { display: block; margin: 0 0 6px; }
  .pf_coupon { padding: 16px 12px 20px; }
  .pf_add_btn { width: 100%; }
}
