@charset "utf-8";

* {
    /* フォントファミリー */
    font-family: "メイリオ", Meiryo, "游ゴシック","Yu Gothic",YuGothic,"ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    /* 余白は全て０ */
    margin: 0px; padding: 0px;
    /* ボックスモデルは */
    box-sizing: border-box;
}

/* スクロール */
html,body{ 
    scroll-behavior: smooth; /* リンク移動スムース */
    scroll-padding-top: 160px;/* リンク先に上余白 */
}

body{
    background-color: #4f70c9; /* 背景色 */
}

 /* ヘッダー */
header {
width: 100%; /* 横幅 */
background-color: rgba(255,255,255, 0.7); /* 背景色 */
border: solid 1px red; /* 確認用 */
overflow: hidden; /* headerの高さを出すため */
position: fixed;
top: 0;
}

 /* ヘッダーの中のnav */
header nav {
    max-width: 1000px; /* ページ幅に合わせる */
    margin: 0 auto; /* 左右中央 */   
}

/* メイン */
main {
    margin-top: 160px; /* メニュー上固定の分余白上に作る */
    margin-left: auto; /* 左右中央 */
    margin-right: auto; /* 左右中央 */
    max-width: 1000px; /* ページ幅 */
    background-color: #ffffff; /* 背景色 */
    padding: 30px 20px 500px 20px; /* 要素内余白：上　右　下　左 */
}

h1{
    text-align: center; /* 行揃え */
    margin-bottom: 30px; /* 要素外下余白 */
}



/* ---------------------------------------
ナビゲーション
------------------------------------------ */
nav{
    padding-bottom: 50px; /* 要素内下余白 */
}
.nav ul{
    list-style-type: none; /* リストマーカーなし */
    display: flex; /* フレックスボックス */
    justify-content: center; /* 子を横方向にどう配置するか：中央； */
    gap: 40px; /* 子要素の間 */
}

/* リンク */
.nav ul li a{
    text-decoration: none; /* 下線なし */
    background-color: #928178; /* 背景色 */    
    color: #ffffff; /* 文字色 */
    padding: 20px 10px; /* 要素内余白：上下　右左 */
    border-radius: 5px; /* 角丸 */
}

/* ホバー */
.nav ul li a:hover{
    background-color: #00a381; /* 背景色 */ 
}

/* ---------------------------------------
コンテンツ
------------------------------------------ */

h2{
    background-color: #00a381; /* 背景色 */
    padding: 10px;  /* 要素内余白 */ 
    color: #ffffff; /* 文字色 */
}

main div{
    height: 500px; /* 高さ */
}



/* ---------------------------------------
ページトップ
------------------------------------------ */
.page-top {
	position: fixed; bottom: 10px; right: 10px; /* 位置固定：　下から　右から */
	font-size: 12px; /* フォントサイズ */
}

.page-top a{
    text-decoration: none; /* 下線なし */
    background-color: rgba(146, 129, 120, 0.7); /* 背景色 */    
    color: #ffffff; /* 文字色 */
    padding: 20px 10px; /* 要素内余白：上下　右左 */
    border-radius: 15px 15px 0 0; /* 角丸：左上、右上、右下、左下 */
}

/* ホバー */
.page-top a:hover{
    background-color: rgba(0, 163, 129, 0.7); /* 背景色 */ 
}