/*
Theme Name: MountBros Theme
Theme URI: http://example.com/mountbros-theme
Author: Antigravity
Author URI: http://example.com
Description: Custom theme for MountBros
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-background, threaded-comments
Text Domain: mountbros-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Zen+Kaku+Gothic+New:wght@300;400;500;700&family=Noto+Serif+JP:wght@400;600&display=swap');

:root {
    /* Color Palette: Japanese Modern (Morning Bonfire) */
    --color-bg: #F9F9F7;
    /* Warm Japanese Paper White (Kinari) */
    --color-text: #333333;
    /* Soft Black (Sumi) */
    --color-text-light: #666666;
    --color-accent: #8C7B70;
    /* Earthy Brown */
    --color-primary: #B35939;
    /* Muted Fire Orange */
    --color-border: #E0E0E0;
    --color-white: #FFFFFF;
    --color-surface: #FFFFFF;

    /* Typography */
    --font-main: 'Zen Kaku Gothic New', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --font-serif: 'Noto Serif JP', serif;
    /* For Japanese atmosphere */

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    /* Reduced from 5rem */
    --spacing-xl: 5rem;
    /* Reduced from 8rem */

    /* Layout */
    --container-width: 1100px;
    --container-small: 800px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    /* Ensure no horizontal scroll at root level */
    width: 100%;
    max-width: 100%;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.8;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Global reset for images and overflow protection */
img,
video,
iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent long words from breaking layout */
p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
a,
li,
div {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.small-container {
    max-width: var(--container-small);
}

.section {
    padding: var(--spacing-xl) 0;
    width: 100%;
    /* Ensure sections don't overflow */
    overflow: hidden;
    /* Clip content within sections */
}

.text-center {
    text-align: center;
}

.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.2em;
}

.nowrap {
    display: inline-block;
    white-space: nowrap;
}

.inline-block {
    display: inline-block;
}

/* Typography Utilities */
.section-header {
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-top: 1rem;
    /* Reduced padding top */
}

/* Japanese Modern Header Style */
.section-subtitle {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--color-accent);
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    position: relative;
    /* Vertical writing for "Atmosphere" */
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    height: auto;
    /* Adjust for vertical text height */
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-family: var(--font-serif);
    /* Serif for elegance */
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
}

.section-desc {
    margin-top: 2rem;
    color: var(--color-text-light);
    font-size: 1rem;
    font-family: var(--font-main);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: #2e3035;
    /* Dark background matching logo */
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    height: 100%;
    /* Ensure content stays within 80px */
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-img,
.custom-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    max-width: 200px;
}

/* About Image Styles */
.about-image-container {
    margin-top: 4rem;
    text-align: center;
}

.about-image {
    max-width: 100%;
    position: relative;
    border-radius: 2px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    /* Subtle premium shadow */
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: inline-block;
}

.feature-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s cubic-bezier(0.2, 1, 0.3, 1);
    filter: brightness(1.2);
    /* Brighten the image significantly */
}

.about-image:hover .feature-image {
    transform: scale(1.02);
}



.nav-list {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-list a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-main);
}

.nav-list .en {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #FFFFFF;
}

.nav-list .jp {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    /* Darker strictly for readability */
    margin-top: 2px;
    font-weight: 500;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 1px;
    background-color: #FFFFFF;
    display: block;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 700px;
    /* Ensure enough height for vertical text on PC */
    width: 100%;
    overflow: hidden;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: brightness(0.9);
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 5% 5% 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-catch {
    font-family: var(--font-serif);
    /* Serif for catch copy */
    font-size: 3.2rem;
    font-weight: 600;
    color: #FFF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-sub {
    color: #FFF;
    text-align: right;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-sub p:first-child {
    font-family: var(--font-main);
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.hero-sub p:last-child {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* About Section (Dark & Dramatic) */
.about {
    position: relative;
    background-image: url('assets/images/39CBC926-CE9E-4894-9589-15FFBB94D82B.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #2e3035;
    /* Fallback color */
    color: #FFFFFF;
    padding: var(--spacing-xl) 0;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Slightly lighter overlay for visibility */
    z-index: 1;
}

.about .container {
    position: relative;
    z-index: 2;
}

.about .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
}

.about .section-title {
    color: #FFFFFF;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 1.5rem;
    text-align: justify;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Products Section (Light & Clean) */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.product-item {
    background-color: var(--color-white);
    border-radius: 4px;
    /* Sharper corners for modern feel */
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.product-img {
    aspect-ratio: 1;
    overflow: hidden;
    background-color: #f0f0f0;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-item:hover .product-img img {
    transform: scale(1.05);
}

.product-detail {
    padding: 2.5rem 2rem;
    text-align: center;
    /* Center align for elegance */
}

.product-detail h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--color-text);
}

.badge-new {
    font-size: 0.6rem;
    background-color: var(--color-primary);
    color: #fff;
    padding: 2px 6px;
    border-radius: 2px;
    font-weight: normal;
    font-family: var(--font-body);
}

.product-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.btn-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-text);
    padding-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-text:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    opacity: 1;
}

/* Contact Section */
.contact {
    padding-top: 0 !important;
    /* Remove top padding to reduce whitespace */
}

.contact-form {
    background-color: var(--color-white);
    padding: 4rem;
    border-radius: 4px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.03);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    color: var(--color-text);
    font-family: var(--font-serif);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 2px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #FAFAFA;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(140, 123, 112, 0.1);
}

.btn-submit {
    display: inline-block;
    background-color: var(--color-text);
    color: #fff;
    padding: 1.2rem 4rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    font-family: var(--font-main);
    letter-spacing: 0.1em;
}

.btn-submit:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: #EAEAEA;
    padding: 5rem 0 3rem;
    color: var(--color-text);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.footer-brand h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-text);
}

.footer-copyright {
    margin-top: 2rem;
    font-size: 0.75rem;
    color: var(--color-text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .about {
        background-attachment: scroll;
        /* Fix for mobile background disappearance */
        background-size: contain;
        background-position: top center;
        background-repeat: no-repeat;
    }

    .header {
        background-color: #2e3035;
    }

    .hero {
        height: 55vh;
        min-height: 400px;
        padding-top: 80px;
        /* Push content down to start below header */
        box-sizing: border-box;
    }

    .hero-catch {
        font-size: 1.8rem;
        writing-mode: horizontal-tb;
        margin-bottom: 0.5rem;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        height: 100%;
        padding-bottom: 0;
    }

    .hero-sub {
        text-align: center;
    }

    .section-title {
        font-size: 1.3rem;
        /* Reduced to ensure long lines don't wrap */
        line-height: 1.6;
    }

    .section-subtitle {
        writing-mode: horizontal-tb;
        /* Revert to horizontal on mobile if needed, or keep vertical */
        height: auto;
        margin-bottom: 1rem;
    }

    .nowrap {
        white-space: normal;
        /* Allow wrapping on mobile to prevent overflow */
    }

    .contact-form {
        padding: 2rem;
    }

    .hero-image-container {
        top: 80px;
        /* Offset to show top of image below fixed header */
        height: calc(100% - 80px);
    }

    .hero-image-container img {
        object-position: center top !important;
    }

    .nav-list a {
        white-space: nowrap;
        /* Prevent text wrapping */
    }

    .nav-list a,
    .nav-list .en,
    .nav-list .jp {
        color: #FFFFFF !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        /* Improve readability */
    }

    .nav-list .jp {
        color: rgba(255, 255, 255, 0.8) !important;
    }

    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}