@charset "UTF-8";

:root{
    --main-color: #FFFCF6;
    --accent-color: #5A3825;
    --sub-color: #FFF3D6;
    --font-color: #3E2622;
}
body{
    font-family: "Noto Serif JP", serif;
    background-color: var(--main-color);
    max-width: 1440px;
    margin: 0 auto;
    color: var(--font-color);
	font-size: 16px;
}

.wrapper{
    padding: 0 40px;
}

img{
    max-width: 100%;
}

a{
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}
a:hover{
    opacity: .8;
}
li{
    list-style: none;
}
.title{
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 50px;
    letter-spacing: 2px;
}
#works,#skill,#about,#contact{
    margin-top: 80px;
}
#skill, #contact{
    background-color: var(--sub-color);
    padding: 50px 40px;
}
.sp{
    display: none;
}
/* header */
#header{
    height: 80px;
    background-color: var(--accent-color);
    padding-inline: clamp(16px, 4vw, 40px);
    font-size: 18px;
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-flex{
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
:target{
     scroll-margin-top: 80px; 
}

#header img{
    width: 150px;
}
#navi{
    display: flex;
    gap: 0 30px;
}

/* works */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.work-item {
  background-color: var(--sub-color); 
  padding: 20px;
  text-align: left;
  color: var(--font-color);
}

.work-item img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 15px;
}

.work-category {
  font-size: 16px;
  margin: 5px;
}

.work-title {
  font-size: 14px;
  padding-bottom: 5px;
}

/* skill */

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  max-width: 1000px;
  margin: 0 auto;
  gap: 30px 20px;
}


.skill-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.skill-item img {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}

.skill-text h3 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

.skill-text p {
  margin: 5px 0 0;
  font-size: 14px;
  line-height: 1.6;
}



/* about-sec */
.about h2 {
  font-size: 28px;
  margin-bottom: 40px;
  color: #5a3825; /* 見出しのブラウン */
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  margin: 0 auto;
}

.about-image img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 50%; /* 丸型にする */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.about-text {
  flex: 1;
  text-align: left;
  max-width: 420px;
  color: var(--font-color);
  line-height: 1.7;
}

.about-text h3 {
  font-size: 18px;
  margin-top: 15px;
  margin-bottom: 5px;

}

/* contact */
#contact{
    background-color: var(--sub-color);
    padding: 50px 40px;
}

#contact .contact-text{
    text-align: center;
    padding-bottom: 50px;
	line-height: 1.5;
}


#contact p{
  line-height: 1;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form label {
  font-weight: bold;
  display: block; 
  text-align: left;
}

.contact-form input.contact-input,
.contact-form textarea.contact-input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--accent-color);
  border-radius: 4px;
  font-size: 14px;
  background-color: var(--main-color);
  margin-bottom: 15px;
}

.contact-form textarea.contact-input {
  min-height: 120px;
  resize: vertical;
}

.contact-form input.contact-submit {
  background: #DE9F17;
  color: #fff;
  border: none;
  display: block;
  width: 210px;
  margin: 20px auto 0;
  padding: 21px 16px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form input.contact-submit:hover {
  scale: 1.1;
}


/* footer */
#footer{
    height: 60px;
    background-color: var(--accent-color);
    color: #fff;
    text-align: center;
    font-size: 14px;
    padding: 20px;
}

@media screen and (max-width:780px) {
    .pc{
        display: none;
    }
    .sp{
        display: block;
    }
	.wrapper{
    padding: 0 20px;
}
	#skill, #contact{
    padding: 50px 20px;
}
    #header{
        height: 70px;
    }

    #navi{
        width: 200px;
        position: fixed;
        top: 0;
        right: -200px;
        background-color: var(--accent-color);
        height: 100%;
        overflow-y: auto;
        padding: 100px 20px;
        z-index: 20;
        opacity: 0;
        transition: all 0.5s;
        flex-direction: column;
    }
    .open #navi{
        right: 0;
        opacity: 1;
    }
    #navi li{
        position: relative;
        padding: 20px 0;
    }
    .hamburger{
        width: 50px;
        height: 30px;
        position: fixed;
        transition: all 0.5s;
        cursor: pointer;
        right: 35px;
        top: 20px;
        z-index: 20;
    }
    .hamburger span{
        display: block;
        width: 100%;
        height: 2px;
        background-color: #fff;
        transition: all 0.5s;
        position: absolute;
    }
    .hamburger span:nth-child(2) {
        top: 50%;
      }
      .hamburger span:nth-child(3) {
        bottom: 0;
      }
      .open .hamburger span{
        background-color: #fff;
      }
      .open .hamburger span:nth-child(1){
        top: 50%;
        transform: rotate(-45deg);
      }
      .open .hamburger span:nth-child(2){
        display: none;
        transition: all 0.5s;
      }
      .open .hamburger span:nth-child(3){
        top: 50%;
        transform: rotate(45deg);
      }

      /* about */
      .about-container{
        flex-direction: column;
      }
	.about-image img {
      width: 250px;
      height: 250px;
     }
}
@media screen and (max-width: 600px) {
  .skill-grid {
    grid-template-columns: 1fr;
  }
}