body {
    font-family: "Arial", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background: linear-gradient(to right, #081D32, #081D32);
    color: rgb(238, 194, 63);
    text-align: center;
    padding: 20px;
    font-size: 2.0em; /* フォントサイズを大きく */
}


nav ul {
    display: flex;
    flex-wrap: wrap; /* 画面が狭いときに折り返し */
    justify-content: center;
    list-style: none;
    padding: 0;
}

/* スマホ向けのレイアウト調整 */
@media screen and (max-width: 768px) {
    .services, .gallery, .labo {
        flex-direction: column; /* スマホでは縦並び */
        align-items: center;
    }

    .service, .gallery-item, .project {
        max-width: 90%; /* 幅を広げてスマホ画面にフィット */
    }

    .service img, .gallery img, .project img {
        max-width: 100%;
    }

    header h1 {
        font-size: 2.2rem; /* スマホ向けにフォントサイズ調整 */
    }
}


nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.hero {
    text-align: center;
    padding: 50px 20px;
    background-color: white;
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: white;
}

.gallery {
    display: flex;
    justify-content: space-around;
    padding: 4%;
/*    justify-content: center; /* 中央寄せ */
/*    gap: 10px; /* 画像間の余白 */
}

.gallery img {
    width: 70%;
    max-width: 500px; 
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

/*ABOUT ME*/
.about {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}


.profile {
    text-align: center;
}


.profile img {
    width: 200px;
    border-radius: 50%;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
}

.history, .private, .skills {
    margin-top: 30px;
}

h3 {
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
    color: #444;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    padding: 5px 0;
}

/*お手伝いサービス*/
.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 40px;
}

.service {
    max-width: 350px;
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

.service img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

.service h2 {
    margin-top: 15px;
    font-size: 1.8rem;
}

.service p {
    margin-top: 10px;
    font-size: 1.5rem;
}

.service ul {
    list-style: none;
    padding: 0;
}

.service li {
    padding: 5px 0;
    font-size: 1.2rem;
}

/*LABO*/
.labo {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.project {
    text-align: center;
    margin-bottom: 40px;
}

.project img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

.project h3 {
    margin-top: 15px;
    font-size: 1.8rem;
    color: #444;
}

.project p {
    font-size: 1.2rem;
    color: #333;
}

/*特定商取引法に基づく表記*/
.legal {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: left;
}

th {
    background: #f4f4f4;
    font-weight: bold;
}

/*SNS*/
.sns {
    text-align: center;
    padding: 50px 20px;
    background-color: white;
}
.sns-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}
.sns-container a {
    text-decoration: none;
}
.sns-icon {
    width: 80px;
    height: 80px;
    transition: transform 0.3s;
}
.sns-icon:hover {
    transform: scale(1.1);
}
