@charset "utf-8";

/* 共通 ====================================== */
body.default{
    background-color: white;

}
.sp_only {
    display: block;
}
.pc_only {
    display: none;
}
/* 下部の『戻る』リンク */

div.link_back_top{
    clear: both;
    margin-left: 30px;
}
div.link_back{
    clear: both;
    margin-left: 30px;
    margin-top: 50px;
}

/* 全体 ==================================== */
#wrapper {
    margin:0px auto;
}

div#contents {
    width:100%;
}

/* ヘッダー ================================ */

header{
    padding-bottom:10px;
}
header .logo{
    /* 縦横中央揃え */
    text-align: center;
    vertical-align: middle;
    margin:0px auto;
    width:300px;
}

header .logo a{
    /* サイズ指定 */
    width: 250px;
    height: 66px;
    display: block;
    box-sizing: border-box;
    margin: 10px auto;

    /* 枠 */
    border-radius: 5px;
    border-top: 4px solid #a99;
    border-right: 4px solid #544;
    border-bottom: 4px solid #544;
    border-left: 4px solid #a99;

    /* リンク表示 */
    text-decoration: none;
}

header .logo div{
    background-color: #ffffff;

    height: 50px;
    padding:2px;

    /* 枠 */
    border-top: 2px solid #544;
    border-right: 2px solid #a99;
    border-bottom: 2px solid #a99;
    border-left: 2px solid #544;

    /* 文字指定 */
    color: #d55;
    font-family :"HG明朝E",serif;
    font-size: 45px;
    font-weight: bold;
}

header .link{
    background-color: #555;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding-right: calc(50vw - 50%);
    padding-left: calc(50vw - 50%);
}
header nav ul{
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1.8em;
}

header nav ul li{
    display: inline;
    padding: 0;
    margin: 0;
}
header nav ul li a{
    border-left: 10px solid #B65;
    background-color: #555;
    padding: 2px 5px;
    text-decoration: none;
    color: #E1E2CF;
    width: 120px;
    text-align: left;
    font-size: 16px;
    font-weight:bold;
}

header nav li a:hover{
    border-left: 10px solid #A43;
    background-color: #555;
    text-decoration: underline;
}

/* パンくず ============================== */
#breadcrumb ol{
    list-style-type: none;
    padding-left:20px;
    margin:10px 0px;
}

#breadcrumb ol li{
    display: table-cell;
    font-size: 14px;
}

#breadcrumb ol li:after{
    content: ">";
    margin: 0 3px;
}

#breadcrumb ol li:last-child:after{
    content: none;
}

/* トップページ関連 ============================== */
body.top{
    background-color: white;
}
h3.title_top_sub{
    padding-left : 10px; border-left : double 7px navy; border-bottom : solid 1px navy;
}
ul.ken{
    list-style-type: none;
    margin: 0 0 0 1em;
    padding: 0
}

/* サブ(上部)関連 */
body.sub{
    background-color: white;
}

body.side{

    background-color: white;
}


/* 神社ページ関連 =========================== */
h2.title_zinja{
    padding-left : 10px;
    border-left : double 7px darkred;
    border-bottom : solid 1px darkred;
}
/* 情報部 */
#info_zinja{
    clear: both;
    text-align: left;
    letter-spacing: 1px;
    font-size: 1em;;
}
#info_zinja div{
    margin-bottom: 20px;
}
#info_zinja p.visit_date {
    letter-spacing: normal;
    margin-bottom: 0px;
}
#info_zinja p.address {
    letter-spacing: normal;
    margin-top: 0px;
}
#info_zinja p.kansou {
    font-size: 1em;
}
ul.gosaishin{
    list-style-type: none;
    margin-left: 5;
    margin-bottom: 10;
    padding: 0
}
ul.reisaibi{
    list-style-type: none;
    margin-left: 5;
    margin-bottom: 5;
    padding: 0
}
pre.yurai {
    overflow-x: auto;
    overflow-y: auto;
    margin-left: 5;
}
/* 画像部 */
#photo_zinja hr{
    width: 100%;
    letter-spacing: 0.1em
}

div.img_line{
    margin-top: 30px;
    max-width: 1080px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

div.img_cell{
    text-align: center;
}
p.caption_img{
    text-align: center;
}

div.text_center{
    clear: left;
    margin-top: 50px;
    width: 730px;
    text-align: center;
}
div.text_left{
    clear: left;
    margin-top: 50px;
    text-align: left;
}
p.title_img{
    text-align: left;
}

img.default_size{
    width: 300px;
    height: 225px;
}
img.default_size_tate{
    width: 225px;
    height: 300px;
}
img.wide_size{
    width: 90%;
}

pre.kansou_sub {
    font-size: 1em;
    overflow-x: auto;
    overflow-y: auto;
}
pre.yurai_sub {
    overflow-x: auto;
    overflow-y: auto;
}

div.jinja_map {
    width: 100%;
    height: 400px;
    margin: 10px auto;
}

div.jinja_map iframe {
    width: 100%;
    height: 100%;
}

/* 検索ページ =========================== */
/* 検索ボックス */
#search_box{
    text-align  : left;
    max-width: 440px;
    margin-right:auto;
    margin-left:auto;
    border: 10px solid #f3e3e5;
    border-radius: 10px;
    padding:10px 20px;
}

#search_box h5{
    margin: 10px 0px;
}
#search_box button{
    margin-top: 10px;
    display: block;
}
#search_box ul{
    display: block;
    padding: 0px;
}
#search_box li{
    list-style:none;
    margin-bottom: 5px;
}

#search_box input[type=text]{
    width:250px ;
}
#search_box select{
    font-size: 15px ;
}

/** 検索結果 */
#search_result {
    margin-bottom: 20px;
}
#search_result .symbole_prefecture{
    font-size: 30;
}
#search_result img.symbole_prefecture{
    width: 30px;
    height: 30px;
    float:left;
}
#search_result h3.title_city{
    padding-left : 10px;
    border-left : double 7px navy;
    border-bottom : solid 1px navy;
    margin-left: 5px;
}
#search_result h3.title_ward{
    padding-left : 10px;
    border-left : double 7px slategray;
    border-bottom : solid 1px slategray;
    margin-left: 10px;
}
#search_result .result_link{
    margin-left: 15px;
    margin-top : 10px;
}
#search_result a{
    display: block;
    width : 200px;
    float:left;
}

@media screen and (min-width:780px) {
    .sp_only {
        display: none;
    }
    .pc_only {
        display: block;
    }
    div#contents {
        margin:0px auto;
        width:750px;
    }
    p.kansou {
        overflow-x: auto;
        overflow-y: auto;
    }
    div.jinja_map {
        width: 700px;
        height: 500px;
    }
    img.wide_size{
        width: 700px;
        height: 457px;
    }
    #search_box ul{
        display: flex;
    }
    #search_box select{
        margin-right: 10px;
    }
}
@media screen and (min-width:1080px) {
    div#wrapper {
        width:1080px;
    }
}
