@charset "UTF-8";
/* ==========================================================================
   変数定義 & 基本設定
   ========================================================================== */
:root {
  --border-line-color: #dcdcdc;
}

/* =========================================
   ベース設定 & リセット
   ========================================= */
.form_container {
  width: 100%;
  color: #333;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}
#drawer-toggle,
.luxbar-checkbox {
  display: none !important;
}

/* =========================================
   ステップバー
   ========================================= */
.step-bar {
  display: flex;
  list-style: none;
  padding: 0 0 5px 0;
  margin: 0 auto 40px;
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.step-bar li {
  position: relative;
  flex: 1 0 auto;
  min-width: 180px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  color: #999999;
  padding: 0 10px 0 25px;
  font-size: 13px;
  margin-right: 5px;
}
.step-bar li::before,
.step-bar li::after {
  content: "";
  position: absolute;
  top: 0;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
}
.step-bar li::after {
  right: -17px;
  border-left: 17px solid #f0f0f0;
  z-index: 10;
}
.step-bar li::before {
  left: 0;
  border-left: 17px solid #fff;
  z-index: 5;
}
.step-bar li:first-child {
  padding-left: 10px;
}
.step-bar li:first-child::before {
  display: none;
}
.step-bar li:last-child::after {
  display: none;
}
.step-bar li.active {
  background: #FFBFC0;
  color: #333;
}
.step-bar li.active::after {
  border-left-color: #FFBFC0;
}
.step-bar li.completed {
  background: #d4edda;
}
.step-bar li.completed::after {
  border-left-color: #d4edda;
}

/* =========================================
   見出しスタイル
   ========================================= */
.full-width-heading {
  position: relative;
  padding: 10px 15px;
  background: #1e5082;
  color: white;
  font-size: 16px;
  margin-bottom: 25px;
}
.full-width-heading::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 25px;
  border-top: 10px solid #1e5082;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
}

/* =========================================
   フォーム部品
   ========================================= */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-line-color);
  border-radius: 4px;
  font-size: 15px;
  outline: none;
  background: #fff;
  color: #333;
}
input:focus,
textarea:focus,
select:focus {
  border: 2px solid #1e5082 !important;
  background-color: #f4f9ff !important;
  outline: none;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
label {
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  padding: 0px 0;
  color: #333;
}
.required-label {
  color: #ff4c4c !important;
  font-size: 0.8em;
  margin-left: 4px;
  font-weight: bold;
}
.note {
  display: block;
  font-size: 12px;
  color: #1e5082;
  margin-top: 15px;
  line-height: 1.4;
}
.input-error {
  background-color: #fff0f0 !important;
  color: #d93025 !important;
  border: 1px solid #d93025 !important;
}
.input-fixed {
  border: none !important;
  background: transparent !important;
  pointer-events: none;
  padding-left: 0 !important;
  color: #333;
}

/* =========================================
   ラジオボタン & チェックボックス
   ========================================= */
label:has(input[type="radio"]),
label:has(input[type="checkbox"]) {
  display: inline-flex !important;
  align-items: center !important;
  cursor: pointer !important;
  background-color: transparent !important;
  border: none !important;
  color: #333333 !important;
  transition: color 0.2s ease !important;
  margin-right: 20px !important; 
  margin-top: 0 !important;
  margin-bottom: 0 !important; 
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
label:has(input[type="radio"]:checked),
label:has(input[type="checkbox"]:checked) {
  color: #1e5082 !important;
  font-weight: bold !important;
}
input[type="radio"],
input[type="checkbox"] {
  vertical-align: middle !important;
  margin-right: 5px !important; 
}
input[type="radio"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 15px !important;
  height: 15px !important;
  border: 1px solid #bbbbbb !important;
  background-color: #ffffff !important;
  border-radius: 50% !important;
  outline: none !important;
  cursor: pointer !important;
  position: relative !important;
}
input[type="radio"]:checked {
  border-color: #1e5082 !important;
  background-color: #1e5082 !important;
  box-shadow: inset 0 0 0 2px #ffffff !important;
}
input[type="checkbox"] {
  width: 15px !important;
  height: 15px !important;
  cursor: pointer !important;
  accent-color: #1e5082 !important;
}

/* =========================================
   テーブルスタイル（PCベース）
   ========================================= */
.form_container table {
  width: 100%;
  margin: 0 0 30px 0;
  border-collapse: collapse;
  border: none;
}
.form_container th,
.form_container td {
  border: 1px solid var(--border-line-color);
  padding: 12px 15px;
  text-align: left;
  font-size: 14px;
  vertical-align: middle;
  color: #333;
}
.form_container th {
  background-color: #f8f9fa;
  width: 200px;
  font-weight: normal;
}
.summary-table {
  width: auto;
  margin-left: auto;
  min-width: 250px;
  border: none !important;
}

/* =========================================
   ボタン
   ========================================= */
.btn,
.btn-orange {
  display: inline-block;
  cursor: pointer;
  text-align: center;
  font-size: 16px;
  padding: 12px 0;
  width: 220px;
  border-radius: 25px;
  border: none;
  color: white;
  transition: opacity 0.3s ease;
}
.btn:hover,
.btn-orange:hover {
  opacity: 0.6;
}
.btn {
  background: #1e5082;
}
.btn-orange {
  background-color: #ff9900 !important;
}
.btn-mini {
  display: inline-block;
  background-color: #fff !important;
  color: #333333 !important;
  border: 1px solid #cccccc !important;
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-mini:hover {
  background-color: #f4f5f7 !important;
  border-color: #aaaaaa !important;
}
.submit-area,
.submit-area-custom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 60px 0;
}
.submit-area-custom {
  justify-content: space-between;
}
.nav-btn-group {
  display: flex;
  gap: 20px;
}
.save-load-group {
  display: flex;
  gap: 10px;
}
button[onclick="showStep1()"],
button[onclick="showStep2()"],
button[onclick="showStep3()"] {
    background-color: #1e5082 !important;
    color: #ffffff !important;
}
button[onclick^="showStep"] {
    margin-bottom: 0px !important;
    align-self: center !important;
}

/* =========================================
   確認画面のテーブル全体
   ========================================= */
.confirm-table {
  width: 100%;
  border-collapse: collapse;
}
.confirm-table th {
  width: 25% !important;
  background-color: #f8f9fa;
  text-align: left;
  padding: 10px;
}
.confirm-table td {
  width: 75% !important;
  text-align: left;
  padding: 10px;
}

/* =========================================
   確認画面のレイアウト・カラー調整
   ========================================= */
#confirmationArea h3,
#confirmationArea div[class*="heading"],
#confirmationArea div[class*="title"],
#confirmationArea .category-title {
    background-color: #1e5082 !important; 
    color: #ffffff !important;
}
#confirmationArea h3::after,
#confirmationArea div[class*="heading"]::after,
#confirmationArea div[class*="title"]::after,
#confirmationArea .category-title::after {
    border-top-color: #1e5082 !important;
}

