body {
    margin: 0;
    font-family: sans-serif;
    background: #ffffff;
    padding-top:0;
}

/* ヘッダー（ロゴ部分） */
header {
    position: fixed;     /* 画面に固定 */
    top:0;           /* 下に配置 */
    left: 0;             /* 左端に配置 */
    width: 100%;         /* 横幅いっぱい */
    background: #fff;    /* 背景は白 */
    text-align: center;  /* 中央揃え */
    padding: 15px 0 40px 0;     /* 上下の余白 */
    z-index: 1000;       /* 他の要素より前に表示 */
}

/* ヘッダー全体 */
header {
    position: fixed;
    width: 100%;
    padding: 40px 0 36px 0;
    background: white;
    text-align: center;
    z-index: 10;
}

/* ロゴは中央のまま */
.header-logo {
    width: 120px;
}

.logo {
    width: 160px;      /* ロゴの大きさはここで調整 */
    height: auto;
}

/* スマホ用 */
@media screen and (max-width: 600px) {
    header {
        padding: 100px 0 50px 0;  /* 上下の余白を小さく */
    }

    .logo {
        width: 160px;  /* スマホでは少し小さく表示 */
    }
}

/* メイン画像 */
main {
    margin-top: 40px; 
    text-align: center;
    background: white;    /* 背景は白 */
}

.main-image {
    height: auto;
    width: 100%;        /* 画面の50%の幅で表示（スマホでも綺麗） */
    max-width: 700px;
    display: block;
    margin: 0 auto;
    margin-bottom: 5px;
}

/* スマホ用 */
@media screen and (max-width: 600px) {
    .main-image {
        width:90%;  /* 画面幅に合わせて縮小 */
        padding: 150px 0 20px 0;  /* 上下の余白を小さく */
        margin-bottom: 30px;
    }
}

/* workボタンを中央に */
.work-button {
  display: block;
  width: 80px;         /* ボタン画像の幅 */
  margin: 0 auto;       /* 中央配置 */
  margin-bottom: 30px;
  transition: none;
}

/* Work画像をホバーで切り替え */
.work-button img {
  width: 50%;
  display: block;
  margin: 0 auto;  
}

/* ホバー時に画像を切り替える */
.work-button img:hover {
  content: url('work-hover.jpg'); /* hover用画像 */
}

/* スマホ対応 */
@media (max-width: 500px) {
.work-button img {
  width: 50%;
  display: block;
  margin: 0 auto; 
}
}

/* Contactボタンを中央に */
.contact-button {
  display: block;
  width: 95px;         /* ボタン画像の幅 */
  margin: 0 auto;       /* 中央配置 */
  margin-bottom:40px;
}

/* Contact画像をホバーで切り替え */
.contact-button img {
  width: 95%;
  display: block;
  margin: 0 auto;
}

/* ホバー時に画像を切り替える */
.contact-button img:hover {
  content: url('contact-hover.jpg'); /* hover用画像 */
}

/* スマホ対応 */
@media (max-width: 500px) {
.contact-button img {
  width: 95%;
  display: block;
  margin: 0 auto; 
}

}

footer {
    position: fixed;     /* 画面に固定 */
    bottom:0;           /* 下に配置 */
    left: 0;             /* 左端に配置 */
    width: 100%;         /* 横幅いっぱい */
    background: #fff;    /* 背景は白 */
    text-align: center;  /* 中央揃え */
    padding: 15px 0 15px 0;     /* 上下の余白 */
    z-index: 1000;       /* 他の要素より前に表示 */
}

footer::before {
    content: "";
    display: block;
    width: 100%;
    height: 50px; /* 画像の高さに合わせる */
    background-image: url('footer-hana.png'); /* 上に表示したい画像 */
    background-repeat: repeat-x; /* 横に繰り返す */
    background-size: auto 50px;  /* 高さを50pxに合わせて横は自動 */
    position: absolute;
    top: -100px; /* フッターの上に配置 */
    top: -50px;
    left: 0;
}

.footer-logo {
    width: 100px;        /* PC用サイズ */
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

@media screen and (min-width: 601px) {
    footer {
        padding: 15px 0 25px 0;
    }

    footer::before {
        height: 30px;
        background-size: auto 50px;
        top: -30px;
    }
}

/* スマホ用 */
@media screen and (max-width: 600px) {
    footer {
        padding: 15px 0 50px 0;
    }

    footer::before {
        height: 30px;
        background-size: auto 50px;
        top: -30px;
    }

    .footer-logo {
        width: 80px;
    }
}

