@charset "UTF-8";

/* 共通部分
------------------------------- */
html {
  font-size: 100%;
  scroll-behavior: smooth;
}
body{
  font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", sans-serif;
  line-height: 1.7;
  color: #432;
}
a {
  text-decoration: none;
}
img {
  max-width: 100%;
}
.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 4%;
}

/* 大きな背景画像 */
.big-bg {
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* 見出し */
.page-title {
  font-size: 5rem;
  font-family: 'Philosopher', serif;
  text-transform: uppercase;
  font-weight: normal;
}
.sub-title {
  font-size: 1.375rem;
  padding: 0 6px 6px;
  font-weight: normal;
}

/* HEADER
------------------------------- */
.page-header {
  display: flex;
  justify-content: space-between;
}
.logo {
  width: 500px;
  margin-top: 50px;
}
.main-nav {
  display: flex;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-top: 3px;
  padding: 5px;
  list-style: none;
  background: #fff;
  opacity: 0.7;
}
.main-nav a {
  color: #432;
}
.main-nav a:hover {
  color: #0bd;
}

/* HOME
------------------------------- */
#home {
  background-image: url(../images/background.jpg);
  height: 270px;
  margin-bottom: 40px;
}
#home .page-title {
  text-align: center;
}
.home-contents {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* 分類 */
.category {
  display: flex;
  flex-wrap: wrap;
  font-size: 1.25rem;
  text-transform: uppercase;
  margin-top: 30px;
  margin-bottom: 0px;
  list-style: none;
}
.category li {
  margin-right: 10px;
  margin-bottom: 20px;
}
.category a {
  font-size: 1.375rem;
  background: #0bd;
  color: #fff;
  border-radius: 5px;
  padding: 10px;
}
.category a:hover {
  background: #0090aa;
}

.home-info {
  position: relative;
  padding-top: 4px;
  margin-bottom: 40px;
}
.home-title {
  font-family: "Yu Mincho", "YuMincho", serif;
  font-size: 2rem;
  font-weight: normal;
}
article img {
  margin-bottom: 20px;
}
article p {
  margin-bottom: 1rem;
}

.table-info {
  position: relative;
  padding-top: 4px;
  margin-bottom: 50px;
}

.table-title {
  padding-top: 4px;
  font-size: 1.375rem;
  padding: 0 6px 6px;
  font-weight: normal;
}

h3::before {
  content: '';
  background: #0bd;
  width: 15px;
  height: 15px;
  display: inline-block;
  margin-top: 8.45px;
} 

/* テーブル */
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: .5rem;
  text-align: center;
  border-bottom: 1px solid #ddd;
}
th {
  font-weight: normal;
  font-size: .875rem;
  color: #666;
  background:  #eee;
  position: sticky;
  top: 0;
}

/* フッター
------------------------------- */
footer {
  background: #432;
  text-align: left;
  padding: 26px 0;
}
footer p {
  color: #fff;
  font-size: 0.875rem;
}
footer a{
  color: darkorange;
}
.back-top {
  position: fixed;
  right: 0;
  bottom: 0;
  display: inline-block;
  overflow: hidden;
  background: #432;
  width: 50px;
  height: 50px;
  color: #fff;
  text-align: center;
  padding-top: 10px;
}
.back-top:hover {
  background: #765;
}

/* モバイル版
------------------------------- */
@media (max-width: 600px) {
  .page-title {
    font-size: 2.5rem;
  }
  .page-header {
    flex-direction: column-reverse;
    align-items: flex-end;
  }
  .logo {
    align-items: center;
  }

  /* HEADER */
  .main-nav {
    font-size: 0.8rem;
  }
  .main-nav li {
    margin: 0 2px;
  }

  /* HOME */
  .home-contents {
    flex-direction: column;
  }
  #home .page-title {
    margin-top: 30px;
  }
  article {
    width: 100%;
  }
  .post-info {
    margin-bottom: 30px;
  }
  .post-date {
    width: 70px;
    height: 70px;
    font-size: 1rem;
  }
  .post-date span {
    font-size: 0.875rem;
    padding-top: 2px;
  }
  .post-title {
    font-size: 1.375rem;
  }
  .post-cat {
    font-size: 0.875rem;
    margin-top: 10px;
  }
  .post-title,
  .post-cat {
    margin-left: 80px;
  }
    
  /* テーブル */
  h3 {
    position: sticky;
    top: 0;
    background: #fff;
    opacity: 0.85;
    font-size: 1.625rem;
    border-radius: 5px;
  }
  .heading {
    display: none;
  }
  td {
    display: block;
  }
  td::before {
    content: attr(data-label);
    font-size: .875rem;
    color: #666;
    display: block;
    text-align: left;
  }
  .shiryou-name {
    background: #eee;
  }
}
