@charset "UTF-8";

/* common */
a {
    text-decoration: none;
    color: black;
}

ul{
    list-style: none;
}

.container{
    width: 80%;
    margin: 0 auto;
}

/* header */

header{
    padding-top: 60px;
}

.header-left h1{
    font-size: 45px;
    letter-spacing: 5px;
}

.humburger{
    display: none;
}

.header-right .fa-3x {
    padding:0 15px;
    opacity: 0.5;
}
.header-right .fa-brands:hover,.fa-sharp:hover {
   opacity: 1;
}

.header-menu{
    display: flex;
    justify-content: space-between;
}

/* nav */

.nav{
    padding-top: 50px;
}

.nav-list {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 47px;
}
.nav-list li {
    font-size: 18px;
    padding: 0 25px;
    letter-spacing: 3px;
}

.nav-list li:hover{
    text-decoration: underline;
}

/* top */
.main-image{
    width: 100%;
}

/* section */
.section h2{
    font-size: 48px;
    text-align: center;
    padding: 80px 0 60px 0;
    letter-spacing: 5px;
}



/* about */
.selfy img {
    width: 500px;
}

.contents{
    display: flex;
    justify-content: space-around;
}

.main-text{
    padding-top: 40px;
    font-size: 16px;
}

.about-text{
    padding:30px 0 0 60px;
}
.about-text a{
    opacity: 0.7;
}
.about-text a:hover{
    opacity: 1;
    color: blue;
    text-decoration: underline;
}

.about-text .fa-brands,.fa-sharp{
    padding-right: 10px;
}

/* service */
#cards {
    display: flex;
    justify-content: center;
  }
  
  .card {
    width: 300px;
    height: auto;
    border: 2px solid lightgray;
  }
  
  .card:nth-child(2) {
    margin-right: 30px;
    margin-left: 30px;
  }
  
  .picture img {
    width: 100%;
    height: 200px;
  }

  .img-title p{
    font-size: 20px;
    padding-top: 20px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
  }
  
  .description {
    width: 100%;
    height: 145px;
    padding-right: 12px;
    padding-left: 12px;
    box-sizing: border-box;
  }
  
  .description p {
    font-size: 16px;
    color: black;
  }

  /* works */
  .works p{
    text-align: center;
    font-size: 20px;
  }
  .work-contents img{
    width: 45%;
    margin: 2% 2%;
    border: solid 1px gray;
  }

  .work-contents img:hover{
    opacity: 0.5;
  }

  .work-contents {
    text-align: center;
  }

  .contact p{
    text-align: center;
    font-size: 20px;
  }

  .contact-menu{
    text-align: center;
    padding-top: 50px;
  }

  .contact-menu .fa-5x{
    padding: 0 4%;
    opacity: 0.7;
  }

  .contact-menu .fa-5x:hover{
    opacity: 1;
  }

  footer{
    padding-top: 100px;
  }

  footer .nav-list{
    justify-content: flex-start;
  }

  .drawer-btn{
    display: none;
  }

  .header-nav{
    display: none;
  }

  @media (max-width:780px) {
    .container{
        width: 100%;
    }

    .header-left h1{
        font-size: 28px;
        letter-spacing: 3px;
        padding: 20px 0 20px 20px;
    }

    header{
        padding: 0;
        width: 100%;
        position: fixed;
        left:0;
        top: 0;
        z-index: 10;
    }

    .header-menu{
        display: flex;
        justify-content: center;
        position: relative;
        background-color: #fff;
    }

    .humburger{
        padding: 11px 20px 0 0;
        display: block;
        position: absolute;
        right: 0;
    }

    .header-right{
       display: none;
    }

    .nav{
        display: none;
    }
    .header-nav{
        text-align: left;
        padding-top: 30px;
        transform:translateY(-130%);
        background-color: #fff;
        transition: 0.5s;
    }

    .top-wrapper img {
        padding-top: 70px;
    }

    .header-nav-list li{
        padding: 18px 0;
        border-bottom: 1px solid #000;
    }

    .header-nav-list  .fa-solid{
        padding: 0 10px;
    }

    .header-nav-list li a:hover{
        text-decoration: underline;
    }

    .header-icons .fa-2x{
        padding: 12px 18px;
    }

    .header-icons .fa-2x {
        opacity: 0.6;
    }
    .header-icons .fa-2x:hover {
        opacity: 1;
    }

    .header-icons{
        border-bottom: 1px solid #000;
    }

    .drawer-btn:checked ~ .header-nav{
        transform: translateY(0);
        height: 100vh;
        opacity: 0.9;
    }

    .drawer-btn{
        position: absolute;
        right: 25px;
        top: 27px;
        transform: scale(2.2);
        opacity: 0;
    }

    /* About me */
    .contents{
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .selfy img{
        width: 120px;
        margin-bottom: 30px;
    }

    .about-text{
        width: 90%;
        padding: 0;
    }

    .about-text p{
        text-align: center;
    }

    .main-text {
        text-align: center;
    } 
    
    .drawer-btn{
        display: block;
      }
    
      .header-nav{
        display: block;
      }

      #cards {
        display: flex;
       flex-direction: column;
       align-items: center;
      }

      .card {
        margin-bottom: 30px;
      }

      .work-contents img{
        width: 300px;
        height: 300px;
        object-fit: cover;
     }

     .works p{
        font-size: 16px;
      }

      .contact p{
        font-size: 16px;
      }

      .section h2{
        font-size: 32px;
      }





















}
