﻿/*
  Theme Name: 大忠安藤建設　ブログ
  Description:大忠安藤建設ブログ用テーマ
  Author URI: http://daichu-a.com/blog/;
*/

@charset "utf-8";
/* CSS Document */

.blog .w section:after{
  content: "."; display: block; visibility: hidden; height: 0.1px; font-size: 0.1em; line-height: 0; clear: both;
}

.blog .topicpath {
  margin-bottom: 20px;
}

.blog .page_title {
  width: 1000px;
  height: 0;
  padding-top: 12.8%;
  margin: 0 auto 50px;
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  background: url(/blog/images/bg-title_blog.jpg) no-repeat left top;
  background-size: 100% auto;
}
.blog .page_title:after {
  content: none;
}
@media screen and (max-width: 768px) {
  .blog .page_title {
    width: 100%;
    height: 0;
    margin-bottom: 5.3%;
    padding-top: 28%;
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
    background: url(/blog/images/bg-title_blog_sp.jpg) no-repeat left top;
    background-size: contain;
  }
}

a.blog_home {
  color: #222222 !important;
}

#main {
  width: 65%;
  max-width: 650px;
  float: left;

}

/* form 
------------------*/
input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
textarea {
  margin: 0;
  margin-bottom: 20px;
  padding: 10px 4px;
  max-width: 100%;
  width: 290px;
  outline: none;
  border: 1px solid #cccccc;
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  border-radius: 2px;
  background: #fff;
  color: #b0adad;
  vertical-align: bottom;
}
#searchform{
  position: relative;
}
#s{
  padding: 10px 2% 10px 14%;
  width: 100%;
  font-size: 14px;
}
#searchsubmit{
  border: none;
  position: absolute;
  top: 14px;
  left: 12px;
  width: 16px;
  height: 16px;
  background: url(/blog/images/ico-search.png) no-repeat 50% 50%;
  background-size: auto 95%;
}


/* sidemenu
--------------------------------*/
#aside {
  width: 30%;
  max-width: 300px;
  float: right;
}
#aside .search {
  margin-bottom: 5%;
}
#aside .widget {
  clear: both;
  margin-bottom: 10%;
}
#aside .widget h2 {
  margin-bottom: 3%;
}

/* recent post[最新情報] */
#aside .widget#recent_post_list ul {
  border-top: 1px solid #cccccc;
}
#aside .widget#recent_post_list li {
  border-bottom: 1px solid #cccccc;
  padding: 0.75em 0;
  line-height: 1.3;
}
#aside .widget#recent_post_list li a {
  color: #b91818;
  text-decoration: none;
  font-size: 1.4rem;
}
#aside .widget#recent_post_list li a:hover {
  text-decoration: underline;
}

/* カテゴリーアーカイブ */
#aside .widget#category_list ul {
  margin-left: -2%;
}
#aside .widget#category_list ul:after{
  content: "."; display: block; visibility: hidden; height: 0.1px; font-size: 0.1em; line-height: 0; clear: both;
}
#aside .widget#category_list li {
  float: left;
  margin: 0 0 4% 2%;
}
#aside .widget#category_list li a {
  border: 1px solid #885934;
  font-size: 1.3rem;
  text-decoration: none;
  padding: 6px 15px;
}
#aside .widget#category_list li a:hover {
  background: #885934;
  color: #ffffff;
}

/* バックナンバー[日付アーカイブ] */
#aside .widget#archive_list li a {
  color: #b91818;
  font-size: 1.4rem;
  text-decoration: none;
}
#aside .widget#archive_list li a:hover {
  text-decoration: underline;
}


@media screen and (max-width:768px) {
	/*sp*/
  #main {
    width: 90.66%;
    margin: 0 auto 15%;
    float: none;
  }
  #aside {
    width: 90.66%;
    max-width: 100%;
    margin: 0 auto;
    float: none;
  }
  #aside .widget h2 {
    font-size: 1.8rem;
  }
  #aside .widget#recent_post_list li a,
  #aside .widget#archive_list li a {
    font-size: 1.3rem;
  }
  #aside .search{
    width: 86%;
    margin: 0 auto;
  }
  input[type="text"] {
    width: 100%;
  }
}

/* --------------------------------
  #blog_index [一覧ページ]
-----------------------------------*/
#blog_index {
  margin-bottom: 80px;
}

#main .archive_title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 4.6%;
}

#main .blog_list_box {
  border-bottom: 1px solid #cccccc;
  margin-bottom: 3.38%;
  padding-bottom: 4.6%; 
}
#main .blog_list_box:after{
  content: "."; display: block; visibility: hidden; height: 0.1px; font-size: 0.1em; line-height: 0; clear: both;
}

