
<!doctype html>
<html <?php echo get_language_attributes(); ?>>
<?php echo $__env->make('partials.head', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

<body id="index" <?php body_class('renewal2023') ?>><?php wp_body_open(); ?>

  <div class="pacewrap">
    <?php do_action('get_header') ?>

    <div id="container">
      <?php echo $__env->make('partials.header', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

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

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

      <article>

        <section class="main mt-3">
          <div id="what_we_do" class="row plr-0 col-12 col-md-10 offset-md-1 col-sm-10 offset-sm-1">
            <div class="container">
              <h2 class="page_title title-with-link en d-none d-md-flex">What We Do<a
                  href="<?php echo e(home_url('/en/service-en')); ?>" class="text_link en">View
                  Service <i class="fas fa-chevron-right"></i></a></h2>

              <h2 class="what_we_do_title en d-md-none"><img src="<?= App\asset_path('images/icon-star.svg'); ?>"> What We Do</h2>
              <?php echo $__env->make('partials.creator-pf_en', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

            </div>
          </div>

          <div class="mt-md-5 pt-md-5">
            <?php echo $__env->make('partials.what-we-can_en', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
          </div>

          <?php
          $number = 4;
          $paged = (int) get_query_var('paged');
          $args = [
              'post_type' => 'news_release', // 検索したいカスタム投稿タイプ
              'posts_per_page' => 4,
              'paged' => get_query_var('paged') ? intval(get_query_var('paged')) : 1,
              'meta_query' => [
                  'relation' => 'OR',
                  [
                    'key' => 'hide_from_top',
                    'value' => '0',
                    'compare' => '='
                  ],
                  [
                    'key' => 'hide_from_top',
                    'compare' => 'NOT EXISTS'
                  ]
                ],
          ];
      
          $the_query = new WP_Query($args);
      
          if ($the_query->have_posts()): ?>
          <div id="latest_news" class="row plr-0 col-12 col-md-10 offset-md-1 col-sm-10 offset-sm-1 pb-0 mb-0">

            <div class="container">

              <h2 class="page_title en title-with-link">Latest News<a class="text_link en"
                  href="<?php echo e(home_url('/en/news_release')); ?>">
                  View All <i class="fas fa-chevron-right"></i></a></h2>

              <div class="row post_row">
                <?php while ($the_query->have_posts()): $the_query->the_post(); $rankcount++; ?>
                <div class="col-lg-3 col-md-6 col-sm-12 post_box">
                  <a href="<?php echo e(get_permalink()); ?>" class="thumbnail">
                    <?php if(has_post_thumbnail()): ?>
                      <img width="300" height="200" data-src="<?php the_post_thumbnail_url('large'); ?>"
                        data-srcset="<?php the_post_thumbnail_url('large'); ?>" class="img-fluid lazyload">
                    <?php else: ?>
                      <img width="300" height="200" data-src="<?= App\asset_path('images/notfound.jpg'); ?>" alt="thumbnail"
                        class="img-fluid lazyload" />
                    <?php endif; ?>
                  </a>
                  <time class="en"><?php echo e(get_the_date()); ?></time>
                  <h2><a href="<?php echo e(get_permalink()); ?>"><?php echo get_the_title(); ?></a></h2>
                </div>
                <?php if ($rankcount == $number): ?>
                <!-- <hr class="w-100 mb-5 pb-3"> -->
                <?php endif; ?>
                <?php endwhile; ?>
              </div>

              <div class="sp_titlelink mb-5"><a href="<?php echo e(home_url('/en/news_release')); ?>" class="titlelink en">View
                  All</a></div>

            </div>
          </div>
          <?php endif; ?>

          <?php wp_reset_postdata(); ?>

        </section>

      </article>

      <?php do_action('get_footer') ?>
      <?php echo $__env->make('partials.footer', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
      <?php wp_footer() ?>

    </div>
  </div>

  <script src="https://vjs.zencdn.net/7.20.3/video.min.js"></script>

  <!-- Start of HubSpot Embed Code -->
  <script type="text/javascript" id="hs-script-loader" async defer src="//js.hs-scripts.com/40110885.js"></script>
  <!-- End of HubSpot Embed Code -->
</body>

</html>
