/* ============================================================
   soukyu.com「お見積りご依頼フォーム」試作 v1
   現行ページ（soukyu.com/order/）の文言をベースに、
   フォームより前に安心材料・送信後の流れを追加して
   入力前の不安を先に解消する構成にした。
   フォーム本体はMySpeedで生成したHTMLを.form-placeholder内に
   後から差し込む前提。
   ============================================================ */

body {
  font-family: 'Noto Serif JP', serif;
  background: var(--bg);
  color: var(--sumi);
  overflow-x: hidden;
}
/* ---------- 製図グリッド（v5共通） ---------- */

.soukyu-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px clamp(24px, 5vw, 72px) 90px;
}
/* ---------- ヘッダー（共通） ---------- */

/* ---------- フッター（共通） ---------- */

.footer-sub a:hover { color: #fff; }

.sec-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--shu);
  margin-bottom: 14px;
}
.sec-label::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--shu);
  margin-right: 10px;
  vertical-align: middle;
}
h1 {
  font-size: clamp(34px, 4.4vw, 48px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin-bottom: 22px;
}
.nowrap { white-space: nowrap; }
.page-lead {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(16px, 1.35vw, 17.5px);
  line-height: 2.1;
  color: var(--ink-body);
  margin-bottom: 28px;
}

/* ---- 安心チップ ---- */
.trust {
  list-style: none;
  margin-bottom: 48px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(16px, 1.35vw, 17.5px);
}
.trust li {
  position: relative;
  padding-left: 18px;
  line-height: 2;
  color: var(--ink-body);
}
.trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1em;
  width: 10px;
  height: 2px;
  background: var(--shu);
  transform: translateY(-1px);
}
.trust li strong { color: var(--sumi); white-space: nowrap; }

/* ---- LINE代替導線（フォームに入る前） ---- */
.order-line-alt {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(16px, 1.35vw, 17.5px);
  color: var(--ink-body);
  background: var(--cream);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 40px;
  text-align: center;
}
.btn-line-inline {
  color: var(--line-green);
  font-weight: 700;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.btn-line-inline:hover { color: var(--shu); }

/* ---- フォームプレースホルダー ---- */
.form-placeholder {
  border: 1px dashed #d9d2c0;
  border-radius: 14px;
  background: var(--cream);
  padding: 36px clamp(22px, 4vw, 40px);
  margin-bottom: 56px;
  text-align: center;
}
.form-placeholder-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--shu);
  margin-bottom: 10px;
}
.form-placeholder-note {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(16px, 1.35vw, 17px);
  color: #8a8378;
  margin-bottom: 18px;
}
.form-fields-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
}
.form-fields-list li {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  color: var(--ink-body);
  background: #fff;
  border: 1px solid #e7e2d6;
  border-radius: 999px;
  padding: 6px 16px;
}

/* ---- 送信後の流れ ---- */
.policy-entry { margin-bottom: 56px; }
.policy-entry h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0;
}
.policy-entry h2::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: var(--shu);
  margin-top: 12px;
  margin-bottom: 26px;
}
.order-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.order-flow-step {
  background: #fff;
  border: 1px solid #e7e2d6;
  border-radius: 14px;
  padding: 26px 20px;
  box-shadow: 0 12px 30px rgba(31, 31, 31, 0.08);
}
.order-flow-num {
  width: 36px;
  height: 36px;
  border: 2px solid var(--shu);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  color: var(--shu);
  margin-bottom: 14px;
}
.order-flow-step p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(14.5px, 1.15vw, 15.5px);
  line-height: 1.9;
  color: var(--ink-body);
}
.order-flow-step p strong {
  font-size: clamp(16px, 1.35vw, 17.5px);
  color: var(--sumi);
}

/* ---- 注意書き ---- */
.note {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(15.5px, 1.3vw, 16.5px);
  line-height: 2;
  color: #8a8378;
  background: var(--cream);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 24px;
}
.note p { margin-bottom: 8px; }
.note p:last-child { margin-bottom: 0; }

/* ---- 見積もりフォーム（マイスピー埋め込み） ----
   フォーム自体（<form>〜</form>）のHTMLとinput名・valueは一切変更しない。
   レイアウトの骨組み（項目左35%・入力右65%の表組み、800px以下で縦積みになる
   スマホ対応）はマイスピー公式CSS（order.php本文内で読み込む<link>3行）に任せ、
   ここでは配色・余白・タイポグラフィだけを上書きしてサイトのトーンに合わせる。

   ⚠️ 公式CSSはこのファイルより後に読み込まれるため、同じ詳細度では公式が勝つ。
   上書きするセレクタは「公式と同じ書き方の先頭に .order-form-embed を足す」形に
   統一して詳細度を1段上げている（!importantは使わない）。 */
