.tablelist {
  max-width: 1210px;
  border-collapse: collapse;
  /* 境界線をくっつける */
}

/* ヘッダーセルの最小幅 */
.tablelist th {
  min-width: 210px;
  width: 210px;
  text-align: left;
  /* 任意 */
  border: 1px solid #ccc;
  /* 任意 */
  padding: 8px;
  /* 任意 */
}

/* データセルは自動で残りを埋める */
.tablelist td {
  border: 1px solid #ccc;
  /* 任意 */
  max-width: 1000px;
  padding: 8px;
}

label {
  /* font-size: 16px; */
  font-size: 15px;
  font-weight: bold;
}

#agreeBox span {
  display: inline-block;
  margin-bottom: 5px;
}

.form_require:after {
  color: #dc3545;
  content: "*";
  margin-left: 16px;
  font-weight: bold;
}

.xcConfirm .popBox {
  height: auto;
  min-height: 300px;
  max-height: 75vh;
  width: auto !important;
  min-width: 500px;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  margin-left: 0 !important;
  margin-top: 0 !important;
  transform: translate(-50%, -50%);
}

.xcConfirm .popBox .ttBox {
  height: 40px;
  padding: 8px 30px;
  flex-shrink: 0;
}

.xcConfirm .popBox .ttBox .tt {
  line-height: 24px;
  height: 24px;
  font-size: 16px;
}

.xcConfirm .popBox .txtBox {
  flex: 1;
  min-height: 200px;
  max-height: calc(75vh - 120px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 10px;
  display: flex;
  align-items: flex-start;
}

.xcConfirm .popBox .txtBox .bigIcon {
  margin-top: 0;
  flex-shrink: 0;
  align-self: flex-start;
}

.xcConfirm .popBox .txtBox p {
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  flex: 1;
  line-height: 1.6;
  padding-left: 0;
  text-align: left;
  font-size: 1em;
}

.xcConfirm .popBox .btnArea {
  flex-shrink: 0;
  padding: 10px 0;
  text-align: center;
}

.xcConfirm .popBox .btnGroup {
  text-align: center;
  float: none;
  display: inline-block;
  width: 100%;
}

.xcConfirm .popBox .btnGroup .sgBtn {
  float: none;
  display: inline-block;
  margin: 14px 10px 0 10px;
}

.xcConfirm .popBox .btnGroup .sgBtn.ok {
  font-size: 1.5em;
}

/* ドロップエリア */
#drop-zone {
  width: 1000px;
  height: 150px;
  border: 2px dashed #999;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #666;
  font-size: 14px;
  margin: 10px 10px 0px 0px;
}

/* ドラッグ中のハイライト */
#drop-zone.dragover {
  background-color: #eef;
  border-color: #36f;
  color: #36f;
}

#file-list {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  margin-bottom: 10px;
  gap: 4px;
  width: auto;
}

#file-list div {
  display: flex;
  align-items: center;
}

#file-list span {
  flex: 0 0 auto;
  margin-right: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#file-list button {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
}
#file-list div.file-item-ok {
  padding-bottom: 8px;
  padding-top: 8px;
}
#file-list div.file-item-ok + div.file-item-ok{
  border-top: 1px solid #eef0f4;
}

/* ファイルアイテムの状態クラス */
#file-list div.file-item-ok:before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='40px' viewBox='0 -960 960 960' width='40px' fill='%23666666'%3E%3Cpath d='M428-194.67q40 0 68-27.66Q524-250 524-290v-184.67h117.33v-66.66H484V-365q-11-8.67-25.5-13.17t-30.5-4.5q-38.67 0-65.33 27Q336-328.67 336-290q0 39.33 26.67 67.33 26.66 28 65.33 28ZM226.67-80q-27 0-46.84-19.83Q160-119.67 160-146.67v-666.66q0-27 19.83-46.84Q199.67-880 226.67-880H574l226 226v507.33q0 27-19.83 46.84Q760.33-80 733.33-80H226.67Zm314-542.67h192.66L540.67-813.33v190.66Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
  vertical-align: middle;
  margin-right: 8px;
  opacity: 0.8;
}

#file-list div.file-item-error:before {
  content: "❌ ";
  color: #dc3545;
}

#file-list div.file-item-error span {
  color: #dc3545;
}

.drop-zone {
  flex-direction: column;
}

.custom-modal .modal-dialog {
  max-width: 600px;
}

.custom-modal .modal-dialog.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 1rem);
}

.password-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
}

