@charset "UTF-8";

/* ============================================================
   Sales Doc スキン for SHANON SMP フォームページ
   ------------------------------------------------------------
   読み込み順： bootstrap.custom.min.css → salesdoc.css

   前提：dist/bundle.js が実行時に以下を付与します
     .input-label / .required（必須時の空span）
     .badge.badge-secondary（任意バッジ）
     input.form-control.form-control-sm ＋ 親に .input-group
     label.check-wrapper（チェックボックス）
     姓名を .row > .input-group.col-6 に分割
   このCSSはそのDOMを前提に組んでいます。

   配色は promote.sales-doc.com から実測
     #3D948C 背景グリーン / #44B2A9 CTA / #EF9816 アクセント
     #354341 本文・フッター
   ============================================================ */

:root {
  --sd-green: #3d948c;
  --sd-green-btn: #44b2a9;
  --sd-green-dark: #35837c;
  --sd-orange: #ef9816;
  --sd-text: #354341;
  --sd-muted: #6c7a78;
  --sd-border: #ccc;
  --sd-input-bg: #fbfbfb;
  --sd-req: #e5533d;
  --sd-font: -apple-system, BlinkMacSystemFont, "Yu Gothic", YuGothic,
    "Helvetica Neue", Verdana, Meiryo, sans-serif;
}

/* ---------- ベース ---------- */

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sd-font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--sd-text);
  background: var(--sd-green);
}

img {
  max-width: 100%;
  height: auto;
}

.sd-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.sd-inner--narrow {
  max-width: 720px;
}

.sd-orange {
  color: var(--sd-orange);
}

.sd-sp {
  display: none;
}

/* ---------- ヘッダー ---------- */

.sd-header {
  padding: 18px 0;
}

.sd-header__logo {
  display: inline-block;
}

/* 原寸 1486x281（比 5.288:1）。HTML 側にも width/height を指定して
   読み込み中のガタつきを防いでいます */
.sd-header__logo img {
  display: block;
  width: 200px;
  height: auto;
}

/* ---------- ページタイトル ---------- */

.sd-pageTitle {
  padding: 24px 20px 8px;
  text-align: center;
}

.sd-pageTitle h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}

/* ---------- 本文エリア ---------- */

.sd-main {
  padding: 24px 0 64px;
}

.sd-lead {
  text-align: center;
  color: #fff;
  margin-bottom: 28px;
}

.sd-lead h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
}

.sd-lead p {
  margin: 0;
  font-size: 15px;
}

.sd-card {
  box-sizing: border-box;
  background: #fff;
  border-radius: 6px;
  padding: 48px 56px 56px;
}

.sd-card--center {
  text-align: center;
  padding: 64px 40px;
}

/* ---------- 個人情報の取り扱い（スクロールボックス） ---------- */

.sd-privacy {
  max-height: 190px;
  overflow-y: auto;
  border: 1px solid #e2e8e7;
  border-radius: 4px;
  background: #fdfdfd;
  padding: 16px 18px;
  margin-bottom: 32px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--sd-muted);
}

.sd-privacy p {
  margin: 0 0 .8em;
}

/* ---------- 各項目（bundle.js が生成する .form-group） ---------- */

.form-group {
  margin-bottom: 22px;
}

.form-group + .form-group {
  padding-top: 22px;
  border-top: 1px solid #edefee;
}

.input-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--sd-text);
  margin-bottom: 8px;
}

/* 必須バッジ（notnull_tag.html の空 span を使う） */
.input-label .required {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: var(--sd-req);
  border-radius: 3px;
  padding: 4px 7px;
  margin-left: 8px;
  letter-spacing: .04em;
  vertical-align: 2px;
}

.input-label .required::after {
  content: "\5FC5\9808"; /* 必須 */
}

/* 任意バッジ（bundle.js が付ける badge badge-secondary） */
.input-label .badge.badge-secondary {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: var(--sd-muted);
  background: #eef1f0;
  border-radius: 3px;
  padding: 5px 7px;
  letter-spacing: .04em;
  vertical-align: 2px;
}

/* ---------- 入力欄 ---------- */

/* bootstrap の .input-group は flex なので、
   注釈（.ss_bottomComment）が横に並んでしまうのを縦積みに戻す */
.input-group {
  display: block;
}

