html,body,header,main,footer,section, div,table,tr,td,th,
h1,h2,h3,h4,h5,p,a,span,tr,td, ul,li {margin: 0; padding: 0;
    font-family: -apple-system,BlinkMacSystemFont,Hiragino Kaku Gothic ProN,Meiryo,sans-serif;
    color: #121212;
    letter-spacing: calc(1px - .0625em);
    line-height: 1.5;
}

header {
    width: calc(100% - 20px);
    box-shadow: 0 .5rem 2rem rgba(0,0,0,.12);
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 0 0 10px 10px;
    display: flex;
    background-color: #fafafa;
    position: relative;
}

header a {
    font-size: 1.5rem;
    font-weight: 600;
    color: #121212;
    width: max-content;
    text-decoration: none;
}

main {
    display: block;
    width: calc(100% - 10px);
    margin: 0 auto;
}
#a_top {
    display: block;
    width: fit-content;
    margin: 10px auto;
    color: #121212;
}

a {display: block;}
p a {display: inline-block;}

footer {
    min-height: 170px;
    border-top: 1px solid #dbdbdb;
    padding: 2px 5px;
    margin-top: 10px;
}
footer div {margin: 10px; display: inline-block; vertical-align: top;}
footer div p {
    color: #121212;
    font-size: 1.05rem;
    line-height: 1.5rem;
    margin: 5px 0 10px 0;
}
footer div a {
    color: #121212;
    display: block;
    font-size: 1rem;
    line-height: 1.3rem;
    margin-bottom: 10px;
}

@media screen and (max-width: 405px) {
    footer {min-height: 300px;}
}