input[type="password"],
input[type="text"] {
  height: 30px;
  font-size: 16px;
  padding: 4px 8px;
}

.toggle-btn {
  cursor: pointer;
}

.pupil {
  display: block;
  width: 6px;
  height: 6px;
  background: #000;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

.eye-icon.closed .pupil {
  opacity: 0;
}

.info {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  cursor: help;
  color: #1f6feb;
  font-size: 1em;
}

/* 吹き出し本体 */
.tooltip {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  border-radius: 6px;
  padding: 12px 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
  z-index: 10;
  display: block;
  white-space: pre-line;
  width: max-content;
  min-width: 200px;
  max-width: 600px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
  font-size: 15px;
  line-height: 18px;
  font-weight: normal;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  color: #222;
  line-height: 24px;
}

/* 吹き出しの矢印 */
/* .tooltip::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 20px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid rgba(0, 0, 0, 0.85);
} */

/* ホバー時に表示 */
.info:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

/* .kinds__col--txt {
  color: #000;
  background-color: #fff;
  line-height: 1.0;
  padding: 0.0rem 1.0rem 0.0rem 1.0rem;
  margin: 0.0rem;
  position: relative;
  display: block;
}

.kinds__col--ttl {
  font-size: 1.0rem;
  font-weight: 500;
  line-height: 1.0;
  margin: 0.0rem;
}

.kinds__col--osusume {
  display: block;
  border-top: 1px solid #999;
  line-height: 1.0;
  padding: 0.5rem 0.0rem 0.0rem 0.0rem;
  margin: 0.0rem;
  font-weight: 700;
} */

:root {
  /* 埋め込み領域のデフォルトサイズ（任意に変更可） */
  --consent-width: 1200px;
  --consent-height: 360px;
  --consent-font-size: 14px;
  --consent-border: 1px solid #d0d0d0;
  --consent-radius: 8px;
  --consent-padding: 16px;
}

body {
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", Roboto, "Yu Gothic UI", sans-serif;
  padding: 24px;
}

/* 埋め込みコンテナの共通スタイル */
.consent-embed {
  width: var(--consent-width);
  height: var(--consent-height);
  border: var(--consent-border);
  border-radius: var(--consent-radius);
  overflow: auto;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  background: #fff;
}

.consent-scrollbox {
  height: 100%;
  padding: var(--consent-padding);
  box-sizing: border-box;
  overflow: auto;
  font-size: var(--consent-font-size);
  line-height: 1.6;
}

/* 見出し/本文のサンプルスタイル */
.consent-scrollbox h1 {
  font-size: 1.125rem;
  margin: 0 0 8px 0
}

.consent-scrollbox h2 {
  font-size: 1rem;
  margin: 12px 0 6px 0
}

.consent-scrollbox p {
  margin: 8px 0
}


/* コントロール例 */
.controls {
  margin: 12px 0
}

.controls label {
  margin-right: 8px
}

#consent-section {
  width: 100%;
  height: 100%;
  border: 3px solid #ff0000;
  border-radius: 8px;
}

/* ============================================
   order.html.twig 用追加スタイル
   作成日: 2024-12-19
   ============================================ */

/* 入力フィールド（50%幅） */
.order__input-width-50 {
  width: 50%;
  margin-bottom: 5px;
}

/* 入力フィールド（80%幅） */
.order__input-width-80 {
  width: 80%;
  margin-bottom: 5px;
}

/* 入力フィールド（120px幅） */
.order__input-width-120 {
  width: 120px;
  margin-right: 10px;
}

/* 入力フィールド（120px幅、高さ2rem） */
.order__input-width-120-height-2rem {
  width: 120px;
  height: 2.0rem;
}

/* テキストエリア（高さ150px） */
.order__textarea-height-150 {
  height: 150px;
}

/* ラベル（通常、マージン右10px） */
.order__label-normal {
  font-weight: normal;
  margin-right: 10px;
}

/* ラベル（通常、マージン右なし） */
.order__label-normal-no-margin {
  font-weight: normal;
}

/* ラベル（マージン左100px） */
.order__label-margin-left-100 {
  margin-left: 100px;
}

/* ラジオボタンエリア */
.order__app_kakkbn-area {
  line-height: 1.2;
  margin-top: 10px;
}

/* テーブルヘッダー（マージン0、最小幅210px） */
.order__table-header-margin {
  margin: 0;
  min-width: 210px;
}

/* テーブルセル（マージン0） */
.order__table-cell-margin {
  margin: 0;
}

