<!-- tpcms-form: {
  "label": "01_★大見出しセット",
  "category": "01_基本セット",
  "repeaters": [
    {
      "key": "ROWS",
      "label": "繰り返しブロック",
      "sort": true,
      "fields": [
        { "key":"H2", "type":"text", "label":"大見出し"},
        { "key": "H2_HOSOKU", "type":"text", "label":"大見出しの補足・英語表記など"},
        { "key": "H2_KAZARI", "type": "file", "label": "見出し両サイドの飾り画像（１つアップすれば両サイドに自動配置されます）", "image_max_width": 800, "image_quality": 82 },
        { "key": "FILE1", "type": "file", "label": "画像（説明の前に入れる場合）", "image_max_width": 2500, "image_quality": 82 },
        { "key": "TEXT", "type": "textarea","label": "説明文が必要ならここに入力して下さい。" },
        { "key": "FILE2", "type": "file", "label": "画像（説明の後に入れる場合）", "image_max_width": 2500, "image_quality": 82 }
      ]
    }
  ]
} -->

<style>
main h2.flag::before,
main h2.flag::after {
	background: url(./uploads/{{H2_KAZARI}}) no-repeat left center / contain;
}
</style>

<section>

{{#ROWS}}

{{#IF_H2}}
<h2>
{{H2}}
{{#IF_H2_HOSOKU}}<span>{{H2_HOSOKU}}</span>{{/IF_H2_HOSOKU}}
</h2>
{{/IF_H2}}

{{#IF_IMAGE FILE1}}<img src="./uploads/{{FILE1}}" alt="">{{/IF_IMAGE}}
{{#IF_TEXT}}<p>{{TEXT}}</p>{{/IF_TEXT}}
{{#IF_IMAGE FILE2}}<img src="./uploads/{{FILE2}}" alt="">{{/IF_IMAGE}}

{{/ROWS}}

</section>
