/* ============================================
   Contact Form 7 - 発注書アップロードフォーム
   Business Professional Style
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600&family=DM+Sans:wght@300;400;500&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --color-bg:         #F7F8FA;
  --color-surface:    #FFFFFF;
  --color-border:     #D8DCE6;
  --color-border-focus: #2E5FA3;
  --color-text:       #1C2333;
  --color-label:      #4A5368;
  --color-placeholder:#9BA3B4;
  --color-accent:     #2E5FA3;
  --color-accent-dark:#1E4080;
  --color-accent-light:#EBF0FA;
  --color-success:    #2A7D5A;
  --color-error:      #C0392B;
  --color-line:       #E2E6EE;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-card: 0 2px 16px 0 rgba(30,40,80,0.07), 0 1px 4px 0 rgba(30,40,80,0.04);
  --shadow-focus: 0 0 0 3px rgba(46,95,163,0.18);

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  --font-body: 'Noto Sans JP', 'DM Sans', sans-serif;
}

/* ---------- Form Wrapper ---------- */
.wpcf7 {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-bg);
  padding: 48px 40px;
  max-width: 600px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-line);
  position: relative;
}

/* アクセントライン（上部） */
.wpcf7::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent) 0%, #5B8FD6 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ---------- Form Title (任意で追加) ---------- */
.wpcf7-form-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.04em;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-line);
}

/* ---------- Label ---------- */
.wpcf7 label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-label);
  letter-spacing: 0.03em;
  cursor: default;
}

/* 必須マーク */
.wpcf7 label .wpcf7-form-control-wrap[data-name]::before,
.wpcf7 .wpcf7-not-valid-tip + label::after {
  display: none;
}

/* ラベルテキスト内の必須バッジ風装飾（CF7 shortcode外のテキスト） */
.wpcf7 label > span.required-badge {
  font-size: 10px;
  background: #FEF3CD;
  color: #8B5E00;
  padding: 1px 6px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 500;
}

/* ---------- Input / Textarea 共通 ---------- */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.wpcf7 input[type="text"]::placeholder,
.wpcf7 input[type="email"]::placeholder,
.wpcf7 textarea::placeholder {
  color: var(--color-placeholder);
  font-weight: 300;
}

/* フォーカス */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
  border-color: var(--color-border-focus);
  box-shadow: var(--shadow-focus);
  background: var(--color-surface);
}

/* ホバー */
.wpcf7 input[type="text"]:hover:not(:focus),
.wpcf7 input[type="email"]:hover:not(:focus),
.wpcf7 textarea:hover:not(:focus) {
  border-color: #A8B3CC;
}

/* ---------- Textarea ---------- */
.wpcf7 textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.7;
}

/* ---------- File Input ---------- */
.wpcf7 input[type="file"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-label);
  background: var(--color-surface);
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  outline: none;
}

.wpcf7 input[type="file"]:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-light);
  box-shadow: var(--shadow-focus);
}

.wpcf7 input[type="file"]:focus {
  border-color: var(--color-accent);
  background: var(--color-accent-light);
  box-shadow: var(--shadow-focus);
}

/* ファイルフィールドのラベル補足テキスト */
.wpcf7 label:has(input[type="file"]) {
  background: #FAFBFD;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 16px;
  gap: 10px;
}

/* ファイルフォーマット注記 */
.wpcf7 label:has(input[type="file"])::after {
  content: '対応形式：.xlsx　最大サイズ：3MB';
  display: block;
  font-size: 11px;
  color: var(--color-placeholder);
  font-weight: 300;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* ---------- Submit Button ---------- */
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  padding: 13px 40px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  outline: none;
  box-shadow: 0 2px 8px rgba(46,95,163,0.25);
  min-width: 140px;
}

.wpcf7 input[type="submit"]:hover {
  background: var(--color-accent-dark);
  box-shadow: 0 4px 14px rgba(46,95,163,0.35);
  transform: translateY(-1px);
}

.wpcf7 input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(46,95,163,0.2);
}

.wpcf7 input[type="submit"]:focus-visible {
  box-shadow: var(--shadow-focus), 0 2px 8px rgba(46,95,163,0.25);
}

/* ---------- Validation ---------- */
.wpcf7-not-valid {
  border-color: var(--color-error) !important;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.12) !important;
}

.wpcf7-not-valid-tip {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--color-error);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ---------- Response Messages ---------- */
.wpcf7-response-output {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none !important;
}

/* 送信成功 */
.wpcf7-mail-sent-ok {
  background: #EAF6F1;
  color: var(--color-success);
  border-left: 3px solid var(--color-success) !important;
}

/* 送信失敗 */
.wpcf7-mail-sent-ng,
.wpcf7-spam-blocked {
  background: #FEF0EE;
  color: var(--color-error);
  border-left: 3px solid var(--color-error) !important;
}

/* バリデーションエラー */
.wpcf7-validation-errors {
  background: #FEF8E8;
  color: #8B5E00;
  border-left: 3px solid #F0B429 !important;
}

/* ---------- Spinner ---------- */
.wpcf7-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cf7-spin 0.7s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}

@keyframes cf7-spin {
  to { transform: rotate(360deg); }
}

/* ---------- Divider between fields ---------- */
.wpcf7 label + label {
  border-top: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .wpcf7 {
    padding: 32px 20px;
    border-radius: var(--radius-md);
  }

  .wpcf7 input[type="submit"] {
    width: 100%;
  }
}
.order-download-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #EBF0FA;
  border: 1px solid #C2D1ED;
  border-left: 4px solid #2E5FA3;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 24px;
  font-family: 'Noto Sans JP', sans-serif;
}

