/* style.css - はじめから見直したCSS（スマホ対応・シンプル構成） */

@charset "UTF-8";

/* ========== ベース設定 ========== */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "メイリオ", Meiryo, sans-serif;
    background-color: #fff;
    color: #000;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border: none;
}

ul,
li {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ========== レイアウト ========== */
#wrapper {
    width: 100%;
    max-width: 1000px;

    min-height: 100%;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
}

.header {
    text-align: center;
    padding: 30px 0 10px;
}

.header h1 img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.head_bar ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
}

.head_bar li a {
    display: block;
    width: 80px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -9999px;
}

/* 各メニューごとの背景画像（適宜パスを変更） */
.head_news a {
    background-image: url("../img/head_news_2.png");
}
.head_profile a {
    background-image: url("../img/head_profile_2.png");
}
.head_works a {
    background-image: url("../img/head_works_2.png");
}
.head_gallery a {
    background-image: url("../img/head_gallery_2.png");
}
.head_contact a {
    background-image: url("../img/head_contact_2.png");
}

/* ========== トップ画像 ========== */
#top img {
    width: 100%;
    height: auto;
    margin: 0 auto;
}

main {
    flex: 1;
    padding: 40px 20px;
}

#contact_text {
    text-align: center;
    line-height: normal;
}

/* ========== フッター ========== */
#footer {
    margin: 0 auto;
    text-align: center;
    font-size: 10px;
    line-height: 1.5;
    padding: 20px 20px;
}

/* ========== WORKS（共通） ========== */

/* ========== WORKS（スマホ対応） ========== */
@media screen and (max-width: 768px) {
    .works-list {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin: 0 auto;
    }

    .work-item img {
        width: 70%;
    }

    #works h2 {
        font-size: 18px;
        margin: 16px 0;
    }
}
