/* フォントの読み込み */
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;700&display=swap');

/* 全体設定 */
*{
font-family: 'Zen Kaku Gothic New', sans-serif;
color: #262626;
font-size: 12px;
font-weight: 400;
letter-spacing: 0.05em;
line-height: 2.0em;
box-sizing: border-box;
padding: 0;
margin: 0;
list-style-type: none;
text-decoration:none;
}

body{
width: 100vw;
background-color: #F4F4F4;
overflow-x: hidden;
}

.wrap{
max-width: 700px;
min-height: 100vh;
padding: 40px 25px 0;
margin: 50px auto 30px;
}

/* リンク文字 */
a{
transition: 0.1s;
border-bottom: 1px dotted #ED5181;/* ★リンク文字の下線の色 */
}

a:hover{
color: #ED5181;/* ★リンク文字をホバーした時の文字色 */
}

/* 強調文 */
strong{
font-weight: 700;
color: #ED5181;/* ★強調文の文字色 */
}

/* ヘッダーメニュー */
header{
width: 100%;
padding: 20px;
text-align: center
}

.nav{
width: 100%;
display: flex;
justify-content: center;
gap: 15px;
}

.nav li a{
font-family: 'Comfortaa', sans-serif;
font-size: 12px;
transition: 0.2s;
border-bottom: none;
background-color: #FFF;/* ★ヘッダーメニューの背景色 */
padding: 6px 10px;
border-radius: 8px;
color: #ED5181;/* ★ヘッダーメニューの文字色 */
}

.nav li a:hover{
background-color: #ED5181;/* ★ヘッダーメニューをホバーした時の背景色 */
color: #FFF;/* ★ヘッダーメニューをホバーした時の文字色 */
}

/* サイトタイトル */
h1{
font-family: 'Comfortaa', 'Zen Kaku Gothic New', sans-serif;
font-size: 18px;
letter-spacing: 0.25em;
text-align: center;
padding-bottom: 20px;
}

/* 見出し */
h2,h3,h4{
font-family: 'Comfortaa', 'Zen Kaku Gothic New', sans-serif;
}

h2{
font-size: 14px;
padding-bottom: 10px;
text-align: center;
position: relative;
margin-bottom: 30px;
}

h2:after{
position: absolute;
content: "";
width: 5px;
height: 5px;
border-radius: 50%;
background-color: #ED5181;/* ★h2見出しの下の●の色 */
bottom: 0;
left: 50%;
}

h3{
font-size: 12px;
color: #ED5181;/* ★h3見出しの文字色 */
}

/* メインコンテンツ */
main{
width: 100%;
margin: 50px auto 30px;
}

/* セクション（見出し＋本文のセット） */
.section{
width: 100%;
margin: 0 auto 60px;
overflow: hidden;
padding: 40px 12% 60px;
border-radius: 28px;
background: #F4F4F4;
box-shadow:  12px 12px 18px #e0e0e0, -9px -9px 18px #ffffff;
}


/* 入力フォームと送信ボタン */
input[type="text"],input[type="radio"],input[type="button"],input[type="reset"],input[type="submit"],select,textarea{
-webkit-appearance: none;
-moz-appearance: none;
-webkit-box-shadow: none;
appearance: none;
box-shadow: none;
background: #FFF;
padding: 3px 6px;
border-radius: 0;
color: #262626;
border: none;
width: 34em;
height: 8.0em;
border-radius: 10px;
margin-top: 10px;
}

input:focus, textarea:focus{
outline: none;
height: 8.0em;
}

input[type="submit"]{
width: auto;
height: 2.2em;
background-color: #262626;/* ★送信ボタンの背景色 */
color: #FFF;
padding: 0 15px;
cursor: pointer;
transition: 0.2s;
font-family: 'Comfortaa', 'Zen Kaku Gothic New', sans-serif;
}

input[type="submit"]:hover{
background-color: #ED5181;/* ★送信ボタンをホバーした時の背景色 */
}

/* フッター */
footer{
text-align: center;
margin: 0 auto 60px;
font-size: 11px;
}

/* 500px以下のデバイスでの見え方 */
@media screen and (max-width: 500px) {
.wrap{
margin-top: 0;
padding-top: 25px;
}

main{
margin-top: 20px;
}

.section{
padding-left: 9%;
padding-right: 9%;
margin-bottom: 50px;
}

input[type="text"],input[type="radio"],input[type="button"],input[type="reset"],select,textarea{
width: 100%;
margin-bottom: -30px;
}

input[type="submit"]{
font-size: 12px;
}

.code{
margin-bottom: 0;
}
