/* 寺院一覧 */
.temple {
    margin-bottom: 30px;
}

.temple h1 {
    font-size: 20px;
    font-weight: bold;
    border-left: 6px solid #05aa22;
    padding: 5px 10px;
    margin: 30px 0 20px 10px;
}

.temple .card-item {
    border: none;
    border-bottom: 1px solid #ccc;
    width: 100%;
    padding: 0;
}

.temple .card-item:after {
    display: block;
    position: absolute;
    right: 8px;
    top: 42%;
    content: "";
    width: 10px;
    height: 10px;
    margin: -5px 0 0 0;
    border-top: solid 3px #0087cd;
    border-right: solid 3px #0087cd;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}
.temple .card-item.nolink:after{
    display: none;
}

.temple .card-data {
    margin: 0 10px;
    width: 90%;
}

.temple .card-data .data-title {
    color: #0087cd;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.5;
    height: auto;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 2;
}
.temple .nolink .card-data .data-title{
    color: #ccc;
}

.temple .card-data .data-category {
    margin-right: 12px;
}

.temple .detail-box dl dt:nth-of-type(3) {
    background: none;
}

.temple .box-bg {
    background: #edf6e3;
    padding: 10px 15px;
}

.cate-box-ttlsub {
    font-weight: bold;
    padding: 10px 10px 0;
}
.cate-box li a {
    margin-bottom: 0;
}

.heading-image figure {
    margin: 10px 0 0;
}

@media only screen and (min-width:768px) {

    /* 寺院一覧 */
    .temple h1 {
        font-size: 28px;
        border-left: 8px solid #05aa22;
        padding: 5px 10px;
        margin: 30px 0 20px;
    }
    .card-list {
        flex-flow: wrap;
    }
    .card-list li {
        margin: 0;
    }
    .card-item {
        display: flex;
        width: 48%;
        max-width: 48%;
        border: none;
        border-bottom: 1px solid #ccc;
    }
    .card-item figure {
        width: 120px;
    }
    .card-data {
        margin: 0 10px;
        width: 60%;
    }

    /* 寺院詳細 */
    .temple > .section-link > ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .temple > .section-link > ul li.card-item {
        display: block;
        margin: 0 2% 10px 0;
        max-width: 48%;
        min-width: 48%;
    }

    .heading-container {
        width: calc(50% - 20px);
    }
    .heading-meta dl {
        width: 100%;
    }
    .heading-image {
        width: 50%;
    }
    .heading-image figure {
        width: 48%;
        float: left;
        margin: 0 1%;
        height: auto;
        overflow: hidden;
        text-align: center;
    }
    .heading-image figure img{
        width: auto;
        height: 180px;
    }
}
