/**
* 投稿カード共通スタイル
*
* main_baseで読み込まれているため、認証以外の全画面で適用されます。
*
* リアクションとタグの共通スタイルをimportしています。
* 上記共通スタイルを適用したい場合は、親要素にpost-baseクラスを設定してください。
*/
@import url('reaction.css');
@import url('region.css');
@import url('tag.css');

.rec-frame {
    border-radius: 20px;
    padding-bottom: 5px;
    margin-bottom: 20px;
}
.rec-frame.feed {
    background-color: var(--base_blue);
}
.rec-frame.hot {
    background-color: var(--base_blue_light);
}
.rec-frame.hot.top-1 {
    background-color: var(--base_red);
}
.rec-frame.hot.top-2,
.rec-frame.hot.top-3 {
    background-color: var(--base_blue);
}
.rec-frame.hot.top {
    padding-bottom: 20px;
}
.rec-frame h1.frame-title {
    height: 50px;
    line-height: 50px;
    margin-left: 20px;
    font-size: var(--font_size_14);
    color: white;
}
.rec-frame h1.frame-title span {
    margin-right: 20px;
    float: right;
    font-size: var(--font_size_14);
}
.rec-frame.hot.top .slide {
    margin-right: -20px;
    margin-left: 20px;
}
.rec-frame .post-card {
    margin-bottom: 0;
}

.post-card {
    position: relative;
    padding-bottom: 20px;
    border-radius: 20px;
    background-color: var(--base_gray_light);
    margin-bottom: 20px;
    overflow: hidden;
}
.post-card .post-link {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    transition: all .2s;
}
.post-card .user-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
    z-index: 5;
}
.post-card .header {
    display: flex;
    align-items: center;
}
.post-card .spot-icon {
    width: 20px;
    height: 20px;
    margin-left: 65px;
    margin-right: 5px;
}
.post-card .spot-icon.no-img {
    width: 0px;
    margin-left: 60px;
}
.post-card h1 {
    max-width: 150px;
    height: 48px;
    line-height: 48px;
    font-size: var(--font_size_16);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.post-card .post-photo {
    width: 100%;
    border-radius: 20px;
}
.post-card .post-photo.fixed {
    height: 196px;
    object-fit: cover;
}
.rec-frame.hot.top .post-card .post-photo.fixed {
    height: 260px;
}

.rec-frame.feed .fixed-scale,
.rec-frame.hot  .fixed-scale {
    width: 100%;
    padding-top: 100%;
    position: relative;
}
.rec-frame.feed .fixed-scale img,
.rec-frame.hot  .fixed-scale img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

.post-card .reaction {
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 165px;
    height: 80px;
    margin: auto;
    margin-top: -40px;
    background-color: white;
    border-radius: 20px;
    z-index: 20;
}

.post-card .tag {
    max-height: 68px;
    margin-top: 20px;
    padding: 0 10px;
    overflow: hidden;
    flex-flow: wrap !important;
}
.post-card .tag a {
    margin-right: 10px;
}

.post-card .prefecture {
    display: flex;
    width: max-content;
    height: 22px;
    line-height: 20px;
    margin: 0 0 5px 10px;
    padding-right: 10px;
    border-radius: 11px;
    border: solid 1px;
    font-size: var(--font_size_12);
    font-weight: normal;
    background-color: white;
}
.post-card .prefecture p {
    float: right;
    width: max-content;
    margin: 0 !important;
    font-size: var(--font_size_10) !important;
}
.post-card .prefecture span {
    float: left;
    display: block;
    height: 100%;
    padding: 0 20px;
    margin-right: 5px;
    color: white;
    border-radius: 10px;
    font-size: var(--font_size_10);
    font-weight: normal;
}

.post-card .view_name {
    padding-left: 10px;
}
.post-card .date {
    display: flex;
    align-items: center;
    margin-top: 10px;
}
.post-card .date p {
    margin-left: 10px;
    padding-left: 22px;
    font-size: var(--font_size_12);
    font-weight: normal;
    background-repeat: no-repeat;
    background-size: 20px;
}
.post-card .date p.spot-date {
    background-image: url(../../img/commons/place_icon.png);
}
.post-card .date p.post-date {
    color: var(--base_gray_darkest);
    background-image: url(../../img/commons/edit_icon.png);
}

/* col-lg */
@media (min-width: 1200px) {
    .post-base.top {
        padding: 0 30px;
    }
}
/* col-lg */
@media (min-width: 992px) and (max-width: 1199px) {
    .post-base.top {
        padding: 0 30px;
    }
    .post-card .post-photo.fixed {
        height: 224px;
    }
    .post-card .reaction {
        width: 160px;
    }
}
/* col-md */
@media (min-width: 768px) and (max-width: 991px) {
    .rec-frame.hot.top h1.frame-title span {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        display: block;
        margin: auto;
        width: max-content;
    }
    .rec-frame.hot.top .slide {
        padding: 0 60px;
        margin: auto;
    }
    .post-card h1 {
        font-size: var(--font_size_14);
    }
    .post-card .post-photo.fixed {
        height: 220px;
    }
    .post-card .reaction {
        width: 180px;
    }
}
/* col-* and col-sm */
@media (min-width: 0px) and (max-width: 767px) {
    .rec-frame.hot.top h1.frame-title span {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        display: block;
        margin: auto;
        width: max-content;
    }
    .rec-frame.hot.top .slide {
        padding: 0 60px;
        margin: auto;
    }
    .post-card h1 {
        max-width: 185px;
        font-size: var(--font_size_14);
    }
    .post-card .post-photo.fixed {
        height: 200px;
    }
    .post-card .reaction {
        width: 180px;
    }
}
