@charset "UTF-8";
/* =========================================================================
   direct-order.css
   直販注文フォーム（/direct-order/ および /direct-order-confirm/）専用CSS
   --------------------------------------------------------------------------
   作成日: 2026-05-01
   役割:
     style.css に分散していた直販注文フォーム関連のCSSを1ファイルに集約。
     ご注文ページのみで読み込むことで、他ページへの影響を排除し、
     保守性を向上させる。
   読み込み:
     functions.php の wp_enqueue_scripts フックで、is_page() で対象ページを
     判定したうえで読み込む。
   関連HTML:
     - 固定ページ direct-order（post=4076）
     - MW WP Form のフォーム4075（フォーム本体）
   セクション構成:
     0. 確認画面用（mw_wp_form_preview）
     1. 冒頭説明ボックス・共通ボックス
     2. ご注文・お見積り依頼の流れ
     3. フォーム全体（MW WP Form / テーブル）
     4. 製品選択エリア・見出し・概算金額
     5. 代引手数料リンク・モーダル
     6. プライバシーポリシーポップアップ
     7. スマホ表示（共通）
     8. スマホ表示（製品テーブル列幅）
     9. スマホ表示（caution / summary 微調整）
   ========================================================================= */


/* =========================================================================
   0. 確認画面用（mw_wp_form_preview）
   ご入力内容の確認画面で表示・非表示や見た目を切り替える指定。
   ========================================================================= */

.mw_wp_form_preview p.help.is-danger.is-marginless,
.mw_wp_form_preview .order-main-title,
.mw_wp_form_preview .order-box.lead,
.mw_wp_form_preview .order-policy-link,
.mw_wp_form_preview #js-shipping-note,
.mw_wp_form_preview .order-help {
  display: none;
}

.mw_wp_form_preview .control.has-icons-left,
.mw_wp_form_preview .control.has-icons-right {
  position: static;
}

.mw_wp_form_preview .control.has-icons-left .icon,
.mw_wp_form_preview .control.has-icons-right .icon {
  display: none !important;
}

/* 確認画面：戻るボタンだけ左矢印にする */
.mw_wp_form_preview .control.has-text-centered .button.back {
  background: url(img/arrow_back.svg) no-repeat top 1.6rem left 1rem #202020 !important;
  background-size: 1.5rem auto !important;
  padding: 1rem 2rem 1rem 3.2rem !important;
}

.mw_wp_form_preview .control.has-text-centered .button.back:hover {
  background-color: #12325b !important;
}


/* =========================================================================
   1. 冒頭説明ボックス・共通ボックス（order-box）
   ご注文ページ上部の案内ボックス（lead/flow/caution）の共通スタイル。
   ========================================================================= */

.order-box {
  margin: 0 0 18px;
  padding: 16px 18px;
  line-height: 1.8;
  border-radius: 0;
  font-size: 16px;
  background: #f6f6f6;
  border: 1px solid #dddddd;
  color: #333;
}

.order-box.lead,
.order-box.flow,
.order-box.caution {
  border-left: 4px solid #b5b5b5;
}

.order-box-title {
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 10px;
  font-weight: 700;
  color: #222;
}

.order-box p {
  margin: 0 0 10px;
}

.order-box p:last-child {
  margin-bottom: 0;
}

.order-box ul {
  margin: 0;
  padding-left: 1.4em;
}

.order-box li {
  list-style-type: disc;
  position: static;
  margin: 0 0 6px;
}

.order-box li:last-child {
  margin-bottom: 0;
}

.order-box-note {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: #666;
}

