@charset "utf-8";
/* Standard */
:root {
    font-size: 16px;
}
* {
    box-sizing: border-box;
    margin: 0;
}
html {
    min-height: 100%;
}
body {
    font: 1em/1.3em Arial, "Segoe UI", Calibri, sans-serif;
    color: #FF6900;
}
#wrapper {
    position: relative;
    margin: 1rem auto;
    overflow: hidden;
    max-width: 565px;
    border: solid 1px #000;
    background: #F26923;
}
p {
    padding-bottom: 1rem;
}
h1 {
    margin: 0rem 0rem 1.5rem;
    font-size: 1.6em;
    line-height: 1.1em;
}
h2 {
    font-size: 1.5em;
    line-height: 1.1;
    background: url('../images/bgm.jpg') no-repeat;
    padding: 16px 0 63px 22px;
}
h2 span {
    transform: rotate(-1deg);
    display: block;
}
h3 {
    text-align: center;
    font-size: 1.8em;
    line-height: 1.3;
    padding: 5px 119px 36px 93px;
    transform: rotate(-2deg);
}
h4 {
    font-size: 1.7em;
    line-height: 1.3;
    padding-bottom: 1.5rem;
}
:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
}
header {
    padding: 1.5rem 1rem 0.5rem;
    position: relative;
    background: url('../images/bg.jpg') no-repeat top left;
}
.logo {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 9999;
}
header :is(h3, p) {
    color: #fff;
}
article {
    padding: 1rem 2.5rem 1.5rem;
    position: relative;
    background: #fff url('../images/bgb.jpg') no-repeat right bottom;
}
.mail {
    background: #FF6900;
    border-radius: 23px;
    font-size: 1.188em;
    line-height: 1.3;
    padding: 0.5rem;
    width: fit-content;
    color: #fff;
}
figure {
    position: absolute;
    right: 0.7rem;
    top: 0.7rem;
}
.box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0 0 1rem -1rem;
    color: #fff;
}
.box span {
    display: block;
    text-align: center;
    background: #736660;
    padding: 0.3rem 0.5rem;
    border-radius: 25px;
    font-weight: 700;
}
footer p {
    font-size: 1.57em;
    line-height: 1.3;
    padding: 0.5rem 1rem;
    color: #fff;
}
img {
    max-width: 100%;
    height: auto;
}
@media only screen and (max-width:564px) {
    #wrapper {
        border: none;
        margin: 0 auto;
    }
    p :is(span, a) {
        display: inline-block;
    }
    .logo, figure {
        position: static;
        display: flex;
        padding-bottom: 1rem;
        justify-content: center;
    }
    .hide_m,  h1 br{
        display: none;
    } 
    h2 {
        padding: 1.5rem;
    }
    h3 {
        padding: 0.3rem;
        font-size: 1.375em;
        border: 3px solid #fff;
        margin: 0 auto 1rem;
        border-radius: 5px;
        padding: 0.5rem;
        width: fit-content;
         transform: none;
    }

    header {
        padding-top: 0;
    }
    header, article {
        background-image: none;
    }
}
@media only screen and (max-width:530px) {
    .box {
        margin: 0 0 1rem;
    }
    .box span {
        margin-bottom: 0.3rem;
    }
}
@media only screen and (max-width:395px){
    h2{
        border: 3px solid #F26923;
        border-radius: 5px;
        padding: 0.5rem;
        margin: 0 auto 1rem;
        background-image: none;
    }
}
@media only screen and (max-width:375px) {
    .box {
        flex-direction: column;
    }
}