* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: #000;
}

body {
    font-family: 'gordita', sans-serif;
    line-height: 1.6;
    color: #fff;
    overflow-x: hidden;
    background-color: #7F979B;
}

.container {
    width: 90%;
    margin: 0 auto;
    padding: 0 5%;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 40px 0;
}

.nav-container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-menu, .menu-list {
    display: flex;
    list-style: none;
    gap: 3vw;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2vw;
    font-weight: 400;
    text-shadow: 0 0 16px rgba(0, 0, 0, 0.30), 0 0 8px #92afb4;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hero-wrapper {
    width: 100%;
    min-height: 100vh;
}

.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url('images/FV.webp') center/cover no-repeat;
    z-index: 0;
}

.hero-content-layer {
    position: absolute;
    top: -5%;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hero-content-layer>* {
    pointer-events: auto;
}

.hero-content {
    text-align: center;
    color: white;
    padding: 0 5%;
}

.hero-title {
    font-family: 'EB Garamond', serif;
    font-size: 3.9vw;
    font-weight: 400;
    letter-spacing: 0.0019vw;
    margin-bottom: 2vh;
    text-shadow: 0px 0px 12px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-family: 'EB Garamond', serif;
    font-size: 2.25vw;
    font-weight: 300;
    margin-bottom: 5vh;
}

.cta-button {
    background: transparent;
    color: white;
    border: 1px solid white;
    padding: 0.5vw 2.5vw;
    font-size: 1.4vw;
    text-transform: lowercase;
    font-family: 'gordita', sans-serif;
}

.scroll-indicator {
    position: absolute;
    bottom: 2vh;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.4vw
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    margin: 10px auto 0;
    border-right: 1px solid white;
    border-bottom: 1px solid white;
    transform: rotate(45deg);
}


main.main-sections {
    position: relative;
    background: url('images/bg.webp') center top no-repeat;
    background-size: cover;
    background-position: center top;
    z-index: 1;
    margin-top: 50vh;
    padding-top: 50vh;
    min-height: 100vh;
}

.story-section {
    padding: 100px 0 0;
    /* 固定値に変更してアンカーリンクを安定化 */
    position: relative;
    background: transparent;
}

/* フェードインアニメーション用 */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-family: 'EB Garamond', serif;
    font-size: 3.9vw;
    font-weight: 400;
    text-align: left;
    margin-bottom: 3vw;
    color: #fff;
    letter-spacing: 0.001167vw;
}

.story-content {
    display: flex;
    align-items: center;
    gap: 6.25%;
    margin-bottom: 5vw;
    flex-wrap: wrap;
}

.story-text {
    flex: 1;
    min-width: 300px;
}

.story-text h3 {
    font-family: 'EB Garamond', serif;
    font-size: 1.7vw;
    font-weight: 400;
    margin-bottom: 3vh;
    color: #fff;
}

.story-text p {
    font-size: 1.4vw;
    line-height: 1.8;
    margin-bottom: 2vh;
    color: #fff;
}

.story-image {
    flex: 0.8;
    min-width: 280px;
}

.story-img,
.brewery-img {
    width: 100%;
    height: auto;
    display: block;
}

.breweries-content {
    display: flex;
    align-items: center;
    gap: 5%;
    flex-wrap: wrap;
}

.breweries-text {
    flex: 1;
    min-width: 300px;
}

.breweries-text h3 {
    font-family: 'EB Garamond', serif;
    font-size: 1.7vw;
    font-weight: 400;
    margin-bottom: 3vh;
    color: #fff;
}

.breweries-text p {
    font-size: 1.4vw;
    line-height: 1.8;
    margin-bottom: 2vh;
    color: #fff;
}

.breweries-image {
    flex: 0.8;
    min-width: 280px;
}

.company-section {
    padding: 100px 0 8vw;
    transition: none !important;
    transform: none !important;
}

.company-info {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.info-row {
    display: flex;
    gap: 5%;
    align-items: baseline;
}

.info-label {
    font-family: 'EB Garamond', serif;
    flex: 0 0 18.3%;
    font-weight: 400;
    color: #fff;
    font-size: 1.7vw;
}

.info-value {
    flex: 1;
    color: #fff;
    font-size: 1.4vw;
    line-height: 1.8;
}

.contact-section {
    padding: 100px 0 10vh;
    /* 上部パディングを固定値に */
    background: #000;
    color: white;
    text-align: center;
    opacity: 1 !important;
    transition: none !important;
    transform: none !important;
    position: relative;
    z-index: 2;
}

.contact-section .section-title {
    color: white;
    text-align: center;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
}

.contact-email {
    font-family: 'EB Garamond', serif;
    display: inline-block;
    color: white;
    font-size: 1.95vw;
    text-decoration: none;
    margin-bottom: 3vh;
    transition: opacity 0.3s ease;
}

.contact-email:hover {
    opacity: 0.8;
}

.contact-note {
    font-size: 1.2vw;
    opacity: 0.8;
    line-height: 1.6;
}

.footer {
    padding: 3vh 0;
    background: #000;
    color: #fff;
    text-align: center;
    font-size: 1vw;
}

/* menu-footerはデフォルトで非表示（デスクトップ） */
.menu-footer {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    position: relative;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1002;
}

.mobile-menu-toggle span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 10px rgba(146, 175, 180, 0.5);
}

