*{margin:0;padding:0}
div,h1,h2,h3,p,ul,li,input,textarea,table,tr,th,td,footer,header,nav,section{box-sizing:border-box}
input,textarea,select{font-family:inherit;font-size:inherit;color:inherit}
a{text-decoration:none;outline:none}
a img{border-style:none}
ul,li{list-style-type:none}

html{
font-size:62.5%;
position: relative;
min-height:100%
}
body{
    background: #9e0000 url(image/back02.gif);
    color: #499e9c;
    font-size: 1.2em;
    font-family: garamond;
    letter-spacing: .1em;
    text-align: center;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
a{
color:#7a6b52
}
/*--------------------------------------------------------
Basics
--------------------------------------------------------*/
#wrapper{
text-align:left
}
#index{
height:auto;
text-align:left
}
/*--------------------------------------------------------
Superior
--------------------------------------------------------*/
header{
background:url(image/back01.gif); /* Background image*/
background-size: 90px;
position:relative;
width:100%;
min-width:1000px;/* #contentsofwidththesamenumberas*/
z-index:10
}
#header-inner{
min-height:50px;
padding:10px;
text-align:right
}
/*--------------------------------------------------------
Main
The sum of the left and right widths must not exceed the total width.
--------------------------------------------------------*/
#contents{
margin:0 auto;
width:1000px /* Change the overall width and size here */
}
/* left*/
#leftcolumn{
float:left;
text-align:left;
width:300px
}
/* right side */
#rightcolumn{
display:inline;
float:right;
margin:0;
width:700px
}
.block{
background-image:url(image/back03.gif); /* Background Image */
border-radius:5px;
box-shadow:0 1px 2px #353535;
clear:both;
margin:20px 10px;
padding:8px;
word-wrap:break-word
}
.block a{
border-radius:5px;
color: #a90000;
display:inline-block;
margin:5px 5px 5px 0
}
.block a.bg-none{
background:none;
border-radius:0
}
.block a img{
vertical-align:middle
}
#contents,#rightcolumn,#leftcolumn,.block{
box-sizing:border-box
}
/*--------------------------------------------------------
Down
--------------------------------------------------------*/
footer{
background:url(image/back01.gif); /* Background Image*/
background-size: 90px;
position:absolute;
bottom:0;left:0;
min-height:50px;
width:100%;
min-width:1000px; /* #Same as the width of contents */
}
.footer-inner{
padding:10px;
text-align:center
}
footer a{
color:#f2eee1
}
/*--------------------------------------------------------
Menu
--------------------------------------------------------*/
#menu{
background-color: #499e9c;
border-radius:0 5px 5px 0;
padding:5px 10px;
margin:10px 0;
position:absolute;
bottom:0;left:0;
width:80%
}
nav li{
display:inline-block; /* Side by side */
position:relative; /* Submenu display position criteria */
height:2em;line-height:2em; /* Menu Height */
}
nav li a,nav li span{
font-size:1.6em;
color:#f2eee1;
display:block;
padding:0 5px;
text-decoration:none
}
nav li a:hover,nav li span:hover{
color:#9e0000;
text-decoration:none
}
nav >ul >li>a:first-letter,nav li span:first-letter{
color:#9e0000
}
/* Submenu */
.sub-menu{
background:#9e0000;
position:absolute;
width:180px; /* Submenu Width */
z-index:20
}
.sub-menu li{
display:block; /* Reset Side-by-Side */
visibility:hidden; /* hide */
overflow:hidden; /* hide */
height:0; /* hide */
width:100%
}
.sub-menu li a{
color:#f2eee1;
display:block
}
.sub-menu li a:hover{
background:#c66;
color:#f2eee1
}
nav li:hover .sub-menu li{
visibility:visible;
overflow:visible;
height:3em;line-height:3em; /* Submenu Height */
transition: .5s
}
#open{display:none}
/*--------------------------------------------------------
Link to top of page, copyright notice
--------------------------------------------------------*/
#pagetop {/* Position is set with scroll.js */
background:url(image/back02.gif);/* background */
color:#fff;/* Colour */
height:50px;width:50px; /* Size */
border-radius:30px;
box-sizing:border-box;
display:block;
line-height:16px;
padding-top:25px;
position:fixed;
text-align:center;
z-index:10
}
#pagetop:before {
content:'\25B2';
font-size:16px;
position:absolute;
left:0;top:10px;
width:100%
}
#pagetop:hover {
background:rgba(225,215,184,.8)
}
#fl a {
color:#f2eee1;
background:#9e0000;
border-radius:5px;
display:inline-block;
padding:3px
}
/*--------------------------------------------------------
Headings, Borders, and Lines
--------------------------------------------------------*/
h1{
background-color: #a90000;
font-size:1.5em;
line-height:1;
margin:0 0 .5em
}
h2{
font-size:1.2em;
margin:15px 0;
border-bottom:3px double #353535
}
h3{
background:url(image/icon01.gif) no-repeat;
border-bottom:1px dotted #353535;
font-weight:400;
line-height:18px;
margin:1em 0;
padding:0 25px
}
dt{
color:#9e0000;
font-weight:700;
float:left;
clear:both;
margin:0 0 5px;
padding:0 5px;
width:10em
}
dd{
border-bottom:dotted 1px #bca475;
margin:0 0 5px 12em
}
#leftcolumn dt{
float:none;
clear:none;
width:auto
}
#leftcolumn dd{
margin-left:20px
}
em{
background:#fac353; /* Ie9 */
background:-webkit-gradient(linear, left top, left bottom, color-stop(0, #8c7545), color-stop(0.79, #8c7545), color-stop(0.8, #fac353), color-stop(1, #fac353));
background:-webkit-linear-gradient(transparent 80%, #fac353 0%);
background:linear-gradient(transparent 80%, #fac353 0%);
font-weight:700
}
input,textarea{
background:#f2eee1;
border:1px solid;
color:#353535;
margin:3px 0;
width:400px
}
#leftcolumn textarea{
width:200px
}
textarea{
height:50px
}
hr{
display:block;
border:0;  
border-top:1px solid #ccc;
margin:1em 0;
padding:0;
height:1px
}
.marker{
background:#bca475;
padding:1px 5px
}
.dcline{
border-left:5px solid #9e0000;
margin:5px 0;
padding:3px
}
.textbox{
border:1px solid #353535;
margin:10px 0;
padding:3px;
text-align:center
}
.title{
color:#9e0000;
font-size:1.5em;
font-weight:700;
margin:2em 0;
text-align:right
}
.txt{
border-left:1px dotted #ccc;
margin:1em;
padding:0 0 0 1em
}
.frame{
background:#f2eee1;
border-radius:3px;
padding:6px;
box-shadow:3px 3px 3px #353535
}
.cf:before,.cf:after{content:" ";display:table}
.cf:after{clear:both}
/*--------------------------------------------------------
For smartphones and tablets
Switch at 600px width
--------------------------------------------------------*/
@media screen and (max-width: 600px){
body{
font-size:1.3em;
margin-bottom:80px; /* footerのheightと同じ */
}
#wrapper{
min-height:100%;
padding:0
}
header{
min-width:100%
}
h1{
min-height:40px;
padding-left:60px
}
#index h1{
min-height:inherit;
padding-left:0
}
#contents{
margin:0 auto;
width:100%
}
#rightcolumn,#leftcolumn{
float:none;
width:100%
}
.block a{
color:#f2eee1;
background:#9e0000;
border-radius:5px;
display:inline-block;
margin:3px 3px 3px 0;
padding:3px
}
.block a.bg-none{
background:none;
border-radius:0;
padding:0
}
.block li{
float:left
}
footer{
height:80px;
min-width:100%
}
#fl:hover{
background:#95856a
}
dt{float:none;clear:none;width:auto}
dd{margin-left:20px}
input,textarea{width:90%}
img{max-width:100%;height:auto} /* Thumbnail image */
/*--------------------------------------------------------
Menu for smartphones and tablets
--------------------------------------------------------*/
/* menu */
#menu{
background:rgba(122,106,83,.8); /* Menu background color */
border-radius:0;
margin:0;padding:0;
display:none;
bottom:inherit;
text-align:left;
width:100%;
z-index:20
}
nav li{
display:block; /* Cancel side-by-side alignment */
height:auto;line-height:inherit /* Reset Height */
}
nav > ul > li+li:before{
content:none
}
nav li a,nav li span{
display:block;
position:relative;
padding:15px 20px /* Link margins Adjust the row height here */
}
nav li a:hover,nav li span:hover{
background:rgba(221,211,179,.8);
color:#353535
}
/* Submenu */
.sub-menu{
background:none;
position:static;
display:none; /* hide */
width:100%;
z-index:auto
}
.sub-menu li{
display:inline-block;/* If you want to do it for each row, delete this */
visibility:visible; /* Reset */
overflow:visible; /* Reset */
height:auto; /* Reset Height */
width:50% /* If you want to do it for each row, delete this */
}
.sub-menu li a:hover{
background:rgba(221,211,179,.6);
color:#353535
}
.sub-menu li a:after{
display:none
}
nav li:hover .sub-menu li{
height:auto;line-height:inherit /* Reset Height */
}
nav li span:after{
border-top:3px solid #f2eee1;/* Menu ">" color */
border-right:3px solid #f2eee1;/* Menu ">" color */
content:"";
display:block;
margin-top:-5px;
position:absolute;
top:50%;right:20px;
height:5px;width:5px;
-ms-transform:rotate(45deg);
-webkit-transform:rotate(45deg);
transform:rotate(45deg);
transition:.2s
}
nav li span.open:after{
-ms-transform:rotate(135deg);
-webkit-transform:rotate(135deg);
transform:rotate(135deg)
}
/* Open menu button */
#open{
background:#9e0000;
border:2px solid #353535;
border-radius:20px;
display:inline-block;
position:absolute;
height:40px;width:40px;/* Size*/
top:10px;left:10px/* header position based on */
}
#open-icon,#open-icon:before,#open-icon:after{
background:#f2eee1; /* Line Color */
}
#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)}

}