@charset "utf-8";
/*
	Theme Name: diver_child
	Template: diver
	Description:  Diverの子テーマです。
	Theme URI: http://tan-taka.com/diver/
	Author: Takato Takagi
 */

	<?php if(is_active_sidebar('container-bottom')): ?>
			<div class="container_bottom_widget">
				<div class="container_bottom_widget_content clearfix">
				<?php dynamic_sidebar('container-bottom'); ?>
				</div>
			</div>
		<?php endif; ?>
		</div>
		<!-- /container -->
		<?php if(!is_singular('lp')&&!is_attachment()): ?>

			<!-- Big footer -->
			<?php get_template_part('/lib/parts/bigfooter');?>
			<!-- /Big footer -->

			<!-- footer -->
			<footer id="footer">
				<div class="footer_content clearfix">
					<nav class="footer_navi" role="navigation">
						<?php wp_nav_menu(array(
                        'theme_location'=>'footer-navi',
                        'before' => '',
                        'after' => '',
                        'link_before' => '',
                        'link_after' => '',
                        'depth' => 1,
                        'container' => false,
                        'fallback_cb' => '',
                        ));
		    ?>
					</nav>
					<div id="copyright"><?php echo get_option('diver_option_base_footer_credit', get_bloginfo('name').' All Rights Reserved.'); ?></div>
				</div>
			</footer>
			<!-- /footer -->
			<?php if(get_theme_mod('pagetopscroll')): ?>
				<span id="page-top"><a href="#wrap"><?php echo apply_filters('diver_footer_page_top', '<i class="fa fa-chevron-up" aria-hidden="true"></i>') ?></a></span>
			<?php endif; ?>
			<!-- フッターmenu -->
			<?php get_template_part('/lib/parts/footer', 'menu'); ?>
			<!-- フッターCTA -->
			<?php  get_template_part('/lib/parts/footer', 'cta'); ?>
		<?php endif; ?>


		<div class="drawer-overlay"></div>
		<div class="drawer-nav"><?php dynamic_sidebar('drawer_widget'); ?></div>

		<?php if(get_theme_mod('sp_header_search', true)): ?>
		<div id="header_search" class="lity-hide">
			<?php dynamic_sidebar('searchbox_widget'); ?>
		</div>
		<?php endif; ?>

		<?php wp_footer(); ?>
		<script>!function(d,i){if(!d.getElementById(i)){var j=d.createElement("script");j.id=i;j.src="https://widgets.getpocket.com/v1/j/btn.js?v=1";var w=d.getElementById(i);d.body.appendChild(j);}}(document,"pocket-btn-js");</script>
		<?php if(!is_amp()) {
		    echo do_shortcode(get_option('diver_option_base_ana_body', get_theme_mod('diver_access_tag_body')));
		} ?>


		
	</body>
</html>

<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title><?php echo diver_meta_title(); ?></title>
<?php echo_meta_description_tag(); ?>
<?php
if (get_option('diver_seosetting', '1')) {
    diver_meta_thumbnail();
}
if (get_option('diver_ogpsetting', '1')) {
    diver_meta_ogp();
}
?>
<link rel="canonical" href="<?php echo diver_canonical_url(); ?>">
<link rel="shortcut icon" href="<?php echo get_theme_mod('diver_favicon');?>">
<!--[if IE]>
		<link rel="shortcut icon" href="<?php echo get_theme_mod('diver_favicon_ie'); ?>">
<![endif]-->
<link rel="apple-touch-icon" href="<?php echo get_theme_mod('diver_appleicon');?>" />
<?php if (is_single()&&apply_filters('diver_amp_enable_all_set', get_post_meta($post->ID, "amp_name", true))): ?>
	<link rel="amphtml" href="<?php echo add_query_arg(array('amp' => '1'), get_permalink()); ?>">
<?php endif; ?>
<?php wp_head(); ?>

<script src="https://www.youtube.com/iframe_api"></script>

<?php if (get_option('diver_option_base_ad_client')&&get_option('diver_option_base_ad_slot')&&!is_customize_preview()): ?>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<?php endif; ?>

<meta name="hubtraffic-domain-validation"  content="f7c726c414bba0fc" />

</head>
<body itemscope="itemscope" itemtype="http://schema.org/WebPage" <?php body_class(); ?>>
<?php if (get_theme_mod('comment_form_style', 'none')=='facebook'||get_option('diver_sns_facebook_app')): ?>
<div id="fb-root"></div>
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/<?php echo apply_filters('diver_facebook_lang', 'ja_JP'); ?>/sdk.js#xfbml=1&version=v5.0&appId=<?php echo get_option('diver_sns_facebook_app'); ?>"></script>
<?php endif; ?>

