body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f6f2ef;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


#result {
    margin-top: 20px;
    margin-bottom: 40px; /* 余白を追加 */

}

img {
    width: 60%;
    max-width: 1000px;
}


/* ヘッダー画像（統一） */
header img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    margin-top: 50px; /* `top-header` の高さ + 余白分 */
}



/* フォームコンテナ */
.form-container {
    max-width: 700px;  /* ← PCでの最大幅を広げたまま */
    width: 80%;
    margin: 30px auto;
    padding: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* フォームグループ（中央揃え） */
.form-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

/* ラベル（中央揃え） */
.form-group label {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
    text-align: center;
    width: 100%;
}

/* 入力欄（中央揃え） */
.form-group input,
.form-group textarea {
    width: 90%;  /* ← 入力欄を少し狭めてバランスをとる */
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* ボタン */
button {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
    width: 90%;
}

button:hover {
    background-color: #e65c00;
}





/* ホームに戻るボタン */
.midi-button {
    display: inline-block;
    padding: 12px 25px;
    font-size: 16px;  /* 文字を少し小さく */
    font-weight: 400; /* フォントを細く（デフォルトの太さ） */
    color: white;
    background: #ff6600;  /* 単色のオレンジ */
    border: none;
    border-radius: 8px;  /* 少し角を丸める */
    text-decoration: none;
    transition: background 0.3s ease-in-out;
}

/* ホバー時の変化（影なし） */
.midi-button:hover {
    background: #e65c00;  /* 少し濃いオレンジに */
}











/* フッター（統一） */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    margin-top: auto;
}

.footer-links {
    margin-bottom: 5px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
    transition: 0.3s;
}

.footer-links a:hover {
    text-decoration: underline;
    color: #ff6600;
}

.copyright {
    margin: 0;
    font-size: 12px;
}





/* 新しいヘッダー（フッターと同じデザイン） */
.top-header {
    position: fixed;  /* 画面の上部に固定 */
    top: 0;           /* 上端に配置 */
    left: 0;          /* 左端に配置 */
    width: 100%;      /* 横幅を100%にする */
    background-color: #333;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 20px;
    font-size: 14px;
    z-index: 1000;    /* 他の要素より前面に表示 */
}


/* 左側のロゴ＋サイト名 */
.header-left {
    display: flex;
    align-items: center;
}

/* ロゴとテキストを横並び */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none; /* リンクの下線を消す */
    color: white; /* テキストを白に */
}

/* ロゴ画像 */
.logo-container img {
    height: 30px; /* ロゴの高さ（調整可） */
    width: auto;
    display: block;
}

/* サイト名（ロゴの隣のテキスト） */
.site-title {
    font-size: 16px;
    font-weight: 400;
    margin-left: 10px; /* ロゴとの間隔 */
}

/* 右側のメニューボタン */
.header-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* ボタンを右端に寄せすぎない */
    margin-right: 10px; /* 右側に余白を確保 */
}

/* メニューボタン */
.menu-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px; /* ボタン内の余白を調整 */
    margin-right: 20px; /* 右側の余白を追加 */
    transition: 0.3s;
    display: flex; /* アイコンを中央揃え */
    align-items: center;
    justify-content: center;

}

/* 「≡」の部分だけオレンジに変更 */
.menu-button span {
    display: inline-block;
}



/* ホバー時に「≡」だけをオレンジにする */
.menu-button span:hover {
    color: #ff6600;
}




/* ドロップダウンメニュー */
.dropdown-menu {
    display: none;
    position: absolute;
    right: 20px; /* 右端ギリギリではなく、少しだけ余白を確保 */
    top: 35px;
    min-width: 250px; /* メニューの幅を適切に確保 */
    background: white;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    overflow: hidden;
    z-index: 1000;
}

/* メニューのリンク */
.dropdown-menu a {
    display: block;
    padding: 12px 15px; /*  内側の余白を広げて、ゆとりを持たせる */
    font-size: 14px; /*  文字サイズを少し大きく */
    text-decoration: none;
    color: #333;
    transition: 0.3s;
    text-align: left; /* 左揃えに変更 */
}

.dropdown-menu a:hover {
    background: #ff6600;
    color: white;
}









/* スマホ対応 */
@media (max-width: 600px) {
    .form-container {
        width: 80%;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;  /* スマホでは幅いっぱい */
    }

    button {
        width: 100%;
        font-size: 18px;
    }



    footer {
        padding: 6px 0;
        font-size: 12px;
    }



}