/*
Theme Name:M&Aオンライン
*/

/*-------------------------------------------
全体
-------------------------------------------*/
.navbar-brand img{width: 100px;}



/*-------------------------------------------
TOPページ
-------------------------------------------*/
#container {
	display: grid;
	grid-template-rows: 200px 200px;
	grid-template-columns: 50% 25% 25%;
}

/* アイテム */
#item0 {
	grid-row: 1 / span 2;
	grid-column: 1 / span 1;
	position: relative;
}
#item1 {
	grid-row:  1 / span 1;
	grid-column: 2 / span 1;
	position: relative;
}
#item2 {
	grid-row: 2 / span 1;
	grid-column: 2 / span 1;
	position: relative;
}


#item3 {
	grid-row:  1 / span 1;
	grid-column: 3 / span 1;
	position: relative;
}
#item4 {
	grid-row: 2 / span 1;
	grid-column: 3 / span 1;
	position: relative;
}
.toppost .filter {
	position: absolute;
    z-index: 1;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50%;
    opacity: 0.75;
    background-image: -moz-linear-gradient(90deg, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0.74902) 50%, rgba(0, 0, 0, 0) 100%);
    background-image: -webkit-linear-gradient(90deg, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0.74902) 50%, rgba(0, 0, 0, 0) 100%);
}
.toppost img{
	width: 100%;
	height: 100%;
    object-fit: cover;
}
.toppost .post-cat{
	position: absolute;
    padding: .5rem 1rem;
    text-align: center;
    left: 0px;
    font-size: .9rem;
    top: 0px;
    background-color: rgba(143, 166, 236, 0.8);
    color: white;
}
.toppost h3{
	position: absolute;
    width: 75%;
    text-align: left;
    left: 0px;
    font-size: 1rem;
    bottom: 0px;
    color: white;
    z-index: 10;
    margin-bottom: 1rem;
    margin-left: 1rem;
}
.toppost .more{
	position: absolute;
    padding: .25rem .5rem;
    margin-right: 1rem;
    text-align: center;
    right: 0px;
    font-size: .9rem;
    bottom: 0px;
    color: white;
    border: 1px solid white;
    z-index: 10;
}
#item0 h3{
	font-size: 1.2rem;
	margin-bottom: 1rem;
    margin-left: 1rem;
}
#item0 .more{
	padding: .5rem 1rem;
    margin-right: 1rem;
    text-align: center;
}






main h2{
	margin: 0 0 1.25em;
    padding: 0.15em .75em;
    border-bottom: solid 1px #dcdcdc;
    border-left: solid 5px #5f81e4;
    font-size: 2.0rem;
    font-weight: bold;
}


.article-inner{
	display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.article-inner .article{
	width: 32%;
	margin-bottom: 5%;
}
.article-inner .article img{
	width: 100%;
	height: 180px;
	object-fit: cover;
}

.article-inner .article .thumbnail-inner{
	position: relative;
}
.article-inner .article .thumbnail-inner .post-cat{
	position: absolute;
    width: 55%;
    text-align: center;
    left: 0px;
    font-size: .9rem;
    bottom: 0px;
    background-color: rgba(143, 166, 236, 0.8);
    color: white;
    margin-bottom: 0px;
}
.article-inner .article h3{
	font-size: 1rem;
    line-height: 1.5rem;
    color: black;
    text-align: left;
    margin: 5% auto;
}
.article-inner .article .post-date{
	color: #8fa6ec;
}
.article a{
	text-decoration: none;
}
.article a:hover{
	text-decoration: none;
}

/*-------------------------------------------
ヘッダー
-------------------------------------------*/
#searchform{
	position: relative;
	width: 30%;
}
.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;
}
header{
	border-top: 5px solid #5f81e4;
}
/*-------------------------------------------
フッター
-------------------------------------------*/
.footer-top{
	border-top: 5px solid #5f81e4;
}
.copywrite{
	text-align: center;
}
.footer-top{
	padding: 5% auto;
	background: #f4f7fb;
}
footer{
	background: #8fa6ec;
    color: white;
    padding: 1rem;
}
footer p{
	margin: 0px;
}
.footer-top{
	display: flex;
	justify-content: space-between;
	padding: 5%;
}
.footer-top .logo{width: 30%}
.footer-top .category{width: 30%}
.footer-top .footer-search{width: 30%;}
.footer-top .category h4{
	color: #5f81e4;
	font-weight: bold;
	font-size: 1.2rem;
	border-bottom: 2px solid #5f81e4;
}
.footer-top .category ul{
	padding-left: 0px;
	list-style: none;
}
.footer-top .category li{
	color: black;
	padding: 1rem;
	border-bottom:  1px solid gray;
}
.footer-top .category li a{
	text-decoration: none;
	color: #5f81e4;
}


#footer-logo{width: 300px;}


.footer-top #searchform{
	position: relative;
	width: 100%;
}
.footer-top #s{
  border: 2px solid #5f81e4;
  background-color: white;
  width: 70%;
  font-size: 24px;
  height: 40px;
  border-radius: 4px 0px 0px 4px;
}

