﻿.soTopicsList > ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.soTopicsList > ul > li {
  width: 24%;
  margin-right: 1.3333333333%;
}

.soTopicsPager {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin-top: 40px;
  font-size: 1.4rem;
}

.soTopicsPagerPrev, .soTopicsPagerNext {
  margin: 0 5px;
}

.soTopicsPagerPrev > a, .soTopicsPagerNext > a {
  display: block;
  width: 55px;
  height: 40px;
  background-color: #edf9ff;
  color: #006fbc;
  line-height: 40px;
  text-align: center;
  text-decoration: none;
}

.soTopicsPagerNum {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.soTopicsPagerNum > a {
  display: block;
  width: 35px;
  height: 40px;
  margin: 0 5px;
  background-color: #edf9ff;
  color: #006fbc;
  line-height: 40px;
  text-align: center;
  text-decoration: none;
}

.soTopicsPagerNum > a > b {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid #e6e6e6;
  background-color: #fff;
  color: #666;
  font-weight: normal;
  line-height: 38px;
}

.soTopicsArchive {
  padding: 25px;
  border: 1px solid #e1e1e1;
  font-size: 1.4rem;
}

.soTopicsArchive > ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.soTopicsArchive > ul > li {
  width: 20%;
}

.soTopicsArchive > ul > li > a {
  display: inline-block;
  padding-left: 10px;
  background-image: url(/files/img/so/common/arrow_r_blue.png);
  background-position: left center;
  background-repeat: no-repeat;
  color: #666;
}

.soTopicsDetailTitle {
  font-size: 2.0rem;
  line-height: 1.3;
}

.soTopicsDetailTitle > h2 {
  font-weight: 500;
}

.soTopicsDetailDate {
  margin-top: 10px;
}

.soTopicsDetailContents {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e3e3e3;
}

.soTopicsDetailPhoto {
  width: 100%;
  height: 300px;
  margin: 0 auto 20px;
  overflow: hidden;
  text-align: center;
}

.soTopicsDetailPhoto > img {
  max-width: none;
  height: 100%;
}

.soTopicsDetailPhotoList {
  margin-top: 20px;
}

.soTopicsDetailPhotoList > ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.soTopicsDetailPhotoList > ul > li {
  width: 32%;
  height: 190px;
  overflow: hidden;
  background-color: #e3e3e3;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: auto 100%;
}

.soTopicsDetail .soBtn > a > span {
  background-image: url(/files/img/so/common/arrow_back.png);
}

@media screen and (max-width: 1024px) {
  .soTopicsList > ul {
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
  }
  .soTopicsList > ul > li {
    width: 48%;
  }
  .soTopicsList > ul > li:nth-of-type(n+3) {
    margin-top: 10px;
  }
  .soTopicsPager {
    margin-top: 30px;
  }
  .soTopicsPagerPrev, .soTopicsPagerNext {
    margin: 0 3px;
  }
  .soTopicsPagerNum > a {
    margin: 0 3px;
  }
  .soTopicsArchive {
    padding: 15px;
    font-size: 1.3rem;
  }
  .soTopicsArchive > ul > li {
    width: 50%;
    text-align: center;
  }
  .soTopicsArchive > ul > li:nth-of-type(n+3) {
    margin-top: 10px;
  }
  .soTopicsDetailTitle {
    font-size: 1.8rem;
  }
  .soTopicsDetailContents {
    margin-top: 20px;
  }
  .soTopicsDetailPhoto {
    height: 200px;
  }
  .soTopicsDetailPhotoList > ul {
    display: block;
  }
  .soTopicsDetailPhotoList > ul > li {
    width: 100%;
    height: auto;
    padding-top: 45%;
  }
  .soTopicsDetailPhotoList > ul > li:nth-of-type(n+2) {
    margin-top: 20px;
  }
  .soTopicsDetail .soBtn {
    margin-top: 40px;
  }
}

@media screen and (min-width: 1025px), print {
  .soTopicsList > ul > li:nth-of-type(4n) {
    margin-right: 0;
  }
  .soTopicsList > ul > li:nth-of-type(n+5) {
    margin-top: 10px;
  }
  .soTopicsPagerPrev > a:hover, .soTopicsPagerNext > a:hover {
    background-color: #ccf;
    color: #fff;
  }
  .soTopicsPagerNum > a:hover {
    background-color: #ccf;
    color: #fff;
  }
  .soTopicsArchive > ul > li:nth-of-type(n+6) {
    margin-top: 20px;
  }
}