/* ============================================================
  26toughline.css Ver.2.1 / 2026-10-14
  BtoB発注用・フラットな1カラム・角丸なし
  #ms-preorder の内部に限定（futureshop標準デザインへの干渉を抑制）
  元の手動修正済みCSSの情報構成・文字サイズ意図を踏まえた再設計
============================================================ */

#ms-preorder {
  --po-ink: #202e37;
  --po-muted: #606b73;
  --po-border: #d9dee2;
  --po-rule: #a7b2b9;
  --po-soft: #f5f7f8;
  --po-accent: #293e4c;
  --po-danger: #a12d35;
  box-sizing: border-box;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 16px 60px;
  background: #fff;
  color: var(--po-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
#ms-preorder *, #ms-preorder *::before, #ms-preorder *::after { box-sizing: border-box; }
#ms-preorder [hidden], #ms-po-formmailer[hidden] { display: none !important; }
#ms-preorder button, #ms-preorder input { font-family: inherit; }
#ms-preorder button { cursor: pointer; }
#ms-preorder button:disabled { cursor: not-allowed; }
#ms-preorder :is(button, input, summary):focus-visible {
  outline: 2px solid #326b8b;
  outline-offset: 2px;
}

/* ページ冒頭 / セクション見出し */
#ms-preorder .ms-po-header { padding: 10px 0 24px; border-bottom: 1px solid var(--po-border); }
#ms-preorder .ms-po-kicker {
  margin: 0 0 6px;
  color: var(--po-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}
#ms-preorder .ms-po-header h1 {
  margin: 0;
  font-size: clamp(21px, 2.7vw, 28px);
  line-height: 1.5;
  font-weight: 700;
  color: var(--po-ink);
  text-align:center;
}
#ms-preorder .ms-po-lead { margin: 7px 0 0; color: var(--po-muted); font-size: 13px; }
#ms-preorder .ms-po-section { margin: 0; padding: 30px 0 2px; border: 0; }
#ms-preorder .ms-po-section > h2 {
  margin: 0 0 16px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--po-rule);
  color: var(--po-ink);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.45;
}
#ms-preorder .ms-po-section h3 { margin: 0 0 7px; font-size: 17px; font-weight: 700; line-height: 1.5; }
#ms-preorder .ms-po-help { margin: 7px 0 0; color: var(--po-muted); font-size: 13px; line-height: 1.6; }

/* 商品の特徴 / 注意事項：余計なカード装飾を追加しない */
#ms-preorder .ms-po-article { max-width: 100%; }
#ms-preorder .ms-po-article p { margin: 0 0 9px; }
#ms-preorder .ms-po-article p:last-child { margin-bottom: 0; }
#ms-preorder .ms-po-article ul { padding: 0 0 0 1.45em; margin: 6px 0 0; }
#ms-preorder .ms-po-article li { margin: 2px 0; }
#ms-preorder .ms-po-feature-block + .ms-po-feature-block { margin-top: 19px; }
#ms-preorder .ms-po-notice-content { padding: 0 0 0 2px; }
#ms-preorder .ms-po-notice-content ul { margin-top: 7px; }

/* 顧客情報：入力不可項目は入力欄風にしない */
#ms-preorder .ms-po-customer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 25px;
  row-gap: 15px;
  margin-bottom: 20px;
}
#ms-preorder .ms-po-field { min-width: 0; }
#ms-preorder .ms-po-label, #ms-preorder .ms-po-field > label {
  display: block;
  margin: 0 0 4px;
  color: var(--po-muted);
  font-size: 13px;
  font-weight: 600;
}
#ms-preorder .ms-po-readonly {
  min-height: 27px;
  padding: 0 0 6px;
  border-bottom: 1px solid var(--po-border);
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: var(--po-ink);
}
#ms-preorder .ms-po-email-field { padding-top: 2px; }
#ms-preorder .ms-po-email-field > label { font-size: 15px; color: var(--po-ink); }
#ms-preorder .ms-po-required {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  border: 1px solid #c99aa0;
  font-size: 11px;
  font-weight: 600;
  color: var(--po-danger);
  line-height: 1.6;
}
#ms-preorder #ms-po-email {
  display: block;
  width: 100%;
  max-width: 530px;
  height: 45px;
  padding: 9px 12px;
  border: 1px solid #aab4bb;
  border-radius: 0;
  color: var(--po-ink);
  background: #fff;
  font-size: 16px;
}
#ms-preorder #ms-po-email::placeholder { color: #949fa6; }

