<?php get_header(); ?>
<body <?php body_class(); ?>>
<div id="options" class="<?php $options = get_option('myd_theme_options'); if (!empty($options[layout])) { echo esc_html($options[layout]); } else { echo 'c2r'; } ?> <?php $options = get_option('myd_theme_options');echo esc_html($options['background_color_tone']);?>" >
	<?php get_template_part( 'banner' ); ?>

	<div class="l-container" id="container">
		<?php {dynamic_sidebar('bigbanner_top');}?>

		<div class="l-main_sidebar1">
			<div class="l-main main" id="main" role="main">
				<?php {dynamic_sidebar('top_main_top');}?>

				<?php if ( !is_paged() ) : {dynamic_sidebar('top_main_top-1st');} ?><?php else : ?><?php endif; ?>

				<?php while ( have_posts() ) : the_post(); // Start the Loop. ?>
				<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
					<header class="entry-header">
						<h1>
							<a class="entry-title" href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
						</h1>
						<div class="entry-meta">
							<span class="entry-meta-item date updated"><time datetime="<?php echo the_time('Y-m-j'); ?>" pubdate><?php the_time( get_option('date_format') ) ;?></time></span>
							<span class="entry-meta-item vcard author"><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><?php the_author_meta('display_name'); ?></a></span>
							<span class="entry-meta-item category"><?php the_category(' &bull; '); ?></span>
						</div>
					</header>

					<div class="entry-content">
						<a class="post-thumbnail" href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>">
							<?php if (has_post_thumbnail()) { the_post_thumbnail(); } ?>
						</a>
						<?php the_excerpt(); ?>
						<span class="more-link"><a href="<?php the_permalink() ?>">続きを読む</a></span>
					</div>
				</article>
				<?php endwhile; // end of the loop. ?>

				<?php {dynamic_sidebar('top_main_bottom');}?>

				<?php pagination(); ?>
			</div>

			<?php get_sidebar('1'); ?>
		</div>

		<?php get_sidebar('2'); ?>

		<?php {dynamic_sidebar('bigbanner_bottom');}?>

	</div>

	<?php get_footer(); ?>