/* デフォルトのスタイル（デスクトップ用） */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 20px 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logo img {
    width: 120px;
}

nav ul {
    list-style-type: none;
    display: flex;
    gap: 20px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

nav ul li a:hover {
    color: #007BFF;
}

.section {
    padding: 60px 40px;
    text-align: center;
}

.about-images img {
    width: 200px;
    height: auto;
    margin: 20px;
}

.service {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    margin: 40px 0;
}

.service img {
    width: 250px;
    height: auto;
    margin-bottom: 20px;
}

.service h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.service p {
    max-width: 600px;
    line-height: 1.6;
}

#portfolio {
    padding: 60px 40px;
    text-align: center;
    background-color: #f9f9f9;
}

#portfolio img {
    max-width: 500px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.footer-logo img {
    width: 80px;
    margin-bottom: 10px;
}

.footer-links {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links li a {
    color: #fff;
    text-decoration: none;
}

.footer-links li a:hover {
    color: #007BFF;
}

/* --- モバイル用のスタイル (768px 以下) --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .logo img {
        width: 100px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .section {
        padding: 40px 20px;
    }

    .about-images img {
        width: 150px;
        margin: 10px;
    }

    .service {
        margin: 30px 0;
    }

    .service img {
        width: 200px;
    }

    .service p {
        max-width: 100%;
        padding: 0 10px;
    }

    #portfolio img {
        max-width: 100%;
        width: auto;
    }

    footer {
        padding: 10px;
    }

    .footer-logo img {
        width: 60px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}