/* 注文タブ：角丸・グラデーション・陰影なし */
#ms-preorder .ms-po-order-section { padding-top: 60px; }
#ms-preorder .ms-po-thickness-tabs,
#ms-preorder .ms-po-group-tabs { display: flex; gap: 0; width: 100%; }
#ms-preorder .ms-po-thickness-tabs { margin: 0 0 23px; }
#ms-preorder .ms-po-group-tabs { margin: 22px 0 14px; }
#ms-preorder .ms-po-tab,
#ms-preorder .ms-po-group-tab {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 1px solid #bec8ce;
  border-radius: 0;
  background: #fff;
  color: var(--po-ink);
  line-height: 1.4;
  font-weight: 600;
  text-align: center;
}
#ms-preorder .ms-po-tab + .ms-po-tab,
#ms-preorder .ms-po-group-tab + .ms-po-group-tab { border-left: 0; }
#ms-preorder .ms-po-tab { min-height: 52px; padding: 10px; font-size: 18px; }
#ms-preorder .ms-po-group-tab { min-height: 47px; padding: 9px; font-size: 20px; }
#ms-preorder .ms-po-tab.is-active,
#ms-preorder .ms-po-group-tab.is-active,
#ms-preorder .ms-po-tab[aria-selected="true"],
#ms-preorder .ms-po-group-tab[aria-selected="true"] {
  background: var(--po-accent);
  border-color: var(--po-accent);
  color: #fff;
}
#ms-preorder .ms-po-tab:hover:not(.is-active),
#ms-preorder .ms-po-group-tab:hover:not(.is-active) { background: var(--po-soft); }
#ms-preorder .ms-po-order-panel { min-width: 0; }
#ms-preorder .ms-po-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
#ms-preorder .ms-po-panel-header h3 { margin: 0; font-size: 19px; }
#ms-preorder .ms-po-reset,
#ms-preorder .ms-po-edit {
  min-height: 36px;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid #bfc7cd;
  border-radius: 0;
  background: #fff;
  color: var(--po-ink);
  font-size: 13px;
}
#ms-preorder .ms-po-reset:hover:not(:disabled),
#ms-preorder .ms-po-edit:hover:not(:disabled) { background: var(--po-soft); }
#ms-preorder .ms-po-reset:disabled { opacity: .45; }

/* 単価の位置を固定し、上下の情報階層をはっきり分ける */
#ms-preorder .ms-po-price-summary { padding: 10px 14px; border-top: 1px solid var(--po-border); border-bottom: 1px solid var(--po-border); background: var(--po-soft); }
#ms-preorder .ms-po-price-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; padding: 3px 0; }
#ms-preorder .ms-po-price-line span { font-size: 14px; }
#ms-preorder .ms-po-price-line strong { font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 詳細表：必要な人だけ開く。横スクロールは中だけ */
#ms-preorder .ms-po-size-chart,
#ms-preorder .ms-po-review { margin: 0 0 15px; border: 1px solid var(--po-border); border-radius: 0; background: #fff; }
#ms-preorder .ms-po-size-chart > summary,
#ms-preorder .ms-po-review > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
}
#ms-preorder .ms-po-size-chart > summary::-webkit-details-marker,
#ms-preorder .ms-po-review > summary::-webkit-details-marker { display: none; }
#ms-preorder .ms-po-size-chart > summary::after,
#ms-preorder .ms-po-review > summary::after { content: "+"; font-size: 22px; font-weight: 400; line-height: 1; }
#ms-preorder .ms-po-size-chart[open] > summary::after,
#ms-preorder .ms-po-review[open] > summary::after { content: "−"; }
#ms-preorder .ms-po-size-chart[open] > summary,
#ms-preorder .ms-po-review[open] > summary { border-bottom: 1px solid var(--po-border); }
#ms-preorder .ms-po-chart-scroll { overflow-x: auto; max-width: 100%; padding: 13px; -webkit-overflow-scrolling: touch; }
#ms-preorder .ms-po-chart-scroll > div { min-width: 0; }
#ms-preorder .ms-po-chart-scroll p:first-child { margin: 0 0 8px; font-weight: 600; font-size: 14px; }
#ms-preorder .ms-po-chart-scroll table { min-width: 650px; width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
#ms-preorder .ms-po-chart-scroll th,
#ms-preorder .ms-po-chart-scroll td { border: 1px solid var(--po-border); padding: 8px 10px; text-align: center; font-variant-numeric: tabular-nums; }
#ms-preorder .ms-po-chart-scroll th { background: var(--po-soft); font-weight: 600; }

