body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

main {
    margin-bottom: 100px;
}


header {
    background-color: #333;
    color: #fff;
    padding-top: 30px;
    min-height: 70px;
    border-bottom: #0779e4 3px solid;
}

header nav ul {
    list-style: none;
    padding: 0;
}

header nav ul li {
    display: inline;
    margin-right: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
}

section {
    padding: 20px;
    margin: 20px 0;
    border-radius: 40px; /* 角の丸み */
    background-color: #b0d1f0;
}

/* ナビゲーションメニュー全体のスタイル */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* メインメニュー項目のスタイル */
nav ul li {
    display: inline-block;
    position: relative;
}

/* メインメニューのリンクスタイル */
nav ul li a {
    color: #fff;
    padding: 10px;
    display: inline-block;
    text-decoration: none;
}

/* サブメニューのスタイル設定 */
nav ul ul {
    display: block;
    visibility: hidden; /* サブメニューを最初は見えなくする */
    opacity: 0; /* 透明度を0に設定 */
    position: absolute;
    width: 250px;
    top: 100%;
    left: 0;
    background-color: #333;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2); /* サブメニューに影を追加 */
    transition: opacity 0.5s ease, visibility 0.5s; /* トランジション効果を適用 */
    font-size: 0.7em;
}

nav ul ul li {
    display: block;
    margin-right: 0px;
}

nav ul ul li a {
    color: #fff;
    padding: 10px;
    text-decoration: none;
    transition: background-color 0.3s; /* リンクの背景色変更のトランジションを追加 */
}

/* リンクホバー時のスタイル変更 */
nav ul ul li a:hover {
    background-color: #555; /* ホバー時の背景色を変更 */
}

/* ホバー時のサブメニュー表示 */
nav ul li:hover > ul {
    visibility: visible; /* サブメニューを表示 */
    opacity: 1; /* 完全に不透明に */
}
/* プルダウンメニュー */

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

footer a {
    color: #fff;
}
