.cart-container {
    background: none;
    border-radius: var(--cart-radius);
    padding: 2rem 1rem;
    max-width: 900px;
    margin: 6rem auto;
    font-size: var(--cart-font-size);
  }
  
  .cart-title {
    color: var(--cart-title);
    font-size: var(--cart-font-size-lg);
    margin: 2rem 0 3rem 0;
    text-align: center;
  }
  
  .cart-empty {
    text-align: center;
    color: #888;
    padding: 2rem 0;
    font-size: var(--cart-font-size-lg);
  }
  
  .cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1.5rem;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    border: #dddddd 1px solid;
  }
  .cart-table th, .cart-table td {
    padding: 1rem 0.7rem;
    text-align: left;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.4rem;
    background: #fff;
  }
  .cart-table th {
    background: #f1f3f4;
    color: #333;
    font-weight: 700;
    text-align: center;
    border-bottom: 2px solid #e0e0e0;
  }
  .cart-table th:nth-child(2) {
    width: 35%;
  }
  .cart-table th:last-child, .cart-table td:last-child {
    border-right: none;
  }
  .cart-table tr:last-child td {
    border-bottom: none;
  }
  .cart-table tr:last-child td:last-child {
    font-size: var(--cart-font-size);
    color: #b71c1c;
    font-weight: bold;
    width: 10%;
  }
  .cart-thumb img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #e0e0e0;
  }
  .no-image {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    color: #aaa;
    border-radius: 4px;
    font-size: 1rem;
  }
  .cart-update-btn, .cart-remove-btn {
    margin-top: 0.3rem;
    padding: 0.3rem 1.2rem;
    border: none;
    border-radius: 4px;
    font-size: var(--cart-font-size-sm);
    cursor: pointer;
    transition: background 0.2s;
  }
  .cart-update-btn {
    background: var(--cart-accent);
    color: #fff;
  }
  .cart-update-btn:hover {
    background: #1565c0;
  }
  .cart-remove-btn {
    background: #b71c1c;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
  }
  .cart-remove-btn:hover {
    background: #e53935;
  }
  .cart-total-area {
    text-align: right;
    margin-bottom: 1.2rem;
    background: #fff;
    border-radius: 0;
    border: #cccccc 1px solid;
    padding: 1rem 1.5rem;
    font-size: var(--cart-font-size-sm);
  }
  .cart-total-label {
    font-weight: 600;
    margin-right: 0.5rem;
    color: #333;
    font-size: var(--cart-font-size-lg);
  }
  .cart-total-price {
    color: #b71c1c;
    font-size: var(--cart-font-size-lg);
    font-weight: 700;
  }
  .cart-purchase-form {
    text-align: right;
    margin-bottom: 1.5rem;
  }
  .cart-back {
    margin-bottom: 1.5rem;
    text-align: left;
  }
  .cart-back a {
    color: #1976d2;
    text-decoration: none;
    font-size: var(--cart-font-size);
  }
  .cart-back a:hover {
    text-decoration: underline;
  }
  .cart-invoice-summary-area {
    margin-top: 2rem;
    background: #fff;
    border-radius: var(--cart-radius);
    box-shadow: var(--cart-shadow);
    padding: 1rem;
  }
  .invoice-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
  }
  .invoice-summary-table th, .invoice-summary-table td {
    padding: 0.5rem 0.3rem;
    text-align: center;
    border-bottom: 1px solid var(--cart-border);
  }
  .invoice-summary-table th {
    background: var(--cart-table-header);
    font-weight: 600;
  }
  .cart-invoice-grand-total {
    text-align: right;
    font-size: var(--cart-font-size-lg);
    font-weight: 700;
    color: var(--cart-accent);
  }
  .purchase-form-container {
    max-width: 900px;
    margin: 0 auto 0 auto;
    padding: 24px 0 0 0;
    background: none;
    border-radius: 12px;
    font-family: 'Segoe UI', 'Meiryo', sans-serif;
  }
  .purchase-form-main {
    /*display: flex;*/
    gap: 32px;
    flex-wrap: wrap;
  }
  .purchase-form-section {
    flex: 1 1 350px;
    max-width: 900px;
    margin: 0 auto 0 auto;
    min-width: 320px;
    margin-bottom: 32px;
  }
  .purchase-form-title {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 16px;
    color: #333;
    text-align: center;
  }
  .cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1.5rem;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
  }
  .cart-table th, .cart-table td {
    padding: 1rem 0.7rem;
    text-align: left;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.4rem;
    background: #fff;
  }
  .cart-table th {
    background: #f1f3f4;
    color: #333;
    font-weight: 700;
    text-align: center;
    border-bottom: 2px solid #e0e0e0;
  }
  .cart-table th:nth-child(2) {
    width: 35%;
  }
  .cart-table th:last-child, .cart-table td:last-child {
    border-right: none;
  }
  .cart-table tr:last-child td {
    border-bottom: none;
  }
  .cart-thumb img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #e0e0e0;
  }
  .no-image {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    color: #aaa;
    border-radius: 4px;
    font-size: 1rem;
  }
  .cart-empty {
    color: #888;
    padding: 24px 0;
    text-align: center;
  }
  .cart-total-area {
    text-align: right;
    font-size: var(--cart-font-size);
    margin-top: 8px;
  }
  .cart-total-label {
    color: #666;
  }

  .customer-info-block {
    max-width: 900px;
    margin: 0 auto;
    background: var(--cart-bg);
    border-radius: 0;
    padding: 16px;
    margin-bottom: 40px;
  }
  .customer-info-label {
    font-size: var(--cart-font-size);
    color: #555;
    margin: 8px 0;
    padding-left: 0.5rem;
    border-left: solid 3px var(--color-orange);
  }
  .customer-info-value {
    font-size: var(--cart-font-size);
    color: #222;
    margin-bottom: 1.6rem;
  }
  .shipping-form-row {
    margin-bottom: 18px;
  }
  .delivery-address-radio {
    margin: 1.6rem auto;
  }
  .cart-purchase-btn {
    background: #007DD7;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 12px 32px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
  }
  .cart-purchase-btn:hover {
    background: #005fa3;
  }
  .cart-invoice-summary-area {
    margin-top: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 1rem;
  }
  .invoice-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
  }
  .invoice-summary-table th, .invoice-summary-table td {
    padding: 0.5rem 0.3rem;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
  }
  .invoice-summary-table th {
    background: #f7f7f7;
    font-weight: 600;
  }
  .cart-invoice-grand-total {
    text-align: right;
    font-size: 1.1rem;
    font-weight: 700;
    color: #007DD7;
  }
  .purchase-form-customer {
    margin:40px auto 100px auto;
  }
  // ... existing code ...

  /* 備考欄セクション */
  .purchase-form-note {
      margin-bottom: 2rem;
      padding: 1.5rem;
      background: #f8f9fa;
      border-radius: 8px;
      border: 1px solid #e9ecef;
  }
  
  .note-form-block {
      margin-top: 1rem;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
  }
  
  .note-form-block textarea{
      width: 40%;
      border-radius: 0;
  }

  .note-form-label {
      width: auto;
      display: block;
      font-weight: 600;
      color: #333;
      margin-bottom: 0.75rem;
      font-size: 1rem;
  }
  
  .note-form-textarea {
      width: 100%;
      padding: 0.75rem;
      border: 1px solid #ced4da;
      border-radius: 6px;
      font-size: 0.9rem;
      line-height: 1.5;
      resize: vertical;
      min-height: 100px;
      font-family: inherit;
      transition: border-color 0.2s ease;
  }
  
  .note-form-textarea:focus {
      outline: none;
      border-color: #007DD7;
      box-shadow: 0 0 0 2px rgba(0, 125, 215, 0.1);
  }
  
  .note-form-textarea::placeholder {
      color: #6c757d;
      font-size: 0.85rem;
  }
  
  .note-form-counter {
      text-align: right;
      margin-top: 0.5rem;
      font-size: 0.8rem;
      color: #6c757d;
  }
  
  .note-form-counter span {
      font-weight: 600;
      color: #007DD7;
  }
  // ... existing code ...

  /* 備考欄表示用 */
  .note-display-block {
      margin-top: 1rem;
  }
  
  .note-display-content {
      padding: 1rem;
      background: #fff;
      border: 1px solid #e9ecef;
      border-radius: 6px;
      font-size: 0.9rem;
      line-height: 1.6;
      white-space: pre-wrap;
      word-wrap: break-word;
  }  
  /* レスポンシブ対応 */
  @media (max-width: 768px) {
    .cart-container {
      padding: 0.5rem 0.1rem;
      margin: 4rem 0;
      font-size: 1rem;
    }
    .cart-title {
      font-size: var(--cart-font-size-lg);
      margin:40px auto 0 auto;
    }
    .cart-table, .cart-table thead, .cart-table tbody, .cart-table tr {
      display: block;
      width: 100%;
    }
    .cart-table tr {
      margin-bottom: 1.2rem;
      border-bottom: none;
      background: #fff;
      box-shadow: none;
      border-radius: 6px;
      overflow: hidden;
      padding: 0.7rem 0.5rem;
    }
    .cart-table th {
      display: none;
    }
    .cart-table td {
      display: flex;
      align-items: flex-start;
      border: none;
      border-right: none;
      padding: 0.5rem 0.3rem;
      font-size: 1.4rem;
      width: 100%;
      background: #fff;
      border-bottom: 1px solid #e0e0e0;
    }
    .cart-table td:before {
      content: attr(data-label);
      flex: 0 0 6.5em;
      color: #888;
      font-weight: 600;
      margin-right: 0.7em;
      font-size: 0.98em;
      min-width: 5em;
      display: block;
    }
    .cart-table td.cart-thumb:before {
      content: "商品画像";
    }
    .cart-table td:nth-child(2):before {
      content: "商品名";
    }
    .cart-table td:nth-child(3):before {
      content: "小売価格/卸価格";
    }
    .cart-table td:nth-child(4):before {
      content: "数量";
    }
    .cart-table td:nth-child(5):before {
      content: "税込小計";
    }
    .cart-table td:nth-child(6):before {
      content: "削除";
    }
    .cart-thumb img, .no-image {
      width: 60px;
      height: 60px;
    }
    .cart-remove-btn, .cart-update-btn {
      width: 100%;
      margin: 0.5rem 0 0 0;
      padding: 0.7rem 0;
      font-size: 1.1rem;
    }
    .cart-total-area {
      font-size: 1.4rem;
      margin-bottom: 1rem;
      padding: 1rem 0.5rem;
    }
    .cart-total-label, .cart-total-price {
      display: inline-block;
      font-size: var(--cart-font-size-lg);
      margin: 0.5rem 0;
    }
    .cart-back {
      margin-bottom: 1rem;
      text-align: center;
    }
    .cart-back a {
      font-size: 1.4rem;
    }
    /* インボイスサマリーも縦並びに */
    .cart-invoice-summary-area, .invoice-summary-table, .invoice-summary-table tr, .invoice-summary-table th, .invoice-summary-table td {
      display: block;
      width: 100%;
      text-align: left;
      font-size: 1rem;
    }
    .invoice-summary-table th, .invoice-summary-table td {
      padding: 0.3rem 0.1rem;
      border: none;
    }
    .cart-invoice-grand-total {
      font-size: 1.1rem;
      text-align: right;
    }
    .cart-table td {
    font-size: 1.4rem;
    }
    .cart-table tr:last-child td {
      border-bottom: #ccc 1px solid;
    }
    .cart-table tr:last-child td:last-child {
      border-bottom: none;
      width: 100%;
    }
    .cart-remove-btn, .cart-update-btn {
      width: 20%;
      text-align: center;
    }
    .purchase-form-container {
        margin:40px 0 0 0;
        padding: 8px 2px;
        border-radius: 0;
    }
    .cart-table {
    font-size: 0.9rem;
    }
    .customer-info-block {
    font-size: 0.95rem;
    border-radius: 0;
    }
    .cart-invoice-summary-area {
    padding: 0.5rem;
    }
    .invoice-summary-table th, .invoice-summary-table td {
    padding: 0.3rem 0.1rem;
    font-size: 0.92rem;
    }
    .purchase-form-main {
    margin0 0 0 0;
    border-radius: 0;
    }
    .purchase-form-customer {
        margin:40px auto 0 auto;
    }
    .shipping-form-row {
        margin-bottom: 0;
        font-size: var(--cart-font-size);
    }
    .delivery-address-radio {
        margin: 1.6rem auto;
    }
    .cart-purchase-form {
        text-align: center;
        margin-bottom: 1.5rem;
    }
      .purchase-form-note {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .note-form-textarea {
        font-size: 16px; /* iOSでズームを防ぐ */
        padding: 0.625rem;
    }
    
    .note-form-label {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .note-form-counter {
        font-size: 0.75rem;
    }
    .purchase-form-section {
      margin-bottom: 0;
    }
    .note-form-block textarea{
      width: 100%;
    }
    .note-display-content {
      padding: 0.75rem;
      font-size: 0.85rem;
    }
}