<?php $__env->startSection('content'); ?>
<?php while(have_posts()): ?> <?php the_post() ?>
<article <?php post_class() ?>>
  <h1 class="d-md-none entry-title"><?php echo get_the_title(); ?></h1>

  <div class="sp-meta d-md-none en">
    <?php echo get_the_date('Y.m.d'); ?>
  </div>

  <?php if (has_post_thumbnail()) : ?>
    <div class="single-thumbnail">
      <img class="img-fluid" src="<?php the_post_thumbnail_url('full'); ?>">
    </div>
  <?php endif; ?>
  <div class="justify-content-between mt-3 d-none d-md-flex">
    <div class="date en">
      <?php echo get_the_date('Y.m.d'); ?>
    </div>
    <?php
    if ($terms = get_the_terms($post->ID, 'works_cat')) {
      foreach ($terms as $term) {
        echo '<span class="cat-' . $term->slug . ' en">' . $term->name . '</span>';
      }
    }
    ?>
  </div>
  <h1 class="d-none d-md-block entry-title"><?php echo get_the_title(); ?></h1>

  <div class="interview-meta">
    <?php $company = get_field('interview_company');
    if ($company) : ?>
      <p class="company"><?php echo $company; ?></p>
    <?php endif; ?>
    <?php $name = get_field('interview_name');
    if ($name) : ?>
      <p class="name"><?php echo $name; ?></p>
    <?php endif; ?>
  </div>

  <div class="sp-bg">
    <div class="entry-content">
      <?php the_content() ?>
    </div>

    <!-- <div class="d-flex pb-5 single-contact">
    <a class="btn-gra" href="/contact">お問い合わせ</a>
    <a class="btn-white ml-3" href="/request">資料ダウンロード <svg xmlns="http://www.w3.org/2000/svg" width="9.5" height="9.5" viewBox="0 0 9.5 9.5">
        <g transform="translate(-4 -4)">
          <path d="M11.273,17.563H6.227A2.229,2.229,0,0,1,4,15.336v-.891a.445.445,0,0,1,.891,0v.891a1.338,1.338,0,0,0,1.336,1.336h5.047a1.338,1.338,0,0,0,1.336-1.336v-.891a.445.445,0,0,1,.891,0v.891A2.23,2.23,0,0,1,11.273,17.563Z" transform="translate(0 -4.063)" />
          <path d="M11.7,10.531a.445.445,0,0,1-.445-.445V4.445a.445.445,0,0,1,.891,0v5.641A.445.445,0,0,1,11.7,10.531Z" transform="translate(-2.945)" />
          <path d="M10.375,12.969a.448.448,0,0,1-.327-.142l-1.93-2.079a.445.445,0,0,1,.653-.606l1.6,1.726,1.6-1.726a.445.445,0,1,1,.653.606L10.7,12.827A.448.448,0,0,1,10.375,12.969Z" transform="translate(-1.625 -2.438)" />
        </g>
      </svg></a>
  </div> -->
  </div>

</article>

<div class="btn-transparent mx-auto pb-5 mb-5 d-md-none">
  <a href="/voice/">一覧に戻る</a>
</div>

<?php endwhile; ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>