/* reset css */
input,
button,
select,
textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
    border: none;
    border-radius: 0;
    font: inherit;
    outline: none;
}
textarea {resize: vertical;}
input[type='checkbox'],
input[type='radio'] {display: none;}
input[type='submit'],
input[type='button'],
label,
button,
select {cursor: pointer;}
select::-ms-expand {display: none;}
button{
    background-color: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0;
    appearance: none;
}

/* simple app design */

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: noto sans jp,sans-serif;
}
html,
body {
    width: 100%; height: 100%;
}

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 h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #121212;
    width: max-content;
}

main {
    width: calc(100% - 20px);
    max-width: 900px;
    min-height: calc(100% - 80px - 180px);
    margin: 0 auto;
}
main p {
    font-size: 1.1rem;
    line-height: 1.8rem;
    color: #484848;
    margin-bottom: 10px;
}

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;}
    main {min-height: calc(100% - 80px - 330px);}
}