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

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

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

body > header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    padding: 1rem 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: #667eea;
    transition: color 0.3s;
    flex-shrink: 0;
}

.logo:hover .logo-icon {
    color: #764ba2;
}

.logo-text {
    color: #333;
    font-weight: 600;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    flex-wrap: nowrap;
}

nav a {
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    font-size: 1rem;
}

nav select {
    padding: 0.4rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
}

.language-switcher {
    flex-shrink: 0;
}

.language-switcher form {
    margin: 0;
}

.lang-btn {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.lang-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

@media (max-width: 768px) {
    nav .container {
        padding: 0 10px;
    }

    nav ul {
        gap: 0.5rem;
        font-size: 0.85rem;
    }

    nav a {
        font-size: 0.85rem;
    }

    .logo {
        font-size: 1rem;
        flex-shrink: 0;
        gap: 0.4rem;
    }

    .logo-icon {
        width: 24px;
        height: 24px;
    }

    .lang-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero .response-time {
    font-size: 1rem;
    margin-top: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.services, .featured-posts, .posts, .inquiry-form, .post-detail {
    padding: 4rem 0;
}

.services h2, .featured-posts h2, .posts h1, .inquiry-form h1, .post-detail h1 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.inquiry-form p {
    text-align: center;
    margin-bottom: 2rem;
}

.service-grid, .post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-item {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.service-item h3 {
    margin-bottom: 1rem;
    color: #667eea;
}

.service-value {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.service-link {
    display: inline-block;
    margin-top: 1rem;
    color: #667eea;
    text-decoration: none;
    font-size: 0.95rem;
}

.service-link:hover {
    color: #764ba2;
}

.post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.post-card h3 {
    padding: 1rem;
    font-size: 1.2rem;
}

.post-card p {
    padding: 0 1rem 1rem;
    color: #666;
}

.post-card .meta {
    padding: 0 1rem 1rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #999;
}

.pagination {
    text-align: center;
    margin-top: 2rem;
}

.pagination a, .pagination span {
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
}

.post-detail {
    padding: 2.5rem 0;
}

.post-detail header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.post-detail header h1 {
    margin-bottom: 0.75rem;
    font-size: 1.8rem;
}

.post-detail header .meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #999;
}

.post-detail .cover {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.post-detail .content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-detail .content p {
    margin-bottom: 1em;
}

.post-detail .content p:last-child {
    margin-bottom: 0;
}

.post-detail .content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

.post-images {
    margin-top: 2rem;
}

.post-images img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.tags {
    margin-top: 2rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.post-detail header .tags {
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.tag {
    padding: 0.3rem 0.8rem;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 0.9rem;
}

.inquiry-form form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #ccc;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #fff;
}

.type-filter {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.45rem 1.2rem;
    border-radius: 20px;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
    font-weight: 500;
}