.form-control,
.form-control-sm,
#regist-form input[type="text"],
#regist-form input[type="email"],
#regist-form input[type="tel"],
#regist-form select,
#regist-form textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: auto;
  font-family: inherit;
  font-size: 16px; /* iOS の自動ズーム防止 */
  line-height: 1.5;
  color: var(--sd-text);
  background-color: var(--sd-input-bg);
  border: 1px solid var(--sd-border);
  border-radius: 4px;
  padding: 11px 12px;
  transition: border-color .15s, box-shadow .15s;
}

.form-control:focus,
#regist-form input:focus,
#regist-form select:focus,
#regist-form textarea:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--sd-green-btn);
  box-shadow: 0 0 0 3px rgba(68, 178, 169, .18);
}

#regist-form input::placeholder,
#regist-form textarea::placeholder {
  color: #a9b3b1;
}

#regist-form select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23354341' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

#regist-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* 姓・名の2カラム */
.form-group .row {
  margin-left: -8px;
  margin-right: -8px;
}

.form-group .row > .col-6 {
  padding-left: 8px;
  padding-right: 8px;
}

/* placeholder に同じ文字が入るため、右側の「姓」「名」ラベルは隠す */
.ss_rightComment {
  display: none;
}

.ss_bottomComment {
  font-size: 13px;
  line-height: 1.7;
  color: var(--sd-muted);
  margin-top: 6px;
}

/* ---------- チェックボックス ---------- */

.check-wrapper {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 15px;
  line-height: 1.7;
  cursor: pointer;
}

/* bootstrap の .form-check-input は position:absolute + 負の margin-left
   のため、そのままだとチェックボックスがラベル文字に重なります。
   position を戻すのが必須 */
.check-wrapper .form-check-input,
#regist-form input[type="checkbox"],
#regist-form input[type="radio"] {
  position: static;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  flex: none;
  accent-color: var(--sd-green-btn);
}

#regist-form a {
  color: var(--sd-green-btn);
  text-decoration: underline;
}

#regist-form a:hover {
  color: var(--sd-green-dark);
}

/* ---------- 送信ボタン ---------- */

.sd-btnArea {
  margin-top: 36px;
  text-align: center;
}

.sd-submit {
  -webkit-appearance: none;
  appearance: none;
  display: inline-block;
  box-sizing: border-box;
  width: 390px;
  max-width: 100%;
  min-height: 54px;
  padding: 14px 24px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: var(--sd-green-btn);
  border: 2px solid var(--sd-green-btn);
  border-radius: 27px;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}

.sd-submit:hover,
.sd-submit:focus {
  background: var(--sd-green-dark);
  border-color: var(--sd-green-dark);
  color: #fff;
  text-decoration: none;
}

.sd-submit:disabled {
  opacity: .6;
  cursor: default;
}

.sd-submit--ghost {
  background: #fff;
  color: var(--sd-green-btn);
}

.sd-submit--ghost:hover {
  background: #f2faf9;
  color: var(--sd-green-dark);
}

/* 送信時に bundle.js が差し込むスピナー */
.material-icons.spin {
  animation: sd-spin 1s linear infinite;
  font-size: 18px;
  vertical-align: -4px;
}

@keyframes sd-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- 完了ページ ---------- */

.sd-thanksTitle {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--sd-green);
}

.sd-thanksText {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--sd-text);
}

/* ---------- フッター ---------- */

.sd-footer {
  background: var(--sd-text);
  color: #fff;
  padding: 40px 0 32px;
}

.sd-footNav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.sd-footNav a {
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}

.sd-footNav a:hover {
  text-decoration: underline;
}

.sd-copy {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
}

/* ---------- スマホ ---------- */

@media screen and (max-width: 767px) {
  .sd-sp {
    display: block;
  }

  .sd-header {
    padding: 14px 0;
  }

  .sd-header__logo img {
    width: 150px;
    height: auto;
  }

  .sd-pageTitle h1 {
    font-size: 22px;
  }

  .sd-lead h2 {
    font-size: 18px;
  }

  .sd-main {
    padding: 16px 0 40px;
  }

  .sd-card {
    padding: 28px 20px 32px;
    border-radius: 4px;
  }

  .sd-card--center {
    padding: 40px 20px;
  }

  .sd-submit {
    width: 100%;
  }

  .form-group .row > .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}