/* SKU入力表 */
#ms-preorder .ms-po-table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
#ms-preorder .ms-po-sku-table { width: 100%; min-width: 340px; margin: 0; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
#ms-preorder .ms-po-sku-table th,
#ms-preorder .ms-po-sku-table td { padding: 11px 9px; border: 0; border-bottom: 1px solid var(--po-border); text-align: center; vertical-align: middle; font-size: 15px; }
#ms-preorder .ms-po-sku-table th { background: var(--po-soft); font-size: 13px; font-weight: 600; }
#ms-preorder .ms-po-sku-table tbody tr:nth-child(even) { background: #fbfcfc; }
#ms-preorder .ms-po-sku-table th:first-child,
#ms-preorder .ms-po-sku-table td:first-child { width: 21%; text-align: left; font-weight: 600; }
#ms-preorder .ms-po-sku-table th:nth-child(2),
#ms-preorder .ms-po-sku-table td:nth-child(2) { width: 27%; }
#ms-preorder .ms-po-sku-table th:nth-child(3),
#ms-preorder .ms-po-sku-table td:nth-child(3) { width: 26%; }
#ms-preorder .ms-po-sku-table th:last-child,
#ms-preorder .ms-po-sku-table td:last-child { width: 26%; }
#ms-preorder .ms-po-sku-table input[type="number"] {
  display: block;
  width: 76px;
  max-width: 100%;
  min-height: 42px;
  margin: 0 auto;
  padding: 7px 6px;
  border: 1px solid #9eabb3;
  border-radius: 0;
  background: #fff;
  color: var(--po-ink);
  text-align: center;
  font-size: 16px;
}
#ms-preorder .ms-po-sku-table input[type="number"]:focus { border-color: #326b8b; }

/* 小計・合計：同じ数字を過剰に目立たせない */
#ms-preorder .ms-po-subtotal { margin-top: 15px; padding: 9px 13px; background: var(--po-soft); border-top: 1px solid var(--po-border); border-bottom: 1px solid var(--po-border); }
#ms-preorder .ms-po-subtotal > div,
#ms-preorder .ms-po-total-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 33px; padding: 5px 0; }
#ms-preorder .ms-po-subtotal strong,
#ms-preorder .ms-po-total-line strong,
#ms-preorder .ms-po-total-line > span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
#ms-preorder .ms-po-total-box { padding: 5px 2px 0; }
#ms-preorder .ms-po-total-line { border-bottom: 1px solid #f0f2f3; }
#ms-preorder .ms-po-grand-total { margin-top: 8px; padding-top: 13px; padding-bottom: 9px; border-top: 2px solid var(--po-rule); border-bottom: 0; }
#ms-preorder .ms-po-grand-total strong:last-child { color: var(--po-ink); font-size: clamp(22px, 3.1vw, 27px); }

/* 一時確認：選択したSKUのみ、合計4行 */
#ms-preorder .ms-po-review { margin-bottom: 15px; }
#ms-preorder .ms-po-review-content { padding: 10px 15px 4px; }
#ms-preorder .ms-po-review-content h3 { margin: 10px 0 8px; font-size: 17px; }
#ms-preorder .ms-po-review-content table { width: 100%; border-collapse: collapse; table-layout: auto; }
#ms-preorder .ms-po-review-content td { padding: 9px 5px; border-bottom: 1px solid var(--po-border); font-size: 14px; }
#ms-preorder .ms-po-review-content td:last-child { text-align: right !important; white-space: nowrap; }
#ms-preorder .ms-po-review-content > table + p { margin: 6px 0 25px; font-size: 14px; }
#ms-preorder .ms-po-review-totals { padding-top: 8px; border-top: 1px solid var(--po-rule); }
#ms-preorder .ms-po-review-totals .ms-po-total-line { font-size: 15px; }
#ms-preorder .ms-po-edit { display: block; margin: 6px 15px 15px auto; }

