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

body {
    font-family: 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
    color: #222;
    scroll-behavior: smooth;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: #ff925300; 
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    z-index: 1000;
}

.MAOMAO {
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 15px;
    text-decoration: none;
}

header nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

header nav a:hover {
    color: #ff6f00;
}

/* Works１*/
.section#works { 
    background: #ffefe8; 
    padding: 100px 20px; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; /* 子要素を縦並べ */
    align-items: center; /* 子要素を水平方向（主軸と垂直方向）に中央揃え */
    text-align: center; /* テキストを中央揃え */
    padding-top: 100px; /* ヘッダー分上に余白 */
}

.title {
    margin-bottom: 40px; 
    color: #5a2113; 
    text-align: center; 
}

/* 小麦工房パナシェ レジ待機画面 */
.title h3 {
    font-size: 1.rem;
    margin-bottom: 10px;
    color: #5a2113;
    max-width: 800px; /* 広がりすぎないように */
    margin-left: auto; 
    margin-right: auto;
}

/* クライアントワーク */
.box2 {
    font-family: "游ゴシック体", "游ゴシック", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    padding: 0.5em 1em;
    font-weight: lighter;
    color: #5a2113;
    background: #ffd147;
    border: solid 1px #5a2113;
    border-radius: 50px;
    margin-bottom: 30px; /* brタグの代わり */
    display: inline-block; 
}

.box2 p {
    margin: 0;
    padding: 0;
    
}

 
.gallery {
    margin-bottom: 40px; /* brタグの代わり */
    max-width: 1000px; /* 画像の最大幅 */
    width: 100%; /* 画像が画面幅に合わせて広がるように */
    display: flex; 
    justify-content: center; /* 画像中央揃え */
    padding: 0 20px;
    box-sizing: border-box;
}

.work-card {
    max-width: 80%; /* 画像の最大幅 */
    display: flex; 
    display: block;
    border-radius: 8px; 
}

.work-card img {
    max-width: 80%; /* 画像サイズ */
    height: auto; 
    display: block;
    border-radius: 8px;
    margin: 0 auto; /* 画像を中央に配置 */
}

.work-card2 {
    display: grid; 
    grid-template-columns: repeat(2, 1fr);
    gap: 20px; 
    width: 100%; 
    justify-items: center;
    align-items: center; 
}

.work-card2 img {
    width: 100%; 
    height: auto; 
    display: block; 
    border-radius: 8px; 
}

.work-card3 img {
    max-width: 80%; /* 画像の最大幅 */
    height: auto; /* 高さは自動調整 */
    border-radius: 8px; /* 角を丸くする */
}

.work-card4 img {
    max-width: 40%; /* 画像の最大幅 */
    height: auto; /* 高さは自動調整 */
    border-radius: 8px; /* 角を丸くする */
}

.work-card5 img {
    max-width: 80%; /* 画像の最大幅 */
    height: auto; /* 高さは自動調整 */
    border-radius: 8px; /* 角を丸くする */
}

.work-card6 img {
    max-width: 60%; /* 画像の最大幅 */
    height: auto; /* 高さは自動調整 */
    border-radius: 8px; /* 角を丸くする */
}

/* 詳細情報 */
.title2.futozi {
    max-width: 600px; /* 最大幅 */
    margin-left: auto; 
    margin-right: auto;
    text-align: left; 
    padding: 20px; 
    color: #5a2113;
}

.title2.futozi h4 {
    font-size: 1.rem;
    margin-top: 20px; /* 上に余白 */
    margin-bottom: 5px; /* 下に余白 */
}

.title2.futozi p {
    margin-bottom: 15px; /* 各段落の下に余白 */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .title h2 {
        font-size: 2rem;
    }

    .title2.futozi h4 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .title h2 {
        font-size: 1.5rem;
    }

    .title2.futozi h4 {
        font-size: 1.1rem;
    }

    .box2 {
        padding: 0.4em 0.8em;
        font-size: 0.9em;
    }
}    

    