/* -----------------------------------------------------
    singleページCSS
----------------------------------------------------- */
.single-page {
    max-width: 1000px;
    width: 90%;
    margin: 160px auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}
.single-page__image {
    width: 36%;
    img {
        width: 100%;
        height: auto;
    }
}
.single-page__contents {
    width: 60%;
    .title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    .lists {
        list-style: none;
        li {
            margin: 0;
            text-indent: initial;
            line-height: 1.3;
            font-size: 16px;
            text-align: justify;
        }
        .caption { margin-bottom: 20px; }
        .photographer, .date, .place {
            font-size: 12px;
            color: #777;
            line-height: 1.6;
        }
    }
}
.single-page__link {
    display: block;
    width: 100%;
    max-width: 270px;
    margin: 50px auto 0;
    text-align: center;
    background: #279393;
    color: #fff !important;
    padding: 20px;
    border-radius: 30px;
    letter-spacing: 1px;
    transition: .4s all;
    border: 2px solid #279393;
    &:hover {
        transition: .4s all;
        background: #fff;
        color: #279393 !important;
    }
}

@media screen and (max-width: 768px) {
    .single-page {
        flex-flow: column;
        margin: 100px auto;
    }
    .single-page__image {
        width: 70%;
        margin: 0 auto 30px;
    }
    .single-page__contents {
        width: 100%;
        .title { margin-bottom: 10px; }
    }
}

@media screen and (max-width: 480px) {
    .single-page__image { width: 100%; }
    .single-page__contents {
        .title { font-size: 20px; }
        .lists {
            list-style: none;
            li { font-size: 15px; }
            .caption { margin-bottom: 10px; }
        }
    }
}



/* -----------------------------------------------------
    date（月別アーカイブ）ページCSS
----------------------------------------------------- */
.date-page {
    max-width: 1200px;
    width: 95%;
    margin: 140px auto;
    display: grid;
    grid-template-columns: auto 300px;
    gap: 40px;
}
.date-page__contents {    
    h1 { font-size: 26px; }
}
.date-page__card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 3%;
    margin: 40px 0 60px;
}
.date-page__post {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: rgba(100, 100, 111, 0.2) 0 7px 29px 0;
    .date-page__post__link {
        display: block;
        height: 100%;
        color: #000;
        transition: .4s all;
        &:hover {
            opacity: .7;
            transition: .4s all;
        }
    }
    .date-page__post__thumb {
        img {
            aspect-ratio: 16 / 9;
            object-fit: cover;
            width: 100%;
            height: 100%;
        }
    }
    .date-page__detail {
        padding: 25px 20px;
        .date {
            display: block;
            text-align: right;
            font-size: 14px;
        }
        .desc {
            overflow: hidden;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 3;
            font-size: 15px;
            line-height: 1.4;
            text-align: justify;
        }
    }
}
.date-page__pagination {
    text-align: center;
    .navigation { padding: 20px 0 }
    h2 { display: none; }
    span, a {
        color: #333;
        padding: 5px 11px;
        border-radius: 25px;
        border: 1px solid #333;
        margin: 0 2px;
        font-size: 15px;
        transition: .3s all;
        cursor: pointer;
        &:hover {
            color: #fff;
            background-color: #333;
            transition: .3s all;
        }
        &.current {
            color: #fff;
            background-color: #333;
        }
    }
}
.date-page__sidebar {
    ul { list-style: none;}
    a {
        color: #333;
        transition: .3s all;
        &:hover {
            opacity: .7;
            transition: .3s all;
        }
    }
    h2.title {
        border-bottom: 2px solid #333;
        padding-bottom: 8px;
        margin-bottom: 20px;
    }
    .year {
        margin: 0 0 20px 20px;
        cursor: pointer;
        ul.year-child {
            margin-top: 5px;
        }
    }
    .month {
        padding: 5px 0;
    }
}
@media screen and (max-width: 1080px) {
    .date-page {
        grid-template-columns: auto 200px;
    }
    .date-page__card {
        gap: 2rem 3%;
    }
}
@media screen and (max-width: 768px) {
    .date-page {
        margin: 100px auto;
        grid-template-columns: 1fr;
    }
    .date-page__post .date-page__detail .desc {
        font-size: 13px;
    }
    .date-page__post .date-page__detail .date {
        font-size: 12px;
    }
}
@media screen and (max-width: 640px) {
    .date-page__card {
        grid-template-columns: 1fr;
    }
}