body {
  margin: 0;
  color: #303960;
  background-color: #EA9A96;
  font-family: 'Zen Old Mincho', serif;
}

a {
  color: #303960;
  text-decoration: none;
}

li {
  list-style: none;
}

.contents {
  padding: 80px 6%;
  max-width: 100%;
}

 #menuarea {
  display: none;
} 

/* MENUBAR */
header {
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 5;
}

nav {
  background-color: #F8B24F;
  margin: 0;
  padding: 0;
  top: 0;
  left: 0;
  width: 100%;
  position: fixed;
  z-index: 5;
}

nav ul {
  display: flex;
  justify-content: space-around;
  font-size: 24px;
  font-weight: bold;
  z-index: 5;
}

nav li {
  z-index: 5;
}

/* MAINVISUAL */
#mainvisual {
  padding: 80px 0 380px 0;
  margin: 0;
}

#mainvisual img {
  max-width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* HEADING */
.heading {
  font-size: 32px;
  font-weight: bold;
  margin: 48px 0 0 16px;
  padding: 0 4%;
}

.sm_heading {
  font-size: 16px;
  color: #E5E5E5;
  margin: 0 0 32px 16px;
  padding: 0 4%;
}

.left {
  text-align: left;
}

.right {
  text-align: right;
}

/* SKILL */
.skill_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 70%;
  margin: 0 auto;
  padding: 0 0 120px 0;
}

.skill_item {
  background-color: #F8B24F;
  width: 285px;
  border-radius: 8%;
  padding: 24px 6px 0 6px;
  margin: 15px 5px;
  text-align: center;
}

.skill_item img {
  width: 75%;
}

.skill_item p {
  text-align: center;
}

/* WORKS */
.works_list {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0 140px 0;
}

.works_item {
  max-width: 75%;
  margin: 0 auto 80px auto;
  position: relative;
  z-index: 0;
}

.works_hover a {
  color: #E5E5E5;
  text-decoration: underline;
}

.works_item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.works_hover {
  width: 100%;
  height: 100%;
  color: #E5E5E5;
  background-color: rgba(48, 57, 96, .9);
  position: absolute;
  align-items: center;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: opacity .6s ease;
  z-index: 0;
}

.works_hover:hover {
  opacity: 1;
  z-index: 0;
}

.works_hover p {
  width: 90%;
  font-size: 125%;
}

.works_item_sp {
  display: none;
}

/* CONTACT */
#contact_form {
  width: 85%;
  margin: 0 auto 140px auto;
}

#contact_form dl {
  display: flex;
  flex-wrap: wrap;
  padding: 15px;
  margin: 0;
}

#contact_form dt {
  width: 20%;
  padding: 10px 0;
  margin: 0;
}

#contact_form dd {
  width: 80%;
  padding: 10px 0;
  margin: 0;
}

#contact_form input[type="text"] {
  border: 1px solid #303960;
  background-color: #F8B24F;
  height: 1.5em;
  width: 75%;
}

#contact_form input[type="radio"] {
  background-color: #F8B24F;
}

#contact_form textarea {
  border: 1px solid #303960;
  background-color: #F8B24F;
  height: 10.5em;
  width: 100%;
  line-height: 1.2;
}

#contact_form input[type="submit"] {
  border: 2px solid #303960;
  background-color: #F8B24F;
  color: #303960;
  font-size: large;
  font-family:  'Zen Old Mincho', serif;
  width: 20%;
  height: 3.5em;
  margin-left: 30%;
}

/* SNS */
#sns ul {
  display: flex;
  justify-content: center;
  padding: 0;
}

#sns li {
  padding: 80px 15px;
}

#sns li img {
  width: 64px;
  height: 64px;
}

/* FOOTER */
footer {
  color: #E5E5E5;
  font-size: small;
  background-color: #303960;
  padding: 5px 0;
  margin: 80px 0 0 0;
  text-align: center;
}

/* SMART PHONE */