/* =========================================
   完了画面のセンター配置
   ========================================= */
.thanks_content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-height: 450px;
  padding: 60px 20px !important;
}
.thanks_content .btn-return {
  margin: 30px auto 0 !important;
}

/* =========================================
   代金の確認テーブル
   ========================================= */
.calc-table th,
.calc-table td {
  padding: 14px !important;
  vertical-align: middle;
}
.calc-table input.qty,
.calc-table input.price,
.calc-table input.line-total,
.calc-table input.input-fixed {
  padding: 4px 8px !important;
  height: 30px !important;
  margin: 0 !important;
}
#itemTable td:first-child input.input-fixed {
  padding-left: 0 !important;
}

/* ==========================================
   ファイル選択ボタン
   ========================================== */
input[type="file"] {
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
    padding: 0 !important;
    color: #ff0000 !important;
    border: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

input[type="file"].has-file {
    color: #333333 !important;
}

input[type="file"]:focus {
    border: none !important;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

input[type="file"]::file-selector-button {
    background-color: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #cccccc !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    margin-right: 12px !important;
    min-width: 120px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

input[type="file"]::file-selector-button:hover {
    background-color: #f4f5f7 !important;
    border-color: #aaaaaa !important;
}

/* ==========================================
   必須項目のエラー時の吹き出し
   ========================================== */
.is-error {
  border-color: #ff4c4c !important;
  background-color: #fff0f0 !important;
  outline: none !important;
  box-shadow: none !important;
}
.is-error:focus {
  outline: none !important;
  box-shadow: none !important;
}
.error-message-balloon {
  display: block;
  color: #ff4c4c;
  font-size: 12px;
  margin-top: 15px;
  position: relative;
  padding: 6px 10px;
  background-color: #ffffff;
  border: 1px solid #ff4c4c;
  border-radius: 4px;
  max-width: max-content;
  z-index: 10;
  line-height: 1.4;
  font-weight: bold;
}
.error-message-balloon::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 15px;
  border-width: 0 6px 9px 6px;
  border-style: solid;
  border-color: transparent transparent #ff4c4c transparent;
  z-index: 11;
}
.error-message-balloon::after {
  content: '';
  position: absolute;
  top: -7px;
  left: 15px;
  border-width: 0 6px 9px 6px;
  border-style: solid;
  border-color: transparent transparent #ffffff transparent;
  z-index: 12;
}

/* =========================================
   モバイル・レスポンシブ (1025px以上)
   ========================================= */
@media (min-width: 1025px) {
  #confirmationArea table {
      table-layout: fixed !important;
      width: 100% !important;
  }
  #confirmationArea table th {
      width: 20% !important; 
  }
  #confirmationArea table td {
      width: 80% !important;
      word-break: break-all;
  }
}