/* 料金シミュレータテーブル */
.order__price-simulator-table {
  display: table;
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

/* テーブルヘッダー行 */
.order__table-header-row {
  display: table-row;
  font-weight: bold;
  background: #f2f2f2;
}

/* テーブル行 */
.order__table-row {
  display: table-row;
}

/* テーブルセル（ボーダー付き） */
.order__table-cell-border {
  display: table-cell;
  border: 1px solid black;
  padding: 8px;
}

/* 読み取り専用入力フィールド */
.order__readonly-input {
  background-color: transparent;
  background: transparent;
  text-align: center;
  border: none;
  outline: none;
  box-shadow: none;
  cursor: default;
}

/* エラーメッセージ */
.order__error-message {
  color: #dc3545;
}

/* ボタン（右寄せ、最小幅120px） */
.order__btn-submit-right {
  min-width: 120px;
  margin-top: 0px;
  float: right;
}

.notes-files-upload {
  margin-left: 32px;
  font-size: 15px;
  color: #666;
}

/* ============================================
   モーダル表示用スタイル（order.html.twig用）
   ============================================ */

/* モーダルオーバーレイ */
.order-confirm__modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* モーダルコンテナ */
.order-confirm__modal-container {
  background: white;
  padding: 0;
  /* max-width: 1250px; */
  max-width: 880px;
  width: 100%;
  max-height: 95%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 20px;
  border-radius: 10px;
}

/* モーダルヘッダー */
.order-confirm__modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid #ddd;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-confirm__modal-header .logo-small {
  margin-right: 10px;
}

.order-confirm__modal-title {
  flex: 1;
  font-weight: bold;
}

