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}
hr{border:0;display:block;margin:1em 0;padding:0;height:1px}
.cf:before,.cf:after{content:" ";display:table}.cf:after{clear:both}

/* ===================================
背景,文字,リンク設定
=================================== */

html{
font-size:62.5%;
height:100%
}
body{
background:#a42020;/* ※指定は下の#wrapper_ここは広告回避用 */
color:#fff;
font-size:1.3em;/* 文字の大きさ */
font-family:'Segoe UI','游ゴシック Medium','Yu Gothic Medium','游ゴシック体',YuGothic,'Hiragino Kaku Gothic ProN','メイリオ',Meiryo,sans-serif;
letter-spacing:.1em;
line-height:1.5;
text-align:center;
height:100%
}
/*  リンク
------------------------------ */
a{
color:inherit
}
a:hover{
color:#a98785
}
#rightcolumn a:not(.bg-none),aside a:not(.bg-none){
border-bottom:1px dashed #857663;
color:#a42020;
display:inline-block;
margin:2px 2px 2px 0;
padding:0 2px
}
#rightcolumn a:not(.bg-none):hover{
background:rgba(164,32,32,.6);
border-bottom:1px solid transparent;
border-radius:5px;
color:#fff
}
aside a:not(.bg-none):hover{
border-bottom:1px solid #857663;
color:#857663
}

/* ===================================
基本
=================================== */

#wrapper{
background:#fff;/* 背景色 */
color:#857663;/* 文字色 */
padding-left:300px;/* (※1)と同じ */
position:relative;
margin:0 auto;
height:auto;min-height:100%
}
header{
position:absolute;
left:0;top:0;
z-index:5;
}
#header-bg{
background:url(image/back02.png) no-repeat 50% 50%;
height:216px;/* (※2)画像の高さ */
width:300px; /* (※1)と同じ */
}
#header-inner{
position:absolute;
top:50%;left:50%;
width:240px;
-ms-transform:translate(-50%, -50%);
-webkit-transform:translate(-50%, -50%);
transform:translate(-50%, -50%);
}
#rightcolumn{
float:right;
margin-left:0;
text-align:left;
width:100%
}
#rightcolumn-inner{
margin-left:0;
padding:20px 20px 50px
}
#leftcolumn{
background:url(image/back01.gif) repeat-y 50% 0;
float:left;
margin-left:-300px; /* (※1)と同じ */
min-height:100%;
width:300px; /* (※1) */
}
#leftcolumn-inner{
margin:0 auto;
padding:220px 10px 20px;/* (※2)より余分に空ける */
width:250px
}
/*  文字縁取り
------------------------------ */
header,#index-bg{
 text-shadow:1px 0 0 #fff, 1px 1px 0 #fff, 0 1px 0 #fff, -1px 1px 0 #fff, -1px 0 0 #fff, -1px -1px 0 #fff, 0 -1px 0 #fff, 1px -1px 0 #fff
}

/* ===================================
メニュー
=================================== */

#menu{
display:block;
margin-bottom:20px;
text-align:center
}
nav li{
display:inline-block;
font-weight:700;
margin:5px 0
}
nav li a{
color:#fff;/* メニューの文字色 */
display:inline-block;
padding:0 5px
}
nav > ul > li + li::before{
content:"│";
font-size:.8em
}
/*  メニューを開くボタン非表示
------------------------------ */
#open{display:none}

/* ===================================
index
=================================== */

#index{
background:#fff url(image/back01.gif) repeat-y 50% 0;
color:#857663;
height:auto;
min-height:inherit;
padding:20px;
}
#index-inner{
margin:0 auto;
position:relative;
width:220px
}
#index-bg{
position:relative;
background:url(image/back02.png) no-repeat 50% 50%;
height:216px;width:220px
}
#index-bginner{
position:absolute;
top:50%;left:50%;
width:100%;
-ms-transform:translate(-50%, -50%);
-webkit-transform:translate(-50%, -50%);
transform:translate(-50%, -50%)
}