.order-help {
  margin-top: 8px;
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

.order-policy-link a {
  text-decoration: underline;
}


/* =========================================================================
   2. ご注文・お見積り依頼の流れ（order-steps）
   PCで横並び4ステップのフロー図を描画。スマホは縦並びにする（セクション7）。
   ========================================================================= */

.order-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.order-steps-4 .order-step {
  width: calc(25% - 12px);
  box-sizing: border-box;
}

.order-step {
  flex: 1;
  background: #ffffff;
  border: 1px solid #d8d8d8;
  padding: 20px 18px;
  text-align: center;
  position: relative;
  min-height: 120px;
  box-sizing: border-box;
}

.order-step-number {
  display: inline-block;
  width: 34px;
  height: 34px;
  line-height: 34px;
  border-radius: 999px;
  background: #8a8a8a;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.order-step-text {
  font-size: 16px;
  line-height: 1.7;
  font-weight: 700;
  color: #333;
}

.order-step-note {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: #666;
}

.order-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -13px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  border-radius: 999px;
  background: #f6f6f6;
  border: 1px solid #d8d8d8;
  color: #777;
  font-weight: 700;
  z-index: 2;
}


/* =========================================================================
   3. フォーム全体（MW WP Form / テーブル）
   sp-blockクラス（直販フォーム専用）と数量入力欄(qty-input)の基本指定。
   スマホでテーブルをブロック表示にする旧定義は style.css 行504-548 にあるが、
   現在はネストテーブルへの影響が問題になり得るため、こちらでは現役の
   フォーム要素のスタイルのみを定義する。
   ========================================================================= */

.qty-input {
  width: 74px !important;
  height: 34px !important;
  text-align: right !important;
  display: inline-block !important;
  font-size: 16px !important;
  border: 1px solid #8d8d8d !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  padding: 4px 8px !important;
}

.sp-block {
  border-collapse: collapse;
  width: 100%;
}

.sp-block .input,
.sp-block .textarea {
  max-width: 100%;
  box-sizing: border-box;
  font-size: 16px !important;
  line-height: 1.6;
}

.sp-block .textarea {
  min-height: 140px;
}

.sp-block .textarea::placeholder {
  font-size: 15px;
  line-height: 1.7;
  color: #9a9a9a;
}

.sp-block th,
.sp-block td,
.sp-block label,
.sp-block p,
.sp-block li {
  font-size: 16px;
  line-height: 1.7;
}

.sp-block > tbody > tr > th,
.sp-block > tbody > tr > td {
  border-bottom: 1px solid #dddddd;
  vertical-align: middle;
  background: #fff;
}

.sp-block > tbody > tr > th {
  width: 28%;
  background: #f7f7f7;
}

.sp-block table th,
.sp-block table td {
  font-size: 16px;
  line-height: 1.6;
  background: #fff;
}

.sp-block th .label {
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.sp-block .mwform-radio-field,
.sp-block .mwform-checkbox-field {
  font-size: 16px;
  line-height: 1.8;
}

.sp-block .mwform-radio-field label,
.sp-block .mwform-checkbox-field label {
  font-size: 16px;
  line-height: 1.8;
  margin-right: 18px;
}

.sp-block .mwform-radio-field input,
.sp-block .mwform-checkbox-field input {
  margin-right: 6px;
  transform: translateY(1px);
}

.field-body .button {
  font-size: 16px;
  line-height: 1.4;
}


/* =========================================================================
   4. 製品選択エリア・見出し・概算金額
   ========================================================================= */

.order-main-title {
  height: 94px;
  background: #7a7a7a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0;
}

.order-section-label {
  padding: 28px 18px 14px;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  background: #fff;
}

.order-band-yellow {
  background: #fff200 !important;
}

.order-band-orange {
  background: #f4b400 !important;
}

.order-band-title {
  color: #222;
  font-weight: 700;
}

.product-table-wrap table tr th,
.product-table-wrap table tr td {
  border-bottom: 1px solid #e3e3e3 !important;
}

.summary-box {
  background: #f7f7f7;
  border: 1px solid #d8d8d8;
  padding: 18px;
  border-radius: 0;
}

.summary-box table td {
  border: 1px solid #dddddd !important;
}

.summary-total-label,
.summary-total-value {
  background: #f2f2f2 !important;
}

.summary-total-value {
  color: #333 !important;
}

.product-link {
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.product-link:hover {
  opacity: 0.8;
}


/* =========================================================================
   5. 代引手数料リンク・モーダル
   is-active と aria-hidden の両方の表示制御に対応。
   ========================================================================= */

.order-popup-link {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin-left: 8px;
  color: #2f4da0;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.order-popup-link:hover {
  opacity: 0.8;
}

.order-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999;
}

.order-modal.is-active,
.order-modal[aria-hidden="false"] {
  display: block;
}

.order-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.order-modal-dialog {
  position: relative;
  width: calc(100% - 32px);
  max-width: 640px;
  margin: 80px auto;
  padding: 28px 24px 24px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  z-index: 2;
}

.order-modal-title {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  color: #222;
}

.order-modal-dialog p {
  margin: 0 0 12px;
  line-height: 1.9;
  color: #333;
}

.order-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  appearance: none;
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: #666;
  cursor: pointer;
}

