/* 重置和基礎樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 日式傳統色彩系統 */
    --primary-gold: #ffc107;
    --secondary-gold: #ff8f00;
    --accent-red: #dc3545;
    --accent-green: #28a745;
    --dark-brown: #8b4513;
    --light-brown: #d2b48c;
    --warm-white: #fefefe;
    --soft-gray: #f8f9fa;
    --text-dark: #2c2c2c;
    --text-medium: #555;
    --text-light: #777;
    
    /* 漸變色彩 */
    --gradient-gold: linear-gradient(135deg, #ffc107, #ff8f00);
    --gradient-warm: linear-gradient(135deg, #fefefe, #f8f9fa);
    --gradient-dark: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    
    /* 陰影效果 */
    --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-gold: 0 5px 15px rgba(255, 193, 7, 0.3);
}

body {
    font-family: 'Noto Sans JP', 'Noto Serif JP', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--warm-white);
    overflow-x: hidden;
}

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

/* 主視覺區域樣式 */
.hero-section {
    position: relative;
    height: 100vh;
    background: var(--gradient-dark);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 193, 7, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(220, 53, 69, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(40, 167, 69, 0.1) 0%, transparent 50%),
        /* 日式紋理背景 */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 193, 7, 0.03) 2px,
            rgba(255, 193, 7, 0.03) 4px
        );
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.tanuki-logo {
    margin-bottom: 30px;
}

.logo-circle {
    width: 120px;
    height: 120px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: var(--shadow-gold);
    animation: logoFloat 3s ease-in-out infinite;
    position: relative;
}

.logo-circle::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--gradient-gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.1); opacity: 0.1; }
}

.logo-circle i {
    font-size: 50px;
    color: white;
}

.logo-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffc107, #ff8f00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(255, 193, 7, 0.3);
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: #ffc107;
    font-family: 'Noto Serif JP', serif;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #e0e0e0;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-gold);
    color: white;
    box-shadow: var(--shadow-gold);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--primary-gold);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-gold);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    width: 100%;
}

.btn-secondary:hover {
    color: var(--text-dark);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid #ffc107;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
    40% { transform: rotate(45deg) translateY(-10px); }
    60% { transform: rotate(45deg) translateY(-5px); }
}

/* 天上山號展示區域樣式 */
.truck-showcase-section {
    padding: 100px 0;
    background: var(--gradient-warm);
    position: relative;
    overflow: hidden;
}

.truck-showcase-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 193, 7, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(220, 53, 69, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.truck-showcase-section::after {
    content: 'たぬき';
    position: absolute;
    top: 50px;
    right: 50px;
    font-size: 8rem;
    color: rgba(255, 193, 7, 0.05);
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
    pointer-events: none;
    animation: floatText 20s ease-in-out infinite;
}

@keyframes floatText {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    font-family: 'Noto Serif JP', serif;
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.title-decoration .line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffc107, transparent);
}

.title-decoration i {
    color: #ffc107;
    font-size: 1.5rem;
}

.truck-showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.truck-image-gallery {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.main-truck-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.truck-main-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-truck-image:hover .truck-main-img {
    transform: scale(1.05);
}

.truck-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px 20px 20px;
    text-align: center;
}

.truck-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: #ffc107;
}

.truck-overlay p {
    font-size: 1rem;
    opacity: 0.9;
    font-family: 'Noto Serif JP', serif;
}

.truck-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.detail-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-5px);
}

.detail-item i {
    font-size: 2rem;
    color: #ffc107;
    margin-bottom: 15px;
}

.detail-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #333;
}

.detail-item p {
    font-size: 0.9rem;
    color: #666;
    font-family: 'Noto Serif JP', serif;
}

.truck-description h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
    font-family: 'Noto Serif JP', serif;
}

.truck-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.truck-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature i {
    color: #ffc107;
    font-size: 1.2rem;
}

.feature span {
    font-size: 1rem;
    color: #555;
}

/* 關於我們區域樣式 */
.about-section {
    padding: 100px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: #e9ecef;
}

.feature-item i {
    font-size: 2.5rem;
    color: #ffc107;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* 菜單區域樣式 */
.menu-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* 圖片精選預覽 */
.gallery-preview {
    padding: 80px 0;
    background: var(--warm-white);
    position: relative;
}

.gallery-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 193, 7, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(220, 53, 69, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 1;
}

.gallery-item {
    overflow: hidden;
    border-radius: 20px;
    background: var(--warm-white);
    box-shadow: var(--shadow-medium);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 0.1;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-strong);
}

.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 0;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item figcaption {
    padding: 16px 18px;
    font-size: 1rem;
    color: var(--text-medium);
    font-weight: 500;
    position: relative;
    z-index: 2;
    background: var(--warm-white);
    transition: color 0.3s ease;
}

.gallery-item:hover figcaption {
    color: var(--text-dark);
}

.menu-item {
    background: var(--warm-white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-medium);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 193, 7, 0.1);
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.1), transparent);
    transition: left 0.6s ease;
}

.menu-item:hover::before {
    left: 100%;
}

.menu-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-strong);
    border-color: var(--primary-gold);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.menu-item-header h3 {
    font-size: 1.5rem;
    color: #333;
    font-family: 'Noto Serif JP', serif;
}

.menu-tag {
    background: linear-gradient(135deg, #ffc107, #ff8f00);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.menu-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    font-family: 'Noto Serif JP', serif;
}

.menu-ingredients {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ingredient {
    background: #f8f9fa;
    color: #666;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid #e9ecef;
}

/* 顧客評論區域樣式 */
.customer-reviews {
    padding: 100px 0;
    background: white;
}

.review-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 聯絡資訊區域樣式 */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-item i {
    font-size: 2rem;
    color: #ffc107;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #333;
}

.contact-item p {
    color: #666;
}

.contact-qr {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-qr img {
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
}

.contact-qr p {
    color: #333;
    margin-bottom: 5px;
}

.qr-subtitle {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* 頁腳樣式 */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 50px 0;
    text-align: center;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-logo i {
    color: #ffc107;
    font-size: 2rem;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
}

.footer p {
    margin-bottom: 20px;
    color: #ccc;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    color: #ccc;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #ffc107;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .truck-showcase-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .truck-details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}
