/* CSS Design System for SOTEI BIWAKO Website */

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, .brand-font {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--color-biwa-blue);
}

p, span, li, button, input, select {
    font-family: var(--font-sans);
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* Specific Font settings for Chinese/Japanese text layout */
.lang-ja body, .lang-zh_cn body, .lang-zh_tw body {
    line-height: 1.8;
}

/* --- LAYOUT UTILITIES --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

.section {
    padding: var(--section-padding-desktop);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .section {
        padding: var(--section-padding-mobile);
    }
}

.bg-light {
    background-color: var(--color-shadow-gray);
}

.bg-dark {
    background-color: var(--color-biwa-blue);
    color: var(--color-pure-white);
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 {
    color: var(--color-pure-white);
}

/* --- HEADER & NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(28, 45, 66, 0.08);
    transition: var(--transition-fast);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 48px;
    width: auto;
    display: block;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-sand-gold);
    transition: var(--transition-fast);
}

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

/* Language Swapper Dropdown Styles */
.lang-dropdown {
    position: relative;
    display: inline-block;
    border-left: 1px solid rgba(28, 45, 66, 0.15);
    padding-left: 20px;
}

.lang-dropdown-btn {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-biwa-blue);
    padding: 8px 16px;
    background-color: var(--color-shadow-gray);
    border: 1px solid rgba(28, 45, 66, 0.08);
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.lang-dropdown-btn:hover {
    background-color: rgba(28, 45, 66, 0.06);
}

.lang-dropdown-btn .arrow-down {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.lang-dropdown.active .lang-dropdown-btn .arrow-down {
    transform: rotate(180deg);
}

.lang-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--color-biwa-blue);
    opacity: 0.8;
}

.lang-dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 20px;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(28, 45, 66, 0.1);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    min-width: 80px;
    z-index: 1000;
    overflow: hidden;
    flex-direction: column;
}

.lang-dropdown.active .lang-dropdown-content {
    display: flex;
    animation: dropdownFadeIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.lang-dropdown-item {
    font-size: 0.85rem;
    padding: 12px 16px;
    text-align: center;
    color: var(--color-text-dark);
    transition: var(--transition-fast);
    border-bottom: 1px solid rgba(28, 45, 66, 0.04);
}

.lang-dropdown-item:last-child {
    border-bottom: none;
}

.lang-dropdown-item:hover {
    background-color: rgba(28, 45, 66, 0.04);
    color: var(--color-sand-gold);
}

.lang-dropdown-item.active {
    font-weight: 500;
    color: var(--color-sand-gold);
    background-color: rgba(197, 168, 128, 0.04);
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cta-btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--color-sand-gold);
    color: var(--color-pure-white);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 2px;
    letter-spacing: 0.08em;
    white-space: nowrap;
    transition: var(--transition-fast);
    box-shadow: 0 4px 12px rgba(197, 168, 128, 0.15);
}

.cta-btn:hover {
    background-color: var(--color-biwa-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(28, 45, 66, 0.15);
}

/* Mobile Toggle Hamburger */
.menu-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle-btn span {
    width: 100%;
    height: 1px;
    background-color: var(--color-biwa-blue);
    transition: var(--transition-fast);
}

/* Responsive Header */
@media (max-width: 992px) {
    .menu-toggle-btn {
        display: flex;
    }
    
    .nav-controls {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        height: 100dvh;
        background-color: var(--color-pure-white);
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
        padding: 120px 40px 40px;
        transition: var(--transition-smooth);
        z-index: 1050;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 32px;
    }
    
    .nav-controls.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 32px;
    }
    
    .nav-link {
        font-size: 1.1rem;
    }
    
    .lang-dropdown {
        border-left: none;
        padding-left: 0;
        margin-top: 24px;
        border-top: 1px solid rgba(28, 45, 66, 0.08);
        padding-top: 24px;
    }
    
    .lang-dropdown-content {
        left: 0;
    }
    
    .menu-toggle-btn.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .menu-toggle-btn.open span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle-btn.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* --- SCROLL REVEAL STYLES --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-smooth);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Animation Delays for Grids */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* --- SECTION GENERAL HEADER --- */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: var(--color-sand-gold);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 300;
}

.section-badge {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--color-sand-gold);
    display: block;
    margin-bottom: 12px;
}

/* --- FLOATING DECORATIONS --- */
.bg-grid-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(28, 45, 66, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 45, 66, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

/* --- FOOTER --- */
footer {
    padding: 60px 0;
    background-color: #121E2C;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-copy {
    font-size: 0.8rem;
}
