@charset "utf-8";

/*============================
代表挨拶
============================*/
#message .inner > .photo {
    margin-bottom: 40px;
}

#message .inner > .photo img {
    width: 100%;
}

#message .message_box .photo {
    width: 240px;
	/*写真がくるまで一時的なコード*/
	display: none;
}

#message .message_box .photo img {
    width: 100%;
}

#message .message_box .name {
    text-align: right;
    font-size: 16px;
    font-weight: bold;
}

#message .message_box .text {
    width: 490px;
	/*写真がくるまで一時的なコード*/
	width: 100%;
}

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

    #message .inner > .photo {
        height: 0;
        padding-top: 50%;
        position: relative;
        margin-bottom: 20px;
    }

    #message .inner > .photo img,
    #message .message_box .photo img {
        height: 100%;
        object-fit: cover;
        object-position: center;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: auto;
    }

    #message .message_box .photo {
        width: 100%;
        margin: 0 auto 20px;
        height: 0;
        padding-top: 45%;
        position: relative;
    }

}
