﻿


div[data-html="DiarySolo"],
div[data-html="DiaryList"],
div[data-html="DiaryNews"] {
    width: 100%;
    margin: 20px auto 0 auto;
    padding: 0px;
    box-sizing: border-box;

}

    div[data-html="DiarySolo"] ul,
    div[data-html="DiaryList"] ul,
    div[data-html="DiaryNews"] ul {
        list-style: none;
        display: flex;
        flex-flow: row wrap;
        justify-content: space-between;
        margin: 0 auto;
    }

        div[data-html="DiarySolo"] ul li,
        div[data-html="DiaryList"] ul li,
        div[data-html="DiaryNews"] ul li {
            width: 160px;
            margin-bottom: 10px;
            padding: 0px;
            text-align: center;

        }

            div[data-html="DiarySolo"] ul li a,
            div[data-html="DiaryList"] ul li a,
            div[data-html="DiaryNews"] ul li a {
                color: inherit;
                width: inherit;
                display: block;
                text-decoration: none;
            }

                div[data-html="DiarySolo"] ul li a p,
                div[data-html="DiaryList"] ul li a p,
                div[data-html="DiaryNews"] ul li a p {
                    margin: 0;
                    padding: 0;
                    font-size: 12px;
                }

                    div[data-html="DiarySolo"] ul li a p.Date,
                    div[data-html="DiaryList"] ul li a p.Date,
                    div[data-html="DiaryNews"] ul li a p.Date {
                        font-size: smaller;
                        color: #FFF;
                        text-align: center;
                    }

                    div[data-html="DiarySolo"] ul li a p.Image,
                    div[data-html="DiaryList"] ul li a p.Image,
                    div[data-html="DiaryNews"] ul li a p.Image {
                        box-sizing: border-box;
                        width: 160px;
                        max-height: 225px;
                        text-align: center;
                        vertical-align: middle;
                        display: table-cell;
                    }

                        div[data-html="DiarySolo"] ul li a p.Image img,
                        div[data-html="DiaryList"] ul li a p.Image img,
                        div[data-html="DiaryNews"] ul li a p.Image img {
                            width: 160px;
                            max-height: 160px;
                            object-fit: cover; /* この一行を追加するだけ！ */
                        }

                    div[data-html="DiarySolo"] ul li a p.Author,
                    div[data-html="DiaryList"] ul li a p.Author,
                    div[data-html="DiaryNews"] ul li a p.Author {
                        font-size: smaller;
                        color: #fff;
                        background-color: #444;
                        text-align: center;
                        margin: 0px auto;
                        width: 98%;
                    }

                    div [data-html="DiarySolo"] ul li a p.Title,
                    div [data-html="DiaryList"] ul li a p.Title,
                    div[data-html="DiaryNews"] ul li a p.Title {
                        color: #fff;
                        font-size: 14px;
                        text-align: center;
                        width: 95%;
                    }
/* --------------------------------------------日記-------------------------------------------------------- */
div[data-html="DiaryDetail"] {
    width: 600px;
    margin: 20px auto 0 auto;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
}

    div[data-html="DiaryDetail"] p {
        margin: 0 auto;
        padding: 0;
        color: #fff;
        font-size: 1em;
        text-align: left;
        width: 90%;
    }

    div[data-html="DiaryDetail"] img {
        width: 100%;
        margin: 10px auto;
        text-align: center;
    }

    div[data-html="DiaryDetail"] p.Title {
        width: 100%;
        margin: 10px auto;
        color: #111;
        font-size: 1.2em;
        font-weight: bold;
        text-align: center;
        background-color: #fff;
        padding: 8px 0;
        box-sizing: border-box;
    }

    div[data-html="DiaryDetail"] p.Date {
        color: #fff;
        font-size: large;
        text-align: left;
    }

    div[data-html="DiaryDetail"] p.Author {
        font-size: 18px;
        color: #fff;
        text-align: center;

        text-align: center;
        margin: 5px 0;
        padding: 4px;
        width: 100%;
       
    }



#Diarybotton a {
    color: #000;
    display: block;
    text-align: center;
    background-color: #fff;
    text-align: center;
    margin: 20px auto;
    width: 180px;
    padding: 8px;
}

.img-frame {
    display: none;
}
/*===============================================
    ●smart.css  画面の横幅が640pxまで
    ===============================================*/