.order-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.order-modal-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #2f4da0;
  padding: 12px 18px;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
}

.order-modal-btn-primary {
  background: #2f4da0;
  color: #fff;
}

.order-modal-btn-secondary {
  background: #fff;
  color: #2f4da0;
}

body.order-modal-open {
  overflow: hidden;
}


/* =========================================================================
   6. プライバシーポリシーポップアップ
   ========================================================================= */

.order-policy-popup {
  padding: 24px;
}

.order-policy-popup-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #222;
}

.order-policy-close-btn {
  display: block;
  margin: 32px auto 8px;
  padding: 14px 60px;
  background: #12325b;
  color: #fff;
  border: none;
  font-size: 18px;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.1em;
}

.order-policy-close-btn:hover {
  background: #1a4a8a;
}


/* =========================================================================
   7. スマホ表示（共通）
   max-width: 767px のメディアクエリ。フォーム要素の文字サイズ・余白の
   一括調整。製品テーブルの列幅はセクション8で別途指定。
   ========================================================================= */

@media screen and (max-width: 767px) {
  .order-box {
    padding: 14px 14px;
    font-size: 15px;
  }

  .order-box-title {
    font-size: 17px;
  }

  /* ご注文フローを縦並びに */
  .order-steps {
    display: block;
    margin-top: 6px;
  }

  .order-steps-4 .order-step {
    width: 100%;
  }

  .order-step {
    min-height: auto;
    padding: 14px 12px;
    margin-bottom: 12px;
    text-align: left;
  }

  .order-step:last-child {
    margin-bottom: 0;
  }

  .order-step-number {
    width: 28px;
    height: 28px;
    line-height: 28px;
    font-size: 14px;
    margin-bottom: 8px;
  }

  .order-step-text {
    font-size: 15px;
    line-height: 1.7;
  }

  .order-step-note {
    font-size: 13px;
  }

  /* PC版の右向き矢印 → スマホ版は下向き矢印 */
  .order-step:not(:last-child)::after {
    content: "↓";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -13px;
    transform: translateX(-50%);
  }

  /* sp-block 内の文字サイズ統一 */
  .sp-block th,
  .sp-block td,
  .sp-block label,
  .sp-block p,
  .sp-block .input,
  .sp-block .textarea,
  .sp-block .mwform-radio-field,
  .sp-block .mwform-radio-field label,
  .sp-block .mwform-checkbox-field,
  .sp-block .mwform-checkbox-field label {
    font-size: 15px !important;
  }

  .order-help,
  .sp-block .textarea::placeholder,
  .order-popup-link,
  .order-box-note {
    font-size: 13px !important;
  }

  /* 数量入力欄のスマホ用サイズ（PCより小さく） */
  .qty-input {
    width: 68px !important;
    height: 32px !important;
    font-size: 15px !important;
  }

  .order-main-title {
    height: 78px;
    font-size: 18px;
    padding: 0 12px;
    text-align: center;
  }

  .order-section-label {
    padding: 22px 12px 12px;
    font-size: 17px;
  }

  /* 641〜767pxでも外側フォームテーブルを縦積みにする。
     style.css側の同指定は max-width:640px のため、
     この範囲ではラベル列28%＋入力列72%のままになり、
     製品テーブルが窮屈になる可能性がある。 */
  table.sp-block {
    display: block;
    border-bottom: 1px solid #ddd;
  }

  table.sp-block > thead,
  table.sp-block > tbody {
    display: block;
  }

  table.sp-block > tbody > tr {
    display: block;
    width: auto !important;
  }

  table.sp-block > tbody > tr > th {
    display: block;
    width: auto !important;
    background-color: #f3f3f3;
    border-bottom: none;
    padding: 0.4em 0;
  }

  table.sp-block > tbody > tr > td {
    display: block;
    width: auto !important;
    border-bottom: none;
  }

  /* ネストした製品テーブル・参考金額テーブルはテーブル表示を維持 */
  table.sp-block td table,
  table.sp-block td table thead,
  table.sp-block td table tbody,
  table.sp-block td table tr,
  table.sp-block td table th,
  table.sp-block td table td {
    display: table !important;
    width: auto !important;
  }

  table.sp-block td table {
    width: 100% !important;
  }

  table.sp-block td table tr {
    display: table-row !important;
  }

  table.sp-block td table th,
  table.sp-block td table td {
    display: table-cell !important;
  }

  /* 代引モーダル：スマホ用調整 */
  .order-modal-dialog {
    margin: 40px auto;
    width: calc(100% - 20px);
    padding: 24px 18px 20px;
  }

  .order-modal-title {
    font-size: 20px;
  }

  .order-modal-actions {
    display: block;
  }

  .order-modal-btn {
    width: 100%;
    margin-bottom: 10px;
  }

  .order-modal-btn:last-child {
    margin-bottom: 0;
  }
}


