*{
  margin: 0;
  box-sizing: border-box;
}
body{
  background-image: url(img/main-bg.jpg);
  background-attachment:fixed;
}

section{
  margin: 4em auto;
}

figure{
  margin: 0 auto;
  text-align: center;
}

h2{
  font-size: 2.5em;
  text-align: center;
  margin: 0.5em auto;
}

h3{
  color: black;
  font-size: 1.8em;
  text-align: center;
}

a{
  text-decoration: none;
}

ul{
  padding-left: 0;
}


li{
  list-style: none;
}

@media screen and (max-width:600px){
  h2{
    font-size: 2em;
  }
  h3{
    font-size: 1.5em;
  }
}

header{
  padding: 0 1.5em;
  height: 80px;
  position: fixed;
  z-index:9999;
  top:0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgb(6, 95, 5);
  font-size: 2em;
  color: white;
}

header ul{
  display: flex;
  width: 400px;
  justify-content: space-around;
}

header a{
  color: white;
}

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

  header{
   padding: 0 0.5em;
  }

  header ul{
    display: none;
  }
}

main{
  margin-top: 80px;
}

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

  main{
    margin-top: 0px;
  }
}


.fv{
  margin: 0;
  max-width: 100%;
}


#works{
  margin: 1.5em auto;
  padding: 0 2em;
  width: min(1200px,100%);
}

#tab{
  margin: 1.5em auto;
  background-color: #fff;
}

.tabMenu{
  width: 100%;
  position: sticky;
  top: 80px;
  z-index: 10;
  display: flex;
  justify-content: space-evenly;
  align-items: flex-end;
  list-style: none;
  padding: 0;
  background-color: #fff;
}

.tabMenu li{
  width: 100%;
  padding: 0.8em 1.5em;
  border-right: 1px solid #ccc;
  border-bottom:1px solid #ccc;
  cursor:pointer;
  text-align: center;
  font-weight: bold;
  
}



.tabMenu li:hover{
  opacity:0.7;
}

.tabContents{
  width: 100%;
  padding: 1.5em;
  border:1px solid #ccc;
  border-top:none;
}

.tab-item{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  grid-gap:2em;
}

@media screen and (max-width:1000px){
  
  .tab-item{
    grid-template-columns: repeat(1,1fr);
  }
}

@media screen and (max-width:1000px){
  .tabMenu li{
    font-size: 0.9em;
  }
}

.img-shadow{
  filter: drop-shadow(0 0 0.2rem rgb(149, 149, 150));
}

.active{
  background-color: #a2dfd1;
  font-weight: bold;
}

.explain{
  margin: 1.5em 0;
}


#skill{
  width: min(1200px,100%);
  margin: 0 auto;
  padding: 0 2em;
}

.skill-ul{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap:2em;
  
}

.skill-ul li{
  width: 100%;
  border:1px solid #ccc;
  background-color: #fff;
  padding: 2em 1em 0 1em;
}

.explain h3{
  text-align: center;
}

@media screen and (max-width:1000px){
  .skill-ul{
    grid-template-columns: repeat(2,1fr);
  }
}

@media screen and (max-width:600px){
  .skill-ul{
    grid-template-columns: repeat(1,1fr);
  }
  
  .skill-ul li{
    margin-bottom: 1.5em;
  }
}

#about{
  width: min(600px,100%);
  padding: 0 2em;
}

.my-picture{
  width: min(180px,60%);
}

.about-detail{
  margin: 1.5em 0;
}

#contact{
  margin:0 auto;
  width: 100%;
  background-image: url(img/miyadu.jpg);
  background-size: cover;
  padding: 2em;
}

.contact-wrapper{
  max-width: 1000px;
  margin: 2em auto;
  padding: 2em 1em;
  background: rgba(255,255,255,0.7);
}

.form-wrap{
  width: 100%;
  margin: 1.5em auto;
  max-width: 600px;

}

.form-wrap tr{
  margin: 1.5em 0;
}

.form-wrap th{
  width: 30%;
  text-align: left;;
}

.form-wrap td{
  width: 70%;
}

input,textarea{
  width: 100%;
  padding: 0.5em 0;
  margin: 0.5em 0;
  font-size: 18px;
  border:1px solid #ccc;
}

.submit-btn{
  display: block;
  margin: 1.5em auto;
  text-align: center;
  background-color: rgb(6, 95, 5);
  padding: 0.4em 1.8em;
  font-size: 1.5em;
  border:none;
  cursor:pointer;
  color: white;
}

.submit-btn:hover{
opacity:0.7;
}

@media screen and (max-width:600px){
  #contact{
    padding: 1em;
  }
}

footer{
  background-color: rgb(5, 40, 4);
  color: #fff;
  text-align: center;
}

@media screen and (max-width:600px){
footer p{
  font-size: 0.8em;
}
}

