/*
Theme Name:M&Aメディア
*/

/*-------------------------------------------
全体
-------------------------------------------*/
.navbar-brand img{width: 200px;}
body{
	background: #f4f5f7;
}


/*-------------------------------------------
ヘッダー
-------------------------------------------*/
header{
	background: white;
}
.caution{
	text-align: center;
	font-size: .9rem;
}
.navbar #s{
  border: 2px solid #5f81e4;
  background-color: white;
  width: 70%;
  font-size: 24px;
  height: 40px;
  border-radius: 4px 0px 0px 4px;
}

.navbar input[type="submit"] {
  color: #fff;
  background-color: #5f81e4;
  border: 1px solid #5f81e4;
  padding: 0 15px 0 15px;
  margin: 0px;
  position: absolute;
  right: 5%;
  width: 28%;
  height: 40px;
  border-radius: 0px 4px 4px 0px;
}
.navbar .form-inline{
	background: #5f81e4;
    color: white;
    margin-right: 1rem;
    padding: 8px 32px;
    border-radius: 4px;
}

 .navbar {
    display: table!important;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    padding: 0px!important;
}
.navbar-collapse{
	background: #f0ae8d;
}
.navbar-collapse li{
	font-size: 1rem;
    padding: 1rem;
}
.navbar-collapse ul{
	margin: 0 auto;
}



/*-------------------------------------------
メイン
-------------------------------------------*/
.main-contents{
	display: flex;
	background: #f4f5f7;
	justify-content: space-between;
	padding: 5%;
}
a{text-decoration: none;}
a:hover{text-decoration: none;}
main{
	width: 70%;
	background: white;
    padding: 1rem;
    border-radius: 8px;
}
main h2{
	font-size: 1.3rem!important;
    font-weight: bold!important;
}
.article{
	margin-bottom: 1rem;
}
.article a{
	display: flex;
    justify-content: space-between;
}
.article .thumbnail-inner{
	width: 40%;
	position: relative;
}
.article .thumbnail-inner img{
	width: 100%;
	height: 200px;
    object-fit: cover;
}
.article h3{
	font-size: 1.5rem;
}
.article a{
	text-decoration: none;
}
.article a:hover{
	text-decoration: none;
}
.article .thumbnail-inner .post-cat{
	position: absolute;
    padding: .5rem 1rem;
    text-align: center;
    left: 8px;
    font-size: .9rem;
    top: 8px;
    background-color: #f0ae8d;
    color: white;
}
.article .text{
	width: 55%;
	color: black;
}


/*-------------------------------------------
サイドバー
-------------------------------------------*/
#sidebar {
  width: 28%;
  background: white;
  padding: 1rem;
  border-radius: 8px;
}
#sidebar .side-title {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 30px;
}
.author {
  text-align: center;
  margin-bottom: 60px;
}
.author img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin-bottom: 30px;
}
.author .profile {
  font-size: 0.875rem;
  text-align: left;
}
.archive {
  text-align: center;
  margin-bottom: 60px;
}
.archive ul {
  border-bottom: solid  1px #777;
}
.archive li {
  font-size: 0.875rem;
  border-top: solid  1px #777;
  padding: 20px;
  text-align: left;
}

#sidebar img{width: 100%; margin: 5% auto;}
#sidebar .tag{
	margin: 10% auto;
}
#sidebar .tag h4{
	margin: 0 0 1.25em;
    padding: 1rem;
    background: #ec565e;
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
}
#sidebar .tag ul{
	padding-left: 0px;
	list-style: none;
}
#sidebar .tag li{
	color: black;
	padding: 1rem;
	border-bottom:  1px solid gray;
}
#sidebar .tag li a{
	text-decoration: none;
	color: black;
}

#searchform{
	position: relative;
}
#sidebar #s{
  border: 2px solid #ec565e;
  background-color: white;
  width: 70%;
  font-size: 24px;
  height: 40px;
  border-radius: 4px;
}

#sidebar input[type="submit"] {
  color: #fff;
  background-color: #ec565e;
  border: 1px solid #000;
  padding: 0 15px 0 15px;
  margin: 0px;
  position: absolute;
  right: 5%;
  width: 20%;
  height: 40px;
  border-radius: 4px;
}

/*-------------------------------------------
検索結果
-------------------------------------------*/
.search main{
	width: 100%;
}
.search .mainserch{
	width: 67%;
}
.search .article{
	display: flex;
	justify-content: space-between;
	margin-bottom: 5%;
}
.search .article .left{
	width: 30%;
}
.search .article .left img{width: 100%;height: 200px; object-fit: cover;}
.search .article .right{
	width: 65%;
}




