<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Special/index.twig */
class __TwigTemplate_6efc88d2af4e62b41bfe2082e46b46af extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'javascript' => [$this, 'block_javascript'],
'main' => [$this, 'block_main'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Special/index.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Special/index.twig"));
$this->parent = $this->loadTemplate("default_frame.twig", "Special/index.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 4
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 5
echo "\t<script>
\t\t\$(function () {
const sections = [
'essay',
'document',
'report',
'guide',
'philosophy'
];
sections.forEach(section => {
const posts = \$ (`.\${section}_post`);
const showMoreButton = \$ (`#\${section}_show_more`);
let visibleCount = 2;
// 初期表示
posts.slice(0, visibleCount).removeClass('hidden');
showMoreButton.on('click', function () {
visibleCount += 6;
posts.slice(0, visibleCount).removeClass('hidden');
// すべて表示したらボタンを隠す
if (visibleCount >= posts.length) {
showMoreButton.addClass('hidden');
}
});
// 初期状態でボタンを非表示にするか確認
if (visibleCount >= posts.length) {
showMoreButton.addClass('hidden');
}
});
});
\t</script>
</script>";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 35
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 36
echo "<div class=\"w-full flex flex-col items-center justify-center font-extralight\">
\t<div class=\"w-full pb-20 md:pb-10 flex flex-col items-center border-b border-[#DFDFDF] mt-3\">
\t\t<img src=\"";
// line 38
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/special/special-top01_pc@2x.webp"), "html", null, true);
echo "\" alt=\"\" class=\"w-[max(45.83vw,880px)] mb-20 md:hidden\">
\t\t<img src=\"";
// line 39
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/special/special-top01_sp@2x.webp"), "html", null, true);
echo "\" alt=\"\" class=\"w-[325px] h-auto mb-10 hidden md:block\">
\t\t<h1 class=\"text-[40px] tracking-[11px] md:text-lg\">祈りに親しむ</h1>
\t</div>
\t<!-- Essay Section -->
\t<div class=\"w-full h-fit bg-special-essay bg-cover object-cover bg-top bg-no-repeat\">
\t\t<div class=\"h-fit top-[50%] left-[50%] py-16 md:py-12 m-auto sm:m-0 max-w-[1336px] xxl:px-[10px] w-full flex flex-col items-center\">
\t\t\t<img src=\"";
// line 46
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/special/essay.png"), "html", null, true);
echo "\" alt=\"\" class=\"mb-5 md:mb-2 md:w-[66px] h-auto\">
\t\t\t<h2 class=\"text-[28px] mb-20 md:mb-8 md:text-xl tracking-[5.6px]\">エッセイ</h2>
\t\t\t<div class=\"w-full grid grid-cols-2 md:grid-cols-1 gap-6 md:flex-col\">
\t\t\t\t";
// line 49
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["essay_posts"]) || array_key_exists("essay_posts", $context) ? $context["essay_posts"] : (function () { throw new RuntimeError('Variable "essay_posts" does not exist.', 49, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Post"]) {
// line 50
echo "\t\t\t\t\t<div class=\"bg-white shadow-manaka md:w-full essay_post hidden hover\">
\t\t\t\t\t\t<a href=\"";
// line 51
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("special_post", ["id" => twig_get_attribute($this->env, $this->source, $context["Post"], "ID", [], "any", false, false, true, 51)]), "html", null, true);
echo "\">
\t\t\t\t\t\t\t<img src=\"";
// line 52
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Post"], "special_kv_pc", [], "any", false, false, true, 52), "url", [], "any", false, false, true, 52), 52, $this->source), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Post"], "special_kv_pc", [], "any", false, false, true, 52), "alt", [], "any", false, false, true, 52), 52, $this->source), "html", null, true);
echo "\" class=\"w-full bg-center sm:h-[170px] h-[310px] object-cover\">
\t\t\t\t\t\t\t<div class=\"pt-6 pb-10 px-8 md:px-6 md:pb-9\">
\t\t\t\t\t\t\t\t<div class=\"mb-4 flex items-center justify-between\">
\t\t\t\t\t\t\t\t\t<div class=\"w-fit flex py-[2px] px-2 border border-[#B0B0B0] sm:text-[10px]\">
\t\t\t\t\t\t\t\t\t\t<p class=\"after:content-['|']\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 57
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Post"], "category", [], "any", false, false, true, 57))) {
// line 58
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Post"], "category", [], "any", false, false, true, 58), "name", [], "any", false, false, true, 58), 58, $this->source), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t";
}
// line 60
echo "\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t<p class=\"ml-1\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 62
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Post"], "sub_category", [], "any", false, false, true, 62))) {
// line 63
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Post"], "sub_category", [], "any", false, false, true, 63), "name", [], "any", false, false, true, 63), 63, $this->source), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t";
}
// line 65
echo "\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<p class=\"text-sm md:text-xs\">";
// line 67
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Post"], "post_date", [], "any", false, false, true, 67), 67, $this->source), "Y/m/d"), "html", null, true);
echo "</p>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<h3 class=\"text-xl mb-5 tracking-[4px] leading-8 md:text-sm\">";
// line 69
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Post"], "post_title", [], "any", false, false, true, 69), 69, $this->source);
echo "</h3>
\t\t\t\t\t\t\t\t";
// line 70
$context["content"] = twig_striptags($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Post"], "filter_content", [], "any", false, false, true, 70), 70, $this->source));
// line 71
echo "\t\t\t\t\t\t\t\t<p class=\"bg-white article-read text-sm md:text-xs tracking-widest leading-loose\">";
echo twig_escape_filter($this->env, (((twig_length_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 71, $this->source); })()), 71, $this->source)) > 55)) ? ((twig_slice($this->env, $this->sandbox->ensureToStringAllowed((isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 71, $this->source); })()), 71, $this->source), 0, 55) . "...")) : ((isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 71, $this->source); })()))), "html", null, true);
echo "</p>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</a>
\t\t\t\t\t</div>
\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Post'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 76
echo "\t\t\t</div>
\t\t\t<button id=\"essay_show_more\" class=\"mt-16 md:mt-12 hover gap-8 shadow bg-white border-b-[6px] w-[250px] sm:w-[175px] py-10 md:py-4 flex items-center justify-center border-manakaGray\">
\t\t\t\t<p class=\"text-xl md:text-sm\">更に見る</p>
\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewbox=\"0 0 24 24\" style=\"color: #7d7d7d;\" stroke-width=\"1.5\" stroke=\"currentColor\" class=\"size-6\">
\t\t\t\t\t<path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"m19.5 8.25-7.5 7.5-7.5-7.5\"/>
\t\t\t\t</svg>
\t\t\t</button>
\t\t</div>
\t</div>
\t<!-- Document Section -->
\t<div class=\"w-full h-fit bg-special-document bg-cover object-cover bg-top bg-no-repeat\">
\t\t<div class=\"h-fit top-[50%] left-[50%] py-16 md:py-12 m-auto sm:m-0 max-w-[1336px] xxl:px-[10px] w-full xl:px-3 flex flex-col items-center\">
\t\t\t<img src=\"";
// line 89
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/special/document.png"), "html", null, true);
echo "\" alt=\"\" class=\"mb-5 w-[42px] h-auto\">
\t\t\t<h2 class=\"text-[28px] mb-20 md:mb-8 md:text-xl tracking-[5.6px]\">ドキュメント</h2>
\t\t\t<div class=\"w-full grid grid-cols-2 md:grid-cols-1 gap-6 md:flex-col\">
\t\t\t\t";
// line 92
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["document_posts"]) || array_key_exists("document_posts", $context) ? $context["document_posts"] : (function () { throw new RuntimeError('Variable "document_posts" does not exist.', 92, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Post"]) {
// line 93
echo "\t\t\t\t\t<div class=\"bg-white shadow-manaka md:w-full document_post hidden hover\">
\t\t\t\t\t\t<a href=\"";
// line 94
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("special_post", ["id" => twig_get_attribute($this->env, $this->source, $context["Post"], "ID", [], "any", false, false, true, 94)]), "html", null, true);
echo "\">
\t\t\t\t\t\t\t<img src=\"";
// line 95
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Post"], "special_kv_pc", [], "any", false, false, true, 95), "url", [], "any", false, false, true, 95), 95, $this->source), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Post"], "special_kv_pc", [], "any", false, false, true, 95), "alt", [], "any", false, false, true, 95), 95, $this->source), "html", null, true);
echo "\" class=\"w-full bg-center sm:h-[170px] h-[310px] object-cover\">
\t\t\t\t\t\t\t<div class=\"pt-6 pb-10 px-8 md:px-6\">
\t\t\t\t\t\t\t\t<div class=\"mb-4 flex items-center justify-between\">
\t\t\t\t\t\t\t\t\t<div class=\"w-fit flex py-[2px] px-2 border border-[#B0B0B0] sm:text-[10px]\">
\t\t\t\t\t\t\t\t\t\t<p class=\"after:content-['|']\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 100
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Post"], "category", [], "any", false, false, true, 100))) {
// line 101
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Post"], "category", [], "any", false, false, true, 101), "name", [], "any", false, false, true, 101), 101, $this->source), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t";
}
// line 103
echo "\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t<p class=\"ml-1\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 105
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Post"], "sub_category", [], "any", false, false, true, 105))) {
// line 106
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Post"], "sub_category", [], "any", false, false, true, 106), "name", [], "any", false, false, true, 106), 106, $this->source), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t";
}
// line 108
echo "\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<p class=\"text-sm md:text-xs\">";
// line 110
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Post"], "post_date", [], "any", false, false, true, 110), 110, $this->source), "Y/m/d"), "html", null, true);
echo "</p>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<h3 class=\"text-xl mb-5 tracking-[4px] leading-8 md:text-sm\">";
// line 112
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Post"], "post_title", [], "any", false, false, true, 112), 112, $this->source);
echo "</h3>
\t\t\t\t\t\t\t\t";
// line 113
$context["content"] = twig_striptags($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Post"], "filter_content", [], "any", false, false, true, 113), 113, $this->source));
// line 114
echo "\t\t\t\t\t\t\t\t<p class=\"bg-white article-read text-sm md:text-xs tracking-widest leading-loose\">";
echo twig_escape_filter($this->env, (((twig_length_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 114, $this->source); })()), 114, $this->source)) > 55)) ? ((twig_slice($this->env, $this->sandbox->ensureToStringAllowed((isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 114, $this->source); })()), 114, $this->source), 0, 55) . "...")) : ((isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 114, $this->source); })()))), "html", null, true);
echo "</p>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</a>
\t\t\t\t\t</div>
\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Post'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 119
echo "\t\t\t</div>
\t\t\t<button id=\"document_show_more\" class=\"hover mt-16 md:mt-12 gap-8 shadow bg-white border-b-[6px] w-[250px] sm:w-[175px] py-10 md:py-4 flex items-center justify-center border-manakaGray\">
\t\t\t\t<p class=\"text-xl md:text-sm\">更に見る</p>
\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewbox=\"0 0 24 24\" style=\"color: #7d7d7d;\" stroke-width=\"1.5\" stroke=\"currentColor\" class=\"size-6\">
\t\t\t\t\t<path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"m19.5 8.25-7.5 7.5-7.5-7.5\"/>
\t\t\t\t</svg>
\t\t\t</button>
\t\t</div>
\t</div>
\t<!-- Report Section -->
\t<div class=\"w-full h-fit bg-special-report bg-cover object-cover bg-top bg-no-repeat\">
\t\t<div class=\"h-fit top-[50%] left-[50%] py-16 md:py-12 m-auto sm:m-0 max-w-[1336px] xxl:px-[10px] w-full xl:px-3 flex flex-col items-center\">
\t\t\t<img src=\"";
// line 132
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/special/report.png"), "html", null, true);
echo "\" alt=\"\" class=\"mb-5 md:w-[65px] h-auto\">
\t\t\t<h2 class=\"text-[28px] mb-20 md:mb-8 md:text-xl tracking-[5.6px]\">レポート</h2>
\t\t\t<div class=\"w-full grid grid-cols-2 md:grid-cols-1 gap-6 md:flex-col\">
\t\t\t\t";
// line 135
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["report_posts"]) || array_key_exists("report_posts", $context) ? $context["report_posts"] : (function () { throw new RuntimeError('Variable "report_posts" does not exist.', 135, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Post"]) {
// line 136
echo "\t\t\t\t\t<div class=\"bg-white shadow-manaka md:w-full report_post hidden hover\">
\t\t\t\t\t\t<a href=\"";
// line 137
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("special_post", ["id" => twig_get_attribute($this->env, $this->source, $context["Post"], "ID", [], "any", false, false, true, 137)]), "html", null, true);
echo "\">
\t\t\t\t\t\t\t<img src=\"";
// line 138
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Post"], "special_kv_pc", [], "any", false, false, true, 138), "url", [], "any", false, false, true, 138), 138, $this->source), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Post"], "special_kv_pc", [], "any", false, false, true, 138), "alt", [], "any", false, false, true, 138), 138, $this->source), "html", null, true);
echo "\" class=\"w-full bg-center sm:h-[170px] h-[310px] object-cover\">
\t\t\t\t\t\t\t<div class=\"pt-6 pb-10 px-8 md:px-6\">
\t\t\t\t\t\t\t\t<div class=\"mb-4 flex items-center justify-between\">
\t\t\t\t\t\t\t\t\t<div class=\"w-fit flex py-[2px] px-2 border border-[#B0B0B0] sm:text-[10px]\">
\t\t\t\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t\t\t\t";
// line 143
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Post"], "category", [], "any", false, false, true, 143))) {
// line 144
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Post"], "category", [], "any", false, false, true, 144), "name", [], "any", false, false, true, 144), 144, $this->source), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t";
}
// line 146
echo "\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t<p class=\"";
// line 147
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Post"], "sub_category", [], "any", false, false, true, 147))) {
echo " before::content-['|'] ";
}
echo "\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 148
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Post"], "sub_category", [], "any", false, false, true, 148))) {
// line 149
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Post"], "sub_category", [], "any", false, false, true, 149), "name", [], "any", false, false, true, 149), 149, $this->source), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t";
}
// line 151
echo "\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<p class=\"text-sm md:text-xs\">";
// line 153
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Post"], "post_date", [], "any", false, false, true, 153), 153, $this->source), "Y/m/d"), "html", null, true);
echo "</p>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<h3 class=\"text-xl mb-5 tracking-[4px] leading-8 md:text-sm\">";
// line 155
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Post"], "post_title", [], "any", false, false, true, 155), 155, $this->source);
echo "</h3>
\t\t\t\t\t\t\t\t";
// line 156
$context["content"] = twig_striptags($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Post"], "filter_content", [], "any", false, false, true, 156), 156, $this->source));
// line 157
echo "\t\t\t\t\t\t\t\t<p class=\"bg-white article-read text-sm md:text-xs tracking-widest leading-loose\">";
echo twig_escape_filter($this->env, (((twig_length_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 157, $this->source); })()), 157, $this->source)) > 55)) ? ((twig_slice($this->env, $this->sandbox->ensureToStringAllowed((isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 157, $this->source); })()), 157, $this->source), 0, 55) . "...")) : ((isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 157, $this->source); })()))), "html", null, true);
echo "</p>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</a>
\t\t\t\t\t</div>
\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Post'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 162
echo "\t\t\t</div>
\t\t\t<button id=\"report_show_more\" class=\"hover mt-16 gap-8 shadow bg-white border-b-[6px] w-[250px] py-10 md:py-4 flex items-center justify-center border-manakaGray\">
\t\t\t\t<p class=\"text-xl md:text-sm\">更に見る</p>
\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewbox=\"0 0 24 24\" style=\"color: #7d7d7d;\" stroke-width=\"1.5\" stroke=\"currentColor\" class=\"size-6\">
\t\t\t\t\t<path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"m19.5 8.25-7.5 7.5-7.5-7.5\"/>
\t\t\t\t</svg>
\t\t\t</button>
\t\t</div>
\t</div>
\t<!-- Guide Section -->
\t<div class=\"w-full h-fit bg-special-guide bg-cover object-cover bg-top bg-no-repeat\">
\t\t<div class=\"h-fit top-[50%] left-[50%] py-16 md:py-12 m-auto sm:m-0 max-w-[1336px] w-full xxl:px-[10px] xl:px-3 flex flex-col items-center\">
\t\t\t<img src=\"";
// line 175
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/special/guid.png"), "html", null, true);
echo "\" alt=\"\" class=\"mb-5 w-10 h-auto\">
\t\t\t<h2 class=\"text-[28px] mb-20 md:mb-8 md:text-xl tracking-[5.6px]\">ガイド</h2>
\t\t\t<div class=\"w-full grid grid-cols-2 md:grid-cols-1 gap-6 md:flex-col\">
\t\t\t\t";
// line 178
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["guide_posts"]) || array_key_exists("guide_posts", $context) ? $context["guide_posts"] : (function () { throw new RuntimeError('Variable "guide_posts" does not exist.', 178, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Post"]) {
// line 179
echo "\t\t\t\t\t<div class=\"bg-white shadow-manaka md:w-full guide_post hidden hover\">
\t\t\t\t\t\t<a href=\"";
// line 180
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("special_post", ["id" => twig_get_attribute($this->env, $this->source, $context["Post"], "ID", [], "any", false, false, true, 180)]), "html", null, true);
echo "\">
\t\t\t\t\t\t\t<img src=\"";
// line 181
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Post"], "special_kv_pc", [], "any", false, false, true, 181), "url", [], "any", false, false, true, 181), 181, $this->source), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Post"], "special_kv_pc", [], "any", false, false, true, 181), "alt", [], "any", false, false, true, 181), 181, $this->source), "html", null, true);
echo "\" class=\"w-full bg-center sm:h-[170px] h-[310px] object-cover\">
\t\t\t\t\t\t\t<div class=\"pt-6 pb-10 px-8 md:px-6\">
\t\t\t\t\t\t\t\t<div class=\"mb-4 flex items-center justify-between\">
\t\t\t\t\t\t\t\t\t<div class=\"w-fit flex py-[2px] px-2 border border-[#B0B0B0] sm:text-[10px]\">
\t\t\t\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t\t\t\t";
// line 186
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Post"], "category", [], "any", false, false, true, 186))) {
// line 187
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Post"], "category", [], "any", false, false, true, 187), "name", [], "any", false, false, true, 187), 187, $this->source), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t";
}
// line 189
echo "\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t<p class=\"";
// line 190
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Post"], "sub_category", [], "any", false, false, true, 190))) {
echo " before:content-['|'] ";
}
echo "\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 191
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Post"], "sub_category", [], "any", false, false, true, 191))) {
// line 192
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Post"], "sub_category", [], "any", false, false, true, 192), "name", [], "any", false, false, true, 192), 192, $this->source), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t";
}
// line 194
echo "\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<p class=\"text-sm md:text-xs\">";
// line 196
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Post"], "post_date", [], "any", false, false, true, 196), 196, $this->source), "Y/m/d"), "html", null, true);
echo "</p>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<h3 class=\"text-xl mb-5 tracking-[4px] leading-8 md:text-sm\">";
// line 198
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Post"], "post_title", [], "any", false, false, true, 198), 198, $this->source);
echo "</h3>
\t\t\t\t\t\t\t\t";
// line 199
$context["content"] = twig_striptags($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Post"], "filter_content", [], "any", false, false, true, 199), 199, $this->source));
// line 200
echo "\t\t\t\t\t\t\t\t<p class=\"bg-white article-read text-sm md:text-xs tracking-widest leading-loose\">";
echo twig_escape_filter($this->env, (((twig_length_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 200, $this->source); })()), 200, $this->source)) > 55)) ? ((twig_slice($this->env, $this->sandbox->ensureToStringAllowed((isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 200, $this->source); })()), 200, $this->source), 0, 55) . "...")) : ((isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 200, $this->source); })()))), "html", null, true);
echo "</p>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</a>
\t\t\t\t\t</div>
\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Post'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 205
echo "\t\t\t</div>
\t\t\t<button id=\"guide_show_more\" class=\"hover mt-16 md:mt-12 gap-8 shadow bg-white border-b-[6px] w-[250px] sm:w-[175px] py-10 md:py-4 flex items-center justify-center border-manakaGray\">
\t\t\t\t<p class=\"text-xl md:text-sm\">更に見る</p>
\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewbox=\"0 0 24 24\" style=\"color: #7d7d7d;\" stroke-width=\"1.5\" stroke=\"currentColor\" class=\"size-6\">
\t\t\t\t\t<path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"m19.5 8.25-7.5 7.5-7.5-7.5\"/>
\t\t\t\t</svg>
\t\t\t</button>
\t\t</div>
\t</div>
\t<!-- Philosophy Section -->
\t<div class=\"w-full h-fit bg-special-philosophy bg-cover object-cover bg-top bg-no-repeat\">
\t\t<div class=\"h-fit top-[50%] left-[50%] py-16 md:py-12 m-auto sm:m-0 max-w-[1336px] xxl:px-[10px] w-full xl:px-3 flex flex-col items-center\">
\t\t\t<img src=\"";
// line 218
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/special/philosophy.png"), "html", null, true);
echo "\" alt=\"\" class=\"mb-5 md:w-14 h-auto\">
\t\t\t<h2 class=\"text-[28px] mb-20 md:mb-8 md:text-xl tracking-[5.6px]\">フィロソフィ</h2>
\t\t\t<div class=\"w-full grid grid-cols-2 md:grid-cols-1 gap-6 md:flex-col\">
\t\t\t\t";
// line 221
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["philosophy_posts"]) || array_key_exists("philosophy_posts", $context) ? $context["philosophy_posts"] : (function () { throw new RuntimeError('Variable "philosophy_posts" does not exist.', 221, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Post"]) {
// line 222
echo "\t\t\t\t\t<div class=\"bg-white shadow-manaka md:w-full philosophy_post hidden hover\">
\t\t\t\t\t\t<a href=\"";
// line 223
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("special_post", ["id" => twig_get_attribute($this->env, $this->source, $context["Post"], "ID", [], "any", false, false, true, 223)]), "html", null, true);
echo "\">
\t\t\t\t\t\t\t<img src=\"";
// line 224
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Post"], "special_kv_pc", [], "any", false, false, true, 224), "url", [], "any", false, false, true, 224), 224, $this->source), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Post"], "special_kv_pc", [], "any", false, false, true, 224), "alt", [], "any", false, false, true, 224), 224, $this->source), "html", null, true);
echo "\" class=\"w-full bg-center md:h-[170px] h-[310px] object-cover\">
\t\t\t\t\t\t\t<div class=\"pt-6 pb-10 px-8 md:px-6\">
\t\t\t\t\t\t\t\t<div class=\"mb-4 flex items-center justify-between\">
\t\t\t\t\t\t\t\t\t<div class=\"w-fit flex py-[2px] px-2 border border-[#B0B0B0] sm:text-[10px]\">
\t\t\t\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t\t\t\t";
// line 229
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Post"], "category", [], "any", false, false, true, 229))) {
// line 230
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Post"], "category", [], "any", false, false, true, 230), "name", [], "any", false, false, true, 230), 230, $this->source), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t";
}
// line 232
echo "\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t<p class=\"";
// line 233
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Post"], "sub_category", [], "any", false, false, true, 233))) {
echo " before:content-['|'] ";
}
echo "\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 234
if ( !(null === twig_get_attribute($this->env, $this->source, $context["Post"], "sub_category", [], "any", false, false, true, 234))) {
// line 235
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Post"], "sub_category", [], "any", false, false, true, 235), "name", [], "any", false, false, true, 235), 235, $this->source), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t\t\t";
}
// line 237
echo "\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<p class=\"text-sm md:text-xs\">";
// line 239
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Post"], "post_date", [], "any", false, false, true, 239), 239, $this->source), "Y/m/d"), "html", null, true);
echo "</p>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<h3 class=\"text-xl mb-5 tracking-[4px] leading-8 md:text-sm\">";
// line 241
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Post"], "post_title", [], "any", false, false, true, 241), 241, $this->source);
echo "</h3>
\t\t\t\t\t\t\t\t";
// line 242
$context["content"] = twig_striptags($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Post"], "filter_content", [], "any", false, false, true, 242), 242, $this->source));
// line 243
echo "\t\t\t\t\t\t\t\t<p class=\"bg-white article-read text-sm md:text-xs tracking-widest leading-loose\">";
echo twig_escape_filter($this->env, (((twig_length_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 243, $this->source); })()), 243, $this->source)) > 55)) ? ((twig_slice($this->env, $this->sandbox->ensureToStringAllowed((isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 243, $this->source); })()), 243, $this->source), 0, 55) . "...")) : ((isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 243, $this->source); })()))), "html", null, true);
echo "</p>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</a>
\t\t\t\t\t</div>
\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Post'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 248
echo "\t\t\t</div>
\t\t\t<button id=\"philosophy_show_more\" class=\"gap-8 mt-16 md:mt-12 shadow hover bg-white border-b-[6px] w-[250px] sm:w-[175px] py-10 md:py-4 flex items-center justify-center border-manakaGray\">
\t\t\t\t<p class=\"text-xl md:text-sm\">更に見る</p>
\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewbox=\"0 0 24 24\" style=\"color: #7d7d7d;\" stroke-width=\"1.5\" stroke=\"currentColor\" class=\"size-6\">
\t\t\t\t\t<path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"m19.5 8.25-7.5 7.5-7.5-7.5\"/>
\t\t\t\t</svg>
\t\t\t</button>
\t\t</div>
\t</div>
\t<div class=\"max-w-[1120px] w-full px-6 md:px-0\">
\t\t";
// line 258
$context["breadcrumbs"] = [0 => ["name" => "特集"]];
// line 259
echo "\t\t";
$this->loadTemplate("Block/breadcrumbs.twig", "Special/index.twig", 259)->display($context);
// line 260
echo "\t</div>
</div>";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Special/index.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 601 => 260, 598 => 259, 596 => 258, 584 => 248, 572 => 243, 570 => 242, 566 => 241, 561 => 239, 557 => 237, 551 => 235, 549 => 234, 543 => 233, 540 => 232, 534 => 230, 532 => 229, 522 => 224, 518 => 223, 515 => 222, 511 => 221, 505 => 218, 490 => 205, 478 => 200, 476 => 199, 472 => 198, 467 => 196, 463 => 194, 457 => 192, 455 => 191, 449 => 190, 446 => 189, 440 => 187, 438 => 186, 428 => 181, 424 => 180, 421 => 179, 417 => 178, 411 => 175, 396 => 162, 384 => 157, 382 => 156, 378 => 155, 373 => 153, 369 => 151, 363 => 149, 361 => 148, 355 => 147, 352 => 146, 346 => 144, 344 => 143, 334 => 138, 330 => 137, 327 => 136, 323 => 135, 317 => 132, 302 => 119, 290 => 114, 288 => 113, 284 => 112, 279 => 110, 275 => 108, 269 => 106, 267 => 105, 263 => 103, 257 => 101, 255 => 100, 245 => 95, 241 => 94, 238 => 93, 234 => 92, 228 => 89, 213 => 76, 201 => 71, 199 => 70, 195 => 69, 190 => 67, 186 => 65, 180 => 63, 178 => 62, 174 => 60, 168 => 58, 166 => 57, 156 => 52, 152 => 51, 149 => 50, 145 => 49, 139 => 46, 129 => 39, 125 => 38, 121 => 36, 111 => 35, 71 => 5, 61 => 4, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'default_frame.twig' %}
{% block javascript %}
\t<script>
\t\t\$(function () {
const sections = [
'essay',
'document',
'report',
'guide',
'philosophy'
];
sections.forEach(section => {
const posts = \$ (`.\${section}_post`);
const showMoreButton = \$ (`#\${section}_show_more`);
let visibleCount = 2;
// 初期表示
posts.slice(0, visibleCount).removeClass('hidden');
showMoreButton.on('click', function () {
visibleCount += 6;
posts.slice(0, visibleCount).removeClass('hidden');
// すべて表示したらボタンを隠す
if (visibleCount >= posts.length) {
showMoreButton.addClass('hidden');
}
});
// 初期状態でボタンを非表示にするか確認
if (visibleCount >= posts.length) {
showMoreButton.addClass('hidden');
}
});
});
\t</script>
</script>{% endblock %}{% block main %}
<div class=\"w-full flex flex-col items-center justify-center font-extralight\">
\t<div class=\"w-full pb-20 md:pb-10 flex flex-col items-center border-b border-[#DFDFDF] mt-3\">
\t\t<img src=\"{{asset('assets/img/special/special-top01_pc@2x.webp')}}\" alt=\"\" class=\"w-[max(45.83vw,880px)] mb-20 md:hidden\">
\t\t<img src=\"{{asset('assets/img/special/special-top01_sp@2x.webp')}}\" alt=\"\" class=\"w-[325px] h-auto mb-10 hidden md:block\">
\t\t<h1 class=\"text-[40px] tracking-[11px] md:text-lg\">祈りに親しむ</h1>
\t</div>
\t<!-- Essay Section -->
\t<div class=\"w-full h-fit bg-special-essay bg-cover object-cover bg-top bg-no-repeat\">
\t\t<div class=\"h-fit top-[50%] left-[50%] py-16 md:py-12 m-auto sm:m-0 max-w-[1336px] xxl:px-[10px] w-full flex flex-col items-center\">
\t\t\t<img src=\"{{asset('assets/img/special/essay.png')}}\" alt=\"\" class=\"mb-5 md:mb-2 md:w-[66px] h-auto\">
\t\t\t<h2 class=\"text-[28px] mb-20 md:mb-8 md:text-xl tracking-[5.6px]\">エッセイ</h2>
\t\t\t<div class=\"w-full grid grid-cols-2 md:grid-cols-1 gap-6 md:flex-col\">
\t\t\t\t{% for Post in essay_posts %}
\t\t\t\t\t<div class=\"bg-white shadow-manaka md:w-full essay_post hidden hover\">
\t\t\t\t\t\t<a href=\"{{ path('special_post', {id: Post.ID}) }}\">
\t\t\t\t\t\t\t<img src=\"{{ Post.special_kv_pc.url }}\" alt=\"{{ Post.special_kv_pc.alt }}\" class=\"w-full bg-center sm:h-[170px] h-[310px] object-cover\">
\t\t\t\t\t\t\t<div class=\"pt-6 pb-10 px-8 md:px-6 md:pb-9\">
\t\t\t\t\t\t\t\t<div class=\"mb-4 flex items-center justify-between\">
\t\t\t\t\t\t\t\t\t<div class=\"w-fit flex py-[2px] px-2 border border-[#B0B0B0] sm:text-[10px]\">
\t\t\t\t\t\t\t\t\t\t<p class=\"after:content-['|']\">
\t\t\t\t\t\t\t\t\t\t\t{% if Post.category is not null %}
\t\t\t\t\t\t\t\t\t\t\t\t{{ Post.category.name }}
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t<p class=\"ml-1\">
\t\t\t\t\t\t\t\t\t\t\t{% if Post.sub_category is not null %}
\t\t\t\t\t\t\t\t\t\t\t\t{{ Post.sub_category.name }}
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<p class=\"text-sm md:text-xs\">{{ Post.post_date|date('Y/m/d') }}</p>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<h3 class=\"text-xl mb-5 tracking-[4px] leading-8 md:text-sm\">{{ Post.post_title|raw }}</h3>
\t\t\t\t\t\t\t\t{% set content = Post.filter_content|striptags %}
\t\t\t\t\t\t\t\t<p class=\"bg-white article-read text-sm md:text-xs tracking-widest leading-loose\">{{ content|length > 55 ? content|slice(0,55) ~ '...' : content }}</p>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</a>
\t\t\t\t\t</div>
\t\t\t\t{% endfor %}
\t\t\t</div>
\t\t\t<button id=\"essay_show_more\" class=\"mt-16 md:mt-12 hover gap-8 shadow bg-white border-b-[6px] w-[250px] sm:w-[175px] py-10 md:py-4 flex items-center justify-center border-manakaGray\">
\t\t\t\t<p class=\"text-xl md:text-sm\">更に見る</p>
\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewbox=\"0 0 24 24\" style=\"color: #7d7d7d;\" stroke-width=\"1.5\" stroke=\"currentColor\" class=\"size-6\">
\t\t\t\t\t<path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"m19.5 8.25-7.5 7.5-7.5-7.5\"/>
\t\t\t\t</svg>
\t\t\t</button>
\t\t</div>
\t</div>
\t<!-- Document Section -->
\t<div class=\"w-full h-fit bg-special-document bg-cover object-cover bg-top bg-no-repeat\">
\t\t<div class=\"h-fit top-[50%] left-[50%] py-16 md:py-12 m-auto sm:m-0 max-w-[1336px] xxl:px-[10px] w-full xl:px-3 flex flex-col items-center\">
\t\t\t<img src=\"{{asset('assets/img/special/document.png')}}\" alt=\"\" class=\"mb-5 w-[42px] h-auto\">
\t\t\t<h2 class=\"text-[28px] mb-20 md:mb-8 md:text-xl tracking-[5.6px]\">ドキュメント</h2>
\t\t\t<div class=\"w-full grid grid-cols-2 md:grid-cols-1 gap-6 md:flex-col\">
\t\t\t\t{% for Post in document_posts %}
\t\t\t\t\t<div class=\"bg-white shadow-manaka md:w-full document_post hidden hover\">
\t\t\t\t\t\t<a href=\"{{ path('special_post', {id: Post.ID}) }}\">
\t\t\t\t\t\t\t<img src=\"{{ Post.special_kv_pc.url }}\" alt=\"{{ Post.special_kv_pc.alt }}\" class=\"w-full bg-center sm:h-[170px] h-[310px] object-cover\">
\t\t\t\t\t\t\t<div class=\"pt-6 pb-10 px-8 md:px-6\">
\t\t\t\t\t\t\t\t<div class=\"mb-4 flex items-center justify-between\">
\t\t\t\t\t\t\t\t\t<div class=\"w-fit flex py-[2px] px-2 border border-[#B0B0B0] sm:text-[10px]\">
\t\t\t\t\t\t\t\t\t\t<p class=\"after:content-['|']\">
\t\t\t\t\t\t\t\t\t\t\t{% if Post.category is not null %}
\t\t\t\t\t\t\t\t\t\t\t\t{{ Post.category.name }}
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t<p class=\"ml-1\">
\t\t\t\t\t\t\t\t\t\t\t{% if Post.sub_category is not null %}
\t\t\t\t\t\t\t\t\t\t\t\t{{ Post.sub_category.name }}
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<p class=\"text-sm md:text-xs\">{{ Post.post_date|date('Y/m/d') }}</p>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<h3 class=\"text-xl mb-5 tracking-[4px] leading-8 md:text-sm\">{{ Post.post_title|raw }}</h3>
\t\t\t\t\t\t\t\t{% set content = Post.filter_content|striptags %}
\t\t\t\t\t\t\t\t<p class=\"bg-white article-read text-sm md:text-xs tracking-widest leading-loose\">{{ content|length > 55 ? content|slice(0,55) ~ '...' : content }}</p>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</a>
\t\t\t\t\t</div>
\t\t\t\t{% endfor %}
\t\t\t</div>
\t\t\t<button id=\"document_show_more\" class=\"hover mt-16 md:mt-12 gap-8 shadow bg-white border-b-[6px] w-[250px] sm:w-[175px] py-10 md:py-4 flex items-center justify-center border-manakaGray\">
\t\t\t\t<p class=\"text-xl md:text-sm\">更に見る</p>
\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewbox=\"0 0 24 24\" style=\"color: #7d7d7d;\" stroke-width=\"1.5\" stroke=\"currentColor\" class=\"size-6\">
\t\t\t\t\t<path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"m19.5 8.25-7.5 7.5-7.5-7.5\"/>
\t\t\t\t</svg>
\t\t\t</button>
\t\t</div>
\t</div>
\t<!-- Report Section -->
\t<div class=\"w-full h-fit bg-special-report bg-cover object-cover bg-top bg-no-repeat\">
\t\t<div class=\"h-fit top-[50%] left-[50%] py-16 md:py-12 m-auto sm:m-0 max-w-[1336px] xxl:px-[10px] w-full xl:px-3 flex flex-col items-center\">
\t\t\t<img src=\"{{asset('assets/img/special/report.png')}}\" alt=\"\" class=\"mb-5 md:w-[65px] h-auto\">
\t\t\t<h2 class=\"text-[28px] mb-20 md:mb-8 md:text-xl tracking-[5.6px]\">レポート</h2>
\t\t\t<div class=\"w-full grid grid-cols-2 md:grid-cols-1 gap-6 md:flex-col\">
\t\t\t\t{% for Post in report_posts %}
\t\t\t\t\t<div class=\"bg-white shadow-manaka md:w-full report_post hidden hover\">
\t\t\t\t\t\t<a href=\"{{ path('special_post', {id: Post.ID}) }}\">
\t\t\t\t\t\t\t<img src=\"{{ Post.special_kv_pc.url }}\" alt=\"{{ Post.special_kv_pc.alt }}\" class=\"w-full bg-center sm:h-[170px] h-[310px] object-cover\">
\t\t\t\t\t\t\t<div class=\"pt-6 pb-10 px-8 md:px-6\">
\t\t\t\t\t\t\t\t<div class=\"mb-4 flex items-center justify-between\">
\t\t\t\t\t\t\t\t\t<div class=\"w-fit flex py-[2px] px-2 border border-[#B0B0B0] sm:text-[10px]\">
\t\t\t\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t\t\t\t{% if Post.category is not null %}
\t\t\t\t\t\t\t\t\t\t\t\t{{ Post.category.name }}
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t<p class=\"{% if Post.sub_category is not null %} before::content-['|'] {% endif %}\">
\t\t\t\t\t\t\t\t\t\t\t{% if Post.sub_category is not null %}
\t\t\t\t\t\t\t\t\t\t\t\t{{ Post.sub_category.name }}
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<p class=\"text-sm md:text-xs\">{{ Post.post_date|date('Y/m/d') }}</p>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<h3 class=\"text-xl mb-5 tracking-[4px] leading-8 md:text-sm\">{{ Post.post_title|raw }}</h3>
\t\t\t\t\t\t\t\t{% set content = Post.filter_content|striptags %}
\t\t\t\t\t\t\t\t<p class=\"bg-white article-read text-sm md:text-xs tracking-widest leading-loose\">{{ content|length > 55 ? content|slice(0,55) ~ '...' : content }}</p>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</a>
\t\t\t\t\t</div>
\t\t\t\t{% endfor %}
\t\t\t</div>
\t\t\t<button id=\"report_show_more\" class=\"hover mt-16 gap-8 shadow bg-white border-b-[6px] w-[250px] py-10 md:py-4 flex items-center justify-center border-manakaGray\">
\t\t\t\t<p class=\"text-xl md:text-sm\">更に見る</p>
\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewbox=\"0 0 24 24\" style=\"color: #7d7d7d;\" stroke-width=\"1.5\" stroke=\"currentColor\" class=\"size-6\">
\t\t\t\t\t<path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"m19.5 8.25-7.5 7.5-7.5-7.5\"/>
\t\t\t\t</svg>
\t\t\t</button>
\t\t</div>
\t</div>
\t<!-- Guide Section -->
\t<div class=\"w-full h-fit bg-special-guide bg-cover object-cover bg-top bg-no-repeat\">
\t\t<div class=\"h-fit top-[50%] left-[50%] py-16 md:py-12 m-auto sm:m-0 max-w-[1336px] w-full xxl:px-[10px] xl:px-3 flex flex-col items-center\">
\t\t\t<img src=\"{{asset('assets/img/special/guid.png')}}\" alt=\"\" class=\"mb-5 w-10 h-auto\">
\t\t\t<h2 class=\"text-[28px] mb-20 md:mb-8 md:text-xl tracking-[5.6px]\">ガイド</h2>
\t\t\t<div class=\"w-full grid grid-cols-2 md:grid-cols-1 gap-6 md:flex-col\">
\t\t\t\t{% for Post in guide_posts %}
\t\t\t\t\t<div class=\"bg-white shadow-manaka md:w-full guide_post hidden hover\">
\t\t\t\t\t\t<a href=\"{{ path('special_post', {id: Post.ID}) }}\">
\t\t\t\t\t\t\t<img src=\"{{ Post.special_kv_pc.url }}\" alt=\"{{ Post.special_kv_pc.alt }}\" class=\"w-full bg-center sm:h-[170px] h-[310px] object-cover\">
\t\t\t\t\t\t\t<div class=\"pt-6 pb-10 px-8 md:px-6\">
\t\t\t\t\t\t\t\t<div class=\"mb-4 flex items-center justify-between\">
\t\t\t\t\t\t\t\t\t<div class=\"w-fit flex py-[2px] px-2 border border-[#B0B0B0] sm:text-[10px]\">
\t\t\t\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t\t\t\t{% if Post.category is not null %}
\t\t\t\t\t\t\t\t\t\t\t\t{{ Post.category.name }}
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t<p class=\"{% if Post.sub_category is not null %} before:content-['|'] {% endif %}\">
\t\t\t\t\t\t\t\t\t\t\t{% if Post.sub_category is not null %}
\t\t\t\t\t\t\t\t\t\t\t\t{{ Post.sub_category.name }}
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<p class=\"text-sm md:text-xs\">{{ Post.post_date|date('Y/m/d') }}</p>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<h3 class=\"text-xl mb-5 tracking-[4px] leading-8 md:text-sm\">{{ Post.post_title|raw }}</h3>
\t\t\t\t\t\t\t\t{% set content = Post.filter_content|striptags %}
\t\t\t\t\t\t\t\t<p class=\"bg-white article-read text-sm md:text-xs tracking-widest leading-loose\">{{ content|length > 55 ? content|slice(0,55) ~ '...' : content }}</p>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</a>
\t\t\t\t\t</div>
\t\t\t\t{% endfor %}
\t\t\t</div>
\t\t\t<button id=\"guide_show_more\" class=\"hover mt-16 md:mt-12 gap-8 shadow bg-white border-b-[6px] w-[250px] sm:w-[175px] py-10 md:py-4 flex items-center justify-center border-manakaGray\">
\t\t\t\t<p class=\"text-xl md:text-sm\">更に見る</p>
\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewbox=\"0 0 24 24\" style=\"color: #7d7d7d;\" stroke-width=\"1.5\" stroke=\"currentColor\" class=\"size-6\">
\t\t\t\t\t<path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"m19.5 8.25-7.5 7.5-7.5-7.5\"/>
\t\t\t\t</svg>
\t\t\t</button>
\t\t</div>
\t</div>
\t<!-- Philosophy Section -->
\t<div class=\"w-full h-fit bg-special-philosophy bg-cover object-cover bg-top bg-no-repeat\">
\t\t<div class=\"h-fit top-[50%] left-[50%] py-16 md:py-12 m-auto sm:m-0 max-w-[1336px] xxl:px-[10px] w-full xl:px-3 flex flex-col items-center\">
\t\t\t<img src=\"{{asset('assets/img/special/philosophy.png')}}\" alt=\"\" class=\"mb-5 md:w-14 h-auto\">
\t\t\t<h2 class=\"text-[28px] mb-20 md:mb-8 md:text-xl tracking-[5.6px]\">フィロソフィ</h2>
\t\t\t<div class=\"w-full grid grid-cols-2 md:grid-cols-1 gap-6 md:flex-col\">
\t\t\t\t{% for Post in philosophy_posts %}
\t\t\t\t\t<div class=\"bg-white shadow-manaka md:w-full philosophy_post hidden hover\">
\t\t\t\t\t\t<a href=\"{{ path('special_post', {id: Post.ID}) }}\">
\t\t\t\t\t\t\t<img src=\"{{ Post.special_kv_pc.url }}\" alt=\"{{ Post.special_kv_pc.alt }}\" class=\"w-full bg-center md:h-[170px] h-[310px] object-cover\">
\t\t\t\t\t\t\t<div class=\"pt-6 pb-10 px-8 md:px-6\">
\t\t\t\t\t\t\t\t<div class=\"mb-4 flex items-center justify-between\">
\t\t\t\t\t\t\t\t\t<div class=\"w-fit flex py-[2px] px-2 border border-[#B0B0B0] sm:text-[10px]\">
\t\t\t\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t\t\t\t{% if Post.category is not null %}
\t\t\t\t\t\t\t\t\t\t\t\t{{ Post.category.name }}
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t<p class=\"{% if Post.sub_category is not null %} before:content-['|'] {% endif %}\">
\t\t\t\t\t\t\t\t\t\t\t{% if Post.sub_category is not null %}
\t\t\t\t\t\t\t\t\t\t\t\t{{ Post.sub_category.name }}
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<p class=\"text-sm md:text-xs\">{{ Post.post_date|date('Y/m/d') }}</p>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<h3 class=\"text-xl mb-5 tracking-[4px] leading-8 md:text-sm\">{{ Post.post_title|raw }}</h3>
\t\t\t\t\t\t\t\t{% set content = Post.filter_content|striptags %}
\t\t\t\t\t\t\t\t<p class=\"bg-white article-read text-sm md:text-xs tracking-widest leading-loose\">{{ content|length > 55 ? content|slice(0,55) ~ '...' : content }}</p>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</a>
\t\t\t\t\t</div>
\t\t\t\t{% endfor %}
\t\t\t</div>
\t\t\t<button id=\"philosophy_show_more\" class=\"gap-8 mt-16 md:mt-12 shadow hover bg-white border-b-[6px] w-[250px] sm:w-[175px] py-10 md:py-4 flex items-center justify-center border-manakaGray\">
\t\t\t\t<p class=\"text-xl md:text-sm\">更に見る</p>
\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewbox=\"0 0 24 24\" style=\"color: #7d7d7d;\" stroke-width=\"1.5\" stroke=\"currentColor\" class=\"size-6\">
\t\t\t\t\t<path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"m19.5 8.25-7.5 7.5-7.5-7.5\"/>
\t\t\t\t</svg>
\t\t\t</button>
\t\t</div>
\t</div>
\t<div class=\"max-w-[1120px] w-full px-6 md:px-0\">
\t\t{% set breadcrumbs = [{'name': '特集'}] %}
\t\t{% include('Block/breadcrumbs.twig') %}
\t</div>
</div>{% endblock %}
", "Special/index.twig", "/home/xs082386/manaka-store.com/public_html/renewal.manaka-store.com/app/template/default/Special/index.twig");
}
public function checkSecurity()
{
static $tags = array("for" => 49, "if" => 57, "set" => 70, "include" => 259);
static $filters = array("escape" => 38, "date" => 67, "raw" => 69, "striptags" => 70, "length" => 71, "slice" => 71);
static $functions = array("asset" => 38, "path" => 51);
try {
$this->sandbox->checkSecurity(
['for', 'if', 'set', 'include'],
['escape', 'date', 'raw', 'striptags', 'length', 'slice'],
['asset', 'path']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}