/*
 * style Name: single.css
  description: 投稿ページ用
 */

.flex {
  display: flex;
}

.main_2col_container {
  max-width: 980px;
  padding: 15px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
}

.main_single {
  width: calc(100% - 300px);
  background: #fff;
  padding: 50px 20px;
  margin-top: 0;
}

.sidebar_wrap {
  width: 300px;
  min-height: 100%;
  margin-top: 0;
  padding: 50px 20px;
}

.sidebar_wrap aside {
  box-shadow: 0px 0px 5px rgb(0, 0, 0, 0.2);
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar_title {
  padding-left: 10px;
  border-left: 5px solid #266fcb;
}

.sidebar_posts {
  list-style: none;
  margin-bottom: 10px;
}

.sidebar_post {
  border-bottom: 1px solid #cacaca;
}

.sidebar_post a {
  color: #333;
  display: block;
  padding: 10px 5px;
  font-size: 12px;
  font-weight: bold;
}

.sidebar_post a:visited {
  color: #333;
}

.sidebar_post a:hover {
  opacity: .7;
}

.sidebar_post a span {
  color: #266fcb;
  font-weight: normal;
}

.sidebar_allposts {
  text-align: right;
}

.sidebar_allposts a {
  color: #333;
  font-size: 12px;
}

.sidebar_allposts a:visited {
  color: #333;
}

.sidebar_allposts a:hover {
  opacity: .7;
}

.sidebar_archive {
  list-style: none;
  margin-top: 5px;
}

.sidebar_archive li a {
  display: block;
  padding: 5px 0;
  color: #333;
}

.sidebar_archive li a:visited {
  color: #333;
}

.sidebar_archive li a:hover {
  opacity: .7;
}

.navigation {
  margin-top: 30px;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  margin: 50px 0;
}

.nav-links a {
  color: #333;
  border: 1px solid #333;
  padding: 10px 50px;
  background: #fff;
  letter-spacing: 5px;
  transition: all .3s;
}

.nav-links a:visited {
  color: #333;
}

.nav-links a:hover {
  background: #333;
  color: #fff;
}

.nav-previous {
  margin-right: auto;
}

.nav-next {
  margin-left: auto;
}

.single_title {
  font-size: 22px;
}

.single_date {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 20px;
  text-align: right;
}

.single_thumbnail img {
  width: 100%;
  height: auto;
}

.page_topvisual {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  height: 35vh;
  width: 100vw;
  position: relative;
  margin: 0 calc(50% - 50vw);
}

.page_topvisual-title {
  font-size: 30px;
  font-weight: bold;
  text-shadow: 0 0 10px #333, 0 0 10px #333, 0 0 10px #333;
  color: #fff;
  margin: 0;
  top: 50%;
  position: absolute;
  transform: translateY(-50%);
  width: 100%;
  text-align: center;
}

.topvisual_news {
  background-image: url(../images/news_header.jpg);
  margin-top: 125px;
}

@media (max-width:820px) {
  .topvisual_news {
    margin-top: 83px;
  }
}
@media (max-width:800px) {
  .flex {
    display: block;
    margin: 50px 10px 0;
  }

  .main_single {
    width: 100%;
    padding: 0;
  }

  .sidebar_wrap {
    width: 100%;
    padding: 0;
    margin-top: 0;
  }

  .nav-previous {
    width: 50%;
  }

  .nav-next {
    width: 50%;
  }

  .nav-links a {
    display: block;
    text-align: center;
    padding: 10px 0;
    margin-right: -1px;
  }
}

@media (max-width: 460px) {
  .page_topvisual{
    height: 20vh;
  }
}