/* CSS Variables */
:root {
    --primary-green: #4CAF50;
    --primary-green-light: #66BB6A;
    --accent-blue: #2196F3;
    --accent-brown: #8D6E63;
    --text-dark: #212121;
    --text-light: #757575;
    --bg-light: #FAFAFA;
    --white: #FFFFFF;
    --shadow-light: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 16px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

html {
    scroll-behavior: smooth;
}

/* Layout Order */
.reference-price-section {
    order: 1;
}

.header {
    order: 2;
}

main {
    order: 3;
}

body > *:not(.reference-price-section):not(.header):not(main) {
    order: 4;
}

/* Header Styles */
.header {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://kicorin.jp/IMG_9053.JPEG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-content {
    max-width: 1000px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.logo-container {
    margin-bottom: 2rem;
}

.company-logo {
    max-width: 280px;
    height: auto;
    filter: brightness(1.2) drop-shadow(3px 3px 8px rgba(0,0,0,0.4)) contrast(1.1);
    transition: var(--transition);
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255,255,255,0.2);
    cursor: pointer;
}

.company-logo:hover {
    transform: scale(1.08) translateY(-3px);
    filter: brightness(1.3) drop-shadow(4px 4px 12px rgba(0,0,0,0.5)) contrast(1.2);
    border-color: rgba(255,255,255,0.4);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    color: #E8F5E8;
}

/* Section Styles */
.section {
    padding: 5rem 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section:nth-child(even) {
    background: var(--bg-light);
}

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

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.text-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.text-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.feature-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.icon-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-green);
    font-weight: 500;
}

.image-content {
    position: relative;
}

.section-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

/* Alternating layout */
.section:nth-child(odd) .section-content {
    grid-template-columns: 1fr 1fr;
}

.section:nth-child(even) .section-content {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.section:nth-child(even) .text-content,
.section:nth-child(even) .image-content {
    direction: ltr;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-3 {
    margin-bottom: 2rem;
}

.highlight {
    color: var(--primary-green);
    font-weight: 700;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}