/* ==========================================================
   Ashita no Class – CF7 FORM DESIGN COMPLETE VERSION
   見出し＋フォーム全体＋Chromeズレ対策＋ボタン大型化
   すべて統合した最終版
========================================================== */


/* ----------------------------------------------------------
   FORM WRAPPER
---------------------------------------------------------- */
.cf7-form-ashita {
  max-width: 720px;
  margin: 40px auto;
  padding: 32px 28px;
  background: #ffffff;
  border-radius: 16px;
  box-sizing: border-box;
  font-family: "Noto Sans JP", sans-serif;
}


/* ----------------------------------------------------------
   見出しデザイン（完全版）
---------------------------------------------------------- */
.cf7-form-ashita .cf7-form__intro {
  text-align: center;
  margin-bottom: 32px;
}

.cf7-form-ashita .cf7-form__eyebrow {
  margin: 0 0 10px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #f26b3f;
}

.cf7-form-ashita .cf7-form__title {
  margin: 0;
  line-height: 1.5;
  font-size: 1.6rem;
  font-weight: 700;
  color: #333;
}

/* 改行位置を固定しズレ防止 */
.cf7-form-ashita .cf7-form__title-main {
  display: block;
}

.cf7-form-ashita .cf7-form__title-sub {
  display: block;
  font-size: 1rem;
  margin-top: 4px;
}

.cf7-form-ashita .cf7-form__note {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #666;
}


/* ----------------------------------------------------------
   FIELD
---------------------------------------------------------- */
.cf7-form-ashita .cf7-field {
  margin-bottom: 28px;
}

/* ----------------------------------------------------------
   LABEL + 必須（Chromeズレ対策最強版）
---------------------------------------------------------- */
.cf7-form-ashita .cf7-field__label {
  display: inline-flex !important;
  align-items: baseline !important;    /* ← Chromeでのズレ防止 */
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  line-height: 1.2 !important;
  margin-bottom: 12px !important;
}

.cf7-form-ashita .cf7-field__required {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.15em 0.8em;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #f26b3f, #f4a13c);
  border-radius: 999px;
  line-height: 1 !important;
  margin: 0 !important;
  position: static !important;
}


/* ----------------------------------------------------------
   INPUTS
---------------------------------------------------------- */
.cf7-form-ashita input[type="text"],
.cf7-form-ashita input[type="email"],
.cf7-form-ashita input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fafafa;
  font-size: 1rem;
  transition: .2s;
  box-sizing: border-box;
}

.cf7-form-ashita input[type="text"]:focus,
.cf7-form-ashita input[type="email"]:focus,
.cf7-form-ashita input[type="tel"]:focus {
  outline: none;
  border-color: #f26b3f;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(242,107,63,0.18);
}


/* ----------------------------------------------------------
   TEXTAREA
---------------------------------------------------------- */
.cf7-form-ashita textarea {
  width: 100%;
  min-height: 160px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fafafa;
  font-size: 1rem;
  resize: vertical;
  transition: .2s;
  box-sizing: border-box;
}

.cf7-form-ashita textarea:focus {
  outline: none;
  border-color: #f26b3f;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(242,107,63,0.18);
}


/* ----------------------------------------------------------
   CHECKBOX グループ
---------------------------------------------------------- */
.cf7-form-ashita .cf7-class-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.cf7-form-ashita .cf7-class-choice label {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px 8px 36px;
  font-size: 0.9rem;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  transition: .2s;
}

.cf7-form-ashita .cf7-class-choice input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}

.cf7-form-ashita .cf7-class-choice label::before {
  content: "";
  position: absolute;
  left: 12px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid #bbb;
  background: #fff;
}

.cf7-form-ashita .cf7-class-choice input[type="checkbox"]:checked + label {
  border-color: #f26b3f;
  background: #fff0e6;
  box-shadow: 0 4px 10px rgba(242,107,63,0.15);
}

.cf7-form-ashita .cf7-class-choice input[type="checkbox"]:checked + label::before {
  border-color: #f26b3f;
  background: radial-gradient(circle, #f26b3f 45%, #fff 46%);
}


/* ----------------------------------------------------------
   SUBMIT BUTTON（大型中央・美しい影）
---------------------------------------------------------- */
.cf7-form-ashita .cf7-field--submit {
  text-align: center !important;
  margin-top: 40px;
}

.cf7-form-ashita input[type="submit"],
.cf7-form-ashita .cf7-submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 260px;
  padding: 18px 0;
  margin: 0 auto !important;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #f26b3f, #f4a13c);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: .15s;
}

/* ホバー時にグレイスケール化 */
.cf7-form-ashita input[type="submit"]:hover {
  filter: grayscale(100%);
  opacity: 0.9; /* ほんの少しトーンダウン（不要なら消してください） */
}

/* ----------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------- */
@media (max-width: 600px) {

  .cf7-form-ashita {
    padding: 24px 18px;
  }

  .cf7-form-ashita input[type="submit"] {
    width: 100%;
    max-width: 280px;
  }

  .cf7-form-ashita .cf7-class-choice {
    flex-direction: column;
  }

  .cf7-form-ashita .cf7-class-choice label {
    width: 100%;
  }
}
/* ▼ Chrome の「必須」バッジ縦ズレを強制的にそろえるパッチ ▼ */
.cf7-form-ashita .cf7-field__label {
  display: inline-block !important;       /* 行ボックスをはっきりさせる */
  line-height: 1.4 !important;
}

.cf7-form-ashita .cf7-field__required {
  display: inline-block !important;
  vertical-align: middle !important;      /* テキストの中央にそろえる */
  position: static !important;            /* これまでの top 調整を無効化 */
  margin-left: 0.4em;                     /* お好みで間隔 */
}
