scroll-note@charset "UTF-8";

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

/* =========================================
   ベース設定 & リセット
   ========================================= */
.form_container {
  width: 100%;
  box-sizing: border-box;
  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;
  box-sizing: border-box;
  font-size: 15px;
  outline: none;
  background: #fff;
  color: #333;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #1e5082;
}

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: #cc0033;
  font-size: 0.8em;
  margin-left: 4px;
  font-weight: bold;
}

.note {
  display: block;
  font-size: 12px;
  color: #0066ff;
  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,
.btn-return {
  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.2s ease;
}

.btn:hover,
.btn-orange:hover,
.btn-return:hover {
  opacity: 0.8;
}

.btn {
  background: #1e5082;
}

.btn-orange {
  background-color: #ff9900 !important;
}

.btn-return {
  background-color: #9ca3af;
}

.btn-mini {
  display: inline-block;
  background-color: #fff !important;
  color: #666 !important;
  border: 1px solid var(--border-line-color);
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 15px;
  cursor: pointer;
}

.submit-area,
.submit-area-custom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 40px 0;
}

.submit-area-custom {
  justify-content: space-between;
}

.nav-btn-group {
  display: flex;
  gap: 20px;
}

.save-load-group {
  display: flex;
  gap: 10px;
}

/* =========================================
   確認画面のテーブル全体
   ========================================= */
.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;
  box-sizing: border-box;
}

#itemTable td:first-child input.input-fixed {
  padding-left: 0 !important;
}



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

  #confirmationArea table th {
      width: 20% !important; 
      box-sizing: border-box;
  }

  #confirmationArea table td {
      width: 80% !important;
      box-sizing: border-box;
      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;
  }
}