@charset "UTF-8";

/* 共通
---------------------------------- */
html {
  font-size: calc(10 / 375 * 100vw);
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  html {
    font-size: 0.7vw;
  }
}

@media screen and (min-width: 1024px) {
  html {
    font-size: 62.5%;
  }
}

* {
  line-height: 1.2;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.6rem;
  background-color: #eee;
  color: #333;
}

li {
  list-style: none;
}

img {
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

.animate__animated {
  opacity: 0;
}

.no-sp {
  display: none;
}

@media screen and (min-width: 768px) {
  .no-sp {
    display: inline;
  }
}

.no-pc {
  display: inline;
}

@media screen and (min-width: 768px) {
  .no-pc {
    display: none;
  }
}

/* ボタン
---------------------------------- */
.btn {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: inline-block;
  width: 10rem;
  max-width: 100%;
  border: 2px solid #1f76f9;
  border-radius: 1rem;
  margin: 0;
  padding: 0.9rem 0.1rem;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  background-color: #fff;
  color: inherit;
  cursor: pointer;
  transition: 0.25s;
}

.btn:focus,
.btn:hover {
  opacity: 0.8;
}

.btn:active {
  opacity: 0.6;
}

.btn--login {
  background-color: #fff;
  color: #1f76f9;
}

.btn--sign-up {
  background-color: #1f76f9;
  color: #fff;
}

/* ヘッダー 
---------------------------------------- */
.header {
  background-color: #fff;
}

.header__inner {
  padding: 0.5rem 1rem;
}

.header-utilities {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-utilities__logo {
  font-size: 0;
}

.header-utilities__logo > a {
  display: block;
}

.header-utilities__logo > a:focus,
.header-utilities__logo > a:hover {
  opacity: 0.8;
}

.header-utilities__logo > a:active {
  opacity: 0.6;
}

.header-utilities__btn-list {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-utilities__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ナビゲーション
---------------------------------------- */
nav {
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  background-color: #fff;
}

nav::-webkit-scrollbar {
  display: none;
}

.nav {
  display: flex;
  padding: 0 1rem;
}

.nav__item {
  flex: 1 0 auto;
  text-align: center;
}

.nav__link {
  display: block;
  padding: 1rem 1.5rem;
  border-bottom: 4px solid transparent;
  color: #888;
  text-decoration: none;
  transition: 0.25s;
}

.nav__link:focus,
.nav__link:hover {
  color: #000;
}

.nav__link--active {
  border-bottom-color: #1f76f9;
  color: #000;
  pointer-events: none;
}

/* メインコンテンツ
---------------------------------------- */
.main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media screen and (min-width: 768px) {
  .main {
    flex-direction: row;
  }
}

.main__inner {
  max-width: 165.6rem;
  margin: 4rem auto 0;
}

/* 記事一覧
---------------------------------------- */
@media screen and (min-width: 768px) {
  .article {
    order: 1;
    flex: 2;
  }
}

.article__list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.article__item {
  background-color: #fff;
}

.article__link {
  display: block;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
}

.article-media {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.article-media__icon-wrapper {
  flex: 0 0 auto;
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  border-radius: 9999px;
}

.article-media__icon-wrapper:focus,
.article-media__icon-wrapper:hover {
  opacity: 0.8;
}

.article-media__icon {
  border-radius: 9999px;
}

.article-media__contributor {
  font-size: 1.4rem;
}

.article-media__contributor:focus,
.article-media__contributor:hover {
  text-decoration: underline;
}

.article__title {
  font-size: 2rem;
  margin-top: 1rem;
}

.article__title:focus,
.article__title:hover {
  text-decoration: underline;
}

.article__catch-img-wrapper {
  margin-top: 1rem;
}

.article__catch-img-wrapper:focus,
.article__catch-img-wrapper:hover {
  opacity: 0.8;
}

/* 左サイドバー
---------------------------------------- */
.left-aside {
  padding: 0 1.5rem;
}

@media screen and (min-width: 768px) {
  .left-aside {
    order: 0;
    flex: 1;
  }
}

.user-ranking {
  background-color: #fff;
  padding: 1.5rem;
}

.user-ranking__title-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #aaa;
}

.user-ranking__title {
  font-size: 1.4rem;
}

.user-ranking__week,
.user-ranking__month,
.user-ranking__all-periods {
  color: inherit;
  text-decoration: none;
  font-size: 1.2rem;
}

.user-ranking__week {
  margin-left: auto;
}

.user-ranking__week--active {
  color: #000;
}

.user-ranking__list {
  margin-top: 2rem;
}

.user-ranking__item + .user-ranking__item {
  margin-top: 2rem;
}

.user-ranking__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: inherit;
  text-decoration: none;
}

.user-ranking__img {
  flex: 0 0 auto;
  width: 4rem;
  height: 4rem;
  object-fit: cover;
}

.user-ranking__img:focus,
.user-ranking__img:hover {
  opacity: 0.8;
}

.user-ranking__number:focus,
.user-ranking__number:hover,
.user-ranking__user-name:focus,
.user-ranking__user-name:hover {
  text-decoration: underline;
}

/* 右サイドバー
---------------------------------------- */
.right-aside {
  padding: 2rem 4rem;
}

@media screen and (min-width: 768px) {
  .right-aside {
    order: 2;
    flex: 1;
  }
}

.banner {
  display: block;
}

.banner + .banner {
  margin-top: 4rem;
}

/* フッター
---------------------------------------- */
.footer {
  margin-top: 2rem;
  padding: 1rem;
  background-color: #222;
}

.footer__inner {
  max-width: 102.5rem;
  margin: 0 auto;
  padding: 0 0.2rem;
}

.footer__logo {
  display: block;
}

.footer-copyright {
  color: #ddd;
  font-size: 1.2rem;
  text-align: center;
}
