/*ハンバーガーメニュー*/

/*ボタン*/
.hamburger{
  position: relative;
  z-index: 1100;
  width: 30px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;

  display: none;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span{
  display: block;
  height: 3px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1){
  transform: translateY(5.5px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3){
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width:768px){

  .site-nav{
    display: none;
    }
    
  .hamburger{
  display: flex;
  }

}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-base);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;

  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s ease;opacity: 0.3s ease;
}

.mobile-nav ul{
  list-style-type: none; 
}

/*上のスライド（ドロップ）*/

.drawer-top {
  transform: translateY(-100%);
}

.drawer-top.active{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/*profile*/

.profile-area{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px,3vw,30px);
}

.profile-area .profile-img{
  width: clamp(180px,30%,180px);
  height: clamp(180px,30%,180px);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/*ナビゲーション*/
.nav-links{
  text-align: center;
  padding: 0;
}

.nav-links a{
  display: block;
  font-weight: 700;
}

.nav-links a:hover{
  color: var(--color-accent);
}

/*workカード*/

.work-cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 18px; /* 画像の間隔 */
  max-width: 800px; /* 任意で幅制限 */
  object-fit: cover; /* サイズをトリミングして均一に */
  margin: 0 auto;
  padding-bottom: 100px;
}

/* sp768px以上の画面では1列にする */
@media (max-width: 768px) {
  .work-cards {
    grid-template-columns: 1fr;
  }
}

.work-card {
  background-color: var(--color-base);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  overflow: hidden;
  text-align: center;
  border-radius: 10px;
  position: relative;
  transition: transform 0.3s ease,box-shadow 0.3s ease;
}

.work-card img{
  width: 100%;
  height: 100%;
}

.work-card:hover .work-card-image-area{
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.work-card-content-area h3{
  font-size: clamp(10px,4vw,12px);
  padding-top: 10px;
  padding-bottom: 10px;
}

.work-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.number-area{
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #e1e1db;
  color:  #7d7979;
  width: clamp(30px,6vw,50px);
  height: clamp(30px,6vw,50px);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}


/*profileカード*/
.profile-card {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;  /* 高さは中央寄せ */
  gap: 20px;
  flex-wrap: nowrap; 
  background-color: #f6f4f4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: clamp(20px, 4vw, 40px);
}

.profile-image-area {
  flex: 0 0 clamp(120px, 25%, 180px); /* 横幅を固定気味に */
}

.profile-image-area img {
  width: 100%;
  aspect-ratio: 1 / 1;   /* 正方形を維持 */
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.profile-content-area {
  flex: 1;  /* 残りを全部使う */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 768px) {
  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-content-area {
    width: 100%;
    max-width: 600px;
    align-items: center;
  }
}


/*contact*/


#contact{
  padding-bottom: 30px;
}

.contact-descriotion {
  text-align: center;
  padding: 10px;
}

.contact-form{
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
  margin-inline:auto;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 20px 40px;
}

.form-group{
  display: flex;
  flex-direction: column;

}

.form-group label{
  font-weight: 700;
  margin-bottom: 5px;
}

.form-group input{
  width: 100%;
  padding: 5px;
  border: 1px solid var(--color-border);
  border-radius: 5px;
}

.form-group textarea{
  width: 100%;
  padding: 5px;
  border: 1px solid var(--color-border);
  border-radius: 5px;
}



.contact-btn{
  width: 100%;
  padding: 12px;
  background: var(--color-accent);
  color: var(--color-base);
  border: none;
  border-radius: 5px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.3s ease,transform 0.3s ease;
}

.contact-btn:hover{
  opacity: 0.9;
  transform: translateY(-2px);
}