@charset "UTF-8";
/* ==========================================================================
   SAAGAS LP  お問い合わせフォーム（シャノン埋め込みフォーム）スタイル
   --------------------------------------------------------------------------
   使い方：css/style.css の「末尾」に貼り付けるか、別ファイルとして
           style.css より後ろで読み込んでください。
           （style.css 35行目付近の CSS リセット `all: unset` より
             後ろで読み込まれることが必須条件です）

   影響範囲：全ルールが `.smpForm`（シャノン埋め込みフォームのラッパー）
             配下にスコープされています。フォームの外側（FV・３STEP・
             フッター等）には一切影響しません。
             HTMLの変更も不要です（既存マークアップのまま動作します）。
   ========================================================================== */

.smpForm {
  /* --- カラーパレット（LPのトンマナに合わせています） --- */
  --sf-teal: #3dc4ca;          /* SAAGASのキーカラー */
  --sf-teal-dark: #2ba4aa;
  --sf-teal-pale: #f2fbfc;
  --sf-cta-from: #eb464d;      /* LP上部CTAと同じグラデーション */
  --sf-cta-to: #f5bc2b;
  --sf-text: #1b2a2e;
  --sf-sub: #62757b;
  --sf-line: #d5dfe2;
  --sf-req: #e8393f;

  max-width: 760px;
  margin-inline: auto;
  padding: 48px 56px 44px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(27, 42, 46, .08);
  color: var(--sf-text);
  font-size: 15px;
  line-height: 1.7;
  text-align: left;
}

/* ==========================================================================
   1. 行（1カラム縦積み）
   ========================================================================== */

.smpForm .ss_container,
.smpForm .ss_contents,
.smpForm .ss_visitor_form,
.smpForm .ss_enquete_form {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
}

.smpForm .ss_field,
.smpForm .ss_enquete_field {
  display: block;
  width: 100%;
  /* fieldset は既定で min-width:min-content のため、指定しないと
     size 属性の大きい入力欄がカードからはみ出します（重要） */
  min-width: 0;
  margin: 0 0 26px;
  padding: 0;
  background: none;   /* 既定のグレー／水色の縞模様を解除 */
  border: 0;
}

.smpForm .ss_enquete_form .ss_enquete_field:last-child {
  margin-bottom: 0;
}

/* 「その他」の自由記述欄は選択肢の下に少し字下げして配置 */
.smpForm .ss_enquete_form .ss_input:has(input[type="radio"]) > input[type="text"],
.smpForm .ss_enquete_form .ss_input:has(input[type="checkbox"]) > input[type="text"] {
  margin: 4px 0 0 26px;
  width: calc(100% - 26px);
}

/* ==========================================================================
   2. 項目名ラベル ＋ 「必須」バッジ
   ========================================================================== */

.smpForm .ss_form_title,
.smpForm .ss_enquete_title {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  background: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--sf-text);
}

/* 「※」を「必須」バッジに置き換え */
.smpForm .ss_user_notnull {
  font-size: 0;
  line-height: 0;
  color: transparent;
}

.smpForm .ss_user_notnull::after {
  content: "必須";
  display: inline-block;
  margin-left: 8px;
  vertical-align: 2px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--sf-req);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .04em;
  white-space: nowrap;
}

/* ==========================================================================
   3. 入力欄まわりのレイアウト
   ========================================================================== */

.smpForm .ss_grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  width: 100%;
}

/* 会社情報ブロック：姓／名 のように横並びにしたい行 */
.smpForm .ss_visitor_form .ss_input {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  flex: 1 1 240px;
  min-width: 0;
}

/* 設問ブロック（ラジオ）は縦積みのまま */
.smpForm .ss_enquete_form .ss_input {
  display: block;
  width: 100%;
  line-height: 2.4;
}

/* 補足テキスト */
.smpForm .ss_leftComment {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--sf-sub);
}

.smpForm .ss_rightComment {
  flex: 0 1 auto;
  font-size: 12px;
  color: var(--sf-sub);
  white-space: nowrap;
}

.smpForm .ss_upComment {
  flex: 0 0 100%;
  order: -1;             /* 入力欄より上に表示 */
  margin-bottom: 2px;
  font-size: 12px;
  color: var(--sf-sub);
}

.smpForm .ss_bottomComment {
  display: block;
  flex: 0 0 100%;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--sf-sub);
}

/* ==========================================================================
   4. テキスト入力
   ========================================================================== */

.smpForm input[type="text"],
.smpForm input[type="email"],
.smpForm input[type="tel"],
.smpForm input[type="number"],
.smpForm input[type="url"],
.smpForm input[type="password"],
.smpForm textarea,
.smpForm select {
  flex: 1 1 160px;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--sf-line);
  border-radius: 8px;
  background: #fff;
  color: var(--sf-text);
  font-family: inherit;
  font-size: 16px;   /* iOSでの自動ズームを防ぐため16px以上 */
  line-height: 1.5;
  box-shadow: none;
  transition: border-color .2s, box-shadow .2s;
}

