@charset "UTF-8";

body{
    font-family: "M PLUS 1", sans-serif;
    background-color: #F6F5F2;
}

img{
    max-width: 100%;
}

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

li{
    list-style: none;
}

.wrapper{
    width: 95%;
    max-width: 1020px;
    margin: 0 auto;
}

.site-title{
    letter-spacing: 0.03em;
    font-weight: 500;
    font-size: 1.5rem;
    box-shadow: 0px 0px 0px 10px #F0EBE3;
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 138px;
    padding: 10px;
    background-color: #F0EBE3;
    border: solid 3px #9c9999;
    border-radius: 10px;
}


#header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 0;
}

#header nav ul{
    display: flex;
}

#header nav ul li{
    margin-left: 20px;
    border: solid 3px #9c9999;
    border-radius: 10px;
    /* border-right: solid 1px #000; */
}

#loading {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background-color: #ffdbed;
    transition: all 1s;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
  }
  #loading.loaded {
    opacity: 0;
    visibility: hidden;
  }

  .loader,
  .loader:after {
    border-radius: 50%;
    width: 10em;
    height: 10em;
  }
  .loader {
    margin: 60px auto;
    font-size: 10px;
    position: relative;
    text-indent: -9999em;
    border-top: 1.1em solid rgba(255, 255, 255, 0.2);
    border-right: 1.1em solid rgba(255, 255, 255, 0.2);
    border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
    border-left: 1.1em solid #ffffff;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: load8 1.1s infinite linear;
    animation: load8 1.1s infinite linear;
  }
  @-webkit-keyframes load8 {
    0% {
      -webkit-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    100% {
      -webkit-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }
  @keyframes load8 {
    0% {
      -webkit-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    100% {
      -webkit-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }


#header nav ul li a{
    font-weight: 500;
    font-size: 1rem;
    margin-right: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 138px;
    margin: 0 auto;
    padding: 10px;
    background-color: #F0EBE3;
    border-radius: 9px;
    transition-duration: 0.5s;
}

#header nav ul li a:hover{
    background-color: #F3D0D7;
}

@media screen and (max-width:900px){
    #header nav{
        display: none;
    }

    .site-title{
        font-size: 1.4rem;
    }
}

#section1{
    align-items: center;
    background-color: #F3D0D7;
    border: solid 3px #9c9999;
    box-shadow: 0px 0px 0px 10px #FFEFEF;
    max-width: initial;
    width: 100%;
    height: auto;
    margin: 0 auto;
    position: relative;
    z-index: -1;
    padding: 10px;
}

#section1 .container{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 50px 0;
    max-width: 950px;
    margin: 0 auto;
    
}

#section1 .left{
    width: 45%;  
    position: relative;
}

#section1 .right{
    width: 50%;
}
#section1 .text{
    letter-spacing: 0.03em;
    color: #fff;
}

.sec-title{
    letter-spacing: 0.05em; 
    position: relative;  
    top: 0;
    left: 0; 
    color: #383838;
    display: block;
    font-size: 3rem;
    z-index: 10;
}

span.en{
    display: block;
    font-size: 5rem;
    position: absolute;
    color: #fff;
    font-weight: 500;
    top: 5%;
    left: 5%;
    opacity: 0.3;
    z-index: 1;
}

#section1 .title1,
#section1 .title2{
    font-size: 1.2rem;
    margin-bottom: 10px;
    letter-spacing: 0.07em;
}

#section1 .title1::after{
    content: "";
    width: 80%;
    height: 2px;
    display: inline-block;
    border: solid 1px #000;
}

#section1 .title2::after{
    content: "";
    width: 88%;
    height: 2px;
    display: inline-block;
    border: solid 1px #000;
}

#section1 .profile{
    line-height: 1.6;
    margin-bottom: 30px;
}

@media screen and (max-width:900px){
    #section1 .container{
        flex-direction: column;
    }

    .sec-title{
        margin-bottom: 80px;
        font-size: 2rem;
    }

    span.en{
        font-size: 3rem;
    }

    #section1 .container{
        padding: 10px;
    }

    #section1 .left{
        width: 100%;  
    }
    
    #section1 .right{
        width: 100%;
    }
}