.order-confirm__header-buttons {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* モーダルコンテンツ */
.order-confirm__modal-content {
  padding: 20px;
  background: white;
  overflow-y: auto;
  overflow-x: auto;
  flex: 1;
  min-height: 0;
  padding-bottom: 90px;
}

/* モーダルボディ */
.order-confirm__modal-body {
  padding: 0;
}

.order-confirm__modal-wbody {
  margin-top: 0;
  padding-top: 0;
}

/* ============================================
   モーダル内の料金シミュレータテーブル用スタイル
   ============================================ */

/* 料金シミュレータテーブル */
.order-confirm__price-simulator-table {
  display: table;
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

/* テーブルヘッダー行 */
.order-confirm__table-header-row {
  display: table-row;
  font-weight: bold;
  background: #f2f2f2;
}

/* テーブルセル（ボーダー付き） */
.order-confirm__table-cell-border {
  display: table-cell;
  border: 1px solid black;
  padding: 8px;
}

/* 読み取り専用入力フィールド */
.order-confirm__readonly-input {
  background-color: #f2f2f2;
  text-align: center;
  border: none;
  outline: none;
  box-shadow: none;
  cursor: default;
}

/* 読み取り専用入力フィールド（全幅） */
.order-confirm__readonly-input-fullwidth {
  width: 100%;
  box-sizing: border-box;
}

/* テーブル行 */
.order-confirm__table-row {
  display: table-row;
}


/* ============================================
   order.html.twig 用追加スタイル
   2026-01-07
============================================ */

/* 横スクロールバーを防ぐ */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

html *,
body * {
  box-sizing: border-box;
}


body.childPage {
  padding: 0;
  background: #f5f6f8;
  overflow-x: hidden;
  max-width: 100%;
}


/* ページの幅：tablelist max-width 1210px 対応 */
body.childPage .midcontent {
  max-width: 1210px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* 箱をカード化 */
body.childPage .wbox.basicArea {
  background: #fff;
  border: 1px solid #e6e8ee;
  width: 100%;
  max-width: 100%;
  /* max-width: 1210px; */
  /* max-width: 980px; */
  /* man-width: 928px; */
  max-width: 880px;
  box-sizing: border-box;
  overflow-x: hidden;
  margin: 0 auto;
  border-radius: 10px;
}

body.childPage .wbox.basicArea .wbody {
  padding: 0 32px;
}

/* ===== tablelist上書き ===== */
body.childPage table.tablelist {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  box-sizing: border-box;
}

body.childPage table.tablelist tbody {
  overflow: visible;
  width: 100%;
  max-width: 100%;
}

/* tr要素を横幅いっぱいに */
body.childPage table.tablelist tr {
  width: 100%;
  max-width: 100%;
}

/* 既存：.tablelist th { min-width:210px; width:210px; ... } を上書き */
body.childPage table.tablelist th {
  width: 180px;
  min-width: 180px;
  /* background: #fafbfc; */
  border-color: #eef0f4;
  padding: 24px 0;
  padding-right: 16px;
  vertical-align: top;
  border-left: 0;
  border-right: 0;
}

body.childPage .order-confirm__modal-wbody table.tablelist th {
  padding: 10px 0;
}

/* 既存：.tablelist td { max-width:1000px; ... } を上書き */
body.childPage table.tablelist td {
  max-width: none;
  border-color: #eef0f4;
  padding: 24px 0;
  vertical-align: top;
  overflow: visible;
  word-wrap: break-word;
  word-break: break-word;
  border-right: 0;
  border-left: 0;
}

body.childPage table.tablelist td.border-b-0 {
  border-bottom: 0;
}

body.childPage table.tablelist th.border-b-0 {
  border-bottom: 0;
}

body.childPage .order-confirm__modal-wbody table.tablelist td {
  padding: 10px 0;
}
body.childPage .order-confirm__modal-wbody table.tablelist th label {
  opacity: 0.8;
}
body.childPage .order-confirm__modal-wbody table.tablelist td label {
  font-weight: normal;
}

/* td内の要素が適切に表示されるように */
body.childPage table.tablelist td>* {
  max-width: 100%;
  box-sizing: border-box;
}

/* 親要素の横スクロール対策 */
body.childPage #content-wrapper,
body.childPage #maincontent,
body.childPage .row,
body.childPage .cfx {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* td内のテキストやラベルが隠れないように */
body.childPage table.tablelist td span,
body.childPage table.tablelist td label,
body.childPage table.tablelist td div {
  overflow: visible;
  word-wrap: break-word;
  word-break: break-word;
}

#file-list .file-item-name {
  max-width: 520px;
  width: 100%;
  font-size: 15px;
  line-height: 18px;
  /* color: #666; */
  font-weight: 400;
  margin-right: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* セクション見出し（colspan=2） */
body.childPage table.tablelist th[colspan="2"] {
  font-weight: 700;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-bottom: 0;
  border-top: 0;
  padding-top: 60px;
}

/* colspan=2のtrも横幅いっぱいに */
body.childPage table.tablelist tr:has(th[colspan="2"]) {
  width: 100%;
  max-width: 100%;
}

/* 最初の一つ目のセクション見出し（colspan=2）のみ - 最初のtr内のthを選択 */
body.childPage table.tablelist>tbody>tr:first-child th[colspan="2"],
body.childPage table.tablelist tr:first-child th[colspan="2"] {
  padding-top: 16px;
}

/* 2つ目以降のセクション見出し（colspan=2） */
body.childPage table.tablelist>tbody>tr:not(:first-child) th[colspan="2"],
body.childPage table.tablelist tr:not(:first-child) th[colspan="2"] {
  padding-top: 56px;
}

body.childPage table.tablelist th[colspan="2"].margin-bottom-20 {
  margin-bottom: 0;
}

/* colspan=2のtrも横幅いっぱいに */
body.childPage table.tablelist tr:has(th[colspan="2"]) {
  width: 100%;
}

/* label の global が強いので、フォーム内だけ調整 */
body.childPage table.tablelist th label {
  font-size: 14px;
  font-weight: 700;
  color: #333333;
}

body.childPage table.tablelist th label .form_require:after {
  margin-left: 4px;
}

/* ===== 入力系：既存 input[type="text"] 高さ30px を上書き ===== */
body.childPage table.tablelist input[type="text"],
body.childPage table.tablelist input[type="password"],
body.childPage table.tablelist textarea {
  height: auto;
  min-height: 40px;
  font-size: 16px;
  padding: 6px 12px;
  /* border: 1px solid #d8dde6; */
  border-radius: 6px;
  /* background: #fff; */
  line-height: 1.4;
  box-sizing: border-box;
  margin-bottom: 0;
}

body.childPage table.tablelist textarea {
  min-height: 140px;
  resize: vertical;
  width: 100%;
}

/* エラー状態のパスワードフィールド */
body.childPage table.tablelist input[type="password"].form-input-error {
  border: 1px solid #dc3545 !important;
  background-color: #fef3f4 !important;
}

body.childPage table.tablelist input[type="password"].form-input-error:focus:not([readonly]) {
  outline: none;
  border-color: #dc3545 !important;
  box-shadow: none !important;
}

body.childPage table.tablelist input[type="password"].form-input-normal {
  /* border: 1px solid #d8dde6; */
  background-color: #fff;
}



body.childPage table.tablelist input[type="text"][name="app_tel"],
body.childPage table.tablelist input[type="text"][name="app_adr"],
body.childPage table.tablelist input[type="text"][name="app_nm"],
body.childPage table.tablelist input[type="text"][name="app_kana"],
body.childPage table.tablelist input[type="text"][name="app_tcode"] {
  width: 320px;
}

body.childPage table.tablelist input[type="text"][name="app_divnm"],
body.childPage table.tablelist input[type="text"][name="app_compnm"] {
  width: 100%;
}

body.childPage table.tablelist input[type="text"][name="app_tcode"].form-input-error {
  border-color: #dc3545 !important;
}


body.childPage table.tablelist input[type="text"][name="app_tel"],
body.childPage table.tablelist input[type="text"][name="app_nm"],
body.childPage table.tablelist input[type="text"][name="app_kana"],
body.childPage table.tablelist input[type="text"][name="app_tcode"] {
  width: 160px;
}

body.childPage table.tablelist input[type="password"][name="app_passwd"],
body.childPage table.tablelist input[type="password"][name="app_passwd_a"] {
  width: 320px;
}


body.childPage table.tablelist input[type="text"][name="app_tcode"].form-input-readonly {
  background-color: #f5f6f8 !important;
}

/* ===== ドロップゾーン：固定1000pxをレスポンシブに ===== */
body.childPage #drop-zone {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 140px;
  margin: 10px 0 0;
  box-sizing: border-box;
}

body.childPage #drop-zone.form-input-error {
  background-color: #fef3f4;
  color: #721c24;
  border: 2px dotted #f1aeb5;
}


body.childPage .order__price-simulator-table {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  display: block;
  background-color: #f5f6f8;
  border: 0;
}

/* ヘッダー行をFlexboxでレイアウト */
body.childPage .order__price-simulator-table .order__table-header-row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  background: none;
}

/* ヘッダーセル */
body.childPage .order__price-simulator-table .order__table-header-row .order__table-cell-border {
  padding: 8px 8px 0px 8px;
  font-weight: bold;
  text-align: center;
  box-sizing: border-box;
  font-size: 14px;
  border: 1px solid #eef0f4;
  border-right: none;
  border-bottom: none;
}

/* ヘッダーセルの最後の列は右borderを表示 */
body.childPage .order__price-simulator-table .order__table-header-row .order__table-cell-border:last-child {
  border-right: 1px solid #eef0f4;
}

/* ヘッダー行の最後の行は下borderを表示（通常は1行なので不要かも） */
body.childPage .order__price-simulator-table .order__table-header-row:last-child .order__table-cell-border {
  border-bottom: 1px solid #eef0f4;
}

/* 最初の3つのヘッダーセル（短い列：各20%） */
body.childPage .order__price-simulator-table .order__table-header-row .order__table-cell-border:nth-child(1),
body.childPage .order__price-simulator-table .order__table-header-row .order__table-cell-border:nth-child(2),
body.childPage .order__price-simulator-table .order__table-header-row .order__table-cell-border:nth-child(3) {
  flex: 0 0 20%;
  min-width: 100px;
}

/* 料金のヘッダーセル（長い列：40%） */
body.childPage .order__price-simulator-table .order__table-header-row .order__table-cell-border:nth-child(4) {
  flex: 1 1 40%;
  min-width: 150px;
}

/* データ行をFlexboxでレイアウト */
body.childPage .order__price-simulator-table .order__table-row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

/* データセル */
body.childPage .order__price-simulator-table .order__table-row .order__table-cell-border {
  padding: 0 8px 8px 8px;
  border: 1px solid #eef0f4;
  border-right: none;
  border-top: none;
  text-align: center;
  box-sizing: border-box;
}

/* データセルの最後の列は右borderを表示 */
body.childPage .order__price-simulator-table .order__table-row .order__table-cell-border:last-child {
  border-right: 1px solid #eef0f4;
}

/* データ行の最初の行は上borderを表示 */
body.childPage .order__price-simulator-table .order__table-row:first-child .order__table-cell-border {
  border-top: 1px solid #eef0f4;
}

/* データ行の最後の行は下borderを表示 */
body.childPage .order__price-simulator-table .order__table-row:last-child .order__table-cell-border {
  border-bottom: 1px solid #eef0f4;
}

/* 最初の3つのデータセル（短い列：各20%） */
body.childPage .order__price-simulator-table .order__table-row .order__table-cell-border:nth-child(1),
body.childPage .order__price-simulator-table .order__table-row .order__table-cell-border:nth-child(2),
body.childPage .order__price-simulator-table .order__table-row .order__table-cell-border:nth-child(3) {
  flex: 0 0 20%;
  min-width: 100px;
}

/* 料金のデータセル（長い列：40%） */
body.childPage .order__price-simulator-table .order__table-row .order__table-cell-border:nth-child(4) {
  flex: 1 1 40%;
  min-width: 150px;
}

/* 読み取り専用入力フィールドの幅調整（料金シミュレータテーブル内のみ） */
body.childPage .order__price-simulator-table .order__readonly-input,
body.childPage .order__price-simulator-table .order__readonly-input:focus,
body.childPage .order__price-simulator-table .order__readonly-input:hover,
body.childPage .order__price-simulator-table input[readonly],
body.childPage .order__price-simulator-table input[readonly]:focus,
body.childPage .order__price-simulator-table input[readonly]:hover {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  border: none !important;
  padding: 0 !important;
  background-color: transparent !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: default;
}

body.childPage .order__table-cell-border {
  border-color: #eef0f4;
}

/* レスポンシブ対応：タブレット以下 */
@media (max-width: 840px) {

  /* テーブルコンテナを横並びに */
  body.childPage .order__price-simulator-table {
    display: flex;
    flex-direction: row;
    gap: 0;
  }

  /* ヘッダー行を縦並びに */
  body.childPage .order__price-simulator-table .order__table-header-row {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    width: auto;
  }

  /* データ行を縦並びに */
  body.childPage .order__price-simulator-table .order__table-row {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: auto;
  }

  /* ヘッダーセルを縦に並べる */
  body.childPage .order__price-simulator-table .order__table-header-row .order__table-cell-border {
    width: 100%;
    border-right: 1px solid #eef0f4;
    border-bottom: none;
    border-left: 1px solid #eef0f4;
  }

  /* ヘッダーセルの最初のセルは上borderを表示 */
  body.childPage .order__price-simulator-table .order__table-header-row .order__table-cell-border:first-child {
    border-top: 1px solid #eef0f4;
  }

  /* ヘッダーセルの最後のセルは下borderを表示 */
  body.childPage .order__price-simulator-table .order__table-header-row .order__table-cell-border:last-child {
    border-bottom: 1px solid #eef0f4;
  }

  /* データセルを縦に並べる */
  body.childPage .order__price-simulator-table .order__table-row .order__table-cell-border {
    width: 100%;
    border-right: 1px solid #eef0f4;
    border-top: none;
    border-left: 1px solid #eef0f4;
  }

  /* データセルの最初のセルは上borderを表示 */
  body.childPage .order__price-simulator-table .order__table-row .order__table-cell-border:first-child {
    border-top: 1px solid #eef0f4;
  }

  /* データセルの最後のセルは下borderを表示 */
  body.childPage .order__price-simulator-table .order__table-row .order__table-cell-border:last-child {
    border-bottom: 1px solid #eef0f4;
  }
}

/* レスポンシブ対応：スマホ以下 */
@media (max-width: 420px) {

  /* すべてのセルを1列に（100%） */
  body.childPage .order__price-simulator-table .order__table-header-row .order__table-cell-border,
  body.childPage .order__price-simulator-table .order__table-row .order__table-cell-border {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
  }
}

/* ===== 送信ボタン ===== */
body.childPage .order__btn-submit-right,
body.childPage #chkBtn {
  float: none;
  display: inline-block;
  border: 0;
  background: #1f6feb;
  color: #fff;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

body.childPage .order__btn-submit-right:hover,
body.childPage #chkBtn:hover {
  background: #1a5fd4;
}