/* 「姓／名」など横並び行では、右側の注記（全角 など）に合わせて入力欄が縮むように */
.smpForm .ss_visitor_form .ss_input > input[type="text"],
.smpForm .ss_visitor_form .ss_input > input[type="email"],
.smpForm .ss_visitor_form .ss_input > input[type="tel"] {
  width: auto;
  flex: 1 1 120px;
}

.smpForm textarea {
  min-height: 120px;
  line-height: 1.7;
  resize: vertical;
}

.smpForm select {
  appearance: auto;
  -webkit-appearance: auto;
  cursor: pointer;
}

.smpForm input[type="text"]:hover,
.smpForm input[type="email"]:hover,
.smpForm input[type="tel"]:hover,
.smpForm textarea:hover {
  border-color: #9fb4b9;
}

.smpForm input[type="text"]:focus,
.smpForm input[type="email"]:focus,
.smpForm input[type="tel"]:focus,
.smpForm input[type="number"]:focus,
.smpForm input[type="url"]:focus,
.smpForm textarea:focus,
.smpForm select:focus {
  outline: none;
  border-color: var(--sf-teal);
  box-shadow: 0 0 0 3px rgba(61, 196, 202, .2);
}

.smpForm ::placeholder {
  color: #9aabb0;
}

/* ==========================================================================
   5. チェックボックス／ラジオボタン
   ※ style.css のリセット `all: unset` で appearance が消え、
      2px の点になってしまう不具合の修正を兼ねています
   ========================================================================== */

.smpForm input[type="checkbox"],
.smpForm input[type="radio"] {
  appearance: auto;
  -webkit-appearance: auto;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0 8px 0 0;
  padding: 0;
  border: none;
  vertical-align: -4px;
  accent-color: var(--sf-teal);
  cursor: pointer;
}

/* ==========================================================================
   6. 「個人情報の取扱い」同意ブロックを目立たせる
   ========================================================================== */

.smpForm [id="ss_VisitorData.attribute1"] {
  padding: 18px 20px;
  margin-bottom: 30px;
  background: var(--sf-teal-pale);
  border: 1px solid #b9e5e8;
  border-radius: 10px;
}

.smpForm [id="ss_VisitorData.attribute1"] .ss_input {
  font-weight: 700;
}

/* ==========================================================================
   7. 送信ボタン
   ========================================================================== */

.smpForm .ss_btnArea {
  display: block;
  margin-top: 36px;
  padding: 0;
  text-align: center;
  background: none;
  border: 0;
}

.smpForm .ss_btnArea input[type="button"],
.smpForm .ss_btnArea input[type="submit"],
.smpForm .ss_btnArea button {
  display: inline-block;
  width: auto;
  min-width: 300px;
  max-width: 100%;
  height: auto;
  padding: 18px 56px;
  border: 0;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--sf-cta-from) 0%, var(--sf-cta-to) 100%);
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.4;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(235, 70, 77, .28);
  transition: transform .2s, box-shadow .2s, opacity .2s;
}

.smpForm .ss_btnArea input[type="button"]:hover,
.smpForm .ss_btnArea input[type="submit"]:hover,
.smpForm .ss_btnArea button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(235, 70, 77, .34);
  opacity: .96;
}

.smpForm .ss_btnArea input[type="button"]:active {
  transform: translateY(0);
}

/* ==========================================================================
   8. エラー表示（バリデーション時）
   ========================================================================== */

.smpForm [class*="error"],
.smpForm [class*="Error"] {
  color: var(--sf-req);
  font-size: 13px;
  line-height: 1.6;
}

/* ==========================================================================
   9. レスポンシブ
   ========================================================================== */

@media screen and (max-width: 767px) {
  .smpForm {
    padding: 28px 20px 26px;
    border-radius: 12px;
    font-size: 14px;
  }

  .smpForm .ss_field,
  .smpForm .ss_enquete_field {
    margin-bottom: 22px;
  }

  .smpForm .ss_grid {
    gap: 10px;
  }

  .smpForm .ss_visitor_form .ss_input {
    flex: 1 1 100%;
  }

  .smpForm .ss_enquete_form .ss_input {
    line-height: 2.2;
  }

  .smpForm .ss_rightComment {
    flex: 0 0 100%;   /* 注記は入力欄の下に回す */
    margin-top: 2px;
    white-space: normal;
  }

  .smpForm .ss_btnArea input[type="button"],
  .smpForm .ss_btnArea input[type="submit"],
  .smpForm .ss_btnArea button {
    min-width: 0;
    width: 100%;
    padding: 17px 24px;
    font-size: 16px;
  }
}

/* ==========================================================================
   10.【任意】管理用の「分岐項目」を画面から隠す場合はコメントを外してください
       ※本来はシャノン側のフォーム設定で非表示にするのが推奨です
   ========================================================================== */

.smpForm [id="ss_VisitorData.attribute1024"] {
  display: none;
}
