/* Common Header & Footer Styles */

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.5s ease;
    background-color: rgba(from var(--bg-color) r g b / 0);
}

header.scrolled {
    background-color: rgba(from var(--bg-color) r g b / 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(224, 224, 224, 0.8);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

@media (min-width: 641px) {
    .header-content {
        height: 5rem;
    }
}

.logo {
    height: 1.5rem;
    width: auto;
}

@media (min-width: 641px) {
    .logo {
        height: 1.75rem;
    }
}

.nav-desktop {
    display: none;
}

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.nav-item {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3A3A3A;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: #3A3A3A;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lang-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    transition: all 0.3s ease;
    background: none;
    border: none;
    text-decoration: none;
    cursor: pointer;
}

.lang-btn.active {
    color: #3A3A3A;
}

.lang-btn:not(.active) {
    color: #999999;
}

.lang-btn:not(.active):hover {
    color: #3A3A3A;
}

.lang-separator {
    color: #D7C9A3;
    font-size: 0.75rem;
}

.header-actions {
    display: flex;
}

.mobile-menu-content, .mobile-menu-toggle {
    display: none;
}

@media (max-width: 1024px) {
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 1.25rem;
    height: 1px;
    background-color: #3A3A3A;
    transition: all 0.3s ease;
}

.mobile-menu {
    overflow: hidden;
    transition: max-height 0.5s ease;
    max-height: 0;
}

.mobile-menu.open {
    max-height: 100vh;
}

.mobile-menu-content {
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: var(--bg-color);
    border-top: 1px solid #E0E0E0;
}

.mobile-nav-item {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3A3A3A;
    text-decoration: none;
    text-align: left;
    transition: color 0.3s ease;
}

.mobile-nav-item:hover {
    color: #666666;
}
}

/* Footer 
===================*/

footer {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.footer-content {
    padding: 4rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

@media (min-width: 641px) {
    .footer-content {
        padding: 5rem 0;
    }
}

.footer-logo img {
    height: 2rem;
    width: auto;
}

@media (min-width: 641px) {
    .footer-logo img {
        height: 2.5rem;
    }
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    color: #AAAAAA;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #DDDDDD;
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
}

.copyright {
    font-size: 0.75rem;
    font-weight: 300;
    color: #666666;
}


/* ============= Text Styles ============= */

.text-content {
    display: grid;
}

.text-content p{
    display: inline-block;
    /* font-family: 'Noto Sans JP', 'DM Sans', sans-serif; */
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.9;
    margin-bottom: 1.25rem;
}

.text-content .highlight {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: #3A3A3A;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.text-content .bold {
    font-weight: 700;
}

.text-content .italic {
    font-style: italic;
}

.text-content .underline {
    text-decoration: underline;
}

.text-content .strike {
    text-decoration: line-through;
}

.text-content.text-center {
    text-align: center;
}

.text-content.text-left {
    text-align: left;
}

.text-content.text-right {
    text-align: right;
}

.text-content .section-title-content {
    margin-bottom: 2rem;
}

/* ============= Border Utilities ============= */

.border-top {
    border-top: 1px solid #E0DDD8;
    padding-top: 4rem;
    margin-top: 4rem;
}

/* ============= Figure Styles ============= */

.fig-block {
    width: 100%;
}

.fig-img {
    width: 100%;
    height: auto;
}

.fig-caption {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    color: #888880;
    margin-top: 1rem;
}

.visual-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* ============= Content Row ============= */

.content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.content-row.reverse {
    grid-template-columns: 1fr 1fr;
}

.content-row.content-row--full {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 640px) {
    .content-row {
        display: flex;
        flex-direction: column;
        gap: 4rem;
    }
    
    .content-row.reverse {
        flex-direction: column-reverse;
    }
    .content-row .text-content {
        width: min(100%, 400px);
    }
}

/* ============= Tagline ============= */

.section-tagline {
    margin-top: 5rem;
    padding-top: 2.5rem;
    border-top: 1px solid #E8E5E0;
    text-align: center;
}

.tagline-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: #141410;
    letter-spacing: -0.025em;
}

@media (min-width: 641px) {
    .tagline-text {
        font-size: 1.875rem;
    }
}

/* =====================================================
   Utility
   ===================================================== */

.section-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #888880;
}

.link-underline {
    position: relative;
    text-decoration: none;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
}

.link-underline:hover::after {
    transform: scaleX(1);
}

.br-desktop {
    display: none;
}

@media (min-width: 641px) {
    .br-desktop {
        display: initial;
    }
}