body.childPage .order__btn-submit-right:active,
body.childPage #chkBtn:active {
  background: #1859c7;
}

/* 必須項目テキスト（th[colspan="2"]内のみ） */
body.childPage table.tablelist th[colspan="2"] .required-text {
  color: #dc3545;
  font-size: 14px;
}

/* buttonが th[colspan=2] の中にあるので右寄せしたい場合 */
body.childPage table.tablelist th[colspan="2"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 18px;
  padding-bottom: 6px;
}

body.childPage table.tablelist tr.bg-color-lime th[colspan="2"] {
  padding-right: 0;
  padding-bottom: 0;
}

/* ===== スマホ：縦積み（table崩れ対策） ===== */
@media (max-width: 768px) {

  body.childPage table.tablelist,
  body.childPage table.tablelist tbody,
  body.childPage table.tablelist tr,
  body.childPage table.tablelist th,
  body.childPage table.tablelist td {
    display: block;
    width: 100%;
  }

  body.childPage table.tablelist tr {
    border-top: 1px solid #eef0f4;
  }

  body.childPage table.tablelist th {
    width: auto;
    min-width: 0;
    border-top: 0;
    background: transparent;
    padding-bottom: 6px;
  }

  body.childPage table.tablelist td {
    border-top: 0;
    padding-top: 6px;
  }
}