/*-------------------------------------------
フッター
-------------------------------------------*/
footer {
	padding-left: 5%;
    padding-right: 5%;
    display: flex!important;
    justify-content: space-between;
}
footer p{
	margin-top: 0px;
	margin-bottom: 0px;
	line-height: 68px;
}


/*-------------------------------------------
カテゴリ一覧ページ
-------------------------------------------*/
.article-cat-inner .article{
	margin-bottom: 1rem;
}
.article-cat-inner .article a{
	display: flex;
    justify-content: space-between;
}
.article-cat-inner .article .thumbnail-inner{
	width: 40%;
	position: relative;
}
.article-cat-inner .article .thumbnail-inner img{
	width: 100%;
	height: 200px;
    object-fit: cover;
}
.article-cat-inner .article h3{
	font-size: 1.5rem;
}
.article-cat-inner .article a{
	text-decoration: none;
}
.article-cat-inner .article a:hover{
	text-decoration: none;
}
.article-cat-inner .article .thumbnail-inner .post-cat{
	position: absolute;
    padding: .5rem 1rem;
    text-align: center;
    left: 8px;
    font-size: .9rem;
    top: 8px;
    background-color: #f0ae8d;
    color: white;
}
.article-cat-inner .article .text{
	width: 55%;
	color: black;
}
.article-cat-inner .article a{
	text-decoration: none;
}
.article-cat-inner .article a:hover{
	text-decoration: none;
}





/*-------------------------------------------
記事ページ
-------------------------------------------*/
.related-post-wrap h4{
	color: #f0ae8d;
	font-weight: bold;
	font-size: 1.2rem;
	border-bottom: 2px solid #f0ae8d;
}
.post .post-title{
	font-size: 2rem;
	font-weight: bold;
}
.post .post-date{
	color: #8fa6ec;
	display: block;
	margin: 5% auto;
}
.post img{
	width: 100%;
    height: 400px;
    object-fit: cover;
}
.post-categories{
	padding-left: 0px;
    list-style: none;
}
.post-categories li{
	background: #f0ae8d;
	color: white;
	padding: 8px 16px;
	font-size: 1rem;
	display: inline;
    border-radius: 4px;
    margin: 5% auto;
}
.post-categories li a{
	text-decoration: none;
	color: white;
	display: inline-block;
	background-color: #f0ae8d;
}
.post .gaiyou{

}
.post .big-midashi{
	color: #fff;
    padding: 15px;
    background-color: #f0ae8d;
    margin: 30px -12px 30px;
    font-size: 26px;
    font-weight: bold;
    line-height: 1.35;
    position: relative;
}
.post .small-midashi{
	color: #f0ae8d;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.7;
    margin: 20px 0 10px 15px;
    padding-bottom: 10px;
    display: inline-block;
    position: relative;
}
.post .small-midashi::before {
    content: "";
    border-left: 7px solid #f0ae8d;
    min-height: 25px;
    position: absolute;
    left: -23px;
    top: 7px;
}

.post .honbun{

}
.related-post-wrap ul{
    display: flex;
    list-style: none;
    padding-left: 0px;
    justify-content: space-between;
}
.related-post-wrap ul li{
  width: 33%;
}
.related-post-wrap ul li img{
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.related-post-wrap ul li a{
  text-decoration: none;
  color: black;
}
.navbar-brand{
  margin: 1rem auto;
}

/*-------------------------------------------
SP
-------------------------------------------*/
@media screen and (max-width: 767px) {
  /*-------------------------------------------
  aside
  -------------------------------------------*/
  #sidebar {
    width: 100%;
    padding: 5%;
  }
  .main-contents {
    display: block;
  }
  main {
    width: 100%;
  }
  .article a {
    display: block;
    margin-bottom: 10%;
  }
  .article .thumbnail-inner {
    width: 100%;
  }
  .article .text {
    width: 100%;
  }
  .article h3 {
    font-size: 1.2rem;
    line-height: 1.8rem;
    margin: 5% auto;
  }
  footer {
    text-align: center;
    display: block!important;
  }
  .article-cat-inner .article a {
    display: block;
  }
  .article-cat-inner .article .thumbnail-inner {
    width: 100%;
  }
  .article-cat-inner .article .text {
    width: 100%;
  }
  .post img {
    height: 200px;
    margin-top: 5%;
    margin-bottom: 5%;
  }
  .search .mainserch {
    width: 100%;
  }
  .search .article {
    display: block;
    margin-bottom: 10%;
  }
  .search .article .left {
    width: 100%;
  }
  .search .article .right {
    width: 100%;
  }
  .related-post-wrap ul{
    display: block;
  }
  .related-post-wrap ul li {
      width: 100%;
      margin-bottom: 10%;
  }
  .navbar-light .navbar-toggler {
    margin-left: 5%;
  }



}



