/* 6FARM - 共通スタイル */

.vertical-rl {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}


/* --- 初期表示アニメーション --- */

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-500 {
    animation-delay: 0.5s;
}


/* --- スクロール連動フェード（site.js の IntersectionObserver で付与） --- */

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal],
    .fade-in-up {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
}


/* --- 全画面メニュー --- */

.site-menu {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.site-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.site-menu li {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.site-menu.is-open li {
    opacity: 1;
    transform: none;
}

.site-menu.is-open li:nth-child(1) {
    transition-delay: 0.08s;
}

.site-menu.is-open li:nth-child(2) {
    transition-delay: 0.14s;
}

.site-menu.is-open li:nth-child(3) {
    transition-delay: 0.2s;
}

.site-menu.is-open li:nth-child(4) {
    transition-delay: 0.26s;
}

.site-menu.is-open li:nth-child(5) {
    transition-delay: 0.32s;
}

.site-menu.is-open li:nth-child(6) {
    transition-delay: 0.38s;
}

.site-menu.is-open li:nth-child(7) {
    transition-delay: 0.44s;
}

.site-menu.is-open li:nth-child(8) {
    transition-delay: 0.5s;
}

body.is-menu-open {
    overflow: hidden;
}


/* --- 下線ホバー --- */

.link-underline {
    position: relative;
}

.link-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: #d32f2f;
    transition: width 0.3s ease;
}

.link-underline:hover::after {
    width: 100%;
}


/* --- アコーディオン（FAQ / 食べ方） --- */

.acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.acc.is-open .acc-body {
    max-height: 40rem;
}

.acc.is-open .acc-icon {
    transform: rotate(45deg);
}

.acc-icon {
    transition: transform 0.3s ease;
}


/* --- ライトボックス（ギャラリー） --- */

.lightbox {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}
