/* ==================================
  ハンバーガーメニュー
  ================================== */

/*　ハンバーガーボタン　*/
.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) {
    .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;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

/*　上スライド（ドロップ）　*/
.drawer-top {
    transform: translateY(-100%);
}

.drawer-top.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* 右スライド（ドロップ） */
.drawer-right {
    transform: translateX(100%);
    transition: transform 0.4s ease, opacity 0.3s ease;

}

.drawer-right.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* === プロフィール === */
.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%, 280px);
    height: clamp(180px, 30%, 280px);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.profile-area .profile-name {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--color-text);
}

.profile-area .profile-text {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--color-text);

}

/* === 汎用SNSナビゲーション（縦） === */

.nav-links {
    list-style: none;
    color: var(--color-text);
    text-align: center;
    padding: 0;
}

.nav-links li a {
    font-weight: 700;
}

.nav-links li a:hover {
    color: var(--color-accent);
    transition: color 0.3s ease;
}

/* === 汎用SNSリンク === */
.social-links {
    display: flex;
    gap: clamp(10px, 1.5vw, 15px);
    list-style: none;
    padding: 0;
}

/*  汎用SNSアイコン  */

.sns-icon {
    width: 40px;
    height: 40px;
    display: flex;
    display: inline-block;
    border-radius: 50%;
    background-size: 60% auto;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;

}

.sns-icon:hover {
    transform: scale(1.2);
}

/*  SNSごとのアイコン画像  */
.sns-icon.twitter {
    background-image: url(../img/icon/twitter.png);
}

.sns-icon.instagram {
    background-image: url(../img/icon/Instagram.png);
}

.sns-icon.line {
    background-image: url(../img/icon/LINE.png);
}

/* === Workカード === */
.work-cards {
    display: flex;
    justify-content: center;
    gap: clamp(20px, 3vw, 30px);
    flex-wrap: wrap;
}

.work-card {
    width: clamp(280px, 33.333%, 360px);
    background: var(--color-base);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    text-align: center;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.5vw, 15px);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.work-card-image-area {
    transition: transform 0.3s ease;
}

.work-card:hover .work-card-image-area {
    transform: scale(1.05);
}

.work-card img {
    width: 100%;
}

.work-card p {
    padding: 0 15px 20px;
    text-align: left;
}

.work-card .work-card-number-area {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-accent);
    color: var(--color-base);
    width: clamp(50px, 7vw, 80px);
    height: clamp(50px, 7vw, 80px);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* === Profileカード === */

.profile-card {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    background: var(--color-base);
    box-shadow: 0 4px 12pc rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: clamp(20px, 4vw, 40px);
    transform: translateY(30px) rotate(-20deg);
    opacity: 0;

}

.profile-card.is-visible {
    animation: sway 2s ease forwards;

} 

@keyframes sway {
    0%{
        opacity: 0;
        transform: translateY(30px) rotate(-3deg);
    
    }
    25%{
        opacity: 1;
        transform: translateY(-5px) rotate(2deg);

    }
    50%{
        opacity: 1;
        transform: translateY(5px) rotate(-1deg);
    }
    75%{
        opacity: 1;
        transform: translateY(-3px) rotate(1deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0);
        
    }
    
}

.profile-image-area {
    width: clamp(180px, 30vw, 280px);
    height: clamp(180px, 30vw, 280px);
}

.profile-image-area img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.profile-content-area {
    width: calc(100% - clamp(180px, 30vw, 280px) - 40px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
}

.profile-btn {
    display: block;
    text-align: center;
    background: var(--color-accent);
    color: var(--color-base);
    width: 100%;
    border-radius: 5px;
    font-weight: 700;
    padding: 10px 20px;
    transition: opacity 0.3s ease, transform 0.3s ease;

}

.profile-btn:hover {
    opacity: 0.8;
    transform: translateY(-2px);

}

@media (max-width:768px) {
    .profile-card {
        flex-direction: column;
    }

    .profile-content-area {
        width: 100%;
        max-width: 600px;

    }
}

.contact-description {
    text-align: center;
    margin-bottom: clamp(5px,1vw,10px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 700px;
    margin-inline: auto;
    background: var(--color-base);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: clamp(20px,4vw,40px);

}
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 700;
    margin-bottom: 5px;
}

.form-group input,.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
}

.form-group input:focus,
.form-group textarea:focus {
    border: 1px solid var(--color-accent);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 195, 244, 0.4);
    
}

.contact-btn {
    display: block;
    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, 0.3s ease;
}

.contact-btn:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}


