/** Shopify CDN: Minification failed

Line 17:0 Unexpected "<"
Line 21:7 Expected identifier but found "%"
Line 22:8 Unexpected "{"
Line 22:9 Expected identifier but found "%"
Line 23:10 Unexpected "{"
Line 23:11 Expected identifier but found "%"
Line 24:12 Unexpected "{"
Line 24:13 Expected identifier but found "%"
Line 25:14 Unexpected "<"
Line 25:49 Unexpected "{"
... and 32 more hidden warnings

**/

<section class="section section-rich-text">
  <div class="page-width">
    <div class="rich-text text-center">

      {% for block in section.blocks %}
        {% case block.type %}
          {% when 'heading' %}
            {% if template.name == 'index' and forloop.index == 1 %}
              <h1 class="rich-text__heading h1">{{ block.settings.heading | escape }}</h1>
            {% else %}
              <h2 class="rich-text__heading h2">{{ block.settings.heading | escape }}</h2>
            {% endif %}

          {% when 'text' %}
            <div class="rich-text__text rte">
              {{ block.settings.text }}
            </div>

          {% when 'button' %}
            {% if block.settings.button_label != blank and block.settings.button_link != blank %}
              <a href="{{ block.settings.button_link }}" class="button">
                {{ block.settings.button_label | escape }}
              </a>
            {% endif %}
        {% endcase %}
      {% endfor %}

    </div>
  </div>
</section>

{% schema %}
{
  "name": "Rich text",
  "max_blocks": 3,
  "settings": [],
  "blocks": [
    {
      "type": "heading",
      "name": "Heading",
      "settings": [
        {
          "type": "text",
          "id": "heading",
          "label": "Heading",
          "default": "見出しをここに入力"
        }
      ]
    },
    {
      "type": "text",
      "name": "Text",
      "settings": [
        {
          "type": "richtext",
          "id": "text",
          "label": "Text",
          "default": "<p>本文テキストをここに入力してください。</p>"
        }
      ]
    },
    {
      "type": "button",
      "name": "Button",
      "settings": [
        {
          "type": "text",
          "id": "button_label",
          "label": "Button label",
          "default": "詳しく見る"
        },
        {
          "type": "url",
          "id": "button_link",
          "label": "Button link"
        }
      ]
    }
  ],
  "presets": [
    {
      "name": "リッチテキスト（見出し・本文・ボタン）",
      "blocks": [
        {
          "type": "heading"
        },
        {
          "type": "text"
        },
        {
          "type": "button"
        }
      ]
    }
  ]
}
{% endschema %}