.order-form-embed {
  margin-bottom: 40px;
  font-family: 'Noto Sans JP', sans-serif;
}

/* 項目の行：薄い横罫で9項目を目で追いやすくする */
.order-form-embed .content_form .input_unit {
  border-bottom: 1px solid var(--hairline);
}
.order-form-embed .content_form .input_unit:last-of-type {
  border-bottom: none;
}

/* 左のラベル列：右寄せにして入力欄へ寄せ、間延びを解消する。
   縦位置はtopにして、ラベルが入力欄の1行目と揃うようにする
   （middleのままだとtextareaの行でラベルだけ中央に浮いて見える）。 */
/* ⚠️この2カラム指定は801px以上だけに限定する。
   マイスピー公式CSSは800px以下でラベルと入力欄を縦積みに切り替えるが、
   こちらの指定のほうが詳細度が高いため、条件を付けないとスマホでも
   「ラベル30%・右寄せ」が残り、文字が折り返して入力欄も幅いっぱいにならない。 */
/* スマホ（800px以下）：入力欄を確実に画面幅いっぱいにする。
   公式CSSは右列を calc(100% - 20px) にしているが、列と入力欄それぞれに
   padding が乗るため、実際には8割程度の幅で止まってしまう。
   box-sizing を border-box にして padding込みで100%に収める。 */
