@charset "utf-8";

/**************************************
詳細ページ
***************************************/

/* お名前 */
#page_title {
    margin-top: 50px;
    font-size: 5rem;
}

/* プロフィール */
#prof_name {
    font-family: ipaexm;
    text-align: center;
    font-size: 5.0rem;
    margin: 20px 0;
}
#prof_kana {
    text-align: center;
    font-size: 1.8rem;
    margin: 10px 0 20px;
}
#prof_birth_died {
    text-align: center;
    font-size: 2.5rem;
    margin: 10px 0;
}
#prof_role {
    text-align: center;
    font-size: 1.8rem;
    margin: 20px 0;
}

#page_info {
    width: 450px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.3rem;
}
#page_info li {
    line-height: 1.7;
}

/**************************************
故人について
***************************************/

#about_box {
    margin: 0 auto;
    margin-bottom: 20px;
    padding: 10px;
    width: 450px;
    background-color: #e6eae3;
    text-align: center;
    font-size: 1.5rem;
    line-height: 1.5;
}
#about_name {
    font-size: 1.8rem;
    margin-bottom: 5px;
}
#about_contents {
    text-align: left;
    max-height: 200px;
    overflow: auto;
}

/**************************************
お花・お線香投稿フォーム
***************************************/

#offering_form_box {
    margin: 0 auto;
    margin-bottom: 15px;
    margin-top: 15px;
    padding: 10px 0;
    width: 360px;
    background-color: #e6eae3;
    text-align: center;
    font-size: 1.5rem;
}

#senko_box, #flower_box {
    position: relative;
    margin: 0 auto;
    margin-bottom: 15px;
    padding: 10px 0;
    width: 450px;
    min-height: 100px;
    background-color: #e6eae3;
    text-align: center;
    font-size: 1.5rem;
    line-height: 1.5;
}

#flower_box img {
    padding: 3px;
}
#senko_box a {
    font-size: 2rem;
}
#senko_box img {
    padding: 0 5px 0 20px;
}

/**************************************
コメントフォーム 
***************************************/

#comment_post_form {
    margin: 0 auto;
    padding: 10px 0;
    width: 450px;
    background-color: #e6eae3;
    text-align: center;
    font-size: 1.5rem;
    line-height: 1.5;
}
#comment_page {
    margin: 5px;
}
#comment_input {

}
#comment_textarea {
    width: 400px;
    height: 100px;
}
#comment_submit_btn {
    margin-top: 10px;
    width: 100px;
    height: 30px;
}
#comment_option {
    margin-bottom: 20px;
}

#comment_result {
    font-size: 2rem;
    padding: 10px;
    margin: 0 auto;
    margin-top: 20px;
    width: 80%;
    background-color: #f9f1e9;
}

.comment_table {
    font-size: 1.7rem;
    margin: 0 auto;
    display: table;
    line-height: 1.6;
}

.comment_key {
    text-align: left;
    width: 70px;
    display: table-cell;
}
.comment_value {
    width: 200px;
    display: table-cell;
}

.comment_table input[type=file],
.comment_table input[type=password],
.comment_table input[type=text] {
    width: 170px;
}

/**************************************
flowers
***************************************/

#flowers {
    margin-top: 20px;
    text-align: center;
    margin-bottom: 30px;
}
#flowers img{
    margin-top: 10px;
    margin-left:10px;
    margin-right:10px;
}

/**************************************
senkos
***************************************/

#senkos_box {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    text-align: center;
    margin-top: 110px;
    margin-bottom: 30px;
    text-align: center;
}
#senkos img{
    margin-left:0px;
    margin-right:0px;
}

#senko_all span{
    margin-left:10px;
}

/**************************************
ボックス共通
***************************************/

.box_close_btn {
    position: absolute;
    line-height:1;
    top: 4px;
    right: 4px;
    width: 25px;
    height: 25px;
    font-size: 2.5rem;
    background-color: #eed;
    border: 1px solid #ddc;
    color: #999;
    cursor: pointer;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
}

.box_close_btn a {
    
}

/**************************************
暮らした時代
***************************************/

#nengo_box {
    position: relative;
    margin: 5px 0 auto;
    padding: 10px 0 20px;
    width: 450px;
    border: 1px solid #9eb4db;
    text-align: center;
    font-size: 1.5rem;
    line-height: 1.5;
}

.nengo_box_close {
    font-size: 2rem;
    margin-top: 20px;
}

