@charset "utf-8";

body {
  color: #333;
  font-family: "Times New Roman", "YuMincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
  font-size: 16px;
  margin: 0;
  background: #f6f1e9;
}

ul {
  list-style: none;
}

main {
  max-width: 990px;
  margin: 0 auto;
}

/* ヘッダー */
header {
  width: 85%;
  margin: 0 auto;
  padding-bottom: 56px;
  }

header h1 {
  font-size: 48px;
}

header > p {
  margin: 0 0 40px;
}

.language {
  color: #333;
  font-size: 18px;
}

.language:hover {
  opacity: 0.7;
}

/* ドロワーメニュー */
header input {
  padding: 10px;
  width: 30px;
}

#nav-drawer {
  display: block;
  position: relative;
  height: 80px;
  text-align: right;
}

#nav-drawer .fas {
  font-size: 28px;
}

.nav-unshown {
  display: none;
}

#nav-open {
  display: block;
  position: absolute;
  top: 2.6rem;
  right: .8rem;
}

#nav-open:hover {
  cursor: pointer;
}

#nav-close {
  display: none;
  position: absolute;
  z-index: 9999;
  top: 2.6rem;
  right: 1rem;
  transition: .5s ease-in-out;
}

#nav-close:hover {
  cursor: pointer;
}

#nav-content {
  overflow: auto;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.9);
  transition: .8s ease-in-out;
  -webkit-transform: translateX(110%);
  transform: translateX(110%);
  text-align: center;
  line-height: 2.5em;
  padding-top: 100px;
}

#nav-content ul {
  padding: 0;
}

#nav-content ul li a {
  text-decoration: none;
  font-size: 24px;
  color: #333;
}

#nav-content ul li a:hover {
  opacity: .7;
}

#nav-input:checked ~ #nav-close {
  display: block;
  opacity: .5;
}

#nav-input:checked ~ #nav-content {
  -webkit-transform: translateX(0%);
  transform: translateX(0%);
}

/* 通常メニュー */
nav {
  display: none;
}

nav ul {
  text-align: right;
}

nav ul li {
  margin-bottom: 24px;
  font-size: 14px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  letter-spacing: 0.05em;
  transition: .35s;
}

nav ul li a:hover {
  opacity: 0.7;
}

nav p {
  font-size: 14px;
  color: #7C7649;
}

/* main */
h2 {
  font-size: 36px;
  font-weight: normal;
  margin-bottom: 64px;
}

.skills {
  width: 85%;
  margin: 64px auto 104px;
  padding: 0;
  text-align: center;
}

.skills img {
  width: 30%;
}

.skills h3 {
  font-size: 26px;
}

.skills p {
  text-align: left;
  width: 85%;
  margin: 0 auto;
}

.skills ul {
  padding: 0;
}

.skills ul li {
  margin-bottom: 56px;
  background: #fff;
  padding: 24px 0;
}

.skills-content {
  list-style: disc;
  text-align: left;
  width: 50%;
  margin: 0 auto;
}

.skills .skills-content li {
  margin-bottom: 0;
  padding-top: 0;
}

.works {
  width: 85%;
  margin: 0 auto 104px;
  text-align: left;
}

.works h2 {
  text-align: center;
}

.works ul {
  width: 60%;
  margin: auto;
  padding: 0;
}

.works ul li {
  margin: 16px 0;
}

.works ul img {
  width: 100%;
  border: 1px solid #ccc;
}

#about {
  width: 85%;
  margin: 0 auto 104px;
  text-align: center;
}

#about img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 2px solid #ccc;
  margin-bottom: 16px;
}

#about .right {
  width: 90%;
  margin: 0 auto;
  text-align: left;
}

#about h2 {
  margin-bottom: 32px;
}

#about h3 {
  display: inline-block;
  margin: 0 .6rem 0 0;
  font-size: 22px;
}

#about h4 {
  display: inline-block;
  color: rgb(151, 151, 151);
  margin: 0;
  font-size: 15px;
}

footer {
  background: #7C7649;
  color: #fff;
  font-size: 12px;
  text-align: center;
  padding: 16px 0;
  position: relative;
}

#back_to_top {
  position: fixed;
  bottom: 5rem;
  right: 2rem;
}

#back_to_top:hover .fas {
  color: #CB7C7B;
}

#back_to_top .fas {
  font-size: 32px;
  color: #ccc;
  transition: .3s;
}

/* Works */
.works-wrapper {
  width: 80%;
  margin: 0 auto;
}

.works-wrapper a {
  display: inline-block;
  font-size: 20px;
  color: #333;
  transition: .3s;
}

.works-wrapper a:hover {
  opacity: .7;
}

.works-wrapper .text {
  margin: .6rem 0;
}

.works-wrapper h2 {
  font-size: 40px;
  text-align: center;
  margin-bottom: 80px;
}

.works-wrapper section h3 {
  margin: 20px 0 5px;
}

.works-wrapper section h4 {
  font-weight: normal;
  color: rgb(151, 151, 151);
  margin: 0;
}

.works-wrapper section {
  margin-bottom: 80px;
}

.works-wrapper section img {
  width: 100%;
  border: 1px solid #ccc;
}
}

/* タブレット用 */
@media (min-width:481px) {
  header > p {
    width: 75%;
  }

  .skills img {
    width: 25%;
  }

}

/* PC用 */
@media screen and (min-width:760px) {
  header {
    margin-top: 100px;
  }

  #nav-drawer {
    display: none;
  }

  nav {
    display: block;
  }

  .skills ul {
    display: flex;
    justify-content: space-between;
  }

  .skills ul li {
    width: 30%;
  }

  .skills ul li p {
    width: 85%;
    margin: 0 auto 16px;
    text-align: left;
  }

  .skills .skills-content {
    display: block;
    width: 75%;
    padding-left: 1.6rem;
  }

  .skills .skills-content li {
    width: 100%;
  }

  .works ul {
    display: flex;
    justify-content: space-between;
    width: 70%;
    margin-bottom: 16px;
  }

  .works ul li {
    width: 45%;
    margin: 0 auto;
  }

  .works ul li a {
    transition: .3s;
  }

  .works ul li a:hover {
    opacity: .7;
  }

  #about .container {
    display: flex;
    justify-content: space-between;
  }

  #about h2 {
    margin-bottom: 64px;
  }

  #about .left {
    width: 35%;
  }

  #about .right {
    width: 60%;
    text-align: left;
  }

  .right p {
    width: 90%;
  }

}