/* =========================================
   モバイル・レスポンシブ (1024px以下)
   ========================================= */
@media (max-width: 1024px) {
  .form_container table:not(.calc-table):not(.summary-table):not(.confirm-table) {
    display: block;
    width: 100% !important;
    border: none !important;
  }
  .form_container table:not(.calc-table):not(.summary-table):not(.confirm-table) tbody,
  .form_container table:not(.calc-table):not(.summary-table):not(.confirm-table) th,
  .form_container table:not(.calc-table):not(.summary-table):not(.confirm-table) td {
    display: block;
    width: 100% !important;
  }
  .form_container table:not(.calc-table):not(.summary-table):not(.confirm-table) tr {
    display: block;
    width: 100% !important;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
  }
  .form_container table:not(.calc-table):not(.summary-table):not(.confirm-table) th {
    padding: 8px 12px;
    background-color: #f8f9fa;
    border: none;
    border-bottom: 1px solid var(--border-line-color);
    font-size: 13px;
    color: #333;
  }
  .form_container table:not(.calc-table):not(.summary-table):not(.confirm-table) td {
    padding: 12px;
    border: none;
    border-bottom: 1px solid #eee;
    color: #333;
  }
  .form_container table:not(.calc-table):not(.summary-table):not(.confirm-table) td:last-child {
    border-bottom: none;
  }
  .calc-table {
      width: 100% !important;
      min-width: 600px;
      border: none !important; 
      display: table !important; 
  } 
  .scroll-wrapper {
      width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      border: none;
      margin-bottom: 15px;
      padding-bottom: 15px;
  }
}

/* =========================================
   モバイル・レスポンシブ (768px以下)
   ========================================= */
@media (max-width: 768px) {
  .submit-area-custom {
    flex-direction: column-reverse;
    gap: 30px;
  }
  .nav-btn-group,
  .save-load-group {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 8px;
  }
  .nav-btn-group .btn,
  .save-load-group .btn-mini {
    flex: 1;
    width: auto !important;
  }
}

/* =========================================
   モバイル・レスポンシブ (480px以下)
   ========================================= */
@media (max-width: 480px) {
  .step-bar li {
    font-size: 11px;
    min-width: 150px;
    height: 30px;
  }
  .step-bar li::before,
  .step-bar li::after {
    border-top-width: 15px;
    border-bottom-width: 15px;
  }
}