@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 Arial, sans-serif;
}
#wrapper {
    position: relative;
    max-width: 680px;
    margin: 1rem auto;
    border: solid 6px #ED1C29;
    background: #fff;
    overflow: hidden;
    padding: 0;
}
p {
    padding-bottom: 0.375rem;
}
:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
    height: auto;
}
h1 {
    margin: 0 0 0.375rem;
    font-size: 1.375em;
    line-height: 1.3;
}
h1 span {
    display: inline-block;
}
h2 {
    font-size: 1.75em;
    line-height: 1.3em;
    margin-bottom: 0.375rem;
}
h3 {
    font-size: 1.5em;
    line-height: 1.3em;
    margin: 0.5rem -2rem 0;
    padding: 0.5rem 1rem;
    background: #ED1C29;
    color: #fff;
    text-align: center;
}
header {
    padding: 0.5rem 2rem;
}
article {
    padding: 0 2rem;
}
.ttl {
    padding: 3rem 4rem 0.5rem 1rem;
    background: #ED1C29;
    color: #fff;
    transform: rotate(-8deg);
    width: 58%;
    position: absolute;
    top: -2.25rem;
    right: -3rem;
    box-shadow: 0 0 1rem #000000;
}
.ttl p {
    font-size: 1.25em;
    line-height: 1.3;
    padding-bottom: 0.5rem;
}
.black {
    font-weight: 900;
}
footer {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    background: #C7C9CB;
}
figure {
    position: relative;
}
figcaption {
    writing-mode: vertical-rl;
    transform: rotate(-180deg);
    position: absolute;
    right: 100%;
    bottom: -6px;
    padding: 0.8rem 0.25rem;
    height: 100%;
    font-size: 0.875em;
}
@media only screen and (max-width:679px) {
    #wrapper {
        border: none;
        margin: 0 auto;
    }
    p {
        text-align: left;
    }
    p, li {
        -moz-hyphens: auto;
        -o-hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }
    p :is(span, a) {
        display: inline-block;
    }
    header {
        display: flex;
        justify-content: center;
    }
    .ttl {
        position: static;
        width: auto;
        padding: 1rem;
        transform: none;
        margin: 0 0 1rem;
    }
    footer {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .hide_m {
        display: none;
    }
}
@media only screen and (max-width:480px) {
    header, article {
        padding: 1rem;
    }
}