@charset "utf-8";

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
img {
  width: 90%;
}
.wrapper {
  max-width: 1000px;
  margin: 0 auto;
  /* text-align: center; */
  padding: 0 16px;
}

header {
  width: 100%;
  /* ヘッダーを固定する */
  position: fixed;
  /* レイヤーを最前面にする */
  z-index: 100;
  background-color: aliceblue;
}

header h2 {
  padding: 15px;
  font-size: 30px;
  padding-left: 20px;
  font-weight: 400;
}

header nav {
  width: 100%;
  background-color: black;
  padding-bottom: 10px;
  padding-left: 20px;
}

header nav ul li {
  list-style: none;
}

header ul li {
  display: inline-block;
  margin-top: 10px;
  margin-right: 40px;
}

header ul li a {
  text-decoration: none;
  color: aliceblue;
}

/* nwe-article */
.new-article {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-top: 150px;
  margin-bottom: 70px;
  text-align: center;
}

.new-article p {
  font-weight: 700;
  margin-top: 10px;
}

.new-article a {
  text-decoration: none;
  color: #ccc;
  display: block;
  margin-top: 10px;
}

.new-article a ::after {
  content: "";
  display: block;
  width: 80px;
  background-color: black;
  height: 1px;
  margin: 0 auto;
}

/* main aside section */
.container {
  display: flex;
  justify-content: space-between;

}
main {
  flex: 0.66;
}

main article {
  margin-bottom: 50px;
}

main h1 {
  font-size: 30px;

}

main ul {
  list-style: none;
  display: flex;
  padding: 10px 0 10px 0 10px;
}

main ul li {
  margin-right: 40px;
  margin-bottom: 10px;
}

main img {
  width: 100%;
}

main .article-intro {
  text-align: center;
  font-weight: bold;
  padding: 10px 85px 30px 40px;
}

/* aside */
aside {
  flex: 0.33;
}
#inu {
  width: 40%;
}


section.author {
  text-align: center;
}
section p {
  text-align: left;
  padding-bottom: 10px;
}

.ranking h4 {
  text-align: center;
  text-decoration: none;
  color: black;
  padding-bottom: 10px;
}

.ranking-article a {
  text-align: center;
}

.ranking {
  text-align: center;
}
.ranking p {
  text-align: center;
  padding-bottom: 17px;
}
.adide section.ranking img {
  width: 70%;
}
.archive {
  margin-top: 40px;
}

.archive h4 {
  text-align: center;
  margin-bottom: 30px;
}

.archive ul {
  list-style-type: none;
  width: 80%;
  margin: 0 auto;
}

.archive ul li {
  padding: 25px;
  border-top: 1px solid rgb(6, 28, 37);
}

.archive ul li a {
  text-decoration: none;
  color: black;
}

/*  メディアクエリ */
/* 横幅が768pxになった時点で適用する */
@media screen and (max-width: 768px){
  .new-article {
    flex-direction: column;
  }

  .new-article article {
    margin-bottom: 30px;
  }
  .container {
    flex-direction: column;
  }

  aside .ranking img {
    width: 100%;
  }

  }
