/* =========================================
   スマホ重視デザイン用
========================================= */
.cf7-modern {
  max-width: 720px;
  margin: 20px auto;
  padding: 24px 20px;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  font-size: 14px;
  line-height: 1.6;
}
.form_wrapper {
  padding-bottom: 60px;
}

/* マージン調整 */
.cf7-modern p {
  margin: 0 0 8px;
}

/* ==== dl / dt / dd レイアウト ==== */
.cf7-modern dl {
  margin: 0;
  padding: 0;
}

.cf7-modern dl > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}

.cf7-modern dt,
.cf7-modern dd {
  margin: 0;
  padding: 0;
}

/* スマホでは縦1カラム */
.cf7-modern dt {
  width: 100%;
}
.cf7-modern dd {
  width: 100%;
}

/* ラベル */
.cf7-modern dt label {
  display: inline-block;
  font-weight: 600;
  font-size: 13px;
}

/* 必須マークを少し目立たせる */
.cf7-modern dt .required::after {
  content: " ※";
  color: #e11d48;
  font-weight: 600;
}

/* テキスト系入力共通 */
.cf7-modern input[type="text"],
.cf7-modern input[type="email"],
.cf7-modern input[type="tel"],
.cf7-modern input[type="url"],
.cf7-modern input[type="number"],
.cf7-modern textarea,
.cf7-modern select {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d5d7de;
  background-color: #f9fafb;
  font-size: 14px;
  line-height: 1.4;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  outline: none;
}

/* フォーカス時 */
.cf7-modern input[type="text"]:focus,
.cf7-modern input[type="email"]:focus,
.cf7-modern input[type="tel"]:focus,
.cf7-modern input[type="url"]:focus,
.cf7-modern input[type="number"]:focus,
.cf7-modern textarea:focus,
.cf7-modern select:focus {
  border-color: #2563eb;
  background-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* textarea 高さ */
.cf7-modern textarea {
  min-height: 160px;
  resize: vertical;
}

/* プレースホルダ */
.cf7-modern ::placeholder {
  color: #9ca3af;
}

/* チェックボックス（プラポリ同意） */
.cf7-modern .wpcf7-acceptance {
  margin-top: 8px;
}
.cf7-modern .wpcf7-acceptance .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
}

/* エラー表示（バリデーション） */
.cf7-modern .wpcf7-not-valid-tip {
  margin-top: 4px;
  font-size: 12px;
  color: #e11d48;
}

.cf7-modern .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.cf7-modern .wpcf7-response-output.wpcf7-mail-sent-ok {
  border: 1px solid #22c55e;
  background: #ecfdf3;
  color: #166534;
}

.cf7-modern .wpcf7-response-output.wpcf7-validation-errors,
.cf7-modern .wpcf7-response-output.wpcf7-mail-sent-ng {
  border: 1px solid #f97316;
  background: #fff7ed;
  color: #9a3412;
}

/* スピナー */
.cf7-modern .wpcf7-spinner {
  margin-left: 8px;
}

@media (min-width: 768px) {
  .cf7-modern dl > div {
    align-items: flex-start;
  }
  .cf7-modern dt {
    width: 28%;
    padding-top: 6px;
  }
  .cf7-modern dd {
    width: 72%;
  }
}

/* スマホでの外側余白調整 */
@media (max-width: 599px) {
  .cf7-modern {
    padding: 20px 16px;
    border-radius: 0;
    box-shadow: none;
  }
}

/* 日付チェッカー調整 */
.cf7-modern dl > div.cf7-datetime div,
.cf7-modern dl > div.cf7-date-only div
{
    border: none;
}
.cf7-datetime dl,
.cf7-date-only dl
{
    width: 100%;
}
/* flatpickr調整 */
.flatpickr-calendar {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  font-size: 14px;
}

.flatpickr-day {
  border-radius: 8px;
  transition: 0.15s;
}