#section2{
    text-align: center;
    margin-top: 80px;
    position: relative;
    z-index: -1;
}

#section2 h2{
    margin-bottom: 80px;
}

#section2 .sec-title{
    letter-spacing: 0.05em;   
    color: #383838;
    display: block;
    font-size: 3rem;
    position: relative;
    z-index: 10;
}

#section2 span.en{
    color: #cec9c2;
    position: absolute;
    top: 3%;
    left: 50%;
}

#slider li{
    background-color: #393939;
    text-align: center;
    padding: 8px;  
}

#slider img{
    width: 70%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin: 0 auto;
}

@media screen and (max-width:900px) {
    #slider img{
        width: 80%;
        height: 40vw;
    }

    #section2 .sec-title{
        font-size: 2rem;
    }

    #section2 span.en{
        font-size: 2.5rem;
    }
}

#section3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 100px;
    margin-bottom: 230px;
    background: #F6F5F2;
    border: solid 3px #9c9999;
    box-shadow: 0 0 0 10px #F3D0D7;
    border-radius: 20px;
    padding: 1% ;
}

#section3 .img{
    margin-right: 50px;
    border-radius: 7px;
    background-color: #393939;
    text-align: center;
    padding: 8px;
}

#section3 .text{
    margin-top: 60px;
    width: 50%;
}

#section3 .text .title{
    margin-bottom: 20px;
}

#section3 dt{
    font-size: 1.3rem;
}

#section3 dd{
    margin-bottom: 10px;
}

.btn{
    background-color: #9c9999;
    border-bottom: 6px solid #7e7a7a;
    border-radius: 50px;
    display: block;
    width: 250px;
    font-size: 1.2rem;
    padding: 10px 0;
    text-align: center;
    letter-spacing: 0.1em;
    color: #fff;
    transition-duration: 0.6s;
    margin:  50px auto;
    text-shadow: 1px 1px 1px #000;
}

.btn:hover{
    transform: scale(1.05);
    color: #fff;
}

@media screen and (max-width:900px){
    #section3{
        flex-direction: column;
        margin-bottom: 100px;
    }

    #section3 .img{
        margin-right: 0;
        margin: 50px auto 0;
        padding: 3%;
    }

    #section3 .text{
        width: 95%;
    }
}

#section4{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F6F5F2;
    border: solid 3px #9c9999;
    box-shadow: 0 0 0 10px #F3D0D7;
    border-radius: 20px;
    padding: 1% ;
}

#section4 .img{
    margin-left: 50px;
    border-radius: 7px;
    background-color: #393939;
    text-align: center;
    padding: 8px;
}

#section4 .text{
    margin-top: 60px;
    width: 50%;
}

#section4 .text .title{
    margin-bottom: 20px;
}

#section4 dt{
    font-size: 1.3rem;
}

#section4 dd{
    margin-bottom: 10px;
}

@media screen and (max-width:900px){
    #section4{
        flex-direction: column-reverse;
    }

    #section4 .img{
        margin-right: 0;
        margin: 50px auto 0;
        padding: 3%;
    }

    #section4 .text{
        width: 95%;
    }
}

#section5{
    text-align: center;
    background-color: #F3D0D7;
    max-width: initial;
    width: 100%;
    margin: 100px auto;
    padding: 0 0 100px;
    position: relative;
    z-index: -1;
}

#section5 .sec-title{
    letter-spacing: 0.05em;   
    color: #383838;
    display: block;
    font-size: 3rem;
    position: relative;
    z-index: 10;
}

#section5 span.en{
    color: #ffffff;
    position: absolute;
    top: 13%;
    left: 50%;
    z-index: 5;
}

#section5 .skills{
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    max-width: 800px;
    margin: 0 auto;
}

#section5 img{
    background-color: #000;
    border-radius: 10px;
    width: 100px;
    margin-bottom: 20px;
}