@media only screen and (max-width: 640px) {

    div[data-html="DiarySolo"],
    div[data-html="DiaryList"],
    div[data-html="DiaryNews"] {
        width: 100%;
        margin: 0 auto;
        padding: 0px;
        box-sizing: border-box;
    }

        div[data-html="DiarySolo"] ul,
        div[data-html="DiaryList"] ul,
        div[data-html="DiaryNews"] ul {
            list-style: none;
            display: flex;
            flex-flow: row wrap;
            justify-content: space-between;
            margin: 0 auto;
        }

            div[data-html="DiarySolo"] ul li,
            div[data-html="DiaryList"] ul li,
            div[data-html="DiaryNews"] ul li {
                width: 33.2%;
                margin-bottom: 10px;
                padding: 0px;
                text-align: center;
  
            }

                div[data-html="DiarySolo"] ul li a,
                div[data-html="DiaryList"] ul li a,
                div[data-html="DiaryNews"] ul li a {
                    color: inherit;
                    width: inherit;
                    display: block;
                    text-decoration: none;
                }

                    div[data-html="DiarySolo"] ul li a p,
                    div[data-html="DiaryList"] ul li a p,
                    div[data-html="DiaryNews"] ul li a p {
                        margin: 0;
                        padding: 0;
                        font-size: 12px;
                        width:250%;
                    }

                        div[data-html="DiarySolo"] ul li a p.Date,
                        div[data-html="DiaryList"] ul li a p.Date,
                        div[data-html="DiaryNews"] ul li a p.Date {
                            width: 290%;
                            color: #fff;
                            text-align: center;
                        }

                        div[data-html="DiarySolo"] ul li a p.Image,
                        div[data-html="DiaryList"] ul li a p.Image,
                        div[data-html="DiaryNews"] ul li a p.Image {
                            box-sizing: border-box;
                            width: 290%;
                            margin: 0 auto;
                            max-height: 220px;
                            text-align: center;
                            vertical-align: middle;
                            display: table-cell;
                        }

                            div[data-html="DiarySolo"] ul li a p.Image img,
                            div[data-html="DiaryList"] ul li a p.Image img,
                            div[data-html="DiaryNews"] ul li a p.Image img {
                                width: 290%;
                                max-height: 110px;
                                object-fit: cover; /* この一行を追加するだけ！ */
                            }

                        div[data-html="DiarySolo"] ul li a p.Author,
                        div[data-html="DiaryList"] ul li a p.Author,
                        div[data-html="DiaryNews"] ul li a p.Author {
                            font-size: smaller;
                            color: #fff;
                            background-color: #666;
                            text-align: center;
                            margin: 4px auto;
                            width: 290%;
                         
                        }

                        div [data-html="DiarySolo"] ul li a p.Title,
                        div [data-html="DiaryList"] ul li a p.Title,
                        div[data-html="DiaryNews"] ul li a p.Title {
                            color: #fff;
                            font-size: 14px;
                            text-align: center;
                            width: 290%;
                        }
                        
                        
    /* --------------------------------------------日記-------------------------------------------------------- */
    div[data-html="DiaryDetail"] {
        width: 100%;
        margin: 20px auto 0 auto;
        padding: 10px;
        box-sizing: border-box;
        text-align: center;
    }

        div[data-html="DiaryDetail"] p {
            margin: 0 auto;
            padding: 0;
            color: #fff;
            font-size: 1.2em;
            text-align: left;
            width: 90%;
        }

        div[data-html="DiaryDetail"] img {
            width: 100%;
            margin: 10px auto;
            text-align: center;
        }

        div[data-html="DiaryDetail"] p.Title {
            width: 90%;
            margin: 10px auto;
            color: #666;
            font-size: 1.2em;
            font-weight: bold;
            text-align: center;
            background-color: #fff;
            padding: 8px 0;
            box-sizing: border-box;
        }

        div[data-html="DiaryDetail"] p.Date {
            color: #fff;
            font-size: large;
            text-align: left;
        }

        div[data-html="DiaryDetail"] p.Author {
            font-size: 20px;
            color: #fff;
            text-align: center;

            text-align: center;
            margin: 2px 0;
        
            width: auto;

        }



    #Diarybotton a {
        color: #000;
        display: block;
        text-align: center;
        background-color: #fff;
        text-align: center;
        margin: 20px auto;
        width: 180px;
        padding: 8px;
    }
}




