    {% comment %}商品テーブル｜ここから{% endcomment %}
    <table class="invoice-table">
        <tbody>
            <tr class="invoice-table__tr -A">
                <th class="invoice-table__th -productName">品名</th>
                <th class="invoice-table__th -productUnitPrice">単価</th>
                <th class="invoice-table__th -productQuantity">数量</th>
                <th class="invoice-table__th -productPrice">金額</th>
            </tr>
            {% for line_item in line_items %}
                <tr class="invoice-table__tr -B">
                    <td class="invoice-table__td -A">
                        {% for tax_line in line_item.tax_lines %}
                            {% if tax_line.rate == 0.08 %}
                                {{ line_item.title }} ※
                                {% assign taxEight = taxEight | plus: line_item.line_price %}
                            {% elsif tax_line.rate == 0.1 %}
                                {{ line_item.title }}
                                {% assign taxTen = taxTen | plus: line_item.line_price%}
                            {% endif %}
                        {% endfor %}
                    </td>
                    <td class="invoice-table__td -B">{{ line_item.original_price | money }}</td>
                    <td class="invoice-table__td -B">{{ line_item.quantity }}</td>
                    <td class="invoice-table__td -B">{{ line_item.line_price | money }}</td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
    <div style="height: 1em;"></div>

    {% comment %}合計テーブル｜ここから{% endcomment %}
    <table class="invoice-total">
        <tbody>
            <tr>
                <td class="invoice-total__container -A"></td>
                <td class="invoice-total__container -B">
                    <table class="invoice-total__info">
                        <tbody>
                            {% for discount in discounts %}
                            <tr>
                                <td class="invoice-total__td -title">ディスカウント</td>
                                <td class="invoice-total__td -item">{{ discount.savings | money }}</td>
                            </tr>
                            {% endfor %}
                            <tr>
                                <td class="invoice-total__td -title">小計</td>
                                <td class="invoice-total__td -item">{{ subtotal_price | money }}</td>
                            </tr>
                            {% if shipping_address %}
                            <tr>
                                <td class="invoice-total__td -title">配送料</td>
                                <td class="invoice-total__td -item">{{ shipping_price | money }}</td>
                            </tr>
                            {% endif %}
                            {% comment %}軽減税率対応｜ここから{% endcomment %}
                            {% for tax_line in tax_lines %}
                                {% if tax_line.rate == 0.08 %}
                                <tr>
                                    <td class="invoice-total__td -title">消費税(8%)</td>
                                    <td class="invoice-total__td -item">{{ tax_line.price | money }}</td>
                                </tr>
                                {% elsif tax_line.rate == 0.1 %}
                                <tr>
                                    <td class="invoice-total__td -title">消費税(10%)</td>
                                    <td class="invoice-total__td -item">{{ tax_line.price | money }}</td>
                                </tr>
                                {% endif %}
                            {% endfor %}
                            {% comment %}軽減税率対応｜ここまで{% endcomment %}
                            <tr>
                                <td class="invoice-total__td  -title"><strong>合計</strong></td>
                                <td class="invoice-total__td -item"><strong>{{ total_price | money }}</strong></td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>

    {% comment %}税率別の合計｜ここから{% endcomment %}
    <div class="invoice-breakdown">
        <p class="invoice-breakdown__text">「※」がついている商品は軽減税率対象</p>
        {% for tax_line in tax_lines %}
        <p class="invoice-breakdown__text">
            <span>{{ tax_line.title | replace: 'CT','消費税' }}{{ tax_line.rate | times: 100 | round }}%：</span>
            <span>
                {% if tax_line.rate == 0.08 %}
                    {{ taxEight | money }}
                {% elsif tax_line.rate == 0.1 %}
                    {% assign taxTenTotal =  taxTen | plus: shipping_price | minus: total_discounts %}
                    {{ taxTenTotal | money }}
                {% endif %}
            </span>
            <span>（内税：{{ tax_line.price | money }}）</span>
            </p>
        {% endfor %}
          支払方法　　　クレジットカード
    </div>
    <div style="height: 2em;"></div>


</div>