
/**********
/* header */
/**********/
header {
    display: flex;
    justify-content: space-between;
}
header > .main h1 {
    font-size: 3em;
    font-weight: bold;

}
header > .main img {
    margin: 10px 0 0 70px;
    width: 810px;
}
/* theme image とどれぐらい重ねるか */
header > .side-menu {
    margin: 0 0 0 -50px;
}
header > .side-menu > .links {
    display: flex;
    align-items: center;
    color: #2b326a
}
header > .side-menu > .links > a {
    margin: 0 15px;
    flex-shrink: 0;
}
header > .side-menu > .links > a:hover {
    opacity: 0.6;
}
header > .side-menu > .links > a.blog:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 5px;
}
header > .side-menu > .contents {
    font-size: 1.2em;
    margin: 60px 15px 0;
}
/********
/* main */
/********/
main {
    margin: 30px auto;
}
main > h2 {
    font-size: 2.6em;
    font-weight: bold;
    margin: 0 0 10px 0
}
main > .tags li:hover {
    opacity: .8;
}
/*************
/* article
/*************/
main > .latest-post {
    margin: 40px 0 20px;
}
main > .latest-post > h2 {
    margin: 15px 0;
    color: #a6a6a6;
    font-size: 1.3em;
}
main > .latest-post .post {
    background-color: #f2ece3;
    padding: 55px;
    display: flex;
    align-items: center;
}
main > .latest-post .post:hover {
    opacity: .8;
}
main > .latest-post .post > img {
    width: 40%;
    height: 340px;
    margin: 0 40px 0 0;
    flex: none;
    object-fit: cover;
}
main > .latest-post .post .date {
    color: #ac8484;
    font-size: .98em;
}
main > .latest-post .post h2 {
    margin: 5px 0 15px;
    font-size: 1.6em;
    display: inline-block;
}
main > .latest-post .post .tags {
    margin: 5px 0 10px;
}
main > .latest-post .post-content {
    height: 215px;
    overflow: hidden;
    /* 本来 reset-css で reset されているはずの設定 */
    line-height: 150%;
}
main > .recent-post {
    margin: 40px 0 120px;
}
main > .recent-post > h2 {
    margin: 15px 0;
    color: #a6a6a6;
    font-size: 1.3em;
}
main > .recent-post .posts {
    display: flex;
}
main > .recent-post .post {
    flex: 1;
    /* これがタイトルを overflow させる肝の指定 */
    min-width: 0;
    padding: 20px 20px 25px;
    margin: 0 0 0 20px;
    background-color: #eef3f5;
}
main > .recent-post .post:hover {
    opacity: .8;
}
main > .recent-post .post:first-child {
    margin: 0
}
main > .recent-post .post .thumbnail img {
    min-width: 100%;
    height: 230px;
    min-height: 230px;
    object-fit: cover;
}
main > .recent-post .post h2 {
    margin: 10px 0 20px;
    font-size: 1.3em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
main > .recent-post .tags-and-post-date {
    margin: 4px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
main > .recent-post .tags {
    height: 26px;
    min-width: 0;
    overflow: hidden;
}
main > .recent-post .tags > li {
    padding: 6px 6px 3px;
    font-size: .85em;
    margin: 0 2px 10px;
}
main > .recent-post .tags-and-post-date > .date {
    padding: 0 0 0 3px;
    color: #849eac;
    font-size: .8em;
    white-space: nowrap;
}
main > .recent-post .post-content {
    color: #333;
    font-size: .88em;
    height: 65px;
    overflow: hidden;
    /* 本来 reset-css で reset されているはずの設定 */
    line-height: 150%;
}
@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
    }
    header > .main h1::before {
        background-size: 93px;
        height: 123px;
        right: 23px;
    }
    header > .main h1 {
        font-size: 2em;
    }
    header > .main img {
        margin: 30px auto;
        padding: 0 10px;
        min-height: 400px;
        object-fit: cover;
    }
    header > .side-menu {
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 15px 50px 0;
        font-size: .85em;
    }
    header > .side-menu .links, 
    header > .side-menu .contents {
        margin: 0;
    }
    header > .side-menu .links a {
        margin: 0 10px;
        flex-shrink: 1;
    }
    main {
        margin: 40px auto;
    }
    main h2 {
        font-size: 1.8em;
        margin: 0 0 20px 0;
    }
    main > .latest-post .post {
        padding: 20px;
        flex-direction: column;
    }
    main > .latest-post .post > .content {
        padding: 0 8px 8px;
    }
    main > .latest-post .post > img {
        width: 100%;
        margin: 0 0 10px;
    }
    main > .recent-post {
        margin: 40px 0 70px;
    }
    main > .recent-post .posts {
        flex-direction: column;
    }
    main > .recent-post .post {
        margin: 15px 0;
    }
    main > .recent-post .post:first-child {
        margin: 15px 0;
    }
}
