

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-size: 14px;
  background-color: #F5F5DC;
}

.header {
  background-color: #3c5977;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header img {
  height: 100px;
  width: auto;
}

/* 検索窓 */
.search-box-outer {
  width:100%;
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.search_box {
  width: 1050px;
  display: flex;
  justify-content: flex-start;
  position: relative;    /* 基準値とする */
}

.search_box::before {
  content: "";           /* 疑似要素に必須 */
  width: 16px;           /* アイコンの横幅 */
  height: 16px;          /* アイコンの高さ */
  background: url(images/magnifying-glass-solid.svg) no-repeat center center / auto 100%; /* 背景にアイコン画像を配置 */
  display: inline-block; /* 高さを持たせるためにインラインブロック要素にする */
  position: absolute;    /* 相対位置に指定 */
  top: 4px;              /* アイコンの位置。微調整してね */
  left: 5px;             /* アイコンの位置。微調整してね */
}

.search_box::after {
  content: "";           /* 疑似要素に必須 */
  width: 1px;           /* アイコンの横幅 */
  height: 16px;          /* アイコンの高さ */
  background-color: #434343;
  display: inline-block; /* 高さを持たせるためにインラインブロック要素にする */
  position: absolute;    /* 相対位置に指定 */
  top: 4px;              /* アイコンの位置。微調整してね */
  left: 25px;             /* アイコンの位置。微調整してね */
}

.search_box input {
  padding: 3px 0 3px 2em; /* アイコンを設置するため左の余白を多めに指定*/
}

/* 動画新着 */
.new-posts {
  width: 1050px;
  margin: 30px auto;
  position: relative;
}

.new-posts span {
  font-size: 1rem;
  background-color: #F8C13D;
  color: white;
  padding: 1px 10px;
  margin-left: 3px;
  font-weight: 400;
}

.new-posts h2 {
  font-size: 1.5rem;
}

.new-posts h2::after {
  content: "";
  width: 80%;
  height: 2px;
  background-color: #F8C13D;
  position: absolute;
  top: 38px;
  right: 0;
}

.new-posts h2::before {
  content: "";
  width: 20%;
  height: 2px;
  background-color: #3c5977;
  position: absolute;
  top: 38px;
  left: 0;
}

.slider {
  margin-top: 15px;
}

.slider li {
  height: 160px;
  margin: 10px;
  background-color: white;
  list-style: none;
}

.slider a {
  width: 20%;
  text-decoration: none;
  color: black;
}

.slider img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  margin-bottom: 10px;
}

.slick-dots li {
  background-color: transparent;
}

.arrow_box {
  width: 1020px;
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 110px;
  left: 15px;
}

.prev-arrow,
.next-arrow {
    display: block;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all .3s ease;
    cursor: pointer;
    position:relative;
    opacity: 0.5;
}

.prev-arrow {
    transform: rotate(180deg);
    margin-right: 20px;
}

.prev-arrow::before,
.next-arrow::before{
    position:absolute;
    content: "";
    width:8px;
    height:8px;
    border-right: 3px solid #434343;
    border-top: 3px solid #434343;
    top:0;
    bottom:0;
    left:0;
    right:0;
    margin:auto;
    transform:rotate(45deg);
}

/* main */
.main {
  display: flex;
  justify-content: space-between;
  width: 1050px;
  margin: 25px auto;
}

.postlists {
  width: 75%;
  /* min-width: 790px; */
  position: relative;
  margin-right: 15px;
}

.home-postlists-h2 {
  font-size: 1.4rem;
}

.home-postlists-h2 a {
  text-decoration: none;
  color: black;
}

.home-postlists-h2 span {
  color: #F8C13D;
  font-size: 1rem;
  font-weight: 400;
}

.home-postlists-h2::after {
  content: "";
  width: 80%;
  height: 2px;
  background-color: #F8C13D;
  position: absolute;
  top: 35px;
  right: 0;
}

.home-postlists-h2::before {
  content: "";
  width: 20%;
  height: 2px;
  background-color: #3c5977;
  position: absolute;
  top: 35px;
  left: 0;
}

/*  */
.postlists-outer {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: 20px;
  justify-content: flex-start;
}

.postlists-content {
  position: relative;
  width: 48%;
  /* min-width: 380px;
  max-width: 380px; */
  height: 420px;
  background-color: white;
  margin-bottom: 30px;
  margin: 1%;
  /* margin-left: 10px; */
} 

.postlists-content a {
  text-decoration: none;
}

.category-label {
  position: absolute;
  right: 10px;
  top: 10px;
  background-color: #3c5977;
  width: 100px;
  height: 30px;
  color: white;
  display: flex;
  text-align: center;
  justify-content: center;
}

.category-label li {
  list-style: none;
}

.category-label p {
  align-self: center;
}

.postlists-img {
  width: 100%;
  height: 240px;
}

.postlists-img img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.postlists-title {
  color: #3c5977;
  padding: 20px 20px 0px 20px;
  font-size: 1.2rem;
}

.postlists-text {
  color: black;
  padding: 20px 20px 0px 20px;
  font-size: 0.9rem;
}


/* pagination */
.pagination {
  
  color: black;
  display: flex;
  justify-content: center;
  align-items: baseline;
  height: 60px;
}

.pagination a {
  color: black;
  text-decoration: none;
  padding: 15px;
}