#main .blog_list_box h3 {
  margin-bottom: 1.5%;
  line-height: 1.5;
}
#main .blog_list_box h3 a {
  color: #222222;
  text-decoration: none;
  font-size: 150%;
}
#main .blog_list_box h3 a:hover {
  text-decoration: underline;
}
#main .blog_list_box .photo {
  width: 36.96%;
  float: left;
}
#main .blog_list_box .photo img {
  width: 100%;
  height: auto;
}
#main .blog_list_box .text {
  width: 60%;
  margin-left: 3%;
  float: left;
}
#main .blog_list_box .text .blog_body_txt {
  margin-bottom: 1.5%;
}
#main .blog_list_box .text .more-link {
  color: #b91818;
}

.pagination{
  text-align: center;
}
a.page-numbers,
.pagination .current{
  padding: 5px;
  margin: 0 2px;
  text-decoration: none;
  color: #b91818;
}
a.page-numbers:hover {
  text-decoration: underline;
}
.pagination .current{
  color: #222222;
}

@media screen and (max-width:768px) {
  /*sp*/
  #blog_index {
    margin-bottom: 0;
  }
  #main .archive_title {
    font-size: 1.6rem;
  }
  #main .blog_list_box .text .blog_body_txt {
    margin-top: -0.2em;
    line-height: 1.3;
    font-size: 1.3rem;
  }
}

/* --------------------------------
  #blog_under  [詳細ページ]
-----------------------------------*/
#blog_under {
  margin-bottom: 80px;
}

.post {
  border-bottom: 1px solid #cccccc;
  padding-bottom: 4.38%;
  margin-bottom: 3.38%;
}
.post_title_area {
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  padding: 3.8% 0;
  margin-bottom: 2.3%;
}
.post_title_area .post-date {
  font-size: 1.6rem;
}
.post_title_area h2 {
  font-size: 2.6rem;
  font-weight: normal;
}
.post_title_area h2 a {
  color: #222222;
  text-decoration: none;  
}

.head-post-category {
  margin-bottom: 4.3%;
}

.post_detail p {
  margin-bottom: 1em;
}

.post_detail p a {
  color: #b91818;
  text-decoration: none;
}
.post_detail p a:hover {
  text-decoration: underline;
}

.head-post-category:after,
.footer-post-category:after {
  content: "."; display: block; visibility: hidden; height: 0.1px; font-size: 0.1em; line-height: 0; clear: both;
}
.footer-post-category {
  margin-top: 5.3%;
}
.head-post-category span,
.footer-post-category span {
  float: left;
  margin-right: 5px;
}
.head-post-category span a,
.footer-post-category span a {
  border: 1px solid #885934;
  padding: 6px 15px;
  text-decoration: none;
  font-size: 1.3rem;
}
.head-post-category span a:hover,
.footer-post-category span a:hover {
  background: #885934;
  color: #fff;
}

.post_navigation:after{
  content: "."; display: block; visibility: hidden; height: 0.1px; font-size: 0.1em; line-height: 0; clear: both;
}
.post_navigation a {
  color: #b91818;
  text-decoration: none;
}
.post_navigation a:hover {
  text-decoration: underline;
}
.post_navigation .prev {
  float: left;
}
.post_navigation .next {
  float: right;
}

@media screen and (max-width:768px) {
  /*sp*/
  #blog_under {
    margin-bottom: 0;
  }
  .post {
    padding-bottom: 5.3%;
  }
  .post_title_area {
    padding: 4% 0 3%;
    line-height: 1.5;
    margin-bottom: 3.8%;
  }
  .post_title_area .post-date {
    font-size: 1.4rem;
  }
  .post_title_area h2 {
    font-size: 2rem;
  }
  .post_detail p {
    font-size: 1.4rem;
    line-height: 1.5;
  }
  .head-post-category {
    padding-top: 1%;
    margin-bottom: 7.35%;
  }
  .footer-post-category {
    padding-top: 5.35%;
  }
  .head-post-category span a,
  .footer-post-category span a {
    font-size: 1.2rem;
  }
  .post_navigation a {
    font-size: 1.4rem;
  }
}

html.android #searchsubmit{
  border: none;
  position: absolute;
  top: 12px;
  left: 12px;
  width: 16px;
  height: 16px;
  background: url(/blog/images/ico-search.png) no-repeat 50% 50%;
  background-size: 90% 90%;
}