/* --------------------------------------------------
   Base
-------------------------------------------------- */

html {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden; /* ブラウザ本体のスクロールを止める */
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.5;
  color: #333;
  background: #fff;
}

/* --------------------------------------------------
   Scroll wrapper（内部スクロール用）
-------------------------------------------------- */

.scroll-container {
  height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* --------------------------------------------------
   Layout
-------------------------------------------------- */

.page-main {
  width: 33em;
  max-width: 960px;
  padding: 3% 0;
  margin: 0 auto;
}

.project {
  margin: 3em 0 4em 0;
  font-size: 0.8em;
}

/* --------------------------------------------------
   Titles
-------------------------------------------------- */

.project-title,
.project-title2 {
  margin: 0;
  display: block;
  letter-spacing: 0.2em;
}

.project-title {
  font-size: 2.5em;
  letter-spacing: 0.3em;
}

.project-title2 {
  font-size: 1.6em;
}

.project-title a,
.project-title2 a {
  color: #000;
  text-decoration: none;
}

/* --------------------------------------------------
   Text blocks
-------------------------------------------------- */

.project-nav {
  max-width: 100%;
}

.project-text {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 1.1em;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  overflow-wrap: break-word;
}

.project-text-title {
  font-size: 110%;
}

/* Links */
.project-text a {
  color: #ba3f20;
  text-decoration: underline;
}
.project-text a:hover {
  color: #6b7d89;
}

.project-text a:visited {
  color: #6b7d89;
}


/* --------------------------------------------------
   Sticky Footer
-------------------------------------------------- */

.footer-nav {
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 1em 0 2em 0;
  z-index: 1000;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0 5%;
  display: flex;
  justify-content: center;
  gap: 2.5em;
  font-size: 0.8em;
  width: 90%;
}

.footer-links li {
  text-align: center;
}

.footer-links a {
  color: #ba3f20;
  text-decoration: none;
  padding: 0.6em 2em;
  display: inline-block;
}

.footer-links .current a {
  color: #6b7d89;
}

.footer-links a:hover {
  color: #6b7d89;
}

/* --------------------------------------------------
   Responsive
-------------------------------------------------- */

@media (max-width: 840px) {

  .page-main {
    width: 86%;
  }

  .project {
    margin: 2em 0 3em 0;
    font-size: 0.9em;
  }

  .project-title {
    font-size: 1.7em;
  }

  .project-text {
    font-size: 0.9em;
  }

  .footer-links {
    gap: 0;
  }

  .footer-links li {
    width: 33%;
  }

  .footer-links a {
    padding: 0.6em 0;
    font-size: 110%;
    width: 100%;
  }

  .footer-links a:hover {
    color: #ba3f20;
  }
}
