html,
body {
  width: 100%;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  -webkit-font-smoothing: antialiased;
  font-family: 'GeneralSans', sans-serif;
  color: var(--black);
  line-height: 1.6;
  font-weight: 500;
  font-style: normal;
  background-color: var(--white);
  font-size: 1rem;
}


/* header */

.header {
  height: var(--header-height);
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 100;
  transition: .3s ease-in-out;
}

.scroll:not(.open-nav) .header {
  background-color: var(--white);
  --header-height: 7vh;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  white-space: nowrap;
  color: var(--black);
}

.header-logo svg {
  width: 2.5rem;
  height: 2.4rem;
  fill: var(--black);
  margin-right: .8rem;
}

.header-logo div {
  display: flex;
  align-items: center;
}

.header-logo strong:after {
  content: '-';
  display: inline-block;
  margin: 0 .3rem;
}

.main {
  padding-top: calc(var(--header-height) + 15vh);
}

/* navbar */

.nav {
  transition: var(--animation-nav);
}

.nav-links {
  display: flex;
}

.nav-link {
  margin-left: 1rem;
  overflow: hidden;
}

.nav-link a,
.nav-link > span {
  text-align: center;
  width: 100%;
  white-space: nowrap;
  text-shadow: 0 calc(var(--btn-shadow-distance) * 1.5) transparent;
  transform: translateY(0em) rotate(0.001deg);
  transition: text-shadow var(--animation-nav);
  line-height: 1.2;
  display: inline-block;
}

.nav-link:hover a,
.nav-link:hover > span {
  transition: all var(--animation-nav);
  transform: translateY(calc(var(--btn-shadow-distance) * -1)) rotate(0.001deg);
  color: transparent;
  text-shadow: 0 var(--btn-shadow-distance) var(--black);
}

.nav-link svg {
  --fill: rgba(var(--white-rgb), .7);
  width: 25px;
  height: 25px;
}


.nav-link [aria-current="page"] {
  color: var(--black);
}

.nav-link :not([aria-current="page"]) {
  color: var(--grey);
}

.bn-nav {
  display: none;
  margin-left: .2rem;
  font-weight: 600;
  align-items: center;
  z-index: 999;
  color: var(--black);
}

.bn-nav:before {
  content: '';
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background-color: var(--black);
  margin-right: .6rem;
}

.nav-add {
  display: none;
}

/* footer */

.footer {
  margin-bottom: 50px;
  margin-top: var(--section-pad);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  height: var(--header-height);
  padding-bottom: 20px;
  border-bottom: 2px solid #d9d9d9;
}

.footer-title {
  font-size: 3.25rem;
  line-height: 1.1;
}

.to-top {
  font-size: .9rem;
}

.to-top svg {
  height: 20px;
  margin-right: 7px;
  margin-bottom: 3px;
  --fill: var(--black);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  --margin: var(--gutter);
  margin: var(--gutter) calc(-1 * var(--margin));
  justify-content: space-evenly;
  font-size: .9rem;
}

.footer-block {
  flex: 0 1 calc(23% - (var(--gutter) * 2));
  margin: var(--gutter);
}

.footer-block:last-child {
  flex: 1 1 calc(5% - (var(--gutter) * 2));
  text-align: right;
}

.footer-block svg {
  height: 25px;
  transition: .3s ease-in-out;
}

.footer-block svg:hover {
  opacity: .5;
}

.footer-block small {
  font-size: .8rem;
  color: var(--grey);
  display: block;
}

.footer nav {
  text-align: right;
  font-size: .88rem;
}


/* projects thumbs */

.grid {
  display: flex;
  flex-wrap: wrap;
  --margin: var(--gutter);
  margin: calc(-1 * var(--margin));
}

.project-thumb {
  width: calc(33.33% - (var(--margin) * 2));
  margin: var(--margin);
}

.project-thumb img {
  aspect-ratio: 16/11;
}

.project-thumb figcaption {
  margin-top: .6rem;
  line-height: 1.1;
}

.project-name {
  font-weight: 600;
}

.project-city {
  font-size: .8rem;
  color: var(--grey);
}

/* articles */

.article-thumb img {
  aspect-ratio: 1/1;
}

.article-thumb figcaption {
  margin-top: .6rem;
  line-height: 1.1;
}

.article-title {
  font-weight: 600;
}

.article-date {
  font-size: .8rem;
  color: var(--grey);
}

/* kodama */

.kodama {
  position: absolute;
  width: 80px;
  --fill: var(--black);
}

@media screen and (max-width: 990px) {
  html {
    font-size: 16px;
  }
}

@media screen and (max-width: 850px) {
  .footer-block,
  .footer nav {
    flex: 1 0 calc(33.33% - (var(--gutter) * 2));
    text-align: left;
  }

  .project-thumb {
    width: calc(50% - (var(--margin) * 2));
  }
}

@media screen and (max-width: 600px) {

  .bn-nav {
    display: flex;
  }

  .nav {
    position: fixed;
    height: 100vh;
    width: 100vw;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 888;
  }

  .nav-bg {
    z-index: 1;
    background-color: var(--black);
    border-radius: 50%;
    width: 0;
    height: 0;
    display: block;
    position: fixed;
    top: 0;
    bottom: auto;
    left: auto;
    right: 0;
    transform: translate(50%, -50%);
  }

  .nav-links {
    z-index: 2;
    padding: var(--gutter);
    flex-direction: column;
    justify-content: center;
    font-size: 2.8rem;
  }

  .nav-link {
    visibility: hidden;
    opacity: 0;
    width: fit-content;
  }

  .nav-link a:hover,
  .nav-link [aria-current="page"] {
    color: var(--white);
    text-align: left;
  }

  .nav-link :not([aria-current="page"]) {
    color: rgba(var(--white-rgb), .7);
    text-align: left;
  }

  .nav-link:hover a,
  .nav-link:hover > span {
    text-shadow: 0 var(--btn-shadow-distance) var(--white);;
  }

  .nav-link + .nav-link {
    margin-top: var(--gutter);
  }

  .open-nav .nav {
    pointer-events: auto;
  }

  .open-nav .bn-nav,
  .open-nav .header-logo {
    --black: var(--white);
  }

  .nav-add {
    display: block;
    margin: var(--gap-pad) 1rem;
    z-index: 2;
  }

  .separator {
    height: 1px;
    width: calc(100% - (var(--gutter) * 3));
    background-color: rgba(var(--white-rgb), .5);
    margin-bottom: var(--gap-pad);
  }

  .footer-block,
  .footer nav {
    flex: 0 1 calc(50% - (var(--gutter) * 2));
  }

  .footer-block:last-child {
    text-align: left;
  }

  .to-top {
    background-color: var(--black);
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 2vh;
    right: 2vw;
    z-index: 500;
    border-radius: var(--border-radius);
  }

  .to-top span {
    display: none;
  }

  .to-top svg {
    margin: 0;
    --fill: var(--white);
  }
}

@media screen and (max-width: 500px) {

  .header-logo div {
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
  }

  .header-logo strong:after {
    display: none;
  }

  .header-logo span {
    font-size: .8rem;
  }
}

@media screen and (max-width: 400px) {
  html {
    font-size: 14px;
  }

  .footer-bottom {
    --gutter: 10px;
  }

  .footer-block,
  .footer nav {
    flex: 0 1 calc(100% - (var(--gutter) * 2));
  }

  .footer-title {
    font-size: 2rem;
    line-height: .8;
  }
}