/* =========================================================================
   8. スマホ表示（製品テーブル列幅）
   --------------------------------------------------------------------------
   AC直結とDC24Vで列幅を統一し、「形」列が改行されないよう nowrap を強制。
   table-layout: fixed と各列の % 指定により、確認画面でMW WP Formが
   <input> をテキスト置換しても、列幅が維持される（AC直結右側空白対策）。
   ========================================================================= */

@media screen and (max-width: 767px) {
  .product-table-wrap > table {
    width: 100% !important;
    table-layout: fixed !important;
  }

  /* 1列目: 型番（リンク） */
  .product-table-wrap > table tr > th:first-child {
    width: 26% !important;
  }

  /* 2列目: 形 ─ 「32形」が1行で収まるよう13%確保＋折り返し禁止 */
  .product-table-wrap > table tr > td:nth-child(2) {
    width: 13% !important;
    white-space: nowrap !important;
  }

  /* 3列目: 寸法 */
  .product-table-wrap > table tr > td:nth-child(3) {
    width: 17% !important;
  }

  /* 4列目: 価格 */
  .product-table-wrap > table tr > td:nth-child(4) {
    width: 15% !important;
  }

  /* 5列目: 数量入力欄 ─ "12 本" が収まるよう29% */
  .product-table-wrap > table tr > td:nth-child(5) {
    width: 29% !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    white-space: nowrap !important;
  }

  .product-table-wrap > table tr > th,
  .product-table-wrap > table tr > td {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  .product-table-wrap .qty-input {
    width: 46px !important;
    height: 30px !important;
    padding: 4px 2px !important;
    font-size: 14px !important;
  }
}


/* =========================================================================
   9. スマホ表示（caution / summary 微調整）
   --------------------------------------------------------------------------
   「ご利用に関するご案内」と「参考金額」エリアのスマホ用レイアウト調整。
   ========================================================================= */

@media screen and (max-width: 767px) {
  /* ご利用に関するご案内 */
  .order-box.caution {
    padding: 10px 8px !important;
  }

  .order-box.caution table {
    width: 100% !important;
    margin: 0 !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
  }

  .order-box.caution table td {
    padding: 8px 6px !important;
    line-height: 1.75 !important;
    font-size: 14px !important;
    vertical-align: top !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  .order-box.caution table td:first-child {
    width: 4.6em !important;
    min-width: 4.6em !important;
    white-space: nowrap !important;
    padding-right: 8px !important;
    font-weight: 700 !important;
  }

  /* 参考金額エリア */
  #js-summary-row > td {
    padding: 0 !important;
    width: 100% !important;
  }

  #price-summary-area.summary-box {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 8px !important;
  }

  #price-summary-area table {
    display: table !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    table-layout: fixed !important;
  }

  #price-summary-area thead,
  #price-summary-area tbody {
    display: table-row-group !important;
    width: 100% !important;
  }

  #price-summary-area tr {
    display: table-row !important;
  }

  #price-summary-area td,
  #price-summary-area th {
    display: table-cell !important;
    box-sizing: border-box !important;
    padding: 12px 10px !important;
  }

  #price-summary-area tr > td:first-child {
    width: 72% !important;
  }

  #price-summary-area tr > td:last-child {
    width: 28% !important;
    text-align: right !important;
  }

  #price-summary-area #js-shipping-note,
  #price-summary-area > p {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    text-align: left !important;
  }
}


