@charset "utf-8";
/* CSS Document */

/*----------------
about.htmlの設定
----------------*/
#about .top_img {
    position: relative;
    background-image: url(../images/about-top.jpg);
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 300px;
    margin-bottom: 150px;
    & h1 {
        font-size: 4.8rem;
        color: #fff;
        -webkit-text-stroke: 1px #888;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
} /* .hero_img */

#about section {
    display: flex;
    margin-bottom: 0;
    position: relative;
    .bg-area {
        width: 50%;
    }
    .description-area {
        max-width: 550px;
        width: 25%;
        text-align: left;
        & h2 {
            font-size: 2.4rem;
            padding-top: 50px;
            margin-bottom: 40px;
            position: relative;
        }
        & h2::before {
            content: "";
            display: inline-block;
            width: 100%;
            height: 5px;
            background: #000;
            position: absolute;
            bottom: -5px;
            opacity: 0;
        }
        & h2.on::before {
            opacity: 1;
            animation: borderLR 1.2s linear forwards;
        }
        & p {
            margin-bottom: 2rem;
        }
    }
}

/* タイトルのボーダーアニメ */
@keyframes borderLR {
    0% {
        opacity: 1;
        transform-origin: left;
        transform: scale(1, 1);
    }
    25% {
        transform-origin: left;
        transform: scale(0, 1);
    }
    50% {
        transform-origin: left;
        transform: scale(1, 1);
    }
    51% {
        transform-origin: right;
        transform: scale(1, 1);
    }
    75% {
        transform-origin: right;
        transform: scale(0, 1);
    }
    100% {
        transform-origin: right;
        transform: scale(1, 1);
    }
}

.section-history {
    .bg-area {
        background-image: url(../images/about-img1.jpg);
        background-size: cover;
        background-attachment: fixed;
    }
    .description-area {
        padding-left: 50px;
    }
}

.section-craft {
    flex-direction: row-reverse;
    .bg-area {
        background-image: url(../images/about-img2.jpg);
        background-size: cover;
        background-attachment: fixed;
    }
    .description-area {
        padding-right: 50px;
    }
}

/*------------------
スマートフォンの設定//
------------------*/
@media(max-width:768px) {
    #about .top_img {
        margin: 80px 0 100px;
    } /* .hero_img */

    #about section {
        display: block;
        margin-bottom: 0;
        position: static;
        .bg-area {
            width: 100%;
            height: 480px;
            background-position: 10%,50%;
        }
        .description-area {
            max-width: 550px;
            width: 95%;
            margin: 0 auto 100px;
            text-align: left;
        }
    }
    .section-history {
        .description-area {
            padding-left: 0px;
        }
    }

    .section-craft {
        .description-area {
            padding-right: 0px;
        }
    }
}
/*----- about.htmlの設定 ここまで -----*/