@media screen and (max-width: 640px){

header {
    width: 100%;
    height: auto;
    margin: 0;
}
header h1 {
    text-align: left;
    font-size: 1em;
    margin: 0px;
    padding: 0px 0px 0px 0px;
}
header h4 {
    text-align: right;
    font-size: 0.5em;
    font-weight: normal;
    margin: 2px 2px 0 0;
}
#mainpic {
    float: left;
    text-align: left;
    height: 60px;
    width: 52px;
    margin: 15px 0 0 0;
    padding: 10px;
}
.maintitle-prefix {
    font-size: 0.7em;
    letter-spacing: 0.1em;
    font-weight: normal;
    color: #740;
}
.maintitle {
    font-family: "Genjuu Gothic Custom";
    font-size: 2em;
    letter-spacing: 0.2em;
    font-weight: bold;
    color: #740;
}
#subtitle {
	text-align: left;
    font-size: 0.7em;
    font-weight: normal;
    color: #000;
    margin: 0px;
    padding: 0 0 0 0px;
}
#title {
    padding: 25px 0 0 0;
}
header p {
    clear: both;
    float: right;
    text-align: right;
    margin: 0 10px 0 0;
    color: #370;
    font-size: 0.7em;
}
#teln {
    clear: both;
    text-align: right;
    font-family: "Genjuu Gothic Custom";
    font-size: 1.5em;
    font-weight: normal;
    color: #a44;
    margin: 0 10px 0 0;
    padding: 0;
}

nav {
    float: none;
    text-align: center;
    width: 100%;
}
nav ul, nav li {
    list-style-type:none;
}
ul#mainnav {
    margin: 0px;
    padding: 0px;
}
ul#mainnav li {
    list-style: none;
    text-align: center;
    height: 32px;
    margin: 5px 5px 5px 5px;
    background-color: #ac8;
}
ul#mainnav li.email {
    background-color: #7cf;
}
ul#mainnav li a {
    display: block;
    padding: 5px 5px 3px 5px;
    color: black;
    text-decoration: none;
}
ul#mainnav li a:hover {
    color: white;
    background-color: #F90;
}

nav p {
    display:block;
    color: black;
    margin: 0px 5px 0px 5px;
    padding: 5px 5px;
}
/* div.torihiki {
    margin: 0px 10px 0px 10px;
    background-color: transparent;
    text-align: left;
}
.torihiki ul, .torihiki li {
    display: inline;
    font-size: 0.9em;
    margin: 0;
    padding-left: 0;
}
.torihiki li:before {content:"・";}
nav h3 {
    font-size: 0.9em;
    margin: 0;
}
nav h3:before{content: url(pomedot.png);}
nav h3:after{content: url(pomedot.png);}
*/
img.sozai {
    max-width: 100%;
    height: auto;
    margin: 0 0 10px 0;
}
#homewords {
    padding: 0px 3% 0px 3%;
    font-size: 1em;
    letter-spacing: 0.1em;
    color: black;
    background-color: transparent;
}
#homewords-kojin {
    padding: 0px 3% 0px 3%;
    font-size: 0.85em;
    letter-spacing: 0em;
    color: black;
    background-color: transparent;
}

section {
    float: none;
    width: auto;
    margin: 0px 10px 10px 10px; /* 上 右 下 左*/
    font-size : 1em; 
    background-color: transparent;
}
article h3::before{content: url(pomedot.png);}
article h3 {
    text-align: center;
    font-size: 1em;
}
article h3::after{content: url(pomedot.png);}

p.tabletitle {
    font-size: 0.85em;
    font-weight: bold;
}
article p.tabletitle:before{content: url(pomedot.png);}
article p.tabletitle:after{content: url(pomedot.png);}

p.zeikomi {
    text-align: right;
    font-size: 0.8em;
    margin: 0;
}

table {
    border-top: 1px solid #999;
    border-right: 1px solid #444;
    width: 100%;
    border-spacing: 0;
    margin: 0;
}
th, td {
    border-bottom: 1px solid #444;
    border-left: 1px solid #999;
    text-align: center;
    font-weight: normal;
    font-size: 0.8em;
    padding: 5px;
}
thead {
    background-color: #fe8;
    color: black;
    font-weight: normal;
}
tbody {
    background-color: transparent;
    color: black;
    font-weight: normal;
}
.col12{width: 37%;}
.col1m{width: 26%;}
.col60m{width: 18%;}
.colplus1 {
    text-align: right;
    padding-right: 0;
    border-right: 0;
    white-space: nowrap;
    width: 20%;
}
.colplus2 {
    text-align: left;
    padding-left: 0;
    border-left: 0;
    white-space: nowrap;
    width: 15%;
}
.collan1 {
    text-align: right;
    padding-right: 0;
    border-right: 0;
    white-space: nowrap;
}
.collan2 {
    text-align: left;
    padding-left: 0;
    border-left: 0;
    white-space: nowrap;
}

table.otype {
    margin: 0;
    border-width: 0px;
}
table.otype td {
    border-color: transparent;
    text-align: left;
}
span.bunrei {
    color: #881;
}
span.oyouto {
    color: #33a;
}
td.osozai {
    display: none;
}
p.youyaku {
    padding: 0 0 0 6px;
    font-size: 0.85em;
}

table.office th {
    background-color: #fe8;
    font-weight: normal;
}
table.office td {
    text-align: left;
    background-color: transparent;
    padding-left: 5px;
    font-weight: normal;
}
ul.tokucho li {
    font-size: 0.9em;
    margin: 0;
}
p.undertable {
    font-size: 0.9em;
    margin: 0;
}

/*
tbody.okomari-body {
    color: #444;
    font-size: 1em;
}
th.okomari1 {
    width: 50%;
}
td.okomari1, td.okomari2 {
    text-align: left;
}
*/

span.nobreak {
    white-space: nowrap;
}
span.dot-short {
    display: inline;
}
span.dot-long {
    display: none;
}
span.underline {
    text-decoration: underline;
}
span.pomekakko:before{content: url(pomedot.png);}
span.pomekakko:after{content: url(pomedot.png);}

aside {

    border: solid 1px black;
}
aside p {
    padding: 0;
    text-align: center;
    font-size: 0.9em;
    margin-top: 5px;
}
aside h4 {
    text-align: center;
    font-size: 0.9em;
    margin: 0;
}
aside h4:before{content: url(pomedot.png);}
aside h4:after{content: url(pomedot.png);}

footer {
    clear: both;
    margin: 0px;
    text-align: center;
    background-color: transparent;
    color: #a44;
    width: 100%;
    padding: 5px 0px;
    /* font-size: 80%; */
}

footer h1 {
    font-size: 1.2em;
}
footer h2 {
    font-size: 1em;
    color: #691;
}
footer h3 {
    font-size: 1em;
}
footer h4{
    clear: both;
    text-align: center;
    font-size: 0.75em;
}
footer table {
    width: auto;
    margin: auto;
    border: 0;
}
footer thead {
    font-size: 1.2em;
    font-weight: normal;
    background-color: transparent;
}
footer tbody {
    background-color: transparent;
    font-size: 1em;
}
footer th {
    text-align: right;
    color: #691;
    border: 0;
}
footer td {
    text-align: left;
    color: #718;
    border: 0;
}
.bottompic { visibility: hidden; height: 0;}

}
