html,body,div,span,iframe,h1,h2,h3,h4,p,pre,del,em,img,b,i,dl,dt,dd,ol,ul,li,form,table,tbody,tr,th,td,article,aside,footer,header,nav,section{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;box-sizing:border-box}
article,aside,footer,header,nav,section{display:block}
body{line-height:1;overflow-wrap:break-word;word-wrap:break-word}
input,textarea,select{font-family:inherit;font-size:inherit;color:inherit;vertical-align:middle;box-sizing:border-box}
a{margin:0;padding:0;text-decoration:none;outline:none;font-size:100%;vertical-align:baseline;background:transparent}
a img{border-style:none}
ul,li{list-style-type:none}
.cf:before,.cf:after{content:" ";display:table}.cf:after{clear:both}

/* ===================================
背景,文字,リンク設定
=================================== */

html{
font-size:62.5%
}
body{
background:#fff; /* 背景 */
color:#000; /* 文字色 */
font-size:1.3em; /* 文字の大きさ */
font-family:'Segoe UI','游ゴシック Medium','Yu Gothic Medium','游ゴシック体',YuGothic,'Hiragino Kaku Gothic ProN','メイリオ',Meiryo,sans-serif;
line-height:1.5;
letter-spacing:.1em;
padding:20px 20px 80px;
text-align:center
}
a{
color:inherit
}
#contents a:not(.bg-none){
background:#c1f3f7;
border-radius:5px;
color:#000;
display:inline-block;
margin:3px 3px 3px 0;
transition:.5s
}
#contents a:not(.bg-none):hover{
background:#f6bcd3
}
#contents a.bg-none{
text-decoration:underline
}

/* ===================================
基本
=================================== */

#wrapper{
margin:0 auto
}
#main-wrap{
margin:0 auto; 
width:600px /* 幅はここを変更 */
}
header {
padding:10px 0
}
#contents{
padding:10px;
margin:0 auto;
text-align:left;
line-height:20px
}
footer{
padding:20px 10px
}
.footer-inner{
padding:10px 0;
text-align:right
}

/* ===================================
メニュー 
=================================== */

#menu {
margin:0 auto;
width:100%
}
nav li {
display:inline-block;
margin:5px;
position:relative;
overflow:hidden
}
nav li span {
position:absolute;
text-align:center;
top:50%;left:50%;
-ms-transform:translate(-50%,-50%);
-webkit-transform:translate(-50%,-50%);
transform:translate(-50%,-50%);
width:100px
}
nav li a {
color:#000;
display:block;
height:100px;width:100px
}
nav li a:hover{
color:#fff
}
.color1{background:url(image/01.png) no-repeat 50% 50%}
.color2{background:url(image/02.png) no-repeat 50% 50%}
.color3{background:url(image/03.png) no-repeat 50% 50%}
.color4{background:url(image/04.png) no-repeat 50% 50%}
.color5{background:url(image/05.png) no-repeat 50% 50%}
.color6{background:url(image/06.png) no-repeat 50% 50%}
.color7{background:url(image/07.png) no-repeat 50% 50%}
.color8{background:url(image/08.png) no-repeat 50% 50%}
.color9{background:url(image/09.png) no-repeat 50% 50%}

/* ===================================
index
=================================== */

.index{
font-weight:700;
margin:0 auto;
padding:10px 0;
width:330px /* 1列のメニューの数x110 */
}
.index a{
color:#000
}
.indexbox{
float:left;
margin:5px;
text-align:center;
height:100px;width:100px;
line-height:100px 
}

/* ===================================
ページ上部へのリンク、著作権表示
=================================== */

/* 位置はscroll.jsで設定
------------------------------ */
#pagetop {
background:rgba(198,198,198,.8);/* 背景 */
color:#fff;/* 色 */
height:60px;width:60px; /* 大きさ */
border-radius:5px;
box-sizing:border-box;
display:block;
line-height:22px;
padding-top:30px;
position:fixed;
text-align:center;
z-index:10
}
#pagetop:before {
content:'\25B2';
font-size:20px;
position:absolute;
left:0;top:10px;
width:100%
}
#pagetop:hover{
background:rgba(198,198,198,.5)
}

/* ===================================
見出し、枠、線
=================================== */

h1{
font-size:1.3em;
margin:0 0 .5em 
}
h2{
border-bottom:1px solid;
font-size:1.3em;
margin:20px 0;
text-shadow:0 1px 2px #ccc
}
h3{
background:#ccc;
border-radius:6px;
font-size:1em;
margin:10px 0 20px;
padding:5px;
position:relative
}
h3::after{
border:8px solid transparent;
border-top:8px solid #ccc;
content:'';
height:0;width:0;
left:30px;top:100%;
position:absolute
}
dt{
font-weight:700;
clear:both;
float:left;
margin:0 0 5px;
width:150px
}
dd{
margin:0 0 5px 150px
}
em{
font-style:normal;
font-weight:700
}
input,textarea{
background:#fff;
border:1px solid;
margin:3px 0;
width:200px
}
textarea{
height:50px
}
hr{
display:block;
border:0;  
border-top:1px solid #ccc;
margin:1em 0;
padding:0;
height:1px
}
.marker{
background:#f9e773;
background:-webkit-linear-gradient(rgba(249,231,115,0) 50%, #f9e773 0%);
background:linear-gradient(rgba(249,231,115,0) 50%, #f9e773 0%)
}
.dcline{
border-left:3px solid #000;
margin:5px 0;
padding:3px
}
.textbox{
border:2px solid;
margin:10px 0;
padding:3px;
text-align:center
}
.title{
color:#999;
font-size:1.5em;
font-weight:700;
margin:2em 0;
text-align:right
}
.txt{
border-left:1px dotted #000;
margin:1em;
padding:0 0 0 1em
}
.frame{
background:#fff;
padding:6px;
border-radius:3px;
box-shadow:4px 4px 4px #ccc
}
/*  文字の下の線
------------------------------ */
/* bodyのfont-sizeを変更したら数値を変更 */
/* 2.6 = font-size:1.3 x line-height:2 */
#contents p{
padding-bottom:0.1em;
background-color:#fff;
background-image:-webkit-linear-gradient(left, #fff 1.1px, rgba(255,255,255,0) 1px), -webkit-linear-gradient(top, #666 1.1px, rgba(120,120,102,0) 1px);
background-image:linear-gradient(to right, #fff 1.1px, rgba(255,255,255,0) 1px), linear-gradient(to bottom, #666 1.1px, rgba(102,102,102,0) 1px);
background-size:2px 2.6rem;
line-height:2
}

/* ===================================
スマホ、タブレット用
横幅600pxで切り替え
=================================== */

@media screen and (max-width: 600px){
body{
font-size:1.5em
}
#main-wrap{
width:100%
}
.index{
width:210px
}
.indexbox{
background-size:auto 100%; 
height:60px;width:60px;
line-height:30px
}
nav li span {
width:60px
}
nav li a {
height:60px;width:60px
}
.color1,.color2,.color3,.color4,.color5,.color6,.color7,.color8,.color9{
-moz-background-size:auto 100%;
background-size:auto 100%
}
dt{
float:none;
clear:none;
width:auto
}
dd{
margin-left:20px
}
/*  画像の縮小表示
------------------------------ */
img{
max-width:100%;
height:auto
}
/*  文字の下の線
------------------------------ */
/* bodyのfont-sizeを変更したら数値を変更 */
/* 2.8 = font-size:1.5 x line-height:2 */
#contents p{
background-size:2px 3rem;
line-height:2
}
}