@media (max-width: 800px) {
  /* 行そのものにも公式が calc(100% - 20px) を掛けている。
     行・列・入力欄の3段階でそれぞれ20px前後削られ、合計60px以上狭くなるため、
     3つとも100%に戻す。 */
  .order-form-embed .content_form .input_unit {
    width: 100%;
    box-sizing: border-box;
  }
  /* ⚠️セレクタは必ず .my_left.my_column / .my_right.my_column まで書くこと。
     公式は「.content_form .input_unit .my_right.my_column」＝クラス4個で
     幅を指定している。こちらが「.my_column」までしか書かないと同じ4個になり、
     後から読まれる公式が勝って width が効かない。5個にして確実に上書きする。

     ラベルと入力欄の間隔も詰める。公式はラベル下20px＋入力欄上15px＝35px空き、
     項目名がどの入力欄のものか一瞬迷う。6pxにしてまとまりを作り、
     代わりに項目どうしの間（行の下）を広めに取って区切りを見せる。 */
  .order-form-embed .content_form .input_unit .my_left.my_column {
    width: 100%;
    padding: 18px 0 0;
    box-sizing: border-box;
  }
  .order-form-embed .content_form .input_unit .my_right.my_column {
    width: 100%;
    padding: 6px 0 18px;
    box-sizing: border-box;
  }
  .order-form-embed .content_form .textarea_frame,
  .order-form-embed .content_form .select_frame {
    width: 100%;
  }
  .order-form-embed form.myForm input[type="text"],
  .order-form-embed form.myForm textarea,
  .order-form-embed form.myForm select {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (min-width: 801px) {
  .order-form-embed .content_form .input_unit .my_left.my_column {
    width: 30%;
    text-align: right;
    vertical-align: top;
    padding-top: 22px;
    padding-bottom: 22px;
  }
  .order-form-embed .content_form .input_unit .my_right.my_column {
    width: 70%;
    vertical-align: top;
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

/* ラベル */
.order-form-embed .content_form label {
  font-size: 14.5px;
  letter-spacing: 0.03em;
  color: var(--sumi);
}

/* ラベル下の補足注記（例：お名前欄の法人向け注記） */
.order-form-embed .field-hint {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: #8a8378;
  margin-top: 4px;
}

/* 必須バッジ：公式の #e32 はサイトの朱色より派手なので置き換える */
.order-form-embed form.myForm .required .my_column.my_left label:first-child:after {
  background-color: var(--shu);
  border-radius: 999px;
  font-size: 12px;
  transform: translateY(-2px);
}

/* 必須のハイライト：公式は必須項目に .required_color（background #fdd !important）を付ける。
   テキスト欄・テキストエリアは入力枠そのものに色が乗るので角丸になるが、ラジオボタンは
   入力枠が無いためセル（.my_right）全体に色が乗り、四角い帯になって幅も入力欄と揃わない。
   セル側の色をいったん消し、内側の .plan-options へ移して入力欄と同じ幅・角丸にする。
   .plan-options は order.php でラジオ4つを包んでいる箱。 */
.order-form-embed form.myForm .my_column.required_color {
  background-color: transparent !important;
}
.order-form-embed form.myForm .plan-options {
  background-color: #fdd;
  border-radius: 10px;
  padding: 10px 12px;
  /* 公式の入力欄はセルの内側からさらに右へ23px余らせている。同じだけ空けて幅を揃える */
  margin-right: 23px;
}
@media (max-width: 800px) {
  /* スマホでは入力欄がセル幅いっぱいになるので、右の余白も無くす */
  .order-form-embed form.myForm .plan-options {
    margin-right: 0;
  }
}

/* ラジオボタン（プラン欄）：公式CSSは丸とラベルを別のブロックで出すため、
   何も指定しないと丸が1行目・文字が2行目に分かれてしまう。横並びに戻す。 */
.order-form-embed form.myForm .radiobutton_frame {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
.order-form-embed form.myForm .radiobutton_frame:last-child {
  margin-bottom: 0;
}
.order-form-embed form.myForm .radiobutton_input {
  flex: 0 0 auto;
  /* 公式が丸と文字の箱それぞれに padding-bottom:10px を入れていて、
     1項目が38pxまで伸びて行間が広く見える。ここで消して、間隔は
     .radiobutton_frame の margin-bottom だけで管理する。 */
  padding: 3px 0 0;
}
.order-form-embed form.myForm .radiobutton_label {
  flex: 1 1 auto;
  padding-bottom: 0;
}
.order-form-embed form.myForm .form_input_radio_label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--sumi);
  cursor: pointer;
}

/* 入力欄：枠線を生成り系のトーンへ。角丸・内側の余白は公式の値を活かす */
.order-form-embed form.myForm input[type="text"],
.order-form-embed form.myForm textarea,
.order-form-embed form.myForm select {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  color: var(--sumi);
  background: var(--bg);
  border: 1px solid #ddd8cd;
  transition: border-color 0.2s, box-shadow 0.2s;
}
/* セレクトだけ公式が margin-left:10px を付けていて左端が揃わないので打ち消す */
.order-form-embed form.myForm select {
  margin-left: 0;
  max-width: 100%;
}
.order-form-embed form.myForm textarea {
  resize: vertical;
}

/* フォーカス：公式は入力欄が青(#217fc4)・セレクトが濃紺(#000099)でサイトに無い色。
   朱色に統一する。公式は線幅の変化を padding で相殺しているため、こちらは
   線幅を変えず box-shadow でリングを出して文字位置が動かないようにする。 */
.order-form-embed form.myForm input[type="text"]:focus,
.order-form-embed form.myForm textarea:focus,
.order-form-embed form.myForm select:focus {
  outline: none;
  border: 1px solid var(--shu);
  box-shadow: 0 0 0 3px rgba(207, 58, 43, 0.12);
  padding: 10px;
}

/* 確認画面が出ない旨の注意書き */
.order-form-embed .form-att-mark {
  text-align: center;
  margin: 28px 0;
}

/* 送信ボタン */
.order-form-embed .submit.form_input_submit {
  margin-top: 8px;
  text-align: center;
}
.order-form-embed input[type="submit"] {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  background: #fff;
  color: var(--sumi);
  border: 2px solid var(--sumi);
  padding: 14px 48px;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.order-form-embed input[type="submit"]:hover {
  background: var(--sumi);
  color: #fff;
  transform: translateY(-2px);
}

/* ---- 送信完了ページ ---- */
.thanks-note-list {
  list-style: none;
  margin: 12px 0;
}
.thanks-note-list li {
  position: relative;
  padding-left: 18px;
  line-height: 1.9;
  margin-bottom: 14px;
}
.thanks-note-list li:last-child {
  margin-bottom: 0;
}
.thanks-note-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9em;
  width: 10px;
  height: 2px;
  background: var(--shu);
}
.thanks-note-list a { color: var(--shu); text-decoration: underline dotted; text-underline-offset: 3px; }
.thanks-note-list a:hover { color: var(--sumi); }
.thanks-signature {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  color: var(--sumi);
  text-align: right;
  margin-top: 32px;
}

/* ---- プライバシー ---- */
.privacy-note {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(15.5px, 1.3vw, 16.5px);
  color: #8a8378;
  line-height: 1.9;
  margin-bottom: 56px;
}
.privacy-note a { color: var(--shu); text-decoration: underline dotted; text-underline-offset: 3px; }
.privacy-note a:hover { color: var(--sumi); }

.order-note-small {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(15.5px, 1.3vw, 16.5px);
  color: #8a8378;
  line-height: 1.9;
}
.order-note-small a { color: #8a8378; text-decoration: underline dotted; text-underline-offset: 3px; }
.order-note-small a:hover { color: var(--shu); }
.order-note-inline { margin-bottom: 28px; }

@media (max-width: 700px) {
  .soukyu-page { padding: 36px 20px 64px; }
  .order-flow { grid-template-columns: 1fr; }
}