.mobile-menu-toggle span:nth-child(1) {
    top: 6px;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 14px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 22px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    top: 14px;
    transform: rotate(45deg);
    transition-delay: 0.1s;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    top: 14px;
    transform: rotate(-45deg);
    transition-delay: 0.1s;
}

@media (max-width: 768px) {

    .story-image,
    .breweries-image {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .story-text,
    .breweries-text {
        flex: 1;
    }

    .breweries-content {
        flex-direction: column-reverse;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(38, 83, 91, 0.1);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 30vh;
        z-index: 1001;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        opacity: 0;
        visibility: hidden;
    }

    .nav-menu .menu-footer {
        display: block;
        /* モバイル時は表示 */
        position: absolute;
        bottom: 15%;
        font-family: 'EB Garamond', serif;
        font-size: 1.1rem;
        font-weight: 300;
        color: #fff;
        text-align: center;
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s ease;
        padding-top: 25px;
    }

    .nav-menu .menu-footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 280px;
        height: 1px;
        background: rgba(255, 255, 255, 0.3);
    }

    .nav-menu.active .menu-footer {
        opacity: 0.8;
        transform: translateY(0);
        transition-delay: 0.5s;
    }

    .nav-menu.active {
        right: 0;
        opacity: 1;
        visibility: visible;
    }

    .menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .menu-list li {
        padding: 0;
        border: none;
        margin: 0;
        transform: translateX(50px);
        opacity: 0;
        transition: all 0.5s ease;
    }

    .nav-menu.active li {
        transform: translateX(0);
        opacity: 1;
    }

    .nav-menu.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-menu.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-menu.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-menu.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-menu a {
        font-size: 1.2rem;
        font-weight: 300;
        color: #fff;
        text-shadow: none;
        position: relative;
        display: block;
        padding: 10px 0;
    }


    .story-content {
        flex-direction: column;
    }

    .nav-brand {
        font-size: clamp(0.8rem, 3vw, 1rem);
    }

    .hero-title {
        font-size: clamp(2.625rem, 5.47vw, 3rem);
    }

    .hero-subtitle {
        font-size: clamp(1.5rem, 3.125vw, 2.25rem);
    }

    .cta-button {
        font-size: clamp(1rem, 2.1875vw, 1.4rem);
        padding: 0.5rem 2rem;
    }

    .scroll-indicator {
        font-size: clamp(1rem, 2.1875vw, 1.4rem);
    }

    .section-title {
        font-size: 48px
    }

    .story-text h3,
    .breweries-text h3,
    .info-label,
    .contact-email {
        font-size: 24px
    }

    .story-text p,
    .breweries-text p,
    .info-value,
    .contact-note {
        font-size: 16px
    }

    .footer {
        font-size: 14px
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2.3rem, 6vw, 2.625rem);
    }

    .hero-subtitle {
        font-size: clamp(1.25rem, 4vw, 1.5rem);
    }

    .cta-button {
        font-size: clamp(0.875rem, 3vw, 1rem);
        padding: 0.5rem 1.5rem;
    }

    .scroll-indicator {
        font-size: clamp(0.875rem, 3vw, 1rem);
    }

    .scroll-arrow {
        width: 12px;
        height: 12px;
        border-width: 1px;
    }

    .section-title {
        font-size: 36px;
        margin-bottom: 36px;
    }

    .story-text h3,
    .breweries-text h3,
    .info-label,
    .contact-email {
        font-size: 20px
    }

    .story-text p,
    .breweries-text p,
    .info-value,
    .contact-note {
        font-size: 14px
    }

    .footer {
        font-size: 12px
    }

    .info-label {
        flex: 0 0 32%;
    }

    .footer .container {
        width: 100%;
    }

    .story-content {
        margin-bottom: 60px;
    }

    .company-section {
        padding: 80px 0;
    }

    .company-info {
        gap: 16px;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ドロワー開閉時のボディオーバーフロー制御 */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}


/* ドロワーメニュー背景クリック領域 */
.nav-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
}