<!-- tpcms-form: {
  "label": "04_★汎用レイアウト",
  "category": "03_コンテンツ",
  "fields": [
    { "key":"H2", "type":"text", "label":"大見出し"},
    { "key":"H2_HOSOKU", "type":"text", "label":"大見出しの補足・英語表記など"},
    { "key":"H2_TEXT", "type":"textarea", "label":"説明文が必要ならここに入力して下さい。"}
  ],
  "repeaters": [
    {
      "key": "ROWS",
      "label": "繰り返しブロック",
      "sort": true,
      "fields": [
        { "key": "LAYOUT", "type": "select", "label": "選択します", "options": [["01","画像とテキスト（横並び）"],["02","画像とテキスト（縦並び）"],["wide","画像(WIDE)とテキスト（縦並び）"]], "allow_empty":false },
        { "key": "REVERSE", "type": "select", "label": "選択します", "options": [["","デフォルト"],["reverse","左右逆の配置"]], "allow_empty":false },
        { "key": "TITLE", "type": "text", "label": "見出し" },
        { "key": "HOSOKU", "type":"text", "label":"見出しの補足・英語表記など"},
        { "key": "TEXT", "type": "textarea","label": "説明" },
        { "key": "FILE", "type": "file", "label": "画像", "image_max_width": 1000, "image_quality": 82 },
        { "key": "LINK_URL", "type": "text", "label": "リンク先URL（空ならリンクなし）", "link_picker": true }
      ]
    }
  ]
} -->

<section>

{{#IF_H2}}
<h2 class="c">
<span class="fade-in-text">{{H2}}</span>
{{#IF_H2_HOSOKU}}<span class="small">{{H2_HOSOKU}}</span>{{/IF_H2_HOSOKU}}
</h2>
{{/IF_H2}}

{{#IF_H2_TEXT}}<p class="{{ALIGN}}">{{H2_TEXT}}</p>{{/IF_H2_TEXT}}

<div class="grid-box">

{{#ROWS}}

<div class="{{REVERSE}}">

{{#IF_IMAGE}}
<div class="image image-{{LAYOUT}} up">
{{#IF_LINK_URL}}<a href="{{LINK_URL}}">{{/IF_LINK_URL}}<img src="./uploads/{{FILE}}" alt="">{{#IF_LINK_URL}}</a>{{/IF_LINK_URL}}
</div>
{{/IF_IMAGE}}

<div class="text text-{{LAYOUT}} up">
{{#IF_TITLE}}<h4>{{TITLE}}{{#IF_H2_HOSOKU}}<span>{{H2_HOSOKU}}</span>{{/IF_H2_HOSOKU}}</h4>{{/IF_TITLE}}
{{#IF_TEXT}}<p>{{TEXT}}</p>{{/IF_TEXT}}
</div>

</div>

{{/ROWS}}

</div>
<!--/.grid-box-->

</section>