#section5 hr{
    width: 80%;
    margin: 0 auto;
}

#section5 h2{
    padding-top: 80px;
    margin-bottom: 80px;
}

#section5 .skill{
    width: 31%;
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
}

#section5 .skill .text{
    text-align: left;
    margin: 20px 0;
}


@media screen and (min-width:470px) and (max-width:900px){
    #section5 .skills{
        flex-direction: column;
    }

    #section5 .skill{
        width: 80%;
        margin: 0 auto 20px;
    }

    #section5 .sec-title{
        position: relative;
        font-size: 2rem;
    }

    #section5 span.en{
        font-size: 2.5rem;
        position: absolute;
        top: 8%;
    }
}

@media screen and (max-width:470px){
    #section5 .skills{
        flex-direction: column;
    }

    #section5 .skill{
        width: 80%;
        margin: 0 auto 20px;
    }

    #section5 .sec-title{
        font-size: 2rem;
    }

    #section5 span.en{
        font-size: 2.5rem;
        top: 7%;
    }
}

#section6{
    text-align: center;
    margin-bottom: 100px;
    position: relative;
}

#section6 .sec-title{
    letter-spacing: 0.05em;   
    color: #383838;
    display: block;
    font-size: 3rem;
    position: relative;
    z-index: 10;
}

#section6 span.en{
    color: #cec9c2;
    position: absolute;
    top: 2%;
    left: 50%;
}

#section6 dl{
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    margin-top: 100px;
    border: solid 1px #000;
}

#section6 dt{
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #F3D0D7;
    padding: 30px 15px;
    border-bottom: solid 1px #000;
}

#section6 dt:last-of-type,
#section6 dd:last-of-type{
    border-bottom: 0;
}

#section6 dt span{
    background-color: #fff;
    font-size: 0.75rem;
    padding: 0 8px;
}

#section6 dd{
    width: 70%;
    background-color: #fff;
    padding: 22px 15px 20px 15px;
    border-bottom: solid 1px #000;
}


#section6 form input{
    background-color: #F3D0D7;
    padding: 8px 10px;
}

#section6 form textarea{
    background-color: #F3D0D7;
    padding: 8px 10px;
    width: 100%;
    height: 250px;
    resize: none;
}

.error-text {
    color: #de3f2e;
    margin-top: 2px;
}

.btn-area{
    text-align: center;
    display: inline-block;
    margin-top: 50px;
    
}

#btn-submit{
    display: inline-block;
    background-color: #7e7a7a;
    padding: 10px 60px 10px 100px;
    border-radius: 30px;
    border: solid 1px #000;
    color: #fff;
    letter-spacing: 2em;  
    font-size: 1.3rem;
    text-shadow: 1px 1px 1px #000;
}

#btn-submit:hover{
    color: #7e7a7a;
    background-color: #fff;
}

#name,#email{
    width: 100%;
}

@media screen and (max-width:900px){
    #section6 dl{
        flex-direction: column;  
    }

    #section6 dt{
        width: 100%;
        display: block;
        padding: 10px;
        text-align: left;
    }

    #section6 dt span{
        margin-left: 10px;
    }

    #section6 dd{
        width: 100%;
        padding: 10px;
    }

    #section6 .sec-title{
        font-size: 2rem;
    }

    #section6 span.en{
        font-size: 2.5rem;
    }
}

#footer{
    width: 100%;
    background-color: #9c9999;
}

#footer .footer-title{
    font-size: 1.2rem;
    border-bottom: solid 1px #ccc;
    padding: 30px;
}

.btn_top{
    display: block;
    position: fixed; 
    bottom: 20px;    
    right: 20px;     
    background-color: #393939;
    color: #fff;
    font-size: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color .3s, transform .3s;
}

.btn_top::before{
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-top: solid 2px #fff;
    border-right: 2px solid #fff;
    transform: rotate(-45deg);
    transition: transform .3s;
    position: absolute;
    bottom: 15px;
    right: 15px;
  
}















