/* Reset and base styles */
:root {
    --primary-color: #FF6B35;
    --secondary-color: #2B9348;
    --text-color: #1A1A1A;
    --light-bg: #FDFAF6;
    --white: #ffffff;
    --max-width: 1200px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    --accent-bg: #FFF8F3;
    --accent-border: #FFE4B5;
    --success-color: #2B9348;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'M PLUS 1p', 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 5rem 0;
}

.section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
                url('./images/hero-bg.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color);
    padding: 0 20px;
    margin-top: 60px;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    text-align:left;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.about-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--accent-border);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-border);
}

.card-header i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.card-header h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin: 0;
}

.card-content ul {
    list-style: none;
}

.card-content li {
    margin-bottom: 1.2rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-border);
}

.service-name,
.area-name {
    display: block;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.service-name i,
.area-name i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--accent-border);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.service-card i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.service-link:hover {
    color: var(--secondary-color);
}

/* Wood Sales Section */
.wood-sales,
.firewood-sales,
.company-info {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.wood-sales-title,
.firewood-title,
.company-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-border);
}

.wood-sales-title i,
.firewood-title i,
.company-title i {
    color: var(--primary-color);
}

.stock-info {
    margin: 1rem 0 2rem;
    text-align: right;
}

.wood-table,
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.wood-table th,
.price-table th {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    text-align: center;
}

.wood-table td,
.price-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--accent-border);
    text-align: center;
    color: var(--text-color);
}

.wood-table tr:nth-child(even),
.price-table tr:nth-child(even) {
    background: var(--accent-bg);
}

/* Firewood Section */
.premium-notice {
    background: var(--accent-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 1.1rem;
    color: var(--text-color);
}

.premium-notice i {
    color: var(--primary-color);
}

.flyer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.flyer-link:hover {
    background-color: var(--secondary-color);
}

.flyer-link i {
    color: var(--white);
}

.notes {
    background: var(--accent-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.notes h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notes ul {
    list-style: none;
}

.notes li {
    margin-bottom: 0.8rem;
    padding-left: 1.2rem;
    position: relative;
    color: var(--text-color);
}

.notes li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Company Info Section */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--accent-border);
}

.info-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--accent-border);
}

.info-card h3 i {
    color: var(--primary-color);
}

.info-card a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.info-card a:hover {
    color: var(--primary-color);
}

.branch-list {
    list-style: none;
}

.branch-list li {
    margin-bottom: 1.2rem;
    padding-left: 0.5rem;
}

.branch-list h4 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.website-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    background: var(--accent-bg);
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.website-link:hover {
    background: var(--accent-border);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--accent-border);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
    }

    .menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--primary-color);
        transition: all 0.3s ease;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .about-cards,
    .services-grid,
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Hide tables on mobile */
    .wood-table,
    .price-table {
        display: none;
    }

    /* Adjust wood sales section for mobile */
    .wood-sales,
    .firewood-sales {
        padding: 1.5rem;
    }

    .wood-sales-title,
    .firewood-title {
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .stock-info {
        margin: 1rem 0;
        text-align: center;
    }

    /* Adjust premium notice for mobile */
    .premium-notice {
        padding: 1.2rem;
        gap: 1rem;
        flex-direction: column;
        text-align: center;
    }

    .premium-notice i {
        font-size: 1.5rem;
    }

    .flyer-link {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
    }

    /* Adjust notes section for mobile */
    .notes {
        padding: 1.2rem;
    }

    .notes h4 {
        font-size: 1.1rem;
    }

    .notes ul {
        padding-left: 0.5rem;
    }

    /* Adjust company info section for mobile */
    .info-card {
        padding: 1.2rem;
    }

    .branch-list li {
        padding-left: 0;
    }

    /* Footer adjustments for mobile */
    .footer-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .copyright {
        font-size: 0.9rem;
    }
}

/* Additional breakpoint for very small devices */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section h2 {
        font-size: 1.8rem;
    }
}