/**
astra-child blog page styles
*/

/* main container */
.container {

    /* Reset */

    button,
    select {
        text-transform: none;
    }

    button,
    input,
    optgroup,
    select,
    textarea {
        -webkit-appearance: none;
        appearance: none;
        vertical-align: middle;
        color: inherit;
        font: inherit;
        background: transparent;
        padding: 0;
        margin: 0;
        outline: 0;
        border-radius: 0;
        text-align: inherit;
    }

    *,
    ::before,
    ::after {
        box-sizing: border-box;
        border-style: solid;
        border-width: 0;
    }

    ul,
    ol {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .button {
        color: #333;
        background-color: #e8e8e8;
        text-align: center;
        padding: 10px 30px;
        border-radius: 100px;
    }

    .button,
    .button::before,
    .button::after {
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        -webkit-transition: all .3s;
        transition: all .5s;
    }

    .button:hover {
        background-color: #333;
        color: #fff;
        transition: background-color .2s;
    }

    .button i.fa {
        margin-left: 15px;
    }


    /* トップ */

    .blog-hero {
        padding: 0 6%;
        padding-top: 50px;
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }

    .blog-title-img {
        width: 250px;
    }

    .blog-heading {
        display: flex;
        justify-content: space-between;
        margin-top: 10px;
        margin-bottom: 15px;
    }

    .blog-caption {
        margin-top: 30px;
        color: #888888;
    }

    /* blog menu */
    .azmedia-menu {
        ul {
            width: 100%;
            display: flex;
            justify-content: space-around;
            background-color: #fff;
            margin-top: 10px;
            margin-bottom: 20px;
            border-radius: 100px;
            color: #333;
        }

        li {
            padding: 20px;
        }
    }

    /* search bar */
    .heading-top {
        font-size: 1.125em;
        margin-top: 0;
        margin-bottom: 20px;
        display: block;
        font-weight: bold;
        color: #333333;
    }

    .search-conteiner {
        display: flex;

        .archive-ul {
            margin-left: 10px;
            margin-right: 10px;
        }
    }

    .archive {
        padding: 0 10px;
        background-color: #fff;
        border-radius: 2px;
        height: 40px;
        color: #757575;
    }

    /* 検索フォーム */
    .search-box {
        width: 254px;
        height: 50px;

        #form {
            position: relative;

            #s-box {
                width: 100%;
                height: 40px;
                padding: 0 10px;
                position: absolute;
                left: 0;
                top: 0;
                border-radius: 2px;
                outline: 0;
                background-color: #fff;
                border-width: 0;
            }

            #s-btn-area {
                height: 40px;
                position: absolute;
                right: 0;
                top: 0;
                background: none;
                color: #666;
                border: none;
                font-size: 20px;
                outline: 0;


                #s-btn {
                    background-color: #333;
                    text-align: center;
                    width: 49px;
                    height: 28px;
                    position: relative;
                    right: 8px;
                    border-radius: 3px;
                    font-size: 16px;
                    color: #fff;
                    line-height: 26px;
                }
            }
        }
    }

    /* blog posts */
    .top-box {
        max-width: 1500px;
        height: auto;
        background-color: #fff;
        margin-bottom: 40px;
        display: flex;
        transition: 0.3s;
        border-radius: 7px;
    }

    .top-box-img {
        width: 60%;
    }

    .top-box-img img {
        width: 100%;
        height: 460px;
        border-radius: 7px 0px 0px 7px;
        object-fit: cover;
    }


    .top-box-txt {
        padding: 4%;
        width: 40%;
        position: relative;
        background-color: #fff;
        display: flex;
        justify-content: center;
        flex-direction: column;
        border-radius: 0 7px 7px 0;
    }

    .top-box-txt p {
        color: #888888;
    }

    .cat {
        font-size: 0.875em;
        font-weight: normal;
        color: #333;
        background-color: #f5f5f5;
        padding: 3px 15px;
        border-radius: 100px;
    }

    .date {
        width: 100%;
        display: flex;
        justify-content: space-between;
        font-size: 0.9em;
    }

    .day {
        color: #4c4c4c;
        font-size: 0.875em;
    }

    .article-title-big {
        font-size: 1.75em;
    }

    .top-box:hover {
        box-shadow: 0 20px 30px -5px rgba(0, 0, 0, .15), 0 0 5px rgba(0, 0, 0, .1);
    }

    .wrapper-media {
        width: 100%;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .wrapper-media:after {
        content: "";
        display: block;
        width: 24%;
        height: 0;
    }

    .wrapper-media:before {
        content: "";
        display: block;
        width: 24%;
        height: 0;
        order: 1;
    }

    .box-media {
        width: 24%;
        background-color: #fff;
        margin-bottom: 2%;
        transition: .3s;
        border-radius: 7px;
    }

    .box-media:hover {
        box-shadow: 0 20px 30px -5px rgba(0, 0, 0, .15), 0 0 5px rgba(0, 0, 0, .1);
    }

    .box-media img {
        width: 100%;
        height: 200px;
        border-radius: 7px 7px 0 0px;
        object-fit: cover;
    }

    .media-txt {
        padding: 6%;
        background-color: #fff;
        border-radius: 7px;
    }

    .media-txt .cat {
        font-size: 0.75em;
        font-weight: normal !important;
        color: #333;
        background-color: #f5f5f5;
        padding: 3px 15px;
        border-radius: 100px;
    }

    .media-txt .day {
        font-size: 0.875em;
    }

    .media-txt h3 {
        font-size: 1em;
        line-height: 1.8;
        font-weight: bold;
    }

    .blog-button-cover {
        width: 100%;
        margin-top: 20px;
        margin-bottom: 15px;
        display: flex;
        justify-content: flex-end;

        .button {
            line-height: 2.1;
        }
    }

}