@import "site.scss";
//--------------------------------------
// 全体
//--------------------------------------
$color-dark : #343a40;

html, body {
  color: $color-dark;
}
a:hover {
  color: $color-primary;
}
.main-container {
  padding: 0;
}
.container-large {
  width: 1024px;
}
.navbar {
  padding: 0;
}
.navbar-brand {
  padding: 10px 0;
}
.blog-nav {
  display: inline-block;
  margin: 10px 0;
  &.active {
    font-weight: 600;
  }
  li {
    display: inline-block;
    list-style: none;
    &:after {
      content: '';
      display: inline-block;
      height: 14px;
      width: 1px;
      background: #ccc;
    }
    a {
      display: inline-block;
      color: $color-secondary;
      font-size: 14px;
      &:hover {
        text-decoration: underline;
        color: $color-primary;
      }
    }
  }
}
.navbar-nav .nav-link {
  padding-left: 15px;
  padding-right: 15px;
}
.navbar-toggler {
  margin-right: 20px;
}
//--------------------------------------
// トップページ
//--------------------------------------
.blog-warp {
  background: #F0F0F0;
}
.blog-header {
  background-size: cover;
  text-align: center;
  padding: 110px 0;
  color: #fff;
}
.blog-top-header {
  background: url(images/blog_top.png) no-repeat center center;
  h2 {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 0;
  }
  h1 {
    position: relative;
    top: -13px;
    background: #fff;
    font-size: 12px;
    font-weight: 300;
    color: #000;
    display: inline-block;
    padding: 2px 70px;
  }
}
.blog-category-header {
  background: url(images/blog_category.png) no-repeat center center;
  h2 {
    font-size: 32px;
    font-weight: 300;
  }
}
.popular-posts {
  background: #fff;
}
.post-image {
  a:hover {
    opacity: .7;
  }
}
.img-text {
  display: flex;
  .post-image {
    width: 80px;
    img {
      width: 100%;
    }
  }
  .post-text {
    flex: 1;
    padding: 0 0 10px 10px;
  }
  .post-title {
    font-size: 13px;
    font-weight: 300;
    a {
      color: #000;
      &:hover {
        color: $color-primary;
      }
    }
  }
  .post-info {
    font-size: 12px;
  }
}

.post-category {
  font-size: 10px;
  display: inline-block;
  margin-left: 10px;
  a {
    display: block;
    background: $color-primary;
    border-radius: 2px;
    padding: 2px 6px;
    color: #fff;
    &:hover {
      text-decoration: none;
      opacity: .7;
    }
  }
}
.blog-list-heading {
  color: $text-dark;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.casset-list {
  .post-item {
    display: flex;
    flex-wrap: wrap;
  }
  .post-image {
    width: 100%;
    max-height: 220px;
    overflow: hidden;
    a {
      font-size: 0;
      line-height: 0;
      display: block;
    }
    img {
      object-fit: cover;
      width: 100%;
      max-height: 100%;
    }
  }
  .post-text {
    padding: 10px;
    background: #fff;
    width: 100%;
    min-height: 100px;
  }
  .post-title {
    font-size: 16px;
    font-weight: 300;
    a {
      color: #000;
      &:hover {
        color: $color-primary;
      }
    }
  }
  .post-info {
    font-size: 12px;
  }

}
.post-heading {
  font-size: 24px;
  font-weight: 400;
}
.post-eyecatch {
  img {
    width: 100%;
  }
}
.post-body {
  background: #fff;
  padding: 20px;
  border-bottom: 1px solid #ccc;
  h1, h2 {
    font-size: 20px;
    font-weight: 500;
    margin: 20px 0;
    border-radius: 4px;
    &:before {
      content: "";
      display: inline-block;
      width: 5px;
      height: 24px;
      vertical-align: top;
      background: #343a40;
      border-radius: 6px;
      margin-right: 8px;
      background: $color-dark;
    }
  }
  h3, h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 15px 0 10px;
  }
  p {
    font-size: 16px;
  }
}

@media (max-width: 767.98px) {
  .blog-top-header h1 {
    top: 10px;
  }
  .casset-list .post-image {
    max-height: none;
  }
}

@media (max-width: 575.98px) {
  .blog-nav li {
    display: block;
    &:after {
      display: none;
    }
  }
  .post-body {
    padding: 0;
  }
  .blog-header {
    padding: 50px 0;
  }
}