.error-text {
  font-size: 13px;
  padding-top: 10px;
  display: block;
}

.warning-text {
  font-size: 13px;
}

input[name="app_dldate"] {
  min-width: 200px;
}

/* 納品希望日がreadonlyの時の見た目（disabled風） */
input[name="app_dldate"].form-input-readonly {
  background-color: #f5f5f5;
  cursor: not-allowed;
  color: #666;
}

/* カレンダーボタンがdisabledの時の見た目 */
.ui-datepicker-trigger:disabled,
.ui-datepicker-trigger.dldate-trigger-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none; /* クリックイベントを完全に無効化 */
}

.app-dldate-div__row {
  display: flex;
  align-items: center;
}

body.childPage #drop-zone {
  background-color: #f2f5fe;
  border: 2px dotted #cce0ff;
  color: #1f6feb;
}

#modal_tmp_price,
#tmp_price {
  color: #188038;
  font-weight: bold;
}



.ui-widget.ui-widget-content {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(32, 33, 36, .2);
  -webkit-box-shadow: 0 2px 16px 0 rgba(32, 33, 36, .2);
}

/* プライバシーポリシー/免責事項モーダルの最大幅を制限 */
.ui-widget.ui-widget-content[aria-describedby="policy-content-modal"] {
  max-width: 880px;
  padding: 0;
}