/* =========================================================================
   補足: お支払方法ラジオボタンを縦並びに
   セクション3の sp-block 系の例外指定。元のCSSの最終行にあったもの。
   ========================================================================= */

.sp-block .mwform-radio-field {
  display: block;
  margin-left: 0 !important;
  padding-left: 0 !important;
}


/* =========================================================================
   10. 固定ページ direct-order から移動したスタイル
   --------------------------------------------------------------------------
   固定ページ本文内の <style> と主な inline style をCSSへ集約。
   固定ページ側は構造HTMLだけにして、見た目は direct-order.css で管理する。
   ========================================================================= */

/* DC24V製品詳細：寸法図 */
.product-drawing-area {
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid #ddd;
  background: #fff;
}

.product-drawing-title {
  margin: 0 0 10px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  color: #222 !important;
}

.product-drawing-area img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

@media screen and (max-width: 767px) {
  .product-drawing-area {
    padding: 10px;
  }

  .product-drawing-title {
    font-size: 14px !important;
  }
}

/* ご利用に関するご案内をコンパクト表示 */
.order-box.caution {
  padding: 12px 14px !important;
  margin-bottom: 14px !important;
}

.order-box.caution .order-box-title {
  margin: 0 0 8px !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
}

.order-box.caution table {
  margin: 0 !important;
  font-size: 13.5px !important;
  line-height: 1.45 !important;
}

.order-box.caution table td {
  padding: 4px 8px !important;
  font-size: 13.5px !important;
  line-height: 1.45 !important;
}

.order-box.caution table td:first-child {
  width: 5.6em !important;
  padding-left: 10px !important;
  padding-right: 8px !important;
  white-space: nowrap !important;
}

