@charset "utf-8";

/* CSS Document */


/*--------------------------------------
　Page
---------------------------------------*/

@media screen and (min-width: 600px) {
    #page {
        margin: 0;
    }
    #page .headArea {
        margin: 0 0 25px;
    }
    #page .headArea h1 {
        font-size: 26px;
        font-weight: bold;
    }
    #page h1, #page h2, #page h3, #page h4 {
        margin-bottom: 10px;
        text-align: center;
        position: relative;
        line-height: 1.4
    }
    #page h1 {
        font-size: 30px;
        font-weight: bold;
        text-align: center;
        background: #fff;
    padding: 25px 30px;
    border: 2px solid #2d4b11;
    position: relative;
    color: #2d4b11;
    z-index: 0;
    }
    #page h1::before {
        content: "";
        border: 1px solid #2d4b11;
        position: absolute;
        top: 1px;
        bottom: 1px;
        right: 1px;
        left: 1px;
    z-index: -1;         
    }
    #page h1::after {
        content: "";
        background: url(./img/h2-01.png) left top no-repeat, url(./img/h2-02.png) right bottom no-repeat;
        position: absolute;
        top: -8px;
        bottom: -8px;
        right: -5px;
        left: -5px;
    z-index: -1;         
    }
    #page h2 {
        font-size: 26px;
        font-weight: bold;
        padding: 14px 10px 10px;
        position: relative;
        margin-top: 1em;
        color: #333;
        background: url(./img/h3.png) center center/100% repeat-y;
    }
    #page h2::before, #page h2::after {
        background-image: -webkit-linear-gradient(45deg, transparent 35%, #b0a795 35%, #b0a795 50%, transparent 50%, transparent 85%, #b0a795 85%, #b0a795);
        background-image: linear-gradient(45deg, transparent 35%, #b0a795 35%, #b0a795 50%, transparent 50%, transparent 85%, #b0a795 85%, #b0a795);
        background-size: 8px 8px;
        content: "";
        position: absolute;
        width: 100%;
        height: 5px;
    }
    #page h2::before {
        top: 0;
        left: 0;
    }
    #page h2::after {
        left: 0;
        bottom: 0
    }
    #page h3 {
        font-size: 24px;
        font-weight: bold;
        padding: 15px 0 0 35px;
        background: url(./img/h4.png) left center no-repeat;
        border-bottom: 3px double #796d5a;
    }
    #page h4 {
        font-size: 20px;
        font-weight: bold;
        padding: 15px 0 5px;
        margin-top: 1em;
        border-bottom: 1px dashed #2d4b11
    }
    #page p.lead {
        margin: 0 0 30px;
    }
}
@media screen and (max-width: 599px) {
    #page {
        margin: 0;
    }
    #page .headArea {
        margin: 0 0 25px;
    }
    #page .headArea h1 {
        font-size: 26px;
        font-weight: bold;
    }
    #page h1, #page h2, #page h3, #page h4 {
        margin-bottom: 10px;
        text-align: center;
        position: relative;
        line-height: 1.4
    }
    #page h1 {
        font-size: 22px;
        font-weight: bold;
        text-align: center;
        background: #fff;
        padding: 10px 15px 9px;
        border: 2px solid #2d4b11;
        position: relative;
        color: #2d4b11;
        z-index: 0;               
    }
    #page h1::before {
        content: "";
        border: 1px solid #2d4b11;
        position: absolute;
        top: 1px;
        bottom: 1px;
        right: 1px;
        left: 1px;
        z-index: -1;          
    }
    #page h1::after {
        content: "";
        background: url(./img/h2-01.png) left top/65px 45px no-repeat, url(./img/h2-02.png) right bottom/65px 45px no-repeat;
        position: absolute;
        top: -8px;
        bottom: -8px;
        right: -5px;
        left: -5px;
        z-index: -1;          
    }
    #page h2 {
        font-size: 20px;
        font-weight: bold;
        padding: 14px 10px 10px;
        position: relative;
        margin-top: 1em;
        color: #333;
        background: url(./img/h3.png) center center/100% repeat-y;
    }
    #page h2::before, #page h2::after {
        background-image: -webkit-linear-gradient(45deg, transparent 35%, #b0a795 35%, #b0a795 50%, transparent 50%, transparent 85%, #b0a795 85%, #b0a795);
        background-image: linear-gradient(45deg, transparent 35%, #b0a795 35%, #b0a795 50%, transparent 50%, transparent 85%, #b0a795 85%, #b0a795);
        background-size: 8px 8px;
        content: "";
        position: absolute;
        width: 100%;
        height: 5px;
    }
    #page h2::before {
        top: 0;
        left: 0;
    }
    #page h2::after {
        left: 0;
        bottom: 0
    }
    #page h3 {
        font-size: 18px;
        font-weight: bold;
        padding: 15px 0 5px 35px;
        background: url(./img/h4.png) left center/18px 26px no-repeat;
        border-bottom: 3px double #796d5a;
    }
    #page h4 {
        font-size: 16px;
        font-weight: bold;
        padding: 15px 0 10px;
        margin-top: 1em;
        border-bottom: 1px dashed #2d4b11
    }
    #page p.lead {
        margin: 0 0 30px;
    }
}