/* エラー・確認・送信 */
#ms-preorder .ms-po-error { margin: 12px 0; padding: 10px 13px; border-left: 3px solid var(--po-danger); background: #fdf1f1; color: var(--po-danger); font-size: 14px; }
#ms-preorder .ms-po-agreement { margin: 18px 0 14px; padding: 12px 0; border-top: 1px solid var(--po-border); border-bottom: 1px solid var(--po-border); }
#ms-preorder .ms-po-agreement label { display: flex; align-items: flex-start; gap: 11px; margin: 0; font-size: 15px; line-height: 1.6; cursor: pointer; }
#ms-preorder #ms-po-agree { flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--po-accent); cursor: pointer; }
#ms-preorder #ms-po-agree:disabled { cursor: not-allowed; opacity: .65; }
#ms-preorder .ms-po-submit { display: block; width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--po-accent); border-radius: 0; background: var(--po-accent); color: #fff; text-align: center; font-size: 17px; font-weight: 700; }
#ms-preorder .ms-po-submit:hover:not(:disabled) { background: #162a37; }
#ms-preorder .ms-po-submit:disabled { border-color: #ced5d9; background: #e3e7e9; color: #7b878e; opacity: 1; }


#ms-preorder .ms-po-order-section > h2 {
  font-size: 30px;
  text-align: center;
}


/* TOUGHLINEシリーズの特徴：開閉式 */

#ms-preorder #ms-po-features .ms-po-feature-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--po-rule);
  list-style: none;
  cursor: pointer;
}

/* 標準の三角マークを非表示 */
#ms-preorder #ms-po-features summary::-webkit-details-marker {
  display: none;
}

/* 見出し */
#ms-preorder #ms-po-features summary h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.45;
}

/* 開閉マーク */
#ms-preorder #ms-po-features summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 400;
}

/* 開いているとき */
#ms-preorder #ms-po-features details[open] > summary::after {
  content: "−";
}

/* 説明本文の余白 */
#ms-preorder #ms-po-features .ms-po-article {
  padding-top: 20px;
}

/* スマホ */
@media (max-width: 767px) {
  #ms-preorder #ms-po-features summary h2 {
    font-size: 19px;
  }
}


/* ロット価格の表記位置を揃える */
#ms-preorder .ms-po-lot-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  column-gap: 8px;
}

/* スマホ */
@media (max-width: 767px) {
  #ms-preorder .ms-po-lot-row {
    grid-template-columns: 140px minmax(0, 1fr);
    column-gap: 6px;
  }
}


/* タブレット・スマホ：一覧の視認性とタップ領域を保つ */
@media (max-width: 767px) {
  #ms-preorder { padding: 10px 12px 45px; font-size: 15px; }
  #ms-preorder .ms-po-header { padding: 7px 0 20px; }
  #ms-preorder .ms-po-section { padding-top: 26px; }
  #ms-preorder .ms-po-section > h2 { font-size: 19px; margin-bottom: 13px; }
  #ms-preorder .ms-po-panel-header h3 { font-size: 17px; }
  #ms-preorder .ms-po-price-line span { font-size: 13px; }
  #ms-preorder .ms-po-price-line strong { font-size: 17px; }
  #ms-preorder .ms-po-sku-table th,
  #ms-preorder .ms-po-sku-table td { padding: 10px 5px; font-size: 13px; }
  #ms-preorder .ms-po-sku-table th { font-size: 12px; }
  #ms-preorder .ms-po-sku-table input[type="number"] { width: 67px; }
  #ms-preorder .ms-po-tab { font-size: 17px; }
  #ms-preorder .ms-po-group-tab { font-size: 18px; }
}
@media (max-width: 390px) {
  #ms-preorder { padding-left: 9px; padding-right: 9px; }
  #ms-preorder .ms-po-customer-grid { gap: 10px; }
  #ms-preorder .ms-po-tab { padding: 7px 4px; font-size: 15px; }
  #ms-preorder .ms-po-group-tab { padding: 7px 2px; font-size: 16px; }
  #ms-preorder .ms-po-sku-table { min-width: 320px; }
  #ms-preorder .ms-po-sku-table input[type="number"] { width: 60px; }
  #ms-preorder .ms-po-review-content td { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { #ms-preorder * { scroll-behavior: auto !important; } }

/* 確認チェックの直下に出すバリデーション警告（JavaScriptで生成） */
#ms-preorder .ms-po-validation-warnings {
  margin: 10px 0 0 31px;
  color: var(--po-danger, #a12d35);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
}
#ms-preorder .ms-po-validation-warnings p { margin: 2px 0; }
#ms-preorder .ms-po-validation-warnings[hidden] { display: none !important; }
@media (max-width: 767px) {
  #ms-preorder .ms-po-validation-warnings { font-size: 13px; }
}


/* 初期状態は両方非表示 */
#ms-po-member-view,
#ms-po-guest-view {
  display: none;
}

/* ログイン済み */
#ms-po-member-view.my-true {
  display: block;
}

/* 非ログイン */
#ms-po-guest-view.my-false {
  display: block;
}

