@charset "utf-8";
:root {
    font-size: 16px;
}
* {
    box-sizing: border-box;
    margin: 0;
}
html {
    min-height: 100%;
}
body {
    color: #000000;
    font: 400 1em/1.3em "Segoe UI", Arial, sans-serif;
}
#wrapper {
    position: relative;
    max-width: 500px;
    margin: 1rem auto;
    border: solid 1px #000;
    background: #fff;
    overflow: hidden;
    padding: 0;
}
#wrapper:after {
    content: url('../images/bg.png');
    position: absolute;
    top: 0.75rem;
    right: 1rem;
}
p {
    padding-bottom: 0.5rem;
}
:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
    height: auto;
}
h1 {
    font-size: 1.1875em;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}
h1 span {
    font-size: 1.125em;
}
h2 {
    font-size: 1em;
    line-height: 1.3em;
    font-weight: normal;
    text-transform: uppercase;
}
h2 span {
    font: bold 1.375em/1.3 Georgia, Cambria, "Time New Roman", serif;
}
header {
    padding: 1.25rem 1rem 0;
}
article {
    padding: 0 1rem;
}
article p {
    font-size: 1.125em;
    line-height: 1.3;
}
.ttl {
    margin: 0 0 1rem -1rem;
    padding: 1rem;
    background: #515A69;
}
footer {
    padding: 1rem 1rem 0.5rem;
    background: #334252;
}
footer p, h2, h1 {
    color: #fff;
}
hr {
    border: 1px solid #000;
    margin-block: 1rem;
    width: 72%;
}
figure {
    position: absolute;
    bottom: 0.5rem;
    right: 1rem;
}
@media only screen and (max-width:499px) {
    #wrapper {
        border: none;
        margin: 0 auto;
    }
    p {
        -moz-hyphens: auto;
        -o-hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }
    p :is(span, a) {
        display: inline-block;
    }
    #wrapper:after {
        display: none;
    }
    header br {
        display: none;
    }
    footer {
        padding: 1rem;
    }
    figure {
        position: static;
        display: flex;
        justify-content: center;
    }
}