.footer-top 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;
}
.footer-top .form-inline{
	background: #5f81e4;
    color: white;
    margin-right: 1rem;
    padding: 8px 32px;
    border-radius: 4px;
}




/*-------------------------------------------
メイン
-------------------------------------------*/
.main-contents{
	display: flex;
	justify-content: space-between;
	width: 80%;
    margin: 5% auto;
}
a{text-decoration: none;}
a:hover{text-decoration: none;}
main{
	width: 67%;
}
main h2{
	font-size: 1.3rem!important;
    font-weight: bold!important;
}



/*-------------------------------------------
サイドバー
-------------------------------------------*/
#sidebar {
  width: 33%;
  padding: 20px;
}
#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: 0.15em .75em;
    border-bottom: solid 1px #dcdcdc;
    border-left: solid 5px #5f81e4;
    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 #8f7275;
  background-color: white;
  width: 70%;
  font-size: 24px;
  height: 40px;
}

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


/*-------------------------------------------
検索結果
-------------------------------------------*/
.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%;
}


/*-------------------------------------------
カテゴリ一覧ページ
-------------------------------------------*/
.article-cat-inner{
	display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.article-cat-inner .article{
	width: 32%;
	margin-bottom: 5%;
}
.article-cat-inner .article img{
	width: 100%;
	height: 180px;
	object-fit: cover;
}

.article-cat-inner .article .thumbnail-inner{
	position: relative;
}
.article-cat-inner .article .thumbnail-inner .post-cat{
	position: absolute;
    width: 55%;
    text-align: center;
    left: 0px;
    font-size: .9rem;
    bottom: 0px;
    background-color: rgba(143, 166, 236, 0.8);
    color: white;
    margin-bottom: 0px;
}
.article-cat-inner .article h3{
	font-size: 1rem;
    line-height: 1.5rem;
    color: black;
    text-align: left;
    margin: 5% auto;
}
.article-cat-inner .article .post-date{
	color: #8fa6ec;
}
.article-cat-inner .article a{
	text-decoration: none;
}
.article-cat-inner .article a:hover{
	text-decoration: none;
}




/*-------------------------------------------
記事ページ
-------------------------------------------*/
.related-post-wrap h4{
	color: #8fa6ec;
	font-weight: bold;
	font-size: 1.2rem;
	border-bottom: 2px solid #8fa6ec;
}
.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: #8fa6ec;
	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;
}
.post .gaiyou{

}
.post .big-midashi{
	color: #fff;
    padding: 15px;
    background-color: #6a434a;
    margin: 30px -12px 30px;
    font-size: 26px;
    font-weight: bold;
    line-height: 1.35;
    position: relative;
}
.post .small-midashi{
	color: #6a434a;
    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 #6a434a;
    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;
}

/*-------------------------------------------
SP
-------------------------------------------*/
@media screen and (max-width: 767px) {
  /*-------------------------------------------
  aside
  -------------------------------------------*/
  #sidebar {
    width: 100%;
    padding: 5%;
  }
  #container {
    display: grid;
    grid-template-rows: 200px 150px 150px;
    grid-template-columns: 50% 50%;
  }

  /* アイテム */
  #item0 {
    grid-row: 1 / span 1;
    grid-column: 1 / span 2;
    position: relative;
  }
  #item1 {
    grid-row:  2 / span 1;
    grid-column: 1 / span 1;
    position: relative;
  }
  #item2 {
    grid-row: 2 / span 1;
    grid-column: 2 / span 1;
    position: relative;
  }


  #item3 {
    grid-row:  3 / span 1;
    grid-column: 1 / span 1;
    position: relative;
  }
  #item4 {
    grid-row: 3 / span 1;
    grid-column: 2 / span 1;
    position: relative;
  }
  .toppost .more {
    position: absolute;
    padding: .2rem .2rem;
    margin-right: .4rem;
    font-size: .5rem;
  }
  .toppost h3 {
    font-size: .8rem;
  }
  .toppost .post-cat {
    font-size: .8rem;
  }
  .main-contents {
    display: block;
    width: 90%;
    margin: 10% auto;
  }
  main {
    width: 100%;
  }
  .article-inner .article {
    width: 48%;
  }
  .article-inner .article img {
    height: 100px;
  }
  .article-inner .article .thumbnail-inner .post-cat {
    font-size: .6rem;
  }
  .article-inner .article h3 {
    font-size: .8rem;
  }
  .footer-top {
    display: block;
  }
  .footer-top .logo {
    width: 100%;
    text-align: center;
  }
  #footer-logo {
    width: 200px;
  }
  .footer-top .category {
    width: 100%;
    margin: 10% auto;
  }
  .footer-top .footer-search {
    width: 100%;
    margin: 10% auto;
  }
  .navbar-collapse form{
    display: none;
  }
  .navbar .form-inline {
      text-align: center;
      width: 100%;
      display: block;
  }
  .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%;
  }
  .article-cat-inner .article {
    width: 100%;
    margin-bottom: 5%;
}


}
