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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --border-color: #dee2e6;
    --success-color: #27ae60;
    --warning-color: #f39c12;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.main-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.hero-banner {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/1.jpg') center/cover;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.hero-overlay {
    max-width: 800px;
    padding: 2rem;
}

.hero-heading {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtext {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #c0392b;
}

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

.section-heading {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.intro-grid,
.posts-grid,
.testimonials-grid,
.team-grid,
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.intro-card,
.post-card,
.testimonial-card,
.team-member,
.value-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.intro-card:hover,
.post-card:hover,
.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.intro-card h3,
.value-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.post-image img,
.post-thumbnail img,
.team-member img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

.post-content h3 {
    margin: 1rem 0 0.5rem;
}

.post-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.post-content h3 a:hover {
    color: var(--secondary-color);
}

.post-excerpt,
.post-summary {
    color: var(--gray);
    margin: 0.5rem 0;
}

.read-more,
.read-more-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover,
.read-more-link:hover {
    color: var(--primary-color);
}

.testimonial-card {
    background-color: var(--light-bg);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: bold;
    text-align: right;
    color: var(--primary-color);
}

.newsletter-section {
    background-color: var(--light-bg);
}

.newsletter-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.user-message {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    border-left: 4px solid var(--secondary-color);
    text-align: left;
}

.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    line-height: 2;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

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

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 -3px 10px rgba(0,0,0,0.2);
    padding: 1.5rem;
    z-index: 9999;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content h3 {
    margin-bottom: 0.5rem;
}

.cookie-content a {
    color: var(--secondary-color);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.accept-btn {
    background-color: var(--success-color);
    color: var(--white);
}

.accept-btn:hover {
    background-color: #229954;
}

.reject-btn {
    background-color: var(--gray);
    color: var(--white);
}

.reject-btn:hover {
    background-color: #5a6268;
}

.customize-btn {
    background-color: var(--secondary-color);
    color: var(--white);
}

.customize-btn:hover {
    background-color: #2980b9;
}

.page-header {
    background-color: var(--light-bg);
    padding: 3rem 0;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
}

.blog-post-item {
    display: flex;
    gap: 2rem;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.post-thumbnail {
    flex: 0 0 300px;
}

.post-thumbnail img {
    height: 200px;
}

.post-details h2 {
    margin-bottom: 0.5rem;
}

.post-details h2 a {
    color: var(--primary-color);
    text-decoration: none;
}

.post-details h2 a:hover {
    color: var(--secondary-color);
}

.post-meta {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.team-member img {
    height: 300px;
}

.member-role {
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.member-bio {
    color: var(--gray);
}

.about-story {
    background-color: var(--light-bg);
}

.story-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.story-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-info {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

.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 var(--border-color);
    border-radius: 5px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.submit-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #2980b9;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray);
}

.modal-close:hover {
    color: var(--primary-color);
}

.post-hero img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

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

.post-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.post-body {
    line-height: 1.8;
}

.post-body h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.post-body p {
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .primary-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

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

    .hero-subtext {
        font-size: 1rem;
    }

    .intro-grid,
    .posts-grid,
    .testimonials-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .blog-post-item {
        flex-direction: column;
    }

    .post-thumbnail {
        flex: none;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .cookie-buttons {
        flex-direction: column;
    }
}