:root {
    --primary-color: #b52a21;
    --secondary-color: #eadada;
    --third-color:#f9f5f5;
    --text-color: #333333;
    --background-color: #ffffff;
}

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

body {
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--background-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    padding: 1rem 0;
}

nav .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

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

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

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

/* Main Content */
main {
    margin-top: 80px;
}

section {
    padding: 4rem 0;
}

.hero {
    background-color: var(--secondary-color);
    text-align: center;
    padding: 0;
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.2) 100%);
    z-index: 2;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    letter-spacing: 1px;
}

.hero h2 {
    font-size: 2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.about {
    background-color: var(--background-color);
    padding: 4rem 0;
}

.hinoki-image {
    width: 500px;
    height: auto;
    border-radius: 20px;
    margin: 0 auto 2rem;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hinoki-image:hover {
    transform: translateY(-5px);
}

.highlight {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

/* Contact Form */
.contact {
    background-color: var(--third-color);
}

.contact h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.required {
    color: var(--primary-color);
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #921f18;
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        height: 300px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        height: 300px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hinoki-image {
        width: 100%;
        max-width: 350px;
    }

    section {
        padding: 2rem 0;
    }

    .highlight {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero h2 {
        font-size: 1.25rem;
    }

    .logo img {
        height: 40px;
    }

    input, textarea {
        padding: 0.6rem;
    }

    .submit-btn {
        width: 100%;
        padding: 0.8rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) {
    .hinoki-image:hover {
        transform: none;
    }

    input, textarea, button {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
}

/* Form Success Message */
.success-message {
    background-color: #4CAF50;
    color: white;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    display: none;
}

.success-message.show {
    display: block;
}