.current {
  text-decoration: underline;
  text-underline-offset: 5px;
  width: 2px;
  text-decoration-color: #F8C13D;
}

.page-numbers {
  text-decoration: underline;
  text-underline-offset: 5px;
  width: 2px;
  text-decoration-color: #3c5977;
}

/* sidebar */

.sidebar {
  width: 25%;
  min-width: 250px;
  margin-left: 15px;
  margin-top: 35px;
}

.sidebar a {
  text-decoration: none;
  display: block;
  line-height: 40px;
  color: black;
}

.sidebar h3 {
  font-size: 1.5rem;
  padding: 30px 0 10px 40px;
  color: #3c5977;
}

.sidebar h3::before {
  content: "| ";
  width: 2px;
  height: 20px;
  color: #3c5977;
}

.sidebar li {
  list-style: none;
  position: relative;
  padding-left: 40px;
}

.sidebar-category li::after {
  content: "";
  background-color: #ababab;
  width: 170px;
  height: 1.5px;
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.sidebar-line {
  height: 300px;
  background-color: green;
  margin-bottom: 20px;
}

.sidebar-category {
  background-color: white;
  height: 320px;
  margin-bottom: 20px;
}

.sidebar-news {
  background-color: white;
  height: 290px;
  margin-bottom: 20px;
}

.sidebar-news-link {
  color: #3c5977;
}

.sidebar-news-inner {
  position: relative;
}

.sidebar-news-date {
  color: #3c5977;
  font-size: 0.8rem;
}

.sidebar-news-title {
  line-height: 0;
  margin-bottom: 15px;
}

.sidebar-news-title::after {
  content: "";
  background-color: #ababab;
  width: 170px;
  height: 1.5px;
  position: absolute;
  top: 53px;
  left: 40%;
  transform: translateX(-50%);
}


/* footer */
footer {
  background-color: #3c5977;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

/* single page php */
.post-content {
  width: 1050px;
  margin-right: 20px;
}

.category-name {
  background-color: #3c5977;
  width: 100px;
  height: 30px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.category-name a {
  text-decoration: none;
  color: white;
}

.category-name li {
  list-style: none;
}

.post-content h2 {
  margin-bottom: 20px;
}

.post-image {
  width: 100%;
  margin-bottom: 10px;
}

.post-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: 10px;
}

.post-content p {
  line-height: 30px;
}

/* archive page */
.archive-outer {
  margin-top: 35px;
}

.archive-title {
  width: 1050px;
  height: 30px;
  position: relative;
  margin: 0px auto;
  display: flex;
  align-items: flex-end;
}

.archive-title a {
  text-decoration: none;
}

.archive-title li {
  list-style: none;
}

.archive-title h2::after {
  content: "";
  width: 80%;
  height: 2px;
  background-color: #F8C13D;
  position: absolute;
  top: 38px;
  right: 0;
}

.archive-title h2::before {
  content: "";
  width: 20%;
  height: 2px;
  background-color: #3c5977;
  position: absolute;
  top: 38px;
  left: 0;
}

.archive-a {
  display: flex;
  text-decoration: none;
  background-color: white;
  margin-bottom: 20px;
}

.archive-h2 {
  margin-bottom: 10px;
  color: #3c5977;
}

.archive-text {
  padding: 20px;
  width: 60%;
  color: black;
}

.archive-image {
  width: 40%;
  height: 200px;
}

.archive-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* パンくずリスト */
.breadcrumbs-outer {
  display: flex;
  justify-content: space-between;
  width: 1050px;
  margin: 25px auto;
}

.breadcrumbs {
  width: 1050px; 
  margin: 0 auto;
}

/* search.php */

.search-php-title {
  margin: 0 auto;
  width: 1050px;
  position: relative;
}

.search-php-title h2::after {
  content: "";
  width: 80%;
  height: 2px;
  background-color: #F8C13D;
  position: absolute;
  top: 38px;
  right: 0;
}

.search-php-title h2::before {
  content: "";
  width: 20%;
  height: 2px;
  background-color: #3c5977;
  position: absolute;
  top: 38px;
  left: 0;
}

/* バナーウィジェット */
.home-banner {
  width: 1050px;
  margin: 0 auto;
}

.home-banner img{
  width: 100%;
  margin: 30px auto;
}

/* random posts */

.random-posts {
  width: 1050px;
  margin: 0 auto;
  display: flex;
  height: 300px;
}

.random-posts-outer {  
  width: 100%;
  height: 220px;
  margin: 25px 5px;
  display: flex;
}

.random-posts-outer a {
  background-color: white;
  text-decoration: none;
  color: #434343;
  width: 25%;
  margin: 0 5px;
}

.random-posts-category {
  margin: 5px 10px;
}

.random-posts-postlists-img {
  width: 100%;
}

.random-posts-postlists-img img {
  width: 100%;
}

.random-posts-title {
  color: #3c5977;
  margin-left: 10px;
}

.random-posts-h2 {
  width: 1050px;
  margin: 0 auto;
  position: relative;
}

.random-posts-h2::after {
  content: "";
  width: 80%;
  height: 2px;
  background-color: #F8C13D;
  position: absolute;
  top: 35px;
  right: 0;
}

.random-posts-h2::before {
  content: "";
  width: 20%;
  height: 2px;
  background-color: #3c5977;
  position: absolute;
  top: 35px;
  left: 0;
}

/* responsive */
@media screen and (max-width: 769) {

}