@layer utilities {
    .text-shadow {
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    }
    .bg-blur {
        backdrop-filter: blur(8px);
    }
    .transition-all-300 {
        transition: all 0.3s ease;
    }
}

/* スクロールアニメーション */
.scroll-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-fade.active {
    opacity: 1;
    transform: translateY(0);
}

/* ハンバーガーメニュー */
.hamburger {
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
}
.hamburger span {
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #3E4A3D;
    left: 0;
    transition: all 0.3s ease;
}
.hamburger span:nth-child(1) {
    top: 0;
}
.hamburger span:nth-child(2) {
    top: 10px;
}
.hamburger span:nth-child(3) {
    bottom: 0;
}
.hamburger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* タブ切り替え */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* 成分カードホバー効果 */
.ingredient-card {
    transition: all 0.3s ease;
}
.ingredient-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* モーダルウィンドウ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}
.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background-color: white;
    border-radius: 8px;
    max-width: 90%;
    width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}


