body {
  height: 100%;
  font-family: "Work Sans", "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: #333;
}

a:hover{
  color: 000;
}

#container {
  height: 100vh;
  width: 70%;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

nav {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
  width: 100%;
  padding: 10px 0;
}

nav a {
  font-family: "Work Sans", "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 14px;
  font-weight: 300;
  color: #222;
  text-decoration: none;
  margin-inline: 10px;
}

.nav-center a {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -1.5px;
}

nav a:hover {
  color: #000;
  cursor: pointer;
}

#lang-ja {
  font-size: 12px;
}

.content {
  height: 100%;
  width: 100%;
}

#cursor {
  position: absolute;
  pointer-events: none;
  width: 20px;
  height: 20px;
  z-index: 9999;
  visibility: hidden;
  top: 20px;
  left: 20px;
}

.flex-box {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: start;
  justify-content: start;
}

.text {
  font-family: "Work Sans", "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 300;
  color: #222;
}

.text h4 {
  font-size: 16px;
  font-weight: 400;
}

.text p {
  font-size: 16px;
  font-weight: 300;
}

footer {
  background-color: #fff;
  position: fixed;
  left: 0;
  bottom: 0;
  padding-block: 5px;
  width: 100%;
  z-index: 100;
}

footer p {
  font-family: "Work Sans", "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 10px;
  text-align: center;
  color: #222;
  margin: 0;
  text-decoration: none;
}

.post-list {
  display: grid;
  margin-top: 40px;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 32px;
  justify-items: center;
  scrollbar-width: none;
}

.post-list::-webkit-scrollbar {
  display: none;
}

.post-preview {
  text-align: left;
  padding-block: 20px;
}

.post-preview-text {
  font-family: "Work Sans", "Noto Sans JP", sans-serif;
  display: flex;
  align-items: baseline;
  justify-content: start;
  gap: 10px;
}

.post-preview-text h3 {
  font-family: "Work Sans", "Noto Sans JP", sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: #222;
  margin-bottom: 5px;
}

.post-preview-text h1 {
  font-family: "Work Sans", "Noto Sans JP", sans-serif;
  font-weight: 300;
  font-size: 26px;
  line-height: 28px;
  color: #222;
  margin-bottom: 5px;
}

.post-image {
  width: 400px;
}

#back-to-index {
  font-size: 12px;
  font-weight: 300;
  color: #222;
  text-decoration: none;
}

#back-to-index:hover {
  color: #222;
}

.post-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 10px 50px 10px;
}

.post-content h1 {
  font-family: "Work Sans", "Noto Sans JP", sans-serif;
  font-weight: 300;
  font-size: 50px;
  line-height: 45px;
  text-align: left;
  color: #222;
  margin-bottom: 50px;
}

.post-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.post-preview img,
.post-body img,
.post-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

.side-table {
  display: flex;
  align-items: center;
  justify-content: center;
}

.table {
  display: flex;
  align-items: start;
  justify-content: start;
  gap: 5px;
  width: 200px;
  height: 100px;
  margin: 120px 20px;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

.table:nth-child(1) {
  align-items: start
}

.table h1 {
  font-family: "Work Sans", "Noto Sans JP", sans-serif;
  font-size: 26px;
  font-weight: 300;
}

.table h3 {
  font-family: "Work Sans", "Noto Sans JP", sans-serif;
  font-size: 20px;
  font-weight: 300;
}

.table p {
  font-family: "Work Sans", "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 300;
}

@media (max-width: 900px) {
  .post-preview img,
  .post-body img,
  .post-image {
    max-width: 100vw;
    width: 100vw;
  }

  .side-table {
    flex-direction: column;
  }

  .table {
    width: 300px;
    gap: 5px;
    margin: 0;
    border-bottom: none;
  }
}

@media (max-width: 600px) {
  .post-preview img,
  .post-body img,
  .post-image {
    max-width: 100vw;
    width: 100vw;
  }
}

@media (max-width: 1200px) {
  body {
    height: auto;
    padding: 20px;
  }

  #container {
    height: 100vh;
    width: 90%;
  }

  .content {
    overflow: scroll;
  }

  .flex-box {
    flex-direction: column;
    align-items: center;
  }

  .text {
    font-size: 12px;
    text-align: left;
  }
}


@media (max-width: 900px) {
  body {
    height: auto;
    padding: 10px;
    align-items: stretch;
  }

  #container {
    width: 98%;
    min-width: 0;
    height: auto;
    padding: 0 2vw;
  }

  nav {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 8px;
  }

  .nav-center a {
    font-size: 22px;
  }

  .content {
    box-shadow: none;
    padding: 0;
    width: 100%;
    min-width: 0;
  }

  .flex-box {
    flex-direction: column;
    align-items: stretch;
    height: auto;
  }

  .post-list {
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
  }

  .post-image {
    width: 100%;
    max-width: 100vw;
  }

  .post-preview {
    padding: 1rem 1vw;
  }

  .post-content h1 {
    font-size: 32px;
    line-height: 36px;
    text-align: left;
  }

  .post-preview-text h1 {
    font-size: 18px;
    line-height: 22px;
  }

  .post-preview-text h3 {
    font-size: 13px;
  }

  .text h4,
  .text p {
    font-size: 14px;
  }

  #video-sound {
    right: 5vw;
    bottom: 8%;
  }
}

@media (max-width: 600px) {
  body {
    padding: 0;
    align-items: stretch;
  }

  #container {
    width: 100vw;
    min-width: 0;
    padding: 0 2vw;
    margin-bottom: 70px;
  }

  nav {
    padding: 0 2vw;
  }

  .nav-center a {
    font-size: 24px;
  }

  .content {
    padding: 0;
    width: 100vw;
    min-width: 0;
    box-shadow: none;
  }

  .post-list {
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100vw;
  }

  .post-image {
    width: 100vw;
    max-width: 100vw;
  }

  .post-preview {
    padding: 0.5rem 0.5vw;
  }

  .post-content h1 {
    font-size: 22px;
    line-height: 26px;
    text-align: left;
  }

  .post-preview-text h1 {
    font-size: 18px;
    line-height: 18px;
  }

  .post-preview-text h3 {
    font-size: 14px;
  }

  .text h4,
  .text p {
    font-size: 12px;
  }

  #video-sound {
    right: 2vw;
    bottom: 5%;
  }

  footer p {
    font-size: 9px;
    padding: 2px 0;
  }
}