.order-download-banner__icon {
  flex-shrink: 0;
  color: #2E5FA3;
  opacity: 0.85;
}

.order-download-banner__body {
  flex: 1;
  min-width: 0;
}

.order-download-banner__title {
  font-size: 13px;
  font-weight: 600;
  color: #1C2333;
  letter-spacing: 0.03em;
  margin-bottom: 3px;
}

.order-download-banner__desc {
  font-size: 13px;
  color: black;
  font-weight: 400;
  line-height: 1.6;
}

.order-download-banner__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: #2E5FA3;
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(46,95,163,0.22);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.order-download-banner__btn:hover {
  background: #1E4080;
  box-shadow: 0 4px 12px rgba(46,95,163,0.32);
  transform: translateY(-1px);
}

.order-download-banner__btn:active {
  transform: translateY(0);
}

/* スマホ：縦並びに切り替え */
@media (max-width: 560px) {
  .order-download-banner {
    flex-wrap: wrap;
  }
  .order-download-banner__btn {
    width: 100%;
    justify-content: center;
  }
}
.shipping-table-section {
  font-family: 'Noto Sans JP', sans-serif;
  margin: 24px 0;
  border: 1px solid #E2E6EE;
  border-radius: 8px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 2px 16px 0 rgba(30,40,80,0.07), 0 1px 4px 0 rgba(30,40,80,0.04);
}

.shipping-table-section {
  font-family: 'Noto Sans JP', sans-serif;
  margin: 24px 0;
  border: 1px solid #E2E6EE;
  border-radius: 8px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 2px 16px 0 rgba(30,40,80,0.07), 0 1px 4px 0 rgba(30,40,80,0.04);
}

.shipping-table-section__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: #F7F8FA;
  border-bottom: 1px solid #E2E6EE;
}

.shipping-table-section__header-icon {
  color: #2E5FA3;
  display: flex;
  align-items: center;
}

.shipping-table-section__title {
  font-size: 13px;
  font-weight: 600;
  color: #1C2333;
  letter-spacing: 0.04em;
}

.shipping-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.shipping-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  color: #1C2333;
}

.shipping-table th,
.shipping-table td {
  padding: 7px 8px;
  text-align: right;
  border: 1px solid #E2E6EE;
  vertical-align: top;
  white-space: normal;    /* 改行を許可 */
  word-break: keep-all;
}

/* ---- ヘッダー ---- */
.shipping-table thead th {
  background: #F0F4FA;
  color: #4A5368;
  font-weight: 600;
  font-size: 11px;
  text-align: center;
  letter-spacing: 0.03em;
  line-height: 1.5;
  min-width: 64px;
}

/* 都道府県リスト（小文字） */
.area-pref {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #7A84A0;
  margin-top: 3px;
  line-height: 1.6;
  white-space: normal;
  word-break: keep-all;
}

/* 業者バッジ */
.carrier-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 2px;
  margin-top: 3px;
  letter-spacing: 0.04em;
}

.carrier-badge--yu {
  background: #FFF0E8;
  color: #C05400;
  border: 1px solid #F5C9A8;
}

/* 業者行（2行目） */
.carrier-row td.carrier-cell {
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  padding: 4px 8px;
  letter-spacing: 0.04em;
  border-top: none;
}

.carrier-cell--yu {
  background: #FFF8F3;
  color: #C05400;
}

.carrier-row td.carrier-cell:not(.carrier-cell--yu) {
  background: #F0F5FF;
  color: #1E4080;
}

/* ---- サイズ列 ---- */
.shipping-table .col-size {
  text-align: center;
  font-weight: 600;
  color: #2E5FA3;
  background: #F7F9FD;
  white-space: nowrap;
  min-width: 48px;
}

.shipping-table thead .col-size {
  background: #EBF0FA;
  color: #2E5FA3;
  vertical-align: middle;
}

/* ---- ゆうパック列 ---- */
.shipping-table .col-yupack {
  background: #FFFAF6;
  text-align: right;
}

.shipping-table thead .col-yupack {
  background: #FFF4EC;
  text-align: center;
}

/* ---- ゼブラ ---- */
.shipping-table tbody tr:nth-child(even) td {
  background: #FAFBFD;
}
.shipping-table tbody tr:nth-child(even) .col-size {
  background: #F0F4FA;
}
.shipping-table tbody tr:nth-child(even) .col-yupack {
  background: #FFF6EF;
}

/* ---- ホバー ---- */
.shipping-table tbody tr:hover td {
  background: #EBF0FA;
}
.shipping-table tbody tr:hover .col-size {
  background: #D6E4F5;
}
.shipping-table tbody tr:hover .col-yupack {
  background: #FFE8D6;
}

/* ---- 対象外セル ---- */
.shipping-table td.na {
  text-align: center;
  color: #9BA3B4;
  background: #F5F5F7 !important;
  font-size: 11px;
}

/* ---- 注記 ---- */
.shipping-note {
  padding: 8px 20px 12px;
  font-size: 11px;
  color: #9BA3B4;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* ---- スマホ ---- */
@media (max-width: 640px) {
  .shipping-table th,
  .shipping-table td {
    padding: 6px 6px;
    font-size: 11px;
  }
  .area-pref {
    font-size: 9px;
  }
}