.nengo_info_text {
    font-size: 1.5rem;
    margin: 10px;
}

.nengo_sub_title {
    text-align: center;
    font-size: 2rem;
    background-color: #e7f1ed;
    padding: 5px;
    margin: 20px 0 10px;
}

/**************************************
memorials一覧
***************************************/

#memorial_box {
    position: relative;
    margin: 5 auto;
    padding: 10px 0 20px;
    width: 450px;
    border: 1px solid #9eb4db;
    text-align: center;
    font-size: 1.5rem;
    line-height: 1.5;
}

.memorial_box_close {
    font-size: 2rem;
    margin-top: 20px;
}

.memorial_info_text {
    font-size: 1.5rem;
    margin: 10px;
}

.memorial_sub_title {
    text-align: center;
    font-size: 2rem;
    background-color: #e7f1ed;
    padding: 5px;
    margin: 20px 0 10px;
}

/**************************************
access一覧
***************************************/

#access_box {
    position: relative;
    margin: 5 auto;
    padding: 10px 0 20px;
    width: 450px;
    border: 1px solid #9eb4db;
    text-align: center;
    font-size: 1.5rem;
    line-height: 1.5;
}
.access_box_close {
    font-size: 2rem;
    margin-top: 20px;
}

.access_info_text {
    font-size: 1.5rem;
    line-height: 1;
    margin: 10px;
}

#access_dates {
    margin-top: 20px;
    line-height: 1.3;
    font-size: 1.7rem;
}

/**************************************
コメントボックス
***************************************/

#comment_container {
    margin-top: 20px;
    text-align: center;
    font-size: 0;
}

#comment_container .c_header {
    padding-bottom: 10px;
}
#comment_container .c_name {
    margin-top: 10px;
}
#comment_container .c_contents {
    text-align: left;
}
#comment_container .c_box {
    display: inline-block;
    vertical-align: top;
    margin: 5px;
    background-color: #f5f5f5;
    padding: 15px;
    font-size: 1.5rem;
    line-height: 1.5;
    width: 450px;
    max-height: 220px;
    overflow: auto;
    word-break: break-all;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
}

#comment_container .c_box img {
    float:left;
    margin-right: 10px;
    margin-bottom: 10px;
}

/* コメントのスクロールバー*/
.scroll-box {
    overflow-y: auto;
}
.scroll-box::-webkit-scrollbar{
    width: 5px;
    background: #ddd;
}
.scroll-box::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 2px;
}

/* -------------------------------------------------------------------
* button
 -----------------------------------------------------------------*/

#moreread {
    width: 150px;
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 50px;
    font-size: 1.5rem;
}

.button-link {
    font-size: 1.5rem;
    padding: 10px 15px;
    background: #4479BA;
    color: #FFF;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    border: solid 1px #20538D;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-transition-duration: 0.2s;
    -moz-transition-duration: 0.2s;
    transition-duration: 0.2s;
    -webkit-user-select:none;
    -moz-user-select:none;
    -ms-user-select:none;
    user-select:none;
    text-decoration: none;
}
.button-link:hover {
    color:#ffffff;
    background: #356094;
    border: solid 1px #f2A4E77;
    text-decoration: none;
}
.button-link:active {
    -webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6);
    -moz-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6);
    background: #2E5481;
    border: solid 1px #203E5F;
}

/**************************************
スマートフォン
***************************************/

@media only screen and (max-device-width: 480px) {
        
    #prof_name {
        font-size: 3.0rem;
    }
    #page_info {
        width: 100%;
        padding-bottom: 20px;
    }

    #nengo_box {
        width: 100%;
    }
    #memorial_box {
        width: 100%;
    }
    
    #about_box {
        width: 100%;
    }
    
    #offering_form_box {
        width: 100%;
    }
    
    #senko_box {
        width: 100%;
    }
    #flower_box {
        width: 100%;
    }
    img.flower {
        max-height:70px;
    }
    
    #flowers img{
        margin-top: 0px;
        margin-left:5px;
        margin-right:5px;
    }


    #comment_textarea {
        width: 90%;
        box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }
    #comment_post_form {
        width: 100%;
    }
    #page_info li {
        display: inline;
    }
    #info_box {
        width: 100%;
    }

    #comment_container .c_box {
        margin: 0;
        margin-bottom: 10px;
        width: 100%;
    }
    
}