<div id="container">
<!-- header -->
<?php if (!is_singular('lp') && !is_attachment()): ?>
	<!-- lpページでは表示しない -->
	<div id="header" class="clearfix">
	<?php $firstView_pos = get_option('diver_option_firstview_position', get_theme_mod('headerimage_position', 'bottom')); ?>
		<?php if ($firstView_pos == 'top') {
		    get_template_part('/lib/parts/firstview');
		} ?>
		<header class="header-wrap" role="banner" itemscope="itemscope" itemtype="http://schema.org/WPHeader">
		<?php get_template_part('/lib/parts/miniheader'); ?>

			<div class="header-logo clearfix">
				<?php get_template_part('/lib/parts/sp', 'menu'); ?>

				<!-- /Navigation -->

				<?php $logo_tag = (get_option('diver_option_logo_tag', 0) && is_front_page()) ? 'h1' : 'div'; ?>
				<<?php echo $logo_tag; ?> id="logo">
					<?php
		                   $diverlogo = get_theme_mod("diver_logo");
    $logo_link = apply_filters('diver_logo_link', home_url('/'));
    ?>
					<a href="<?php echo $logo_link; ?>">
						<?php if (empty($diverlogo)): ?>
							<div class="logo_title"><?php bloginfo('name'); ?></div>
						<?php else: ?>

							<?php if ($imagesize = get_image_width_and_height($diverlogo)): ?>
								<img src="<?php echo esc_url($diverlogo) ?>" alt="<?php bloginfo('name'); ?>" width="<?php echo $imagesize['width']; ?>" height="<?php echo $imagesize['height']; ?>">
							<?php else: ?>
								<img src="<?php echo esc_url($diverlogo) ?>" alt="<?php bloginfo('name'); ?>">
							<?php endif; ?>

						<?php endif; ?>
					</a>
				</<?php echo $logo_tag; ?>>
				<?php if (get_theme_mod('nav_style', 'in')=='in'): ?>
					<nav id="nav" role="navigation" itemscope="itemscope" itemtype="http://scheme.org/SiteNavigationElement">
						<?php wp_nav_menu(array(
            'theme_location' => 'header-navi',
            'items_wrap' => '<ul id="mainnavul" class="menu">%3$s</ul>',
            'link_before' => '',
            'link_after' => '',
            'depth' => 0,
            'fallback_cb' => ''
        )); ?>
					</nav>
				<?php else:
				    (!is_mobile()) ? get_template_part('/lib/parts/header-right') : '';
				endif; ?>
			</div>
		</header>
		<nav id="scrollnav" role="navigation" itemscope="itemscope" itemtype="http://scheme.org/SiteNavigationElement">
			<?php wp_nav_menu(array(
				'theme_location' => 'scroll-menu',
				'items_wrap' => '<ul id="scroll-menu">%3$s</ul>',
				'link_before' => '',
				'link_after' => '',
				'depth' => 0,
				'fallback_cb' => ''
            )); ?>
		</nav>
		<?php get_template_part('/lib/parts/nav', 'fixed'); ?>
		<?php if ($firstView_pos == 'middle') {
		    get_template_part('/lib/parts/firstview');
		} ?>
		<?php if (get_theme_mod('nav_style')=='only'): ?>
			<nav id="onlynav" class="onlynav" role="navigation" itemscope="itemscope" itemtype="http://scheme.org/SiteNavigationElement">
				<?php wp_nav_menu(array(
		        'theme_location' => 'header-navi',
		        'items_wrap' => '<ul id="onlynavul" class="menu">%3$s</ul>',
		        'link_before' => '',
		        'link_after' => '',
		        'depth' => 0,
		        'fallback_cb' => ''
		    )); ?>
			</nav>
		<?php endif; ?>
		<?php if ($firstView_pos == 'bottom') {
		    get_template_part('/lib/parts/firstview');
		} ?>
	</div>
	<div class="d_sp">
	<?php (is_mobile()&&get_option('diver_option_headerbtn_spon', 1)) ? get_template_part('/lib/parts/header-right') : ''; ?>
	</div>
	<?php get_template_part('/lib/parts/header-message'); ?>
	<?php if (is_active_sidebar('container-top')): ?>
		<div class="container_top_widget">
			<div class="container_top_widget_content clearfix">
			<?php dynamic_sidebar('container-top'); ?>
			</div>
		</div>
	<?php endif; ?>
<?php endif; ?>