.flatpickr-day:hover {
  background: rgba(37, 99, 235, 0.15);
  border-color: transparent;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.flatpickr-day.today {
  border: 1px solid #2563eb;
  color: #2563eb;
  font-weight: 600;
}

.flatpickr-time input,
.flatpickr-time .numInputWrapper {
  font-size: 15px;
  font-weight: 600;
}

.flatpickr-time {
  border-top: 1px solid #e5e7eb;
  margin-top: 6px;
  padding-top: 6px;
}
.flatpickr-time {
  border-top: 1px solid #e5e7eb;
  margin-top: 8px;
  padding-top: 10px;
}

.flatpickr-time input {
  height: 46px;
  font-size: 18px;
  border-radius: 8px;
  border: 1px solid #d5d7de;
  background-color: #ffffff;
}

.flatpickr-time .flatpickr-time-separator {
  font-size: 18px;
  margin: 0 8px;
}

.flatpickr-time input:hover {
  border-color: #2563eb;
}

.flatpickr-time .numInputWrapper span {
  width: 24px;
  top: 4px;
}
.flatpickr-calendar.open {
  max-height: none !important;
  height: auto !important;
}
.flatpickr-calendar {
  overflow: visible !important;
}
.flatpickr-calendar.hasTime .flatpickr-time {
    height: auto;
    max-height: max-content;
}

/* 住所調整 */
.adress dd {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.adress dd p:first-child {
    width: 30%;
}

/* 生年月日調整 */
.birth-block0 {
    width: 100%;
    display: flex;
    white-space: nowrap;
}
.birth-block0 div {
    display: block;
    margin-right: 1em;
}
.birth-block0 div p {
    margin-right: 20px;
    width: unset;
}

/* 注意事項調整 */
.cf7-modern dl > div.out_inlineblock {
    display: block;
    background: #dee;
    padding: 1em;
}
div.out_inlineblock div {
    margin-left: 0;
    width: unset;
}
div.out_title p {
    font-size: 20px;
    font-weight: bold;
}
.out_txt p:nth-of-type(even) {
    margin-left: 1em;
    margin-bottom: 12px;
}
.out_txt {
    padding-left: 20px;
}
.bank_title {
    background-color: #ded;
    border-radius: 8px;
    text-align: center;
    margin-top: 40px;
}
div.bank_title p {
    text-align: center;
    margin: auto;
    font-weight: bold;
}







/************************************************************************** 送信ボタン調整 */
.js-cf7-confirm-open{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 1.4em;
  min-width: 180px;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.js-cf7-confirm-open:hover{ 
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.28);
  transform: translateY(-1px);
}

.cf7-btn{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 180px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.cf7-btn:hover{
  transform: translateY(-1px);
}
.cf7-btn--primary{
  border: none;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  padding: 14px 28px;
  width: 120%;
  max-width: 360px;
  margin: 1.4em 0 0;
}
.cf7-btn--primary:hover{
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.28);
}
.cf7-btn--ghost{
  background: #ffffff;
  color: #1d4ed8;
  border: 1px solid #c7d2fe;
  width: 200px;
  padding: 10px 20px;
  font-size: 14px;
}
.cf7-btn--ghost:hover{
  background: #eef2ff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.15);
}
.cf7-modal__actions{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 32px auto 0;
}
.cf7-modal__actions p {
    display: contents;
}
.cf7-modal__actions br {
    display: none;
}
.form_note_thanks h3 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 2em;
}
.form_note_thanks p {
    margin-bottom: 2em;
}


/************************************************************************** モーダル関係 */
.js-cf7-real-submit { display:none !important; }

.cf7-modal { display:none; }
.cf7-modal.is-open { display:block; position:fixed; inset:0; z-index:9999; }
.cf7-modal__backdrop { position:absolute; inset:0; background:rgba(0,0,0,.5); }
.cf7-modal__panel { position:relative; max-width:680px; margin:8vh auto; background:#fff; padding:20px; border-radius:6px; }
body.is-cf7-modal-open { overflow:hidden; }

.cf7-confirm-dl dt { font-weight:700; margin-top:12px; }
.cf7-confirm-dl dd { margin:6px 0 0; white-space:pre-wrap; }
.cf7-confirm-dl dt { margin-top:14px; font-weight:700; }

.cf7-modal__panel h3 {
    font-size: 1.6em;
    margin: auto;
    text-align: center;
}
.cf7-modal__panel{
  position: relative;
  max-width: 680px;
  margin: 8vh auto;
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  max-height: 84vh;
  max-height: 84dvh;
  display: flex;
  flex-direction: column;
}
.js-cf7-confirm-preview{
  overflow-y: auto;
  min-height: 0;
  padding-right: 4px;
}

.wpcf7-turnstile.cf-turnstile {
    margin-bottom: 30px;
    text-align: center;
}