/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/
/* ブラウザ毎のデフォルト値をリセット */

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* リセットここまで */

.wfont2 {
    font-family: 'Zen Antique', serif;
    font-weight: 400;
    font-style: normal;
}

.right {
    text-align: right;
}

body {
    font-size: 16px;
    /* 文字サイズ */
    line-height: 1.618;
    /* 行の高さ */
    text-align: center;
    color: rgb(79, 86, 105);
}

/* 横幅設定 */
header,
#main,
#botimg {
    width: 1000px;
}

header,
#main,
#botimg,
article,
#menu,
#menu2 {
    border: solid 0px #00ff00;
}

header {
    height: 600px;
}

a {
    color: rgb(79, 86, 105)
}


.br_s::before {
    content: "\A";
    white-space: pre;
}

header {
    margin: auto;
    background-image: url('img/m_head.png');
    background-position: 50% 0em;
    background-size: 100% auto;
    position: relative;
}

#logo {
    position: absolute;
    top: 0.625em;
    left: 0.9em;
    font-size: 3.5em;
    align-items: baseline;
    display: flex;
    text-shadow:
        -1px -1px 0 rgb(79, 86, 105),
        /* 左上 */
        1px -1px 0 rgb(79, 86, 105),
        /* 右上 */
        -1px 1px 0 rgb(79, 86, 105),
        /* 左下 */
        1px 1px 0 rgb(79, 86, 105),
        -2px -2px 2px rgb(79, 86, 105),
        /* 左上 */
        2px -2px 2px rgb(79, 86, 105),
        /* 右上 */
        -2px 2px 2px rgb(79, 86, 105),
        /* 左下 */
        2px 2px 2px rgb(79, 86, 105),
        -3px -3px 2px #fff,
        /* 左上 */
        3px -3px 2px #fff,
        /* 右上 */
        -3px 3px 2px #fff,
        /* 左下 */
        3px 3px 2px #fff;
    /* 右下 */
}

#logo a {
    color: #fafafa;
    text-decoration: none;
}



#header_tell {
    font-weight: bold;
    position: absolute;
    right: 0px;
    bottom: 3.75em;
    text-align: right;
    padding-right: 1.5em;
}

.address {
    font-size: 1.125em;
}

#main {
    margin: auto;
    background: #ffffff;
    font-weight: bold;
    display: flex;
    margin-bottom: 3em;
}


#menu {
    width: 250px;
    margin-top: 100px;
    font-size: 1.5em;
    line-height: 3;
}

#menu2 {
    line-height: 2.625;
}

#menu2 img {
    width: 750px;

}

#menu2,
article {
    width: 750px;
    margin-top: -20px;
    text-align: left;
    z-index: 1000;
}

/* 文字装飾 */
h1 {

    padding-left: 1em;
    padding-bottom: 0.1em;
    font-size: 1.4375em;
    font-weight: bold;
    text-shadow: 0px 1px 0 #fff, 0px -1px 0 #fff,
        -1px 0px 0 #fff, 1px 0px 0 #fff;
    color: #395c3b;
    margin-bottom: 1em;
}

h1::after {
    /* 線を表示するために必須の設定 */
    content: "";
    display: block;

    /* 線の見た目（太さ・線種・色）を設定 */
    border-bottom: 2px solid rgb(70, 100, 156);

    /* 線の長さ（h1の幅に対する割合）*/
    width: 100%;
    margin-top: -0.2em;
    margin-left: -0.5em;

    /* 線を中央に配置したい場合、left: 50%; と translateで調整 */
    /* left: 50%;
       transform: translateX(-50%); */
}

h2 {
    margin: 1em 2em 0.5em 2em;
    /*上右下左*/
    padding-left: 0.5em;
    font-size: 1.2em;
    font-weight: bold;
    color: #395c3b;
    background: linear-gradient(transparent 70%, #c3e58b 70%);
}

h3 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 1em;
}

article p {
    margin-bottom: 2em;
    padding: 0 3em 0 2em;
    color: #395c3b;
}

section {
    margin-bottom: 4em;
}

.m_img {
    margin: 1em auto 2em;
    display: none;
    height: 12em;
    width: 9em;
    border: 1px solid rgb(82, 50, 50);
}

/*マップ*/
#map {
    margin: auto;
    text-align: center;
    width: 37.5em;
    border: solid 0px #00ff00;
}

#map iframe {
    width: 36.25em;
    height: 23.4375em;
}

#botimg {
    background: #ffffff;
    margin: auto;
    height: 14.375em;
    background-image: url(img/m_bg.png);
    background-repeat: repeat-x;
    background-size: 4.6875em;
    background-position: 3.4375em top;
    bottom: 0em;
}

/* iPadに適用するCSS  基本は768 */
@media screen and (max-width:835px) {
    body {
        font-size: 14px;
        line-height: 1.618;
    }

    /* 横幅設定 */
    header,
    #main,
    #main_c,
    #main_a,
    #botimg {
        width: 700px;
    }


    header {
        height: 420px;
    }



    #menu2,
    #menu2 img,
    article {
        width: 525px;

    }

    #menu {

        width: 175px;
        margin-top: 100px;
        font-size: 1.5em;
        line-height: 3;
    }

    #botimg {
        height: 161px;
        background-size: 53px;
        background-position: 39px top;
    }
}

/* 		スマホに適用するCSS 基本は375～320		 */

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

    /* ボディ */
    body {
        font-size: 11px;
        line-height: 1.4;
    }

    header,
    #main,
    #botimg {
        width: 320px;
    }

    #main {
        display: block;
    }

    header {
        height: 192px;
    }

    #logo {
        width: 320px;
        top: 0.4em;
        left: calc(50% - 160px);
        justify-content: space-around;
        display: block;
        line-height: 1;
        font-size: 60px;
    }

    #logo>div:nth-child(1) {
        font-size: 0.6em;
    }

    #header_tell p {
        font-size: 10px;
    }

    #header_tell p.address {
        font-size: 12px;
    }

    #header_tell {
        bottom: 0em;
        padding-right: 0.2em;
    }

    #menu2,
    #menu2 img {
        width: 300px;

    }

    article {
        width: 320px;
    }

    #menu {
        width: 300px;
        margin: 10px auto 5px;
        font-size: 12px;
    }

    #menu ul {
        display: flex;

    }

    #menu a {
        color: rgb(79, 86, 105)
    }


    #menu li {
        line-height: 2;
        width: calc(300px / 4);
        box-sizing: border-box;
        /*borderやpaddingをwidthの幅に含める*/
    }

    #menu2,
    article {
        margin-top: 0px;
        line-height: 2.2;
    }

    #menu2 {
        margin-left: 20px;
    }

    h1 {
        margin-left: 0.2em;
        padding-left: 0.8em;
        padding-bottom: 0.1em;
        background-position: 1.304em bottom;
        background-size: 1.304em;
    }

    h2 {
        margin: 0em 0.4em 0.5em 0.4em;
        /*上右下左*/
        padding-left: 0.5em;
    }

    article p {
        margin-bottom: 1em;
        padding: 0 0.8em 0 0.8em;
    }

    #map {
        width: 290px;
    }

    #map iframe {
        width: 280px;
        height: 250px;
    }

    #botimg {
        height: 100px;
        background-size: 40px;
        background-position: 18px top;
    }
}