{% extends 'default_frame.twig' %}
{% set breadcrumbs = [ {'name': 'SPECIAL'}] %}
{% block main %}
<section class="px-6 pb-10 pt-[7.5rem] md:pt-20 md:pb-1 text-black">
<div class="mx-auto w-full max-w-[63rem]">
<h1 class="flex items-start gap-4 md:gap-2">
<span class="block h-[7.5rem] w-0.5 bg-gradient-to-b from-[#ADAAA6] md:h-16 md:w-px"></span>
<p class="text-[2rem] font-light leading-normal tracking-widest md:text-xl">
SPECIAL</p>
</h1>
</div>
</section>
{{ include('Block/breadcrumb.twig') }}
<section class="px-6">
<div class="mx-auto w-full max-w-[63rem]">
<ul class="flex flex-wrap gap-2" role="navigation">
<li>
<a class="grid place-items-center rounded-3xl bg-sub-beige-pale px-4 py-1 text-sm leading-normal tracking-widest text-black hover
{% if not category_id %}!bg-sub-beige text-white{% endif %}" href="{{ url('special_posts') }}">
ALL
</a>
</li>
{% for category in special_posts.categories %}
<li>
<a class="grid place-items-center rounded-3xl bg-sub-beige-pale px-4 py-1 text-sm leading-normal tracking-widest text-black hover
{% if category_id == category.term_id %}!bg-sub-beige text-white{% endif %}" href="{{ url('special_posts', { category: category.term_id }) }}">
{{ category.name }}
</a>
</li>
{% endfor %}
</ul>
</div>
</section>
<section class="pt-20 md:pt-10 px-6 pb-[7.5rem] md:pb-20 text-black">
<div class="mx-auto w-full max-w-[46rem]">
<div class="grid grid-cols-2 gap-x-20 gap-y-28 md:grid-cols-1 md:gap-10">
{% for post in special_posts.posts %}
<a href="{{ url('special_post', { id: post.id }) }}" class=" border-b border-black pb-4 hover">
<article class="grid">
<h2 class="mt-4 line-clamp-2 text-base font-medium leading-[1.8] text-black h-[2lh]">
<span class="sr-only">タイトル:</span>
{{ post.title }}</h2>
<div class="flex flex-wrap gap-2 row-start-2 row-end-3 mt-4 text-sm leading-normal tracking-wider text-black">
{% for category in post.categories %}
<span>{{ category.name }}</span>
{% endfor %}
</div>
<time datetime="{{ post.post_date|date('Y-m-d') }}" class="mt-7 text-right text-sm tracking-wider text-black">
<span class="sr-only">投稿日:</span>
{{ post.post_date|date('Y.m.d') }}</time>
<div class="row-start-1 row-end-2 aspect-[4/3] "><img alt="{{ post.title }}" loading="lazy" width="327" height="245" decoding="async" data-nimg="1" class="size-full object-cover" style="color:transparent" src="{{ post.special_kv_pc.url }}"></div>
</article>
</a>
{% endfor %}
</div>
<div class="ec-pagerRole">
{% include "pager.twig" with {'pages': special_posts.paginationData} %}
</div>
</div>
</section>
{% endblock %}