@charset "utf-8";

/* CSS Document */

/*--------------------------------------
Main Index
---------------------------------------*/

@media screen and (min-width: 600px) {
    #index {
        margin: 0;
    }
    #index .headArea {
        margin: 0 0 25px;
    }
    #index .headArea h2 {
        font-size: 26px;
        font-weight: bold;
    }
    #index h2, #index h3, #index h4, #index h5 {
        margin: 20px 0 10px;
        text-align: center;
        position: relative;
        line-height: 1.4;
    }
    #index h2 a, #index h3 a, #index h4 a, #index h5 a {
        color: #fff;
    }
    #index h2 {
        font-size: 30px;
        font-weight: bold;
        text-align: center;
        background: #eff6cb url(./img/h2.png) left 33px center no-repeat;
        padding: 20px 25px 15px 100px;
        border: 4px solid #4fa2b5;
        border-radius: 10px;
            margin: 20px 0;
    }
    #index h3 {
        font-size: 26px;
        font-weight: bold;
        padding: 14px 10px 10px;
        position: relative;
        margin-top: 30px;
        margin-bottom: 30px;
        color: #fff;
        background: #4fa2b5;
    }
    #index h3::before, #index h3::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 10px;
    }
    #index h3::before {
        background: url(./img/h3-top.png) no-repeat;
        top: -10px;
        left: 0;
    }
    #index h3::after {
        background: url(./img/h3-bottom.png) no-repeat;
        left: 0;
        bottom: -10px;
    }
    #index h4 {
        font-size: 22px;
        font-weight: bold;
        padding: 15px 15px 25px;
        background: url(./img/h4.png) bottom center no-repeat;
    }
    #index h5 {
        font-size: 20px;
        font-weight: bold;
        padding: 15px 15px 5px;
        margin-top: 1em;
        border-bottom: 2px solid #f7cc2c;
        position: relative;
        line-height: 1.5;        
    }
    #index h5::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 1px;
        background: #f7cc2c;
        bottom: 2px;
        left: 0;
    }
    #index p.lead {
        margin: 0 0 30px;
    }
    .hero {
        background: url(./img/hero-02.png) top -120px center/892px 421px no-repeat, url(./img/hero-01.png) center center repeat-x;
        width: 100%;
        position: relative;
        -webkit-box-ordinal-group: 4;
        -ms-flex-order: 3;
        order: 3;
        margin: 0 0 55px;
    }
    .hero .inner {
        background: url(./img/hero.png) left 70px bottom no-repeat;
        width: 100%;
        padding: 30px;
        height: 380px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-end;
    }
    .hero .inner > div {
        background: rgba(255, 255, 255, 0.7);
        -webkit-box-shadow: 0 0 15px 15px rgba(255, 255, 255, 0.7);
        box-shadow: 0 0 7px 10px rgba(255, 255, 255, 0.7);
        padding: 20px 15px;
        border-radius: 10px;
        width: 60%;
    }
    .hero h2 {
        font-size: 30px;
        font-weight: bold;
        line-height: 1.4;
        position: relative;
        padding-bottom: 20px;
    }
    .hero p span {
        max-width: 100%;
        display: block;
        margin: auto;
        font-size: 14px;
        line-height: 1.4;
        color: #333;
        font-weight: normal;
        background: none;
    }
}
@media screen and (max-width: 599px) {
    #index {
        margin: 0;
    }
    #index .headArea {
        margin: 0 0 25px;
    }
    #index .headArea h2 {
        font-size: 26px;
        font-weight: bold;
    }
    #index h2, #index h3, #index h4, #index h5 {
        margin: 1em 0 10px;
        text-align: center;
        position: relative;
        line-height: 1.4;
    }
    #index h2 {
     font-size: 24px;
    font-weight: bold;
    text-align: center;
    background: #eff6cb url(./img/h2.png) left 10px center no-repeat;
    background-size: 40px;
    padding: 10px 15px 10px 53px;
    border: 4px solid #4fa2b5;
    border-radius: 10px;
        margin-bottom: 30px !important;
    }
    #index h3 {
        font-size: 22px;
        font-weight: bold;
        padding: 14px 10px 10px;
        position: relative;
        margin-top: 1em;
        margin-bottom: 15px;
        color: #fff;
        background: #4fa2b5;
    }
    #index h3::before, #index h3::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 10px;
    }
    #index h3::before {
        background: url(./img/h3-top.png) center center no-repeat;
        background-size: 170%;
        top: -2.2vw;
        left: 0;
    }
    #index h3::after {
        background: url(./img/h3-bottom.png) center center no-repeat;
        background-size: 170%;
        left: 0;
        bottom: -2.2vw;
    }
    #index h4 {
    font-size: 20px;
    font-weight: bold;
    padding: 15px 15px 25px;
    background: url(./img/h4.png) bottom center no-repeat;
    background-size: 170%;
    }
    #index h5 {
    font-size: 18px;
    font-weight: bold;
    padding: 15px 15px 5px;
    margin-top: 1em;
    border-bottom: 2px solid #f7cc2c;
    position: relative;
    }
    #index h5::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 1px;
        background: #f7cc2c;
        bottom: 2px;
        left: 0;
    }
    #index p.lead {
        margin: 0 0 30px;
    }
    .hero {
        background: #fff;
    }
    .hero .hero-img {
        background: url(./img/hero-02-sp.png) top -20px center no-repeat, url(./img/hero-01-sp.png) center center repeat-x;
        background-size: 90%, cover;
    }
    .hero .hero-img div {
           padding: 30px 15px 30px 30px;
        background: url(./img/hero.png) left 10px bottom no-repeat;
        background-size: 85px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: end;
        -ms-flex-pack: end;
        justify-content: flex-end;
    }
    .hero .hero-box {
    padding: 10px;
    background: #4fa2b5;
    color: #fff;
    line-height: 1.7;
    text-align: justify;
    }
    .hero h2 {
    font-size: 20px;
    text-align: center;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.5);
    padding: 10px;
    border-radius: 10px;
    width: 75%;
    }
}