@media screen and (max-width:600px) {
  body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  header nav {
    display: none;
  }

  #menuarea {
    display: flex;
    justify-content: flex-end;
    height: 65px;
    padding: 0 20px;
    align-items: center;
  }

  .hamburger{
    width: 40px;
    height: 25px;
    position: fixed;
  }

  .hamburger span {
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: #303960;
  }

  .hamburger span:first-of-type {
    top: 0;
  }

  .hamburger span:nth-of-type(2) {
    top: 50%;
  }

  .hamburger span:last-of-type {
    top: 100%;
  }

  .slidemenu {
    background-color: rgba(229, 229, 299, 0.8);
    position: fixed;
    top: 48px;
    width: 100%;
    height: 50%;
    left: 0;
    transform: translateX(100%);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    transition: .5s;
  }

  .slidemenu li {
    color: #303960;
    font-size: 32px;
    font-weight: bold;
  }
  
  .hamburger.active span:first-of-type {
    top: 50%;
    transform: rotate(45deg);
  }

  .hamburger.active span:nth-of-type(2) {
    opacity: 0;
  }

  .hamburger.active span:last-of-type{
    top: 50%;
    transform: rotate(-45deg);
  }

  .slidemenu.active{
    transform: translateX(0); 
  } 

  /* CONTENTS */
  .contents {
    padding: 4%;
    max-width: 100%;
    overflow: hidden;
  }

  /* HEADING */
  .heading {
    font-size: 32px;
    font-weight: bold;
    margin: 48px 0 0 16px;
    padding: 0;
    text-align: center;
  }
  
  .sm_heading {
    font-size: 16px;
    color: #E5E5E5;
    margin: 0 0 32px 16px;
    padding: 0;
    text-align: center;
  }

  /* MAINVISUAL */
  #mainvisual {
    padding: 0px 0 150% 0;
    margin: 0;
  }

  #mainvisual img {
    max-width: 100%;
    max-height: 360px;
    object-fit: cover;
  }

  /* SKILL */
  .skill_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: auto;
    margin: 0 auto;
    padding: 0 0 320px 0;
  }

  .skill_item {
    background-color: #F8B24F;
    width: 40%;
    border-radius: 8%;
    margin: 18px auto;
    text-align: center;
    overflow: hidden;
  }

  .skill_item picture {
    width: 100%;
  }

  .skill_item p {
    text-align: center;
  }

  /* WORKS */
  .works_list {
    min-width: fit-content;
    margin: 0;
    padding: 0 0 240px 0;
  }

  .works_item {
    width: 75%;
    margin: 0 auto 80px auto;
  }

  .works_item img {
    width: 100%;
    height: 320px;
    object-position: 25% 50%;
  }

  .works_item_sp {
    display: block;
  }

  .works_item_sp a {
    text-decoration: underline;
  }

  .works_hover {
    display: none;
  }

  /* CONTACT */
  #contact_form {
    width: 100%;
    margin: 0 auto 240px auto;
  }
  
  #contact_form dl {
    display: flex;
    flex-wrap: wrap;
    padding: 15px;
    margin: 0;
  }
  
  #contact_form dt {
    width: 25%;
    padding: 10px 0;
    margin: 0;
  }
  
  #contact_form dd {
    width: 75%;
    padding: 10px 0;
    margin: 0;
  }
  
  #contact_form input[type="text"] {
    border: 1px solid #303960;
    background-color: #F8B24F;
    height: 1.5em;
    width: 75%;
  }
  
  #contact_form input[type="radio"] {
    background-color: #F8B24F;
  }
  
  #contact_form textarea {
    border: 1px solid #303960;
    background-color: #F8B24F;
    height: 10.5em;
    width: 100%;
    line-height: 1.2;
  }
  
  #contact_form input[type="submit"] {
    border: 2px solid #303960;
    background-color: #F8B24F;
    color: #303960;
    font-family: 'Zen Old Mincho', serif;
    width: 120px;
    text-align: center;
  }

  /* SNS */
  #sns {
    width: auto;
    margin: 0 auto 80px;
  }

  #sns ul {
    width: auto;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    padding: 0;
  }

  #sns li {
    padding: 0 15px;
  }

  #sns li img {
    width: 56px;
    height: 56px;
  }

}

/* FORM */
.thanks {
  background-color: #F8B24F;
  width: 75%;
  border-radius: 10%;
  padding: 80px 24px;
  margin: 72px auto;
  text-align: center;
}

.thanksmessage {
  font-size: 125%;
}