/* ===================================
ページ上部へのリンク、著作権表示
=================================== */

/*  位置はscroll.jsで設定
------------------------------ */
#pagetop{
background:rgba(164,32,32,.5);/* 背景 */
color:#fff;/* 色 */
height:40px;width:40px; /* 大きさ */
border:0;
border-radius:30px;
box-sizing:border-box;
display:block;
font-size:13px;
letter-spacing: normal;
line-height:20px;
padding-top:12px;
position:fixed;
text-align:center;
text-decoration:none;
bottom:-80px;
z-index:10
}
#pagetop:before{
content:"";
display:block;
border-left:2px solid #fff;
border-top:2px solid #fff;
position:absolute;
top:10px;left:16px;
height:6px;width:6px;
-ms-transform:rotate(45deg);
-webkit-transform:rotate(45deg);
transform:rotate(45deg)
}
#pagetop:hover{
background:rgba(164,32,32,.9)
}
/*  著作権表示
------------------------------ */
#fl a{
display:inline-block;
margin:100px 0 20px;
text-decoration:none
}
#fl a:after,#fl a:before{
content:url(image/icon03.gif);
margin:0 5px
}

/* ===================================
見出し、枠、線
=================================== */

h1{
color:#a42020;
font-size:1.4em;
letter-spacing:.1em;
line-height:1;
margin:0 0 10px
}
h2{
font-size:1.1em;
margin:15px 0 15px -10px;
padding:0.2em 0;
position:relative;
border-bottom:2px solid #a42020
}
h2:first-letter{
color:#a42020;
font-size:1.2em
}
h2::after{
background-color:#857663;
position:absolute;
bottom:-2px;left:0;
content:'';
height:2px;width:20%;
z-index:2
}
h3{
background:url(image/icon02.gif) no-repeat 0 50%;
border-bottom:1px dashed;
font-size:1.1em;
margin:15px 0;
padding:0 15px
}
#rightcolumn-inner h2:first-child{
margin-top:0
}
#leftcolumn h2,#leftcolumn h3{
margin:10px 0
}
dt{
background:#a42020;
border-radius:5px;
color:#fff;
clear:both;
font-weight:700;
float:left;
margin:0 0 5px;
padding:0 2px;
width:10em /* 文字数によっては調整 */
}
dd{
border-bottom:1px dashed;
margin:0 0 5px 12em; /* dtのwidthに2足してます */
padding:0 2px;
}
em{
background:#ffe796;
background:-webkit-linear-gradient(rgba(255,231,150,0) 50%, #ffe796 0%);
background:linear-gradient(rgba(255,231,150,0) 50%, #ffe796 0%);
font-style:normal;
font-weight:700
}
input,textarea{
background:#fff;
border:1px solid;
border-radius:5px;
margin:3px 0;
width:250px
}
textarea{
height:50px
}
#leftcolumn input,#leftcolumn textarea{
width:100%
}
hr{
border-top:1px solid #ccc
}
.marker{
background:#a42020;
background:-webkit-linear-gradient(rgba(164,32,32,0) 80%, #a42020 0%);
background:linear-gradient(rgba(164,32,32,0) 80%, #a42020 0%);
padding:1px 5px
}
.dcline{
border-left:8px solid #a42020;
margin:5px 0;
padding:3px 3px 3px 10px
}
.textbox{
background:#000;
border:1px solid #a42020;
border-radius:5px;
color:#fff;
margin:10px 0;
padding:3px;
text-align:center
}
.title{
color:#a42020;
font-size:1.5em;
font-weight:700;
margin:1em 0
}
/*  複数行の右寄せ
------------------------------ */
.r-justified{
text-align:right
}
.r-justified p{
display:inline-block;
text-align:left
}
.inline{
display:inline-block
}

/* ===================================
横幅1000pxで切り替え
=================================== */

@media screen and (max-width:1000px){

dt{float:none;clear:none}
dd{margin-left:20px}
input,textarea{width:100%}
img{max-width:100%;height:auto}/* 画像の縮小表示 */
}

/* ===================================
スマホ、タブレット用
横幅600pxで切り替え
=================================== */

@media screen and (max-width:600px){
body{
background:#000;
font-size:1.5em;
line-height:1.7
}
#wrapper{
padding:20px 20px 60px
}
#header-bg{
background:url(image/back04.png) no-repeat 0 0
}
#header-inner{
padding:0 40px 10px 0;
text-align:left;
min-height:65px
}
#rightcolumn{
background:#fff;
border-radius:10px;
box-shadow:2px 2px 2px #ccc;
padding:10px 10px 10px 20px
}
#rightcolumn-inner{
background:url(image/back05.png) no-repeat bottom right;
padding:0 0 20px
}
#index{
background:#000
}
/*  いじらなくていいのまとめておきます
------------------------------ */
#wrapper{background:none;min-height:inherit}
header{position:static}
#header-bg{height:auto;width:auto}
#header-inner{position:static;width:auto;-ms-transform:translate(0);-webkit-transform:translate(0);transform:translate(0)}  
#rightcolumn{float:none;width:auto}
#leftcolumn{float:none;margin:0;min-height:inherit}
#leftcolumn-inner{height:100%;width:100%;overflow:auto;-webkit-overflow-scrolling:touch}
#index-inner,#index-bg{width:auto}