#policy-content-modal.ui-dialog-content {
  padding: 0;
}



input[name="app_progtitle"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}


/* ラベル（通常、マージン右10px） */
.order__label-normal {
  font-weight: normal;
  margin-right: 0;
}


input[type="button"].btn-customer-load {
  color: #1f6feb;
  padding: 4px 16px;
  border-radius: 6px;
  border: 1px solid #1f6feb;
  font-size: 14px;
  line-height: 24px;
  min-height: auto;
  transition: all 0.2s ease;
  cursor: pointer;
}

input[type="button"].btn-customer-load:hover {
  background-color: #1f6feb;
  color: #fff;
  border-color: #1f6feb;
}

input[type="button"].btn-customer-load:active {
  background-color: #1a5fd4;
  border-color: #1a5fd4;
}

input[type="button"].btn-customer-load:disabled,
input[type="button"].btn-customer-load[disabled="disabled"] {
  background-color: #e0e0e0 !important;
  color: #9e9e9e !important;
  border-color: #bdbdbd !important;
  cursor: not-allowed !important;
  opacity: 0.6;
}

input[type="button"].btn-customer-load:disabled:hover,
input[type="button"].btn-customer-load:disabled:active,
input[type="button"].btn-customer-load[disabled="disabled"]:hover,
input[type="button"].btn-customer-load[disabled="disabled"]:active {
  background-color: #e0e0e0 !important;
  color: #9e9e9e !important;
  border-color: #bdbdbd !important;
  cursor: not-allowed !important;
}




/* ============================================
   order_detail.html.twig まとめてスタイル
   ============================================ */


/* 料金シミュレータテーブル */
.order-confirm__price-simulator-table {
  display: table;
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

body.childPage .order-confirm__price-simulator-table {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  display: block;
  background-color: #f5f6f8;
  border: 0;
}

/* テーブルヘッダー行 */
.order-confirm__table-header-row {
  display: table-row;
  font-weight: bold;
  background: #f2f2f2;
}

/* ヘッダー行をFlexboxでレイアウト */
body.childPage .order-confirm__price-simulator-table .order-confirm__table-header-row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  background: none;
}

/* ヘッダーセル */
body.childPage .order-confirm__price-simulator-table .order-confirm__table-header-row .order-confirm__table-cell-border {
  padding: 8px 8px 0px 8px;
  font-weight: bold;
  text-align: center;
  box-sizing: border-box;
  font-size: 12px;
  border: 1px solid #eef0f4;
  border-right: none;
  border-bottom: none;
}

/* ヘッダーセルの最後の列は右borderを表示 */
body.childPage .order-confirm__price-simulator-table .order-confirm__table-header-row .order-confirm__table-cell-border:last-child {
  border-right: 1px solid #eef0f4;
}

