* {
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  height: 100vh;
  background-color: #FDF4E0;
  display: flex;
  flex-direction: column;
}

/* top | right | bottom | left */
img, li,
ul,
header, p {
  margin: 0;
}

h1, h2 {
  color: #036c85;
  font-family: 'Quicksand', sans-serif;
  line-height: 1.2;
  margin: 0;
  /* top | right | bottom | left */
  padding: 0px 0 0.5em 0;
}

p {
  font-size: 1rem;
  color: #036c85;
  font-family: 'Quicksand', sans-serif;
  padding: 0px 0 0.5em 0;
  line-height: 1.5;
}

section {
  margin: 0 0 50px 0;
}

li {
  list-style: none;
}

a {
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  color: #036c85;
  text-decoration: none;
  line-height: 1.2;
}

main {
  /* top | right | bottom | left */
  margin: 20px auto 0 auto;
  padding: 0;
  width: 85%;
}

.title {
  font-size: 0.85rem;
  color: #036c85;
  padding: 0;
}

.parajp {
  font-family: 'Noto Sans JP', "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "Osaka", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  /* top | right | bottom | left */
  padding: 0 0 1em 0;
}

/* Hero Typography */
.header-wrapper {
  color: #036c85;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto;
  grid-gap: 1rem;
  margin-bottom: 40px;
  margin-top: 0;
}

.text {
  grid-row: 1;
  grid-column: auto;
  writing-mode: vertical-lr;
  border-left: #036c85 solid 20px;
  /* top | right | bottom | left */
  margin: 5px 0 0 0;
}

.eng {
  font-family: 'Quicksand', sans-serif;
  font-weight: 400;
  font-size: 1.25rem;
  margin-left: 0.1rem;
  /* top | right | bottom | left */
  padding: 0;
}

.jphead {
  padding: 0;
  margin: 0;
  font-family: 'Noto Sans JP', "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "Osaka", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  font-weight: 500;
  font-size: 2rem;
  margin-top: -5px;
  padding-left: 5px;
  letter-spacing: 0.1rem;
}

/* Navigation links */
.nav {
  grid-row: 1;
  grid-column: 4/6;
  margin-top: 0;
}

.nav li {
  font-family: 'Quicksand', sans-serif;
  font-weight: 400;
  font-size: 100%;
  padding-top: 0;
  margin-top: 0;
  line-height: 2.8;
}

.spanjp {
  font-family: 'Noto Sans JP', "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "Osaka", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
}

.nav a {
  padding: 10px;
}

.nav a:hover {
  background: #036c85;
  color: white;
}

.nav a:focus {
  background: #036c85;
  color: white;
}

/* list of work */
.vertical-gif {
  max-width: 500px;
}

.artwork {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-flow: dense;
  grid-gap: 30px;
  padding: 0px;
  margin: 0px;
}

ul.artwork img, ul.artwork-wide li {
  width: 100%;
  max-width: 100%;
}

.artwork-al {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  grid-auto-flow: dense;
  grid-gap: 20px;
  padding: 0px;
  margin: 0px;
}

ul.artwork-al img, ul.artwork-wide li {
  width: 100%;
  max-width: 100%;
}

.artwork-wide {
  display: grid;
  grid-template-columns: repeat(auto-fit, 1fr);
  grid-auto-flow: dense;
  grid-gap: 20px;
  padding: 0px;
  margin: 0px;
}

ul.artwork-wide img, ul.artwork-wide li {
  width: 100%;
  max-width: 100%;
}

/* work details */
figcaption {
  /* top | right | bottom | left */
  margin: 0 0 0.5em 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 600px) {
  .artwork {
    grid-gap: 0.75em;
  }

  .artwork-al {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 0.5em;
  }

  main {
    width: 95%;
    margin-top: 20px;
  }

  .header-wrapper {
    margin-bottom: 30px;
  }

  .nav span {
    display: none;
  }
}

@media (min-width: 960px) {
  .media-wrapper {
    display: flex;
  }

  .media-wrapper figure {
    flex: 0 0 70%;
  }
}

/* Footer */
.fwrapper {
  display: flex;
  justify-content: space-between;
  width: 100%;
  /* top | right | bottom | left */
  margin: 0px;
  padding: 20px 0 20px 0;
  border-top: #036c85 solid 1px;
}

.fwrapper p {
  font-size: 0.85rem;
  color: #036c85;
}

.icons img {
  max-height: 20px;
  /* top | right | bottom | left */
  padding: 0 0 0 5px;
  display: inline-block;
}
