html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
}

#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #7e7d7d;
  font-size: 14px;
  position: fixed;
  top: 10px;
  z-index: 1000;
  max-width: 1000px;
  width: 100vw;
  height: auto;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 20px;
}

.header-logo {
  width: 140px;
  margin-right: 20px;
}

.header-a {
  display: inline-block;
}

.header-a img {
  height: 100%;
  width: 100%;
}

.nav-ul {
  display: flex;
}

.nav-right ul li {
  transition: 0.3s;
  padding-right: 20px;
}

.nav-right ul li:last-child {
  margin-right: -20px;
}


.nav-right ul li:hover {
  opacity: 0.7;
}

.header-left {
  position: fixed;
  bottom: 10px;
  left: 20px;
  z-index: 500;
}

.header-left nav ul li {
  margin-bottom: 15px;
  transition: 0.3s;
}

.header-left nav ul li:hover {
  opacity: 0.7;
}

/* FV */

.main-txt {
  margin-bottom: 150px;
}

#bird {
  width: 100%;
  height: 100vh;
  position: relative;
}

.top-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 20px;
}

.top-img h1 {
  font-size: 35px;
  line-height: 1;
  color: #231815;
}

.top-img p {
  color: #AAAAAA;
  font-size: 14px;
}

.js-box {
  display: none;
}


/* MAIN */
#main {
  background-color: #f0f4f4;
}

/* WORKS */

#section-works {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  padding-top: 150px;
  scroll-margin-top: -150px;
}


.works-title {
  font-weight: 100;
  font-size: 50px;
  letter-spacing: 1px;
  padding-bottom: 80px;
}

.works-wrapper {
  display: grid;
  justify-items: center;
  justify-content: center;
  gap: 30px;
  grid-template-columns: 300px 300px;
  grid-template-rows: 300px 300px;
  padding-bottom: 150px;
}

.works-img {
  width: 100%;
  height: 100%;
  position: relative;
}

.works-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: solid 1px rgb(215, 213, 213);
}

.mask {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.4);
  -webkit-transition: all 0.6s ease;
  transition: all 0.6s ease;
}

.mask span {
  font-size: 15px;
}

.works-img .caption {
  font-size: 130%;
  color: #fff;
  padding-top: 80px;
  padding-left: 0px;
  text-align: left;
}

.works-img:hover .mask {
  opacity: 1;
  padding-left: 20px;
}

/* SKILL*/
#section-skill {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 150px;
}

.skill-wrapper {
  padding: 0 20px;
}

.skill {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  text-align: center;
  gap: 80px;
}

.skill-wrapper h1 {
  padding-bottom: 80px;
  font-weight: 100;
  font-size: 50px;
  text-align: center;
  letter-spacing: 1px;
}

.skill-container h2 {
  font-size: 25px;
  font-weight: bold;
}

.skill-container p {
  font-weight: normal;
}

.skill-container img {
  width: 60px;
  padding: 20px 0;
}

/* PROFILE */
#profile {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  padding: 90px 20px;
  gap: 100px;
  margin: 0 auto;
  height: auto;
}

.dd-container {
  max-width: 255px;
}

.profile-img {
  width: 130px;
  height: auto;
  object-fit: cover;
}

#profile dd {
  font-size: 12px;
  margin: -16px 0 30px 130px;
}

#profile dd:last-child {
  margin-bottom: 0;
}

#profile dt {
  font-size: 12px;
}

/* jquery */
.fadein {
  opacity: 0;
  visibility: hidden;
  transform: translateY(50px);
  transition: opacity 1s, visibility 1s, transform 1s;
}

.scrollin {
  opacity: 1;
  visibility: visible;
  transform: translateY(0px);
}

/* sp */

@media screen and (max-width: 650px) {
  .works-wrapper {
    grid-template-columns: 300px;
    gap: 0;
    grid-template-rows: none;
  }


  .works-img {
    width: 300px;
    height: 300px;
    position: relative;
  }

  .works-img:not(:last-child) {
    margin-bottom: 30px;
  }

  .skill {
    grid-template-columns: 1fr 1fr;
  }

  #profile {
    flex-direction: column;
  }
}

@media screen and (max-width: 475px) {
  .skill {
    grid-template-columns: 1fr;
  }
}