/* ===================================
スマホ、タブレット用メニュー
=================================== */

/*  スライド
------------------------------ */
#leftcolumn{
background:#000 url(image/back02.png) no-repeat 50% 50%;
border-left:3px solid #a42020;
line-height:2;
padding:80px 10px 10px;/* メニューボタン分空ける */
position:fixed;
height:100%;width:300px; /* (*1)同じにする */
top:0;right:0;
-ms-transform:translate(300px); /* (*1)同じにする */
-webkit-transform:translate(300px); /* (*1)同じにする */
transform:translate(300px); /* (*1)同じにする */
transition:.3s;
z-index:1000
}
#leftcolumn-inner{
background:rgba(0,0,0,.8); /* 背景色 */
padding:0 10px
}
#side-bg{
background:rgba(51,51,51,.5)/* 周りの背景色 */
}
/*  メニュー
------------------------------ */
nav li a{
background:#a42020;
border-radius:5px;
margin:5px;
padding:0 5px
}
nav > ul > li + li::before{
content:""
}
/*  メニューを開くボタン
------------------------------ */
#open{
background:#fff; /* 背景色 */
border-radius:20px;
box-shadow:2px 2px 2px #ccc;
display:inline-block;
position:absolute;
right:20px;top:20px; /* 位置 */
height:40px;width:40px; /* サイズ */
z-index:1001
}
#leftcolumn.open{-ms-transform:translate(0);-webkit-transform:translate(0);transform:translate(0)}
#side-bg{display:none;position:fixed;height:100%;width:100%;top:0;left:0;z-index:999;cursor:pointer}
#open.buttonclose{position:fixed}
#open-icon,#open-icon:before,#open-icon:after{background:#857663}/* 線の色 */
#open-icon{display:block;margin:-1px 0 0 -10px;position:absolute;top:50%;left:50%;height:2px;width:20px}
#open-icon:before,#open-icon:after{content:"";display:block;position:absolute;top:50%;left:0;height:2px;width:20px;transition:.3s}
#open-icon:before{margin-top:-8px}
#open-icon:after{margin-top:6px}
#open .close{background:transparent}
#open .close:before,#open .close:after{margin-top:0}
#open .close:before{-ms-transform:rotate(-45deg);-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}
#open .close:after{-ms-transform:rotate(-135deg);-webkit-transform:rotate(-135deg);transform:rotate(-135deg)}
}
