@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
    --color-gold: #897c45;
    --color-gold-light: #f0eee4;
    --color-white: #ffffff;
    --color-black: #1a1a1a;
    --color-gray: #f9f9f9;
    --font-main: 'Noto Sans JP', sans-serif;
}

/* Base Styles */
body {
    font-family: var(--font-main);
    line-height: 1.8;
    letter-spacing: 0.05em;
    color: var(--color-black);
    background-color: var(--color-white);
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -sm-user-select: none;
}

/* Typography */
h1, h2, h3, h4, .font-gold {
    color: var(--color-gold);
}

.section-title-container {
    position: relative;
    max-width: 50%;
    margin: 0 auto 40px;
    text-align: center;
}

.section-title-img {
    width: 100%;
    height: auto;
    display: block;
}

.section-title-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: 700;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
    .section-title-text {
        font-size: 2rem;
    }
}

/* Spacing */
section {
    margin-bottom: 0px;
}

@media (min-width: 1024px) {
    section {
        margin-bottom: 0px;
    }
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* FV Styles */
.fv-swiper {
    width: 100%;
    height: 100vh;
}

.fv-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: bottom;
}

/* Custom Scroll Down */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: white;
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
}

.scroll-down::after {
    content: '';
    display: block;
    width: 1px;
    height: 60px;
    background: white;
    margin: 10px auto 0;
    animation: scroll-line 2s infinite;
}

@keyframes scroll-line {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* CTA */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 0;
    font-weight: 700;
    transition: all 0.3s ease;
}

.cta-btn-gold {
    background-color: var(--color-gold);
    color: white;
}

.cta-btn-gold:hover {
    background-color: #b8962d;
}

/* Parallax */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll;
    }
}

/* Sticky CTA SP */
.sp-fixed-cta {
    display: none;
}

@media (max-width: 767px) {
    .sp-fixed-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 100;
        background: var(--color-gold);
    }
    .sp-fixed-cta a {
        flex: 1;
        text-align: center;
        padding: 12px 0;
        color: white;
        font-weight: 700;
        border-right: 1px solid rgba(255,255,255,0.3);
    }
    .sp-fixed-cta a:last-child {
        border-right: none;
    }
    
    body {
        padding-bottom: 60px; /* Space for fixed CTA */
    }
}

/* Back to Top */
#back-to-top {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 50px;
    height: 50px;
    background: var(--color-gold);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Hamburger Menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.98);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.menu-overlay ul {
    text-align: center;
}

.menu-overlay li {
    margin: 20px 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
}

/* Gallery Swiper Continuous */
.gallery-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

/* Gallery Modal (PhotoSwipe Customization) */
.pswp {
    --pswp-bg: rgba(0, 0, 0, 0.95);
    z-index: 100000;
}
.pswp__img {
    background: transparent;
}

/* Broken Grid About */
@media (min-width: 1024px) {
    .about-text-box {
        position: relative;
        z-index: 2;
        padding: 60px;
        background: white;
        margin-right: -100px;
        border: 1px solid var(--color-gold-light);
    }
    .about-img-box {
        position: relative;
        z-index: 1;
    }
}

/* === WAGYU-SUIREN LAYOUT CLASSES === */
/* Writing Vertical */
.writing-vertical-rl {
    writing-mode: vertical-rl;
    text-orientation: upright;
}

/* Layout Phases (PC Only) */
@media (min-width: 1024px) {
    .layout-phase-1 {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        position: relative;
    }
    .sticky-sidebar {
        width: 35%;
        min-height: 100vh;
        height: auto;
        position: relative;
        z-index: 50;
        background-color: #FAFAF8;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 0;
        border-right: 1px solid rgba(0, 0, 0, 0.05);
    }
    .scroll-content-area {
        width: 65%;
        position: sticky;
        top: 0;
        height: 100vh;
        overflow: hidden;
    }
}

/* Animations */
@keyframes kenburns {
    0% { transform: scale(1.0); }
    100% { transform: scale(1.1); }
}
.animate-kenburns {
    animation: kenburns 10s ease-out infinite alternate;
}
.swiper-slide {
    transition: opacity 1s ease-in-out;
}

/* FV Adjustments */
#fv {
    aspect-ratio: 1 / 1;
    height: auto;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
}
@media (min-width: 1024px) {
    #fv {
        aspect-ratio: auto;
        height: 100vh;
        height: 100dvh;
    }
}

/* Mobile Nav Animation */
#hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}
#hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