@media screen and (max-width: 767px) {
  .order-box.caution {
    padding: 10px 8px !important;
  }

  .order-box.caution .order-box-title {
    font-size: 15px !important;
  }

  .order-box.caution table {
    font-size: 13px !important;
  }

  .order-box.caution table td {
    padding: 4px 5px !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  .order-box.caution table td:first-child {
    width: 5.2em !important;
    min-width: 5.2em !important;
  }
}
/* sp-blockの外枠・列幅（PC用） */
.sp-block { border-collapse: collapse; width: 100%; table-layout: fixed !important; }
.sp-block > colgroup > col:first-child { width: 28%; }
.sp-block > colgroup > col:last-child { width: 72%; }
.sp-block > tbody > tr { display: table-row !important; }
.sp-block > tbody > tr > th { display: table-cell !important; width: 28% !important; background: #f7f7f7; border-bottom: 1px solid #ddd; vertical-align: middle; padding: 1em; }
.sp-block > tbody > tr > td { display: table-cell !important; width: 72% !important; background: #fff; border-bottom: 1px solid #ddd; vertical-align: middle; padding: 1em; }

/* ネストしたテーブル（製品一覧・参考金額）は常にテーブル表示 */
.sp-block td table { display: table !important; width: 100% !important; table-layout: fixed !important; }
.sp-block td table thead, .sp-block td table tbody { display: table-row-group !important; }
.sp-block td table tr { display: table-row !important; }
.sp-block td table th, .sp-block td table td { display: table-cell !important; width: auto !important; }

/* スマホ（640px以下）：外側のth/tdのみblock、ネストは維持 */
@media (max-width: 640px) {
  .sp-block > tbody > tr > th { display: block !important; width: 100% !important; }
  .sp-block > tbody > tr > td { display: block !important; width: 100% !important; }
}
/* 注文フォーム上部説明を読みやすく統一 */
.order-lead-compact {
  font-size: 15px !important;
  line-height: 1.8 !important;
}

.order-lead-compact .order-box-title {
  margin: 0 0 12px !important;
  font-size: 20px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
}

.order-lead-compact p {
  margin: 0 0 10px !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
  color: #333 !important;
}

.order-lead-compact .order-lead-note {
  margin-bottom: 0 !important;
  color: #666 !important;
}

.order-lead-compact a {
  color: #2f4da0 !important;
  text-decoration: underline !important;
}

@media screen and (max-width: 767px) {
  .order-lead-compact {
    font-size: 14px !important;
  }

  .order-lead-compact .order-box-title {
    font-size: 17px !important;
  }

  .order-lead-compact p {
    font-size: 14px !important;
    line-height: 1.75 !important;
  }
}
/* 代引手数料モーダル：画面内でスクロールできるようにする */
.order-modal-dialog {
  max-height: 86vh !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

.order-modal-actions {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: 12px;
  margin-top: 14px;
  border-top: 1px solid #eee;
}

@media screen and (max-width: 767px) {
  .order-modal-dialog {
    width: calc(100% - 24px) !important;
    max-height: 82vh !important;
    padding: 22px 16px !important;
  }

  .order-modal-actions {
    padding-bottom: 4px;
  }
}
/* 固定ページ本文の inline style 置き換え */
.order-step-note-line {
  display: block;
}

.order-step-note-line-spaced {
  margin-bottom: 4px;
}

.order-caution-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.7;
}

.order-caution-label {
  width: 7em;
  padding: 7px 10px 7px 15px;
  vertical-align: top;
  white-space: nowrap;
  font-weight: 700;
  color: #444;
  border-bottom: 1px solid #e0e0e0;
}

.order-caution-value {
  padding: 7px 0 7px 15px;
  border-bottom: 1px solid #e0e0e0;
}

.order-cod-fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 0 0 12px;
}

.order-cod-fee-table th {
  background: #f3f3f3;
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
  font-weight: 700;
}

.order-cod-fee-table th:last-child,
.order-cod-fee-table td:last-child {
  text-align: right;
}

.order-cod-fee-table td {
  border: 1px solid #ddd;
  padding: 8px 12px;
}

.order-modal-note {
  font-size: 13px;
  color: #666;
}

/* =========================================================================
   10. 固定ページスタイル分離後の最終上書き
   固定ページ本文から inline style を外した要素を、既存テーマCSSより強く制御する。
   ========================================================================= */

body.page-id-4076 .order-lead-compact,
body.page-id-4076 .order-box.flow,
body.page-id-4076 .order-box.caution {
  box-sizing: border-box !important;
}

body.page-id-4076 .order-lead-compact {
  font-size: 15px !important;
  line-height: 1.8 !important;
}

body.page-id-4076 .order-lead-compact .order-box-title {
  margin: 0 0 12px !important;
  font-size: 20px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
}

body.page-id-4076 .order-lead-compact p {
  margin: 0 0 10px !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
  color: #333 !important;
}

body.page-id-4076 .order-lead-compact .order-lead-note {
  margin-bottom: 0 !important;
  color: #666 !important;
}

body.page-id-4076 .order-step-note-line {
  display: block !important;
}

body.page-id-4076 .order-step-note-line-spaced {
  margin-bottom: 4px !important;
}

body.page-id-4076 .order-box.caution {
  padding: 12px 14px !important;
  margin-bottom: 14px !important;
}

body.page-id-4076 .order-box.caution .order-box-title {
  margin: 0 0 8px !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
}

body.page-id-4076 table.order-caution-table {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: auto !important;
  margin: 0 !important;
  font-size: 13.5px !important;
  line-height: 1.45 !important;
}

body.page-id-4076 table.order-caution-table td,
body.page-id-4076 table.order-caution-table th {
  display: table-cell !important;
  box-sizing: border-box !important;
  font-size: 13.5px !important;
  line-height: 1.45 !important;
  vertical-align: top !important;
  background: #fff !important;
}

body.page-id-4076 table.order-caution-table td.order-caution-label {
  width: 5.6em !important;
  min-width: 5.6em !important;
  padding: 4px 8px 4px 10px !important;
  white-space: nowrap !important;
  font-weight: 700 !important;
  color: #444 !important;
  border-bottom: 1px solid #e0e0e0 !important;
}

body.page-id-4076 table.order-caution-table td.order-caution-value {
  width: auto !important;
  padding: 4px 8px !important;
  border-bottom: 1px solid #e0e0e0 !important;
}

body.page-id-4076 table.order-cod-fee-table {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: auto !important;
  font-size: 15px !important;
  margin: 0 0 12px !important;
}

body.page-id-4076 table.order-cod-fee-table th,
body.page-id-4076 table.order-cod-fee-table td {
  display: table-cell !important;
  border: 1px solid #ddd !important;
  padding: 8px 12px !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}

body.page-id-4076 table.order-cod-fee-table th {
  background: #f3f3f3 !important;
  text-align: left !important;
  font-weight: 700 !important;
}

body.page-id-4076 table.order-cod-fee-table th:last-child,
body.page-id-4076 table.order-cod-fee-table td:last-child {
  text-align: right !important;
}

body.page-id-4076 .order-modal-note {
  font-size: 13px !important;
  color: #666 !important;
}

@media screen and (max-width: 767px) {
  body.page-id-4076 .order-lead-compact {
    font-size: 14px !important;
  }

  body.page-id-4076 .order-lead-compact .order-box-title {
    font-size: 17px !important;
  }

  body.page-id-4076 .order-lead-compact p {
    font-size: 14px !important;
    line-height: 1.75 !important;
  }

  body.page-id-4076 .order-box.caution {
    padding: 10px 8px !important;
  }

  body.page-id-4076 table.order-caution-table {
    font-size: 13px !important;
  }

  body.page-id-4076 table.order-caution-table td.order-caution-label {
    width: 5.2em !important;
    min-width: 5.2em !important;
    padding: 4px 5px !important;
  }

  body.page-id-4076 table.order-caution-table td.order-caution-value {
    padding: 4px 5px !important;
  }

  body.page-id-4076 table.order-caution-table td,
  body.page-id-4076 table.order-caution-table th {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }
}
/* =========================================================================
   PC表示時の横幅制限（全ページ対応版）
   入力(4076)・確認(4078)・完了(4080) のすべての画面に適用します。
   ========================================================================= */
@media screen and (min-width: 768px) {
  /* 注文(4076), 確認(4078), 完了(4080) ページを指定 */
  body.page-id-4076 .h-adr,
  body.page-id-4078 .h-adr,
  body.page-id-4080 .h-adr,
  body.page-id-4076 .order-box,
  body.page-id-4078 .order-box,
  body.page-id-4080 .order-box,
  body.page-id-4076 .order-steps,
  body.page-id-4078 .order-steps,
  body.page-id-4080 .order-steps {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
}