{% set apgScThisMonth = apg_sc_get_month_days(0) %}
{% set apgScNextMonth = apg_sc_get_month_days(1) %}

<div id="calender" class="move_me move_up">
    <div class="container">
        <div class="ec-secHeading">
            <span class="ec-secHeading__en">CALENDER</span>
            <span class="ec-secHeading__line"></span>
            <span class="ec-secHeading__ja">営業日カレンダー</span>
        </div>
        <div class="row">
            <div class="col-xs-12 col-md-8">
                <div class="row calenders">
                    <div class="col-xs-6 cal_1">
                        <table class="apg_sc_table center-block">
                            <tbody>
                            <tr>
                                <th colspan="7" class="apg_sc_header text_orange">
                                    <span class="apg_sc_year">{{ apgScThisMonth['year'] }}</span>年<span
                                            class="apg_sc_month">{{ apgScThisMonth['month'] }}</span>月
                                </th>
                            </tr>
                            <tr class="week">
                                <th class="apg_sc_sunday_header">日</th>
                                <th class="apg_sc_monday_header">月</th>
                                <th class="apg_sc_tuesday_header">火</th>
                                <th class="apg_sc_wednesday_header">水</th>
                                <th class="apg_sc_thursday_header">木</th>
                                <th class="apg_sc_friday_header">金</th>
                                <th class="apg_sc_saturday_header">土</th>
                            </tr>
                            {% for tr in apgScThisMonth['days'] %}
                                <tr>
                                    {% for td in tr %}
                                        {% set apgCalendarClass = '' %}
                                        {% if loop.index == 7 %}
                                            {% set apgCalendarClass = 'apg_sc_saturday' %}
                                        {% elseif loop.index == 1 %}
                                            {% set apgCalendarClass = 'apg_sc_sunday' %}
                                        {% elseif loop.index == 2 %}
                                            {% set apgCalendarClass = 'apg_sc_monday' %}
                                        {% elseif loop.index == 3 %}
                                            {% set apgCalendarClass = 'apg_sc_tuesday' %}
                                        {% elseif loop.index == 4 %}
                                            {% set apgCalendarClass = 'apg_sc_wednesday' %}
                                        {% elseif loop.index == 5 %}
                                            {% set apgCalendarClass = 'apg_sc_thursday' %}
                                        {% elseif loop.index == 6 %}
                                            {% set apgCalendarClass = 'apg_sc_friday' %}
                                        {% endif %}
                                        {% if td.day == "now"|date('j') %}
                                            {% set apgCalendarClass = apgCalendarClass~' apg_sc_today' %}
                                        {% endif %}
                                        {% if td.holiday %}
                                            {% set apgCalendarClass = apgCalendarClass~' apg_sc_holiday' %}
                                        {% endif %}
                                        {% if td.day is empty %}
                                            {% set apgCalendarClass = apgCalendarClass~' apg_sc_non_day' %}
                                        {% endif %}
                                        <td title="{{ td.name }}" class="{{ apgCalendarClass }}">{{ td.day }}</td>
                                    {% endfor %}
                                </tr>
                            {% endfor %}
                        </table>
                    </div>
                    <div class="col-xs-6 cal_2">
                        <table class="apg_sc_table center-block">
                            <tbody>
                            <tr>
                                <th colspan="7" class="apg_sc_header text_orange">
                                    <span class="apg_sc_year">{{ apgScNextMonth['year'] }}</span>年<span
                                            class="apg_sc_month">{{ apgScNextMonth['month'] }}</span>月
                                </th>
                            </tr>
                            <tr class="week">
                                <th class="apg_sc_sunday_header">日</th>
                                <th class="apg_sc_monday_header">月</th>
                                <th class="apg_sc_tuesday_header">火</th>
                                <th class="apg_sc_wednesday_header">水</th>
                                <th class="apg_sc_thursday_header">木</th>
                                <th class="apg_sc_friday_header">金</th>
                                <th class="apg_sc_saturday_header">土</th>
                            </tr>
                            {% for tr in apgScNextMonth['days'] %}
                                <tr>
                                    {% for td in tr %}
                                        {% set apgCalendarClass = '' %}
                                        {% if loop.index == 7 %}
                                            {% set apgCalendarClass = 'apg_sc_saturday' %}
                                        {% elseif loop.index == 1 %}
                                            {% set apgCalendarClass = 'apg_sc_sunday' %}
                                        {% elseif loop.index == 2 %}
                                            {% set apgCalendarClass = 'apg_sc_monday' %}
                                        {% elseif loop.index == 3 %}
                                            {% set apgCalendarClass = 'apg_sc_tuesday' %}
                                        {% elseif loop.index == 4 %}
                                            {% set apgCalendarClass = 'apg_sc_wednesday' %}
                                        {% elseif loop.index == 5 %}
                                            {% set apgCalendarClass = 'apg_sc_thursday' %}
                                        {% elseif loop.index == 6 %}
                                            {% set apgCalendarClass = 'apg_sc_friday' %}
                                        {% endif %}
                                        {% if td.day == "now"|date('j') %}
                                            {% set apgCalendarClass = apgCalendarClass~' apg_sc_today' %}
                                        {% endif %}
                                        {% if td.holiday %}
                                            {% set apgCalendarClass = apgCalendarClass~' apg_sc_holiday' %}
                                        {% endif %}
                                        {% if td.day is empty %}
                                            {% set apgCalendarClass = apgCalendarClass~' apg_sc_non_day' %}
                                        {% endif %}
                                        <td title="{{ td.name }}" class="{{ apgCalendarClass }}">{{ td.day }}</td>
                                    {% endfor %}
                                </tr>
                            {% endfor %}
                        </table>
                    </div>
                </div>
            </div>
                
            <div class="col-xs-12 col-md-4">
                <p class="kyugyo_color">が休業日です</p>
                <!--<p>ご注文確認後２営業日以内に発送いたします。 <br />
（商品の到着は、お住まいの地域によって異なります。） </p>-->
				<div class="free_dial text-center">
				    <p class="fd_text text-center">お問い合わせ・ご注文は<br />平日 10:00 - 17:00</p>
				    <p class="fd text-center">0120-160-312</p>
				</div>
			</div>
        </div>
    </div>
</div>