/* ヘッダー行の最後の行は下borderを表示 */
body.childPage .order-confirm__price-simulator-table .order-confirm__table-header-row:last-child .order-confirm__table-cell-border {
  border-bottom: 1px solid #eef0f4;
}

/* 最初の3つのヘッダーセル（短い列：各20%） */
body.childPage .order-confirm__price-simulator-table .order-confirm__table-header-row .order-confirm__table-cell-border:nth-child(1),
body.childPage .order-confirm__price-simulator-table .order-confirm__table-header-row .order-confirm__table-cell-border:nth-child(2),
body.childPage .order-confirm__price-simulator-table .order-confirm__table-header-row .order-confirm__table-cell-border:nth-child(3) {
  flex: 0 0 20%;
  min-width: 100px;
}

/* 料金のヘッダーセル（長い列：40%） */
body.childPage .order-confirm__price-simulator-table .order-confirm__table-header-row .order-confirm__table-cell-border:nth-child(4) {
  flex: 1 1 40%;
  min-width: 150px;
}

/* テーブル行 */
.order-confirm__table-row {
  display: table-row;
}

/* データ行をFlexboxでレイアウト */
body.childPage .order-confirm__price-simulator-table .order-confirm__table-row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;

  font-size: 15px;
}

/* テーブルセル（ボーダー付き） */
.order-confirm__table-cell-border {
  display: table-cell;
  border: 1px solid black;
  padding: 8px;
}

/* データセル */
body.childPage .order-confirm__price-simulator-table .order-confirm__table-row .order-confirm__table-cell-border {
  padding: 0 8px 8px 8px;
  border: 1px solid #eef0f4;
  border-right: none;
  border-top: none;
  text-align: center;
  box-sizing: border-box;
}

/* データセルの最後の列は右borderを表示 */
body.childPage .order-confirm__price-simulator-table .order-confirm__table-row .order-confirm__table-cell-border:last-child {
  border-right: 1px solid #eef0f4;
}

/* データ行の最初の行は上borderを表示 */
body.childPage .order-confirm__price-simulator-table .order-confirm__table-row:first-child .order-confirm__table-cell-border {
  border-top: 1px solid #eef0f4;
}

/* データ行の最後の行は下borderを表示 */
body.childPage .order-confirm__price-simulator-table .order-confirm__table-row:last-child .order-confirm__table-cell-border {
  border-bottom: 1px solid #eef0f4;
}

/* 最初の3つのデータセル（短い列：各20%） */
body.childPage .order-confirm__price-simulator-table .order-confirm__table-row .order-confirm__table-cell-border:nth-child(1),
body.childPage .order-confirm__price-simulator-table .order-confirm__table-row .order-confirm__table-cell-border:nth-child(2),
body.childPage .order-confirm__price-simulator-table .order-confirm__table-row .order-confirm__table-cell-border:nth-child(3) {
  flex: 0 0 20%;
  min-width: 100px;
}

/* 料金のデータセル（長い列：40%） */
body.childPage .order-confirm__price-simulator-table .order-confirm__table-row .order-confirm__table-cell-border:nth-child(4) {
  flex: 1 1 40%;
  min-width: 150px;
}

body.childPage .order-confirm__table-cell-border {
  border-color: #eef0f4;
}

/* 読み取り専用入力フィールド */
.order-confirm__readonly-input {
  background-color: transparent;
  background: transparent;
  text-align: center;
  border: none;
  outline: none;
  box-shadow: none;
  cursor: default;
}

/* 読み取り専用入力フィールド（全幅） */
.order-confirm__readonly-input-fullwidth {
  width: 100%;
  box-sizing: border-box;
}

/* 読み取り専用入力フィールドの幅調整（料金シミュレータテーブル内のみ） */
body.childPage .order-confirm__price-simulator-table .order-confirm__readonly-input,
body.childPage .order-confirm__price-simulator-table .order-confirm__readonly-input:focus,
body.childPage .order-confirm__price-simulator-table .order-confirm__readonly-input:hover,
body.childPage .order-confirm__price-simulator-table input[readonly],
body.childPage .order-confirm__price-simulator-table input[readonly]:focus,
body.childPage .order-confirm__price-simulator-table input[readonly]:hover {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  border: none !important;
  padding: 0 !important;
  background-color: transparent !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: default;
  font-size: 15px!important;
}


#modal_back_btn.btn {
  padding: 6px 16px;
}