@charset "UTF-8";

*{
    margin: 0;
    padding: 0;
}

.main-visual {
    height: 44vw;
    background-size: cover;
    background-image: url(../images/smile.jpg);
} 

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
}
header h1 {
    text-align: center;
}
header h1 a {
    font-size: 22px;
    text-decoration: none;
    color: #ffffff;
}
header nav {
    width: 100%;
}
header nav ul {
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style-type: none;
}
header nav ul li {
    width: auto;
}
header nav ul li a {
    font-size: 14px;
    padding: 5px 10px;
    text-decoration: none;
    color: #ffffff;
}

.main-visual {
    height: 50vh;
}

main {
    max-width: 100%;
    width: 90%;
    margin: 0 auto;
    padding-bottom: 60px;
}

h2 {
    text-align: center;
    margin-top: 40px;
    font-size: 1.15rem;
    color: #545454;
}

/* 3列グリッドを1列に上書き（PC版と同じ） */
main .grid-container {
    display: grid;
    grid-template-columns: 1fr; 
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 20px;
}

main .work-item {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-sizing: border-box;
}

main .work-item img {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
}

/* スマホ用：PC版の高さ指定をautoで上書き */
#logo-design .work-item img,
#business-card .work-item img,
#web-banner .work-item img,
#poster-design .work-item img,
#poster-design .work-item:nth-child(5) img,
main .grid-container.cafe-container .work-item img {
    height: auto;
    max-height: 280px;
}

/* カフェサイトのflex指定をスマホ用に上書き */
main .grid-container.cafe-container {
    display: grid; 
}
main p {
    color: #a9a9a9;
}
footer {
    width: 100%;
    padding: 40px 20px;
    background-color: #a9a9a9;
}
.parent {
    display: flex;
    justify-content: center; 
}
.footer-address {
    text-align: center;
    color: #ffffff;
    padding-bottom: 15px;
}
.footer-address .first-line {
    margin-bottom: 15px;
    font-size: 16px;
    color: #ffffff;
  
}
.sns-links {
    text-align: center;
    color: #ffffff;
   
}
.sns-links a {
    font-size: 20px;
    color: #a9a9a9;
   
}
footer p {
    text-align: center;
    color: #ffffff;
    font-style: normal;
}